all repos — nixfiles @ 78d75774511324aef146b92cdfc353f9f852823e

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

update home manager automatically on all servers

Alin
commit

78d75774511324aef146b92cdfc353f9f852823e

parent

5c8de91d773341dcf91af094fbd6689c4e5e7702

2 files changed, 20 insertions(+), 21 deletions(-)

changed files
M system/hosts/linde.nix → system/hosts/linde.nix
@@ -311,26 +311,6 @@ "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBENXbdPPOq0mA+9bPklpUkikvIXjCEKE5IRwNPNMr5/Ta1J/ND737fexCjEb7YPoAJtaf0gD/JThQQi/RxDTvy4= alin@alin.ovh"
]; }; - systemd.services.update-home-manager = { - startAt = "weekly"; - path = with pkgs; [ - openssh - nix - git - ]; - serviceConfig = - let - user = "alin"; - home = config.users.users.${user}.home; - nixfiles = "${home}/projects/${domain}/nixfiles"; - in - { - Type = "oneshot"; - User = user; - ExecStart = "${lib.getExe pkgs.home-manager} switch --flake ${nixfiles}?submodules=1#${user}@%H"; - }; - }; - users.users.nixremote = { shell = "/bin/sh"; isNormalUser = true;
M system/roles/server.nix → system/roles/server.nix
@@ -1,4 +1,9 @@
-{ ... }: +{ + config, + pkgs, + lib, + ... +}: { imports = [ ../settings/configuration/nix-linux.nix
@@ -26,4 +31,18 @@
services.journald.extraConfig = '' MaxRetentionSec=1 month ''; + + systemd.services.update-home-manager = { + startAt = "weekly"; + path = with pkgs; [ + openssh + nix + git + ]; + serviceConfig = rec { + Type = "oneshot"; + User = "alin"; + ExecStart = "${lib.getExe pkgs.home-manager} switch --flake git+https://git.alin.ovh/nixfiles?submodules=1#${User}@%H"; + }; + }; }