From a8b9d34e174a66433be970aa85b783837b3f7e2b Mon Sep 17 00:00:00 2001 From: ooks-io Date: Mon, 29 Apr 2024 18:53:14 +1200 Subject: [PATCH] feat(systemModules:programs): add modules for various system programs - bandwhich - dconf - seahorse - wireshark --- system/modules/programs/bandwhich/default.nix | 14 ++++++++++++++ system/modules/programs/dconf/default.nix | 14 ++++++++++++++ system/modules/programs/default.nix | 1 + system/modules/programs/seahorse/default.nix | 14 ++++++++++++++ system/modules/programs/wireshark/default.nix | 14 ++++++++++++++ 5 files changed, 57 insertions(+) create mode 100644 system/modules/programs/bandwhich/default.nix create mode 100644 system/modules/programs/dconf/default.nix create mode 100644 system/modules/programs/seahorse/default.nix create mode 100644 system/modules/programs/wireshark/default.nix diff --git a/system/modules/programs/bandwhich/default.nix b/system/modules/programs/bandwhich/default.nix new file mode 100644 index 0000000..360a183 --- /dev/null +++ b/system/modules/programs/bandwhich/default.nix @@ -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; + }; +} diff --git a/system/modules/programs/dconf/default.nix b/system/modules/programs/dconf/default.nix new file mode 100644 index 0000000..483394c --- /dev/null +++ b/system/modules/programs/dconf/default.nix @@ -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; + }; +} diff --git a/system/modules/programs/default.nix b/system/modules/programs/default.nix index 1f85e28..db3f9a7 100644 --- a/system/modules/programs/default.nix +++ b/system/modules/programs/default.nix @@ -3,6 +3,7 @@ { imports = [ ./gnomeServices.nix + ./dconf ]; options.systemModules.programs = { diff --git a/system/modules/programs/seahorse/default.nix b/system/modules/programs/seahorse/default.nix new file mode 100644 index 0000000..6d58255 --- /dev/null +++ b/system/modules/programs/seahorse/default.nix @@ -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; + }; +} diff --git a/system/modules/programs/wireshark/default.nix b/system/modules/programs/wireshark/default.nix new file mode 100644 index 0000000..0af3109 --- /dev/null +++ b/system/modules/programs/wireshark/default.nix @@ -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; + }; +}