Adding users
This commit is contained in:
parent
823c6d0738
commit
bcb09055f8
9 changed files with 120 additions and 735 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, hostname, usernameList, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options.system = {
|
||||
|
|
@ -22,7 +22,6 @@
|
|||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
})
|
||||
{
|
||||
networking.hostName = hostname;
|
||||
system.stateVersion = lib.mkDefault "23.05";
|
||||
|
||||
time.timeZone = config.system.timezone;
|
||||
|
|
@ -39,24 +38,24 @@
|
|||
# XDG Compliance
|
||||
nix.settings.use-xdg-base-directories = true;
|
||||
|
||||
users = {
|
||||
users = builtins.listToAttrs (map (
|
||||
user: {
|
||||
name = user;
|
||||
value = {
|
||||
name = user;
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "network" ];
|
||||
};
|
||||
}
|
||||
) usernameList);
|
||||
groups = {
|
||||
wheel = {
|
||||
members = config.system.users.bigWheels;
|
||||
};
|
||||
network = { };
|
||||
};
|
||||
};
|
||||
# users = {
|
||||
# users = builtins.listToAttrs (map (
|
||||
# user: {
|
||||
# name = user;
|
||||
# value = {
|
||||
# name = user;
|
||||
# isNormalUser = true;
|
||||
# extraGroups = [ "network" ];
|
||||
# };
|
||||
# }
|
||||
# ) usernameList);
|
||||
# groups = {
|
||||
# wheel = {
|
||||
# members = config.system.users.bigWheels;
|
||||
# };
|
||||
# network = { };
|
||||
# };
|
||||
# };
|
||||
|
||||
fonts = {
|
||||
enableDefaultPackages = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue