feat(graphical): Enable graphical modules for darwin and nixos

This commit is contained in:
Mohammad Rafiq 2025-07-14 01:37:51 +08:00
parent 26e21a4edd
commit b085f92226
No known key found for this signature in database
3 changed files with 11 additions and 8 deletions

View file

@ -43,7 +43,7 @@ let
cfg.modules.darwin.default cfg.modules.darwin.default
inputs.home-manager.darwinModules.home-manager inputs.home-manager.darwinModules.home-manager
{ home-manager = globalCfg name value; } { home-manager = globalCfg name value; }
]; ] ++ optional value.graphical cfg.modules.darwin.graphical;
} }
else else
{ } { }

View file

@ -7,7 +7,7 @@
shell = "fish"; shell = "fish";
pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n rafiq"; pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n rafiq";
}; };
hosts.darwin.venus = { }; hosts.darwin.venus.graphical = true;
hosts.nixos = { hosts.nixos = {
nemesis = { nemesis = {
graphical = true; graphical = true;

View file

@ -3,12 +3,15 @@ let
inherit (lib.options) mkEnableOption; inherit (lib.options) mkEnableOption;
in in
{ {
flake.modules.nixos.graphical = { flake.modules = {
nixos.graphical = {
home-manager.sharedModules = [ { graphical = true; } ]; home-manager.sharedModules = [ { graphical = true; } ];
services.pipewire = { services.pipewire = {
enable = true; enable = true;
pulse.enable = true; pulse.enable = true;
}; };
}; };
flake.modules.homeManager.default.options.graphical = mkEnableOption ""; homeManager.default.options.graphical = mkEnableOption "";
darwin.graphical.home-manager.sharedModules = [ { graphical = true; } ];
};
} }