diff --git a/modules/systemd.nix b/modules/systemd.nix index 8ee2db659..939dc832c 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -24,17 +24,17 @@ let buildService = style: name: serviceCfg: let - source = pkgs.writeText "${name}.${style}" (toSystemdIni serviceCfg); + source = pkgs.writeScript "${name}.${style}" (toSystemdIni serviceCfg); wantedBy = target: { name = "systemd/user/${target}.wants/${name}.${style}"; - value = { inherit source; }; + value = { inherit source; executable = false; }; }; in singleton { name = "systemd/user/${name}.${style}"; - value = { inherit source; }; + value = { inherit source; executable = false; }; } ++ map wantedBy (serviceCfg.Install.WantedBy or []);