From 598b45923d361bb1ad9ff6c72a997d87a0218817 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Sun, 7 Apr 2024 22:03:00 +0200 Subject: firefox: refactor in separate dir I have the feeling that this will grow quite complex. --- modules/hm/sils/default.nix | 2 +- modules/hm/sils/firefox.nix | 28 ---------------------------- modules/hm/sils/firefox/default.nix | 28 ++++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 modules/hm/sils/firefox.nix create mode 100644 modules/hm/sils/firefox/default.nix (limited to 'modules/hm') diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix index e4b133a..372d666 100644 --- a/modules/hm/sils/default.nix +++ b/modules/hm/sils/default.nix @@ -1,5 +1,5 @@ {...}: { imports = [ - ./firefox.nix + ./firefox ]; } diff --git a/modules/hm/sils/firefox.nix b/modules/hm/sils/firefox.nix deleted file mode 100644 index 2ee593d..0000000 --- a/modules/hm/sils/firefox.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - 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; - profiles = { - "default" = { - id = 0; - isDefault = true; - name = "default"; - search = { - default = "DuckDuckGo"; - privateDefault = "DuckDuckGo"; - force = true; - }; - }; - }; - }; - }; -} diff --git a/modules/hm/sils/firefox/default.nix b/modules/hm/sils/firefox/default.nix new file mode 100644 index 0000000..2ee593d --- /dev/null +++ b/modules/hm/sils/firefox/default.nix @@ -0,0 +1,28 @@ +{ + 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; + profiles = { + "default" = { + id = 0; + isDefault = true; + name = "default"; + search = { + default = "DuckDuckGo"; + privateDefault = "DuckDuckGo"; + force = true; + }; + }; + }; + }; + }; +} -- cgit 1.4.1