feat: declare uid of main user for every device

This commit is contained in:
matt1432 2025-03-18 19:37:52 -04:00
parent 2cbca1d659
commit 1e43f14511
8 changed files with 10 additions and 3 deletions
configurations

View file

@ -25,6 +25,7 @@
# ------------------------------------------------ # ------------------------------------------------
users.users.${mainUser} = { users.users.${mainUser} = {
isNormalUser = true; isNormalUser = true;
uid = 1000;
hashedPassword = "$y$j9T$b6YdvHx1b/HOD6Kt3Tw1W.$yIy5Km1xBViJA2kra9l38S/0auhEHPdXOMb6RBhgxID"; hashedPassword = "$y$j9T$b6YdvHx1b/HOD6Kt3Tw1W.$yIy5Km1xBViJA2kra9l38S/0auhEHPdXOMb6RBhgxID";

View file

@ -26,6 +26,7 @@
# ------------------------------------------------ # ------------------------------------------------
users.users.${mainUser} = { users.users.${mainUser} = {
isNormalUser = true; isNormalUser = true;
uid = 1000;
hashedPassword = "$y$j9T$uCv3kB5LI3Shj/5liU9cS0$4s3wWoH4iY29DLC3lJwNaIcurcjsj8L02cMY4EDtnC6"; hashedPassword = "$y$j9T$uCv3kB5LI3Shj/5liU9cS0$4s3wWoH4iY29DLC3lJwNaIcurcjsj8L02cMY4EDtnC6";

View file

@ -29,6 +29,7 @@ in {
# ------------------------------------------------ # ------------------------------------------------
users.users.${mainUser} = { users.users.${mainUser} = {
isNormalUser = true; isNormalUser = true;
uid = 1000;
hashedPassword = hashedPassword =
if deviceName == "thingone" if deviceName == "thingone"

View file

@ -27,6 +27,7 @@
# ------------------------------------------------ # ------------------------------------------------
users.users.${mainUser} = { users.users.${mainUser} = {
isNormalUser = true; isNormalUser = true;
uid = 1000;
hashedPassword = "$y$j9T$CBC0wX9ZrZeXE296CWTvK.$xTJE54Pd4EPrv/Q4TQ42ahIDXQYoavcnwcsItw0hk.B"; hashedPassword = "$y$j9T$CBC0wX9ZrZeXE296CWTvK.$xTJE54Pd4EPrv/Q4TQ42ahIDXQYoavcnwcsItw0hk.B";

View file

@ -26,6 +26,7 @@
# ------------------------------------------------ # ------------------------------------------------
users.users.${mainUser} = { users.users.${mainUser} = {
isNormalUser = true; isNormalUser = true;
uid = 1000;
hashedPassword = "$y$j9T$DSLWphPlpiahIw7KQciF1/$FOjIbplU1Fknv5W.A15Xgdk.WNXP.zeWkJiewSUTGPC"; hashedPassword = "$y$j9T$DSLWphPlpiahIw7KQciF1/$FOjIbplU1Fknv5W.A15Xgdk.WNXP.zeWkJiewSUTGPC";

View file

@ -1,8 +1,8 @@
{...}: let {config, mainUser, ...}: let
globalEnv = { globalEnv = {
configPath = "/var/lib/docker-data"; configPath = "/var/lib/docker-data";
mainUID = "1000"; mainUID = toString config.users.users.${mainUser}.uid;
mainGID = "1000"; mainGID = toString config.users.users.${mainUser}.uid;
TZ = "America/New_York"; TZ = "America/New_York";
}; };
in { in {

View file

@ -27,6 +27,7 @@
users.users = { users.users = {
${mainUser} = { ${mainUser} = {
isNormalUser = true; isNormalUser = true;
uid = 1000;
hashedPassword = "$y$j9T$723InNIdzpJ1.TqxroiXa0$thewApg1l3lpgq.qAwh3k0c/.fu1H1TWRyA8dfjvpP0"; hashedPassword = "$y$j9T$723InNIdzpJ1.TqxroiXa0$thewApg1l3lpgq.qAwh3k0c/.fu1H1TWRyA8dfjvpP0";

View file

@ -29,6 +29,7 @@
# ------------------------------------------------ # ------------------------------------------------
users.users.${mainUser} = { users.users.${mainUser} = {
isNormalUser = true; isNormalUser = true;
uid = 1000;
hashedPassword = "$y$j9T$ZwnaqAzFjKB/1oJSvypdt.$CtQzgoUWxNutP1DsTBrFHXiTGP6JJp/bMchl1VaADSA"; hashedPassword = "$y$j9T$ZwnaqAzFjKB/1oJSvypdt.$CtQzgoUWxNutP1DsTBrFHXiTGP6JJp/bMchl1VaADSA";