diff --git a/hosts/h002/nixserver.nix b/hosts/h002/nixserver.nix index 6563d08..2614b0b 100644 --- a/hosts/h002/nixserver.nix +++ b/hosts/h002/nixserver.nix @@ -18,7 +18,10 @@ after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { - Environment = "PATH=/run/wrappers/bin:/home/luser/.nix-profile/bin:/nix/profile/bin:/home/luser/.local/state/nix/profile/bin:/etc/profiles/per-user/luser/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"; + Environment = [ + "PATH=/run/wrappers/bin:/home/luser/.nix-profile/bin:/nix/profile/bin:/home/luser/.local/state/nix/profile/bin:/etc/profiles/per-user/luser/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin" + "NIX_PATH=nixpkgs=flake:nixpkgs:/nix/var/nix/profiles/per-user/root/channels" + ]; ExecStart = "/usr/local/bin/nixserver agent run"; Restart = "always"; User = "luser";