Skip to content

Commit 8a362c0

Browse files
committed
nix: add default instance to systemd template units
1 parent a7cce62 commit 8a362c0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nix/home.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,10 @@ in
10781078
After = [ "network-online.target" "network.target" ];
10791079
Wants = [ "network-online.target" ];
10801080
};
1081-
Install = { WantedBy = [ "default.target" ]; };
1081+
Install = {
1082+
WantedBy = [ "default.target" ];
1083+
DefaultInstance = "default";
1084+
};
10821085
Service = let commonArgs = "-sshargs='-i %h/.ssh/id_ed25519_unison'"; in
10831086
{
10841087
# watch and repeat parameter can't handle non-existent folders.
@@ -1107,7 +1110,10 @@ in
11071110
After = [ "network-online.target" "network.target" ];
11081111
Wants = [ "network-online.target" ];
11091112
};
1110-
Install = { WantedBy = [ "default.target" ]; };
1113+
Install = {
1114+
WantedBy = [ "default.target" ];
1115+
DefaultInstance = "dev";
1116+
};
11111117
Service =
11121118
{
11131119
# It is ok to pass a non-existent key file. Ssh will warn us, but won't panic.

0 commit comments

Comments
 (0)