sops: disable secrets if no sops

sh-initrd-on-root
Zynh Ludwig 2024-07-24 00:24:16 -07:00
parent dddd1a9ec6
commit 3fe55b566a
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@
let
cfg = config.snowhawk.git;
macos = config.snowhawk.macos.enable;
sops = config.snowhawk.sops.enable;
in
{
options.snowhawk.git = {
@ -70,7 +71,7 @@ in
sops.secrets =
let home = config.home.homeDirectory;
in {
in lib.mkIf sops {
"private_keys/personal_git" = {
path = "${home}/.ssh/personal_git";
};

View File

@ -2,6 +2,7 @@
let
cfg = config.snowhawk.ssh;
sops = config.snowhawk.sops.enable;
in
{
options.snowhawk.ssh = {
@ -41,7 +42,7 @@ in
sops.secrets =
let home = config.home.homeDirectory;
in {
in lib.mkIf sops {
"private_keys/msiserver" = {
path = "${home}/.ssh/msiserver";
};