feat(nixos): Modularize users

This commit is contained in:
punkfairie 2025-01-06 18:29:12 -08:00
parent bb26cbf264
commit e788715c0f
No known key found for this signature in database
GPG key ID: B3C5488E9A1A7CA6
2 changed files with 12 additions and 8 deletions

View 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";
};
};
}

View file

@ -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";