This commit is contained in:
Bryan Ramos 2024-01-28 05:48:14 -05:00
parent 87b040ba90
commit a530f2d7b8
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
5 changed files with 12 additions and 12 deletions

View file

@ -1,10 +1,10 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
with lib; with lib;
let let
cfg = config.modules.browsers; cfg = config.modules.browsers;
in in
{ options.modules.browsers = { enable = mkEnableOption "browsers"; }; { options.modules.browsers = { enable = mkEnableOption "browsers"; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.firefox.enable = true; programs.firefox.enable = true;

View file

@ -1,7 +1,7 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
{ {
imports = [ imports = [
./alacritty ./alacritty
./bash ./bash
./browsers ./browsers
@ -13,5 +13,5 @@
./neovim ./neovim
./security ./security
./utils ./utils
]; ];
} }

View file

@ -1,10 +1,10 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
with lib; with lib;
let let
cfg = config.modules.fun; cfg = config.modules.fun;
in in
{ options.modules.fun = { enable = mkEnableOption "fun"; }; { options.modules.fun = { enable = mkEnableOption "fun"; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.obs-studio = { programs.obs-studio = {

View file

@ -1,14 +1,14 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
with lib; with lib;
let let
cfg = config.modules.security; cfg = config.modules.security;
in in
{ options.modules.security = { enable = mkEnableOption "security"; }; { options.modules.security = { enable = mkEnableOption "security"; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
pass wireguard-tools ipscan pass wireguard-tools ipscan
]; ];
}; };
} }

View file

@ -1,10 +1,10 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
with lib; with lib;
let let
cfg = config.modules.utils; cfg = config.modules.utils;
in in
{ options.modules.utils = { enable = mkEnableOption "utils"; }; { options.modules.utils = { enable = mkEnableOption "utils"; };
config = mkIf cfg.enable { config = mkIf cfg.enable {