you know the drill at this point

This commit is contained in:
Chris Kruining 2025-07-24 16:02:25 +02:00
parent 2d0b2b5070
commit b8e4a0a8bc
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
27 changed files with 227 additions and 555 deletions

View file

@ -1,43 +0,0 @@
{ config, lib, namespace, ... }:
let
inherit (lib) mkIf mkDefault mkOption mkMerge;
inherit (lib.types) nullOr enum;
cfg = config.${namespace};
in
{
options.${namespace} = {
preset = mkOption {
type = nullOr (enum [ "server" "desktop" ]);
default = null;
example = "desktop";
description = "Which defaults profile to start with";
};
};
config = mkMerge [
(mkIf (cfg.preset == "desktop") {
${namespace} = mkDefault {
hardware.has = {
audio = true;
};
boot = {
quiet = true;
animated = true;
};
desktop.use = "plasma";
theming.enable = true;
};
})
(mkIf (cfg.preset == "server") {
${namespace} = mkDefault {
services = {
networking.ssh.enable = true;
};
};
})
];
}

View file

@ -0,0 +1,2 @@
{ ... }:
{}

View file

@ -10,5 +10,7 @@ in
};
config = mkIf cfg.enable {
# Enable completion for sys-packages:
environment.pathsToLink = ["/share/zsh"];
};
}

View file

@ -10,7 +10,9 @@ in
];
options.${namespace}.theming = {
enable = mkEnableOption "enable theming";
enable = mkEnableOption "enable theming" // {
default = true;
};
};
config = mkIf cfg.enable {