all repos — nixfiles @ 9627a75747b6af6af12edb4b67cab2b4a844e399

System and user configuration, managed by nix and home-manager

linde: add system service to update home-manager automatically

Alan Pearce
commit

9627a75747b6af6af12edb4b67cab2b4a844e399

parent

a46ef04bfc7ff2bc8d45decfb65f85e41e30c275

1 file changed, 14 insertions(+), 0 deletions(-)

changed files
M system/linde.nixsystem/linde.nix
@@ -361,6 +361,20 @@ "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJVREjPey2TOIPzfYJoG9yIR4Rui7tNJK2QIKa+pbgsyXg31hhPIw37LRRIic+l53mW8eahHxX3Y1IeTjcMw8IU= alan@secretive.marvin"
]; }; + systemd.services.update-home-manager = { + startAt = "weekly"; + path = with pkgs; [ + openssh + nix + git + ]; + serviceConfig = rec { + Type = "oneshot"; + User = "alan"; + ExecStart = "${lib.getExe pkgs.home-manager} switch --flake git://localhost/nixfiles?submodules=1#${User}@%H"; + }; + }; + users.users.nixremote = { shell = "/bin/sh"; isNormalUser = true;