chore: update flake
Some checks failed
Flake check / Check flake (push) Has been cancelled

This commit is contained in:
Leon Schwarzäugl 2025-09-15 15:55:39 +02:00
parent 0848f04326
commit d0f432b717
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
25 changed files with 2787 additions and 999 deletions

View file

@ -454,7 +454,8 @@ A short overview over each input and what it does:
url = "github:dj95/zjstatus"; url = "github:dj95/zjstatus";
}; };
fw-fanctrl = { fw-fanctrl = {
url = "github:TamtamHero/fw-fanctrl/packaging/nix"; # url = "github:TamtamHero/fw-fanctrl/packaging/nix";
url = "github:Swarsel/fw-fanctrl/packaging/nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-darwin = { nix-darwin = {
@ -1207,7 +1208,7 @@ Lastly, in the =perSystem= attribute set, we see that it is actually passed some
devshells.default = { devshells.default = {
packages = [ packages = [
(builtins.trace "alarm: we pinned nix_2_24 because of https://github.com/shlevy/nix-plugins/issues/20" pkgs.nixVersions.nix_2_24) # Always use the nix version from this flake's nixpkgs version, so that nix-plugins (below) doesn't fail because of different nix versions. (builtins.trace "alarm: we pinned nix_2_28 because of https://github.com/shlevy/nix-plugins/issues/20" pkgs.nixVersions.nix_2_28) # Always use the nix version from this flake's nixpkgs version, so that nix-plugins (below) doesn't fail because of different nix versions.
pkgs.git pkgs.git
pkgs.just pkgs.just
pkgs.age pkgs.age
@ -1476,7 +1477,7 @@ On the structure of overlays: as you notice, all of the attributes within overla
nativeMessagingHosts = [ nativeMessagingHosts = [
prev.tridactyl-native prev.tridactyl-native
prev.browserpass prev.browserpass
prev.plasma5Packages.plasma-browser-integration # prev.plasma5Packages.plasma-browser-integration
]; ];
}; };
@ -3318,10 +3319,14 @@ TODO: cleanup this mess
nix = { nix = {
channel.enable = false; channel.enable = false;
package = pkgs.nixVersions.nix_2_28; package = pkgs.nixVersions.nix_2_28;
# extraOptions = ''
# plugin-files = ${pkgs.dev.nix-plugins}/lib/nix/plugins
# extra-builtins-file = ${../nix/extra-builtins.nix}
# '';
extraOptions = '' extraOptions = ''
plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: { plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: {
buildInputs = [pkgs.nixVersions.nix_2_28 pkgs.boost]; buildInputs = [config.nix.package pkgs.boost];
patches = (o.patches or []) ++ [ ../nix/nix-plugins.patch ]; patches = o.patches or [];
})}/lib/nix/plugins })}/lib/nix/plugins
extra-builtins-file = ${../nix/extra-builtins.nix} extra-builtins-file = ${../nix/extra-builtins.nix}
''; '';
@ -4109,13 +4114,15 @@ A breakdown of the flags being set:
trusted-users = [ "@wheel" "${config.swarselsystems.mainUser}" ]; trusted-users = [ "@wheel" "${config.swarselsystems.mainUser}" ];
}; };
# extraOptions = '' # extraOptions = ''
# plugin-files = ${pkgs.nix-plugins}/lib/nix/plugins # plugin-files = ${pkgs.dev.nix-plugins}/lib/nix/plugins
# extra-builtins-file = ${self + /nix/extra-builtins.nix} # extra-builtins-file = ${self + /nix/extra-builtins.nix}
# '' + lib.optionalString (!minimal) ''
# !include ${config.sops.secrets.github-api-token.path}
# ''; # '';
extraOptions = '' extraOptions = ''
plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: { plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: {
buildInputs = [pkgs.nixVersions.nix_2_28 pkgs.boost]; buildInputs = [config.nix.package pkgs.boost];
patches = (o.patches or []) ++ ["${self}/nix/nix-plugins.patch"]; patches = o.patches or [];
})}/lib/nix/plugins })}/lib/nix/plugins
extra-builtins-file = ${self + /nix/extra-builtins.nix} extra-builtins-file = ${self + /nix/extra-builtins.nix}
'' + lib.optionalString (!minimal) '' '' + lib.optionalString (!minimal) ''
@ -5838,13 +5845,13 @@ This snipped is added to the activation script that is run after every rebuild a
pkgs.nvd pkgs.nvd
]; ];
system.activationScripts.diff = { # system.activationScripts.diff = {
supportsDryActivation = true; # supportsDryActivation = true;
text = '' # text = ''
${pkgs.nvd}/bin/nvd --color=always --nix-bin-dir=${pkgs.nix}/bin diff \ # ${pkgs.nvd}/bin/nvd --color=always --nix-bin-dir=${pkgs.nix}/bin diff \
/run/current-system "$systemConfig" # /run/current-system "$systemConfig"
''; # '';
}; # };
}; };
} }
#+end_src #+end_src
@ -5913,11 +5920,11 @@ This allows me to use screen sharing on Wayland. The implementation is a bit cru
config = lib.mkIf config.swarselmodules.xdg-portal { config = lib.mkIf config.swarselmodules.xdg-portal {
xdg.portal = { xdg.portal = {
enable = true; enable = true;
# config = { config = {
# common = { common = {
# default = "wlr"; default = "wlr";
# }; };
# }; };
wlr.enable = true; wlr.enable = true;
wlr.settings.screencast = { wlr.settings.screencast = {
output_name = "eDP-1"; output_name = "eDP-1";
@ -5987,9 +5994,9 @@ This turns off the display when the lid is closed.
{ {
options.swarselmodules.lid = lib.mkEnableOption "lid config"; options.swarselmodules.lid = lib.mkEnableOption "lid config";
config = lib.mkIf config.swarselmodules.lid { config = lib.mkIf config.swarselmodules.lid {
services.logind = { services.logind.settings.Login = {
lidSwitch = "suspend"; HandleLidSwitch = "suspend";
lidSwitchDocked = "ignore"; HandleLidSwitchDocked = "ignore";
}; };
services.acpid = { services.acpid = {
enable = true; enable = true;
@ -6206,11 +6213,9 @@ Here we just define some aliases for rebuilding the system, and we allow some in
environment.shellAliases = lib.recursiveUpdate environment.shellAliases = lib.recursiveUpdate
{ {
npswitch = "cd ${flakePath}; git pull; sudo nixos-rebuild --flake .#$(hostname) switch; cd -;"; nswitch = "cd ${flakePath}; swarsel-deploy $(hostname) switch; cd -;";
nswitch = "sudo nixos-rebuild --flake ${flakePath}#$(hostname) switch;"; nboot = "cd ${flakePath}; swarsel-deploy $(hostname) boot; cd -;";
npiswitch = "cd ${flakePath}; git pull; sudo nixos-rebuild --flake .#$(hostname) switch --impure; cd -;"; ndry = "cd ${flakePath}; swarsel-deploy $(hostname) dry-activate; cd -;";
nipswitch = "cd ${flakePath}; git pull; sudo nixos-rebuild --flake .#$(hostname) switch --impure; cd -;";
niswitch = "sudo nixos-rebuild --flake ${flakePath}#$(hostname) switch --impure;";
} }
config.swarselsystems.shellAliases; config.swarselsystems.shellAliases;
@ -6347,7 +6352,6 @@ Here we just define some aliases for rebuilding the system, and we allow some in
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
preliminarySelfsigned = false;
defaults = { defaults = {
inherit dnsProvider; inherit dnsProvider;
email = address3; email = address3;
@ -7319,7 +7323,7 @@ Here I am forcing =startWhenNeeded= to false so that the value will not be set t
:END: :END:
#+begin_src nix-ts :tangle modules/nixos/server/immich.nix #+begin_src nix-ts :tangle modules/nixos/server/immich.nix
{ lib, config, globals, ... }: { lib, pkgs, config, globals, ... }:
let let
servicePort = 3001; servicePort = 3001;
serviceUser = "immich"; serviceUser = "immich";
@ -7340,6 +7344,7 @@ Here I am forcing =startWhenNeeded= to false so that the value will not be set t
services.${serviceName} = { services.${serviceName} = {
enable = true; enable = true;
package = pkgs.stable.immich;
host = "0.0.0.0"; host = "0.0.0.0";
port = servicePort; port = servicePort;
openFirewall = true; openFirewall = true;
@ -8719,7 +8724,7 @@ To get other URLs (token, etc.), use https://<kanidmDomain>/oauth2/openid/<clien
services = { services = {
${serviceName} = { ${serviceName} = {
package = pkgs.kanidmWithSecretProvisioning; package = pkgs.kanidmWithSecretProvisioning_1_7;
enableServer = true; enableServer = true;
serverSettings = { serverSettings = {
domain = serviceDomain; domain = serviceDomain;
@ -9825,12 +9830,15 @@ To get other URLs (token, etc.), use https://<kanidmDomain>/oauth2/openid/<clien
:CUSTOM_ID: h:4ccdcd5c-a4dd-49e4-94e7-d81db970059c :CUSTOM_ID: h:4ccdcd5c-a4dd-49e4-94e7-d81db970059c
:END: :END:
#+begin_src nix-ts :tangle modules/nixos/server/shlink.nix #+begin_src nix-ts :tangle modules/nixos/server/shlink.nix
{ self, lib, config, ... }: { self, lib, config, ... }:
let let
servicePort = 8081; servicePort = 8081;
serviceName = "shlink"; serviceName = "shlink";
serviceDomain = config.repo.secrets.common.services.domains.${serviceName}; serviceDomain = config.repo.secrets.common.services.domains.${serviceName};
serviceDir = "/var/lib/shlink";
containerRev = "sha256:1a697baca56ab8821783e0ce53eb4fb22e51bb66749ec50581adc0cb6d031d7a"; containerRev = "sha256:1a697baca56ab8821783e0ce53eb4fb22e51bb66749ec50581adc0cb6d031d7a";
@ -9870,12 +9878,23 @@ To get other URLs (token, etc.), use https://<kanidmDomain>/oauth2/openid/<clien
config.sops.templates.shlink-env.path config.sops.templates.shlink-env.path
]; ];
ports = [ "${builtins.toString servicePort}:${builtins.toString servicePort}" ]; ports = [ "${builtins.toString servicePort}:${builtins.toString servicePort}" ];
volumes = [ ]; volumes = [
"${serviceDir}/data:/etc/shlink/data"
];
}; };
systemd.tmpfiles.rules = [
"d ${serviceDir}/data 0750 1001 root - -"
"d ${serviceDir}/data/cache 0750 1001 root - -"
"d ${serviceDir}/data/locks 0750 1001 root - -"
"d ${serviceDir}/data/log 0750 1001 root - -"
"d ${serviceDir}/data/proxies 0750 1001 root - -"
];
networking.firewall.allowedTCPPorts = [ servicePort ]; networking.firewall.allowedTCPPorts = [ servicePort ];
environment.persistence."/persist".directories = lib.mkIf config.swarselsystems.isImpermanence [ environment.persistence."/persist".directories = lib.mkIf config.swarselsystems.isImpermanence [
{ directory = serviceDir; }
{ directory = "/var/lib/containers"; } { directory = "/var/lib/containers"; }
]; ];
@ -9989,7 +10008,6 @@ Deployment notes:
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://${serviceName}"; proxyPass = "http://${serviceName}";
setOauth2Headers = false;
}; };
"/image" = { "/image" = {
proxyPass = "http://${serviceName}"; proxyPass = "http://${serviceName}";
@ -10793,10 +10811,14 @@ Again, we adapt =nix= to our needs, enable the home-manager command for non-NixO
config = lib.mkIf config.swarselmodules.general { config = lib.mkIf config.swarselmodules.general {
nix = lib.mkIf (!config.swarselsystems.isNixos) { nix = lib.mkIf (!config.swarselsystems.isNixos) {
package = lib.mkForce pkgs.nixVersions.nix_2_28; package = lib.mkForce pkgs.nixVersions.nix_2_28;
# extraOptions = ''
# plugin-files = ${pkgs.dev.nix-plugins}/lib/nix/plugins
# extra-builtins-file = ${self + /nix/extra-builtins.nix}
# '';
extraOptions = '' extraOptions = ''
plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: { plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: {
buildInputs = [pkgs.nixVersions.nix_2_28 pkgs.boost]; buildInputs = [config.nix.package pkgs.boost];
patches = (o.patches or []) ++ ["${self}/nix/nix-plugins.patch"]; patches = o.patches or [];
})}/lib/nix/plugins })}/lib/nix/plugins
extra-builtins-file = ${self + /nix/extra-builtins.nix} extra-builtins-file = ${self + /nix/extra-builtins.nix}
''; '';
@ -10986,7 +11008,7 @@ This holds packages that I can use as provided, or with small modifications (as
# spotify # spotify
vesktop # discord client vesktop # discord client
# nextcloud-client # enables a systemd service that I do not want # nextcloud-client # enables a systemd service that I do not want
stable.spotify-player spotify-player
element-desktop element-desktop
nicotine-plus nicotine-plus
stable.transmission_3 stable.transmission_3
@ -11212,12 +11234,24 @@ It is very convenient to have SSH aliases in place for machines that I use. This
config = lib.mkIf config.swarselmodules.ssh { config = lib.mkIf config.swarselmodules.ssh {
programs.ssh = { programs.ssh = {
enable = true; enable = true;
forwardAgent = true; enableDefaultConfig = false;
extraConfig = '' extraConfig = ''
SetEnv TERM=xterm-256color SetEnv TERM=xterm-256color
ServerAliveInterval 20 ServerAliveInterval 20
''; '';
matchBlocks = { matchBlocks = {
"*" = {
forwardAgent = true;
addKeysToAgent = "no";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
"pfsense" = { "pfsense" = {
hostname = "192.168.1.1"; hostname = "192.168.1.1";
user = "root"; user = "root";
@ -13465,7 +13499,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
{ app_id = "pavucontrol"; } { app_id = "pavucontrol"; }
{ app_id = "syncthingtray"; } { app_id = "syncthingtray"; }
{ app_id = "Element"; } { app_id = "Element"; }
{ class = "1Password"; } { app_id = "1Password"; }
{ app_id = "com.nextcloud.desktopclient.nextcloud"; } { app_id = "com.nextcloud.desktopclient.nextcloud"; }
{ title = "(?:Open|Save) (?:File|Folder|As)"; } { title = "(?:Open|Save) (?:File|Folder|As)"; }
{ title = "^Add$"; } { title = "^Add$"; }
@ -14045,7 +14079,8 @@ This service changes the screen hue at night. I am not sure if that really does
config = lib.mkIf config.swarselmodules.${moduleName} { config = lib.mkIf config.swarselmodules.${moduleName} {
programs.spicetify = { programs.spicetify = {
enable = true; enable = true;
spotifyPackage = pkgs.stable24_11.spotify; # spotifyPackage = pkgs.stable24_11.spotify;
spotifyPackage = pkgs.spotify;
enabledExtensions = with spicePkgs.extensions; [ enabledExtensions = with spicePkgs.extensions; [
fullAppDisplay fullAppDisplay
shuffle shuffle
@ -15009,7 +15044,7 @@ In short, the options defined here are passed to the modules systems using =_mod
browserpass browserpass
clearurls clearurls
darkreader darkreader
enhancer-for-youtube # enhancer-for-youtube
istilldontcareaboutcookies istilldontcareaboutcookies
translate-web-pages translate-web-pages
ublock-origin ublock-origin
@ -15022,7 +15057,7 @@ In short, the options defined here are passed to the modules systems using =_mod
enhanced-github enhanced-github
unpaywall unpaywall
don-t-fuck-with-paste don-t-fuck-with-paste
plasma-integration # plasma-integration
noscript noscript
# configure a shortcut 'ctrl+shift+c' with behaviour 'do nothing' in order to disable the dev console shortcut # configure a shortcut 'ctrl+shift+c' with behaviour 'do nothing' in order to disable the dev console shortcut
@ -22840,8 +22875,8 @@ See the above repository for updates as well as full license text. */
*/ */
:root{ :root{
--uc-autohide-toolbox-delay: 0ms; /* Wait 0.1s before hiding toolbars */ --uc-autohide-toolbox-delay: 200ms; /* Wait 0.1s before hiding toolbars */
--uc-toolbox-rotation: 107deg; /* This may need to be lower on mac - like 75 or so */ --uc-toolbox-rotation: 82deg; /* This may need to be lower on mac - like 75 or so */
--base00: #1D252C; --base00: #1D252C;
--base01: #171D23; --base01: #171D23;
@ -22877,7 +22912,7 @@ See the above repository for updates as well as full license text. */
--browser-area-z-index-toolbox: 3; --browser-area-z-index-toolbox: 3;
position: fixed !important; position: fixed !important;
background-color: var(--lwt-accent-color,black) !important; background-color: var(--lwt-accent-color,black) !important;
transition: transform 0ms linear, opacity 0ms linear !important; transition: transform 82ms linear, opacity 82ms linear !important;
transition-delay: var(--uc-autohide-toolbox-delay) !important; transition-delay: var(--uc-autohide-toolbox-delay) !important;
transform-origin: top; transform-origin: top;
transform: rotateX(var(--uc-toolbox-rotation)); transform: rotateX(var(--uc-toolbox-rotation));
@ -22885,38 +22920,39 @@ See the above repository for updates as well as full license text. */
line-height: 0; line-height: 0;
z-index: 1; z-index: 1;
pointer-events: none; pointer-events: none;
width: 100vw;
} }
:root[sessionrestored] #urlbar[popover]{ :root[sessionrestored] #urlbar[popover]{
pointer-events: none; pointer-events: none;
opacity: 0; opacity: 0;
transition: transform 0ms linear var(--uc-autohide-toolbox-delay), opacity 0ms calc(var(--uc-autohide-toolbox-delay) + 0ms); transition: transform 82ms linear var(--uc-autohide-toolbox-delay), opacity 0ms calc(var(--uc-autohide-toolbox-delay) + 82ms);
transform-origin: 0px calc(0px - var(--tab-min-height) - var(--tab-block-margin) * 2); transform-origin: 0px calc(0px - var(--tab-min-height) - var(--tab-block-margin) * 2);
transform: rotateX(89.9deg); transform: rotateX(89.9deg);
} }
#mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts)) ~ toolbox #urlbar[popover], #mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox #urlbar[popover],
#navigator-toolbox:is(:hover,:focus-within) #urlbar[popover], #navigator-toolbox:is(:hover,:focus-within,[movingtab]) #urlbar[popover],
#urlbar-container > #urlbar[popover]:is([focused],[open]){ #urlbar-container > #urlbar[popover]:is([focused],[open]){
pointer-events: auto; pointer-events: auto;
opacity: 1; opacity: 1;
transition-delay: 0ms; transition-delay: 33ms;
transform: rotateX(0deg); transform: rotateX(0deg);
} }
#mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts)) ~ toolbox, #mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox,
#navigator-toolbox:has(#urlbar:is([open],[focus-within])), #navigator-toolbox:has(#urlbar:is([open],[focus-within])),
#navigator-toolbox:hover, #navigator-toolbox:is(:hover,:focus-within,[movingtab]){
#navigator-toolbox:focus-within{ transition-delay: 33ms !important;
transition-delay: 0ms !important;
transform: rotateX(0); transform: rotateX(0);
opacity: 1; opacity: 1;
} }
/* This makes things like OS menubar/taskbar show the toolbox when hovered in maximized windows. /* This makes things like OS menubar/taskbar show the toolbox when hovered in maximized windows.
* Unfortunately it also means that other OS native surfaces (such as context menu on macos) * Unfortunately it also means that other OS native surfaces (such as context menu on macos)
* and other always-on-top applications will trigger toolbox to show up. */ * and other always-on-top applications will trigger toolbox to show up. */
@media (-moz-bool-pref: "userchrome.autohide-toolbox.unhide-by-native-ui.enabled"){ @media (-moz-bool-pref: "userchrome.autohide-toolbox.unhide-by-native-ui.enabled"),
-moz-pref("userchrome.autohide-toolbox.unhide-by-native-ui.enabled"){
:root[sizemode="maximized"]:not(:hover){ :root[sizemode="maximized"]:not(:hover){
#navigator-toolbox:not(:-moz-window-inactive), #navigator-toolbox:not(:-moz-window-inactive),
#urlbar[popover]:not(:-moz-window-inactive){ #urlbar[popover]:not(:-moz-window-inactive){
transition-delay: 0ms !important; transition-delay: 33ms !important;
transform: rotateX(0); transform: rotateX(0);
opacity: 1; opacity: 1;
} }
@ -22925,18 +22961,6 @@ See the above repository for updates as well as full license text. */
#navigator-toolbox > *{ line-height: normal; pointer-events: auto } #navigator-toolbox > *{ line-height: normal; pointer-events: auto }
#navigator-toolbox,
#navigator-toolbox > *{
width: 100vw;
-moz-appearance: none !important;
}
/* These two exist for oneliner compatibility */
#nav-bar{ width: var(--uc-navigationbar-width,100vw) }
#TabsToolbar
{
visibility: collapse;
}
/* Don't apply transform before window has been fully created */ /* Don't apply transform before window has been fully created */
:root:not([sessionrestored]) #navigator-toolbox{ transform:none !important } :root:not([sessionrestored]) #navigator-toolbox{ transform:none !important }
@ -22947,7 +22971,12 @@ See the above repository for updates as well as full license text. */
} }
#navigator-toolbox[inFullscreen] > #PersonalToolbar, #navigator-toolbox[inFullscreen] > #PersonalToolbar,
#PersonalToolbar[collapsed="true"]{ display: none } #PersonalToolbar:is([collapsed=""],[collapsed="true"]){ display: none }
/* This is a bit hacky fix for an issue that will make urlbar zero pixels tall after you enter customize mode */
#urlbar[breakout][breakout-extend] > .urlbar-input-container{
padding-block: calc(min(4px,(var(--urlbar-container-height) - var(--urlbar-height)) / 2) + var(--urlbar-container-padding)) !important;
}
/* Uncomment this if tabs toolbar is hidden with hide_tabs_toolbar.css */ /* Uncomment this if tabs toolbar is hidden with hide_tabs_toolbar.css */
/*#titlebar{ margin-bottom: -9px }*/ /*#titlebar{ margin-bottom: -9px }*/
@ -22957,101 +22986,6 @@ See the above repository for updates as well as full license text. */
#navigator-toolbox{ flex-direction: column; display: flex; } #navigator-toolbox{ flex-direction: column; display: flex; }
#titlebar{ order: 2 } #titlebar{ order: 2 }
*/ */
#sidebar-header {
display: none;
}
#sidebar-header {
/* display: none; */
visibility: collapse !important;
}
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_sidebar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Show sidebar only when the cursor is over it */
/* The border controlling sidebar width will be removed so you'll need to modify these values to change width */
#sidebar-box{
--uc-sidebar-width: 30px;
--uc-sidebar-hover-width: 210px;
--uc-autohide-sidebar-delay: 0ms; /* Wait 0.6s before hiding sidebar */
--uc-autohide-transition-duration: 0ms;
--uc-autohide-transition-type: linear;
--browser-area-z-index-sidebar: 3;
position: relative;
min-width: var(--uc-sidebar-width) !important;
width: var(--uc-sidebar-width) !important;
max-width: var(--uc-sidebar-width) !important;
z-index: var(--browser-area-z-index-sidebar,3);
}
#sidebar-box[positionend]{ direction: rtl }
#sidebar-box[positionend] > *{ direction: ltr }
#sidebar-box[positionend]:-moz-locale-dir(rtl){ direction: ltr }
#sidebar-box[positionend]:-moz-locale-dir(rtl) > *{ direction: rtl }
#main-window[sizemode="fullscreen"] #sidebar-box{ --uc-sidebar-width: 1px; }
#sidebar-splitter{ display: none }
#sidebar-header{
overflow: hidden;
color: var(--chrome-color, inherit) !important;
padding-inline: 0 !important;
}
#sidebar-header::before,
#sidebar-header::after{
content: "";
display: flex;
padding-left: 8px;
}
#sidebar-header,
#sidebar{
transition: min-width var(--uc-autohide-transition-duration) var(--uc-autohide-transition-type) var(--uc-autohide-sidebar-delay) !important;
min-width: var(--uc-sidebar-width) !important;
will-change: min-width;
}
#sidebar-box:hover > #sidebar-header,
#sidebar-box:hover > #sidebar{
min-width: var(--uc-sidebar-hover-width) !important;
transition-delay: 0ms !important;
}
.sidebar-panel{
background-color: transparent !important;
color: var(--newtab-text-primary-color) !important;
}
.sidebar-panel #search-box{
-moz-appearance: none !important;
background-color: rgba(249,249,250,0.1) !important;
color: inherit !important;
}
/* Add sidebar divider and give it background */
#sidebar,
#sidebar-header{
background-color: inherit !important;
border-inline: 1px solid rgb(80,80,80);
border-inline-width: 0px 1px;
}
#sidebar-box:not([positionend]) > :-moz-locale-dir(rtl),
#sidebar-box[positionend] > *{
border-inline-width: 1px 0px;
}
/* Move statuspanel to the other side when sidebar is hovered so it doesn't get covered by sidebar */
#sidebar-box:not([positionend]):hover ~ #appcontent #statuspanel{
inset-inline: auto 0px !important;
}
#sidebar-box:not([positionend]):hover ~ #appcontent #statuspanel-label{
margin-inline: 0px !important;
border-left-style: solid !important;
}
#+end_src #+end_src
** Default Flake Template ** Default Flake Template

View file

@ -6,8 +6,8 @@ See the above repository for updates as well as full license text. */
*/ */
:root{ :root{
--uc-autohide-toolbox-delay: 0ms; /* Wait 0.1s before hiding toolbars */ --uc-autohide-toolbox-delay: 200ms; /* Wait 0.1s before hiding toolbars */
--uc-toolbox-rotation: 107deg; /* This may need to be lower on mac - like 75 or so */ --uc-toolbox-rotation: 82deg; /* This may need to be lower on mac - like 75 or so */
--base00: #1D252C; --base00: #1D252C;
--base01: #171D23; --base01: #171D23;
@ -43,7 +43,7 @@ See the above repository for updates as well as full license text. */
--browser-area-z-index-toolbox: 3; --browser-area-z-index-toolbox: 3;
position: fixed !important; position: fixed !important;
background-color: var(--lwt-accent-color,black) !important; background-color: var(--lwt-accent-color,black) !important;
transition: transform 0ms linear, opacity 0ms linear !important; transition: transform 82ms linear, opacity 82ms linear !important;
transition-delay: var(--uc-autohide-toolbox-delay) !important; transition-delay: var(--uc-autohide-toolbox-delay) !important;
transform-origin: top; transform-origin: top;
transform: rotateX(var(--uc-toolbox-rotation)); transform: rotateX(var(--uc-toolbox-rotation));
@ -51,38 +51,39 @@ See the above repository for updates as well as full license text. */
line-height: 0; line-height: 0;
z-index: 1; z-index: 1;
pointer-events: none; pointer-events: none;
width: 100vw;
} }
:root[sessionrestored] #urlbar[popover]{ :root[sessionrestored] #urlbar[popover]{
pointer-events: none; pointer-events: none;
opacity: 0; opacity: 0;
transition: transform 0ms linear var(--uc-autohide-toolbox-delay), opacity 0ms calc(var(--uc-autohide-toolbox-delay) + 0ms); transition: transform 82ms linear var(--uc-autohide-toolbox-delay), opacity 0ms calc(var(--uc-autohide-toolbox-delay) + 82ms);
transform-origin: 0px calc(0px - var(--tab-min-height) - var(--tab-block-margin) * 2); transform-origin: 0px calc(0px - var(--tab-min-height) - var(--tab-block-margin) * 2);
transform: rotateX(89.9deg); transform: rotateX(89.9deg);
} }
#mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts)) ~ toolbox #urlbar[popover], #mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox #urlbar[popover],
#navigator-toolbox:is(:hover,:focus-within) #urlbar[popover], #navigator-toolbox:is(:hover,:focus-within,[movingtab]) #urlbar[popover],
#urlbar-container > #urlbar[popover]:is([focused],[open]){ #urlbar-container > #urlbar[popover]:is([focused],[open]){
pointer-events: auto; pointer-events: auto;
opacity: 1; opacity: 1;
transition-delay: 0ms; transition-delay: 33ms;
transform: rotateX(0deg); transform: rotateX(0deg);
} }
#mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts)) ~ toolbox, #mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox,
#navigator-toolbox:has(#urlbar:is([open],[focus-within])), #navigator-toolbox:has(#urlbar:is([open],[focus-within])),
#navigator-toolbox:hover, #navigator-toolbox:is(:hover,:focus-within,[movingtab]){
#navigator-toolbox:focus-within{ transition-delay: 33ms !important;
transition-delay: 0ms !important;
transform: rotateX(0); transform: rotateX(0);
opacity: 1; opacity: 1;
} }
/* This makes things like OS menubar/taskbar show the toolbox when hovered in maximized windows. /* This makes things like OS menubar/taskbar show the toolbox when hovered in maximized windows.
* Unfortunately it also means that other OS native surfaces (such as context menu on macos) * Unfortunately it also means that other OS native surfaces (such as context menu on macos)
* and other always-on-top applications will trigger toolbox to show up. */ * and other always-on-top applications will trigger toolbox to show up. */
@media (-moz-bool-pref: "userchrome.autohide-toolbox.unhide-by-native-ui.enabled"){ @media (-moz-bool-pref: "userchrome.autohide-toolbox.unhide-by-native-ui.enabled"),
-moz-pref("userchrome.autohide-toolbox.unhide-by-native-ui.enabled"){
:root[sizemode="maximized"]:not(:hover){ :root[sizemode="maximized"]:not(:hover){
#navigator-toolbox:not(:-moz-window-inactive), #navigator-toolbox:not(:-moz-window-inactive),
#urlbar[popover]:not(:-moz-window-inactive){ #urlbar[popover]:not(:-moz-window-inactive){
transition-delay: 0ms !important; transition-delay: 33ms !important;
transform: rotateX(0); transform: rotateX(0);
opacity: 1; opacity: 1;
} }
@ -91,18 +92,6 @@ See the above repository for updates as well as full license text. */
#navigator-toolbox > *{ line-height: normal; pointer-events: auto } #navigator-toolbox > *{ line-height: normal; pointer-events: auto }
#navigator-toolbox,
#navigator-toolbox > *{
width: 100vw;
-moz-appearance: none !important;
}
/* These two exist for oneliner compatibility */
#nav-bar{ width: var(--uc-navigationbar-width,100vw) }
#TabsToolbar
{
visibility: collapse;
}
/* Don't apply transform before window has been fully created */ /* Don't apply transform before window has been fully created */
:root:not([sessionrestored]) #navigator-toolbox{ transform:none !important } :root:not([sessionrestored]) #navigator-toolbox{ transform:none !important }
@ -113,7 +102,12 @@ See the above repository for updates as well as full license text. */
} }
#navigator-toolbox[inFullscreen] > #PersonalToolbar, #navigator-toolbox[inFullscreen] > #PersonalToolbar,
#PersonalToolbar[collapsed="true"]{ display: none } #PersonalToolbar:is([collapsed=""],[collapsed="true"]){ display: none }
/* This is a bit hacky fix for an issue that will make urlbar zero pixels tall after you enter customize mode */
#urlbar[breakout][breakout-extend] > .urlbar-input-container{
padding-block: calc(min(4px,(var(--urlbar-container-height) - var(--urlbar-height)) / 2) + var(--urlbar-container-padding)) !important;
}
/* Uncomment this if tabs toolbar is hidden with hide_tabs_toolbar.css */ /* Uncomment this if tabs toolbar is hidden with hide_tabs_toolbar.css */
/*#titlebar{ margin-bottom: -9px }*/ /*#titlebar{ margin-bottom: -9px }*/
@ -123,98 +117,3 @@ See the above repository for updates as well as full license text. */
#navigator-toolbox{ flex-direction: column; display: flex; } #navigator-toolbox{ flex-direction: column; display: flex; }
#titlebar{ order: 2 } #titlebar{ order: 2 }
*/ */
#sidebar-header {
display: none;
}
#sidebar-header {
/* display: none; */
visibility: collapse !important;
}
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_sidebar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Show sidebar only when the cursor is over it */
/* The border controlling sidebar width will be removed so you'll need to modify these values to change width */
#sidebar-box{
--uc-sidebar-width: 30px;
--uc-sidebar-hover-width: 210px;
--uc-autohide-sidebar-delay: 0ms; /* Wait 0.6s before hiding sidebar */
--uc-autohide-transition-duration: 0ms;
--uc-autohide-transition-type: linear;
--browser-area-z-index-sidebar: 3;
position: relative;
min-width: var(--uc-sidebar-width) !important;
width: var(--uc-sidebar-width) !important;
max-width: var(--uc-sidebar-width) !important;
z-index: var(--browser-area-z-index-sidebar,3);
}
#sidebar-box[positionend]{ direction: rtl }
#sidebar-box[positionend] > *{ direction: ltr }
#sidebar-box[positionend]:-moz-locale-dir(rtl){ direction: ltr }
#sidebar-box[positionend]:-moz-locale-dir(rtl) > *{ direction: rtl }
#main-window[sizemode="fullscreen"] #sidebar-box{ --uc-sidebar-width: 1px; }
#sidebar-splitter{ display: none }
#sidebar-header{
overflow: hidden;
color: var(--chrome-color, inherit) !important;
padding-inline: 0 !important;
}
#sidebar-header::before,
#sidebar-header::after{
content: "";
display: flex;
padding-left: 8px;
}
#sidebar-header,
#sidebar{
transition: min-width var(--uc-autohide-transition-duration) var(--uc-autohide-transition-type) var(--uc-autohide-sidebar-delay) !important;
min-width: var(--uc-sidebar-width) !important;
will-change: min-width;
}
#sidebar-box:hover > #sidebar-header,
#sidebar-box:hover > #sidebar{
min-width: var(--uc-sidebar-hover-width) !important;
transition-delay: 0ms !important;
}
.sidebar-panel{
background-color: transparent !important;
color: var(--newtab-text-primary-color) !important;
}
.sidebar-panel #search-box{
-moz-appearance: none !important;
background-color: rgba(249,249,250,0.1) !important;
color: inherit !important;
}
/* Add sidebar divider and give it background */
#sidebar,
#sidebar-header{
background-color: inherit !important;
border-inline: 1px solid rgb(80,80,80);
border-inline-width: 0px 1px;
}
#sidebar-box:not([positionend]) > :-moz-locale-dir(rtl),
#sidebar-box[positionend] > *{
border-inline-width: 1px 0px;
}
/* Move statuspanel to the other side when sidebar is hovered so it doesn't get covered by sidebar */
#sidebar-box:not([positionend]):hover ~ #appcontent #statuspanel{
inset-inline: auto 0px !important;
}
#sidebar-box:not([positionend]):hover ~ #appcontent #statuspanel-label{
margin-inline: 0px !important;
border-left-style: solid !important;
}

