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/matlab-server.nix
./users/frances.nix
# Groups
./users/groups/admin.nix
./users/groups/nfrf.nix
];
}

View File

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

View File

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

View File

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

View File

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

View File

@ -1,10 +1,6 @@
{ pkgs, ... }: {
users.users.frances = {
isNormalUser = true;
extraGroups = [
"wheel"
"mousetbi"
];
homeSize = "50g";
homeProjectId = 106;
packages = with pkgs; [
@ -12,5 +8,4 @@
];
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, ... }: {
users.users.matlab-server = {
isNormalUser = true;
extraGroups = [ "wheel" ];
homeSize = "15g";
homeProjectId = 105;
packages = with pkgs; [

View File

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