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