mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
users/foo-dogsquared/programs/browsers: add Google Chrome setup
This commit is contained in:
parent
07b55b6fa6
commit
e56e24cd17
@ -14,6 +14,7 @@ in
|
|||||||
programs = {
|
programs = {
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
browsers.brave.enable = true;
|
browsers.brave.enable = true;
|
||||||
|
browsers.google-chrome.enable = true;
|
||||||
browsers.firefox.enable = true;
|
browsers.firefox.enable = true;
|
||||||
browsers.misc.enable = true;
|
browsers.misc.enable = true;
|
||||||
doom-emacs.enable = true;
|
doom-emacs.enable = true;
|
||||||
|
@ -4,26 +4,8 @@
|
|||||||
let
|
let
|
||||||
userCfg = config.users.foo-dogsquared;
|
userCfg = config.users.foo-dogsquared;
|
||||||
cfg = userCfg.programs.browsers;
|
cfg = userCfg.programs.browsers;
|
||||||
in
|
|
||||||
{
|
|
||||||
options.users.foo-dogsquared.programs.browsers = {
|
|
||||||
firefox.enable = lib.mkEnableOption "foo-dogsquared's Firefox setup";
|
|
||||||
brave.enable = lib.mkEnableOption "foo-dogsquared's Brave setup";
|
|
||||||
misc.enable = lib.mkEnableOption "foo-dogsquared's miscellaneous browsers setup";
|
|
||||||
|
|
||||||
plugins.firenvim.enable = lib.mkEnableOption "setting up Firenvim";
|
commonExtensions = [
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkMerge [
|
|
||||||
# The only browser to give me money.
|
|
||||||
(lib.mkIf cfg.brave.enable {
|
|
||||||
programs.brave = {
|
|
||||||
enable = true;
|
|
||||||
commandLineArgs = [
|
|
||||||
"--no-default-browser-check"
|
|
||||||
"--use-system-default-printer"
|
|
||||||
];
|
|
||||||
extensions = [
|
|
||||||
{ id = "dbepggeogbaibhgnhhndojpepiihcmeb"; } # Vimium
|
{ id = "dbepggeogbaibhgnhhndojpepiihcmeb"; } # Vimium
|
||||||
{ id = "ekhagklcjbdpajgpjgmbionohlpdbjgc"; } # Zotero connector
|
{ id = "ekhagklcjbdpajgpjgmbionohlpdbjgc"; } # Zotero connector
|
||||||
{ id = "jfnifeihccihocjbfcfhicmmgpjicaec"; } # GSConnect
|
{ id = "jfnifeihccihocjbfcfhicmmgpjicaec"; } # GSConnect
|
||||||
@ -41,6 +23,27 @@ in
|
|||||||
{ id = "palihjnakafgffnompkdfgbgdbcagbko"; } # UpdateSWH
|
{ id = "palihjnakafgffnompkdfgbgdbcagbko"; } # UpdateSWH
|
||||||
{ id = "gphhapmejobijbbhgpjhcjognlahblep"; } # GNOME Shell integration
|
{ id = "gphhapmejobijbbhgpjhcjognlahblep"; } # GNOME Shell integration
|
||||||
];
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.users.foo-dogsquared.programs.browsers = {
|
||||||
|
firefox.enable = lib.mkEnableOption "foo-dogsquared's Firefox setup";
|
||||||
|
brave.enable = lib.mkEnableOption "foo-dogsquared's Brave setup";
|
||||||
|
google-chrome.enable = lib.mkEnableOption "foo-dogsquared's Google Chrome setup";
|
||||||
|
misc.enable = lib.mkEnableOption "foo-dogsquared's miscellaneous browsers setup";
|
||||||
|
|
||||||
|
plugins.firenvim.enable = lib.mkEnableOption "setting up Firenvim";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkMerge [
|
||||||
|
# The only browser to give me money.
|
||||||
|
(lib.mkIf cfg.brave.enable {
|
||||||
|
programs.brave = {
|
||||||
|
enable = true;
|
||||||
|
commandLineArgs = [
|
||||||
|
"--no-default-browser-check"
|
||||||
|
"--use-system-default-printer"
|
||||||
|
];
|
||||||
|
extensions = commonExtensions;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.bleachbit.cleaners = [
|
services.bleachbit.cleaners = [
|
||||||
@ -211,7 +214,7 @@ in
|
|||||||
(pkgs.writeTextFile {
|
(pkgs.writeTextFile {
|
||||||
name = "tridactyl-nix-generated";
|
name = "tridactyl-nix-generated";
|
||||||
text = ''
|
text = ''
|
||||||
set newtab file://${userCfg.programs.custom-homepage.finalPackage}/index.html
|
set newtab ${config.xdg.dataHome}/foodogsquared/homepage
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
@ -231,11 +234,15 @@ in
|
|||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
# Goes with whatever you want to.
|
(lib.mkIf cfg.google-chrome.enable {
|
||||||
(lib.mkIf cfg.misc.enable {
|
programs.google-chrome.enable = true;
|
||||||
home.packages = with pkgs; [
|
|
||||||
google-chrome
|
# It's pretty much the same setup anyways.
|
||||||
#nyxt
|
programs.google-chrome.extensions = commonExtensions;
|
||||||
|
|
||||||
|
programs.google-chrome.commandLineArgs = [
|
||||||
|
"--no-default-browser-check"
|
||||||
|
"--use-system-default-printer"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.bleachbit.cleaners = [
|
services.bleachbit.cleaners = [
|
||||||
@ -250,6 +257,13 @@ in
|
|||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# Goes with whatever you want to.
|
||||||
|
(lib.mkIf cfg.misc.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
nyxt
|
||||||
|
];
|
||||||
|
})
|
||||||
|
|
||||||
(lib.mkIf cfg.plugins.firenvim.enable
|
(lib.mkIf cfg.plugins.firenvim.enable
|
||||||
(let
|
(let
|
||||||
supportedBrowsers = [
|
supportedBrowsers = [
|
||||||
|
Loading…
Reference in New Issue
Block a user