mirror of
https://github.com/blahai/nyx.git
synced 2025-02-23 20:05:10 +00:00
50 lines
872 B
Nix
50 lines
872 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib.trivial) id;
|
|
inherit (lib.options) mkOption;
|
|
inherit (lib.validators) anyHome;
|
|
inherit (lib.strings) concatStringsSep;
|
|
|
|
mkMetaOption = path:
|
|
mkOption {
|
|
default = anyHome config id path;
|
|
example = true;
|
|
description = "Does ${concatStringsSep "." path} meet the requirements";
|
|
type = lib.types.bool;
|
|
};
|
|
in {
|
|
options.olympus.meta = {
|
|
fish = mkMetaOption [
|
|
"olympus"
|
|
"programs"
|
|
"fish"
|
|
"enable"
|
|
];
|
|
thunar = mkMetaOption [
|
|
"olympus"
|
|
"programs"
|
|
"thunar"
|
|
"enable"
|
|
];
|
|
gui = mkMetaOption [
|
|
"olympus"
|
|
"programs"
|
|
"gui"
|
|
"enable"
|
|
];
|
|
|
|
isWayland = mkMetaOption [
|
|
"olympus"
|
|
"meta"
|
|
"isWayland"
|
|
];
|
|
isWM = mkMetaOption [
|
|
"olympus"
|
|
"meta"
|
|
"isWM"
|
|
];
|
|
};
|
|
}
|