39 lines
548 B
Nix
39 lines
548 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
with lib;
|
|
with lib.metacfg;
|
|
let
|
|
cfg = config.metacfg.suites.common;
|
|
in
|
|
{
|
|
options.metacfg.suites.common = with types; {
|
|
enable = mkBoolOpt false "Whether or not to enable common configuration.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.fish = enabled;
|
|
|
|
metacfg = {
|
|
nix = enabled;
|
|
|
|
base = enabled;
|
|
|
|
system = {
|
|
fonts = enabled;
|
|
#input = enabled;
|
|
interface = enabled;
|
|
};
|
|
|
|
security = {
|
|
gpg = enabled;
|
|
};
|
|
};
|
|
};
|
|
}
|