mirror of
https://github.com/zoriya/home-manager.git
synced 2026-06-04 19:16:34 +00:00
systemd: remove filename hack
This commit is contained in:
committed by
Robert Helgesson
parent
f6900f0689
commit
8d360c5a57
+8
-3
@@ -24,16 +24,21 @@ let
|
||||
|
||||
buildService = style: name: serviceCfg:
|
||||
let
|
||||
source = pkgs.writeText "${name}.${style}" (toSystemdIni serviceCfg);
|
||||
filename = "${name}.${style}";
|
||||
|
||||
# Needed because systemd derives unit names from the ultimate
|
||||
# link target.
|
||||
source = pkgs.writeTextDir filename (toSystemdIni serviceCfg)
|
||||
+ "/" + filename;
|
||||
|
||||
wantedBy = target:
|
||||
{
|
||||
name = "systemd/user/${target}.wants/${name}.${style}";
|
||||
name = "systemd/user/${target}.wants/${filename}";
|
||||
value = { inherit source; };
|
||||
};
|
||||
in
|
||||
singleton {
|
||||
name = "systemd/user/${name}.${style}";
|
||||
name = "systemd/user/${filename}";
|
||||
value = { inherit source; };
|
||||
}
|
||||
++
|
||||
|
||||
Reference in New Issue
Block a user