From 20b9647993b46273400f4ad3b1a24a03eb72c07a Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 16 Sep 2024 02:28:50 +0000 Subject: [PATCH] made a home variable --- configuration.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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" ]; };