aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/home/secrets.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-01-13 22:11:02 -0800
committerPreston Pan <ret2pop@gmail.com>2025-01-13 22:11:02 -0800
commitdd461e48043dabee4694e2b200f4c1d9cfdbc3d9 (patch)
treebc6c481be908e92e52d7828caf17365d00f5e7b7 /nix/modules/home/secrets.nix
parentd878a0353ba8cec87df4f79d59864c92b1ea4cea (diff)
merge these two repos into one
Diffstat (limited to 'nix/modules/home/secrets.nix')
-rw-r--r--nix/modules/home/secrets.nix19
1 files changed, 19 insertions, 0 deletions
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}" = {};
+ };
+ };
+}