mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
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:
parent
dd38bf1c4c
commit
558e0b1623
@ -50,13 +50,12 @@
|
||||
];
|
||||
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
allowNoPasswordLogin = true;
|
||||
|
||||
users = {
|
||||
user = {
|
||||
isNormalUser = true;
|
||||
home = "/home/user";
|
||||
password = lib.mkForce null;
|
||||
extraGroups = lib.mkForce [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,14 +0,0 @@
|
||||
{
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
|
||||
users = {
|
||||
user = {
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
password = "user";
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user