nixos-configs/modules/options.nix

33 lines
575 B
Nix
Raw Normal View History

2023-03-21 10:37:27 +01:00
{ 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;
};
};
};
};
}