30 lines
434 B
Nix
30 lines
434 B
Nix
{
|
|
options,
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.frajul;
|
|
let
|
|
cfg = config.apps.firefox;
|
|
in
|
|
{
|
|
options.apps.firefox = with types; {
|
|
enable = mkBoolOpt false "Enable or disable firefox browser";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.programs.firefox = {
|
|
enable = true;
|
|
package = pkgs.librewolf;
|
|
};
|
|
|
|
home.persist.directories = [
|
|
".librewolf"
|
|
".cache/librewolf"
|
|
];
|
|
};
|
|
}
|