more progress

This commit is contained in:
Chris Kruining 2025-07-24 11:33:23 +02:00
parent ef6c049068
commit 2d0b2b5070
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
31 changed files with 256 additions and 487 deletions

View file

@ -1,4 +1,4 @@
{ lib, config, namespace, ... }:
{ lib, config, namespace, inputs, ... }:
let
inherit (lib) mkIf mkOption mkEnableOption mkMerge;
inherit (lib.types) nullOr enum;
@ -6,6 +6,10 @@ let
cfg = config.${namespace}.desktop;
in
{
imports = [
inputs.grub2-themes.nixosModules.default
];
options.${namespace}.desktop = {
use = mkOption {
type = nullOr (enum [ "plasma" "gamescope" "gnome" ]);
@ -28,8 +32,8 @@ in
};
})
(mkIf (cfg.use != null) {
${namespace}.desktop.${cfg.use}.enable = true;
})
# (mkIf (cfg.use != null) {
# ${namespace}.desktop.${cfg.use}.enable = true;
# })
];
}