forked from pub-solar/os
35 lines
693 B
Nix
35 lines
693 B
Nix
{ lib, ... }:
|
|
|
|
with lib;
|
|
let
|
|
psCfg = config.pub-solar;
|
|
cfg = config.pub-solar.core;
|
|
in
|
|
{
|
|
imports = [
|
|
./boot.nix
|
|
./fonts.nix
|
|
./i18n.nix
|
|
./modules.nix
|
|
./networking.nix
|
|
./nix.nix
|
|
./packages.nix
|
|
./services.nix
|
|
];
|
|
|
|
pub-solar.terminal-life.enable = true;
|
|
pub-solar.audio.enable = lib.mkIf (!cfg.lite) true;
|
|
pub-solar.crypto.enable = lib.mkIf (!cfg.lite) true;
|
|
pub-solar.devops.enable = lib.mkIf (!cfg.lite) true;
|
|
|
|
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;
|
|
};
|
|
};
|
|
}
|