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 = {
|
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;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./bash
|
./bash
|
||||||
./git
|
./git
|
||||||
./gpg
|
|
||||||
./gui
|
./gui
|
||||||
./security
|
./security
|
||||||
./utils
|
./utils
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
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;
|
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;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue