Set up tinc for framework

This commit is contained in:
Natsu Kagami 2024-08-15 18:37:13 +02:00
parent 58a49a71a8
commit f4c514baa6
Signed by: nki
GPG key ID: 55A032EB38B49ADB
11 changed files with 94 additions and 12 deletions

View file

@ -115,7 +115,19 @@ let
};
in
{
imports = with modules; [ adb ios graphics wlr logitech kwallet virtualisation accounts rt-audio ];
imports = with modules; [
./sops.nix
adb
ios
graphics
wlr
logitech
kwallet
virtualisation
accounts
rt-audio
];
options.common.linux = {
enable = mkOption {

View 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" ];
};
}