This commit is contained in:
2025-10-10 20:58:29 +03:00
parent 32248e5cac
commit 8d80e49e87
+3 -2
View File
@@ -85,10 +85,11 @@
systemd.services.nixos-auto-rebuild-sops = { systemd.services.nixos-auto-rebuild-sops = {
description = "Auto rebuild NixOS at boot"; description = "Auto rebuild NixOS at boot";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ]; # after = [ "network-online.target" ];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "oneshot";
User = "${xlib.device.username}"; User = "${xlib.device.username}";
WorkingDirectory = "/etc/nixos";
ExecStart = [ "${pkgs.nh}/bin/nh os switch" ]; ExecStart = [ "${pkgs.nh}/bin/nh os switch" ];
}; };
}; };