30 lines
454 B
Nix
30 lines
454 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [ ];
|
|
|
|
options.me = {
|
|
sops.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
example = true;
|
|
description = "Whether we want to install sops.";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.me.sops.enable (
|
|
lib.mkMerge [
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
sops # For encrypting kubernetes secrets.
|
|
];
|
|
}
|
|
]
|
|
);
|
|
}
|