summaryrefslogtreecommitdiffstats
path: root/system/users
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-08 13:53:11 +0200
committerSoispha <soispha@vhack.eu>2023-07-08 13:53:11 +0200
commit7815ef2a22e3ae684852f1f28cedae6354263034 (patch)
treef6f9eff9edd93a734f3f7550e6c42e87ef4dadc0 /system/users
parentFix(host/server1): Use working path to disk (diff)
downloadnixos-server-7815ef2a22e3ae684852f1f28cedae6354263034.zip
Fix(treewide): Move all persistent dirs to impermanence to set permissions
Diffstat (limited to 'system/users')
-rw-r--r--system/users/default.nix93
1 files changed, 46 insertions, 47 deletions
diff --git a/system/users/default.nix b/system/users/default.nix
index 3555221..7ea88c5 100644
--- a/system/users/default.nix
+++ b/system/users/default.nix
@@ -1,54 +1,53 @@
{pkgs, ...}: {
- users.mutableUsers = false;
- users.defaultUserShell = pkgs.zsh;
+ users = {
+ mutableUsers = false;
+ defaultUserShell = pkgs.zsh;
+ users = {
+ root = {
+ initialHashedPassword = null; # to lock root
+ openssh.authorizedKeys.keys = [];
+ };
- users.users = {
- root = {
- #uid = 0;
- initialHashedPassword = null; # to lock root
- openssh.authorizedKeys.keys = [
- ];
- };
-
- sils = {
- name = "sils";
- isNormalUser = true;
- home = "/srv/home/sils";
- initialHashedPassword = "$y$jFT$KpFnahVCE9JbE.5P3us8o.$ZzSxCusWqe3sL7b6DLgOXNNUf114tiiptM6T8lDxtKC";
- uid = 1000;
- extraGroups = [
- "wheel"
- ];
- openssh.authorizedKeys.keys = [
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG63gxw8JePmrC8Fni0pLV4TnPBhCPmSV9FYEdva+6s7 sils"
- ];
- };
+ sils = {
+ name = "sils";
+ isNormalUser = true;
+ home = "/home/sils";
+ initialHashedPassword = "$y$jFT$KpFnahVCE9JbE.5P3us8o.$ZzSxCusWqe3sL7b6DLgOXNNUf114tiiptM6T8lDxtKC";
+ uid = 1000;
+ extraGroups = [
+ "wheel"
+ ];
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG63gxw8JePmrC8Fni0pLV4TnPBhCPmSV9FYEdva+6s7 sils"
+ ];
+ };
- soispha = {
- name = "soispha";
- isNormalUser = true;
- home = "/srv/home/soispha";
- initialHashedPassword = "$y$jFT$3.8XmUyukZvpExMUxDZkI.$IVrJgm8ysNDF/0vDD2kF6w73ozXgr1LMVRNN4Bq7pv1";
- uid = 1001;
- extraGroups = [
- "wheel"
- ];
- openssh.authorizedKeys.keys = [
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGBFuTNNn71Rhfnop2cdz3r/RhWWlCePnSBOhTBbu2ME soispha"
- ];
- };
+ soispha = {
+ name = "soispha";
+ isNormalUser = true;
+ home = "/home/soispha";
+ initialHashedPassword = "$y$jFT$3.8XmUyukZvpExMUxDZkI.$IVrJgm8ysNDF/0vDD2kF6w73ozXgr1LMVRNN4Bq7pv1";
+ uid = 1001;
+ extraGroups = [
+ "wheel"
+ ];
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGBFuTNNn71Rhfnop2cdz3r/RhWWlCePnSBOhTBbu2ME soispha"
+ ];
+ };
- nightingale = {
- name = "nightingale";
- isNormalUser = true;
- home = "/srv/home/nightingale";
- initialHashedPassword = null; # TODO CHANGE
- uid = 1002;
- extraGroups = [
- "wheel"
- ];
- openssh.authorizedKeys.keys = [
- ];
+ nightingale = {
+ name = "nightingale";
+ isNormalUser = true;
+ home = "/home/nightingale";
+ initialHashedPassword = null; # TODO CHANGE
+ uid = 1002;
+ extraGroups = [
+ "wheel"
+ ];
+ openssh.authorizedKeys.keys = [
+ ];
+ };
};
};
}