better user config
This commit is contained in:
parent
f52c5680eb
commit
3f74cbcfd7
8 changed files with 46 additions and 37 deletions
|
|
@ -32,24 +32,18 @@
|
|||
description = "Type of machine for appropriate defaults";
|
||||
};
|
||||
|
||||
# Users
|
||||
users = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [
|
||||
"osbm"
|
||||
]
|
||||
++ lib.optionals (
|
||||
config.osbmModules.machineType == "desktop" || config.osbmModules.machineType == "laptop"
|
||||
) [ "bayram" ];
|
||||
description = "List of users to create. `osbm` is my main user, and `bayram` is for my family (only on desktop/laptop).";
|
||||
};
|
||||
|
||||
defaultUser = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "osbm";
|
||||
description = "Default user for the system";
|
||||
};
|
||||
|
||||
familyUser.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable family user account";
|
||||
};
|
||||
|
||||
# Home Manager
|
||||
homeManager = {
|
||||
enable = lib.mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue