changed or somehting idk

This commit is contained in:
Charlie Root 2024-08-07 00:12:28 +02:00
commit 8ee1ff6aa7
5 changed files with 65 additions and 15 deletions

View file

@ -121,6 +121,7 @@ No Idea at this point
*heavily* inspired by https://git.jacekpoz.pl/jacekpoz/niksos.git ! *heavily* inspired by https://git.jacekpoz.pl/jacekpoz/niksos.git !
Sioodmy: https://github.com/sioodmy/dotfiles Sioodmy: https://github.com/sioodmy/dotfiles
Heinrik Lissner: https://github.com/hlissner/dotfiles/ Heinrik Lissner: https://github.com/hlissner/dotfiles/
Diniamo: https://github.com/diniamo/niqs
Fufexan: https://github.com/fufexan Fufexan: https://github.com/fufexan
Lokasku: https://github.com/lokasku/nix-config Lokasku: https://github.com/lokasku/nix-config
NotAShelf: https://github.com/notashelf/Nyx NotAShelf: https://github.com/notashelf/Nyx

View file

@ -2,12 +2,14 @@
config, config,
inputs, inputs,
lib, lib,
pkgs,
... ...
}: let }: let
cfg = config.modules.system.programs.firefox; cfg = config.modules.system.programs.firefox;
inherit (config.modules.other.system) username; inherit (config.modules.other.system) username;
inherit (lib) mkIf; inherit (lib) mkIf;
inherit (builtins) listToAttrs;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {
@ -23,7 +25,7 @@ in {
foreground = "f7f7f7"; foreground = "f7f7f7";
}; };
font = "ComicShannsMono Nerd Font"; font = "Lexend";
extraUserChrome = '' extraUserChrome = ''
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
@ -103,19 +105,36 @@ in {
]; ];
}; };
extensions = { extensions = {
# simplefox.enable = true; simplefox.enable = true;
darkreader.enable = true; darkreader.enable = true;
enableExtraExtensions = true;
enableDefaultExtensions = true;
extraExtensions = let extraExtensions = let
mkUrl = name: "https://addons.mozilla.org/firefox/downloads/latest/${name}/latest.xpi";
extensions = [ extensions = [
{
id = "1018e4d6-728f-4b20-ad56-37578a4de76";
name = "flagfox";
}
{ {
id = "{c2c003ee-bd69-42a2-b0e9-6f34222cb046}"; id = "{c2c003ee-bd69-42a2-b0e9-6f34222cb046}";
name = "auto-tab-discard"; name = "auto-tab-discard";
} }
{
id = "{74145f27-f039-47ce-a470-a662b129930a}";
name = "clearurls";
}
{
id = "DontFuckWithPaste@raim.ist";
name = "dont-fuck-with-paste";
}
{
id = "{96ef5869-e3ba-4d21-b86e-21b163096400}";
name = "font-fingerprint-defender";
}
{
id = "uBlock0@raymondhill.net";
name = "uBlock Origin";
}
{
id = "{d7742d87-e61d-4b78-b8a1-b469842139fa}";
name = "vimium-ff";
}
{ {
id = "{a4c4eda4-fb84-4a84-b4a1-f7c1cbf2a1ad}"; id = "{a4c4eda4-fb84-4a84-b4a1-f7c1cbf2a1ad}";
name = "refined-github-"; name = "refined-github-";
@ -125,14 +144,24 @@ in {
name = "sponsorblock"; name = "sponsorblock";
} }
{ {
id = "uBlock0@raymondhill.net"; id = "treestyletab@piro.sakura.ne.jp";
name = "UBlock Origin"; name = "Tree Style Tab";
} }
]; ];
extraExtensions = builtins.foldl' (acc: ext: acc // {ext.id = {install_url = mkUrl ext.name;};}) {} extensions;
in # shamelessly stolen from raf, thanks.
extraExtensions; mappedExtensions =
map (extension: {
name = extension.id;
value = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${extension.name}/latest.xpi";
}; };
})
extensions;
in
listToAttrs mappedExtensions;
};
security = { security = {
sanitizeOnShutdown = false; sanitizeOnShutdown = false;
sandbox = true; sandbox = true;
@ -142,7 +171,26 @@ in {
misc = { misc = {
drm.enable = true; drm.enable = true;
disableWebgl = false; contextMenu.enable = true;
};
# taken from diniamo
settings = {
"gfx.webrender.all" = true;
"media.ffmpeg.vaapi.enabled" = true;
"media.rdd-ffmpeg.enabled" = true;
"media.av1.enabled" = true;
"gfx.x11-egl.force-enabled" = true;
"widget.dmabuf.force-enabled" = true;
"browser.ctrlTab.sortByRecentlyUsed" = true;
# This makes websites prefer a dark theme (in theory)
"layout.css.prefers-color-scheme.content-override" = 0;
"widget.use-xdg-desktop-portal.file-picker" = 1;
# Leaving this on breaks a lot
# "privacy.resistFingerprinting" = false;
"permissions.fullscreen.allowed" = true;
"dom.webnotifications.enabled" = true;
}; };
}; };
}; };

View file

@ -19,9 +19,10 @@ in {
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true; dedicatedServer.openFirewall = true;
gamescopeSession.enable = mkIf cfg.gamescope true; gamescopeSession.enable = mkIf cfg.gamescope true;
extraCompatPackages = with pkgs; [proton-ge-bin];
}; };
programs.gamemode.enable = true; programs.gamemode.enable = true;
environment.systemPackages = [pkgs.protonup-ng]; # environment.systemPackages = [pkgs.protonup-ng];
environment.sessionVariables = { environment.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${username}/.steam/root/compatibilitytoolds.d"; STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${username}/.steam/root/compatibilitytoolds.d";
}; };

View file

@ -1,6 +1,6 @@
{ {
services.xserver = { services.xserver = {
layout = "de,us"; xkb.layout = "de,us";
# xkbVariant = ",cmk_ed_dh"; # xkbVariant = ",cmk_ed_dh";
# xkbModel = ",pc105awide"; # xkbModel = ",pc105awide";
# xkbOptions = ",misc:extend,lv5:caps_switch_lock,compose:menu"; # xkbOptions = ",misc:extend,lv5:caps_switch_lock,compose:menu";

View file

@ -13,7 +13,7 @@ in {
home-manager.users.${username} = { home-manager.users.${username} = {
programs.yazi = { programs.yazi = {
enable = true; enable = true;
enableZshIntegration = true; enableFishIntegration = true;
}; };
}; };
}; };