meta: Merge home-manager and user module with system

Makes it easier to create a working and pre-configured system with
minimal configuration.
This commit is contained in:
Donovan Glover 2024-04-04 16:00:09 -04:00
parent dd38bf1c4c
commit 558e0b1623
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 32 additions and 35 deletions

View File

@ -50,13 +50,12 @@
];
users = {
mutableUsers = false;
allowNoPasswordLogin = true;
users = {
user = {
isNormalUser = true;
home = "/home/user";
password = lib.mkForce null;
extraGroups = lib.mkForce [ ];
};
};
};

View File

@ -1,18 +0,0 @@
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [{
home.stateVersion = "22.11";
programs.man.generateCaches = true;
}];
users = {
user = {
home.username = "user";
home.homeDirectory = "/home/user";
};
};
};
}

View File

@ -77,5 +77,35 @@ in
system = {
inherit (cfg) stateVersion;
};
users = {
mutableUsers = false;
users = {
user = {
isNormalUser = true;
uid = 1000;
password = "user";
extraGroups = [ "wheel" "networkmanager" ];
};
};
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [{
home.stateVersion = "22.11";
programs.man.generateCaches = true;
}];
users = {
user = {
home.username = "user";
home.homeDirectory = "/home/user";
};
};
};
};
}

View File

@ -1,14 +0,0 @@
{
users = {
mutableUsers = false;
users = {
user = {
isNormalUser = true;
uid = 1000;
password = "user";
extraGroups = [ "wheel" "networkmanager" ];
};
};
};
}