security modularization

This commit is contained in:
Bryan Ramos 2024-05-12 12:10:35 -04:00
parent ff5a0fe6a3
commit b02daccf76
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
5 changed files with 13 additions and 5 deletions

View file

@ -22,8 +22,11 @@
user = { user = {
bash.enable = true; bash.enable = true;
git.enable = true; git.enable = true;
gpg.enable = true;
security.enable = true; security = {
enable = true;
gpg.enable = true;
};
utils = { utils = {
enable = true; enable = true;

View file

@ -2,7 +2,6 @@
imports = [ imports = [
./bash ./bash
./git ./git
./gpg
./gui ./gui
./security ./security
./utils ./utils

View file

@ -7,6 +7,7 @@ let
in in
{ options.modules.user.security = { enable = mkEnableOption "user.security"; }; { options.modules.user.security = { enable = mkEnableOption "user.security"; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
imports = [ ./modules ];
home.packages = with pkgs; [ home.packages = with pkgs; [
pass pass
wireguard-tools wireguard-tools

View file

@ -0,0 +1,5 @@
{
imports = [
./gpg
];
}

View file

@ -2,10 +2,10 @@
with lib; with lib;
let let
cfg = config.modules.user.gpg; cfg = config.modules.user.security.gpg;
in in
{ options.modules.user.gpg = { enable = mkEnableOption "user.gpg"; }; { options.modules.user.security.gpg = { enable = mkEnableOption "user.security.gpg"; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.gpg = { programs.gpg = {
enable = true; enable = true;