about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-10-09 16:42:32 +0900
committersefidel <contact@sefidel.net>2023-10-09 16:42:32 +0900
commit630b022918ad35256756293af0e4aefb522a1874 (patch)
tree9617a92f3cc4a11bfa822bcf78cc6a2b0c386282
parent7b20504301d6593d16f6215fdb2024aa30d5193c (diff)
downloadnixrc-630b022918ad35256756293af0e4aefb522a1874.tar.gz
nixrc-630b022918ad35256756293af0e4aefb522a1874.zip
feat(home/security): init
-rw-r--r--home/profiles/base/default.nix3
-rw-r--r--home/profiles/security/default.nix18
2 files changed, 18 insertions, 3 deletions
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix
index 1be9e21..dd49511 100644
--- a/home/profiles/base/default.nix
+++ b/home/profiles/base/default.nix
@@ -49,9 +49,6 @@ in
       pkgs.tree
       pkgs.neovim
 
-      pkgs.yubikey-manager
-      pkgs.age-plugin-yubikey
-
       # Common build tools
       (pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override { extensions = [ "rust-src" ]; }))
       pkgs.go
diff --git a/home/profiles/security/default.nix b/home/profiles/security/default.nix
new file mode 100644
index 0000000..97bc0f3
--- /dev/null
+++ b/home/profiles/security/default.nix
@@ -0,0 +1,18 @@
+{ config, lib, pkgs, ... }:
+let cfg = config.profiles.security;
+in
+{
+  options.profiles.security = {
+    enable = lib.mkEnableOption
+      "Profile for security-related packages";
+  };
+
+  config = lib.mkIf cfg.enable {
+    home.packages = [
+      pkgs.yubikey-manager
+      pkgs.age-plugin-yubikey
+
+      pkgs.keepassxc
+    ];
+  };
+}