nixos/supergfxd: make optional, fix eval (again)
This commit is contained in:
parent
f2c99154b9
commit
2123b57d5d
2 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ in
|
|||
systemd.packages = [ pkgs.asusctl ];
|
||||
services.dbus.packages = [ pkgs.asusctl ];
|
||||
services.udev.packages = [ pkgs.asusctl ];
|
||||
services.supergfxd.enable = true;
|
||||
services.supergfxd.enable = lib.mkDefault true;
|
||||
|
||||
systemd.user.services.asusd-user.enable = cfg.enableUserService;
|
||||
};
|
||||
|
|
|
@ -23,7 +23,7 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ pkgs.supergfxctl ];
|
||||
|
||||
environment.etc."supergfxd.conf".source = lib.mkIf (cfg.settings != null) (json.generate "supergfxd.conf" cfg.settings);
|
||||
environment.etc."supergfxd.conf" = lib.mkIf (cfg.settings != null) { source = json.generate "supergfxd.conf" cfg.settings; };
|
||||
|
||||
services.dbus.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue