1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/secrets/default.nix
2022-05-31 15:19:11 +02:00

16 lines
258 B
Nix

{ config, pkgs, lib, ... }:
with lib; {
options.elss.sops.enable = mkEnableOption "Use sops config";
config =
let
cfg = config.elss.sops;
in
mkIf cfg.enable {
sops = {
defaultSopsFile = ./secrets.yaml;
};
};
}