mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-06 12:59:22 +02:00
some sops stuff
This commit is contained in:
parent
5a3656cf11
commit
dda02c86f8
3 changed files with 54 additions and 0 deletions
26
nixos-modules/sops/default.nix
Normal file
26
nixos-modules/sops/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.jopejoe1.sops;
|
||||
in
|
||||
{
|
||||
options.jopejoe1.sops = {
|
||||
enable = (lib.mkEnableOption "Enable sops") // { default = true;};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
sops = {
|
||||
defaultSopsFile = ../../secrets/main.yaml;
|
||||
age = {
|
||||
keyFile = "/home/jopejoe1/.config/sops/age/keys.txt";
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue