diff --git a/flake.nix b/flake.nix index cdabe0d..6db30e4 100644 --- a/flake.nix +++ b/flake.nix @@ -125,14 +125,14 @@ proxmox-lxc = nixos-generators.nixosGenerate { inherit pkgs; format = "proxmox-lxc"; - modules = (util.base_imports) + modules = util.base_imports ++ [ (import ./nixos/templates/proxmox-lxc.nix) ]; }; proxmox-vm = nixos-generators.nixosGenerate { inherit system pkgs; format = "proxmox"; - modules = (util.base_imports) + modules = util.base_imports ++ [ (import ./nixos/templates/proxmox-vm.nix) ]; }; }; diff --git a/nixos/hosts/hades/vault-0/configuration.nix b/nixos/hosts/hades/vault-0/configuration.nix index 58bdcc9..6eb1237 100644 --- a/nixos/hosts/hades/vault-0/configuration.nix +++ b/nixos/hosts/hades/vault-0/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, hosts, ... }: { +_: { # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave @@ -16,5 +16,8 @@ enable = true; openFirewall = true; node_id = "hades-1"; + + autoUnseal = true; + autoUnsealKeysFile = "/var/lib/vault-unseal/keys.json"; }; }