diff --git a/nodes/hosts/common/configuration.nix b/nodes/hosts/common/configuration.nix index 407d0e2..4be269d 100644 --- a/nodes/hosts/common/configuration.nix +++ b/nodes/hosts/common/configuration.nix @@ -13,6 +13,7 @@ ./system/bluetooth.nix ./system/locale.nix ./system/time.nix + ./system/users.nix ]; nixpkgs = { diff --git a/nodes/hosts/common/system/users.nix b/nodes/hosts/common/system/users.nix new file mode 100644 index 0000000..704144f --- /dev/null +++ b/nodes/hosts/common/system/users.nix @@ -0,0 +1,11 @@ +{ config, ... }: { + # Define a user account. Don't forget to set a password with ‘passwd’. + users.users.jay = { + isNormalUser = true; + description = "jay"; + #hashedPasswordFile = config.sops.secrets.password_hash.path; + hashedPassword = "$6$RTOXVXRP1iLIXnQb$rVtTeqlJ7g3AcZgftmVdKFnT2ggCsnVayPlT4beLST9Oz2LHGT2fdcOC/yaQkISK3wzFLqh47fSHgQvRUWpl41"; + extraGroups = [ "networkmanager" "wheel" ]; + }; +} + diff --git a/nodes/hosts/lappy/configuration.nix b/nodes/hosts/lappy/configuration.nix index b7b3597..fd0a8f7 100644 --- a/nodes/hosts/lappy/configuration.nix +++ b/nodes/hosts/lappy/configuration.nix @@ -41,15 +41,6 @@ # Enable touchpad support (enabled default in most desktopManager). services.libinput.enable = true; - # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.jay = { - isNormalUser = true; - extraGroups = [ "networkmanager" "wheel" ]; # Enable ‘sudo’ for the user. - packages = with pkgs; [ - tree - ]; - }; - # List packages installed in system profile. # You can use https://search.nixos.org/ to find more packages (and options). # environment.systemPackages = with pkgs; [