diff options
author | 2025-09-06 16:36:03 +0200 | |
---|---|---|
committer | 2025-09-06 17:36:40 +0200 | |
commit | 56a1709be4f23c333730e159b219104c7fb073c2 (patch) | |
tree | cea1c9191464ef17079fe4584fb667eaceb8c385 /default.nix | |
parent | 3010bb10e3b23ea3bec47048775aaf9c325b51a9 (diff) |
add lib/asecret.nix
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
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 = |