Cleaned up

This commit is contained in:
Bryan Ramos 2024-06-21 09:24:41 -04:00
parent 233aeccc0c
commit 9f526f8ca3

View file

@ -3,11 +3,7 @@
with lib; with lib;
let let
cfg = config.modules.user.gui.browser.firefox; cfg = config.modules.user.gui.browser.firefox;
passff = {
in
{
options.modules.user.gui.browser.firefox = { enable = mkEnableOption "Enable Firefox browser"; };
config = mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
passff-host passff-host
]; ];
@ -34,7 +30,12 @@ in
message = "Firefox plugin passff requires graphical pinentry"; message = "Firefox plugin passff requires graphical pinentry";
} }
]; ];
};
in
{
options.modules.user.gui.browser.firefox = { enable = mkEnableOption "Enable Firefox browser"; };
config = mkIf cfg.enable (passff // {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles = { profiles = {
@ -292,5 +293,5 @@ in
}; };
}; };
}; };
}; });
} }