From a587e8b0f6254bed13d2b0abb640989b8e99332b Mon Sep 17 00:00:00 2001 From: Gabriella Bere Date: Fri, 6 Sep 2024 19:25:57 +0100 Subject: [PATCH] add initialHashedPassword for user to allow sudo access --- hosts/biggerpi/configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/biggerpi/configuration.nix b/hosts/biggerpi/configuration.nix index 36c5c6f..147ca8b 100644 --- a/hosts/biggerpi/configuration.nix +++ b/hosts/biggerpi/configuration.nix @@ -11,6 +11,9 @@ ./disk-config.nix ]; + # Enable flakes + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -57,6 +60,7 @@ users.users.blue = { isNormalUser = true; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + initialHashedPassword = "$y$j9T$TbW09JXLRpNJ924xc5JEf1$YNroqf2T7AUnVzKi933eLRUp/0Bez8itOeMYsLw9g3A"; packages = with pkgs; [ neovim tree