feat(systemModules:programs): add modules for various system programs
- bandwhich - dconf - seahorse - wireshark
This commit is contained in:
parent
f2e28fa618
commit
a8b9d34e17
5 changed files with 57 additions and 0 deletions
14
system/modules/programs/bandwhich/default.nix
Normal file
14
system/modules/programs/bandwhich/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
14
system/modules/programs/dconf/default.nix
Normal file
14
system/modules/programs/dconf/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./gnomeServices.nix
|
||||
./dconf
|
||||
];
|
||||
|
||||
options.systemModules.programs = {
|
||||
|
|
|
|||
14
system/modules/programs/seahorse/default.nix
Normal file
14
system/modules/programs/seahorse/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
14
system/modules/programs/wireshark/default.nix
Normal file
14
system/modules/programs/wireshark/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue