feat(desktop): move firefox config to homes and use home-manager modules

This commit is contained in:
Mohammad Rafiq 2025-06-14 11:52:50 +08:00
parent 844e6b263e
commit 6897ad63c9
No known key found for this signature in database
8 changed files with 95 additions and 90 deletions

View file

@ -0,0 +1,20 @@
{ lib, config, ... }:
let
inherit (lib)
mkEnableOption
mkIf
singleton
;
cfg = config.desktop.browser.firefox;
in
{
options.desktop.browser.firefox.enable = mkEnableOption "";
config = mkIf cfg.enable {
home-manager.sharedModules = singleton {
persistDirs = singleton ".mozilla/firefox";
programs.firefox.enable = true;
stylix.targets.firefox.colorTheme.enable = true;
};
};
}