From 56a1709be4f23c333730e159b219104c7fb073c2 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sat, 6 Sep 2025 16:36:03 +0200 Subject: add lib/asecret.nix --- default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 5841e24..ba860b9 100644 --- a/default.nix +++ b/default.nix @@ -4,16 +4,17 @@ with (import ./lib { inherit sources pkgs; }); eval { machines.bob.imports = [ - ({ self, config, ... }: { + ({ config, pkgs, self, ... }: { imports = [ "${sources.nixpkgs}/nixos/modules/testing/hardcodedSecret.nix" ./modules/userSecret.nix + self.config.outputs.nixosModules.asecret ]; networking.hostName = "bob"; testing.hardcodedSecret.rootPassword = { secret.consumer = config.users.users.root.passwordSecret; - content = "nixos"; + content = pkgs.asecret-lib.hashedPassword "rootPassword"; }; users.users.root.passwordSecret.provider = -- cgit v1.2.3