diff --git a/SwarselSystems.org b/SwarselSystems.org index 43c34a8..9e780ba 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -2193,14 +2193,22 @@ My work machine. workspace = "1:一"; output = "DP-11"; }; - workdesktop = { + work_back_middle = { name = "LG Electronics LG Ultra HD 0x000305A6"; mode = "2560x1440"; scale = "1"; - position = "0,0"; + position = "5120,0"; workspace = "1:一"; output = "DP-10"; }; + work_front_left = { + name = "LG Electronics LG Ultra HD 0x0007AB45"; + mode = "3840x2160"; + scale = "1"; + position = "5120,0"; + workspace = "1:一"; + output = "DP-7"; + }; }; inputs = { "12972:18:Framework_Laptop_16_Keyboard_Module_-_ANSI_Keyboard" = { @@ -2216,6 +2224,7 @@ My work machine. }; }; keybindings = { + "Mod4+Ctrl+p" = "exec wl-mirror eDP-2"; }; }; } @@ -7825,6 +7834,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se lib.recursiveUpdate { "${modifier}+q" = "kill"; "${modifier}+f" = "exec firefox"; + "${modifier}+Shift+f" = "exec swaymsg fullscreen"; "${modifier}+Space" = "exec fuzzel"; "${modifier}+Shift+Space" = "floating toggle"; "${modifier}+e" = "exec emacsclient -nquc -a emacs -e \"(dashboard-open)\""; diff --git a/index.html b/index.html index 869724b..1900bdd 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +-This file has 43858 words spanning 12026 lines and was last revised on 2024-08-05 01:47:51 +0200. +This file has 44130 words spanning 12134 lines and was last revised on 2024-08-06 14:08:16 +0200.
@@ -420,7 +421,7 @@ This section defines my Emacs configuration. For a while, I considered to use ry
-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: 2024-08-05 01:47:51 +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: 2024-08-06 14:08:16 +0200)
++
+isDefault = false;
+userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
+extensions = with pkgs.nur.repos.rycee.firefox-addons; [
+ tridactyl
+ browserpass
+ clearurls
+ darkreader
+ enhancer-for-youtube
+ istilldontcareaboutcookies
+ translate-web-pages
+ ublock-origin
+ reddit-enhancement-suite
+ sponsorblock
+ web-archives
+ single-file
+ widegithub
+ enhanced-github
+ unpaywall
+ don-t-fuck-with-paste
+ plasma-integration
+];
+
+search.engines = {
+ "Nix Packages" = {
+ urls = [{
+ template = "https://search.nixos.org/packages";
+ params = [
+ { name = "type"; value = "packages"; }
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@np" ];
+ };
+
+ "NixOS Wiki" = {
+ urls = [{
+ template = "https://nixos.wiki/index.php?search={searchTerms}";
+ }];
+ iconUpdateURL = "https://nixos.wiki/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000; # every day
+ definedAliases = [ "@nw" ];
+ };
+
+ "NixOS Options" = {
+ urls = [{
+ template = "https://search.nixos.org/options";
+ params = [
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@no" ];
+ };
+
+ "Home Manager Options" = {
+ urls = [{
+ template = "https://home-manager-options.extranix.com/";
+ params = [
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@hm" "@ho" "@hmo" ];
+ };
+
+ "Google".metaData.alias = "@g";
+};
+search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
+
@@ -2424,7 +2506,7 @@ in -
@@ -2732,14 +2814,22 @@ My work machine.
workspace = "1:一";
output = "DP-11";
};
- workdesktop = {
+ work_back_middle = {
name = "LG Electronics LG Ultra HD 0x000305A6";
mode = "2560x1440";
scale = "1";
- position = "0,0";
+ position = "5120,0";
workspace = "1:一";
output = "DP-10";
};
+ work_front_left = {
+ name = "LG Electronics LG Ultra HD 0x0007AB45";
+ mode = "3840x2160";
+ scale = "1";
+ position = "5120,0";
+ workspace = "1:一";
+ output = "DP-7";
+ };
};
inputs = {
"12972:18:Framework_Laptop_16_Keyboard_Module_-_ANSI_Keyboard" = {
@@ -2755,6 +2845,7 @@ My work machine.
};
};
keybindings = {
+ "Mod4+Ctrl+p" = "exec wl-mirror eDP-2";
};
};
}
@@ -4858,8 +4949,8 @@ in
In this section I define packages that I manually want to nixpkgs. This can be useful for packages that are currently awaiting a PR or public packages that I do not want to maintain. @@ -4878,8 +4969,8 @@ These are for packages that are on nixpkgs, but do not fit my usecase, meaning I This is simply a mirror of the most recent stable branch of nixpkgs. Useful for packages that are broken on nixpkgs, but do not need to be on bleeding edge anyways.
@@ -4905,7 +4996,7 @@ in
# Adapted from https://code.kulupu.party/thesuess/home-manager/src/branch/main/modules/river.nix
@@ -4967,7 +5058,7 @@ writeShellApplication {
@@ -5004,7 +5095,7 @@ writeScriptBin "cura" ''
@@ -5023,7 +5114,7 @@ writeShellApplication {
@@ -5041,7 +5132,7 @@ writeShellApplication {
@@ -5059,7 +5150,7 @@ writeShellApplication {
@@ -5077,7 +5168,7 @@ writeShellApplication {
wait=0
@@ -5118,7 +5209,7 @@ writeShellApplication {
# Adapted from https://github.com/bennofs/nix-index/blob/master/command-not-found.sh
@@ -5157,7 +5248,7 @@ command_not_found_handler () {
kitty=0
@@ -5232,7 +5323,7 @@ writeShellApplication {
CFG=$(git --git-dir="$HOME"/.dotfiles/.git --work-tree="$HOME"/.dotfiles/ status -s | wc -l)
@@ -5276,7 +5367,7 @@ writeShellApplication {
if swaymsg opacity plus 0.01 -q; then
@@ -5299,7 +5390,7 @@ writeShellApplication {
set -euo pipefail
@@ -5338,8 +5429,8 @@ writeShellApplication {
@@ -5372,15 +5463,15 @@ writeShellApplication {
In this section I define custom modules under the swarsel attribute. These are mostly used to define settings specific to a host. I keep these settings confined to either home-manager or nixos to maintain compatibility with non-NixOS machines.
{ lib, ... }:
@@ -5414,7 +5505,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
{ lib, ... }:
@@ -5432,7 +5523,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
{ lib, ... }:
@@ -5444,7 +5535,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
{ lib, ... }:
@@ -5456,7 +5547,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
{ lib, ... }:
@@ -5470,7 +5561,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
-{
@@ -5488,7 +5579,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
{ lib, config, ... }:
@@ -5523,7 +5614,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
{ lib, ... }:
@@ -5547,7 +5638,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
{ lib, config, ... }:
@@ -5587,7 +5678,7 @@ in
{ lib, ... }:
@@ -5604,7 +5695,7 @@ in
{ lib, config, ... }:
@@ -5644,7 +5735,7 @@ in
{ lib, config, ... }:
@@ -5680,7 +5771,7 @@ in
{ lib, ... }:
@@ -5705,7 +5796,7 @@ in
{ lib, ... }:
@@ -5721,7 +5812,7 @@ in
{ lib, ... }:
@@ -5738,8 +5829,8 @@ in
By default, stylix wants to style GRUB as well. However, I think that looks horrible. @@ -6510,7 +6601,7 @@ Some programs profit from being installed through dedicated NixOS settings on sy
@@ -6605,7 +6696,7 @@ Enables the blueman service including the nice system tray icon.
In this section we enable compatibility with several network devices I have at home, mainly printers and scanners. @@ -6657,7 +6748,7 @@ services.printing = {
Avahi is the service used for the network discovery.
@@ -6733,7 +6824,7 @@ This is a super-convenient package that lets my remap my CAPS key t
_ : @@ -6818,7 +6909,7 @@ This section houses the greetd related settings. I do not really want to use a d
{ pkgs, ... }:
@@ -6934,7 +7025,7 @@ This section houses the greetd related settings. I do not really want to use a d
{ config, lib, ... }:
@@ -7030,12 +7121,12 @@ This section houses the greetd related settings. I do not really want to use a d
{ pkgs, ... }:
@@ -7068,7 +7159,7 @@ This section houses the greetd related settings. I do not really want to use a d
_ : @@ -7088,7 +7179,7 @@ This section houses the greetd related settings. I do not really want to use a d
_ : @@ -7102,7 +7193,7 @@ This section houses the greetd related settings. I do not really want to use a d
{ pkgs, ... }:
@@ -7119,7 +7210,7 @@ This section houses the greetd related settings. I do not really want to use a d
{ pkgs, ... }:
@@ -7137,8 +7228,8 @@ This section houses the greetd related settings. I do not really want to use a d
This section sets up all the imports that are used in the home-manager section. @@ -7837,7 +7928,7 @@ This section is for programs that require no further configuration. zsh Integrat -
nix-index provides a way to find out which packages are provided by which derivations. By default it also comes with a replacement for command-not-found.sh, however, the implementation is based on a channel based setup. I like consistency, so I replace the command with one that provides a flakes-based output.
@@ -8699,6 +8790,7 @@ I used to build the firefox addon bypass-paywalls-clean myself here
EnableTrackingProtection = true;
};
profiles.default = {
+ id = 0;
isDefault = true;
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
@@ -8711,7 +8803,6 @@ I used to build the firefox addon bypass-paywalls-clean myself here
translate-web-pages
ublock-origin
reddit-enhancement-suite
- pushbullet
sponsorblock
web-archives
single-file
@@ -8916,6 +9007,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
lib.recursiveUpdate {
"${modifier}+q" = "kill";
"${modifier}+f" = "exec firefox";
+ "${modifier}+Shift+f" = "exec swaymsg fullscreen";
"${modifier}+Space" = "exec fuzzel";
"${modifier}+Shift+Space" = "floating toggle";
"${modifier}+e" = "exec emacsclient -nquc -a emacs -e \"(dashboard-open)\"";
@@ -9160,7 +9252,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
{ pkgs, ... }:
@@ -9182,7 +9274,7 @@ services.gpg-agent = {
_:
@@ -9200,12 +9292,12 @@ services.gpg-agent = {
@@ -9241,27 +9333,263 @@ services.gpg-agent = {
{ pkgs, ... }:
- {
- home.packages = with pkgs; [
- teams-for-linux
- google-chrome
- ];
+{
+ home.packages = with pkgs; [
+ teams-for-linux
+ google-chrome
+ thunderbird
+ ansible
+ dig
+ ];
- programs.ssh = {
- matchBlocks = {
- "*.vbc.ac.at" = {
- user = "dc_adm_schwarzaeugl";
- };
- };
- };
+ programs.ssh = {
+ matchBlocks = {
+ "*.vbc.ac.at" = {
+ user = "dc_adm_schwarzaeugl";
+ };
+ };
+ };
- }
+ programs.firefox = {
+ profiles = {
+ dc_adm = {
+ id = 1;
+
+ isDefault = false;
+ userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
+ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
+ tridactyl
+ browserpass
+ clearurls
+ darkreader
+ enhancer-for-youtube
+ istilldontcareaboutcookies
+ translate-web-pages
+ ublock-origin
+ reddit-enhancement-suite
+ sponsorblock
+ web-archives
+ single-file
+ widegithub
+ enhanced-github
+ unpaywall
+ don-t-fuck-with-paste
+ plasma-integration
+ ];
+
+ search.engines = {
+ "Nix Packages" = {
+ urls = [{
+ template = "https://search.nixos.org/packages";
+ params = [
+ { name = "type"; value = "packages"; }
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@np" ];
+ };
+
+ "NixOS Wiki" = {
+ urls = [{
+ template = "https://nixos.wiki/index.php?search={searchTerms}";
+ }];
+ iconUpdateURL = "https://nixos.wiki/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000; # every day
+ definedAliases = [ "@nw" ];
+ };
+
+ "NixOS Options" = {
+ urls = [{
+ template = "https://search.nixos.org/options";
+ params = [
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@no" ];
+ };
+
+ "Home Manager Options" = {
+ urls = [{
+ template = "https://home-manager-options.extranix.com/";
+ params = [
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@hm" "@ho" "@hmo" ];
+ };
+
+ "Google".metaData.alias = "@g";
+ };
+ search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
+
+ };
+ cl_adm = {
+ id = 2;
+
+ isDefault = false;
+ userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
+ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
+ tridactyl
+ browserpass
+ clearurls
+ darkreader
+ enhancer-for-youtube
+ istilldontcareaboutcookies
+ translate-web-pages
+ ublock-origin
+ reddit-enhancement-suite
+ sponsorblock
+ web-archives
+ single-file
+ widegithub
+ enhanced-github
+ unpaywall
+ don-t-fuck-with-paste
+ plasma-integration
+ ];
+
+ search.engines = {
+ "Nix Packages" = {
+ urls = [{
+ template = "https://search.nixos.org/packages";
+ params = [
+ { name = "type"; value = "packages"; }
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@np" ];
+ };
+
+ "NixOS Wiki" = {
+ urls = [{
+ template = "https://nixos.wiki/index.php?search={searchTerms}";
+ }];
+ iconUpdateURL = "https://nixos.wiki/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000; # every day
+ definedAliases = [ "@nw" ];
+ };
+
+ "NixOS Options" = {
+ urls = [{
+ template = "https://search.nixos.org/options";
+ params = [
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@no" ];
+ };
+
+ "Home Manager Options" = {
+ urls = [{
+ template = "https://home-manager-options.extranix.com/";
+ params = [
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@hm" "@ho" "@hmo" ];
+ };
+
+ "Google".metaData.alias = "@g";
+ };
+ search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
+
+ };
+ ws_adm = {
+ id = 3;
+
+ isDefault = false;
+ userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
+ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
+ tridactyl
+ browserpass
+ clearurls
+ darkreader
+ enhancer-for-youtube
+ istilldontcareaboutcookies
+ translate-web-pages
+ ublock-origin
+ reddit-enhancement-suite
+ sponsorblock
+ web-archives
+ single-file
+ widegithub
+ enhanced-github
+ unpaywall
+ don-t-fuck-with-paste
+ plasma-integration
+ ];
+
+ search.engines = {
+ "Nix Packages" = {
+ urls = [{
+ template = "https://search.nixos.org/packages";
+ params = [
+ { name = "type"; value = "packages"; }
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@np" ];
+ };
+
+ "NixOS Wiki" = {
+ urls = [{
+ template = "https://nixos.wiki/index.php?search={searchTerms}";
+ }];
+ iconUpdateURL = "https://nixos.wiki/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000; # every day
+ definedAliases = [ "@nw" ];
+ };
+
+ "NixOS Options" = {
+ urls = [{
+ template = "https://search.nixos.org/options";
+ params = [
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@no" ];
+ };
+
+ "Home Manager Options" = {
+ urls = [{
+ template = "https://home-manager-options.extranix.com/";
+ params = [
+ { name = "query"; value = "{searchTerms}"; }
+ ];
+ }];
+
+ icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
+ definedAliases = [ "@hm" "@ho" "@hmo" ];
+ };
+
+ "Google".metaData.alias = "@g";
+ };
+ search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
+
+ };
+ };
+ };
+
+}
This function searches for common delimiters in region and removes them, summarizing all captured lines by it. @@ -10338,7 +10666,7 @@ This function searches for common delimiters in region and removes them, summari
This formats the org code block at point in accordance to the nixpkgs-fmt formatter
@@ -11911,8 +12239,8 @@ This adds a rudimentary nix-mode to Emacs. I have not really tried this out, as
Adds functions for formatting nix code. @@ -13927,7 +14255,7 @@ My laptop, sadly soon to be replaced by a new one, since most basic functions ar