2521
flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -62,7 +62,8 @@
url = "github:dj95/zjstatus"; url = "github:dj95/zjstatus";
}; };
fw-fanctrl = { fw-fanctrl = {
url = "github:TamtamHero/fw-fanctrl/packaging/nix"; # url = "github:TamtamHero/fw-fanctrl/packaging/nix";
url = "github:Swarsel/fw-fanctrl/packaging/nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-darwin = { nix-darwin = {

View file

@ -1,5 +1,5 @@
{ {
"data": "ENC[AES256_GCM,data:ehwByZT896X/hKe5CgolapiScCrPj9yhc99mWJ8HCDvK/p5JsZcq/fISfnhNDtXw2mk9DzdCAOkOqaJ2K/ZQTkTogqKbO/992K23hXe6xF/HhjjELJuRf5mnVT8Z9T27Co9w1FyGQnzIMEJcj7NVfnwjZjOSRFJG9u2tjRy09gO6cNnRF4fKZzqy3BRKWo/2CCib+nIFTrUX/tE9gUm0kIkX9lEDFH4lEXdNnVZTPeGM8OTAhiClWzqWInFqW9CrXaXuZrkfa0XyaXG4pWr+J8rYjBGqCHU4h43FqkUU0UKbapTbnY7yxlnwA61dueGYYpXGjRuyY8rVD9GWd7FgPO7SrgbvOb6nSGBOdDsBa2ME3ysG2+9tQwOvKbllpD3BlK0ettpcdpqBtpFUrpf8PUJsmWdzVZTP0ZVM0k3OdqLIPzgB5mLrcN5MvJ6MvWXWo1i/yWKGFVSGNfD8cieI7avIXm9zwSouDz06fmq9cWtZ4oG+z+h0fjsw7Ns5/mmH8r298JIQmJKg8LhShA0PCC4Yptv8RCDJMv6DRVMCqIEc10rpg0jDZWPImeHh4eCY6qyXoDsDRXVIEEYVawQJIN7PJfV3fN8X+wCJJatARIrFapJFLGNRCyFrIG5h5IhACwaBmawZrJf9WQVaKCLVQ+NDyC6PMmsmuV5b6JukrPruTfXYLFdIODEr8qVYfvwaCN1mqa/iVLO3T9zNUEed7bSuLj0KAQdEdoxhrB/hU7EO3q9VfjZXMlnDyDQNAPKwpnsk18kCgVWL3S2BKwQbfFvKi9Aqx0WtBkn6K9UJ0tZyOywz1RdhH/CL+FxOU4PsG8piNgrvWEqMDFPaefaj9BNKIY8Mhb1wDgb5etVbT7vvhIGTZfUVUAOcXmySqqiDdSNwImDZAMJmzAoArzyUswq/dVzNmCfm7Or9/KAZxp5nqM/DrfPw2wLWpOxxyY6R/irzT9KyhHHtv59IROIDtU0wm6gzU3j+oEJ2MgnpRzgqknDM1K8j9Wk/kzPcT9Hqp9N95NfLApQHaKuDtmqFoa09mIQa5pGFacArWA0P8PjEsj5vJLZ1n/+HG0odU3fv5z54Azd1MmHu1lIvIRlbvKDmtvFW53IyLnD1sqRMCkntsuuef8bIobS6An8wy08tP+bKaPX4pMLUD9TpSkYgPOJEx9MVpUyUSGiBnVoN/DJr3ZrDY6cB9d+nOD9euQLv0F+dXteArvuxe2uTvetnmta+fW0+fQhLOoD2tNehOq3jyn1/JJlIzhx4K6go1toNeUKcZX/niYhzYjSw6+q6kQPcz+t+LhqyWdlWnLEDMc2auiJRpImGMjGYYF+pK6tPkBftmR5h0DcG7EYgL2XGEGprKRIIUuZ4a+DGGqb1aL99WenwU+Wtz/kvohuLZd1jsym0lhgqxlenx54GIzMDCu6UF5vYd1dnqfpKH0HjlBFRCZk/WXCp6BFrgtmhbUhfCi4xCUniDsN2zeIzH7rF+uIdqsTtm2bbSLBZh3RqeswqFMSs7ZnQRjmT3CdXS7F45vX2pMyo,iv:AtYXO4kgmOsMys8DFNe7aCq1PJ9sBzsaAmaNGVNMq4A=,tag:2ovss2xLfW3GgcdLfltwcQ==,type:str]", "data": "ENC[AES256_GCM,data:lDbxvTQBbWAyHGx1a0TPXA6nIJ4crJICZaG/VYdeRl09NbJeF1dO2/UEquQxulE0IR+VkzIbfRiLPJ74kRcEsuFEBQ9LrF+gMEgwocQGCPGRTaWTfl84HfcX4qo+elOB5/W5lx1moOdYKFNFkxKbAj6wN0A8n0YBFqPDW/zeMO0DU6+MLW1XEb8zjG0hERocHb8svHVv2Xhu6sP2AX844vtN9u2xKil/kAR8XLPyuVCutsO+8GNfGkZh4hYdn5H+TYmWcWzzLujBt2H8+7UfdYsU4Q2PYcJ/Uokol8PAqMmPQDt9fF2S/IBbWZBmJY+ZmcxGHgYGY1+FeXZviIR37i8t9DS6isasDmGexDn4WyBq45XI/xo96qy0+GNHbeUoirAWWa+2YhLeqekG8q1luTbMh1uLw1n+ZmT3SexA20ens2sYmwjWdhyCR0cY3lcLhP/NVXgnbmOP61RUl7/RCPq0F3PCZ29LJG7oeDjD3JbJypRhTKnRMF+heEPrvmacWrkCMpEAkR8eB2WQmDxUTFyFTk/tv55GtHDuw5uA77pSmPIqVPppH2CupzDf+nBKyVIqON1jbpyxjlE8bBHtrEWEd0SioiTuC/CcoytzB8IiiEDgNjgoqNHfHYRyxGq0EKFtVcdqvkm3mbD0XyGG0UR3Arl8QSdHhIBSqedN7Y6rZJxef6VfLuxE13FWrZnSVGopAjMb/RTZbXLxjDNeHg6HwdBlrXMT7rps7jxbg39v5sOhGYhphF/L7KdCKVfmi8ubAfDVFZ3XRSuBzcHCW8FkxBWG+7Gnl3mMoNVw8loQwUjT+PbL1VHNQCr2fqS4wrv6ehQZIqOsqqlUF9JH9A3TgmHb4ioQ+jAEyOymTmrMzeaUBzcB9w54epkU+okDTO1LOvwC6gvEOQMoHv6fI2YCsQRCH3Mk3rhNBaotD3lQfuz1Pc3XL8t/9KGrCVwHLAoA+lt9g6o1KZoiBfcp3pFCWsPX3lrmUsJnKZHIVO+S9jOz+aJdOgaX/h5+cHp607bL8Zb296N4yK9yt5U+3mYONKn/hzGAmSghjfb/GTlMRJa5f6J9SerUvKqrjUVXJ2CmMAYojBt30Z1QRXIADRLLeyJglMZy9TwtoNsVr7iD2+rylU5TLJmPpxDbnQFriN0X4yhp1wYYBgjVkXV4SNGElDxjm0HFsBJkBaOpXeijCrcOJ5vmnuGLIhBTw+3qG4dEx/foUYRV1oJFrwH1U/f4oL9cOfdC0B9fv9yXJ/GORywOIlVb4FNLewSbu+PIAiZJLVQcBeBWNKQfoIb892ao2RXXJN6XZxp7IfEIBRBM/sfcfgtDk5ud+nuYPWYf09533t/ZjgbZ1en24MAwsit060IPROVwW3pIh2TSx/j1iMWbJ9ljaabBhivmGVo8CLVErGeSLwLL8eXLQ02D9i+LgY1oQavx3675Z7RDwQbdQxjLCKB5Fq77nPGuf2mzTLE/6NL7l6INCcuyg+Vp2zaxX87NMgh+0q9ZFW/ECL/+QzNeBaUmFJ2tXwMiVJAcm2vGiUvI,iv:emlV4hFKBALvzUiaDtu3CDX0Y8fd8TTQmPaR9WyqN4I=,tag:aFPEYachc1H0F+/q3FbuGA==,type:str]",
"sops": { "sops": {
"age": [ "age": [
{ {
@ -11,8 +11,8 @@
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBNeGtTZ0ZSV0trWlQrS2dV\nSFo0dytGYXhRTjl6cDZrUU0wZ1IybDVRaFZrCmZmRmxJNmdwS0xodHdEOGU4bldU\nR1JScHAvZHhlVTBJbWExb0VpR0h2MXMKLS0tIDYwQmZpMjdYRmpBeXFNOXArN0h5\nVGN1THljeCtVV0hXenMyRVJkMjlHNEEKm+yZTT48nYr3H0Bd1OKw/CYk1kwnrBzk\nTgSQHsGXhmOyDag9cSZ4wAOmqtqSjA9bouFBuhl2lSbgpjnarvFaXQ==\n-----END AGE ENCRYPTED FILE-----\n" "enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBNeGtTZ0ZSV0trWlQrS2dV\nSFo0dytGYXhRTjl6cDZrUU0wZ1IybDVRaFZrCmZmRmxJNmdwS0xodHdEOGU4bldU\nR1JScHAvZHhlVTBJbWExb0VpR0h2MXMKLS0tIDYwQmZpMjdYRmpBeXFNOXArN0h5\nVGN1THljeCtVV0hXenMyRVJkMjlHNEEKm+yZTT48nYr3H0Bd1OKw/CYk1kwnrBzk\nTgSQHsGXhmOyDag9cSZ4wAOmqtqSjA9bouFBuhl2lSbgpjnarvFaXQ==\n-----END AGE ENCRYPTED FILE-----\n"
} }
], ],
"lastmodified": "2025-08-12T18:21:56Z", "lastmodified": "2025-09-16T11:26:37Z",
"mac": "ENC[AES256_GCM,data:6gxEKYRIefxE0DKWuc40wkOp/oCzKxg4jMz5WVqWHXUjOorz6A9TTLYo8UhYCVB8pwxC46iLCND3rDWudurz+2vl/tTDpuh04utB2f6GFy+g5f6Rs9x/KWWFR8pB/BwaG9tEW4UfF7bud6FYM9dY5fJADU6CPxpanOLdhzt7j8A=,iv:oxMFeIwbLFzvCZsmf/z5L3Wi4Quscx+zzD8dafEc66Y=,tag:hKfqVt2nZieQyqQAKexMiA==,type:str]", "mac": "ENC[AES256_GCM,data:T87Y33N0Tu8IySeUgrV7lgMzG+8Cl0ezJkjZFHzmeXy7+TJ2JKrnTfy0nY2oXjVCRLC2CBRh6e9n6ITnAnQJxyS3ZDF/FaY1h5LSm4e6bklFxBZRTQhssVJHbRE4dm8VZL+NLli32VM5YG+E8Kn640YE0oUgBlxqS4qmH4/fLl4=,iv:37xHtgBX6nmgGUGhwSpLIItN8OMto5yLL+Xr+KA4h9E=,tag:Y4FU6/HYmu1IgLG4ChutZw==,type:str]",
"pgp": [ "pgp": [
{ {
"created_at": "2025-08-24T23:36:17Z", "created_at": "2025-08-24T23:36:17Z",

View file

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2025-08-25 Mo 22:51 --> <!-- 2025-09-16 Di 14:02 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>SwarselSystems: NixOS + Emacs Configurationo</title> <title>SwarselSystems: NixOS + Emacs Configurationo</title>
@ -822,7 +822,7 @@
</div> </div>
</div> </div>
<p> <p>
<b>This file has 93926 words spanning 24087 lines and was last revised on 2025-08-25 22:51:17 +0200.</b> <b>This file has 94022 words spanning 24038 lines and was last revised on 2025-09-16 14:01:57 +0200.</b>
</p> </p>
<p> <p>
@ -891,7 +891,7 @@ This section defines my Emacs configuration. For a while, I considered to use ry
</p> </p>
<p> <p>
My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2025-08-25 22:51:17 +0200) My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2025-09-16 14:01:57 +0200)
</p></li> </p></li>
</ul> </ul>
@ -903,7 +903,7 @@ system-configuration-options
</div> </div>
<pre class="example"> <pre class="example">
--prefix=/nix/store/6gy60bnwvzbvvmg10vqcnhrjnnrpi4y8-emacs-git-pgtk-20250808.0 --disable-build-details --with-modules --with-pgtk --with-compress-install --with-toolkit-scroll-bars --with-native-compilation --without-imagemagick --with-mailutils --without-small-ja-dic --with-tree-sitter --without-xinput2 --without-xwidgets --with-dbus --with-selinux --prefix=/nix/store/4gbb3sfa5p6l3lhhnf0khvfj6w7qbqk5-emacs-git-pgtk-20250914.0 --disable-build-details --with-modules --with-pgtk --with-compress-install --with-toolkit-scroll-bars --with-native-compilation --without-imagemagick --with-mailutils --without-small-ja-dic --with-tree-sitter --without-xinput2 --without-xwidgets --with-dbus --with-selinux
</pre> </pre>
@ -1380,7 +1380,8 @@ This provides devshell support for flake-parts</li>
url = "github:dj95/zjstatus"; url = "github:dj95/zjstatus";
}; };
fw-fanctrl = { fw-fanctrl = {
url = "github:TamtamHero/fw-fanctrl/packaging/nix"; # url = "github:TamtamHero/fw-fanctrl/packaging/nix";
url = "github:Swarsel/fw-fanctrl/packaging/nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-darwin = { nix-darwin = {
@ -2209,7 +2210,7 @@ Lastly, in the <code>perSystem</code> attribute set, we see that it is actually
devshells.default = { devshells.default = {
packages = [ packages = [
(builtins.trace "alarm: we pinned nix_2_24 because of https://github.com/shlevy/nix-plugins/issues/20" pkgs.nixVersions.nix_2_24) # Always use the nix version from this flake's nixpkgs version, so that nix-plugins (below) doesn't fail because of different nix versions. (builtins.trace "alarm: we pinned nix_2_28 because of https://github.com/shlevy/nix-plugins/issues/20" pkgs.nixVersions.nix_2_28) # Always use the nix version from this flake's nixpkgs version, so that nix-plugins (below) doesn't fail because of different nix versions.
pkgs.git pkgs.git
pkgs.just pkgs.just
pkgs.age pkgs.age
@ -2518,7 +2519,7 @@ in
nativeMessagingHosts = [ nativeMessagingHosts = [
prev.tridactyl-native prev.tridactyl-native
prev.browserpass prev.browserpass
prev.plasma5Packages.plasma-browser-integration # prev.plasma5Packages.plasma-browser-integration
]; ];
}; };
@ -2945,7 +2946,6 @@ in
]; ];
swarselprofiles = { swarselprofiles = {
personal = lib.mkIf (!minimal) true; personal = lib.mkIf (!minimal) true;
work = lib.mkIf (!minimal) true; work = lib.mkIf (!minimal) true;
@ -4428,10 +4428,14 @@ in
nix = { nix = {
channel.enable = false; channel.enable = false;
package = pkgs.nixVersions.nix_2_28; package = pkgs.nixVersions.nix_2_28;
# extraOptions = ''
# plugin-files = ${pkgs.dev.nix-plugins}/lib/nix/plugins
# extra-builtins-file = ${../nix/extra-builtins.nix}
# '';
extraOptions = '' extraOptions = ''
plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: { plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: {
buildInputs = [pkgs.nixVersions.nix_2_28 pkgs.boost]; buildInputs = [config.nix.package pkgs.boost];
patches = (o.patches or []) ++ [ ../nix/nix-plugins.patch ]; patches = (o.patches or []);
})}/lib/nix/plugins })}/lib/nix/plugins
extra-builtins-file = ${../nix/extra-builtins.nix} extra-builtins-file = ${../nix/extra-builtins.nix}
''; '';
@ -5241,13 +5245,15 @@ in
trusted-users = [ "@wheel" "${config.swarselsystems.mainUser}" ]; trusted-users = [ "@wheel" "${config.swarselsystems.mainUser}" ];
}; };
# extraOptions = '' # extraOptions = ''
# plugin-files = ${pkgs.nix-plugins}/lib/nix/plugins # plugin-files = ${pkgs.dev.nix-plugins}/lib/nix/plugins
# extra-builtins-file = ${self + /nix/extra-builtins.nix} # extra-builtins-file = ${self + /nix/extra-builtins.nix}
# '' + lib.optionalString (!minimal) ''
# !include ${config.sops.secrets.github-api-token.path}
# ''; # '';
extraOptions = '' extraOptions = ''
plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: { plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: {
buildInputs = [pkgs.nixVersions.nix_2_28 pkgs.boost]; buildInputs = [config.nix.package pkgs.boost];
patches = (o.patches or []) ++ ["${self}/nix/nix-plugins.patch"]; patches = (o.patches or []);
})}/lib/nix/plugins })}/lib/nix/plugins
extra-builtins-file = ${self + /nix/extra-builtins.nix} extra-builtins-file = ${self + /nix/extra-builtins.nix}
'' + lib.optionalString (!minimal) '' '' + lib.optionalString (!minimal) ''
@ -7060,13 +7066,13 @@ This snipped is added to the activation script that is run after every rebuild a
pkgs.nvd pkgs.nvd
]; ];
system.activationScripts.diff = { # system.activationScripts.diff = {
supportsDryActivation = true; # supportsDryActivation = true;
text = '' # text = ''
${pkgs.nvd}/bin/nvd --color=always --nix-bin-dir=${pkgs.nix}/bin diff \ # ${pkgs.nvd}/bin/nvd --color=always --nix-bin-dir=${pkgs.nix}/bin diff \
/run/current-system "$systemConfig" # /run/current-system "$systemConfig"
''; # '';
}; # };
}; };
} }
</pre> </pre>
@ -7141,11 +7147,11 @@ This allows me to use screen sharing on Wayland. The implementation is a bit cru
config = lib.mkIf config.swarselmodules.xdg-portal { config = lib.mkIf config.swarselmodules.xdg-portal {
xdg.portal = { xdg.portal = {
enable = true; enable = true;
# config = { config = {
# common = { common = {
# default = "wlr"; default = "wlr";
# }; };
# }; };
wlr.enable = true; wlr.enable = true;
wlr.settings.screencast = { wlr.settings.screencast = {
output_name = "eDP-1"; output_name = "eDP-1";
@ -7222,9 +7228,9 @@ This turns off the display when the lid is closed.
{ {
options.swarselmodules.lid = lib.mkEnableOption "lid config"; options.swarselmodules.lid = lib.mkEnableOption "lid config";
config = lib.mkIf config.swarselmodules.lid { config = lib.mkIf config.swarselmodules.lid {
services.logind = { services.logind.settings.Login = {
lidSwitch = "suspend"; HandleLidSwitch = "suspend";
lidSwitchDocked = "ignore"; HandleLidSwitchDocked = "ignore";
}; };
services.acpid = { services.acpid = {
enable = true; enable = true;
@ -7458,11 +7464,9 @@ in
environment.shellAliases = lib.recursiveUpdate environment.shellAliases = lib.recursiveUpdate
{ {
npswitch = "cd ${flakePath}; git pull; sudo nixos-rebuild --flake .#$(hostname) switch; cd -;"; nswitch = "cd ${flakePath}; swarsel-deploy $(hostname) switch; cd -;";
nswitch = "sudo nixos-rebuild --flake ${flakePath}#$(hostname) switch;"; nboot = "cd ${flakePath}; swarsel-deploy $(hostname) boot; cd -;";
npiswitch = "cd ${flakePath}; git pull; sudo nixos-rebuild --flake .#$(hostname) switch --impure; cd -;"; ndry = "cd ${flakePath}; swarsel-deploy $(hostname) dry-activate; cd -;";
nipswitch = "cd ${flakePath}; git pull; sudo nixos-rebuild --flake .#$(hostname) switch --impure; cd -;";
niswitch = "sudo nixos-rebuild --flake ${flakePath}#$(hostname) switch --impure;";
} }
config.swarselsystems.shellAliases; config.swarselsystems.shellAliases;
@ -7599,7 +7603,6 @@ in
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
preliminarySelfsigned = false;
defaults = { defaults = {
inherit dnsProvider; inherit dnsProvider;
email = address3; email = address3;
@ -8573,7 +8576,7 @@ in
<h5 id="h:33bad8ad-b362-4bf1-8a49-b9df92329aed"><span class="section-number-5">3.2.3.16.</span> immich</h5> <h5 id="h:33bad8ad-b362-4bf1-8a49-b9df92329aed"><span class="section-number-5">3.2.3.16.</span> immich</h5>
<div class="outline-text-5" id="text-h:33bad8ad-b362-4bf1-8a49-b9df92329aed"> <div class="outline-text-5" id="text-h:33bad8ad-b362-4bf1-8a49-b9df92329aed">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-nix-ts">{ lib, config, globals, ... }: <pre class="src src-nix-ts">{ lib, pkgs, config, globals, ... }:
let let
servicePort = 3001; servicePort = 3001;
serviceUser = "immich"; serviceUser = "immich";
@ -8594,6 +8597,7 @@ in
services.${serviceName} = { services.${serviceName} = {
enable = true; enable = true;
package = pkgs.stable.immich;
host = "0.0.0.0"; host = "0.0.0.0";
port = servicePort; port = servicePort;
openFirewall = true; openFirewall = true;
@ -9999,7 +10003,7 @@ in
services = { services = {
${serviceName} = { ${serviceName} = {
package = pkgs.kanidmWithSecretProvisioning; package = pkgs.kanidmWithSecretProvisioning_1_7;
enableServer = true; enableServer = true;
serverSettings = { serverSettings = {
domain = serviceDomain; domain = serviceDomain;
@ -11110,6 +11114,7 @@ let
servicePort = 8081; servicePort = 8081;
serviceName = "shlink"; serviceName = "shlink";
serviceDomain = config.repo.secrets.common.services.domains.${serviceName}; serviceDomain = config.repo.secrets.common.services.domains.${serviceName};
serviceDir = "/var/lib/shlink";
containerRev = "sha256:1a697baca56ab8821783e0ce53eb4fb22e51bb66749ec50581adc0cb6d031d7a"; containerRev = "sha256:1a697baca56ab8821783e0ce53eb4fb22e51bb66749ec50581adc0cb6d031d7a";
@ -11149,12 +11154,23 @@ in
config.sops.templates.shlink-env.path config.sops.templates.shlink-env.path
]; ];
ports = [ "${builtins.toString servicePort}:${builtins.toString servicePort}" ]; ports = [ "${builtins.toString servicePort}:${builtins.toString servicePort}" ];
volumes = [ ]; volumes = [
"${serviceDir}/data:/etc/shlink/data"
];
}; };
systemd.tmpfiles.rules = [
"d ${serviceDir}/data 0750 1001 root - -"
"d ${serviceDir}/data/cache 0750 1001 root - -"
"d ${serviceDir}/data/locks 0750 1001 root - -"
"d ${serviceDir}/data/log 0750 1001 root - -"
"d ${serviceDir}/data/proxies 0750 1001 root - -"
];
networking.firewall.allowedTCPPorts = [ servicePort ]; networking.firewall.allowedTCPPorts = [ servicePort ];
environment.persistence."/persist".directories = lib.mkIf config.swarselsystems.isImpermanence [ environment.persistence."/persist".directories = lib.mkIf config.swarselsystems.isImpermanence [
{ directory = serviceDir; }
{ directory = "/var/lib/containers"; } { directory = "/var/lib/containers"; }
]; ];
@ -11272,7 +11288,6 @@ in
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://${serviceName}"; proxyPass = "http://${serviceName}";
setOauth2Headers = false;
}; };
"/image" = { "/image" = {
proxyPass = "http://${serviceName}"; proxyPass = "http://${serviceName}";
@ -12102,10 +12117,14 @@ in
config = lib.mkIf config.swarselmodules.general { config = lib.mkIf config.swarselmodules.general {
nix = lib.mkIf (!config.swarselsystems.isNixos) { nix = lib.mkIf (!config.swarselsystems.isNixos) {
package = lib.mkForce pkgs.nixVersions.nix_2_28; package = lib.mkForce pkgs.nixVersions.nix_2_28;
# extraOptions = ''
# plugin-files = ${pkgs.dev.nix-plugins}/lib/nix/plugins
# extra-builtins-file = ${self + /nix/extra-builtins.nix}
# '';
extraOptions = '' extraOptions = ''
plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: { plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: {
buildInputs = [pkgs.nixVersions.nix_2_28 pkgs.boost]; buildInputs = [config.nix.package pkgs.boost];
patches = (o.patches or []) ++ ["${self}/nix/nix-plugins.patch"]; patches = (o.patches or []);
})}/lib/nix/plugins })}/lib/nix/plugins
extra-builtins-file = ${self + /nix/extra-builtins.nix} extra-builtins-file = ${self + /nix/extra-builtins.nix}
''; '';
@ -12307,7 +12326,7 @@ This holds packages that I can use as provided, or with small modifications (as
# spotify # spotify
vesktop # discord client vesktop # discord client
# nextcloud-client # enables a systemd service that I do not want # nextcloud-client # enables a systemd service that I do not want
stable.spotify-player spotify-player
element-desktop element-desktop
nicotine-plus nicotine-plus
stable.transmission_3 stable.transmission_3
@ -12546,12 +12565,24 @@ It is very convenient to have SSH aliases in place for machines that I use. This
config = lib.mkIf config.swarselmodules.ssh { config = lib.mkIf config.swarselmodules.ssh {
programs.ssh = { programs.ssh = {
enable = true; enable = true;
forwardAgent = true; enableDefaultConfig = false;
extraConfig = '' extraConfig = ''
SetEnv TERM=xterm-256color SetEnv TERM=xterm-256color
ServerAliveInterval 20 ServerAliveInterval 20
''; '';
matchBlocks = { matchBlocks = {
"*" = {
forwardAgent = true;
addKeysToAgent = "no";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
"pfsense" = { "pfsense" = {
hostname = "192.168.1.1"; hostname = "192.168.1.1";
user = "root"; user = "root";
@ -14893,7 +14924,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
{ app_id = "pavucontrol"; } { app_id = "pavucontrol"; }
{ app_id = "syncthingtray"; } { app_id = "syncthingtray"; }
{ app_id = "Element"; } { app_id = "Element"; }
{ class = "1Password"; } { app_id = "1Password"; }
{ app_id = "com.nextcloud.desktopclient.nextcloud"; } { app_id = "com.nextcloud.desktopclient.nextcloud"; }
{ title = "(?:Open|Save) (?:File|Folder|As)"; } { title = "(?:Open|Save) (?:File|Folder|As)"; }
{ title = "^Add$"; } { title = "^Add$"; }
@ -15475,7 +15506,8 @@ in
config = lib.mkIf config.swarselmodules.${moduleName} { config = lib.mkIf config.swarselmodules.${moduleName} {
programs.spicetify = { programs.spicetify = {
enable = true; enable = true;
spotifyPackage = pkgs.stable24_11.spotify; # spotifyPackage = pkgs.stable24_11.spotify;
spotifyPackage = pkgs.spotify;
enabledExtensions = with spicePkgs.extensions; [ enabledExtensions = with spicePkgs.extensions; [
fullAppDisplay fullAppDisplay
shuffle shuffle
@ -16474,7 +16506,7 @@ In short, the options defined here are passed to the modules systems using <code
browserpass browserpass
clearurls clearurls
darkreader darkreader
enhancer-for-youtube # enhancer-for-youtube
istilldontcareaboutcookies istilldontcareaboutcookies
translate-web-pages translate-web-pages
ublock-origin ublock-origin
@ -16487,7 +16519,7 @@ In short, the options defined here are passed to the modules systems using <code
enhanced-github enhanced-github
unpaywall unpaywall
don-t-fuck-with-paste don-t-fuck-with-paste
plasma-integration # plasma-integration
noscript noscript
# configure a shortcut 'ctrl+shift+c' with behaviour 'do nothing' in order to disable the dev console shortcut # configure a shortcut 'ctrl+shift+c' with behaviour 'do nothing' in order to disable the dev console shortcut
@ -24779,8 +24811,8 @@ See the above repository for updates as well as full license text. */
*/ */
:root{ :root{
--uc-autohide-toolbox-delay: 0ms; /* Wait 0.1s before hiding toolbars */ --uc-autohide-toolbox-delay: 200ms; /* Wait 0.1s before hiding toolbars */
--uc-toolbox-rotation: 107deg; /* This may need to be lower on mac - like 75 or so */ --uc-toolbox-rotation: 82deg; /* This may need to be lower on mac - like 75 or so */
--base00: #1D252C; --base00: #1D252C;
--base01: #171D23; --base01: #171D23;
@ -24816,7 +24848,7 @@ See the above repository for updates as well as full license text. */
--browser-area-z-index-toolbox: 3; --browser-area-z-index-toolbox: 3;
position: fixed !important; position: fixed !important;
background-color: var(--lwt-accent-color,black) !important; background-color: var(--lwt-accent-color,black) !important;
transition: transform 0ms linear, opacity 0ms linear !important; transition: transform 82ms linear, opacity 82ms linear !important;
transition-delay: var(--uc-autohide-toolbox-delay) !important; transition-delay: var(--uc-autohide-toolbox-delay) !important;
transform-origin: top; transform-origin: top;
transform: rotateX(var(--uc-toolbox-rotation)); transform: rotateX(var(--uc-toolbox-rotation));
@ -24824,38 +24856,39 @@ See the above repository for updates as well as full license text. */
line-height: 0; line-height: 0;
z-index: 1; z-index: 1;
pointer-events: none; pointer-events: none;
width: 100vw;
} }
:root[sessionrestored] #urlbar[popover]{ :root[sessionrestored] #urlbar[popover]{
pointer-events: none; pointer-events: none;
opacity: 0; opacity: 0;
transition: transform 0ms linear var(--uc-autohide-toolbox-delay), opacity 0ms calc(var(--uc-autohide-toolbox-delay) + 0ms); transition: transform 82ms linear var(--uc-autohide-toolbox-delay), opacity 0ms calc(var(--uc-autohide-toolbox-delay) + 82ms);
transform-origin: 0px calc(0px - var(--tab-min-height) - var(--tab-block-margin) * 2); transform-origin: 0px calc(0px - var(--tab-min-height) - var(--tab-block-margin) * 2);
transform: rotateX(89.9deg); transform: rotateX(89.9deg);
} }
#mainPopupSet:has(&gt; [panelopen]:not(#ask-chat-shortcuts)) ~ toolbox #urlbar[popover], #mainPopupSet:has(&gt; [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox #urlbar[popover],
#navigator-toolbox:is(:hover,:focus-within) #urlbar[popover], #navigator-toolbox:is(:hover,:focus-within,[movingtab]) #urlbar[popover],
#urlbar-container &gt; #urlbar[popover]:is([focused],[open]){ #urlbar-container &gt; #urlbar[popover]:is([focused],[open]){
pointer-events: auto; pointer-events: auto;
opacity: 1; opacity: 1;
transition-delay: 0ms; transition-delay: 33ms;
transform: rotateX(0deg); transform: rotateX(0deg);
} }
#mainPopupSet:has(&gt; [panelopen]:not(#ask-chat-shortcuts)) ~ toolbox, #mainPopupSet:has(&gt; [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox,
#navigator-toolbox:has(#urlbar:is([open],[focus-within])), #navigator-toolbox:has(#urlbar:is([open],[focus-within])),
#navigator-toolbox:hover, #navigator-toolbox:is(:hover,:focus-within,[movingtab]){
#navigator-toolbox:focus-within{ transition-delay: 33ms !important;
transition-delay: 0ms !important;
transform: rotateX(0); transform: rotateX(0);
opacity: 1; opacity: 1;
} }
/* This makes things like OS menubar/taskbar show the toolbox when hovered in maximized windows. /* This makes things like OS menubar/taskbar show the toolbox when hovered in maximized windows.
* Unfortunately it also means that other OS native surfaces (such as context menu on macos) * Unfortunately it also means that other OS native surfaces (such as context menu on macos)
* and other always-on-top applications will trigger toolbox to show up. */ * and other always-on-top applications will trigger toolbox to show up. */
@media (-moz-bool-pref: "userchrome.autohide-toolbox.unhide-by-native-ui.enabled"){ @media (-moz-bool-pref: "userchrome.autohide-toolbox.unhide-by-native-ui.enabled"),
-moz-pref("userchrome.autohide-toolbox.unhide-by-native-ui.enabled"){
:root[sizemode="maximized"]:not(:hover){ :root[sizemode="maximized"]:not(:hover){
#navigator-toolbox:not(:-moz-window-inactive), #navigator-toolbox:not(:-moz-window-inactive),
#urlbar[popover]:not(:-moz-window-inactive){ #urlbar[popover]:not(:-moz-window-inactive){
transition-delay: 0ms !important; transition-delay: 33ms !important;
transform: rotateX(0); transform: rotateX(0);
opacity: 1; opacity: 1;
} }
@ -24864,18 +24897,6 @@ See the above repository for updates as well as full license text. */
#navigator-toolbox &gt; *{ line-height: normal; pointer-events: auto } #navigator-toolbox &gt; *{ line-height: normal; pointer-events: auto }
#navigator-toolbox,
#navigator-toolbox &gt; *{
width: 100vw;
-moz-appearance: none !important;
}
/* These two exist for oneliner compatibility */
#nav-bar{ width: var(--uc-navigationbar-width,100vw) }
#TabsToolbar
{
visibility: collapse;
}
/* Don't apply transform before window has been fully created */ /* Don't apply transform before window has been fully created */
:root:not([sessionrestored]) #navigator-toolbox{ transform:none !important } :root:not([sessionrestored]) #navigator-toolbox{ transform:none !important }
@ -24886,7 +24907,12 @@ See the above repository for updates as well as full license text. */
} }
#navigator-toolbox[inFullscreen] &gt; #PersonalToolbar, #navigator-toolbox[inFullscreen] &gt; #PersonalToolbar,
#PersonalToolbar[collapsed="true"]{ display: none } #PersonalToolbar:is([collapsed=""],[collapsed="true"]){ display: none }
/* This is a bit hacky fix for an issue that will make urlbar zero pixels tall after you enter customize mode */
#urlbar[breakout][breakout-extend] &gt; .urlbar-input-container{
padding-block: calc(min(4px,(var(--urlbar-container-height) - var(--urlbar-height)) / 2) + var(--urlbar-container-padding)) !important;
}
/* Uncomment this if tabs toolbar is hidden with hide_tabs_toolbar.css */ /* Uncomment this if tabs toolbar is hidden with hide_tabs_toolbar.css */
/*#titlebar{ margin-bottom: -9px }*/ /*#titlebar{ margin-bottom: -9px }*/
@ -24896,101 +24922,6 @@ See the above repository for updates as well as full license text. */
#navigator-toolbox{ flex-direction: column; display: flex; } #navigator-toolbox{ flex-direction: column; display: flex; }
#titlebar{ order: 2 } #titlebar{ order: 2 }
*/ */
#sidebar-header {
display: none;
}
#sidebar-header {
/* display: none; */
visibility: collapse !important;
}
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_sidebar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Show sidebar only when the cursor is over it */
/* The border controlling sidebar width will be removed so you'll need to modify these values to change width */
#sidebar-box{
--uc-sidebar-width: 30px;
--uc-sidebar-hover-width: 210px;
--uc-autohide-sidebar-delay: 0ms; /* Wait 0.6s before hiding sidebar */
--uc-autohide-transition-duration: 0ms;
--uc-autohide-transition-type: linear;
--browser-area-z-index-sidebar: 3;
position: relative;
min-width: var(--uc-sidebar-width) !important;
width: var(--uc-sidebar-width) !important;
max-width: var(--uc-sidebar-width) !important;
z-index: var(--browser-area-z-index-sidebar,3);
}
#sidebar-box[positionend]{ direction: rtl }
#sidebar-box[positionend] &gt; *{ direction: ltr }
#sidebar-box[positionend]:-moz-locale-dir(rtl){ direction: ltr }
#sidebar-box[positionend]:-moz-locale-dir(rtl) &gt; *{ direction: rtl }
#main-window[sizemode="fullscreen"] #sidebar-box{ --uc-sidebar-width: 1px; }
#sidebar-splitter{ display: none }
#sidebar-header{
overflow: hidden;
color: var(--chrome-color, inherit) !important;
padding-inline: 0 !important;
}
#sidebar-header::before,
#sidebar-header::after{
content: "";
display: flex;
padding-left: 8px;
}
#sidebar-header,
#sidebar{
transition: min-width var(--uc-autohide-transition-duration) var(--uc-autohide-transition-type) var(--uc-autohide-sidebar-delay) !important;
min-width: var(--uc-sidebar-width) !important;
will-change: min-width;
}
#sidebar-box:hover &gt; #sidebar-header,
#sidebar-box:hover &gt; #sidebar{
min-width: var(--uc-sidebar-hover-width) !important;
transition-delay: 0ms !important;
}
.sidebar-panel{
background-color: transparent !important;
color: var(--newtab-text-primary-color) !important;
}
.sidebar-panel #search-box{
-moz-appearance: none !important;
background-color: rgba(249,249,250,0.1) !important;
color: inherit !important;
}
/* Add sidebar divider and give it background */
#sidebar,
#sidebar-header{
background-color: inherit !important;
border-inline: 1px solid rgb(80,80,80);
border-inline-width: 0px 1px;
}
#sidebar-box:not([positionend]) &gt; :-moz-locale-dir(rtl),
#sidebar-box[positionend] &gt; *{
border-inline-width: 1px 0px;
}
/* Move statuspanel to the other side when sidebar is hovered so it doesn't get covered by sidebar */
#sidebar-box:not([positionend]):hover ~ #appcontent #statuspanel{
inset-inline: auto 0px !important;
}
#sidebar-box:not([positionend]):hover ~ #appcontent #statuspanel-label{
margin-inline: 0px !important;
border-left-style: solid !important;
}
</pre> </pre>
</div> </div>
@ -25717,11 +25648,29 @@ Here lies defined the readme for GitHub and Forgejo:
- Below is a small list of tips that should be helpful if you are new to the nix ecosystem: - Below is a small list of tips that should be helpful if you are new to the nix ecosystem:
- Temporarily install any package using `nix shell nixpkgs#&lt;PACKAGE_NAME&gt;` - this can be e.g. useful if you accidentally removed home-manager from your packages on a non-NixOS machine. Alternatively, use [comma](https://github.com/nix-community/comma) - Temporarily install any package using `nix shell nixpkgs#&lt;PACKAGE_NAME&gt;` - this can be e.g. useful if you accidentally removed home-manager from your packages on a non-NixOS machine.
- if you need multiple packages, you can do `nix shell nixpkgs#{&lt;pkg1&gt;,&lt;pkg2&gt;,&lt;pkg3&gt;}`.
- you can set `nix.registry` to add more flakes to your registry. I use this to add a `n` shorthand to `nixpkgs`, which allows me to do `nix shell n#{&lt;pkg1&gt;,&lt;pkg2&gt;,&lt;pkg3&gt;}`.
- Alternatively, use [comma](https://github.com/nix-community/comma)
- More info on `nix [...]` commands: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix - More info on `nix [...]` commands: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix
- some examples:
- `nix flake update &lt;input-name&gt;` lets you update a specific input only.
- `nix repl &lt;your flake path&gt;` gives quick insight into your written configuration.
- `nix eval &lt;your flake path&gt;#&lt;config attribute&gt;` quickly returns an attribute in your written configuration
- `nix fmt` formats your flake using the formatter specified under `formatter` in your `flake.nix`
- When you are trying to setup a new configuration part, [GitHub code search](https://github.com/search?q=language%3ANix&amp;type=code) can really help you to find a working configuration. Just filter for `.nix` files and the options you are trying to set up. - When you are trying to setup a new configuration part, [GitHub code search](https://github.com/search?q=language%3ANix&amp;type=code) can really help you to find a working configuration. Just filter for `.nix` files and the options you are trying to set up.
- getting packages at a different version than your target (or not packaged at all) can be done in most cases easily with fetchFromGithub (https://ryantm.github.io/nixpkgs/builders/fetchers/) - getting packages at a different version than your target (or not packaged at all) can be done in most cases easily with fetchFromGithub (https://ryantm.github.io/nixpkgs/builders/fetchers/)
- you can easily install old revisions of packages using https://lazamar.co.uk/nix-versions/. You can conveniently spawn a shell with a chosen package available using `vershell &lt;NIXPKGS_REVISION&gt; &lt;PACKAGE&gt;`. Just make sure to pick a revision that has flakes enabled, otherwise you will need the legacy way of spawning the shell (see the link for more info) - you can easily install old revisions of packages using https://lazamar.co.uk/nix-versions/. You can conveniently spawn a shell with a chosen package available using `vershell &lt;NIXPKGS_REVISION&gt; &lt;PACKAGE&gt;`. Just make sure to pick a revision that has flakes enabled, otherwise you will need the legacy way of spawning the shell (see the link for more info)
- when developing modules in a dev branch of another flake, you can use `--override-input` to temporarily use the local directory as the flake source.
- including `nixosConfig ? config` in your module arguments is a smart way of enabling a module to pull in config from NixOS or home-manager config, no matter if it is a NixOS system or not.
- you can have a quick cli evaluation for nix commands with e.g. `nixpgks.lib` available using `nix-instantiate --strict --eval --expr "let lib = import &lt;nixpkgs/lib&gt;; in &lt;expression&gt;"`.
- if you are looking for a specific library, `nix-locate` makes it easy to look for them.
- to look at the dependencies pulled in by a tool, use `nix-tree`
- to find out which derivation uses another derivation, use `nix store --query --referrers &lt;derivation&gt;`
- to get a neat overview of your config changes in recent generations, use `nix profile diff-closures --profile /nix/var/nix/profiles/system`
- to get instead the changes since the last boot, use `nix profile diff-closures /run/*-system`
- if you just need the generation numbers, use `sudo nix-env --list-generations --profile /nix/var/nix/profiles/system`
- to then switch to another generation, you can use `sudo nix-env --switch-generation &lt;generation number&gt; -p /nix/var/nix/profiles/system` followed by `sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch`
- These links are your best friends: - These links are your best friends:
- The nix documentation: https://nix.dev/ - The nix documentation: https://nix.dev/
@ -26154,7 +26103,7 @@ similarly, there exists an version that starts from the right.
</div> </div>
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="author">Author: Leon Schwarzäugl</p> <p class="author">Author: Leon Schwarzäugl</p>
<p class="date">Created: 2025-08-25 Mo 22:51</p> <p class="date">Created: 2025-09-16 Di 14:02</p>
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p> <p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
</div> </div>
</body> </body>

View file

@ -48,10 +48,14 @@ in
nix = { nix = {
channel.enable = false; channel.enable = false;
package = pkgs.nixVersions.nix_2_28; package = pkgs.nixVersions.nix_2_28;
# extraOptions = ''
# plugin-files = ${pkgs.dev.nix-plugins}/lib/nix/plugins
# extra-builtins-file = ${../nix/extra-builtins.nix}
# '';
extraOptions = '' extraOptions = ''
plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: { plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: {
buildInputs = [pkgs.nixVersions.nix_2_28 pkgs.boost]; buildInputs = [config.nix.package pkgs.boost];
patches = (o.patches or []) ++ [ ../nix/nix-plugins.patch ]; patches = o.patches or [];
})}/lib/nix/plugins })}/lib/nix/plugins
extra-builtins-file = ${../nix/extra-builtins.nix} extra-builtins-file = ${../nix/extra-builtins.nix}
''; '';

View file

@ -81,7 +81,7 @@
# spotify # spotify
vesktop # discord client vesktop # discord client
# nextcloud-client # enables a systemd service that I do not want # nextcloud-client # enables a systemd service that I do not want
stable.spotify-player spotify-player
element-desktop element-desktop
nicotine-plus nicotine-plus
stable.transmission_3 stable.transmission_3

View file

@ -7,10 +7,14 @@ in
config = lib.mkIf config.swarselmodules.general { config = lib.mkIf config.swarselmodules.general {
nix = lib.mkIf (!config.swarselsystems.isNixos) { nix = lib.mkIf (!config.swarselsystems.isNixos) {
package = lib.mkForce pkgs.nixVersions.nix_2_28; package = lib.mkForce pkgs.nixVersions.nix_2_28;
# extraOptions = ''
# plugin-files = ${pkgs.dev.nix-plugins}/lib/nix/plugins
# extra-builtins-file = ${self + /nix/extra-builtins.nix}
# '';
extraOptions = '' extraOptions = ''
plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: { plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: {
buildInputs = [pkgs.nixVersions.nix_2_28 pkgs.boost]; buildInputs = [config.nix.package pkgs.boost];
patches = (o.patches or []) ++ ["${self}/nix/nix-plugins.patch"]; patches = o.patches or [];
})}/lib/nix/plugins })}/lib/nix/plugins
extra-builtins-file = ${self + /nix/extra-builtins.nix} extra-builtins-file = ${self + /nix/extra-builtins.nix}
''; '';

View file

@ -8,7 +8,8 @@ in
config = lib.mkIf config.swarselmodules.${moduleName} { config = lib.mkIf config.swarselmodules.${moduleName} {
programs.spicetify = { programs.spicetify = {
enable = true; enable = true;
spotifyPackage = pkgs.stable24_11.spotify; # spotifyPackage = pkgs.stable24_11.spotify;
spotifyPackage = pkgs.spotify;
enabledExtensions = with spicePkgs.extensions; [ enabledExtensions = with spicePkgs.extensions; [
fullAppDisplay fullAppDisplay
shuffle shuffle

View file

@ -4,12 +4,24 @@
config = lib.mkIf config.swarselmodules.ssh { config = lib.mkIf config.swarselmodules.ssh {
programs.ssh = { programs.ssh = {
enable = true; enable = true;
forwardAgent = true; enableDefaultConfig = false;
extraConfig = '' extraConfig = ''
SetEnv TERM=xterm-256color SetEnv TERM=xterm-256color
ServerAliveInterval 20 ServerAliveInterval 20
''; '';
matchBlocks = { matchBlocks = {
"*" = {
forwardAgent = true;
addKeysToAgent = "no";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
"pfsense" = { "pfsense" = {
hostname = "192.168.1.1"; hostname = "192.168.1.1";
user = "root"; user = "root";

View file

@ -262,7 +262,7 @@ in
{ app_id = "pavucontrol"; } { app_id = "pavucontrol"; }
{ app_id = "syncthingtray"; } { app_id = "syncthingtray"; }
{ app_id = "Element"; } { app_id = "Element"; }
{ class = "1Password"; } { app_id = "1Password"; }
{ app_id = "com.nextcloud.desktopclient.nextcloud"; } { app_id = "com.nextcloud.desktopclient.nextcloud"; }
{ title = "(?:Open|Save) (?:File|Folder|As)"; } { title = "(?:Open|Save) (?:File|Folder|As)"; }
{ title = "^Add$"; } { title = "^Add$"; }

View file

@ -2,9 +2,9 @@
{ {
options.swarselmodules.lid = lib.mkEnableOption "lid config"; options.swarselmodules.lid = lib.mkEnableOption "lid config";
config = lib.mkIf config.swarselmodules.lid { config = lib.mkIf config.swarselmodules.lid {
services.logind = { services.logind.settings.Login = {
lidSwitch = "suspend"; HandleLidSwitch = "suspend";
lidSwitchDocked = "ignore"; HandleLidSwitchDocked = "ignore";
}; };
services.acpid = { services.acpid = {
enable = true; enable = true;

View file

@ -7,12 +7,12 @@
pkgs.nvd pkgs.nvd
]; ];
system.activationScripts.diff = { # system.activationScripts.diff = {
supportsDryActivation = true; # supportsDryActivation = true;
text = '' # text = ''
${pkgs.nvd}/bin/nvd --color=always --nix-bin-dir=${pkgs.nix}/bin diff \ # ${pkgs.nvd}/bin/nvd --color=always --nix-bin-dir=${pkgs.nix}/bin diff \
/run/current-system "$systemConfig" # /run/current-system "$systemConfig"
''; # '';
}; # };
}; };
} }

View file

@ -4,11 +4,11 @@
config = lib.mkIf config.swarselmodules.xdg-portal { config = lib.mkIf config.swarselmodules.xdg-portal {
xdg.portal = { xdg.portal = {
enable = true; enable = true;
# config = { config = {
# common = { common = {
# default = "wlr"; default = "wlr";
# }; };
# }; };
wlr.enable = true; wlr.enable = true;
wlr.settings.screencast = { wlr.settings.screencast = {
output_name = "eDP-1"; output_name = "eDP-1";

View file

@ -73,13 +73,15 @@ in
trusted-users = [ "@wheel" "${config.swarselsystems.mainUser}" ]; trusted-users = [ "@wheel" "${config.swarselsystems.mainUser}" ];
}; };
# extraOptions = '' # extraOptions = ''
# plugin-files = ${pkgs.nix-plugins}/lib/nix/plugins # plugin-files = ${pkgs.dev.nix-plugins}/lib/nix/plugins
# extra-builtins-file = ${self + /nix/extra-builtins.nix} # extra-builtins-file = ${self + /nix/extra-builtins.nix}
# '' + lib.optionalString (!minimal) ''
# !include ${config.sops.secrets.github-api-token.path}
# ''; # '';
extraOptions = '' extraOptions = ''
plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: { plugin-files = ${pkgs.nix-plugins.overrideAttrs (o: {
buildInputs = [pkgs.nixVersions.nix_2_28 pkgs.boost]; buildInputs = [config.nix.package pkgs.boost];
patches = (o.patches or []) ++ ["${self}/nix/nix-plugins.patch"]; patches = o.patches or [];
})}/lib/nix/plugins })}/lib/nix/plugins
extra-builtins-file = ${self + /nix/extra-builtins.nix} extra-builtins-file = ${self + /nix/extra-builtins.nix}
'' + lib.optionalString (!minimal) '' '' + lib.optionalString (!minimal) ''

View file

@ -1,4 +1,4 @@
{ lib, config, globals, ... }: { lib, pkgs, config, globals, ... }:
let let
servicePort = 3001; servicePort = 3001;
serviceUser = "immich"; serviceUser = "immich";
@ -19,6 +19,7 @@ in
services.${serviceName} = { services.${serviceName} = {
enable = true; enable = true;
package = pkgs.stable.immich;
host = "0.0.0.0"; host = "0.0.0.0";
port = servicePort; port = servicePort;
openFirewall = true; openFirewall = true;

View file

@ -50,7 +50,7 @@ in
services = { services = {
${serviceName} = { ${serviceName} = {
package = pkgs.kanidmWithSecretProvisioning; package = pkgs.kanidmWithSecretProvisioning_1_7;
enableServer = true; enableServer = true;
serverSettings = { serverSettings = {
domain = serviceDomain; domain = serviceDomain;

View file

@ -20,7 +20,6 @@ in
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
preliminarySelfsigned = false;
defaults = { defaults = {
inherit dnsProvider; inherit dnsProvider;
email = address3; email = address3;

View file

@ -15,11 +15,9 @@ in
environment.shellAliases = lib.recursiveUpdate environment.shellAliases = lib.recursiveUpdate
{ {
npswitch = "cd ${flakePath}; git pull; sudo nixos-rebuild --flake .#$(hostname) switch; cd -;"; nswitch = "cd ${flakePath}; swarsel-deploy $(hostname) switch; cd -;";
nswitch = "sudo nixos-rebuild --flake ${flakePath}#$(hostname) switch;"; nboot = "cd ${flakePath}; swarsel-deploy $(hostname) boot; cd -;";
npiswitch = "cd ${flakePath}; git pull; sudo nixos-rebuild --flake .#$(hostname) switch --impure; cd -;"; ndry = "cd ${flakePath}; swarsel-deploy $(hostname) dry-activate; cd -;";
nipswitch = "cd ${flakePath}; git pull; sudo nixos-rebuild --flake .#$(hostname) switch --impure; cd -;";
niswitch = "sudo nixos-rebuild --flake ${flakePath}#$(hostname) switch --impure;";
} }
config.swarselsystems.shellAliases; config.swarselsystems.shellAliases;

View file

@ -3,6 +3,7 @@ let
servicePort = 8081; servicePort = 8081;
serviceName = "shlink"; serviceName = "shlink";
serviceDomain = config.repo.secrets.common.services.domains.${serviceName}; serviceDomain = config.repo.secrets.common.services.domains.${serviceName};
serviceDir = "/var/lib/shlink";
containerRev = "sha256:1a697baca56ab8821783e0ce53eb4fb22e51bb66749ec50581adc0cb6d031d7a"; containerRev = "sha256:1a697baca56ab8821783e0ce53eb4fb22e51bb66749ec50581adc0cb6d031d7a";
@ -42,12 +43,23 @@ in
config.sops.templates.shlink-env.path config.sops.templates.shlink-env.path
]; ];
ports = [ "${builtins.toString servicePort}:${builtins.toString servicePort}" ]; ports = [ "${builtins.toString servicePort}:${builtins.toString servicePort}" ];
volumes = [ ]; volumes = [
"${serviceDir}/data:/etc/shlink/data"
];
}; };
systemd.tmpfiles.rules = [
"d ${serviceDir}/data 0750 1001 root - -"
"d ${serviceDir}/data/cache 0750 1001 root - -"
"d ${serviceDir}/data/locks 0750 1001 root - -"
"d ${serviceDir}/data/log 0750 1001 root - -"
"d ${serviceDir}/data/proxies 0750 1001 root - -"
];
networking.firewall.allowedTCPPorts = [ servicePort ]; networking.firewall.allowedTCPPorts = [ servicePort ];
environment.persistence."/persist".directories = lib.mkIf config.swarselsystems.isImpermanence [ environment.persistence."/persist".directories = lib.mkIf config.swarselsystems.isImpermanence [
{ directory = serviceDir; }
{ directory = "/var/lib/containers"; } { directory = "/var/lib/containers"; }
]; ];

View file

@ -65,7 +65,6 @@ in
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://${serviceName}"; proxyPass = "http://${serviceName}";
setOauth2Headers = false;
}; };
"/image" = { "/image" = {
proxyPass = "http://${serviceName}"; proxyPass = "http://${serviceName}";

View file

@ -77,7 +77,7 @@
browserpass browserpass
clearurls clearurls
darkreader darkreader
enhancer-for-youtube # enhancer-for-youtube
istilldontcareaboutcookies istilldontcareaboutcookies
translate-web-pages translate-web-pages
ublock-origin ublock-origin
@ -90,7 +90,7 @@
enhanced-github enhanced-github
unpaywall unpaywall
don-t-fuck-with-paste don-t-fuck-with-paste
plasma-integration # plasma-integration
noscript noscript
# configure a shortcut 'ctrl+shift+c' with behaviour 'do nothing' in order to disable the dev console shortcut # configure a shortcut 'ctrl+shift+c' with behaviour 'do nothing' in order to disable the dev console shortcut

View file

@ -48,7 +48,7 @@
devshells.default = { devshells.default = {
packages = [ packages = [
(builtins.trace "alarm: we pinned nix_2_24 because of https://github.com/shlevy/nix-plugins/issues/20" pkgs.nixVersions.nix_2_24) # Always use the nix version from this flake's nixpkgs version, so that nix-plugins (below) doesn't fail because of different nix versions. (builtins.trace "alarm: we pinned nix_2_28 because of https://github.com/shlevy/nix-plugins/issues/20" pkgs.nixVersions.nix_2_28) # Always use the nix version from this flake's nixpkgs version, so that nix-plugins (below) doesn't fail because of different nix versions.
pkgs.git pkgs.git
pkgs.just pkgs.just
pkgs.age pkgs.age

View file

@ -20,7 +20,7 @@ in
nativeMessagingHosts = [ nativeMessagingHosts = [
prev.tridactyl-native prev.tridactyl-native
prev.browserpass prev.browserpass
prev.plasma5Packages.plasma-browser-integration # prev.plasma5Packages.plasma-browser-integration
]; ];
}; };