Set up tinc for framework
This commit is contained in:
parent
58a49a71a8
commit
f4c514baa6
11 changed files with 94 additions and 12 deletions
|
@ -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 {
|
||||
|
|
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