first commit
This commit is contained in:
commit
58a3f28118
72 changed files with 3082 additions and 0 deletions
38
modules/core/user.nix
Normal file
38
modules/core/user.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ 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" ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue