18 lines
444 B
Nix
18 lines
444 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
options.librewolf = {
|
|
enable = lib.mkEnableOption "Enables librewolf";
|
|
make_default = lib.mkEnableOption "Makes librewolf the default browser";
|
|
};
|
|
|
|
config = lib.mkIf config.librewolf.enable {
|
|
home.packages = with pkgs; [
|
|
librewolf
|
|
];
|
|
home.sessionVariables = {
|
|
BROWSER = "librewolf";
|
|
};
|
|
defaultApps.browser = lib.mkIf config.librewolf.make_default "librewolf";
|
|
};
|
|
}
|