First commit
This commit is contained in:
41
modules/system/user.nix
Normal file
41
modules/system/user.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
host,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
|
||||
home-manager = {
|
||||
useUserPackages = true;
|
||||
useGlobalPkgs = true;
|
||||
extraSpecialArgs = { inherit inputs host; };
|
||||
|
||||
users.eclypse = {
|
||||
imports = [ ../home ];
|
||||
home = {
|
||||
username = "eclypse";
|
||||
homeDirectory = "/home/eclypse";
|
||||
stateVersion = "25.05";
|
||||
};
|
||||
programs.home-manager.enable = true;
|
||||
};
|
||||
|
||||
backupFileExtension = "backup3";
|
||||
};
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.eclypse = {
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
description = "Eclypse";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
hashedPasswordFile = config.age.secrets.eclypse-password.path;
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user