Firefox added
This commit is contained in:
parent
3c99e8068b
commit
689e99b24b
3 changed files with 34 additions and 0 deletions
|
@ -15,6 +15,9 @@
|
|||
"DP-1,1920x1080@60,2560x0,1"
|
||||
];
|
||||
};
|
||||
firefox = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.getty.autologinUser = "lars";
|
||||
|
|
|
@ -11,5 +11,6 @@ _: {
|
|||
./foot.nix
|
||||
# ./vivado.nix
|
||||
./WM
|
||||
./firefox.nix
|
||||
];
|
||||
}
|
||||
|
|
30
modules/gui/firefox.nix
Normal file
30
modules/gui/firefox.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ config, lib, inputs, pkgs, ... }:
|
||||
with lib; let
|
||||
username = config.modules.other.system.username;
|
||||
cfg = config.modules.firefox;
|
||||
in {
|
||||
options.modules.firefox = {
|
||||
enable = mkEnableOption "firefox";
|
||||
extensions = mkOption {
|
||||
description = "firefox extensions (format like https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265)";
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
programs.firefox = (lib.mkMerge [{
|
||||
enable = true;
|
||||
policies = {
|
||||
ExtensionSettings = {
|
||||
"uBlock0@raymondhill.net" = {
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
};
|
||||
};
|
||||
};
|
||||
} cfg.extensions]);
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue