Runs application as non-root user.
This commit is contained in:
parent
5797f94fa2
commit
1517a064bf
|
@ -14,11 +14,26 @@
|
||||||
graphfix xorg.xauth xorg.xinit
|
graphfix xorg.xauth xorg.xinit
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.root = {
|
users = {
|
||||||
openssh.authorizedKeys.keyFiles = [
|
mutableUsers = false;
|
||||||
./authorized_keys
|
users = {
|
||||||
];
|
root.openssh.authorizedKeys.keyFiles = [
|
||||||
|
./authorized_keys
|
||||||
|
];
|
||||||
|
appuser = {
|
||||||
|
isNormalUser = true;
|
||||||
|
group = "appuser";
|
||||||
|
password = "";
|
||||||
|
packages = with pkgs; [
|
||||||
|
graphfix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings.PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
services.openssh.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue