mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
reorganization into flat profile-based modules
This commit is contained in:
parent
1bc8c22feb
commit
127227205d
15 changed files with 660 additions and 696 deletions
|
|
@ -6,27 +6,18 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.dotfiles.user;
|
||||
in
|
||||
{
|
||||
options.dotfiles.user = {
|
||||
enable = lib.mkEnableOption "User configuration";
|
||||
users.users."${userVars.username}" = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
];
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
users.users."${userVars.username}" = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.users."${userVars.username}" = {
|
||||
home.username = userVars.username;
|
||||
home.homeDirectory = "/home/${userVars.username}";
|
||||
home.stateVersion = "26.05";
|
||||
};
|
||||
home-manager.users."${userVars.username}" = {
|
||||
home.username = userVars.username;
|
||||
home.homeDirectory = "/home/${userVars.username}";
|
||||
home.stateVersion = "26.05";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue