auto: bootstrapping sparky

This commit is contained in:
Sam 2024-05-26 13:57:10 +01:00
parent 29ef289456
commit 280d7a6213
2 changed files with 5 additions and 6 deletions

View File

@ -228,11 +228,11 @@
"nix-secrets": {
"flake": false,
"locked": {
"lastModified": 1716728141,
"narHash": "sha256-p9o7xF5Q1II/ngoYw0R+LMTXX3Mehy16e+cs6f1AZgI=",
"lastModified": 1716728224,
"narHash": "sha256-dgsNHeMkH4z++dpZvNXEDySvJdalXmz4Xz7JNyWxH1w=",
"ref": "refs/heads/master",
"rev": "5a984789ff07c749772ece6fcb80373bc218048e",
"revCount": 42,
"rev": "d0273ccbae8ca91ff7684a7b65f328eb28a3cb79",
"revCount": 43,
"type": "git",
"url": "ssh://git@git.bitlab21.com/sam/nix-secrets.git"
},

View File

@ -3,7 +3,6 @@ let
pubKeys = lib.filesystem.listFilesRecursive (../common/users/keys);
secretsDirectory = builtins.toString inputs.nix-secrets;
secretsFile = "${secretsDirectory}/secrets.yaml";
sopsHashedPasswordFile = lib.optionalString (lib.hasAttr "sops-nix" inputs) config.sops.secrets."passwords/root".path;
in
{
imports =
@ -11,7 +10,7 @@ in
# Disk configuration
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
(import ../common/disks/luks-btrfs-subvolumes.nix { device = "/dev/vda"; keyFile = "${sopsHashedPasswordFile}"; })
(import ../common/disks/luks-btrfs-subvolumes.nix { device = "/dev/vda" ; })
../common/optional/btrfs-impermanence.nix
inputs.impermanence.nixosModules.impermanence