1181cd6fea
Reviewed-on: https://git.b12f.io/pub-solar/os/pulls/132 Reviewed-by: Benjamin Bädorf <hello@benjaminbaedorf.eu>
43 lines
833 B
Nix
43 lines
833 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
let
|
|
psCfg = config.pub-solar;
|
|
cfg = config.pub-solar.core;
|
|
in
|
|
{
|
|
imports = [
|
|
./boot.nix
|
|
./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 = lib.mkIf (!cfg.lite) (lib.mkDefault true);
|
|
crypto.enable = lib.mkIf (!cfg.lite) (lib.mkDefault true);
|
|
devops.enable = lib.mkIf (!cfg.lite) (lib.mkDefault true);
|
|
|
|
terminal-life = {
|
|
enable = lib.mkDefault true;
|
|
lite = cfg.lite;
|
|
};
|
|
};
|
|
};
|
|
}
|