From e04b5300532d21adf889cccf05b7d1f64c290825 Mon Sep 17 00:00:00 2001 From: schererleander Date: Sat, 10 May 2025 21:17:14 +0200 Subject: formatting --- modules/chromium.nix | 45 +++++++++++++++++++++------------------------ modules/default.nix | 3 ++- modules/firefox.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ modules/foot.nix | 19 +++++++++---------- modules/git.nix | 3 +-- modules/neovim/default.nix | 3 +-- modules/nextcloud.nix | 2 +- modules/nixcord.nix | 6 +++--- modules/spicetify.nix | 2 +- modules/sway.nix | 20 ++++++++++---------- modules/tmux.nix | 3 +-- modules/waybar.nix | 2 +- modules/wezterm.nix | 4 ++-- modules/zathura.nix | 9 ++++----- modules/zsh.nix | 10 +++++----- 15 files changed, 104 insertions(+), 69 deletions(-) create mode 100644 modules/firefox.nix (limited to 'modules') diff --git a/modules/chromium.nix b/modules/chromium.nix index ea4129b..fab8632 100644 --- a/modules/chromium.nix +++ b/modules/chromium.nix @@ -8,29 +8,26 @@ in { programs.chromium = { enable = true; package = pkgs.ungoogled-chromium; - extensions = - let - createChromiumExtensionFor = browserVersion: { id, sha256, version }: - { - inherit id; - crxPath = builtins.fetchurl { - url = "https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=${browserVersion}&x=id%3D${id}%26installsource%3Dondemand%26uc"; - name = "${id}.crx"; - inherit sha256; + extensions = let + createChromiumExtensionFor = browserVersion: { id, sha256, version }: { + inherit id; + crxPath = builtins.fetchurl { + url = "https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=${browserVersion}&x=id%3D${id}%26installsource%3Dondemand%26uc"; + name = "${id}.crx"; + inherit sha256; + }; + inherit version; }; - inherit version; - }; - createChromiumExtension = createChromiumExtensionFor (lib.versions.major pkgs.ungoogled-chromium.version); - in - [ - (createChromiumExtension { - # ublock origin - id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; - sha256 = "sha256:1lnk0k8zy0w33cxpv93q1am0d7ds2na64zshvbwdnbjq8x4sw5p6"; - version = "1.63.2"; - }) - ]; + createChromiumExtension = createChromiumExtensionFor (lib.versions.major pkgs.ungoogled-chromium.version); + in + [ + (createChromiumExtension { + # ublock origin + id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; + sha256 = "sha256:1lnk0k8zy0w33cxpv93q1am0d7ds2na64zshvbwdnbjq8x4sw5p6"; + version = "1.63.2"; + }) + ]; + }; }; - }; -} - +} \ No newline at end of file diff --git a/modules/default.nix b/modules/default.nix index a879e9b..6449f63 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -15,5 +15,6 @@ ./chromium.nix ./nixcord.nix ./wezterm.nix + ./firefox.nix ]; -} +} \ No newline at end of file diff --git a/modules/firefox.nix b/modules/firefox.nix new file mode 100644 index 0000000..8423ec4 --- /dev/null +++ b/modules/firefox.nix @@ -0,0 +1,42 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.firefox; +in { + options.enable = lib.mkEnableOption = "Setup firefox"; + + config = lib.mkIf cfg.enable { + program.firefox = { + enable = true; + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + ublock-origin + istilldontcareaboutcookies + sponsorblock + vimium-c + startpage-private-search + ]; + + userProfile = { + preferences = { + # Disable the Bookmarks Toolbar + "browser.toolbars.bookmarks.visibility" = "never"; + + # Disable Pocket + "extensions.pocket.enabled" = false; + + # Remove Firefox View + "browser.newtabpage.activity-stream.showSponsored" = false; + "browser.newtabpage.activity-stream.showSearch" = false; + "browser.newtabpage.activity-stream.showTopSites" = false; + "browser.newtabpage.activity-stream.showHighlights" = false; + + # privacy settings + "privacy.firstparty.isolate" = true; # Isolate cookies per site + "privacy.resistFingerprinting" = true; + "privacy.trackingprotection.enabled" = true; + }; + }; + }; + }; +} + diff --git a/modules/foot.nix b/modules/foot.nix index 9804db4..4fe4e4b 100644 --- a/modules/foot.nix +++ b/modules/foot.nix @@ -19,16 +19,16 @@ in { line-height = 12; }; - cursor = { - style = "underline"; - unfocused-style = "unchanged"; - blink = true; - }; + cursor = { + style = "underline"; + unfocused-style = "unchanged"; + blink = true; + }; colors = { - alpha=0.9; - # Gruvbox Theme - background = "000000"; + alpha = 0.9; + # Gruvbox Theme + background = "000000"; foreground = "ebdbb2"; regular0 = "282828"; @@ -52,5 +52,4 @@ in { }; }; }; -} - +} \ No newline at end of file diff --git a/modules/git.nix b/modules/git.nix index c0c4385..caf445c 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -17,5 +17,4 @@ in { }; }; }; -} - +} \ No newline at end of file diff --git a/modules/neovim/default.nix b/modules/neovim/default.nix index 6374d66..e352b57 100644 --- a/modules/neovim/default.nix +++ b/modules/neovim/default.nix @@ -43,5 +43,4 @@ in { GIT_EDITOR = EDITOR; }; }; -} - +} \ No newline at end of file diff --git a/modules/nextcloud.nix b/modules/nextcloud.nix index 6e8774f..9d9ba3c 100644 --- a/modules/nextcloud.nix +++ b/modules/nextcloud.nix @@ -36,4 +36,4 @@ in { startServices = true; }; }; -} +} \ No newline at end of file diff --git a/modules/nixcord.nix b/modules/nixcord.nix index a969edf..fa0135b 100644 --- a/modules/nixcord.nix +++ b/modules/nixcord.nix @@ -3,13 +3,13 @@ let cfg = config.nixcord; in { - options.nixcord.enable = lib.mkEnableOption "Enable nixord and setup"; + options.nixcord.enable = lib.mkEnableOption "Enable nixcord and setup"; config = lib.mkIf cfg.enable { programs.nixcord = { enable = true; # enable Nixcord. Also installs discord package #quickCss = "some CSS"; # quickCSS file config = { - #useQuickCss = true; # use out quickCSS + #useQuickCss = true; # use our quickCSS #themeLinks = [ # or use an online theme # "https://raw.githubusercontent.com/link/to/some/theme.css" #]; @@ -25,4 +25,4 @@ in { }; }; }; -} +} \ No newline at end of file diff --git a/modules/spicetify.nix b/modules/spicetify.nix index 0b618ad..6873d35 100644 --- a/modules/spicetify.nix +++ b/modules/spicetify.nix @@ -21,4 +21,4 @@ in { colorScheme = "Coral"; }; }; -} +} \ No newline at end of file diff --git a/modules/sway.nix b/modules/sway.nix index c8dd008..a935c57 100644 --- a/modules/sway.nix +++ b/modules/sway.nix @@ -21,9 +21,9 @@ in { xdg-desktop-portal-wlr xdg-desktop-portal-gtk ]; - config = { - common.default = "*"; - }; + config = { + common.default = "*"; + }; }; }; @@ -49,17 +49,17 @@ in { border = 0; }; modifier = "Mod4"; - keybindings = lib.mkOptionDefault { - "${mod}+q" = "kill"; - "XF86AudioPlay" = "exec playerctl play-pause"; + keybindings = lib.mkOptionDefault { + "${mod}+q" = "kill"; + "XF86AudioPlay" = "exec playerctl play-pause"; "XF86AudioPrev" = "exec playerctl previous"; "XF86AudioNext" = "exec playerctl next"; "XF86AudioRaiseVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_DEVICE@ +5%"; "XF86AudioLowerVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_DEVICE@ -5%"; "XF86AudioMute" = "exec wpctl set-mute @DEFAULT_AUDIO_DEVICE@ toggle"; - }; - menu = "${pkgs.wmenu}/bin/wmenu-run -b -N 000000"; - terminal = "${pkgs.foot}/bin/foot"; + }; + menu = "${pkgs.wmenu}/bin/wmenu-run -b -N 000000"; + terminal = "${pkgs.foot}/bin/foot"; defaultWorkspace = "workspace number 1"; bars = [{ "command" = "${pkgs.waybar}/bin/waybar"; @@ -74,4 +74,4 @@ in { XDG_CURRENT_DESKTOP = "wayland"; }; }; -} +} \ No newline at end of file diff --git a/modules/tmux.nix b/modules/tmux.nix index 4d200bb..57b4aae 100644 --- a/modules/tmux.nix +++ b/modules/tmux.nix @@ -22,5 +22,4 @@ in { ''; }; }; -} - +} \ No newline at end of file diff --git a/modules/waybar.nix b/modules/waybar.nix index d88aed3..fccebd4 100644 --- a/modules/waybar.nix +++ b/modules/waybar.nix @@ -58,4 +58,4 @@ in { ''; }; }; -} +} \ No newline at end of file diff --git a/modules/wezterm.nix b/modules/wezterm.nix index f2f8be4..c9e52ae 100644 --- a/modules/wezterm.nix +++ b/modules/wezterm.nix @@ -26,7 +26,7 @@ in { config.exit_behavior_messaging = 'None' return config - ''; + ''; }; }; -} +} \ No newline at end of file diff --git a/modules/zathura.nix b/modules/zathura.nix index d3a789b..164c760 100644 --- a/modules/zathura.nix +++ b/modules/zathura.nix @@ -9,10 +9,10 @@ in { enable = true; options = { recolor-lightcolor = "rgba(0, 0, 0, 0)"; - recolor-darkcolor = "rgba(255, 255, 255, 1)"; - recolor = true; + recolor-darkcolor = "rgba(255, 255, 255, 1)"; + recolor = true; adjust-open = "width"; - guioptions = "none"; + guioptions = "none"; zoom-center = true; page-padding = 0; pages-per-row = 1; @@ -25,5 +25,4 @@ in { }; }; }; -} - +} \ No newline at end of file diff --git a/modules/zsh.nix b/modules/zsh.nix index 3aca8a7..68b9a23 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -23,11 +23,11 @@ in { zstyle ':completion:*' squeeze-slashes true zstyle ':completion:*' add-space false - # Case-insensitive completion - zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' + # Case-insensitive completion + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' - # vim keybdings - bindkey -v + # vim keybindings + bindkey -v eval "$(zoxide init zsh)" ''; @@ -47,4 +47,4 @@ in { }; }; }; -} +} \ No newline at end of file -- cgit v1.3.1