Skip to content

Commit

Permalink
nix: add default instance to systemd template units
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Oct 5, 2024
1 parent a7cce62 commit 8a362c0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nix/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,10 @@ in
After = [ "network-online.target" "network.target" ];
Wants = [ "network-online.target" ];
};
Install = { WantedBy = [ "default.target" ]; };
Install = {
WantedBy = [ "default.target" ];
DefaultInstance = "default";
};
Service = let commonArgs = "-sshargs='-i %h/.ssh/id_ed25519_unison'"; in
{
# watch and repeat parameter can't handle non-existent folders.
Expand Down Expand Up @@ -1107,7 +1110,10 @@ in
After = [ "network-online.target" "network.target" ];
Wants = [ "network-online.target" ];
};
Install = { WantedBy = [ "default.target" ]; };
Install = {
WantedBy = [ "default.target" ];
DefaultInstance = "dev";
};
Service =
{
# It is ok to pass a non-existent key file. Ssh will warn us, but won't panic.
Expand Down

0 comments on commit 8a362c0

Please sign in to comment.