feat(systemModules:programs): add modules for various system programs

- bandwhich
- dconf
- seahorse
- wireshark
This commit is contained in:
ooks-io 2024-04-29 18:53:14 +12:00
parent f2e28fa618
commit a8b9d34e17
5 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{ lib, config, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.systemModules.programs.bandwhich;
in
{
options.systemModules.programs.bandwhich.enable = mkEnableOption "Enable bandwhich system module";
config = mkIf cfg.enable {
programs.bandwhich.enable = true;
};
}

View file

@ -0,0 +1,14 @@
{ lib, config, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.systemModules.programs.dconf;
in
{
options.systemModules.programs.dconf.enable = mkEnableOption "Enable dconf system module";
config = mkIf cfg.enable {
programs.dconf.enable = true;
};
}

View file

@ -3,6 +3,7 @@
{
imports = [
./gnomeServices.nix
./dconf
];
options.systemModules.programs = {

View file

@ -0,0 +1,14 @@
{ lib, config, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.systemModules.programs.seahorse;
in
{
options.systemModules.programs.seahorse.enable = mkEnableOption "Enable seahorse system module";
config = mkIf cfg.enable {
programs.seahorse.enable = true;
};
}

View file

@ -0,0 +1,14 @@
{ lib, config, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.systemModules.programs.wireshark;
in
{
options.systemModules.programs.wireshark.enable = mkEnableOption "Enable wireshark system module";
config = mkIf cfg.enable {
programs.wireshark.enable = true;
};
}