sops: disable secrets if no sops

This commit is contained in:
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 let
cfg = config.snowhawk.git; cfg = config.snowhawk.git;
macos = config.snowhawk.macos.enable; macos = config.snowhawk.macos.enable;
sops = config.snowhawk.sops.enable;
in in
{ {
options.snowhawk.git = { options.snowhawk.git = {
@ -70,7 +71,7 @@ in
sops.secrets = sops.secrets =
let home = config.home.homeDirectory; let home = config.home.homeDirectory;
in { in lib.mkIf sops {
"private_keys/personal_git" = { "private_keys/personal_git" = {
path = "${home}/.ssh/personal_git"; path = "${home}/.ssh/personal_git";
}; };

View file

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