sops: disable secrets if no sops
This commit is contained in:
parent
dddd1a9ec6
commit
3fe55b566a
2 changed files with 4 additions and 2 deletions
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue