From 630b022918ad35256756293af0e4aefb522a1874 Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 9 Oct 2023 16:42:32 +0900 Subject: feat(home/security): init --- home/profiles/base/default.nix | 3 --- home/profiles/security/default.nix | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 home/profiles/security/default.nix (limited to 'home') 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 + ]; + }; +} -- cgit 1.4.1