1

Modules: Add sops-nix module

This commit is contained in:
2025-07-09 15:36:40 +02:00
parent 8fcddf1f37
commit 789f068fea
5 changed files with 30 additions and 4 deletions

View File

@ -248,9 +248,6 @@ with mylib.networking; {
libimobiledevice
ifuse
usbmuxd
# Secrets handling
# inputs.agenix.packages.${system}.default
];
# It is preferred to use the module (if it exists) over environment.systemPackages,

View File

@ -5,7 +5,8 @@
./docker
./fonts
./mime
./polkit
./network
./polkit
./sops
];
}

View File

@ -0,0 +1,15 @@
{
config,
lib,
mylib,
pkgs,
...
}: let
inherit (config.modules) sops;
in {
options.modules.sops = import ./options.nix {inherit lib mylib;};
config = {
environment.systemPackages = [pkgs.sops];
};
}

View File

@ -0,0 +1,6 @@
{
lib,
mylib,
...
}: {
}

View File

@ -0,0 +1,7 @@
keys:
- &christoph 2D77520CF698928A855E0B9A2AB59FDA7728388B
creation_rules:
- path_regex: secrets.yaml$
key_groups:
- pgp:
- *christoph