From dd461e48043dabee4694e2b200f4c1d9cfdbc3d9 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 13 Jan 2025 22:11:02 -0800 Subject: merge these two repos into one --- nix/modules/home/secrets.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nix/modules/home/secrets.nix (limited to 'nix/modules/home/secrets.nix') diff --git a/nix/modules/home/secrets.nix b/nix/modules/home/secrets.nix new file mode 100644 index 0000000..64eab73 --- /dev/null +++ b/nix/modules/home/secrets.nix @@ -0,0 +1,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}" = {}; + }; + }; +} -- cgit