From 2c3fed9df79eaf6e0332df35f994550988206b7e Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 24 Sep 2023 12:05:19 +0100 Subject: [PATCH] Add initial hashed password for users Make users immutable for server --- flake.nix | 2 ++ hosts/Legion/configuration.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index bd0bd518..5ee99a6c 100644 --- a/flake.nix +++ b/flake.nix @@ -174,6 +174,8 @@ description = "Evie Litherland-Smith"; extraGroups = [ "networkmanager" "wheel" "video" ]; shell = pkgs.${shell}; + initialHashedPassword = + "$y$j9T$tHIPQt09Kf3KH2eIRze3g/$2mwSlcq27DTGvHNPJ5EP9/1CfL3bXP0F6oS/Vuffmn3"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIANfkqd5lPTsSPU3SRYnAa1UjCYDmDeBTyzq5McmWlm6 xenia@Vanguard" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINI1dWlS16Keil0MGPWmMsBzx8F9ylfz+fRwxUr8/tZ/ ion" diff --git a/hosts/Legion/configuration.nix b/hosts/Legion/configuration.nix index 11830ccf..3572264a 100644 --- a/hosts/Legion/configuration.nix +++ b/hosts/Legion/configuration.nix @@ -12,6 +12,7 @@ in { # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + users.mutableUsers = false; system.autoUpgrade = { enable = true; dates = "02:00";