nixos-config/modules/core/user.nix
2023-11-05 11:40:44 +01:00

39 lines
901 B
Nix

{ pkgs
, inputs
, ...
}:
let
name = "FrostPhoenix";
username = "frostphoenix";
#email = "t@gmail.com";
initialPassword = "dreamX";
packages = with pkgs; [
fish
];
in
{
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = { inherit inputs; };
users.${username} = {
imports = [ (import ./../home) ];
home.username = username;
home.homeDirectory = "/home/${username}";
home.stateVersion = "22.11";
programs.home-manager.enable = true;
};
};
users.users.${username} = {
isNormalUser = true;
initialPassword = initialPassword;
description = name;
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.zsh;
};
users.users.root.initialPassword = initialPassword;
nix.settings.allowed-users = [ "frostphoenix" ];
}