mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
refactor: systems/ folder
This commit is contained in:
parent
a06248ba9a
commit
41b772c6d1
22 changed files with 10 additions and 10 deletions
10
.sops.yaml
10
.sops.yaml
|
|
@ -3,9 +3,9 @@ keys:
|
||||||
- &mew 65BD3044771CB6FB
|
- &mew 65BD3044771CB6FB
|
||||||
- &tewi_gen age17haatqc7gpk9t690affyqcvwmhmz0us95en2r7qpqzw29tpq3ffspld0cf
|
- &tewi_gen age17haatqc7gpk9t690affyqcvwmhmz0us95en2r7qpqzw29tpq3ffspld0cf
|
||||||
- &tewi_osh age172nhlv3py990k2rgw64hy27hffmnpv6ssxyu9fepww7zxfgg347qna4gzt
|
- &tewi_osh age172nhlv3py990k2rgw64hy27hffmnpv6ssxyu9fepww7zxfgg347qna4gzt
|
||||||
- &mew_osh age16vcudjuaf3j28vlc44n78ly9eztrwekjss2kstzx9yhhutl9vpdsq58wtv
|
- &tei_osh age16vcudjuaf3j28vlc44n78ly9eztrwekjss2kstzx9yhhutl9vpdsq58wtv
|
||||||
creation_rules:
|
creation_rules:
|
||||||
- path_regex: 'tewi/secrets\.yaml$'
|
- path_regex: 'systems/tewi/secrets\.yaml$'
|
||||||
shamir_threshold: 1
|
shamir_threshold: 1
|
||||||
key_groups:
|
key_groups:
|
||||||
- pgp: &pgp_common
|
- pgp: &pgp_common
|
||||||
|
|
@ -14,13 +14,13 @@ creation_rules:
|
||||||
age:
|
age:
|
||||||
- *tewi_gen
|
- *tewi_gen
|
||||||
- *tewi_osh
|
- *tewi_osh
|
||||||
- path_regex: 'mew/secrets\.yaml$'
|
- path_regex: 'systems/tei/secrets\.yaml$'
|
||||||
shamir_threshold: 1
|
shamir_threshold: 1
|
||||||
key_groups:
|
key_groups:
|
||||||
- pgp: *pgp_common
|
- pgp: *pgp_common
|
||||||
age:
|
age:
|
||||||
- *mew_osh
|
- *tei_osh
|
||||||
- path_regex: '[^/]+/secrets\.yaml$'
|
- path_regex: 'systems/[^/]+/secrets\.yaml$'
|
||||||
shamir_threshold: 1
|
shamir_threshold: 1
|
||||||
key_groups:
|
key_groups:
|
||||||
- pgp: *pgp_common
|
- pgp: *pgp_common
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ pkgs.mkShell {
|
||||||
export CI_PLATFORM="impure"
|
export CI_PLATFORM="impure"
|
||||||
export NF_CONFIG_ROOT=''${NF_CONFIG_ROOT-${toString ./.}}
|
export NF_CONFIG_ROOT=''${NF_CONFIG_ROOT-${toString ./.}}
|
||||||
export NIX_PATH="$NIX_PATH:home=$NF_CONFIG_ROOT"
|
export NIX_PATH="$NIX_PATH:home=$NF_CONFIG_ROOT"
|
||||||
|
export NIX_SSHOPTS="''${NIX_SSHOPTS--p62954}"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
8
meta.nix
8
meta.nix
|
|
@ -21,19 +21,19 @@
|
||||||
{
|
{
|
||||||
network.nodes.tewi = {
|
network.nodes.tewi = {
|
||||||
imports = [
|
imports = [
|
||||||
./tewi/nixos.nix
|
./systems/tewi/nixos.nix
|
||||||
nixfiles.nixos.base
|
nixfiles.nixos.base
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
network.nodes.mew = {
|
network.nodes.tei = {
|
||||||
imports = [
|
imports = [
|
||||||
./mew/nixos.nix
|
./systems/tei/nixos.nix
|
||||||
nixfiles.nixos.base
|
nixfiles.nixos.base
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
network.nodes.reisen-ct = {
|
network.nodes.reisen-ct = {
|
||||||
imports = [
|
imports = [
|
||||||
./ct/nixos.nix
|
./systems/ct/nixos.nix
|
||||||
nixfiles.nixos.base
|
nixfiles.nixos.base
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ NF_CONFIG_ROOT=${NF_CONFIG_ROOT-.}
|
||||||
NF_HOST=${NF_HOST-tewi}
|
NF_HOST=${NF_HOST-tewi}
|
||||||
NIXOS_TOPLEVEL=network.nodes.$NF_HOST.system.build.toplevel
|
NIXOS_TOPLEVEL=network.nodes.$NF_HOST.system.build.toplevel
|
||||||
NF_ADDR=${NF_ADDR-${NF_HOST}}
|
NF_ADDR=${NF_ADDR-${NF_HOST}}
|
||||||
export NIX_SSHOPTS="${NIX_SSHOPTS--p62954}"
|
|
||||||
|
|
||||||
if [[ $1 = tarball ]]; then
|
if [[ $1 = tarball ]]; then
|
||||||
shift
|
shift
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue