build0*: move into /hosts

This commit is contained in:
zowoq 2023-05-18 13:24:26 +10:00
parent 67cb2115bf
commit 5e5678ec15
18 changed files with 11 additions and 11 deletions

View file

@ -25,7 +25,7 @@ creation_rules:
- *ryantm - *ryantm
- *zimbatm - *zimbatm
- *zowoq - *zowoq
- path_regex: build01/[^/]+\.yaml$ - path_regex: hosts/build01/[^/]+\.yaml$
key_groups: key_groups:
- age: - age:
- *build01 - *build01
@ -33,7 +33,7 @@ creation_rules:
- *ryantm - *ryantm
- *zimbatm - *zimbatm
- *zowoq - *zowoq
- path_regex: build02/[^/]+\.yaml$ - path_regex: hosts/build02/[^/]+\.yaml$
key_groups: key_groups:
- age: - age:
- *build02 - *build02
@ -41,7 +41,7 @@ creation_rules:
- *ryantm - *ryantm
- *zimbatm - *zimbatm
- *zowoq - *zowoq
- path_regex: build03/[^/]+\.yaml$ - path_regex: hosts/build03/[^/]+\.yaml$
key_groups: key_groups:
- age: - age:
- *build03 - *build03
@ -49,7 +49,7 @@ creation_rules:
- *ryantm - *ryantm
- *zimbatm - *zimbatm
- *zowoq - *zowoq
- path_regex: build04/[^/]+\.yaml$ - path_regex: hosts/build04/[^/]+\.yaml$
key_groups: key_groups:
- age: - age:
- *build04 - *build04

View file

@ -26,7 +26,7 @@
excludes = [ excludes = [
"nix/sources.nix" "nix/sources.nix"
# vendored from external source # vendored from external source
"build02/packages-with-update-script.nix" "hosts/build02/packages-with-update-script.nix"
]; ];
}; };

View file

@ -98,19 +98,19 @@
{ {
build01 = nixosSystem { build01 = nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ ./build01/configuration.nix ]; modules = [ ./hosts/build01/configuration.nix ];
}; };
build02 = nixosSystem { build02 = nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ ./build02/configuration.nix ]; modules = [ ./hosts/build02/configuration.nix ];
}; };
build03 = nixosSystem { build03 = nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ ./build03/configuration.nix ]; modules = [ ./hosts/build03/configuration.nix ];
}; };
build04 = nixosSystem { build04 = nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ ./build04/configuration.nix ]; modules = [ ./hosts/build04/configuration.nix ];
}; };
}; };

View file

@ -1,6 +1,6 @@
{ config, inputs, lib, ... }: { config, inputs, lib, ... }:
let let
defaultSopsPath = "${toString inputs.self}/${config.networking.hostName}/secrets.yaml"; defaultSopsPath = "${toString inputs.self}/hosts/${config.networking.hostName}/secrets.yaml";
in in
{ {
sops.defaultSopsFile = lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath; sops.defaultSopsFile = lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath;

View file

@ -158,7 +158,7 @@ def decrypt_host_key(flake_attr, tmpdir):
"--extract", "--extract",
'["ssh_host_ed25519_key"]', '["ssh_host_ed25519_key"]',
"--decrypt", "--decrypt",
f"{ROOT}/{flake_attr}/secrets.yaml", f"{ROOT}/hosts/{flake_attr}/secrets.yaml",
], ],
check=True, check=True,
stdout=fh, stdout=fh,