This commit is contained in:
2025-10-10 21:02:20 +03:00
parent cbc1ead4d2
commit af5042e347
+2 -2
View File
@@ -85,12 +85,12 @@
systemd.services.nixos-auto-rebuild-sops = {
description = "Auto rebuild NixOS at boot";
wantedBy = [ "multi-user.target" ];
# after = [ "network-online.target" ];
after = [ "network-online.target" ];
serviceConfig = {
Type = "oneshot";
User = "${xlib.device.username}";
WorkingDirectory = "/run/current-system";
ExecStart = [ "${pkgs.nh}/bin/nh nh os switch" ];
ExecStart = [ "${pkgs.nixos-rebuild}/bin/nixos-rebuild switch" ];
};
};