Modules: Add sops-nix module
This commit is contained in:
@ -248,9 +248,6 @@ with mylib.networking; {
|
|||||||
libimobiledevice
|
libimobiledevice
|
||||||
ifuse
|
ifuse
|
||||||
usbmuxd
|
usbmuxd
|
||||||
|
|
||||||
# Secrets handling
|
|
||||||
# inputs.agenix.packages.${system}.default
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# It is preferred to use the module (if it exists) over environment.systemPackages,
|
# It is preferred to use the module (if it exists) over environment.systemPackages,
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
./docker
|
./docker
|
||||||
./fonts
|
./fonts
|
||||||
./mime
|
./mime
|
||||||
./polkit
|
|
||||||
./network
|
./network
|
||||||
|
./polkit
|
||||||
|
./sops
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
15
system/modules/sops/default.nix
Normal file
15
system/modules/sops/default.nix
Normal 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];
|
||||||
|
};
|
||||||
|
}
|
6
system/modules/sops/options.nix
Normal file
6
system/modules/sops/options.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
}
|
7
system/modules/sops/sops.yaml
Normal file
7
system/modules/sops/sops.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
keys:
|
||||||
|
- &christoph 2D77520CF698928A855E0B9A2AB59FDA7728388B
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- pgp:
|
||||||
|
- *christoph
|
Reference in New Issue
Block a user