nixos/supergfxd: make config file read/write

This commit is contained in:
K900 2022-12-29 14:17:24 +03:00
parent 5affcefe9b
commit 25bb55495b

View file

@ -23,7 +23,10 @@ in
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.supergfxctl ];
environment.etc."supergfxd.conf" = lib.mkIf (cfg.settings != null) { source = json.generate "supergfxd.conf" cfg.settings; };
environment.etc."supergfxd.conf" = lib.mkIf (cfg.settings != null) {
source = json.generate "supergfxd.conf" cfg.settings;
mode = "0644";
};
services.dbus.enable = true;