feat(nix): use module options instead of specialArgs for graphical
This commit is contained in:
parent
dd74ed210c
commit
2c6cd776ce
2 changed files with 9 additions and 16 deletions
|
@ -1,19 +1,14 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in
|
||||
{
|
||||
flake.modules.nixos.default =
|
||||
{ graphical, ... }:
|
||||
{
|
||||
config = mkIf graphical {
|
||||
home-manager.sharedModules = [ { graphical = true; } ];
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
flake.modules.nixos.graphical = {
|
||||
home-manager.sharedModules = [ { graphical = true; } ];
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
flake.modules.homeManager.default.options.graphical = mkEnableOption "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue