From e11250c4a1e1b12c3419a47c981ec1c35211efdc Mon Sep 17 00:00:00 2001 From: 4DBug <4DBug@github.com> Date: Sun, 18 Oct 2026 06:07:30 -0500 Subject: [PATCH] librewolf and services fix --- flake.lock | 8 +- modules/roles.nix | 2 +- modules/services/bugtv.nix | 19 +- modules/services/slskd.nix | 3 + .../_extensions/redirect/background.js | 0 .../_extensions/redirect/content.js | 0 .../_extensions/redirect/manifest.json | 0 .../_extensions/redirect/rules.js | 0 .../{librewolf.nix => librewolf/default.nix} | 19 +- .../software/browsers/librewolf/sidebery.css | 26 +++ .../browsers/librewolf/userChrome.css | 17 ++ .../browsers/librewolf/userContent.css | 165 ++++++++++++++++++ modules/system/desktop/niri.nix | 16 +- 13 files changed, 250 insertions(+), 25 deletions(-) rename modules/software/browsers/{ => librewolf}/_extensions/redirect/background.js (100%) rename modules/software/browsers/{ => librewolf}/_extensions/redirect/content.js (100%) rename modules/software/browsers/{ => librewolf}/_extensions/redirect/manifest.json (100%) rename modules/software/browsers/{ => librewolf}/_extensions/redirect/rules.js (100%) rename modules/software/browsers/{librewolf.nix => librewolf/default.nix} (92%) create mode 100644 modules/software/browsers/librewolf/sidebery.css create mode 100644 modules/software/browsers/librewolf/userChrome.css create mode 100644 modules/software/browsers/librewolf/userContent.css diff --git a/flake.lock b/flake.lock index 4505e64..e589d9b 100644 --- a/flake.lock +++ b/flake.lock @@ -145,11 +145,11 @@ ] }, "locked": { - "lastModified": 1792307213, - "narHash": "sha256-nbpgkLLjYeptb9LgUYp62gaGxO0nNDjM416YSGN+SS4=", + "lastModified": 1792316519, + "narHash": "sha256-NAygGouWJZoUmSCFJk9vSZZeXdl7PYxp/p5BmJZKpng=", "ref": "refs/heads/main", - "rev": "4f84143a8ba2e1854ef1ef6010518d14dcf9a121", - "revCount": 2179, + "rev": "b72ffd51550dabe8277357954dd1791884e73a8d", + "revCount": 2180, "type": "git", "url": "https://git.bug.tools/bug/userstyles" }, diff --git a/modules/roles.nix b/modules/roles.nix index 3c5d4a7..52f00d5 100644 --- a/modules/roles.nix +++ b/modules/roles.nix @@ -43,7 +43,7 @@ services.invidious services.mailserver # services.matrix - # services.bugtv + services.bugtv services.vscode-server services.gitea # services.omnisearch diff --git a/modules/services/bugtv.nix b/modules/services/bugtv.nix index ecaa5c0..ba3e8ce 100644 --- a/modules/services/bugtv.nix +++ b/modules/services/bugtv.nix @@ -1,20 +1,17 @@ -{ inputs, ... }: { - #flake-file.inputs.bug-tv = { - # url = "git+https://git.bug.tools/bug/tv.git"; - # inputs.nixpkgs.follows = "nixpkgs"; - #}; - - den.aspects.services.bugtv = let port = port; in { +{ + den.aspects.services.bugtv = let port = 8789; in { tunnel = { subdomain = "api-tv"; inherit port; }; - nixos = { pkgs, ... }: { - imports = [ inputs.bug-tv.nixosModules.default ]; + nixos = { pkgs, host, ... }: let + bug-tv = builtins.getFlake "git+https://git.${host.domain}/bug/tv.git"; + in { + imports = [ bug-tv.nixosModules.default ]; services."bug-tv" = { enable = true; - package = inputs.bug-tv.packages.${pkgs.stdenv.hostPlatform.system}.default; - port = 8789; + package = bug-tv.packages.${pkgs.stdenv.hostPlatform.system}.default; + inherit port; tmdbApiKey = "ac014b130a8e6344c91dff4e68b18d47"; providers = [ "cineby" ]; timeoutMs = 30000; diff --git a/modules/services/slskd.nix b/modules/services/slskd.nix index 7cc0a28..e4b5ba7 100644 --- a/modules/services/slskd.nix +++ b/modules/services/slskd.nix @@ -17,6 +17,9 @@ enable = true; inherit user; + openFirewall = true; + settings.soulseek.listen_port = 50300; + settings.web.port = port; environmentFile = "${home}/slskd/env"; diff --git a/modules/software/browsers/_extensions/redirect/background.js b/modules/software/browsers/librewolf/_extensions/redirect/background.js similarity index 100% rename from modules/software/browsers/_extensions/redirect/background.js rename to modules/software/browsers/librewolf/_extensions/redirect/background.js diff --git a/modules/software/browsers/_extensions/redirect/content.js b/modules/software/browsers/librewolf/_extensions/redirect/content.js similarity index 100% rename from modules/software/browsers/_extensions/redirect/content.js rename to modules/software/browsers/librewolf/_extensions/redirect/content.js diff --git a/modules/software/browsers/_extensions/redirect/manifest.json b/modules/software/browsers/librewolf/_extensions/redirect/manifest.json similarity index 100% rename from modules/software/browsers/_extensions/redirect/manifest.json rename to modules/software/browsers/librewolf/_extensions/redirect/manifest.json diff --git a/modules/software/browsers/_extensions/redirect/rules.js b/modules/software/browsers/librewolf/_extensions/redirect/rules.js similarity index 100% rename from modules/software/browsers/_extensions/redirect/rules.js rename to modules/software/browsers/librewolf/_extensions/redirect/rules.js diff --git a/modules/software/browsers/librewolf.nix b/modules/software/browsers/librewolf/default.nix similarity index 92% rename from modules/software/browsers/librewolf.nix rename to modules/software/browsers/librewolf/default.nix index dbe0c20..7095c1d 100644 --- a/modules/software/browsers/librewolf.nix +++ b/modules/software/browsers/librewolf/default.nix @@ -59,7 +59,7 @@ "browser.crashReports.unsubmittedCheck.enabled" = false; "browser.crashReports.unsubmittedCheck.autoSubmit2" = false; - "privacy.resistFingerprinting.letterboxing" = false; # true adds a border around every page (window-size fingerprinting protection) + "privacy.resistFingerprinting.letterboxing" = false; "privacy.donottrackheader.enabled" = true; "privacy.globalprivacycontrol.enabled" = true; "privacy.resistFingerprinting" = false; @@ -95,9 +95,19 @@ "layout.css.prefers-color-scheme.content-override" = 0; "xpinstall.signatures.required" = false; + + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + + "privacy.clearOnShutdown_v2.cookiesAndStorage" = false; + "privacy.clearOnShutdown.cookies" = false; + "privacy.clearOnShutdown.offlineApps" = false; + "privacy.clearOnShutdown.sessions" = false; }; profiles.default = { + userChrome = builtins.readFile ./userChrome.css; + userContent = builtins.readFile ./userContent.css; + search = { force = true; @@ -185,6 +195,11 @@ }; }; }; + + "{3c078156-979c-498b-8990-85f7987dd929}" = { + force = true; + settings.sidebarCSS = builtins.readFile ./sidebery.css; + }; }; }; }; @@ -220,6 +235,8 @@ "{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" # styl-us + "{3c078156-979c-498b-8990-85f7987dd929}" # sidebery + "{60f82f00-9ad5-4de5-b31c-b16a47c51558}" # cookie-quick-manager "{88ebde3a-4581-4c6b-8019-2a05a9e3e938}" # hide-youtube-shorts diff --git a/modules/software/browsers/librewolf/sidebery.css b/modules/software/browsers/librewolf/sidebery.css new file mode 100644 index 0000000..59eeb33 --- /dev/null +++ b/modules/software/browsers/librewolf/sidebery.css @@ -0,0 +1,26 @@ + +* { border-radius: 0px !important; } +#root.root {--tabs-height: 36px;} +#root.root {--tabs-inner-gap: 8px;} +#root.root {--tabs-margin: 4px;} +#root.root {--tabs-font: 16px sans-serif;} +#root.root {--tabs-count-font: 16px sans-serif;} +#root.root {--general-margin: 4px;} +#root.root {--general-border-radius: 0px;} + +.Tab[data-active="true"] .body { + border: 2px solid #cba6f7 !important; + border-radius: 0px; +} + +.NavigationBar .main-items .nav-item[data-class="panel"] .name-box { + border-width: 2px !important; +} + +#root[data-act-el-color-scheme="dark"] { + --active-el-shadow: none; +} + +.NavigationBar .nav-item[data-active="true"] { + border: 1px solid #cba6f7 !important; +} diff --git a/modules/software/browsers/librewolf/userChrome.css b/modules/software/browsers/librewolf/userChrome.css new file mode 100644 index 0000000..f17b3fd --- /dev/null +++ b/modules/software/browsers/librewolf/userChrome.css @@ -0,0 +1,17 @@ + +#TabsToolbar { display: none !important; } +#sidebar-panel-header { display: none !important; } +#sidebar-box { padding-inline-start: 0px !important; } + +:root { + --border-radius-small: 0px !important; + --border-radius-medium: 0px !important; + --border-radius-large: 0px !important; + --border-radius-xlarge: 0px !important; + --border-radius-circle: 0px !important; + --toolbarbutton-border-radius: 0px !important; + --tab-border-radius: 0px !important; + --arrowpanel-border-radius: 0px !important; + --urlbar-container-border-radius: 0px !important; +} +* { border-radius: 0px !important; } diff --git a/modules/software/browsers/librewolf/userContent.css b/modules/software/browsers/librewolf/userContent.css new file mode 100644 index 0000000..abbc8ac --- /dev/null +++ b/modules/software/browsers/librewolf/userContent.css @@ -0,0 +1,165 @@ + +@-moz-document url-prefix("about:") { + body { + background-color: #1e1e2e !important; + color: #cdd6f4 !important; + } + + * { + border-radius: 0px !important; + } + + button:hover, .button:hover { + background-color: #cba6f7 !important; + color: #11111b !important; + } + + * { + --text-color: #cdd6f4 !important; + --color-accent-primary: light-dark(#cba6f755, #cba6f7) !important; + --color-accent-secondary: light-dark(#b4befe55, #b4befe) !important; + } + + * { + --color-blue-0: #89b4fa !important; + --color-blue-10: #89b4fa !important; + --color-blue-20: #89b4fa !important; + --color-blue-30: #89b4fa !important; + --color-blue-40: #89b4fa !important; + --color-blue-50: #89b4fa !important; + --color-blue-60: #89b4fa !important; + --color-blue-70: #89b4fa !important; + --color-blue-80: #89b4fa !important; + --color-blue-90: #89b4fa !important; + --color-cyan-0: #94e2d5 !important; + --color-cyan-10: #94e2d5 !important; + --color-cyan-20: #94e2d5 !important; + --color-cyan-30: #94e2d5 !important; + --color-cyan-40: #94e2d5 !important; + --color-cyan-50: #94e2d5 !important; + --color-cyan-60: #94e2d5 !important; + --color-cyan-70: #94e2d5 !important; + --color-cyan-80: #94e2d5 !important; + --color-cyan-90: #94e2d5 !important; + --color-gray-0: #cdd6f4 !important; + --color-gray-05: #bac2de !important; + --color-gray-10: #a6adc8 !important; + --color-gray-15: #9399b2 !important; + --color-gray-20: #7f849c !important; + --color-gray-25: #6c7086 !important; + --color-gray-30: #6c7086 !important; + --color-gray-35: #585b70 !important; + --color-gray-40: #585b70 !important; + --color-gray-45: #45475a !important; + --color-gray-50: #45475a !important; + --color-gray-55: #313244 !important; + --color-gray-60: #313244 !important; + --color-gray-65: #1e1e2e !important; + --color-gray-70: #1e1e2e !important; + --color-gray-75: #181825 !important; + --color-gray-80: #181825 !important; + --color-gray-85: #11111b !important; + --color-gray-90: #11111b !important; + --color-green-0: #a6e3a1 !important; + --color-green-10: #a6e3a1 !important; + --color-green-20: #a6e3a1 !important; + --color-green-30: #a6e3a1 !important; + --color-green-40: #a6e3a1 !important; + --color-green-50: #a6e3a1 !important; + --color-green-60: #a6e3a1 !important; + --color-green-70: #a6e3a1 !important; + --color-green-80: #a6e3a1 !important; + --color-green-90: #a6e3a1 !important; + --color-orange-0: #fab387 !important; + --color-orange-10: #fab387 !important; + --color-orange-20: #fab387 !important; + --color-orange-30: #fab387 !important; + --color-orange-40: #fab387 !important; + --color-orange-50: #fab387 !important; + --color-orange-60: #fab387 !important; + --color-orange-70: #fab387 !important; + --color-orange-80: #fab387 !important; + --color-orange-90: #fab387 !important; + --color-pink-0: #f5c2e7 !important; + --color-pink-10: #f5c2e7 !important; + --color-pink-20: #f5c2e7 !important; + --color-pink-30: #f5c2e7 !important; + --color-pink-40: #f5c2e7 !important; + --color-pink-50: #f5c2e7 !important; + --color-pink-60: #f5c2e7 !important; + --color-pink-70: #f5c2e7 !important; + --color-pink-80: #f5c2e7 !important; + --color-pink-90: #f5c2e7 !important; + --color-purple-0: #cba6f7 !important; + --color-purple-10: #cba6f7 !important; + --color-purple-20: #cba6f7 !important; + --color-purple-30: #cba6f7 !important; + --color-purple-40: #cba6f7 !important; + --color-purple-50: #cba6f7 !important; + --color-purple-60: #cba6f7 !important; + --color-purple-70: #cba6f7 !important; + --color-purple-80: #cba6f7 !important; + --color-purple-90: #cba6f7 !important; + --color-red-0: #f38ba8 !important; + --color-red-10: #f38ba8 !important; + --color-red-20: #f38ba8 !important; + --color-red-30: #f38ba8 !important; + --color-red-40: #f38ba8 !important; + --color-red-50: #f38ba8 !important; + --color-red-60: #f38ba8 !important; + --color-red-70: #f38ba8 !important; + --color-red-80: #f38ba8 !important; + --color-red-90: #f38ba8 !important; + --color-violet-0: #cba6f7 !important; + --color-violet-10: #cba6f7 !important; + --color-violet-20: #cba6f7 !important; + --color-violet-30: #cba6f7 !important; + --color-violet-40: #cba6f7 !important; + --color-violet-50: #cba6f7 !important; + --color-violet-60: #cba6f7 !important; + --color-violet-70: #cba6f7 !important; + --color-violet-80: #cba6f7 !important; + --color-violet-90: #cba6f7 !important; + --color-violet-desaturated-0: #b4befe !important; + --color-violet-desaturated-10: #b4befe !important; + --color-violet-desaturated-20: #b4befe !important; + --color-violet-desaturated-30: #b4befe !important; + --color-violet-desaturated-40: #b4befe !important; + --color-violet-desaturated-50: #b4befe !important; + --color-violet-desaturated-60: #b4befe !important; + --color-violet-desaturated-70: #b4befe !important; + --color-violet-desaturated-80: #b4befe !important; + --color-violet-desaturated-90: #b4befe !important; + --color-yellow-0: #f9e2af !important; + --color-yellow-10: #f9e2af !important; + --color-yellow-20: #f9e2af !important; + --color-yellow-30: #f9e2af !important; + --color-yellow-40: #f9e2af !important; + --color-yellow-50: #f9e2af !important; + --color-yellow-60: #f9e2af !important; + --color-yellow-70: #f9e2af !important; + --color-yellow-80: #f9e2af !important; + --color-yellow-90: #f9e2af !important; + } + + * { + --background-color-box: #181825 !important; + --background-color-box-info: #181825 !important; + --background-color-information: #313244 !important; + --background-color-canvas: #1e1e2e !important; + --border-color: #45475a !important; + --border-color-deemphasized: #45475a !important; + --button-background-color-muted: #313244 !important; + --button-text-color-ghost-disabled: #7f849c !important; + --button-border: 2px solid var(--border-color) !important; + --table-row-background-color-alternate: #181825 !important; + --text-color-accent-primary-selected: var(--text-color) !important; + } + + * { + --table-background-color: var(--background-color-box) !important; + --table-border-color: var(--border-color) !important; + --table-header-background-color: var(--color-accent-primary) !important; + --table-row-background-color: var(--background-color-canvas) !important; + } +} diff --git a/modules/system/desktop/niri.nix b/modules/system/desktop/niri.nix index bc69ebe..914a03e 100644 --- a/modules/system/desktop/niri.nix +++ b/modules/system/desktop/niri.nix @@ -76,10 +76,10 @@ window-rules = [ { geometry-corner-radius = { - top-left = 12.0; - top-right = 12.0; - bottom-left = 12.0; - bottom-right = 12.0; + top-left = 0.0; + top-right = 0.0; + bottom-left = 0.0; + bottom-right = 0.0; }; clip-to-geometry = true; @@ -102,10 +102,10 @@ }; geometry-corner-radius = { - top-left = 12.0; - top-right = 12.0; - bottom-left = 12.0; - bottom-right = 12.0; + top-left = 0.0; + top-right = 0.0; + bottom-left = 0.0; + bottom-right = 0.0; }; clip-to-geometry = true;