From c71949f46e07a9d7d610c59396f4dc5c6719be5a Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 16 May 2023 18:04:04 -0400 Subject: [PATCH] nix: Use separate module for librewolf --- home-manager/default.nix | 1 + home-manager/librewolf/default.nix | 13 +++++++++++++ home.nix | 9 --------- 3 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 home-manager/librewolf/default.nix diff --git a/home-manager/default.nix b/home-manager/default.nix index 5ef48f41..633205d6 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -7,6 +7,7 @@ ./git ./gtk ./kitty + ./librewolf ./mpv ./ncmpcpp ./qutebrowser diff --git a/home-manager/librewolf/default.nix b/home-manager/librewolf/default.nix new file mode 100644 index 00000000..71c07357 --- /dev/null +++ b/home-manager/librewolf/default.nix @@ -0,0 +1,13 @@ +{ + home-manager.sharedModules = [{ + programs.librewolf = { + enable = true; + settings = { + "middlemouse.paste" = false; + "browser.download.useDownloadDir" = true; + "ui.use_activity_cursor" = true; + "browser.tabs.insertAfterCurrent" = true; + }; + }; + }]; +} diff --git a/home.nix b/home.nix index 454f092b..cd138057 100644 --- a/home.nix +++ b/home.nix @@ -2,15 +2,6 @@ imports = [ home-manager.nixosModule ]; home-manager.useGlobalPkgs = true; home-manager.sharedModules = [{ - programs.librewolf = { - enable = true; - settings = { - "middlemouse.paste" = false; - "browser.download.useDownloadDir" = true; - "ui.use_activity_cursor" = true; - "browser.tabs.insertAfterCurrent" = true; - }; - }; xdg.configFile."hypr/hyprland.conf".text = '' env=XCURSOR_SIZE,24 env=BROWSER,librewolf