mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Cleaned up
This commit is contained in:
parent
233aeccc0c
commit
9f526f8ca3
1 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue