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 = {
bash.enable = true;
git.enable = true;
security = {
enable = true;
gpg.enable = true;
security.enable = true;
};
utils = {
enable = true;

View file

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

View file

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

View file

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

View file

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