os/modules/core/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
782 B
Nix
Raw Normal View History

{
2022-11-20 22:28:23 +00:00
config,
lib,
...
}:
with lib; let
cfg = config.pub-solar.core;
2022-11-20 22:28:23 +00:00
in {
imports = [
./boot.nix
2022-08-14 18:09:38 +00:00
./hibernation.nix
./fonts.nix
./i18n.nix
./networking.nix
./nix.nix
./packages.nix
./services.nix
];
options.pub-solar.core = {
lite = mkOption {
description = ''
Enable a lite edition of core with less default modules and a reduced package set.
'';
default = false;
type = types.bool;
};
};
config = {
pub-solar = {
audio.enable = mkIf (!cfg.lite) (mkDefault true);
crypto.enable = mkIf (!cfg.lite) (mkDefault true);
devops.enable = mkIf (!cfg.lite) (mkDefault true);
terminal-life = {
enable = mkDefault true;
lite = cfg.lite;
};
};
};
}