diff --git a/configuration.nix b/configuration.nix index b5cb08d..5b81681 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,7 +2,8 @@ let stateVersion = "24.05"; unstable = import {}; - adNixPath = "/srv/appdaemon/ad-nix"; + adHome = "/srv/appdaemon"; + adNixPath = "${adHome}/ad-nix"; adPath = "/usr/src/app"; adBranch = "hass"; in @@ -53,11 +54,8 @@ in users.users.appdaemon = { isNormalUser = true; - home = "/srv/appdaemon"; - extraGroups = [ - "wheel" - "docker" - ]; + home = "${adHome}"; + extraGroups = [ "wheel" "docker"]; openssh.authorizedKeys.keyFiles = [ "/root/.ssh/authorized_keys" ]; };