summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-07 19:21:26 +0200
committerSilas Schöffel <sils@sils.li>2024-04-07 19:21:26 +0200
commitbdff3dfb86c01b8538c33d0934ecfaca0111de7b (patch)
tree5f740c88a8457e9eeaefe1c29fe017316f2ee36d /modules
parenttreewide: enable pre-commit hooks (diff)
downloadnix-config-bdff3dfb86c01b8538c33d0934ecfaca0111de7b.tar.gz
nix-config-bdff3dfb86c01b8538c33d0934ecfaca0111de7b.zip
firefox: init module
Diffstat (limited to '')
-rw-r--r--modules/hm/sils/default.nix1
-rw-r--r--modules/hm/sils/firefox.nix16
2 files changed, 17 insertions, 0 deletions
diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix
index 65740a9..e4b133a 100644
--- a/modules/hm/sils/default.nix
+++ b/modules/hm/sils/default.nix
@@ -1,4 +1,5 @@
 {...}: {
   imports = [
+    ./firefox.nix
   ];
 }
diff --git a/modules/hm/sils/firefox.nix b/modules/hm/sils/firefox.nix
new file mode 100644
index 0000000..790b341
--- /dev/null
+++ b/modules/hm/sils/firefox.nix
@@ -0,0 +1,16 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.sils.home.firefox;
+in {
+  options.sils.home.firefox = {
+    enable = lib.mkEnableOption "opinionated firefox configuration";
+  };
+  config = lib.mkIf cfg.enable {
+    programs.firefox = {
+      enable = true;
+    };
+  };
+}