From 25218cc40470ad9bf2e1c68f8226f44dee17c529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Barnouin?= Date: Thu, 28 Nov 2024 11:39:31 +0100 Subject: [PATCH] Solve initalPassword error --- flake.nix | 3 +++ secrets/initialPassword.age | 9 +++++++++ services/minimalConfig/default.nix | 1 - 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 secrets/initialPassword.age diff --git a/flake.nix b/flake.nix index 2bda38f..b4e9378 100644 --- a/flake.nix +++ b/flake.nix @@ -57,6 +57,9 @@ inherit system; modules = [ agenix.nixosModules.default + { + age.secrets.initialPassword.file = ./secrets/initialPassword.age; + } "${inputs.nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix" "${inputs.self}/services" { diff --git a/secrets/initialPassword.age b/secrets/initialPassword.age new file mode 100644 index 0000000..beb356e --- /dev/null +++ b/secrets/initialPassword.age @@ -0,0 +1,9 @@ +age-encryption.org/v1 +-> ssh-ed25519 OWkVXw Kp9otTIwi3SuVG43UebS2B+bvp6uy81KIIPIeJSW8iE +xXX6N1WrkxNLOC4ClZo9XzUZOdFK6210trH2GS5+N0E +-> ssh-ed25519 MTO1pg 70GcDYGKyG0w0s1ehWvcid1JKNRY3vRPeQhnEfHDWBI +Fcq3ZR6iA0J4CUBuQeVIyRoGMu88bd9oBrwGCJKicBE +-> ssh-ed25519 wnEUpw m7HRrztgLMS90k3cwzqBkMKfbji0Ub8atDwTGJNeq0c +rEPjFTG+hEPHNoLOyhmcY4QMJ4DYIIhBR10GVZqcIuo +--- eXz18+bRHesrblBjD/aqwFkAXUhEL741swR1csHpoXU +Ô|}pÁ#¢ç®,\‚m:(·¸ª# ëHH¡aÃÒ¸ß_~ª7 ž(5EgÈÏOQY[»r U;e \ No newline at end of file diff --git a/services/minimalConfig/default.nix b/services/minimalConfig/default.nix index e62bfea..66c7e01 100644 --- a/services/minimalConfig/default.nix +++ b/services/minimalConfig/default.nix @@ -28,7 +28,6 @@ options = "--delete-older-than 7d"; }; - age.secrets.initialPassword.file = ./secrets/initialPassword.age; security.sudo.wheelNeedsPassword = false; users = { users.tbarnouin = {