Add nathan user
This commit is contained in:
parent
133bd3e673
commit
92c095c8a5
|
@ -31,11 +31,12 @@
|
|||
inputs.nixos-wsl.nixosModules.default
|
||||
# Our modules
|
||||
(import ../../modules/base.nix {inherit inputs;})
|
||||
(import ../../modules/user.nix {inherit inputs;mutableUsers = true;})
|
||||
];
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
wsl.enable = true;
|
||||
wsl.defaultUser = "nixos";
|
||||
wsl.defaultUser = "nathan";
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
|
|
30
nixos/modules/user.nix
Normal file
30
nixos/modules/user.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
inputs,
|
||||
mutableUsers ? false,
|
||||
username ? "nathan",
|
||||
homedir ? "/home/nathan",
|
||||
}:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
security.polkit = { enable = true; };
|
||||
users = {
|
||||
inherit mutableUsers;
|
||||
users.${username} = {
|
||||
home = homedir;
|
||||
description = "Nathan McCarty";
|
||||
shell = pkgs.nushell;
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
];
|
||||
hashedPassword = "$6$ShBAPGwzKZuB7eEv$cbb3erUqtVGFo/Vux9UwT2NkbVG9VGCxJxPiZFYL0DIc3t4GpYxjkM0M7fFnh.6V8MoSKLM/TvOtzdWbYwI58.";
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue