feat(nixos): Modularize users
This commit is contained in:
parent
bb26cbf264
commit
e788715c0f
2 changed files with 12 additions and 8 deletions
12
modules/nixos/base/users/default.nix
Normal file
12
modules/nixos/base/users/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{config, ...}: {
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
|
||||
users.users."${config.marleyos.my.name}" = {
|
||||
isNormalUser = true;
|
||||
description = config.marleyos.my.fullName;
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
hashedPassword = "$y$j9T$ztWf9WeUCENC2T12qS4mi1$51ihV/5cQ8mdJJrNe7MMguk4hPB61S5xHawsfi.1hL3";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -37,16 +37,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
users.users.marley = {
|
||||
isNormalUser = true;
|
||||
description = "Marley Rae";
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
};
|
||||
|
||||
programs.firefox.enable = true;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = [pkgs.vim pkgs.git];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
|
|
Loading…
Reference in a new issue