Move home config into modules
This commit is contained in:
parent
b08fc5a41e
commit
d5cbf61286
299 changed files with 850 additions and 698 deletions
32
modules/options.nix
Normal file
32
modules/options.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ config, options, lib, home-manager, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
{
|
||||
options = with types; {
|
||||
user = mkOpt attrs { };
|
||||
};
|
||||
|
||||
config = {
|
||||
|
||||
user = {
|
||||
name = "froidmpa";
|
||||
description = "The primary user account";
|
||||
extraGroups = [ "wheel" "adbusers" ];
|
||||
isNormalUser = true;
|
||||
};
|
||||
|
||||
users.users.${config.user.name} = mkAliasDefinitions options.user;
|
||||
|
||||
home-manager = {
|
||||
useUserPackages = true;
|
||||
|
||||
users.${config.user.name} = {
|
||||
home = {
|
||||
stateVersion = config.system.stateVersion;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue