From b50a9511f96adcdda77d03d4b13099162bb71cee Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 24 Aug 2024 17:03:40 -0400 Subject: [PATCH] mauville: remove initrd ssh activation script --- hosts/mauville/default.nix | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/hosts/mauville/default.nix b/hosts/mauville/default.nix index 15bc1458..f335cac9 100644 --- a/hosts/mauville/default.nix +++ b/hosts/mauville/default.nix @@ -112,26 +112,7 @@ in { }; environment.variables.GDK_SCALE = "1.25"; - - system = { - activationScripts.gen-initrd-ssh.text = '' - KEY_PATH="/etc/secrets/initrd/ssh_host_ed25519_key" - - mkdir -p /etc/secrets/initrd - - # Check if the file already exists - if [ -f "$KEY_PATH" ]; then - echo "[initrd] ssh key exists at $KEY_PATH." - else - # Generate the SSH key if it doesn't exist - ${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f "$KEY_PATH" - echo "[initrd] ssh key generated at $KEY_PATH." - fi - ''; - - stateVersion = "24.05"; - }; - + system.stateVersion = "24.05"; zramSwap.memoryPercent = 100; ar = {