summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
Diffstat (limited to 'tv')
-rw-r--r--tv/2configs/default.nix4
-rw-r--r--tv/3modules/charybdis/default.nix3
-rw-r--r--tv/3modules/ejabberd/default.nix3
3 files changed, 4 insertions, 6 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix
index 13699a3d5..5a1e90bc4 100644
--- a/tv/2configs/default.nix
+++ b/tv/2configs/default.nix
@@ -40,8 +40,8 @@ with config.krebs.lib;
mutableUsers = false;
users = {
tv = {
+ inherit (config.krebs.users.tv) home uid;
isNormalUser = true;
- uid = 1337;
extraGroups = [ "tv" ];
};
};
@@ -124,7 +124,7 @@ with config.krebs.lib;
0)
PS1='\[\e[1;31m\]\w\[\e[0m\] '
;;
- 1337)
+ ${toString config.krebs.users.tv.uid})
PS1='\[\e[1;32m\]\w\[\e[0m\] '
;;
*)
diff --git a/tv/3modules/charybdis/default.nix b/tv/3modules/charybdis/default.nix
index 5cb0c55b7..87cb37ef4 100644
--- a/tv/3modules/charybdis/default.nix
+++ b/tv/3modules/charybdis/default.nix
@@ -73,9 +73,8 @@ in {
};
users.users.${cfg.user.name} = {
- inherit (cfg.user) home name;
+ inherit (cfg.user) home name uid;
createHome = true;
- uid = genid cfg.user.name;
};
};
}
diff --git a/tv/3modules/ejabberd/default.nix b/tv/3modules/ejabberd/default.nix
index 4077da286..da108eb52 100644
--- a/tv/3modules/ejabberd/default.nix
+++ b/tv/3modules/ejabberd/default.nix
@@ -60,9 +60,8 @@ in {
};
users.users.${cfg.user.name} = {
- inherit (cfg.user) home name;
+ inherit (cfg.user) home name uid;
createHome = true;
- uid = genid cfg.user.name;
};
};
}