mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
treewide: remove network-online.target
systemd system units cannot be a dependency of a user-unit. Reference: https://github.com/systemd/systemd/issues/3312
This commit is contained in:
committed by
Austin Horstman
parent
b931102804
commit
b5e86c1b19
@@ -312,8 +312,6 @@ in
|
||||
lib.nameValuePair "colima-${name}" {
|
||||
Unit = {
|
||||
Description = "Colima container runtime (${name} profile)";
|
||||
After = [ "network-online.target" ];
|
||||
Wants = [ "network-online.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = ''
|
||||
|
||||
@@ -58,7 +58,6 @@ in
|
||||
pantalaimon = {
|
||||
Unit = {
|
||||
Description = "Pantalaimon - E2EE aware proxy daemon for matrix clients";
|
||||
After = [ "network-online.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
||||
@@ -41,7 +41,6 @@ in
|
||||
systemd.user.services.pimsync = {
|
||||
Unit = {
|
||||
Description = "pimsync calendar and contacts synchronization";
|
||||
PartOf = [ "network-online.target" ];
|
||||
};
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
Service = {
|
||||
|
||||
@@ -42,8 +42,6 @@ in
|
||||
Unit = {
|
||||
Description = "Podman auto-update service";
|
||||
Documentation = "man:podman-auto-update(1)";
|
||||
Wants = [ "network-online.target" ];
|
||||
After = [ "network-online.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
||||
@@ -56,8 +56,6 @@ in
|
||||
Unit = {
|
||||
Description = "An MPRIS scrobbler";
|
||||
Documentation = "https://github.com/InputUsername/rescrobbled";
|
||||
Wants = [ "network-online.target" ];
|
||||
After = [ "network-online.target" ];
|
||||
};
|
||||
|
||||
Service.ExecStart = lib.getExe cfg.package;
|
||||
|
||||
@@ -487,8 +487,6 @@ in
|
||||
lib.nameValuePair serviceName {
|
||||
Unit = {
|
||||
Description = "Restic backup service";
|
||||
Wants = [ "network-online.target" ];
|
||||
After = [ "network-online.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
||||
@@ -35,8 +35,6 @@ in
|
||||
Unit = {
|
||||
Description = "Update tldr CLI cache";
|
||||
Documentation = "https://tldr.sh/";
|
||||
Wants = [ "network-online.target" ];
|
||||
After = [ "network-online.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
||||
@@ -64,7 +64,6 @@ in
|
||||
systemd.user.services.vdirsyncer = {
|
||||
Unit = {
|
||||
Description = "vdirsyncer calendar&contacts synchronization";
|
||||
PartOf = [ "network-online.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
||||
@@ -17,6 +17,4 @@ StandardError=append:/home/hm-user/.local/state/colima/default.log
|
||||
StandardOutput=append:/home/hm-user/.local/state/colima/default.log
|
||||
|
||||
[Unit]
|
||||
After=network-online.target
|
||||
Description=Colima container runtime (default profile)
|
||||
Wants=network-online.target
|
||||
|
||||
@@ -15,6 +15,4 @@ StandardError=append:/home/hm-user/.local/state/colima/default.log
|
||||
StandardOutput=append:/home/hm-user/.local/state/colima/default.log
|
||||
|
||||
[Unit]
|
||||
After=network-online.target
|
||||
Description=Colima container runtime (default profile)
|
||||
Wants=network-online.target
|
||||
|
||||
@@ -39,8 +39,6 @@
|
||||
|
||||
assertFileExists $service
|
||||
assertFileRegex $service 'Description=An MPRIS scrobbler'
|
||||
assertFileRegex $service 'Wants=network-online.target'
|
||||
assertFileRegex $service 'After=network-online.target'
|
||||
assertFileRegex $service 'WantedBy=default.target'
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -4,7 +4,5 @@ ExecStart=@tldr@/bin/dummy --update
|
||||
Type=oneshot
|
||||
|
||||
[Unit]
|
||||
After=network-online.target
|
||||
Description=Update tldr CLI cache
|
||||
Documentation=https://tldr.sh/
|
||||
Wants=network-online.target
|
||||
|
||||
Reference in New Issue
Block a user