refactor(homeModules/desktop): move browser config to module

This commit is contained in:
Mohammad Rafiq 2025-05-20 12:11:45 +08:00
parent a1001ddb4c
commit 26c3c43aee
No known key found for this signature in database
4 changed files with 10 additions and 18 deletions

View file

@ -0,0 +1,12 @@
{ config, lib, ... }:
{
config = lib.mkIf (config.desktop.browser == "firefox") {
home.persistence."/persist/home/rafiq".directories = [ ".mozilla/firefox" ];
home.sessionVariables.BROWSER = "firefox";
programs.firefox = {
enable = true;
profiles.rafiq.id = 0;
profiles.test.id = 1;
};
};
}

View file

@ -2,6 +2,7 @@
{
options.desktop = {
windowManager = lib.pantheon.mkStrOption;
browser = lib.pantheon.mkStrOption;
};