feat(desktop): make secrets toggleable.
This commit is contained in:
parent
a6a36b8080
commit
35a1ef77cc
2 changed files with 21 additions and 11 deletions
|
@ -49,4 +49,5 @@
|
|||
crony.sunshine.enable = lib.mkDefault false;
|
||||
crony.nh.enable = lib.mkDefault true;
|
||||
crony.ollama.enable = lib.mkDefault false;
|
||||
crony.secrets.enable = lib.mkDefault false;
|
||||
}
|
||||
|
|
|
@ -1,16 +1,25 @@
|
|||
{
|
||||
age = {
|
||||
secrets = {
|
||||
wg-desktop = {
|
||||
file = ../../../secrets/wg-desktop.age;
|
||||
};
|
||||
crony-passwd = {
|
||||
file = ../../../secrets/crony-passwd-desktop.age;
|
||||
};
|
||||
root-passwd = {
|
||||
file = ../../../secrets/root-passwd.age;
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.secrets.enable = lib.mkEnableOption "Enable desktop secrets.";
|
||||
};
|
||||
config = lib.mkIf config.crony.secrets.enable {
|
||||
age = {
|
||||
secrets = {
|
||||
wg-desktop = {
|
||||
file = ../../../secrets/wg-desktop.age;
|
||||
};
|
||||
crony-passwd = {
|
||||
file = ../../../secrets/crony-passwd-desktop.age;
|
||||
};
|
||||
root-passwd = {
|
||||
file = ../../../secrets/root-passwd.age;
|
||||
};
|
||||
};
|
||||
identityPaths = ["/home/crony/.ssh/main"];
|
||||
};
|
||||
identityPaths = ["/home/crony/.ssh/main"];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue