Set up tinc for framework
This commit is contained in:
parent
58a49a71a8
commit
f4c514baa6
11 changed files with 94 additions and 12 deletions
18
modules/common/linux/sops.nix
Normal file
18
modules/common/linux/sops.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, ... }:
|
||||
with { inherit (lib) types mkOption mkEnableOption; };
|
||||
let
|
||||
cfg = config.common.linux.sops;
|
||||
in
|
||||
{
|
||||
options.common.linux.sops = {
|
||||
enable = mkEnableOption "Enable sops configuration";
|
||||
file = mkOption {
|
||||
type = types.path;
|
||||
description = "Path to the default sops file";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
sops.defaultSopsFile = cfg.file;
|
||||
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue