nixos-configs/modules/options.nix

31 lines
613 B
Nix
Raw Normal View History

2023-03-21 10:37:27 +01:00
{ config, options, lib, home-manager, ... }:
with lib;
2023-03-28 16:34:46 +02:00
with lib.my; {
options = with types; { user = mkOpt attrs { }; };
2023-03-21 10:37:27 +01:00
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 = {
2023-03-28 16:34:46 +02:00
enableNixpkgsReleaseCheck = true;
2023-03-21 10:37:27 +01:00
stateVersion = config.system.stateVersion;
};
};
};
};
}