made a home variable
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
let
|
let
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
unstable = import <nixos-unstable> {};
|
unstable = import <nixos-unstable> {};
|
||||||
adNixPath = "/srv/appdaemon/ad-nix";
|
adHome = "/srv/appdaemon";
|
||||||
|
adNixPath = "${adHome}/ad-nix";
|
||||||
adPath = "/usr/src/app";
|
adPath = "/usr/src/app";
|
||||||
adBranch = "hass";
|
adBranch = "hass";
|
||||||
in
|
in
|
||||||
@@ -53,11 +54,8 @@ in
|
|||||||
|
|
||||||
users.users.appdaemon = {
|
users.users.appdaemon = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/srv/appdaemon";
|
home = "${adHome}";
|
||||||
extraGroups = [
|
extraGroups = [ "wheel" "docker"];
|
||||||
"wheel"
|
|
||||||
"docker"
|
|
||||||
];
|
|
||||||
openssh.authorizedKeys.keyFiles = [ "/root/.ssh/authorized_keys" ];
|
openssh.authorizedKeys.keyFiles = [ "/root/.ssh/authorized_keys" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user