build0*: move into /hosts
This commit is contained in:
parent
67cb2115bf
commit
5e5678ec15
18 changed files with 11 additions and 11 deletions
.sops.yaml
dev
flake.nixhosts
build01
build02
configuration.nixgitconfig.txtnixpkgs-update-backup.nixnixpkgs-update.nixpackages-with-update-script.nixsecrets.yaml
build03
build04
modules/nixos
tasks.py
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
2
tasks.py
2
tasks.py
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue