aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/home/secrets.nix
blob: 64eab7349a72fbe3fc2c949f1be60747a594807a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ lib, config, pkgs, inputs, ... }:
{
  imports = [
    ../vars.nix
  ];

  options = {
    secrets.enable = lib.mkEnableOption "enables encrypted secrets on system";
  };

  config = lib.mkIf config.secrets.enable {
    home-manager = {
      sharedModules = [
        inputs.sops-nix.homeManagerModules.sops
      ];
      users."${user.user}" = {};
    };
  };
}