Restructure Groups (and Permissions)

master
David Crompton 2023-10-19 10:20:35 -04:00
parent 7bfcf34132
commit 351a03ba76
10 changed files with 20 additions and 15 deletions

View File

@ -7,5 +7,9 @@
./users/spandan.nix ./users/spandan.nix
./users/matlab-server.nix ./users/matlab-server.nix
./users/frances.nix ./users/frances.nix
# Groups
./users/groups/admin.nix
./users/groups/nfrf.nix
]; ];
} }

View File

@ -1,7 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
users.users.alan = { users.users.alan = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ];
homeSize = "50g"; homeSize = "50g";
homeProjectId = 103; homeProjectId = 103;
packages = with pkgs; [ packages = with pkgs; [

View File

@ -1,7 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
users.users.carol = { users.users.carol = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ];
homeSize = "50g"; homeSize = "50g";
homeProjectId = 102; homeProjectId = 102;
packages = with pkgs; [ packages = with pkgs; [

View File

@ -1,7 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
users.users.darian = { users.users.darian = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ];
homeSize = "50g"; homeSize = "50g";
homeProjectId = 101; homeProjectId = 101;
packages = with pkgs; [ packages = with pkgs; [

View File

@ -1,7 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
users.users.david = { users.users.david = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ];
homeSize = "50g"; homeSize = "50g";
homeProjectId = 100; homeProjectId = 100;
packages = with pkgs; [ packages = with pkgs; [

View File

@ -1,10 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
users.users.frances = { users.users.frances = {
isNormalUser = true; isNormalUser = true;
extraGroups = [
"wheel"
"mousetbi"
];
homeSize = "50g"; homeSize = "50g";
homeProjectId = 106; homeProjectId = 106;
packages = with pkgs; [ packages = with pkgs; [
@ -12,5 +8,4 @@
]; ];
initialHashedPassword = "$y$j9T$I9LtX8Vx/2RKuUT1HjPKN/$TmoQPB/J7y3owZf80oWZjLPv//CVeUd8gVttcFeINQA"; initialHashedPassword = "$y$j9T$I9LtX8Vx/2RKuUT1HjPKN/$TmoQPB/J7y3owZf80oWZjLPv//CVeUd8gVttcFeINQA";
}; };
users.groups."mousetbi" = { };
} }

View File

@ -0,0 +1,8 @@
{ ... }: {
users.groups."wheel" = {
members = [
"root"
"david"
];
};
}

View File

@ -0,0 +1,8 @@
{ ... }: {
users.groups."nfrf" = {
members = [
"spandan"
"frances"
];
};
}

View File

@ -1,7 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
users.users.matlab-server = { users.users.matlab-server = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ];
homeSize = "15g"; homeSize = "15g";
homeProjectId = 105; homeProjectId = 105;
packages = with pkgs; [ packages = with pkgs; [

View File

@ -1,15 +1,10 @@
{ pkgs, ... }: { { pkgs, ... }: {
users.users.spandan = { users.users.spandan = {
isNormalUser = true; isNormalUser = true;
extraGroups = [
"wheel"
"mousetbi"
];
homeSize = "50g"; homeSize = "50g";
homeProjectId = 104; homeProjectId = 104;
packages = with pkgs; [ packages = with pkgs; [
]; ];
}; };
users.groups."mousetbi" = { };
} }