mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
added ungoogled_chromium browser
This commit is contained in:
parent
648f7a8937
commit
fa17aa6f55
10 changed files with 70 additions and 27 deletions
|
|
@ -35,9 +35,12 @@
|
||||||
|
|
||||||
gui = {
|
gui = {
|
||||||
wm.hyprland.enable = true;
|
wm.hyprland.enable = true;
|
||||||
|
browser = {
|
||||||
|
firefox.enable = true;
|
||||||
|
chromium.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
browsers.enable = true;
|
|
||||||
corn.enable = true;
|
corn.enable = true;
|
||||||
fun.enable = true;
|
fun.enable = true;
|
||||||
utils.enable = true;
|
utils.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ case $- in
|
||||||
exec Hyprland
|
exec Hyprland
|
||||||
''
|
''
|
||||||
}
|
}
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
''}
|
''}
|
||||||
${optionalString tmux.enable ''
|
${optionalString tmux.enable ''
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
44
src/user/modules/gui/modules/browsers/chromium/default.nix
Normal file
44
src/user/modules/gui/modules/browsers/chromium/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.user.gui.browser.chromium;
|
||||||
|
|
||||||
|
in
|
||||||
|
{ options.modules.user.gui.browser.chromium = { enable = mkEnableOption "Enable Chromium browser"; };
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs = {
|
||||||
|
chromium = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.ungoogled-chromium;
|
||||||
|
extensions = [
|
||||||
|
{
|
||||||
|
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
||||||
|
crxPath = /home/${config.user.name}/.config/chromium/Extensions/ublock.crx;
|
||||||
|
version = "1.58.0";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "dbepggeogbaibhgnhhndojpepiihcmeb";
|
||||||
|
crxPath = /home/${config.user.name}/.config/chromium/Extensions/vimium.crx;
|
||||||
|
version = "2.1.2";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
id = "naepdomgkenhinolocfifgehidddafch";
|
||||||
|
crxPath = /home/${config.user.name}/.config/chromium/Extensions/browserpass.crx;
|
||||||
|
version = "3.8.0";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
browserpass = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home = {
|
||||||
|
file.".config/chromium/Extensions" = {
|
||||||
|
source = ./config/extensions;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,16 +1,7 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{
|
||||||
|
imports = [
|
||||||
with lib;
|
./chromium
|
||||||
let
|
./firefox
|
||||||
cfg = config.modules.user.gui.browsers;
|
#./tor
|
||||||
in
|
|
||||||
{ options.modules.user.gui.browsers = { enable = mkEnableOption "Enable browsers"; };
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
tor-browser
|
|
||||||
brave
|
|
||||||
];
|
];
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12
src/user/modules/gui/modules/browsers/firefox/default.nix
Normal file
12
src/user/modules/gui/modules/browsers/firefox/default.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.user.gui.browser.firefox;
|
||||||
|
|
||||||
|
in
|
||||||
|
{ options.modules.user.gui.browser.firefox = { enable = mkEnableOption "Enable Firefox browser"; };
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.firefox.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,18 +1,10 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
wm = {
|
|
||||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues config.modules.user.gui.wm);
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = if wm.enable then [
|
imports = [
|
||||||
./alacritty
|
./alacritty
|
||||||
./browsers
|
./browsers
|
||||||
./corn
|
./corn
|
||||||
./fun
|
./fun
|
||||||
./utils
|
./utils
|
||||||
./writing
|
./writing
|
||||||
] else [];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ in
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
"HYPRCURSOR_SIZE, 24"
|
"HYPRCURSOR_SIZE, 24"
|
||||||
"GTK_THEME, Qogir"
|
"GTK_THEME, Juno-ocean"
|
||||||
|
|
||||||
"LIBVA_DRIVER_NAME,nvidia"
|
"LIBVA_DRIVER_NAME,nvidia"
|
||||||
"XDG_SESSION_TYPE,wayland"
|
"XDG_SESSION_TYPE,wayland"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue