mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
security modularization
This commit is contained in:
parent
ff5a0fe6a3
commit
b02daccf76
5 changed files with 13 additions and 5 deletions
|
|
@ -22,8 +22,11 @@
|
|||
user = {
|
||||
bash.enable = true;
|
||||
git.enable = true;
|
||||
|
||||
security = {
|
||||
enable = true;
|
||||
gpg.enable = true;
|
||||
security.enable = true;
|
||||
};
|
||||
|
||||
utils = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
imports = [
|
||||
./bash
|
||||
./git
|
||||
./gpg
|
||||
./gui
|
||||
./security
|
||||
./utils
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
5
src/user/modules/security/modules/default.nix
Normal file
5
src/user/modules/security/modules/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./gpg
|
||||
];
|
||||
}
|
||||
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue