Add default admin user and include in host/installer
This commit is contained in:
parent
e5118737af
commit
906a668987
3 changed files with 13 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
(inputs.nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
|
||||
inputs.lix-module.nixosModules.lixFromNixpkgs
|
||||
../modules/system/base.nix
|
||||
../modules/users/admin.nix
|
||||
];
|
||||
|
||||
networking.hostName = "nix-installer";
|
||||
|
|
|
|||
11
modules/users/admin.nix
Normal file
11
modules/users/admin.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
users.users.admin = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
hashedPassword = "$6$HrwFoHtYRwiTZsYo$gKNOvkQhjalczOLgoTXvVu1MaihYP4BdBnVpWkdoAf.5MAiV2mMPRibYyGv9ti1Q63AhGK7n4wOPjAU0O74mK0";
|
||||
};
|
||||
|
||||
security.sudo.wheelNeedsPassword = lib.mkDefault true;
|
||||
}
|
||||
|
|
@ -219,6 +219,7 @@ if [ ! -e "${host_file}" ]; then
|
|||
imports = [
|
||||
inputs.lix-module.nixosModules.lixFromNixpkgs
|
||||
../modules/system/base.nix
|
||||
../modules/users/admin.nix
|
||||
./${HOSTNAME}-hardware.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue