Initial commit
This commit is contained in:
commit
faec0a9026
26 changed files with 442 additions and 0 deletions
26
modules/sops.nix
Normal file
26
modules/sops.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
sops = config.maid.sops;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
maid = {
|
||||
sops = {
|
||||
work.enable = lib.mkEnableOption "work secrets";
|
||||
viendesu.enable = lib.mkEnableOption "VienDesu! secrets";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config.sops.secrets = lib.mkMerge [
|
||||
(lib.mkIf sops.work.enable {
|
||||
"work/vpn/ovpn" = {};
|
||||
"work/vpn/shadowsocks" = {};
|
||||
"work/vpn/password" = {};
|
||||
})
|
||||
(lib.mkIf sops.viendesu.enable {
|
||||
"shadowsocks/gneg" = {};
|
||||
"shadowsocks/yor" = {};
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue