made a home variable
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
let
|
||||
stateVersion = "24.05";
|
||||
unstable = import <nixos-unstable> {};
|
||||
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" ];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user