add initialHashedPassword for user to allow sudo access

This commit is contained in:
Gabriella Bere 2024-09-06 19:25:57 +01:00
parent c93aba6c27
commit a587e8b0f6

View file

@ -11,6 +11,9 @@
./disk-config.nix ./disk-config.nix
]; ];
# Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@ -57,6 +60,7 @@
users.users.blue = { users.users.blue = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" ]; # Enable sudo for the user.
initialHashedPassword = "$y$j9T$TbW09JXLRpNJ924xc5JEf1$YNroqf2T7AUnVzKi933eLRUp/0Bez8itOeMYsLw9g3A";
packages = with pkgs; [ packages = with pkgs; [
neovim neovim
tree tree