secrets: move bluetooth/vpn secret defn to toplevel nix file
This commit is contained in:
@@ -15,18 +15,4 @@
|
|||||||
${install-bluetooth}/bin/install-bluetooth /run/secrets/bt
|
${install-bluetooth}/bin/install-bluetooth /run/secrets/bt
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
# TODO: use a glob, or a list, or something?
|
|
||||||
sops.secrets."bt/car" = {
|
|
||||||
sopsFile = ../../secrets/universal/bt/car.bin;
|
|
||||||
format = "binary";
|
|
||||||
};
|
|
||||||
sops.secrets."bt/earbuds" = {
|
|
||||||
sopsFile = ../../secrets/universal/bt/earbuds.bin;
|
|
||||||
format = "binary";
|
|
||||||
};
|
|
||||||
sops.secrets."bt/portable-speaker" = {
|
|
||||||
sopsFile = ../../secrets/universal/bt/portable-speaker.bin;
|
|
||||||
format = "binary";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@@ -50,8 +50,37 @@
|
|||||||
# sops.secrets."myservice/my_subdir/my_secret" = {};
|
# sops.secrets."myservice/my_subdir/my_secret" = {};
|
||||||
|
|
||||||
## universal secrets
|
## universal secrets
|
||||||
|
# TODO: glob these?
|
||||||
|
|
||||||
|
sops.secrets."router_passwd" = {
|
||||||
|
sopsFile = ../../secrets/universal.yaml;
|
||||||
|
};
|
||||||
|
sops.secrets."wg_ovpnd_us_privkey" = {
|
||||||
|
sopsFile = ../../secrets/universal.yaml;
|
||||||
|
};
|
||||||
|
sops.secrets."wg_ovpnd_us-atl_privkey" = {
|
||||||
|
sopsFile = ../../secrets/universal.yaml;
|
||||||
|
};
|
||||||
|
sops.secrets."wg_ovpnd_us-mi_privkey" = {
|
||||||
|
sopsFile = ../../secrets/universal.yaml;
|
||||||
|
};
|
||||||
|
sops.secrets."wg_ovpnd_ukr_privkey" = {
|
||||||
|
sopsFile = ../../secrets/universal.yaml;
|
||||||
|
};
|
||||||
|
|
||||||
|
sops.secrets."bt/car" = {
|
||||||
|
sopsFile = ../../secrets/universal/bt/car.bin;
|
||||||
|
format = "binary";
|
||||||
|
};
|
||||||
|
sops.secrets."bt/earbuds" = {
|
||||||
|
sopsFile = ../../secrets/universal/bt/earbuds.bin;
|
||||||
|
format = "binary";
|
||||||
|
};
|
||||||
|
sops.secrets."bt/portable-speaker" = {
|
||||||
|
sopsFile = ../../secrets/universal/bt/portable-speaker.bin;
|
||||||
|
format = "binary";
|
||||||
|
};
|
||||||
|
|
||||||
# TODO: use a glob, or a list, or something?
|
|
||||||
sops.secrets."iwd/community-university.psk" = {
|
sops.secrets."iwd/community-university.psk" = {
|
||||||
sopsFile = ../../secrets/universal/net/community-university.psk.bin;
|
sopsFile = ../../secrets/universal/net/community-university.psk.bin;
|
||||||
format = "binary";
|
format = "binary";
|
||||||
@@ -80,10 +109,6 @@
|
|||||||
sopsFile = ../../secrets/universal/net/iphone.psk.bin;
|
sopsFile = ../../secrets/universal/net/iphone.psk.bin;
|
||||||
format = "binary";
|
format = "binary";
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets."router_passwd" = {
|
|
||||||
sopsFile = ../../secrets/universal.yaml;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -28,9 +28,6 @@ let
|
|||||||
# to start: `systemctl start wg-quick-ovpnd-${name}`
|
# to start: `systemctl start wg-quick-ovpnd-${name}`
|
||||||
autostart = false;
|
autostart = false;
|
||||||
};
|
};
|
||||||
sops.secrets."wg_ovpnd_${name}_privkey" = {
|
|
||||||
sopsFile = ../../secrets/universal.yaml;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
in lib.mkMerge [
|
in lib.mkMerge [
|
||||||
(def-ovpn "us" {
|
(def-ovpn "us" {
|
||||||
|
Reference in New Issue
Block a user