mirror of
https://github.com/blahai/nyx.git
synced 2025-06-18 17:47:00 -04:00
a lot of shit also baibai home manager, hello hjem
This commit is contained in:
parent
bc82345beb
commit
2c8f822b83
37 changed files with 1277 additions and 168 deletions
50
modules/base/options/meta.nix
Normal file
50
modules/base/options/meta.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue