feat: removed user1 and tidied up user0 home

This commit is contained in:
Nick 2025-10-02 20:48:44 -05:00
parent 0665b883ab
commit 07a6bb2073
78 changed files with 43 additions and 280 deletions

View file

@ -225,9 +225,6 @@ in
userIdForUser0 = [
"uid=1000"
];
userIdForUser1 = [
"uid=1002"
];
dummy = [
];
@ -294,8 +291,6 @@ in
usersFunctions = {
user0 = "nick";
user0Label = "Nick";
user1 = "streaming";
user1Label = "Streaming";
};
};

View file

@ -3,11 +3,10 @@ let
inherit (moduleFunctions.devicesFunctions)
sambaPermissions
userIdForUser0
userIdForUser1
synologyIP
deviceNames
;
inherit (moduleFunctions.usersFunctions) user0 user0Label user1;
inherit (moduleFunctions.usersFunctions) user0 user0Label;
synologyName = deviceNames.nas;
in
{
@ -25,10 +24,4 @@ in
device = "//${synologyIP}/homes/${user0Label}";
options = sambaPermissions ++ userIdForUser0;
};
# Streaming Folder
folder1 = {
mount = "/mnt/media/${synologyName}/${user1}";
device = "//${synologyIP}/homes/${user0Label}";
options = sambaPermissions ++ userIdForUser1;
};
}

View file

@ -14,7 +14,7 @@
address2 = "nick@uprootnutrition.com";
};
paths = {
path0 = "/home/${user0}/Files/Projects"; # Git path
path0 = "/home/${user0}/projects"; # Git path
};
sshKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBF9TmImDoYDpsW5VMFbOcuK3aH4TWRtx/xGxT3yUtEN nick@desktop"

View file

@ -1,15 +0,0 @@
{ user1 }:
{
name = "Streaming";
aliases = {
};
email = {
address0 = "nick@upRootNutrition.com";
};
paths = {
path0 = "/home/${user1}/Files/Projects"; # Git path
};
sshKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBF9TmImDoYDpsW5VMFbOcuK3aH4TWRtx/xGxT3yUtEN nick@desktop"
];
}

View file

@ -3,15 +3,12 @@ let
inherit (moduleFunctions) usersFunctions;
configPath = ./config;
user0 = usersFunctions.user0;
user1 = usersFunctions.user1;
in
{
inherit
user0
user1
;
users = {
"${user0}" = import (configPath + /user0.nix) { inherit user0; };
"${user1}" = import (configPath + /user1.nix) { inherit user1; };
};
}