diff --git a/SwarselSystems.org b/SwarselSystems.org index f5e95c2..66cfd59 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -297,6 +297,18 @@ Here I give a brief overview over the hostmachines that I am using. This is held |🔗 **Link Shortener** | [Shlink](https://github.com/Swarsel/.dotfiles/tree/main/modules/nixos/server/shlink.nix) | #+end_src +** Manual steps when setting up a new machine + +#+begin_src markdown :noweb yes :exports both :results html + + <> + + If the new machine is a work machine, these steps are additionally needed: + + <> + +#+end_src + * flake.nix :PROPERTIES: :CUSTOM_ID: h:c7588c0d-2528-485d-b2df-04d6336428d7 @@ -10580,6 +10592,14 @@ This holds configuration that is specific to framework laptops. Options that I need specifically at work. There are more options at [[#h:f0b2ea93-94c8-48d8-8d47-6fe58f58e0e6][Work]] (home-manager side). +When setting up a new machine: + +#+begin_src markdown :noweb-ref worksetup :exports both :results html + - setup the work VPN: + - using the laptop certificate `.pem` as User cert and private key (CA cert: none) + - vpn gateway is found in `nixosConfig.repo.secrets.local.work.vpnGateway` +#+end_src + #+begin_src nix-ts :tangle modules/nixos/optional/work.nix { self, lib, pkgs, config, configName, ... }: let @@ -11715,7 +11735,7 @@ Sets environment variables. Here I am only setting the EDITOR variable, most var SWARSEL_CAL3 = source3; SWARSEL_CAL3NAME = source3-name; SWARSEL_FULLNAME = fullName; - SWARSEL_MAIL_ALL = allMailAddresses; + SWARSEL_MAIL_ALL = lib.mkDefault allMailAddresses; GITHUB_NOTIFICATION_TOKEN_PATH = nixosConfig.sops.secrets.github-notifications-token.path; OPENROUTER_API_KEY = openrouterApi; }; @@ -13555,38 +13575,45 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi ***** anki service for tray +Sets up a systemd user service for anki that does not stall the shutdown process. Note that the outcommented =ExecStart= does not work because the home-manager anki package builds a separate anki package that - I think - cannot be referenced as no such expression exists in the module. + #+begin_src nix-ts :tangle modules/home/common/anki-tray.nix - { lib, config, ... }: - { - options.swarselmodules.anki-tray = lib.mkEnableOption "enable anki applet for tray"; - config = lib.mkIf config.swarselmodules.anki-tray { + { lib, config, ... }: + { + options.swarselmodules.anki-tray = lib.mkEnableOption "enable anki applet for tray"; + config = lib.mkIf config.swarselmodules.anki-tray { - systemd.user.services.anki-applet = { - Unit = { - Description = "Anki applet"; - Requires = [ "tray.target" ]; - After = [ - "graphical-session.target" - "tray.target" - ]; - PartOf = [ "graphical-session.target" ]; - }; + systemd.user.services.anki-applet = { + Unit = { + Description = "Anki applet"; + Requires = [ "tray.target" ]; + After = [ + "graphical-session.target" + "tray.target" + ]; + PartOf = [ "graphical-session.target" ]; + }; - Install = { - WantedBy = [ "graphical-session.target" ]; - }; + Install = { + WantedBy = [ "graphical-session.target" ]; + }; - Service = { - # ExecStart = "${lib.getExe config.programs.anki.package}"; - ExecStart = "/etc/profiles/per-user/swarsel/bin/anki"; - Environment = [ - "QT_QPA_PLATFORM=xcb" - ]; - }; - }; + Service = { + # ExecStart = "${lib.getExe config.programs.anki.package}"; + Type = "simple"; + ExecStart = "/etc/profiles/per-user/${config.swarselsystems.mainUser}/bin/anki"; + Environment = [ + "QT_QPA_PLATFORM=xcb" + ]; + TimeoutStopSec = "2s"; + KillMode = "mixed"; + KillSignal = "SIGTERM"; + SendSIGKILL = "yes"; + }; + }; - }; - } + }; + } #+end_src ***** element service for tray @@ -14420,7 +14447,18 @@ Currently, I am too lazy to explain every option here, but most of it is very se :CUSTOM_ID: h:7d384e3b-1be7-4644-b304-ada4af0b692b :END: -Settinfs that are needed for the gpg-agent. Also we are enabling emacs support for unlocking my Yubikey here. +Settings that are needed for the gpg-agent. Also we are enabling emacs support for unlocking my Yubikey here. + +When setting up a new machine: + +#+begin_src markdown :noweb-ref setup :exports both :results html + - setup gpgsm for signing of mails using S/MIME: + - `gpgsm --import ~/Certificates/.p12` + - `gpgsm --import ~/Certificates/harica-root.pem` + - `gpgsm --import ~/Certificates/harica-intermediate.pem` + - `gpgsm --list-keys --with-validation "HARICA Client RSA Root CA 2021"` + - trust the certificate and set passphrase +#+end_src #+begin_src nix-ts :tangle modules/home/common/gpg-agent.nix { self, lib, config, pkgs, ... }: @@ -14530,142 +14568,155 @@ This service changes the screen hue at night. I am not sure if that really does #+begin_src nix-ts :tangle modules/home/common/obsidian.nix { lib, config, pkgs, nixosConfig ? config, ... }: - let - moduleName = "obsidian"; - inherit (nixosConfig.repo.secrets.common.obsidian) userIgnoreFilters; - name = "Main"; - in - { - options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} with settings"; - config = lib.mkIf config.swarselmodules.${moduleName} { + let + moduleName = "obsidian"; + inherit (nixosConfig.repo.secrets.common.obsidian) userIgnoreFilters; + name = "Main"; + in + { + options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} with settings"; + config = lib.mkIf config.swarselmodules.${moduleName} { - home.file = { - "${config.programs.obsidian.vaults.${name}.target}/.obsidian/app.json".force = true; - "${config.programs.obsidian.vaults.${name}.target}/.obsidian/appearance.json".force = true; - "${config.programs.obsidian.vaults.${name}.target}/.obsidian/core-plugins.json".force = true; - }; + home.file = { + "${config.programs.obsidian.vaults.${name}.target}/.obsidian/app.json".force = true; + "${config.programs.obsidian.vaults.${name}.target}/.obsidian/appearance.json".force = true; + "${config.programs.obsidian.vaults.${name}.target}/.obsidian/core-plugins.json".force = true; + }; - programs.obsidian = - { - enable = true; - package = pkgs.obsidian; - defaultSettings = { - app = { - attachmentFolderPath = "attachments"; - alwaysUpdateLinks = true; - spellcheck = false; - inherit userIgnoreFilters; - vimMode = false; - newFileLocation = "current"; - }; - corePlugins = [ - "backlink" - "bookmarks" - "canvas" - "command-palette" - "daily-notes" - "editor-status" - "file-explorer" - "file-recovery" - "global-search" - "graph" - "note-composer" - "outgoing-link" - "outline" - "page-preview" - "properties" - "slides" - "switcher" - "tag-pane" - "templates" - "word-count" - ]; - communityPlugins = with pkgs.swarsel-nix; [ - advanced-tables - calendar - file-hider - linter - omnisearch - sort-and-permute-lines - tag-wrangler - tray - ]; + programs.obsidian = + { + enable = true; + package = pkgs.obsidian; + defaultSettings = { + app = { + attachmentFolderPath = "attachments"; + alwaysUpdateLinks = true; + spellcheck = false; + inherit userIgnoreFilters; + vimMode = false; + newFileLocation = "current"; }; - vaults = { - ${name} = { - target = "./Obsidian/${name}"; - settings = { - appearance = { - baseFontSize = lib.mkForce 19; - }; - communityPlugins = with pkgs.swarsel-nix; [ - { - pkg = advanced-tables; - enable = true; - } - { - pkg = calendar; - enable = true; - } - { - pkg = sort-and-permute-lines; - enable = true; - } - { - pkg = tag-wrangler; - enable = true; - } - { - pkg = tray; - enable = true; - settings = { - launchOnStartup = false; - hideOnLaunch = true; - runInBackground = true; - hideTaskbarIcon = false; - createTrayIcon = true; - }; - } - { - pkg = file-hider; - enable = true; - settings = - { - hidden = true; - hiddenList = [ - "attachments" - "images" - "ltximg" - "logseq" - ]; - }; - } - { - pkg = linter; - enable = true; - settings = { - auto-correct-common-misspellings = { - skip-words-with-multiple-capitals = true; - }; - convert-bullet-list-markers = { - enabled = true; - }; - }; - } - { - pkg = omnisearch; - enable = true; - settings = { - hideExcluded = true; - }; - } + hotkeys = { + "graph:open" = [ ]; + "omnisearch:show-modal" = [ + { + modifiers = [ + "Mod" ]; + key = "S"; + } + ]; + "editor:save-file" = [ ]; + "editor:delete-paragraph" = [ ]; + }; + corePlugins = [ + "backlink" + "bookmarks" + "canvas" + "command-palette" + "daily-notes" + "editor-status" + "file-explorer" + "file-recovery" + "global-search" + "graph" + "note-composer" + "outgoing-link" + "outline" + "page-preview" + "properties" + "slides" + "switcher" + "tag-pane" + "templates" + "word-count" + ]; + communityPlugins = with pkgs.swarsel-nix; [ + advanced-tables + calendar + file-hider + linter + omnisearch + sort-and-permute-lines + tag-wrangler + tray + ]; + }; + vaults = { + ${name} = { + target = "./Obsidian/${name}"; + settings = { + appearance = { + baseFontSize = lib.mkForce 19; }; + communityPlugins = with pkgs.swarsel-nix; [ + { + pkg = advanced-tables; + enable = true; + } + { + pkg = calendar; + enable = true; + } + { + pkg = sort-and-permute-lines; + enable = true; + } + { + pkg = tag-wrangler; + enable = true; + } + { + pkg = tray; + enable = true; + settings = { + launchOnStartup = false; + hideOnLaunch = true; + runInBackground = true; + hideTaskbarIcon = false; + createTrayIcon = true; + }; + } + { + pkg = file-hider; + enable = true; + settings = + { + hidden = true; + hiddenList = [ + "attachments" + "images" + "ltximg" + "logseq" + ]; + }; + } + { + pkg = linter; + enable = true; + settings = { + auto-correct-common-misspellings = { + skip-words-with-multiple-capitals = true; + }; + convert-bullet-list-markers = { + enabled = true; + }; + }; + } + { + pkg = omnisearch; + enable = true; + settings = { + hideExcluded = true; + }; + } + ]; }; }; }; - }; - } + }; + }; + } #+end_src **** Anki @@ -15196,642 +15247,654 @@ The rest of the settings is at [[#h:fb3f3e01-7df4-4b06-9e91-aa9cac61a431][gaming #+end_src -**** Work +**** Work (pizauth) :PROPERTIES: :CUSTOM_ID: h:f0b2ea93-94c8-48d8-8d47-6fe58f58e0e6 :END: The rest of the settings is at [[#h:bbf2ecb6-c8ff-4462-b5d5-d45b28604ddf][work]]. Here, I am setting up the different firefox profiles that I need for the SSO sites that I need to access at work as well as a few ssh shorthands. +When setting up a new machine: + +#+begin_src markdown :noweb-ref setup :exports both :results html + - setup pizauth for microsoft mail sync (account names are possibly `uni` and `work`): + - `pizauth auth ` + - `pizauth dump > ~/.pizauth.state` +#+end_src + #+begin_src nix-ts :tangle modules/home/optional/work.nix :noweb yes { self, config, pkgs, lib, vars, nixosConfig ? config, ... }: - let - inherit (config.swarselsystems) homeDir; - in + let + inherit (config.swarselsystems) homeDir; + inherit (nixosConfig.repo.secrets.local.mail) allMailAddresses; + inherit (nixosConfig.repo.secrets.local.work) mailAddress; + in + { + options.swarselmodules.optional.work = lib.mkEnableOption "optional work settings"; + config = lib.mkIf config.swarselmodules.optional.work { - options.swarselmodules.optional.work = lib.mkEnableOption "optional work settings"; - config = lib.mkIf config.swarselmodules.optional.work + home.packages = with pkgs; [ + stable.teams-for-linux + shellcheck + dig + docker + postman + # rclone + libguestfs-with-appliance + stable.prometheus.cli + tigervnc + # openstackclient + + vscode + ]; + + systemd.user.sessionVariables = { + DOCUMENT_DIR_WORK = lib.mkForce "${homeDir}/Documents/Work"; + } // lib.optionalAttrs (!config.swarselsystems.isPublic) { + SWARSEL_MAIL_ALL = lib.mkForce allMailAddresses; + SWARSEL_MAIL_WORK = lib.mkForce mailAddress; + }; + + accounts.email.accounts.work = + let + inherit (nixosConfig.repo.secrets.local.work) mailName; + in { - home.packages = with pkgs; [ - stable.teams-for-linux - shellcheck - dig - docker - postman - # rclone - libguestfs-with-appliance - stable.prometheus.cli - tigervnc - # openstackclient + primary = false; + address = mailAddress; + userName = mailAddress; + realName = mailName; + passwordCommand = "pizauth show work"; + imap = { + host = "outlook.office365.com"; + port = 993; + tls.enable = true; # SSL/TLS + }; + smtp = { + host = "outlook.office365.com"; + port = 587; + tls = { + enable = true; # SSL/TLS + useStartTls = true; + }; + }; + thunderbird = { + enable = true; + profiles = [ "default" ]; + settings = id: { + "mail.smtpserver.smtp_${id}.authMethod" = 10; # oauth + "mail.server.server_${id}.authMethod" = 10; # oauth + # "toolkit.telemetry.enabled" = false; + # "toolkit.telemetry.rejected" = true; + # "toolkit.telemetry.prompted" = 2; + }; + }; + msmtp = { + enable = true; + extraConfig = { + auth = "xoauth2"; + host = "outlook.office365.com"; + protocol = "smtp"; + port = "587"; + tls = "on"; + tls_starttls = "on"; + from = "${mailAddress}"; + user = "${mailAddress}"; + passwordeval = "pizauth show work"; + }; + }; + mu.enable = true; + mbsync = { + enable = true; + expunge = "both"; + patterns = [ "INBOX" ]; + extraConfig = { + account = { + AuthMechs = "XOAUTH2"; + }; + }; + }; + }; - vscode + # wayland.windowManager.sway.config = { + # output = { + # "Applied Creative Technology Transmitter QUATTRO201811" = { + # bg = "${self}/files/wallpaper/navidrome.png ${config.stylix.imageScalingMode}"; + # }; + # "Hewlett Packard HP Z24i CN44250RDT" = { + # bg = "${self}/files/wallpaper/op6wp.png ${config.stylix.imageScalingMode}"; + # }; + # "HP Inc. HP 732pk CNC4080YL5" = { + # bg = "${self}/files/wallpaper/botanicswp.png ${config.stylix.imageScalingMode}"; + # }; + # }; + # }; + + stylix = { + targets.firefox.profileNames = + let + inherit (nixosConfig.repo.secrets.local.work) user1 user2 user3; + in + [ + "${user1}" + "${user2}" + "${user3}" + "work" ]; + }; - - systemd.user.sessionVariables = { - DOCUMENT_DIR_WORK = lib.mkForce "${homeDir}/Documents/Work"; + programs = + let + inherit (nixosConfig.repo.secrets.local.work) user1 user1Long user2 user2Long user3 user3Long user4 path1 loc1 loc2 site1 site2 site3 site4 site5 site6 site7 lifecycle1 lifecycle2 domain1 domain2 gitMail clouds; + in + { + openstackclient = { + enable = true; + inherit clouds; }; + awscli = { + enable = true; + package = pkgs.stable24_05.awscli2; + # settings = { + # "default" = { }; + # "profile s3-imagebuilder-prod" = { }; + # }; + # credentials = { + # "s3-imagebuilder-prod" = { + # aws_access_key_id = "5OYXY4879EJG9I91K1B6"; + # credential_process = "${pkgs.pass}/bin/pass show work/awscli/s3-imagebuilder-prod/secret-key"; + # }; + # }; + }; + git.userEmail = lib.mkForce gitMail; - accounts.email.accounts.work = - let - inherit (nixosConfig.repo.secrets.local.work) mailAddress mailName; - in - { - primary = false; - address = mailAddress; - userName = mailAddress; - realName = mailName; - passwordCommand = "pizauth show work"; - imap = { - host = "outlook.office365.com"; - port = 993; - tls.enable = true; # SSL/TLS - }; - smtp = { - host = "outlook.office365.com"; - port = 587; - tls = { - enable = true; # SSL/TLS - useStartTls = true; - }; - }; - thunderbird = { - enable = true; - profiles = [ "default" ]; - settings = id: { - "mail.smtpserver.smtp_${id}.authMethod" = 10; # oauth - "mail.server.server_${id}.authMethod" = 10; # oauth - # "toolkit.telemetry.enabled" = false; - # "toolkit.telemetry.rejected" = true; - # "toolkit.telemetry.prompted" = 2; - }; - }; - msmtp = { - enable = true; - extraConfig = { - auth = "xoauth2"; - host = "outlook.office365.com"; - protocol = "smtp"; - port = "587"; - tls = "on"; - tls_starttls = "on"; - from = "${mailAddress}"; - user = "${mailAddress}"; - passwordeval = "pizauth show work"; - }; - }; - mu.enable = true; - mbsync = { - enable = true; - expunge = "both"; - patterns = [ "INBOX" ]; - extraConfig = { - account = { - AuthMechs = "XOAUTH2"; - }; - }; - }; + zsh = { + shellAliases = { + dssh = "ssh -l ${user1Long}"; + cssh = "ssh -l ${user2Long}"; + wssh = "ssh -l ${user3Long}"; + }; + cdpath = [ + "~/Documents/Work" + ]; + dirHashes = { + d = "$HOME/.dotfiles"; + w = "$HOME/Documents/Work"; + s = "$HOME/.dotfiles/secrets"; + pr = "$HOME/Documents/Private"; + ac = path1; }; - # wayland.windowManager.sway.config = { - # output = { - # "Applied Creative Technology Transmitter QUATTRO201811" = { - # bg = "${self}/files/wallpaper/navidrome.png ${config.stylix.imageScalingMode}"; - # }; - # "Hewlett Packard HP Z24i CN44250RDT" = { - # bg = "${self}/files/wallpaper/op6wp.png ${config.stylix.imageScalingMode}"; - # }; - # "HP Inc. HP 732pk CNC4080YL5" = { - # bg = "${self}/files/wallpaper/botanicswp.png ${config.stylix.imageScalingMode}"; - # }; - # }; - # }; + sessionVariables = { + VSPHERE_USER = "$(cat ${nixosConfig.sops.secrets.vcuser.path})"; + VSPHERE_PW = "$(cat ${nixosConfig.sops.secrets.vcpw.path})"; + GOVC_USERNAME = "$(cat ${nixosConfig.sops.secrets.govcuser.path})"; + GOVC_PASSWORD = "$(cat ${nixosConfig.sops.secrets.govcpw.path})"; + GOVC_URL = "$(cat ${nixosConfig.sops.secrets.govcurl.path})"; + GOVC_DATACENTER = "$(cat ${nixosConfig.sops.secrets.govcdc.path})"; + GOVC_DATASTORE = "$(cat ${nixosConfig.sops.secrets.govcds.path})"; + GOVC_HOST = "$(cat ${nixosConfig.sops.secrets.govchost.path})"; + GOVC_RESOURCE_POOL = "$(cat ${nixosConfig.sops.secrets.govcpool.path})"; + GOVC_NETWORK = "$(cat ${nixosConfig.sops.secrets.govcnetwork.path})"; + }; + }; - stylix = { - targets.firefox.profileNames = + ssh = { + matchBlocks = { + "${loc1}" = { + hostname = "${loc1}.${domain2}"; + user = user4; + }; + "${loc1}.stg" = { + hostname = "${loc1}.${lifecycle1}.${domain2}"; + user = user4; + }; + "${loc1}.staging" = { + hostname = "${loc1}.${lifecycle1}.${domain2}"; + user = user4; + }; + "${loc1}.dev" = { + hostname = "${loc1}.${lifecycle2}.${domain2}"; + user = user4; + }; + "${loc2}" = { + hostname = "${loc2}.${domain1}"; + user = user1Long; + }; + "${loc2}.stg" = { + hostname = "${loc2}.${lifecycle1}.${domain2}"; + user = user1Long; + }; + "${loc2}.staging" = { + hostname = "${loc2}.${lifecycle1}.${domain2}"; + user = user1Long; + }; + "*.${domain1}" = { + user = user1Long; + }; + }; + }; + + firefox = { + profiles = let - inherit (nixosConfig.repo.secrets.local.work) user1 user2 user3; + isDefault = false; in - [ - "${user1}" - "${user2}" - "${user3}" - "work" - ]; + { + "${user1}" = lib.recursiveUpdate + { + inherit isDefault; + id = 1; + settings = { + "browser.startup.homepage" = "${site1}|${site2}"; + }; + } + vars.firefox; + "${user2}" = lib.recursiveUpdate + { + inherit isDefault; + id = 2; + settings = { + "browser.startup.homepage" = "${site3}"; + }; + } + vars.firefox; + "${user3}" = lib.recursiveUpdate + { + inherit isDefault; + id = 3; + } + vars.firefox; + work = lib.recursiveUpdate + { + inherit isDefault; + id = 4; + settings = { + "browser.startup.homepage" = "${site4}|${site5}|${site6}|${site7}"; + }; + } + vars.firefox; + }; }; - programs = - let - inherit (nixosConfig.repo.secrets.local.work) user1 user1Long user2 user2Long user3 user3Long user4 path1 loc1 loc2 site1 site2 site3 site4 site5 site6 site7 lifecycle1 lifecycle2 domain1 domain2 gitMail clouds; - in + chromium = { + enable = true; + package = pkgs.chromium; + + extensions = [ + # 1password + "gejiddohjgogedgjnonbofjigllpkmbf" + # dark reader + "eimadpbcbfnmbkopoojfekhnkhdbieeh" + # ublock origin + "cjpalhdlnbpafiamejdnhcphjbkeiagm" + # i still dont care about cookies + "edibdbjcniadpccecjdfdjjppcpchdlm" + # browserpass + "naepdomgkenhinolocfifgehidddafch" + ]; + }; + }; + + services = { + kanshi = { + settings = [ { - openstackclient = { - enable = true; - inherit clouds; - }; - awscli = { - enable = true; - package = pkgs.stable24_05.awscli2; - # settings = { - # "default" = { }; - # "profile s3-imagebuilder-prod" = { }; - # }; - # credentials = { - # "s3-imagebuilder-prod" = { - # aws_access_key_id = "5OYXY4879EJG9I91K1B6"; - # credential_process = "${pkgs.pass}/bin/pass show work/awscli/s3-imagebuilder-prod/secret-key"; - # }; - # }; + # seminary room + output = { + criteria = "Applied Creative Technology Transmitter QUATTRO201811"; + scale = 1.0; + mode = "1280x720"; }; - git.userEmail = lib.mkForce gitMail; - - zsh = { - shellAliases = { - dssh = "ssh -l ${user1Long}"; - cssh = "ssh -l ${user2Long}"; - wssh = "ssh -l ${user3Long}"; - }; - cdpath = [ - "~/Documents/Work" + } + { + # work main screen + output = { + criteria = "HP Inc. HP 732pk CNC4080YL5"; + scale = 1.0; + mode = "3840x2160"; + }; + } + { + # work side screen + output = { + criteria = "Hewlett Packard HP Z24i CN44250RDT"; + scale = 1.0; + mode = "1920x1200"; + transform = "270"; + }; + } + { + profile = { + name = "lidopen"; + exec = [ + "${pkgs.swaybg}/bin/swaybg --output '${config.swarselsystems.sharescreen}' --image ${config.swarselsystems.wallpaper} --mode ${config.stylix.imageScalingMode}" + "${pkgs.swaybg}/bin/swaybg --output 'HP Inc. HP 732pk CNC4080YL5' --image ${self}/files/wallpaper/botanicswp.png --mode ${config.stylix.imageScalingMode}" + "${pkgs.swaybg}/bin/swaybg --output 'Hewlett Packard HP Z24i CN44250RDT' --image ${self}/files/wallpaper/op6wp.png --mode ${config.stylix.imageScalingMode}" ]; - dirHashes = { - d = "$HOME/.dotfiles"; - w = "$HOME/Documents/Work"; - s = "$HOME/.dotfiles/secrets"; - pr = "$HOME/Documents/Private"; - ac = path1; - }; - - sessionVariables = { - VSPHERE_USER = "$(cat ${nixosConfig.sops.secrets.vcuser.path})"; - VSPHERE_PW = "$(cat ${nixosConfig.sops.secrets.vcpw.path})"; - GOVC_USERNAME = "$(cat ${nixosConfig.sops.secrets.govcuser.path})"; - GOVC_PASSWORD = "$(cat ${nixosConfig.sops.secrets.govcpw.path})"; - GOVC_URL = "$(cat ${nixosConfig.sops.secrets.govcurl.path})"; - GOVC_DATACENTER = "$(cat ${nixosConfig.sops.secrets.govcdc.path})"; - GOVC_DATASTORE = "$(cat ${nixosConfig.sops.secrets.govcds.path})"; - GOVC_HOST = "$(cat ${nixosConfig.sops.secrets.govchost.path})"; - GOVC_RESOURCE_POOL = "$(cat ${nixosConfig.sops.secrets.govcpool.path})"; - GOVC_NETWORK = "$(cat ${nixosConfig.sops.secrets.govcnetwork.path})"; - }; - }; - - ssh = { - matchBlocks = { - "${loc1}" = { - hostname = "${loc1}.${domain2}"; - user = user4; - }; - "${loc1}.stg" = { - hostname = "${loc1}.${lifecycle1}.${domain2}"; - user = user4; - }; - "${loc1}.staging" = { - hostname = "${loc1}.${lifecycle1}.${domain2}"; - user = user4; - }; - "${loc1}.dev" = { - hostname = "${loc1}.${lifecycle2}.${domain2}"; - user = user4; - }; - "${loc2}" = { - hostname = "${loc2}.${domain1}"; - user = user1Long; - }; - "${loc2}.stg" = { - hostname = "${loc2}.${lifecycle1}.${domain2}"; - user = user1Long; - }; - "${loc2}.staging" = { - hostname = "${loc2}.${lifecycle1}.${domain2}"; - user = user1Long; - }; - "*.${domain1}" = { - user = user1Long; - }; - }; - }; - - firefox = { - profiles = - let - isDefault = false; - in + outputs = [ { - "${user1}" = lib.recursiveUpdate - { - inherit isDefault; - id = 1; - settings = { - "browser.startup.homepage" = "${site1}|${site2}"; - }; - } - vars.firefox; - "${user2}" = lib.recursiveUpdate - { - inherit isDefault; - id = 2; - settings = { - "browser.startup.homepage" = "${site3}"; - }; - } - vars.firefox; - "${user3}" = lib.recursiveUpdate - { - inherit isDefault; - id = 3; - } - vars.firefox; - work = lib.recursiveUpdate - { - inherit isDefault; - id = 4; - settings = { - "browser.startup.homepage" = "${site4}|${site5}|${site6}|${site7}"; - }; - } - vars.firefox; - }; - }; - - chromium = { - enable = true; - package = pkgs.chromium; - - extensions = [ - # 1password - "gejiddohjgogedgjnonbofjigllpkmbf" - # dark reader - "eimadpbcbfnmbkopoojfekhnkhdbieeh" - # ublock origin - "cjpalhdlnbpafiamejdnhcphjbkeiagm" - # i still dont care about cookies - "edibdbjcniadpccecjdfdjjppcpchdlm" - # browserpass - "naepdomgkenhinolocfifgehidddafch" + criteria = config.swarselsystems.sharescreen; + status = "enable"; + scale = 1.5; + position = "1462,0"; + } + { + criteria = "HP Inc. HP 732pk CNC4080YL5"; + scale = 1.4; + mode = "3840x2160"; + position = "-1280,0"; + } + { + criteria = "Hewlett Packard HP Z24i CN44250RDT"; + scale = 1.0; + mode = "1920x1200"; + transform = "90"; + position = "-2480,0"; + } ]; }; - }; - - services = { - kanshi = { - settings = [ + } + { + profile = + let + monitor = "Applied Creative Technology Transmitter QUATTRO201811"; + in { - # seminary room - output = { - criteria = "Applied Creative Technology Transmitter QUATTRO201811"; - scale = 1.0; - mode = "1280x720"; - }; - } - { - # work main screen - output = { + name = "lidopen"; + exec = [ + "${pkgs.swaybg}/bin/swaybg --output '${config.swarselsystems.sharescreen}' --image ${config.swarselsystems.wallpaper} --mode ${config.stylix.imageScalingMode}" + "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/navidrome.png --mode ${config.stylix.imageScalingMode}" + "${pkgs.kanshare}/bin/kanshare ${config.swarselsystems.sharescreen} '${monitor}'" + ]; + outputs = [ + { + criteria = config.swarselsystems.sharescreen; + status = "enable"; + scale = 1.7; + position = "2560,0"; + } + { + criteria = "Applied Creative Technology Transmitter QUATTRO201811"; + scale = 1.0; + mode = "1280x720"; + position = "10000,10000"; + } + ]; + }; + } + { + profile = { + name = "lidclosed"; + exec = [ + "${pkgs.swaybg}/bin/swaybg --output 'HP Inc. HP 732pk CNC4080YL5' --image ${self}/files/wallpaper/botanicswp.png --mode ${config.stylix.imageScalingMode}" + "${pkgs.swaybg}/bin/swaybg --output 'Hewlett Packard HP Z24i CN44250RDT' --image ${self}/files/wallpaper/op6wp.png --mode ${config.stylix.imageScalingMode}" + ]; + outputs = [ + { + criteria = config.swarselsystems.sharescreen; + status = "disable"; + } + { criteria = "HP Inc. HP 732pk CNC4080YL5"; - scale = 1.0; + scale = 1.4; mode = "3840x2160"; - }; - } - { - # work side screen - output = { + position = "-1280,0"; + } + { criteria = "Hewlett Packard HP Z24i CN44250RDT"; scale = 1.0; mode = "1920x1200"; transform = "270"; - }; - } - { - profile = { - name = "lidopen"; - exec = [ - "${pkgs.swaybg}/bin/swaybg --output '${config.swarselsystems.sharescreen}' --image ${config.swarselsystems.wallpaper} --mode ${config.stylix.imageScalingMode}" - "${pkgs.swaybg}/bin/swaybg --output 'HP Inc. HP 732pk CNC4080YL5' --image ${self}/files/wallpaper/botanicswp.png --mode ${config.stylix.imageScalingMode}" - "${pkgs.swaybg}/bin/swaybg --output 'Hewlett Packard HP Z24i CN44250RDT' --image ${self}/files/wallpaper/op6wp.png --mode ${config.stylix.imageScalingMode}" - ]; - outputs = [ - { - criteria = config.swarselsystems.sharescreen; - status = "enable"; - scale = 1.5; - position = "1462,0"; - } - { - criteria = "HP Inc. HP 732pk CNC4080YL5"; - scale = 1.4; - mode = "3840x2160"; - position = "-1280,0"; - } - { - criteria = "Hewlett Packard HP Z24i CN44250RDT"; - scale = 1.0; - mode = "1920x1200"; - transform = "90"; - position = "-2480,0"; - } - ]; - }; - } - { - profile = - let - monitor = "Applied Creative Technology Transmitter QUATTRO201811"; - in - { - name = "lidopen"; - exec = [ - "${pkgs.swaybg}/bin/swaybg --output '${config.swarselsystems.sharescreen}' --image ${config.swarselsystems.wallpaper} --mode ${config.stylix.imageScalingMode}" - "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/navidrome.png --mode ${config.stylix.imageScalingMode}" - "${pkgs.kanshare}/bin/kanshare ${config.swarselsystems.sharescreen} '${monitor}'" - ]; - outputs = [ - { - criteria = config.swarselsystems.sharescreen; - status = "enable"; - scale = 1.7; - position = "2560,0"; - } - { - criteria = "Applied Creative Technology Transmitter QUATTRO201811"; - scale = 1.0; - mode = "1280x720"; - position = "10000,10000"; - } - ]; - }; - } - { - profile = { - name = "lidclosed"; - exec = [ - "${pkgs.swaybg}/bin/swaybg --output 'HP Inc. HP 732pk CNC4080YL5' --image ${self}/files/wallpaper/botanicswp.png --mode ${config.stylix.imageScalingMode}" - "${pkgs.swaybg}/bin/swaybg --output 'Hewlett Packard HP Z24i CN44250RDT' --image ${self}/files/wallpaper/op6wp.png --mode ${config.stylix.imageScalingMode}" - ]; - outputs = [ - { - criteria = config.swarselsystems.sharescreen; - status = "disable"; - } - { - criteria = "HP Inc. HP 732pk CNC4080YL5"; - scale = 1.4; - mode = "3840x2160"; - position = "-1280,0"; - } - { - criteria = "Hewlett Packard HP Z24i CN44250RDT"; - scale = 1.0; - mode = "1920x1200"; - transform = "270"; - position = "-2480,0"; - } - ]; - }; - } - { - profile = - let - monitor = "Applied Creative Technology Transmitter QUATTRO201811"; - in - { - name = "lidclosed"; - exec = [ - "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/navidrome.png --mode ${config.stylix.imageScalingMode}" - ]; - outputs = [ - { - criteria = config.swarselsystems.sharescreen; - status = "disable"; - } - { - criteria = "Applied Creative Technology Transmitter QUATTRO201811"; - scale = 1.0; - mode = "1280x720"; - position = "10000,10000"; - } - ]; - }; - } - ]; - }; - }; - - systemd.user.services = { - pizauth.Service = { - ExecStartPost = [ - "${pkgs.toybox}/bin/sleep 1" - "//bin/sh -c '${lib.getExe pkgs.pizauth} restore < ${homeDir}/.pizauth.state'" - ]; - }; - - teams-applet = { - Unit = { - Description = "teams applet"; - Requires = [ "tray.target" ]; - After = [ - "graphical-session.target" - "tray.target" + position = "-2480,0"; + } ]; - PartOf = [ "graphical-session.target" ]; }; - - Install = { - WantedBy = [ "graphical-session.target" ]; - }; - - Service = { - ExecStart = "${pkgs.stable.teams-for-linux}/bin/teams-for-linux --disableGpu=true --minimized=true --trayIconEnabled=true"; - }; - }; - - onepassword-applet = { - Unit = { - Description = "1password applet"; - Requires = [ "tray.target" ]; - After = [ - "graphical-session.target" - "tray.target" - ]; - PartOf = [ "graphical-session.target" ]; - }; - - Install = { - WantedBy = [ "graphical-session.target" ]; - }; - - Service = { - ExecStart = "${pkgs._1password-gui}/bin/1password"; - }; - }; - - }; - - swarselservices.pizauth = { - enable = true; - extraConfig = '' - auth_notify_cmd = "if [[ \"$(notify-send -A \"Open $PIZAUTH_ACCOUNT\" -t 30000 'pizauth authorisation')\" == \"0\" ]]; then open \"$PIZAUTH_URL\"; fi"; - error_notify_cmd = "notify-send -t 90000 \"pizauth error for $PIZAUTH_ACCOUNT\" \"$PIZAUTH_MSG\""; - token_event_cmd = "pizauth dump > ${homeDir}/.pizauth.state"; - ''; - accounts = { - work = { - authUri = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"; - tokenUri = "https://login.microsoftonline.com/common/oauth2/v2.0/token"; - clientId = "08162f7c-0fd2-4200-a84a-f25a4db0b584"; - clientSecret = "TxRBilcHdC6WGBee]fs?QR:SJ8nI[g82"; - scopes = [ - "https://outlook.office365.com/IMAP.AccessAsUser.All" - "https://outlook.office365.com/SMTP.Send" - "offline_access" - ]; - loginHint = "${nixosConfig.repo.secrets.local.work.mailAddress}"; - }; - }; - - }; - - xdg = - let - inherit (nixosConfig.repo.secrets.local.work) user1 user2 user3; - in + } { - mimeApps = { - defaultApplications = { - "x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ]; - }; - }; - desktopEntries = + profile = let - terminal = false; - categories = [ "Application" ]; - icon = "firefox"; + monitor = "Applied Creative Technology Transmitter QUATTRO201811"; in { - firefox_work = { - name = "Firefox (work)"; - genericName = "Firefox work"; - exec = "firefox -p work"; - inherit terminal categories icon; - }; - "firefox_${user1}" = { - name = "Firefox (${user1})"; - genericName = "Firefox ${user1}"; - exec = "firefox -p ${user1}"; - inherit terminal categories icon; - }; - - "firefox_${user2}" = { - name = "Firefox (${user2})"; - genericName = "Firefox ${user2}"; - exec = "firefox -p ${user2}"; - inherit terminal categories icon; - }; - - "firefox_${user3}" = { - name = "Firefox (${user3})"; - genericName = "Firefox ${user3}"; - exec = "firefox -p ${user3}"; - inherit terminal categories icon; - }; - - + name = "lidclosed"; + exec = [ + "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/navidrome.png --mode ${config.stylix.imageScalingMode}" + ]; + outputs = [ + { + criteria = config.swarselsystems.sharescreen; + status = "disable"; + } + { + criteria = "Applied Creative Technology Transmitter QUATTRO201811"; + scale = 1.0; + mode = "1280x720"; + position = "10000,10000"; + } + ]; }; - }; - swarselsystems = { - startup = [ - # { command = "nextcloud --background"; } - # { command = "vesktop --start-minimized --enable-speech-dispatcher --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime"; } - # { command = "element-desktop --hidden --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu-driver-bug-workarounds"; } - # { command = "anki"; } - # { command = "obsidian"; } - # { command = "nm-applet"; } - # { command = "feishin"; } - # { command = "teams-for-linux --disableGpu=true --minimized=true --trayIconEnabled=true"; } - # { command = "1password"; } - ]; - monitors = { - work_back_middle = rec { - name = "LG Electronics LG Ultra HD 0x000305A6"; - mode = "2560x1440"; - scale = "1"; - position = "5120,0"; - workspace = "1:一"; - # output = "DP-10"; - output = name; - }; - work_front_left = rec { - name = "LG Electronics LG Ultra HD 0x0007AB45"; - mode = "3840x2160"; - scale = "1"; - position = "5120,0"; - workspace = "1:一"; - # output = "DP-7"; - output = name; - }; - work_back_right = rec { - name = "HP Inc. HP Z32 CN41212T55"; - mode = "3840x2160"; - scale = "1"; - position = "5120,0"; - workspace = "1:一"; - # output = "DP-3"; - output = name; - }; - work_middle_middle_main = rec { - name = "HP Inc. HP 732pk CNC4080YL5"; - mode = "3840x2160"; - scale = "1"; - position = "-1280,0"; - workspace = "11:M"; - # output = "DP-8"; - output = name; - }; - work_middle_middle_side = rec { - name = "Hewlett Packard HP Z24i CN44250RDT"; - mode = "1920x1200"; - transform = "270"; - scale = "1"; - position = "-2480,0"; - workspace = "12:S"; - # output = "DP-9"; - output = name; - }; - work_seminary = rec { - name = "Applied Creative Technology Transmitter QUATTRO201811"; - mode = "1280x720"; - scale = "1"; - position = "10000,10000"; # i.e. this screen is inaccessible by moving the mouse - workspace = "14:T"; - # output = "DP-4"; - output = name; - }; - }; - inputs = { - "1133:45081:MX_Master_2S_Keyboard" = { - xkb_layout = "us"; - xkb_variant = "altgr-intl"; - }; - # "2362:628:PIXA3854:00_093A:0274_Touchpad" = { - # dwt = "enabled"; - # tap = "enabled"; - # natural_scroll = "enabled"; - # middle_emulation = "enabled"; - # drag_lock = "disabled"; - # }; - "1133:50504:Logitech_USB_Receiver" = { - xkb_layout = "us"; - xkb_variant = "altgr-intl"; - }; - "1133:45944:MX_KEYS_S" = { - xkb_layout = "us"; - xkb_variant = "altgr-intl"; - }; - }; + } + ]; + }; + }; + systemd.user.services = { + pizauth.Service = { + ExecStartPost = [ + "${pkgs.toybox}/bin/sleep 1" + "//bin/sh -c '${lib.getExe pkgs.pizauth} restore < ${homeDir}/.pizauth.state'" + ]; + }; + + teams-applet = { + Unit = { + Description = "teams applet"; + Requires = [ "tray.target" ]; + After = [ + "graphical-session.target" + "tray.target" + ]; + PartOf = [ "graphical-session.target" ]; + }; + + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + + Service = { + ExecStart = "${pkgs.stable.teams-for-linux}/bin/teams-for-linux --disableGpu=true --minimized=true --trayIconEnabled=true"; }; }; - } + onepassword-applet = { + Unit = { + Description = "1password applet"; + Requires = [ "tray.target" ]; + After = [ + "graphical-session.target" + "tray.target" + ]; + PartOf = [ "graphical-session.target" ]; + }; + + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + + Service = { + ExecStart = "${pkgs._1password-gui}/bin/1password"; + }; + }; + + }; + + swarselservices.pizauth = { + enable = true; + extraConfig = '' + auth_notify_cmd = "if [[ \"$(notify-send -A \"Open $PIZAUTH_ACCOUNT\" -t 30000 'pizauth authorisation')\" == \"0\" ]]; then open \"$PIZAUTH_URL\"; fi"; + error_notify_cmd = "notify-send -t 90000 \"pizauth error for $PIZAUTH_ACCOUNT\" \"$PIZAUTH_MSG\""; + token_event_cmd = "pizauth dump > ${homeDir}/.pizauth.state"; + ''; + accounts = { + work = { + authUri = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"; + tokenUri = "https://login.microsoftonline.com/common/oauth2/v2.0/token"; + clientId = "08162f7c-0fd2-4200-a84a-f25a4db0b584"; + clientSecret = "TxRBilcHdC6WGBee]fs?QR:SJ8nI[g82"; + scopes = [ + "https://outlook.office365.com/IMAP.AccessAsUser.All" + "https://outlook.office365.com/SMTP.Send" + "offline_access" + ]; + loginHint = "${nixosConfig.repo.secrets.local.work.mailAddress}"; + }; + }; + + }; + + xdg = + let + inherit (nixosConfig.repo.secrets.local.work) user1 user2 user3; + in + { + mimeApps = { + defaultApplications = { + "x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ]; + }; + }; + desktopEntries = + let + terminal = false; + categories = [ "Application" ]; + icon = "firefox"; + in + { + firefox_work = { + name = "Firefox (work)"; + genericName = "Firefox work"; + exec = "firefox -p work"; + inherit terminal categories icon; + }; + "firefox_${user1}" = { + name = "Firefox (${user1})"; + genericName = "Firefox ${user1}"; + exec = "firefox -p ${user1}"; + inherit terminal categories icon; + }; + + "firefox_${user2}" = { + name = "Firefox (${user2})"; + genericName = "Firefox ${user2}"; + exec = "firefox -p ${user2}"; + inherit terminal categories icon; + }; + + "firefox_${user3}" = { + name = "Firefox (${user3})"; + genericName = "Firefox ${user3}"; + exec = "firefox -p ${user3}"; + inherit terminal categories icon; + }; + + + }; + }; + swarselsystems = { + startup = [ + # { command = "nextcloud --background"; } + # { command = "vesktop --start-minimized --enable-speech-dispatcher --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime"; } + # { command = "element-desktop --hidden --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu-driver-bug-workarounds"; } + # { command = "anki"; } + # { command = "obsidian"; } + # { command = "nm-applet"; } + # { command = "feishin"; } + # { command = "teams-for-linux --disableGpu=true --minimized=true --trayIconEnabled=true"; } + # { command = "1password"; } + ]; + monitors = { + work_back_middle = rec { + name = "LG Electronics LG Ultra HD 0x000305A6"; + mode = "2560x1440"; + scale = "1"; + position = "5120,0"; + workspace = "1:一"; + # output = "DP-10"; + output = name; + }; + work_front_left = rec { + name = "LG Electronics LG Ultra HD 0x0007AB45"; + mode = "3840x2160"; + scale = "1"; + position = "5120,0"; + workspace = "1:一"; + # output = "DP-7"; + output = name; + }; + work_back_right = rec { + name = "HP Inc. HP Z32 CN41212T55"; + mode = "3840x2160"; + scale = "1"; + position = "5120,0"; + workspace = "1:一"; + # output = "DP-3"; + output = name; + }; + work_middle_middle_main = rec { + name = "HP Inc. HP 732pk CNC4080YL5"; + mode = "3840x2160"; + scale = "1"; + position = "-1280,0"; + workspace = "11:M"; + # output = "DP-8"; + output = name; + }; + work_middle_middle_side = rec { + name = "Hewlett Packard HP Z24i CN44250RDT"; + mode = "1920x1200"; + transform = "270"; + scale = "1"; + position = "-2480,0"; + workspace = "12:S"; + # output = "DP-9"; + output = name; + }; + work_seminary = rec { + name = "Applied Creative Technology Transmitter QUATTRO201811"; + mode = "1280x720"; + scale = "1"; + position = "10000,10000"; # i.e. this screen is inaccessible by moving the mouse + workspace = "14:T"; + # output = "DP-4"; + output = name; + }; + }; + inputs = { + "1133:45081:MX_Master_2S_Keyboard" = { + xkb_layout = "us"; + xkb_variant = "altgr-intl"; + }; + # "2362:628:PIXA3854:00_093A:0274_Touchpad" = { + # dwt = "enabled"; + # tap = "enabled"; + # natural_scroll = "enabled"; + # middle_emulation = "enabled"; + # drag_lock = "disabled"; + # }; + "1133:50504:Logitech_USB_Receiver" = { + xkb_layout = "us"; + xkb_variant = "altgr-intl"; + }; + "1133:45944:MX_KEYS_S" = { + xkb_layout = "us"; + xkb_variant = "altgr-intl"; + }; + }; + + }; + }; + + } #+end_src @@ -18991,6 +19054,10 @@ Used here: [[#h:b92a18cf-eec3-4605-a8c2-37133ade3574][mu4e]] (when-let ((dest (swarsel/mu4e-rfs--matching-address))) (cl-destructuring-bind (from-user from-addr) dest (setq user-mail-address from-addr) + (when (and (boundp 'user-mail-address) + (stringp user-mail-address) + (string-equal user-mail-address (getenv "SWARSEL_MAIL_WORK"))) + (mml-secure-message-sign-smime)) (message-position-on-field "From") (message-beginning-of-line) (delete-region (point) (line-end-position)) @@ -21769,7 +21836,11 @@ The hook functions are defined here: [[#h:34506761-06b9-43b5-a818-506d9b3faf28][ (setq mu4e-mu-binary (executable-find "mu")) (setq mu4e-hide-index-messages t) - (setq mu4e-update-interval 180) + ;; this is so that messages that target multiple addresses still are individually shown in the unreads + ;; this is needed because otherwise after closing the view there will still be an unread message + (setq mu4e-search-skip-duplicates nil) + + (setq mu4e-update-interval 60) (setq mu4e-get-mail-command "mbsync -a") (setq mu4e-maildir "~/Mail") @@ -21818,13 +21889,53 @@ This adds the simple utility of sending desktop notifications whenever a new mai (use-package mu4e-alert :config - (setq mu4e-alert-set-default-style 'libnotify)) + (mu4e-alert-enable-notifications) + (mu4e-alert-set-default-style 'libnotify) + (setq mu4e-alert-interesting-mail-query + (concat "(maildir:/leon/Inbox AND date:today..now" + " OR maildir:/work/Inbox AND date:today..now)" + " AND flag:unread")) + (alert-add-rule + :category "mu4e-alert" + :predicate (lambda (_) (string-match-p "^mu4e-" (symbol-name major-mode))) + :continue t) - (add-hook 'after-init-hook #'mu4e-alert-enable-notifications) + + (add-hook 'after-init-hook #'mu4e-alert-enable-notifications) + ) (mu4e t) #+end_src +**** Work: Signing Mails (S/MIME, smime) + +Used to automatically sign messages sent from my work email address using S/MIME certificate. + +#+begin_src emacs-lisp + (let ((work (getenv "SWARSEL_MAIL_WORK"))) + (when (and work (not (string-empty-p work))) + + (setq swarsel-smime-cert-path "~/.Certificates/$SWARSEL_MAIL_WORK.pem") + (setq swarsel-smime-cert-path (substitute-env-vars swarsel-smime-cert-path)) + (setq mml-secure-prefer-scheme 'smime) + (setq mml-secure-smime-sign-with-sender t) + (add-hook 'mu4e-compose-mode-hook + (lambda () + (when (and (boundp 'user-mail-address) + (stringp user-mail-address) + (string-equal user-mail-address (getenv "SWARSEL_MAIL_WORK"))) + (mml-secure-message-sign-smime)))) + + (setq smime-keys + `((,(getenv "SWARSEL_MAIL_WORK") + ,swarsel-smime-cert-path + ("~/Certificates/harica-root.pem" + "~/Certificates/harica-intermediate.pem" + )))) + )) + +#+end_src + *** Calendar :PROPERTIES: :CUSTOM_ID: h:c760f04e-622f-4b3e-8916-53ca8cce6edc @@ -22067,6 +22178,14 @@ This sets up the =dashboard=, which is really quite useless. But, it looks cool :END: This sections is no longer used really. An introduction can be found in [[#h:bcc3ebbe-df8a-46bd-b42d-73aad6fc66e5][Structure of this file]] under the historical note. The little noweb-ref blocks that I still use are found in [[#h:48e0cb2c-e412-4ae3-a244-80a8c09dbb02][Hosts]] and [[#h:3bb92528-c61c-4b8d-8214-bf2a40baaa32][Services]]. +** General steps when setting up a new machine + +These general steps are needed when setting up a new machine and do not fit into another block well: + +#+begin_src markdown :noweb-ref setup :exports both :results html + - setup yubikey (automatic yubikey enrollment is not yet supported by `disko`): + - `systemd-cryptenroll --fido2-device=auto /dev/` +#+end_src * Appendix B: Supplementary Files :PROPERTIES: @@ -22303,7 +22422,7 @@ set allowautofocus false jsb browser.webRequest.onHeadersReceived.addListener(tri.request.clobberCSP,{urls:[""],types:["main_frame"]},["blocking","responseHeaders"]) " default is 300ms -set hintdelay 100 +set hintdelay 500 " Some pages like github break on the tridactyl quick search. have this as a fallback unbind diff --git a/files/emacs/init.el b/files/emacs/init.el index 935c1ee..6c07bbb 100644 --- a/files/emacs/init.el +++ b/files/emacs/init.el @@ -30,6 +30,10 @@ (when-let ((dest (swarsel/mu4e-rfs--matching-address))) (cl-destructuring-bind (from-user from-addr) dest (setq user-mail-address from-addr) + (when (and (boundp 'user-mail-address) + (stringp user-mail-address) + (string-equal user-mail-address (getenv "SWARSEL_MAIL_WORK"))) + (mml-secure-message-sign-smime)) (message-position-on-field "From") (message-beginning-of-line) (delete-region (point) (line-end-position)) @@ -1560,7 +1564,11 @@ create a new one." (setq mu4e-mu-binary (executable-find "mu")) (setq mu4e-hide-index-messages t) - (setq mu4e-update-interval 180) + ;; this is so that messages that target multiple addresses still are individually shown in the unreads + ;; this is needed because otherwise after closing the view there will still be an unread message + (setq mu4e-search-skip-duplicates nil) + + (setq mu4e-update-interval 60) (setq mu4e-get-mail-command "mbsync -a") (setq mu4e-maildir "~/Mail") @@ -1599,12 +1607,45 @@ create a new one." (use-package mu4e-alert :config - (setq mu4e-alert-set-default-style 'libnotify)) + (mu4e-alert-enable-notifications) + (mu4e-alert-set-default-style 'libnotify) + (setq mu4e-alert-interesting-mail-query + (concat "(maildir:/leon/Inbox AND date:today..now" + " OR maildir:/work/Inbox AND date:today..now)" + " AND flag:unread")) + (alert-add-rule + :category "mu4e-alert" + :predicate (lambda (_) (string-match-p "^mu4e-" (symbol-name major-mode))) + :continue t) -(add-hook 'after-init-hook #'mu4e-alert-enable-notifications) + + (add-hook 'after-init-hook #'mu4e-alert-enable-notifications) + ) (mu4e t) +(let ((work (getenv "SWARSEL_MAIL_WORK"))) + (when (and work (not (string-empty-p work))) + + (setq swarsel-smime-cert-path "~/.Certificates/$SWARSEL_MAIL_WORK.pem") + (setq swarsel-smime-cert-path (substitute-env-vars swarsel-smime-cert-path)) + (setq mml-secure-prefer-scheme 'smime) + (setq mml-secure-smime-sign-with-sender t) + (add-hook 'mu4e-compose-mode-hook + (lambda () + (when (and (boundp 'user-mail-address) + (stringp user-mail-address) + (string-equal user-mail-address (getenv "SWARSEL_MAIL_WORK"))) + (mml-secure-message-sign-smime)))) + + (setq smime-keys + `((,(getenv "SWARSEL_MAIL_WORK") + ,swarsel-smime-cert-path + ("~/Certificates/harica-root.pem" + "~/Certificates/harica-intermediate.pem" + )))) + )) + (use-package org-caldav :init ;; set org-caldav-sync-initalization diff --git a/files/firefox/tridactyl/tridactylrc b/files/firefox/tridactyl/tridactylrc index b3ef65a..9e4928f 100644 --- a/files/firefox/tridactyl/tridactylrc +++ b/files/firefox/tridactyl/tridactylrc @@ -124,7 +124,7 @@ set allowautofocus false jsb browser.webRequest.onHeadersReceived.addListener(tri.request.clobberCSP,{urls:[""],types:["main_frame"]},["blocking","responseHeaders"]) " default is 300ms -set hintdelay 100 +set hintdelay 500 " Some pages like github break on the tridactyl quick search. have this as a fallback unbind diff --git a/hosts/nixos/pyramid/secrets/pii.nix.enc b/hosts/nixos/pyramid/secrets/pii.nix.enc index 1cd9d41..8545d57 100644 --- a/hosts/nixos/pyramid/secrets/pii.nix.enc +++ b/hosts/nixos/pyramid/secrets/pii.nix.enc @@ -1,5 +1,5 @@ { - "data": "ENC[AES256_GCM,data:TAwmpSF2fhM/gHIL2qUs4lvaLwzbg3UR2ges9x3uioLMYCn4o0fFnf+NbqM3CBERqrBTh6f4TpWTD1SJ9934ZhvwR09xhjc1wVM6JcE9yWfAifm8zwxK85SAn8c3Ap1WRsuDKT7RdoyDwh5IDkl2bgkznlFNVIrIMaUSjj1XITacNwFuIBKoPBJjX9jHjYg0PT07RSQ2VWh9xGLbp9/RKDu+csVaNSdPqRRPYwPbwpcML34ABWvlwDre1dCwJjhq/hdBdAL9/fasvHSdYOinDytH67d8jrEOPGZGKUTOERf2GUGsgqMYuPmkVSG+3JRhZvOZZEVuCexvyErVvHoxXzMCfv/DzaqB9KgKZmL1Wfak/KLCeXs4jfPUS0+dEi0sxNc+R77opPbVqTEBO64mgniWbtvk0N3GHrBJj1BDR/9v/gs72QMcatQnSuWMAZ1DnRfsHVBYxvuAdZ+vEKhQ61lkdh7bV7FKkG9xQwO/W0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CBgiRqXN02WZcrnqp/spj+uIfch1F/X5A3jTUev8vq/s7lge7h3CNWXNpBFrW5trdzE8N2Kw3AahsJfZCo/Qd9e6WHIDRgbZFEbKwkTIyeEW8rMv5Ls0Aq+kFvs76muJVnr+Pb7e/GabhgT3pPhYNLQWjPRQYkF2KDKrGUlrc2BkJqRLF3fhI7vQPFphWPl0Lj5idYglIn5v2P2HR9n3Z1+9oyIpmFsqjqILCdoMCDleQOb4DCzXnR5QE4LKg/jjJqqGyO4mAbpwdvN9Q4j1FOUsJNOgMNBUUdEr7n65ktKnJX5wX9cymosRUozgoteb2dblFJjY/pf8toH5kU+YIYmbQR0caw8tdpBl0ETcsaQpF3LbCsSfmN8tZyxS4R/0W782i08IsaN9uXEevlsyFgMg7I2q739fHqJ7kFeosXpKdUpOnmuoLu1A7,iv:9SAQXPwrhy5yjkNxn1lITD77MjqdrYOSlFpUBE8a/fY=,tag:tYApnwq2auUk+/N9alPX3w==,type:str]", "sops": { "age": [ { @@ -11,8 +11,8 @@ "enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA0Z2tONmQxTUhZUW12Z2Jm\nUnoxSnpYcnZDNGNzSko1ckl2RDh3NG1VS2dFCmIwUXhmSk1OUk02S0JPVDR5UWJ4\na0gwWlg0V005ZWxYa29PZ0laS2VqM0kKLS0tIHN5SU9pQ090eHljeXJGWm5hRFQ4\nZ001Nzkyb29RYkNUMDNDNlo4YnVQeTQK34bNIBgxId2+DHKQNVV3Iro3KGkE03Sp\niB1+dADT6nRvGvoyPqnLq/NYfw7eQ6XqYt55zkdCta8v6L1UNUkw8g==\n-----END AGE ENCRYPTED FILE-----\n" } ], - "lastmodified": "2025-10-11T08:44:45Z", - "mac": "ENC[AES256_GCM,data:pNbRA83NQcfWwTjgowEaFlfZVbZntWb1alGKdaX3IqjBlZEmYfJGKaxkbiL1uoMFNmrc5HtQUQLz0QVUpQ87ggH/HEUtdVcHnT65hxWjX3NWg3G2C9cbPqe3SiLv+UWPUsN70gu/xAJUuaiM9tsQoHkpNdefT3t382/uxF+Cb3M=,iv:1njSCqZFoCX46IhiowRqUteG8VJ5EEHDxricjMd4l58=,tag:9WBBXfUUW+7wmXy3zksMKQ==,type:str]", + "lastmodified": "2025-10-21T19:32:24Z", + "mac": "ENC[AES256_GCM,data:wM862FQH/qX/abuD+krJOazli9Ci5GrpLtdcnzFgKCeNdjA2cfZ8M3DyzsBwMXjp6HxBHLyO7QXGcQkx3kIKGnRhEBuQzVOtrZhqcDi2Ho8iBV8Dh4xkhcpBYufw7xP8hGWg6ZVZ4JyM3P4NfAdxbfWTdc1VMStAafJ2SZ3pAYI=,iv:tDAKNe8LV40hRCqKzN6j6B71IV81SnrBgerxGPzU4Zk=,tag:7ZsST8pl9TjMog0dNKcUcA==,type:str]", "pgp": [ { "created_at": "2025-06-14T22:31:01Z", diff --git a/index.html b/index.html index 28c698b..b6bd78d 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + SwarselSystems: NixOS + Emacs Configurationo @@ -209,6 +209,7 @@
  • 1.4. Hosts
  • 1.5. Programs
  • 1.6. Services
  • +
  • 1.7. Manual steps when setting up a new machine
  • 2. flake.nix @@ -443,8 +444,8 @@
  • 3.2.5.8. Hibernation
  • 3.2.5.9. BTRFS
  • 3.2.5.10. work
  • -
  • 3.2.5.11. microvm-host
  • -
  • 3.2.5.12. microvm-guest
  • +
  • 3.2.5.11. microvm-host
  • +
  • 3.2.5.12. microvm-guest
  • @@ -472,7 +473,7 @@
  • 3.3.1.12. Sourcing environment variables
  • 3.3.1.13. General Programs: bottom, imv, less, lesspipe, sioyek, bat, carapace, wlogout, swayr, yt-dlp, mpv, jq, nix-index, ripgrep, pandoc, fzf, zoxide, timidity
  • 3.3.1.14. nix-index
  • -
  • 3.3.1.15. nix-your-shell
  • +
  • 3.3.1.15. nix-your-shell
  • 3.3.1.16. password-store
  • 3.3.1.17. direnv
  • 3.3.1.18. eza
  • @@ -495,12 +496,12 @@
  • 3.3.1.31.3. Mako
  • 3.3.1.31.4. SwayOSD
  • 3.3.1.31.5. yubikey-touch-detector
  • -
  • 3.3.1.31.6. blueman-applet
  • -
  • 3.3.1.31.7. network-manager-applet
  • -
  • 3.3.1.31.8. obsidian service for tray
  • -
  • 3.3.1.31.9. anki service for tray
  • -
  • 3.3.1.31.10. element service for tray
  • -
  • 3.3.1.31.11. vesktop service for tray
  • +
  • 3.3.1.31.6. blueman-applet
  • +
  • 3.3.1.31.7. network-manager-applet
  • +
  • 3.3.1.31.8. obsidian service for tray
  • +
  • 3.3.1.31.9. anki service for tray
  • +
  • 3.3.1.31.10. element service for tray
  • +
  • 3.3.1.31.11. vesktop service for tray
  • 3.3.1.32. Sway
  • @@ -509,17 +510,17 @@
  • 3.3.1.35. gpg-agent
  • 3.3.1.36. gammastep
  • 3.3.1.37. Spicetify
  • -
  • 3.3.1.38. Obsidian
  • -
  • 3.3.1.39. Anki
  • -
  • 3.3.1.40. Element-desktop
  • -
  • 3.3.1.41. Hexchat
  • -
  • 3.3.1.42. obs-studio
  • -
  • 3.3.1.43. spotify-player
  • -
  • 3.3.1.44. vesktop
  • -
  • 3.3.1.45. batsignal
  • -
  • 3.3.1.46. autotiling
  • -
  • 3.3.1.47. swayidle
  • -
  • 3.3.1.48. swaylock
  • +
  • 3.3.1.38. Obsidian
  • +
  • 3.3.1.39. Anki
  • +
  • 3.3.1.40. Element-desktop
  • +
  • 3.3.1.41. Hexchat
  • +
  • 3.3.1.42. obs-studio
  • +
  • 3.3.1.43. spotify-player
  • +
  • 3.3.1.44. vesktop
  • +
  • 3.3.1.45. batsignal
  • +
  • 3.3.1.46. autotiling
  • +
  • 3.3.1.47. swayidle
  • +
  • 3.3.1.48. swaylock
  • 3.3.2. Server @@ -536,7 +537,7 @@
  • 3.3.4. Optional @@ -584,8 +585,8 @@
  • 3.5.31. swarsel-build
  • 3.5.32. swarsel-instantiate
  • 3.5.33. sshrm
  • -
  • 3.5.34. endme
  • -
  • 3.5.35. git-replace
  • +
  • 3.5.34. endme
  • +
  • 3.5.35. git-replace
  • 3.6. Profiles @@ -594,7 +595,7 @@
  • -
  • 5. Appendix A: Noweb-Ref blocks
  • +
  • 5. Appendix A: Noweb-Ref blocks + +
  • 6. Appendix B: Supplementary Files
    • 6.1. Server Emacs config
    • @@ -837,7 +843,7 @@

      -This file has 96128 words spanning 24842 lines and was last revised on 2025-10-21 13:09:36 +0200. +This file has 96633 words spanning 24946 lines and was last revised on 2025-10-21 21:55:49 +0200.

      @@ -906,7 +912,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: 2025-10-21 13:09:36 +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-10-21 21:55:49 +0200)

    @@ -1205,6 +1211,33 @@ Here I give a brief overview over the hostmachines that I am using. This is held |✂️ **Paste Tool** | [Microbin](https://github.com/Swarsel/.dotfiles/tree/main/modules/nixos/server/microbin.nix) | |📸 **Image Sharing** | [Slink](https://github.com/Swarsel/.dotfiles/tree/main/modules/nixos/server/slink.nix) | |🔗 **Link Shortener** | [Shlink](https://github.com/Swarsel/.dotfiles/tree/main/modules/nixos/server/shlink.nix) | + + + + +
    +

    1.7. Manual steps when setting up a new machine

    +
    +
    +
    +- setup gpgsm for signing of mails using S/MIME:
    +  - `gpgsm --import ~/Certificates/<certname>.p12`
    +  - `gpgsm --import ~/Certificates/harica-root.pem`
    +  - `gpgsm --import ~/Certificates/harica-intermediate.pem`
    +  - `gpgsm --list-keys --with-validation "HARICA Client RSA Root CA 2021"`
    +    - trust the certificate and set passphrase
    +- setup pizauth for microsoft mail sync (account names are possibly `uni` and `work`):
    +  - `pizauth auth <account name, e.g. 'work'>`
    +  - `pizauth dump > ~/.pizauth.state`
    +- setup yubikey (automatic yubikey enrollment is not yet supported by `disko`):
    +  - `systemd-cryptenroll --fido2-device=auto /dev/<device, e.g. 'nvme0n1p2'>`
    +
    +If the new machine is a work machine, these steps are additionally needed:
    +
    +- setup the work VPN:
    +  - using the laptop certificate `.pem` as User cert and private key (CA cert: none)
    +  - vpn gateway is found in `nixosConfig.repo.secrets.local.work.vpnGateway`
    +
     
    @@ -11895,6 +11928,17 @@ This holds configuration that is specific to framework laptops. Options that I need specifically at work. There are more options at Work (home-manager side).

    +

    +When setting up a new machine: +

    + +
    +
    - setup the work VPN:
    +  - using the laptop certificate `.pem` as User cert and private key (CA cert: none)
    +  - vpn gateway is found in `nixosConfig.repo.secrets.local.work.vpnGateway`
    +
    +
    +
    { self, lib, pkgs, config, configName, ... }:
     let
    @@ -12134,8 +12178,8 @@ in
     
    -
    -
    3.2.5.11. microvm-host
    +
    +
    3.2.5.11. microvm-host

    Some standard options that should be set for every microvm host. @@ -12161,8 +12205,8 @@ Some standard options that should be set for every microvm host.

    -
    -
    3.2.5.12. microvm-guest
    +
    +
    3.2.5.12. microvm-guest

    Some standard options that should be set vor every microvm guest. We set the default @@ -13089,7 +13133,7 @@ in SWARSEL_CAL3 = source3; SWARSEL_CAL3NAME = source3-name; SWARSEL_FULLNAME = fullName; - SWARSEL_MAIL_ALL = allMailAddresses; + SWARSEL_MAIL_ALL = lib.mkDefault allMailAddresses; GITHUB_NOTIFICATION_TOKEN_PATH = nixosConfig.sops.secrets.github-notifications-token.path; OPENROUTER_API_KEY = openrouterApi; }; @@ -13232,8 +13276,8 @@ nix-index provides a way to find out which packages are provided by which deriva

    -
    -
    3.3.1.15. nix-your-shell
    +
    +
    3.3.1.15. nix-your-shell
    { lib, config, ... }:
    @@ -14946,8 +14990,8 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
     
    -
    -
    3.3.1.31.6. blueman-applet
    +
    +
    3.3.1.31.6. blueman-applet
    { lib, config, ... }:
    @@ -14961,8 +15005,8 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
     
    -
    -
    3.3.1.31.7. network-manager-applet
    +
    +
    3.3.1.31.7. network-manager-applet
    { lib, config, ... }:
    @@ -14977,8 +15021,8 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
     
    -
    -
    3.3.1.31.8. obsidian service for tray
    +
    +
    3.3.1.31.8. obsidian service for tray
    { lib, config, ... }:
    @@ -15012,9 +15056,13 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
     
    -
    -
    3.3.1.31.9. anki service for tray
    +
    +
    3.3.1.31.9. anki service for tray
    +

    +Sets up a systemd user service for anki that does not stall the shutdown process. Note that the outcommented ExecStart does not work because the home-manager anki package builds a separate anki package that - I think - cannot be referenced as no such expression exists in the module. +

    +
    { lib, config, ... }:
     {
    @@ -15038,10 +15086,15 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
     
           Service = {
             # ExecStart = "${lib.getExe config.programs.anki.package}";
    -        ExecStart = "/etc/profiles/per-user/swarsel/bin/anki";
    +        Type = "simple";
    +        ExecStart = "/etc/profiles/per-user/${config.swarselsystems.mainUser}/bin/anki";
             Environment = [
               "QT_QPA_PLATFORM=xcb"
             ];
    +        TimeoutStopSec = "2s";
    +        KillMode = "mixed";
    +        KillSignal = "SIGTERM";
    +        SendSIGKILL = "yes";
           };
         };
     
    @@ -15051,8 +15104,8 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
     
    -
    -
    3.3.1.31.10. element service for tray
    +
    +
    3.3.1.31.10. element service for tray
    { lib, config, pkgs, ... }:
    @@ -15086,8 +15139,8 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
     
    -
    -
    3.3.1.31.11. vesktop service for tray
    +
    +
    3.3.1.31.11. vesktop service for tray
    { lib, config, pkgs, ... }:
    @@ -15891,9 +15944,23 @@ Currently, I am too lazy to explain every option here, but most of it is very se
     
    3.3.1.35. gpg-agent

    -Settinfs that are needed for the gpg-agent. Also we are enabling emacs support for unlocking my Yubikey here. +Settings that are needed for the gpg-agent. Also we are enabling emacs support for unlocking my Yubikey here.

    +

    +When setting up a new machine: +

    + +
    +
    - setup gpgsm for signing of mails using S/MIME:
    +  - `gpgsm --import ~/Certificates/<certname>.p12`
    +  - `gpgsm --import ~/Certificates/harica-root.pem`
    +  - `gpgsm --import ~/Certificates/harica-intermediate.pem`
    +  - `gpgsm --list-keys --with-validation "HARICA Client RSA Root CA 2021"`
    +    - trust the certificate and set passphrase
    +
    +
    +
    { self, lib, config, pkgs, ... }:
     let
    @@ -16001,153 +16068,166 @@ in
     
    -
    -
    3.3.1.38. Obsidian
    +
    +
    3.3.1.38. Obsidian
    { lib, config, pkgs, nixosConfig ? config, ... }:
    -  let
    -    moduleName = "obsidian";
    -    inherit (nixosConfig.repo.secrets.common.obsidian) userIgnoreFilters;
    -    name = "Main";
    -  in
    -  {
    -    options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} with settings";
    -    config = lib.mkIf config.swarselmodules.${moduleName} {
    +let
    +  moduleName = "obsidian";
    +  inherit (nixosConfig.repo.secrets.common.obsidian) userIgnoreFilters;
    +  name = "Main";
    +in
    +{
    +  options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} with settings";
    +  config = lib.mkIf config.swarselmodules.${moduleName} {
     
    -      home.file = {
    -        "${config.programs.obsidian.vaults.${name}.target}/.obsidian/app.json".force = true;
    -        "${config.programs.obsidian.vaults.${name}.target}/.obsidian/appearance.json".force = true;
    -        "${config.programs.obsidian.vaults.${name}.target}/.obsidian/core-plugins.json".force = true;
    -      };
    +    home.file = {
    +      "${config.programs.obsidian.vaults.${name}.target}/.obsidian/app.json".force = true;
    +      "${config.programs.obsidian.vaults.${name}.target}/.obsidian/appearance.json".force = true;
    +      "${config.programs.obsidian.vaults.${name}.target}/.obsidian/core-plugins.json".force = true;
    +    };
     
    -      programs.obsidian =
    -        {
    -          enable = true;
    -          package = pkgs.obsidian;
    -          defaultSettings = {
    -            app = {
    -              attachmentFolderPath = "attachments";
    -              alwaysUpdateLinks = true;
    -              spellcheck = false;
    -              inherit userIgnoreFilters;
    -              vimMode = false;
    -              newFileLocation = "current";
    -            };
    -            corePlugins = [
    -              "backlink"
    -              "bookmarks"
    -              "canvas"
    -              "command-palette"
    -              "daily-notes"
    -              "editor-status"
    -              "file-explorer"
    -              "file-recovery"
    -              "global-search"
    -              "graph"
    -              "note-composer"
    -              "outgoing-link"
    -              "outline"
    -              "page-preview"
    -              "properties"
    -              "slides"
    -              "switcher"
    -              "tag-pane"
    -              "templates"
    -              "word-count"
    -            ];
    -            communityPlugins = with pkgs.swarsel-nix; [
    -              advanced-tables
    -              calendar
    -              file-hider
    -              linter
    -              omnisearch
    -              sort-and-permute-lines
    -              tag-wrangler
    -              tray
    -            ];
    +    programs.obsidian =
    +      {
    +        enable = true;
    +        package = pkgs.obsidian;
    +        defaultSettings = {
    +          app = {
    +            attachmentFolderPath = "attachments";
    +            alwaysUpdateLinks = true;
    +            spellcheck = false;
    +            inherit userIgnoreFilters;
    +            vimMode = false;
    +            newFileLocation = "current";
               };
    -          vaults = {
    -            ${name} = {
    -              target = "./Obsidian/${name}";
    -              settings = {
    -                appearance = {
    -                  baseFontSize = lib.mkForce 19;
    -                };
    -                communityPlugins = with pkgs.swarsel-nix; [
    -                  {
    -                    pkg = advanced-tables;
    -                    enable = true;
    -                  }
    -                  {
    -                    pkg = calendar;
    -                    enable = true;
    -                  }
    -                  {
    -                    pkg = sort-and-permute-lines;
    -                    enable = true;
    -                  }
    -                  {
    -                    pkg = tag-wrangler;
    -                    enable = true;
    -                  }
    -                  {
    -                    pkg = tray;
    -                    enable = true;
    -                    settings = {
    -                      launchOnStartup = false;
    -                      hideOnLaunch = true;
    -                      runInBackground = true;
    -                      hideTaskbarIcon = false;
    -                      createTrayIcon = true;
    -                    };
    -                  }
    -                  {
    -                    pkg = file-hider;
    -                    enable = true;
    -                    settings =
    -                      {
    -                        hidden = true;
    -                        hiddenList = [
    -                          "attachments"
    -                          "images"
    -                          "ltximg"
    -                          "logseq"
    -                        ];
    -                      };
    -                  }
    -                  {
    -                    pkg = linter;
    -                    enable = true;
    -                    settings = {
    -                      auto-correct-common-misspellings = {
    -                        skip-words-with-multiple-capitals = true;
    -                      };
    -                      convert-bullet-list-markers = {
    -                        enabled = true;
    -                      };
    -                    };
    -                  }
    -                  {
    -                    pkg = omnisearch;
    -                    enable = true;
    -                    settings = {
    -                      hideExcluded = true;
    -                    };
    -                  }
    +          hotkeys = {
    +            "graph:open" = [ ];
    +            "omnisearch:show-modal" = [
    +              {
    +                modifiers = [
    +                  "Mod"
                     ];
    +                key = "S";
    +              }
    +            ];
    +            "editor:save-file" = [ ];
    +            "editor:delete-paragraph" = [ ];
    +          };
    +          corePlugins = [
    +            "backlink"
    +            "bookmarks"
    +            "canvas"
    +            "command-palette"
    +            "daily-notes"
    +            "editor-status"
    +            "file-explorer"
    +            "file-recovery"
    +            "global-search"
    +            "graph"
    +            "note-composer"
    +            "outgoing-link"
    +            "outline"
    +            "page-preview"
    +            "properties"
    +            "slides"
    +            "switcher"
    +            "tag-pane"
    +            "templates"
    +            "word-count"
    +          ];
    +          communityPlugins = with pkgs.swarsel-nix; [
    +            advanced-tables
    +            calendar
    +            file-hider
    +            linter
    +            omnisearch
    +            sort-and-permute-lines
    +            tag-wrangler
    +            tray
    +          ];
    +        };
    +        vaults = {
    +          ${name} = {
    +            target = "./Obsidian/${name}";
    +            settings = {
    +              appearance = {
    +                baseFontSize = lib.mkForce 19;
                   };
    +              communityPlugins = with pkgs.swarsel-nix; [
    +                {
    +                  pkg = advanced-tables;
    +                  enable = true;
    +                }
    +                {
    +                  pkg = calendar;
    +                  enable = true;
    +                }
    +                {
    +                  pkg = sort-and-permute-lines;
    +                  enable = true;
    +                }
    +                {
    +                  pkg = tag-wrangler;
    +                  enable = true;
    +                }
    +                {
    +                  pkg = tray;
    +                  enable = true;
    +                  settings = {
    +                    launchOnStartup = false;
    +                    hideOnLaunch = true;
    +                    runInBackground = true;
    +                    hideTaskbarIcon = false;
    +                    createTrayIcon = true;
    +                  };
    +                }
    +                {
    +                  pkg = file-hider;
    +                  enable = true;
    +                  settings =
    +                    {
    +                      hidden = true;
    +                      hiddenList = [
    +                        "attachments"
    +                        "images"
    +                        "ltximg"
    +                        "logseq"
    +                      ];
    +                    };
    +                }
    +                {
    +                  pkg = linter;
    +                  enable = true;
    +                  settings = {
    +                    auto-correct-common-misspellings = {
    +                      skip-words-with-multiple-capitals = true;
    +                    };
    +                    convert-bullet-list-markers = {
    +                      enabled = true;
    +                    };
    +                  };
    +                }
    +                {
    +                  pkg = omnisearch;
    +                  enable = true;
    +                  settings = {
    +                    hideExcluded = true;
    +                  };
    +                }
    +              ];
                 };
               };
             };
    -    };
    -  }
    +      };
    +  };
    +}
     
    -
    -
    3.3.1.39. Anki
    +
    +
    3.3.1.39. Anki
    { lib, config, pkgs, globals, nixosConfig ? config, ... }:
    @@ -16219,8 +16299,8 @@ in
     
    -
    -
    3.3.1.40. Element-desktop
    +
    +
    3.3.1.40. Element-desktop
    { lib, config, ... }:
    @@ -16256,8 +16336,8 @@ in
     
    -
    -
    3.3.1.41. Hexchat
    +
    +
    3.3.1.41. Hexchat
    { lib, config, nixosConfig ? config, ... }:
    @@ -16281,8 +16361,8 @@ in
     
    -
    -
    3.3.1.42. obs-studio
    +
    +
    3.3.1.42. obs-studio
    { lib, config, ... }:
    @@ -16302,8 +16382,8 @@ in
     
    -
    -
    3.3.1.43. spotify-player
    +
    +
    3.3.1.43. spotify-player
    { lib, config, ... }:
    @@ -16323,8 +16403,8 @@ in
     
    -
    -
    3.3.1.44. vesktop
    +
    +
    3.3.1.44. vesktop
    { lib, config, ... }:
    @@ -16410,8 +16490,8 @@ in
     
    -
    -
    3.3.1.45. batsignal
    +
    +
    3.3.1.45. batsignal
    { lib, config, ... }:
    @@ -16443,8 +16523,8 @@ in
     
    -
    -
    3.3.1.46. autotiling
    +
    +
    3.3.1.46. autotiling
    { lib, config, ... }:
    @@ -16465,8 +16545,8 @@ in
     
    -
    -
    3.3.1.47. swayidle
    +
    +
    3.3.1.47. swayidle
    { lib, config, pkgs, ... }:
    @@ -16507,8 +16587,8 @@ in
     
    -
    -
    3.3.1.48. swaylock
    +
    +
    3.3.1.48. swaylock
    { lib, config, pkgs, ... }:
    @@ -16714,641 +16794,656 @@ in
     
    -
    3.3.4.2. Work
    +
    3.3.4.2. Work (pizauth)

    The rest of the settings is at work. Here, I am setting up the different firefox profiles that I need for the SSO sites that I need to access at work as well as a few ssh shorthands.

    +

    +When setting up a new machine: +

    + +
    +
    - setup pizauth for microsoft mail sync (account names are possibly `uni` and `work`):
    +  - `pizauth auth <account name, e.g. 'work'>`
    +  - `pizauth dump > ~/.pizauth.state`
    +
    +
    +
    { self, config, pkgs, lib, vars, nixosConfig ? config, ... }:
    -    let
    -      inherit (config.swarselsystems) homeDir;
    -    in
    +let
    +  inherit (config.swarselsystems) homeDir;
    +  inherit (nixosConfig.repo.secrets.local.mail) allMailAddresses;
    +  inherit (nixosConfig.repo.secrets.local.work) mailAddress;
    +in
    +{
    +  options.swarselmodules.optional.work = lib.mkEnableOption "optional work settings";
    +  config = lib.mkIf config.swarselmodules.optional.work
         {
    -      options.swarselmodules.optional.work = lib.mkEnableOption "optional work settings";
    -      config = lib.mkIf config.swarselmodules.optional.work
    +      home.packages = with pkgs; [
    +        stable.teams-for-linux
    +        shellcheck
    +        dig
    +        docker
    +        postman
    +        # rclone
    +        libguestfs-with-appliance
    +        stable.prometheus.cli
    +        tigervnc
    +        # openstackclient
    +
    +        vscode
    +      ];
    +
    +      systemd.user.sessionVariables = {
    +        DOCUMENT_DIR_WORK = lib.mkForce "${homeDir}/Documents/Work";
    +      } // lib.optionalAttrs (!config.swarselsystems.isPublic) {
    +        SWARSEL_MAIL_ALL = lib.mkForce allMailAddresses;
    +        SWARSEL_MAIL_WORK = lib.mkForce mailAddress;
    +      };
    +
    +      accounts.email.accounts.work =
    +        let
    +          inherit (nixosConfig.repo.secrets.local.work) mailName;
    +        in
             {
    -          home.packages = with pkgs; [
    -            stable.teams-for-linux
    -            shellcheck
    -            dig
    -            docker
    -            postman
    -            # rclone
    -            libguestfs-with-appliance
    -            stable.prometheus.cli
    -            tigervnc
    -            # openstackclient
    +          primary = false;
    +          address = mailAddress;
    +          userName = mailAddress;
    +          realName = mailName;
    +          passwordCommand = "pizauth show work";
    +          imap = {
    +            host = "outlook.office365.com";
    +            port = 993;
    +            tls.enable = true; # SSL/TLS
    +          };
    +          smtp = {
    +            host = "outlook.office365.com";
    +            port = 587;
    +            tls = {
    +              enable = true; # SSL/TLS
    +              useStartTls = true;
    +            };
    +          };
    +          thunderbird = {
    +            enable = true;
    +            profiles = [ "default" ];
    +            settings = id: {
    +              "mail.smtpserver.smtp_${id}.authMethod" = 10; # oauth
    +              "mail.server.server_${id}.authMethod" = 10; # oauth
    +              # "toolkit.telemetry.enabled" = false;
    +              # "toolkit.telemetry.rejected" = true;
    +              # "toolkit.telemetry.prompted" = 2;
    +            };
    +          };
    +          msmtp = {
    +            enable = true;
    +            extraConfig = {
    +              auth = "xoauth2";
    +              host = "outlook.office365.com";
    +              protocol = "smtp";
    +              port = "587";
    +              tls = "on";
    +              tls_starttls = "on";
    +              from = "${mailAddress}";
    +              user = "${mailAddress}";
    +              passwordeval = "pizauth show work";
    +            };
    +          };
    +          mu.enable = true;
    +          mbsync = {
    +            enable = true;
    +            expunge = "both";
    +            patterns = [ "INBOX" ];
    +            extraConfig = {
    +              account = {
    +                AuthMechs = "XOAUTH2";
    +              };
    +            };
    +          };
    +        };
     
    -            vscode
    +      # wayland.windowManager.sway.config = {
    +      #   output = {
    +      #     "Applied Creative Technology Transmitter QUATTRO201811" = {
    +      #       bg = "${self}/files/wallpaper/navidrome.png ${config.stylix.imageScalingMode}";
    +      #     };
    +      #     "Hewlett Packard HP Z24i CN44250RDT" = {
    +      #       bg = "${self}/files/wallpaper/op6wp.png ${config.stylix.imageScalingMode}";
    +      #     };
    +      #     "HP Inc. HP 732pk CNC4080YL5" = {
    +      #       bg = "${self}/files/wallpaper/botanicswp.png ${config.stylix.imageScalingMode}";
    +      #     };
    +      #   };
    +      # };
    +
    +      stylix = {
    +        targets.firefox.profileNames =
    +          let
    +            inherit (nixosConfig.repo.secrets.local.work) user1 user2 user3;
    +          in
    +          [
    +            "${user1}"
    +            "${user2}"
    +            "${user3}"
    +            "work"
               ];
    +      };
     
    -
    -          systemd.user.sessionVariables = {
    -            DOCUMENT_DIR_WORK = lib.mkForce "${homeDir}/Documents/Work";
    +      programs =
    +        let
    +          inherit (nixosConfig.repo.secrets.local.work) user1 user1Long user2 user2Long user3 user3Long user4 path1 loc1 loc2 site1 site2 site3 site4 site5 site6 site7 lifecycle1 lifecycle2 domain1 domain2 gitMail clouds;
    +        in
    +        {
    +          openstackclient = {
    +            enable = true;
    +            inherit clouds;
               };
    +          awscli = {
    +            enable = true;
    +            package = pkgs.stable24_05.awscli2;
    +            # settings = {
    +            #   "default" = { };
    +            #   "profile s3-imagebuilder-prod" = { };
    +            # };
    +            # credentials = {
    +            #   "s3-imagebuilder-prod" = {
    +            #     aws_access_key_id = "5OYXY4879EJG9I91K1B6";
    +            #     credential_process = "${pkgs.pass}/bin/pass show work/awscli/s3-imagebuilder-prod/secret-key";
    +            #   };
    +            # };
    +          };
    +          git.userEmail = lib.mkForce gitMail;
     
    -          accounts.email.accounts.work =
    -            let
    -              inherit (nixosConfig.repo.secrets.local.work) mailAddress mailName;
    -            in
    -            {
    -              primary = false;
    -              address = mailAddress;
    -              userName = mailAddress;
    -              realName = mailName;
    -              passwordCommand = "pizauth show work";
    -              imap = {
    -                host = "outlook.office365.com";
    -                port = 993;
    -                tls.enable = true; # SSL/TLS
    -              };
    -              smtp = {
    -                host = "outlook.office365.com";
    -                port = 587;
    -                tls = {
    -                  enable = true; # SSL/TLS
    -                  useStartTls = true;
    -                };
    -              };
    -              thunderbird = {
    -                enable = true;
    -                profiles = [ "default" ];
    -                settings = id: {
    -                  "mail.smtpserver.smtp_${id}.authMethod" = 10; # oauth
    -                  "mail.server.server_${id}.authMethod" = 10; # oauth
    -                  # "toolkit.telemetry.enabled" = false;
    -                  # "toolkit.telemetry.rejected" = true;
    -                  # "toolkit.telemetry.prompted" = 2;
    -                };
    -              };
    -              msmtp = {
    -                enable = true;
    -                extraConfig = {
    -                  auth = "xoauth2";
    -                  host = "outlook.office365.com";
    -                  protocol = "smtp";
    -                  port = "587";
    -                  tls = "on";
    -                  tls_starttls = "on";
    -                  from = "${mailAddress}";
    -                  user = "${mailAddress}";
    -                  passwordeval = "pizauth show work";
    -                };
    -              };
    -              mu.enable = true;
    -              mbsync = {
    -                enable = true;
    -                expunge = "both";
    -                patterns = [ "INBOX" ];
    -                extraConfig = {
    -                  account = {
    -                    AuthMechs = "XOAUTH2";
    -                  };
    -                };
    -              };
    +          zsh = {
    +            shellAliases = {
    +              dssh = "ssh -l ${user1Long}";
    +              cssh = "ssh -l ${user2Long}";
    +              wssh = "ssh -l ${user3Long}";
    +            };
    +            cdpath = [
    +              "~/Documents/Work"
    +            ];
    +            dirHashes = {
    +              d = "$HOME/.dotfiles";
    +              w = "$HOME/Documents/Work";
    +              s = "$HOME/.dotfiles/secrets";
    +              pr = "$HOME/Documents/Private";
    +              ac = path1;
                 };
     
    -          # wayland.windowManager.sway.config = {
    -          #   output = {
    -          #     "Applied Creative Technology Transmitter QUATTRO201811" = {
    -          #       bg = "${self}/files/wallpaper/navidrome.png ${config.stylix.imageScalingMode}";
    -          #     };
    -          #     "Hewlett Packard HP Z24i CN44250RDT" = {
    -          #       bg = "${self}/files/wallpaper/op6wp.png ${config.stylix.imageScalingMode}";
    -          #     };
    -          #     "HP Inc. HP 732pk CNC4080YL5" = {
    -          #       bg = "${self}/files/wallpaper/botanicswp.png ${config.stylix.imageScalingMode}";
    -          #     };
    -          #   };
    -          # };
    +            sessionVariables = {
    +              VSPHERE_USER = "$(cat ${nixosConfig.sops.secrets.vcuser.path})";
    +              VSPHERE_PW = "$(cat ${nixosConfig.sops.secrets.vcpw.path})";
    +              GOVC_USERNAME = "$(cat ${nixosConfig.sops.secrets.govcuser.path})";
    +              GOVC_PASSWORD = "$(cat ${nixosConfig.sops.secrets.govcpw.path})";
    +              GOVC_URL = "$(cat ${nixosConfig.sops.secrets.govcurl.path})";
    +              GOVC_DATACENTER = "$(cat ${nixosConfig.sops.secrets.govcdc.path})";
    +              GOVC_DATASTORE = "$(cat ${nixosConfig.sops.secrets.govcds.path})";
    +              GOVC_HOST = "$(cat ${nixosConfig.sops.secrets.govchost.path})";
    +              GOVC_RESOURCE_POOL = "$(cat ${nixosConfig.sops.secrets.govcpool.path})";
    +              GOVC_NETWORK = "$(cat ${nixosConfig.sops.secrets.govcnetwork.path})";
    +            };
    +          };
     
    -          stylix = {
    -            targets.firefox.profileNames =
    +          ssh = {
    +            matchBlocks = {
    +              "${loc1}" = {
    +                hostname = "${loc1}.${domain2}";
    +                user = user4;
    +              };
    +              "${loc1}.stg" = {
    +                hostname = "${loc1}.${lifecycle1}.${domain2}";
    +                user = user4;
    +              };
    +              "${loc1}.staging" = {
    +                hostname = "${loc1}.${lifecycle1}.${domain2}";
    +                user = user4;
    +              };
    +              "${loc1}.dev" = {
    +                hostname = "${loc1}.${lifecycle2}.${domain2}";
    +                user = user4;
    +              };
    +              "${loc2}" = {
    +                hostname = "${loc2}.${domain1}";
    +                user = user1Long;
    +              };
    +              "${loc2}.stg" = {
    +                hostname = "${loc2}.${lifecycle1}.${domain2}";
    +                user = user1Long;
    +              };
    +              "${loc2}.staging" = {
    +                hostname = "${loc2}.${lifecycle1}.${domain2}";
    +                user = user1Long;
    +              };
    +              "*.${domain1}" = {
    +                user = user1Long;
    +              };
    +            };
    +          };
    +
    +          firefox = {
    +            profiles =
                   let
    -                inherit (nixosConfig.repo.secrets.local.work) user1 user2 user3;
    +                isDefault = false;
                   in
    -              [
    -                "${user1}"
    -                "${user2}"
    -                "${user3}"
    -                "work"
    -              ];
    +              {
    +                "${user1}" = lib.recursiveUpdate
    +                  {
    +                    inherit isDefault;
    +                    id = 1;
    +                    settings = {
    +                      "browser.startup.homepage" = "${site1}|${site2}";
    +                    };
    +                  }
    +                  vars.firefox;
    +                "${user2}" = lib.recursiveUpdate
    +                  {
    +                    inherit isDefault;
    +                    id = 2;
    +                    settings = {
    +                      "browser.startup.homepage" = "${site3}";
    +                    };
    +                  }
    +                  vars.firefox;
    +                "${user3}" = lib.recursiveUpdate
    +                  {
    +                    inherit isDefault;
    +                    id = 3;
    +                  }
    +                  vars.firefox;
    +                work = lib.recursiveUpdate
    +                  {
    +                    inherit isDefault;
    +                    id = 4;
    +                    settings = {
    +                      "browser.startup.homepage" = "${site4}|${site5}|${site6}|${site7}";
    +                    };
    +                  }
    +                  vars.firefox;
    +              };
               };
     
    -          programs =
    -            let
    -              inherit (nixosConfig.repo.secrets.local.work) user1 user1Long user2 user2Long user3 user3Long user4 path1 loc1 loc2 site1 site2 site3 site4 site5 site6 site7 lifecycle1 lifecycle2 domain1 domain2 gitMail clouds;
    -            in
    +          chromium = {
    +            enable = true;
    +            package = pkgs.chromium;
    +
    +            extensions = [
    +              # 1password
    +              "gejiddohjgogedgjnonbofjigllpkmbf"
    +              # dark reader
    +              "eimadpbcbfnmbkopoojfekhnkhdbieeh"
    +              # ublock origin
    +              "cjpalhdlnbpafiamejdnhcphjbkeiagm"
    +              # i still dont care about cookies
    +              "edibdbjcniadpccecjdfdjjppcpchdlm"
    +              # browserpass
    +              "naepdomgkenhinolocfifgehidddafch"
    +            ];
    +          };
    +        };
    +
    +      services = {
    +        kanshi = {
    +          settings = [
                 {
    -              openstackclient = {
    -                enable = true;
    -                inherit clouds;
    -};
    -              awscli = {
    -                enable = true;
    -                package = pkgs.stable24_05.awscli2;
    -                # settings = {
    -                #   "default" = { };
    -                #   "profile s3-imagebuilder-prod" = { };
    -                # };
    -                # credentials = {
    -                #   "s3-imagebuilder-prod" = {
    -                #     aws_access_key_id = "5OYXY4879EJG9I91K1B6";
    -                #     credential_process = "${pkgs.pass}/bin/pass show work/awscli/s3-imagebuilder-prod/secret-key";
    -                #   };
    -                # };
    +              # seminary room
    +              output = {
    +                criteria = "Applied Creative Technology Transmitter QUATTRO201811";
    +                scale = 1.0;
    +                mode = "1280x720";
                   };
    -              git.userEmail = lib.mkForce gitMail;
    -
    -              zsh = {
    -                shellAliases = {
    -                  dssh = "ssh -l ${user1Long}";
    -                  cssh = "ssh -l ${user2Long}";
    -                  wssh = "ssh -l ${user3Long}";
    -                };
    -                cdpath = [
    -                  "~/Documents/Work"
    +            }
    +            {
    +              # work main screen
    +              output = {
    +                criteria = "HP Inc. HP 732pk CNC4080YL5";
    +                scale = 1.0;
    +                mode = "3840x2160";
    +              };
    +            }
    +            {
    +              # work side screen
    +              output = {
    +                criteria = "Hewlett Packard HP Z24i CN44250RDT";
    +                scale = 1.0;
    +                mode = "1920x1200";
    +                transform = "270";
    +              };
    +            }
    +            {
    +              profile = {
    +                name = "lidopen";
    +                exec = [
    +                  "${pkgs.swaybg}/bin/swaybg --output '${config.swarselsystems.sharescreen}' --image ${config.swarselsystems.wallpaper} --mode ${config.stylix.imageScalingMode}"
    +                  "${pkgs.swaybg}/bin/swaybg --output 'HP Inc. HP 732pk CNC4080YL5' --image ${self}/files/wallpaper/botanicswp.png --mode ${config.stylix.imageScalingMode}"
    +                  "${pkgs.swaybg}/bin/swaybg --output 'Hewlett Packard HP Z24i CN44250RDT' --image ${self}/files/wallpaper/op6wp.png --mode ${config.stylix.imageScalingMode}"
                     ];
    -                dirHashes = {
    -                  d = "$HOME/.dotfiles";
    -                  w = "$HOME/Documents/Work";
    -                  s = "$HOME/.dotfiles/secrets";
    -                  pr = "$HOME/Documents/Private";
    -                  ac = path1;
    -                };
    -
    -                sessionVariables = {
    -                  VSPHERE_USER = "$(cat ${nixosConfig.sops.secrets.vcuser.path})";
    -                  VSPHERE_PW = "$(cat ${nixosConfig.sops.secrets.vcpw.path})";
    -                  GOVC_USERNAME = "$(cat ${nixosConfig.sops.secrets.govcuser.path})";
    -                  GOVC_PASSWORD = "$(cat ${nixosConfig.sops.secrets.govcpw.path})";
    -                  GOVC_URL = "$(cat ${nixosConfig.sops.secrets.govcurl.path})";
    -                  GOVC_DATACENTER = "$(cat ${nixosConfig.sops.secrets.govcdc.path})";
    -                  GOVC_DATASTORE = "$(cat ${nixosConfig.sops.secrets.govcds.path})";
    -                  GOVC_HOST = "$(cat ${nixosConfig.sops.secrets.govchost.path})";
    -                  GOVC_RESOURCE_POOL = "$(cat ${nixosConfig.sops.secrets.govcpool.path})";
    -                  GOVC_NETWORK = "$(cat ${nixosConfig.sops.secrets.govcnetwork.path})";
    -                };
    -              };
    -
    -              ssh = {
    -                matchBlocks = {
    -                  "${loc1}" = {
    -                    hostname = "${loc1}.${domain2}";
    -                    user = user4;
    -                  };
    -                  "${loc1}.stg" = {
    -                    hostname = "${loc1}.${lifecycle1}.${domain2}";
    -                    user = user4;
    -                  };
    -                  "${loc1}.staging" = {
    -                    hostname = "${loc1}.${lifecycle1}.${domain2}";
    -                    user = user4;
    -                  };
    -                  "${loc1}.dev" = {
    -                    hostname = "${loc1}.${lifecycle2}.${domain2}";
    -                    user = user4;
    -                  };
    -                  "${loc2}" = {
    -                    hostname = "${loc2}.${domain1}";
    -                    user = user1Long;
    -                  };
    -                  "${loc2}.stg" = {
    -                    hostname = "${loc2}.${lifecycle1}.${domain2}";
    -                    user = user1Long;
    -                  };
    -                  "${loc2}.staging" = {
    -                    hostname = "${loc2}.${lifecycle1}.${domain2}";
    -                    user = user1Long;
    -                  };
    -                  "*.${domain1}" = {
    -                    user = user1Long;
    -                  };
    -                };
    -              };
    -
    -              firefox = {
    -                profiles =
    -                  let
    -                    isDefault = false;
    -                  in
    +                outputs = [
                       {
    -                    "${user1}" = lib.recursiveUpdate
    -                      {
    -                        inherit isDefault;
    -                        id = 1;
    -                        settings = {
    -                          "browser.startup.homepage" = "${site1}|${site2}";
    -                        };
    -                      }
    -                      vars.firefox;
    -                    "${user2}" = lib.recursiveUpdate
    -                      {
    -                        inherit isDefault;
    -                        id = 2;
    -                        settings = {
    -                          "browser.startup.homepage" = "${site3}";
    -                        };
    -                      }
    -                      vars.firefox;
    -                    "${user3}" = lib.recursiveUpdate
    -                      {
    -                        inherit isDefault;
    -                        id = 3;
    -                      }
    -                      vars.firefox;
    -                    work = lib.recursiveUpdate
    -                      {
    -                        inherit isDefault;
    -                        id = 4;
    -                        settings = {
    -                          "browser.startup.homepage" = "${site4}|${site5}|${site6}|${site7}";
    -                        };
    -                      }
    -                      vars.firefox;
    -                  };
    -              };
    -
    -              chromium = {
    -                enable = true;
    -                package = pkgs.chromium;
    -
    -                extensions = [
    -                  # 1password
    -                  "gejiddohjgogedgjnonbofjigllpkmbf"
    -                  # dark reader
    -                  "eimadpbcbfnmbkopoojfekhnkhdbieeh"
    -                  # ublock origin
    -                  "cjpalhdlnbpafiamejdnhcphjbkeiagm"
    -                  # i still dont care about cookies
    -                  "edibdbjcniadpccecjdfdjjppcpchdlm"
    -                  # browserpass
    -                  "naepdomgkenhinolocfifgehidddafch"
    +                    criteria = config.swarselsystems.sharescreen;
    +                    status = "enable";
    +                    scale = 1.5;
    +                    position = "1462,0";
    +                  }
    +                  {
    +                    criteria = "HP Inc. HP 732pk CNC4080YL5";
    +                    scale = 1.4;
    +                    mode = "3840x2160";
    +                    position = "-1280,0";
    +                  }
    +                  {
    +                    criteria = "Hewlett Packard HP Z24i CN44250RDT";
    +                    scale = 1.0;
    +                    mode = "1920x1200";
    +                    transform = "90";
    +                    position = "-2480,0";
    +                  }
                     ];
                   };
    -            };
    -
    -          services = {
    -            kanshi = {
    -              settings = [
    +            }
    +            {
    +              profile =
    +                let
    +                  monitor = "Applied Creative Technology Transmitter QUATTRO201811";
    +                in
                     {
    -                  # seminary room
    -                  output = {
    -                    criteria = "Applied Creative Technology Transmitter QUATTRO201811";
    -                    scale = 1.0;
    -                    mode = "1280x720";
    -                  };
    -                }
    -                {
    -                  # work main screen
    -                  output = {
    +                  name = "lidopen";
    +                  exec = [
    +                    "${pkgs.swaybg}/bin/swaybg --output '${config.swarselsystems.sharescreen}' --image ${config.swarselsystems.wallpaper} --mode ${config.stylix.imageScalingMode}"
    +                    "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/navidrome.png --mode ${config.stylix.imageScalingMode}"
    +                    "${pkgs.kanshare}/bin/kanshare ${config.swarselsystems.sharescreen} '${monitor}'"
    +                  ];
    +                  outputs = [
    +                    {
    +                      criteria = config.swarselsystems.sharescreen;
    +                      status = "enable";
    +                      scale = 1.7;
    +                      position = "2560,0";
    +                    }
    +                    {
    +                      criteria = "Applied Creative Technology Transmitter QUATTRO201811";
    +                      scale = 1.0;
    +                      mode = "1280x720";
    +                      position = "10000,10000";
    +                    }
    +                  ];
    +                };
    +            }
    +            {
    +              profile = {
    +                name = "lidclosed";
    +                exec = [
    +                  "${pkgs.swaybg}/bin/swaybg --output 'HP Inc. HP 732pk CNC4080YL5' --image ${self}/files/wallpaper/botanicswp.png --mode ${config.stylix.imageScalingMode}"
    +                  "${pkgs.swaybg}/bin/swaybg --output 'Hewlett Packard HP Z24i CN44250RDT' --image ${self}/files/wallpaper/op6wp.png --mode ${config.stylix.imageScalingMode}"
    +                ];
    +                outputs = [
    +                  {
    +                    criteria = config.swarselsystems.sharescreen;
    +                    status = "disable";
    +                  }
    +                  {
                         criteria = "HP Inc. HP 732pk CNC4080YL5";
    -                    scale = 1.0;
    +                    scale = 1.4;
                         mode = "3840x2160";
    -                  };
    -                }
    -                {
    -                  # work side screen
    -                  output = {
    +                    position = "-1280,0";
    +                  }
    +                  {
                         criteria = "Hewlett Packard HP Z24i CN44250RDT";
                         scale = 1.0;
                         mode = "1920x1200";
                         transform = "270";
    -                  };
    -                }
    -                {
    -                  profile = {
    -                    name = "lidopen";
    -                    exec = [
    -                      "${pkgs.swaybg}/bin/swaybg --output '${config.swarselsystems.sharescreen}' --image ${config.swarselsystems.wallpaper} --mode ${config.stylix.imageScalingMode}"
    -                      "${pkgs.swaybg}/bin/swaybg --output 'HP Inc. HP 732pk CNC4080YL5' --image ${self}/files/wallpaper/botanicswp.png --mode ${config.stylix.imageScalingMode}"
    -                      "${pkgs.swaybg}/bin/swaybg --output 'Hewlett Packard HP Z24i CN44250RDT' --image ${self}/files/wallpaper/op6wp.png --mode ${config.stylix.imageScalingMode}"
    -                    ];
    -                    outputs = [
    -                      {
    -                        criteria = config.swarselsystems.sharescreen;
    -                        status = "enable";
    -                        scale = 1.5;
    -                        position = "1462,0";
    -                      }
    -                      {
    -                        criteria = "HP Inc. HP 732pk CNC4080YL5";
    -                        scale = 1.4;
    -                        mode = "3840x2160";
    -                        position = "-1280,0";
    -                      }
    -                      {
    -                        criteria = "Hewlett Packard HP Z24i CN44250RDT";
    -                        scale = 1.0;
    -                        mode = "1920x1200";
    -                        transform = "90";
    -                        position = "-2480,0";
    -                      }
    -                    ];
    -                  };
    -                }
    -                {
    -                  profile =
    -                    let
    -                      monitor = "Applied Creative Technology Transmitter QUATTRO201811";
    -                    in
    -                    {
    -                      name = "lidopen";
    -                      exec = [
    -                        "${pkgs.swaybg}/bin/swaybg --output '${config.swarselsystems.sharescreen}' --image ${config.swarselsystems.wallpaper} --mode ${config.stylix.imageScalingMode}"
    -                        "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/navidrome.png --mode ${config.stylix.imageScalingMode}"
    -                        "${pkgs.kanshare}/bin/kanshare ${config.swarselsystems.sharescreen} '${monitor}'"
    -                      ];
    -                      outputs = [
    -                        {
    -                          criteria = config.swarselsystems.sharescreen;
    -                          status = "enable";
    -                          scale = 1.7;
    -                          position = "2560,0";
    -                        }
    -                        {
    -                          criteria = "Applied Creative Technology Transmitter QUATTRO201811";
    -                          scale = 1.0;
    -                          mode = "1280x720";
    -                          position = "10000,10000";
    -                        }
    -                      ];
    -                    };
    -                }
    -                {
    -                  profile = {
    -                    name = "lidclosed";
    -                    exec = [
    -                      "${pkgs.swaybg}/bin/swaybg --output 'HP Inc. HP 732pk CNC4080YL5' --image ${self}/files/wallpaper/botanicswp.png --mode ${config.stylix.imageScalingMode}"
    -                      "${pkgs.swaybg}/bin/swaybg --output 'Hewlett Packard HP Z24i CN44250RDT' --image ${self}/files/wallpaper/op6wp.png --mode ${config.stylix.imageScalingMode}"
    -                    ];
    -                    outputs = [
    -                      {
    -                        criteria = config.swarselsystems.sharescreen;
    -                        status = "disable";
    -                      }
    -                      {
    -                        criteria = "HP Inc. HP 732pk CNC4080YL5";
    -                        scale = 1.4;
    -                        mode = "3840x2160";
    -                        position = "-1280,0";
    -                      }
    -                      {
    -                        criteria = "Hewlett Packard HP Z24i CN44250RDT";
    -                        scale = 1.0;
    -                        mode = "1920x1200";
    -                        transform = "270";
    -                        position = "-2480,0";
    -                      }
    -                    ];
    -                  };
    -                }
    -                {
    -                  profile =
    -                    let
    -                      monitor = "Applied Creative Technology Transmitter QUATTRO201811";
    -                    in
    -                    {
    -                      name = "lidclosed";
    -                      exec = [
    -                        "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/navidrome.png --mode ${config.stylix.imageScalingMode}"
    -                      ];
    -                      outputs = [
    -                        {
    -                          criteria = config.swarselsystems.sharescreen;
    -                          status = "disable";
    -                        }
    -                        {
    -                          criteria = "Applied Creative Technology Transmitter QUATTRO201811";
    -                          scale = 1.0;
    -                          mode = "1280x720";
    -                          position = "10000,10000";
    -                        }
    -                      ];
    -                    };
    -                }
    -              ];
    -            };
    -          };
    -
    -          systemd.user.services = {
    -            pizauth.Service = {
    -              ExecStartPost = [
    -                "${pkgs.toybox}/bin/sleep 1"
    -                "//bin/sh -c '${lib.getExe pkgs.pizauth} restore < ${homeDir}/.pizauth.state'"
    -              ];
    -            };
    -
    -            teams-applet = {
    -              Unit = {
    -                Description = "teams applet";
    -                Requires = [ "tray.target" ];
    -                After = [
    -                  "graphical-session.target"
    -                  "tray.target"
    +                    position = "-2480,0";
    +                  }
                     ];
    -                PartOf = [ "graphical-session.target" ];
                   };
    -
    -              Install = {
    -                WantedBy = [ "graphical-session.target" ];
    -              };
    -
    -              Service = {
    -                ExecStart = "${pkgs.stable.teams-for-linux}/bin/teams-for-linux --disableGpu=true --minimized=true --trayIconEnabled=true";
    -              };
    -            };
    -
    -            onepassword-applet = {
    -              Unit = {
    -                Description = "1password applet";
    -                Requires = [ "tray.target" ];
    -                After = [
    -                  "graphical-session.target"
    -                  "tray.target"
    -                ];
    -                PartOf = [ "graphical-session.target" ];
    -              };
    -
    -              Install = {
    -                WantedBy = [ "graphical-session.target" ];
    -              };
    -
    -              Service = {
    -                ExecStart = "${pkgs._1password-gui}/bin/1password";
    -              };
    -            };
    -
    -          };
    -
    -          swarselservices.pizauth = {
    -            enable = true;
    -            extraConfig = ''
    -              auth_notify_cmd = "if [[ \"$(notify-send -A \"Open $PIZAUTH_ACCOUNT\" -t 30000 'pizauth authorisation')\" == \"0\" ]]; then open \"$PIZAUTH_URL\"; fi";
    -              error_notify_cmd = "notify-send -t 90000 \"pizauth error for $PIZAUTH_ACCOUNT\" \"$PIZAUTH_MSG\"";
    -              token_event_cmd = "pizauth dump > ${homeDir}/.pizauth.state";
    -            '';
    -            accounts = {
    -              work = {
    -                authUri = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize";
    -                tokenUri = "https://login.microsoftonline.com/common/oauth2/v2.0/token";
    -                clientId = "08162f7c-0fd2-4200-a84a-f25a4db0b584";
    -                clientSecret = "TxRBilcHdC6WGBee]fs?QR:SJ8nI[g82";
    -                scopes = [
    -                  "https://outlook.office365.com/IMAP.AccessAsUser.All"
    -                  "https://outlook.office365.com/SMTP.Send"
    -                  "offline_access"
    -                ];
    -                loginHint = "${nixosConfig.repo.secrets.local.work.mailAddress}";
    -              };
    -            };
    -
    -          };
    -
    -          xdg =
    -            let
    -              inherit (nixosConfig.repo.secrets.local.work) user1 user2 user3;
    -            in
    +            }
                 {
    -              mimeApps = {
    -                defaultApplications = {
    -                  "x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ];
    -                };
    -              };
    -              desktopEntries =
    +              profile =
                     let
    -                  terminal = false;
    -                  categories = [ "Application" ];
    -                  icon = "firefox";
    +                  monitor = "Applied Creative Technology Transmitter QUATTRO201811";
                     in
                     {
    -                  firefox_work = {
    -                    name = "Firefox (work)";
    -                    genericName = "Firefox work";
    -                    exec = "firefox -p work";
    -                    inherit terminal categories icon;
    -                  };
    -                  "firefox_${user1}" = {
    -                    name = "Firefox (${user1})";
    -                    genericName = "Firefox ${user1}";
    -                    exec = "firefox -p ${user1}";
    -                    inherit terminal categories icon;
    -                  };
    -
    -                  "firefox_${user2}" = {
    -                    name = "Firefox (${user2})";
    -                    genericName = "Firefox ${user2}";
    -                    exec = "firefox -p ${user2}";
    -                    inherit terminal categories icon;
    -                  };
    -
    -                  "firefox_${user3}" = {
    -                    name = "Firefox (${user3})";
    -                    genericName = "Firefox ${user3}";
    -                    exec = "firefox -p ${user3}";
    -                    inherit terminal categories icon;
    -                  };
    -
    -
    +                  name = "lidclosed";
    +                  exec = [
    +                    "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/navidrome.png --mode ${config.stylix.imageScalingMode}"
    +                  ];
    +                  outputs = [
    +                    {
    +                      criteria = config.swarselsystems.sharescreen;
    +                      status = "disable";
    +                    }
    +                    {
    +                      criteria = "Applied Creative Technology Transmitter QUATTRO201811";
    +                      scale = 1.0;
    +                      mode = "1280x720";
    +                      position = "10000,10000";
    +                    }
    +                  ];
                     };
    -            };
    -          swarselsystems = {
    -            startup = [
    -              # { command = "nextcloud --background"; }
    -              # { command = "vesktop --start-minimized --enable-speech-dispatcher --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime"; }
    -              # { command = "element-desktop --hidden  --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu-driver-bug-workarounds"; }
    -              # { command = "anki"; }
    -              # { command = "obsidian"; }
    -              # { command = "nm-applet"; }
    -              # { command = "feishin"; }
    -              # { command = "teams-for-linux --disableGpu=true --minimized=true --trayIconEnabled=true"; }
    -              # { command = "1password"; }
    -            ];
    -            monitors = {
    -              work_back_middle = rec {
    -                name = "LG Electronics LG Ultra HD 0x000305A6";
    -                mode = "2560x1440";
    -                scale = "1";
    -                position = "5120,0";
    -                workspace = "1:一";
    -                # output = "DP-10";
    -                output = name;
    -              };
    -              work_front_left = rec {
    -                name = "LG Electronics LG Ultra HD 0x0007AB45";
    -                mode = "3840x2160";
    -                scale = "1";
    -                position = "5120,0";
    -                workspace = "1:一";
    -                # output = "DP-7";
    -                output = name;
    -              };
    -              work_back_right = rec {
    -                name = "HP Inc. HP Z32 CN41212T55";
    -                mode = "3840x2160";
    -                scale = "1";
    -                position = "5120,0";
    -                workspace = "1:一";
    -                # output = "DP-3";
    -                output = name;
    -              };
    -              work_middle_middle_main = rec {
    -                name = "HP Inc. HP 732pk CNC4080YL5";
    -                mode = "3840x2160";
    -                scale = "1";
    -                position = "-1280,0";
    -                workspace = "11:M";
    -                # output = "DP-8";
    -                output = name;
    -              };
    -              work_middle_middle_side = rec {
    -                name = "Hewlett Packard HP Z24i CN44250RDT";
    -                mode = "1920x1200";
    -                transform = "270";
    -                scale = "1";
    -                position = "-2480,0";
    -                workspace = "12:S";
    -                # output = "DP-9";
    -                output = name;
    -              };
    -              work_seminary = rec {
    -                name = "Applied Creative Technology Transmitter QUATTRO201811";
    -                mode = "1280x720";
    -                scale = "1";
    -                position = "10000,10000"; # i.e. this screen is inaccessible by moving the mouse
    -                workspace = "14:T";
    -                # output = "DP-4";
    -                output = name;
    -              };
    -            };
    -            inputs = {
    -              "1133:45081:MX_Master_2S_Keyboard" = {
    -                xkb_layout = "us";
    -                xkb_variant = "altgr-intl";
    -              };
    -              # "2362:628:PIXA3854:00_093A:0274_Touchpad" = {
    -              #   dwt = "enabled";
    -              #   tap = "enabled";
    -              #   natural_scroll = "enabled";
    -              #   middle_emulation = "enabled";
    -              #   drag_lock = "disabled";
    -              # };
    -              "1133:50504:Logitech_USB_Receiver" = {
    -                xkb_layout = "us";
    -                xkb_variant = "altgr-intl";
    -              };
    -              "1133:45944:MX_KEYS_S" = {
    -                xkb_layout = "us";
    -                xkb_variant = "altgr-intl";
    -              };
    -            };
    +            }
    +          ];
    +        };
    +      };
     
    +      systemd.user.services = {
    +        pizauth.Service = {
    +          ExecStartPost = [
    +            "${pkgs.toybox}/bin/sleep 1"
    +            "//bin/sh -c '${lib.getExe pkgs.pizauth} restore < ${homeDir}/.pizauth.state'"
    +          ];
    +        };
    +
    +        teams-applet = {
    +          Unit = {
    +            Description = "teams applet";
    +            Requires = [ "tray.target" ];
    +            After = [
    +              "graphical-session.target"
    +              "tray.target"
    +            ];
    +            PartOf = [ "graphical-session.target" ];
    +          };
    +
    +          Install = {
    +            WantedBy = [ "graphical-session.target" ];
    +          };
    +
    +          Service = {
    +            ExecStart = "${pkgs.stable.teams-for-linux}/bin/teams-for-linux --disableGpu=true --minimized=true --trayIconEnabled=true";
               };
             };
     
    -    }
    +        onepassword-applet = {
    +          Unit = {
    +            Description = "1password applet";
    +            Requires = [ "tray.target" ];
    +            After = [
    +              "graphical-session.target"
    +              "tray.target"
    +            ];
    +            PartOf = [ "graphical-session.target" ];
    +          };
    +
    +          Install = {
    +            WantedBy = [ "graphical-session.target" ];
    +          };
    +
    +          Service = {
    +            ExecStart = "${pkgs._1password-gui}/bin/1password";
    +          };
    +        };
    +
    +      };
    +
    +      swarselservices.pizauth = {
    +        enable = true;
    +        extraConfig = ''
    +          auth_notify_cmd = "if [[ \"$(notify-send -A \"Open $PIZAUTH_ACCOUNT\" -t 30000 'pizauth authorisation')\" == \"0\" ]]; then open \"$PIZAUTH_URL\"; fi";
    +          error_notify_cmd = "notify-send -t 90000 \"pizauth error for $PIZAUTH_ACCOUNT\" \"$PIZAUTH_MSG\"";
    +          token_event_cmd = "pizauth dump > ${homeDir}/.pizauth.state";
    +        '';
    +        accounts = {
    +          work = {
    +            authUri = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize";
    +            tokenUri = "https://login.microsoftonline.com/common/oauth2/v2.0/token";
    +            clientId = "08162f7c-0fd2-4200-a84a-f25a4db0b584";
    +            clientSecret = "TxRBilcHdC6WGBee]fs?QR:SJ8nI[g82";
    +            scopes = [
    +              "https://outlook.office365.com/IMAP.AccessAsUser.All"
    +              "https://outlook.office365.com/SMTP.Send"
    +              "offline_access"
    +            ];
    +            loginHint = "${nixosConfig.repo.secrets.local.work.mailAddress}";
    +          };
    +        };
    +
    +      };
    +
    +      xdg =
    +        let
    +          inherit (nixosConfig.repo.secrets.local.work) user1 user2 user3;
    +        in
    +        {
    +          mimeApps = {
    +            defaultApplications = {
    +              "x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ];
    +            };
    +          };
    +          desktopEntries =
    +            let
    +              terminal = false;
    +              categories = [ "Application" ];
    +              icon = "firefox";
    +            in
    +            {
    +              firefox_work = {
    +                name = "Firefox (work)";
    +                genericName = "Firefox work";
    +                exec = "firefox -p work";
    +                inherit terminal categories icon;
    +              };
    +              "firefox_${user1}" = {
    +                name = "Firefox (${user1})";
    +                genericName = "Firefox ${user1}";
    +                exec = "firefox -p ${user1}";
    +                inherit terminal categories icon;
    +              };
    +
    +              "firefox_${user2}" = {
    +                name = "Firefox (${user2})";
    +                genericName = "Firefox ${user2}";
    +                exec = "firefox -p ${user2}";
    +                inherit terminal categories icon;
    +              };
    +
    +              "firefox_${user3}" = {
    +                name = "Firefox (${user3})";
    +                genericName = "Firefox ${user3}";
    +                exec = "firefox -p ${user3}";
    +                inherit terminal categories icon;
    +              };
    +
    +
    +            };
    +        };
    +      swarselsystems = {
    +        startup = [
    +          # { command = "nextcloud --background"; }
    +          # { command = "vesktop --start-minimized --enable-speech-dispatcher --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime"; }
    +          # { command = "element-desktop --hidden  --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu-driver-bug-workarounds"; }
    +          # { command = "anki"; }
    +          # { command = "obsidian"; }
    +          # { command = "nm-applet"; }
    +          # { command = "feishin"; }
    +          # { command = "teams-for-linux --disableGpu=true --minimized=true --trayIconEnabled=true"; }
    +          # { command = "1password"; }
    +        ];
    +        monitors = {
    +          work_back_middle = rec {
    +            name = "LG Electronics LG Ultra HD 0x000305A6";
    +            mode = "2560x1440";
    +            scale = "1";
    +            position = "5120,0";
    +            workspace = "1:一";
    +            # output = "DP-10";
    +            output = name;
    +          };
    +          work_front_left = rec {
    +            name = "LG Electronics LG Ultra HD 0x0007AB45";
    +            mode = "3840x2160";
    +            scale = "1";
    +            position = "5120,0";
    +            workspace = "1:一";
    +            # output = "DP-7";
    +            output = name;
    +          };
    +          work_back_right = rec {
    +            name = "HP Inc. HP Z32 CN41212T55";
    +            mode = "3840x2160";
    +            scale = "1";
    +            position = "5120,0";
    +            workspace = "1:一";
    +            # output = "DP-3";
    +            output = name;
    +          };
    +          work_middle_middle_main = rec {
    +            name = "HP Inc. HP 732pk CNC4080YL5";
    +            mode = "3840x2160";
    +            scale = "1";
    +            position = "-1280,0";
    +            workspace = "11:M";
    +            # output = "DP-8";
    +            output = name;
    +          };
    +          work_middle_middle_side = rec {
    +            name = "Hewlett Packard HP Z24i CN44250RDT";
    +            mode = "1920x1200";
    +            transform = "270";
    +            scale = "1";
    +            position = "-2480,0";
    +            workspace = "12:S";
    +            # output = "DP-9";
    +            output = name;
    +          };
    +          work_seminary = rec {
    +            name = "Applied Creative Technology Transmitter QUATTRO201811";
    +            mode = "1280x720";
    +            scale = "1";
    +            position = "10000,10000"; # i.e. this screen is inaccessible by moving the mouse
    +            workspace = "14:T";
    +            # output = "DP-4";
    +            output = name;
    +          };
    +        };
    +        inputs = {
    +          "1133:45081:MX_Master_2S_Keyboard" = {
    +            xkb_layout = "us";
    +            xkb_variant = "altgr-intl";
    +          };
    +          # "2362:628:PIXA3854:00_093A:0274_Touchpad" = {
    +          #   dwt = "enabled";
    +          #   tap = "enabled";
    +          #   natural_scroll = "enabled";
    +          #   middle_emulation = "enabled";
    +          #   drag_lock = "disabled";
    +          # };
    +          "1133:50504:Logitech_USB_Receiver" = {
    +            xkb_layout = "us";
    +            xkb_variant = "altgr-intl";
    +          };
    +          "1133:45944:MX_KEYS_S" = {
    +            xkb_layout = "us";
    +            xkb_variant = "altgr-intl";
    +          };
    +        };
    +
    +      };
    +    };
    +
    +}
     
     
    @@ -19713,8 +19808,8 @@ writeShellApplication {
    -
    -

    3.5.34. endme

    +
    +

    3.5.34. endme

    Sometimes my DE crashes after putting it to suspend - to be precise, it happens when I put it into suspend when I have multiple screens plugged in. I have never taken the time to debug the issue, but instead just switch to a different TTY and then use this script to kill the hanging session. @@ -19735,8 +19830,8 @@ writeShellApplication {

    -
    -

    3.5.35. git-replace

    +
    +

    3.5.35. git-replace

    This script allows for quick git replace of a string. @@ -19898,8 +19993,8 @@ in

    -
    -
    3.6.1.3. Optionals
    +
    +
    3.6.1.3. Optionals
    { lib, config, ... }:
    @@ -20642,6 +20737,10 @@ Used here: mu4e
           (when-let ((dest (swarsel/mu4e-rfs--matching-address)))
             (cl-destructuring-bind (from-user from-addr) dest
               (setq user-mail-address from-addr)
    +          (when (and (boundp 'user-mail-address)
    +                     (stringp user-mail-address)
    +                     (string-equal user-mail-address (getenv "SWARSEL_MAIL_WORK")))
    +            (mml-secure-message-sign-smime))
               (message-position-on-field "From")
               (message-beginning-of-line)
               (delete-region (point) (line-end-position))
    @@ -23751,7 +23850,7 @@ The hook functions are defined here: 
    +
    +
    +
    + +
    +

    5.1. General steps when setting up a new machine

    +
    +

    +These general steps are needed when setting up a new machine and do not fit into another block well: +

    + +
    +
    - setup yubikey (automatic yubikey enrollment is not yet supported by `disko`):
    +  - `systemd-cryptenroll --fido2-device=auto /dev/<device, e.g. 'nvme0n1p2'>`
    +
    +
    +
    +

    6. Appendix B: Supplementary Files

    @@ -24303,7 +24450,7 @@ set allowautofocus false jsb browser.webRequest.onHeadersReceived.addListener(tri.request.clobberCSP,{urls:["<all_urls>"],types:["main_frame"]},["blocking","responseHeaders"]) " default is 300ms -set hintdelay 100 +set hintdelay 500 " Some pages like github break on the tridactyl quick search. have this as a fallback unbind <C-f> @@ -26993,7 +27140,7 @@ similarly, there exists an version that starts from the right.

    Author: Leon Schwarzäugl

    -

    Created: 2025-10-21 Di 13:09

    +

    Created: 2025-10-21 Di 21:55

    Validate

    diff --git a/modules/home/common/anki-tray.nix b/modules/home/common/anki-tray.nix index d70fa67..0019bb6 100644 --- a/modules/home/common/anki-tray.nix +++ b/modules/home/common/anki-tray.nix @@ -20,10 +20,15 @@ Service = { # ExecStart = "${lib.getExe config.programs.anki.package}"; - ExecStart = "/etc/profiles/per-user/swarsel/bin/anki"; + Type = "simple"; + ExecStart = "/etc/profiles/per-user/${config.swarselsystems.mainUser}/bin/anki"; Environment = [ "QT_QPA_PLATFORM=xcb" ]; + TimeoutStopSec = "2s"; + KillMode = "mixed"; + KillSignal = "SIGTERM"; + SendSIGKILL = "yes"; }; }; diff --git a/modules/home/common/env.nix b/modules/home/common/env.nix index 240b677..f2f463d 100644 --- a/modules/home/common/env.nix +++ b/modules/home/common/env.nix @@ -28,7 +28,7 @@ in SWARSEL_CAL3 = source3; SWARSEL_CAL3NAME = source3-name; SWARSEL_FULLNAME = fullName; - SWARSEL_MAIL_ALL = allMailAddresses; + SWARSEL_MAIL_ALL = lib.mkDefault allMailAddresses; GITHUB_NOTIFICATION_TOKEN_PATH = nixosConfig.sops.secrets.github-notifications-token.path; OPENROUTER_API_KEY = openrouterApi; }; diff --git a/modules/home/common/obsidian.nix b/modules/home/common/obsidian.nix index 0e2e7f4..4baa813 100644 --- a/modules/home/common/obsidian.nix +++ b/modules/home/common/obsidian.nix @@ -27,6 +27,19 @@ in vimMode = false; newFileLocation = "current"; }; + hotkeys = { + "graph:open" = [ ]; + "omnisearch:show-modal" = [ + { + modifiers = [ + "Mod" + ]; + key = "S"; + } + ]; + "editor:save-file" = [ ]; + "editor:delete-paragraph" = [ ]; + }; corePlugins = [ "backlink" "bookmarks" diff --git a/modules/home/optional/work.nix b/modules/home/optional/work.nix index 28c66b7..72df0b1 100644 --- a/modules/home/optional/work.nix +++ b/modules/home/optional/work.nix @@ -1,6 +1,8 @@ { self, config, pkgs, lib, vars, nixosConfig ? config, ... }: let inherit (config.swarselsystems) homeDir; + inherit (nixosConfig.repo.secrets.local.mail) allMailAddresses; + inherit (nixosConfig.repo.secrets.local.work) mailAddress; in { options.swarselmodules.optional.work = lib.mkEnableOption "optional work settings"; @@ -21,14 +23,16 @@ in vscode ]; - systemd.user.sessionVariables = { DOCUMENT_DIR_WORK = lib.mkForce "${homeDir}/Documents/Work"; + } // lib.optionalAttrs (!config.swarselsystems.isPublic) { + SWARSEL_MAIL_ALL = lib.mkForce allMailAddresses; + SWARSEL_MAIL_WORK = lib.mkForce mailAddress; }; accounts.email.accounts.work = let - inherit (nixosConfig.repo.secrets.local.work) mailAddress mailName; + inherit (nixosConfig.repo.secrets.local.work) mailName; in { primary = false; diff --git a/secrets/repo/pii.nix.enc b/secrets/repo/pii.nix.enc index 89f4f54..85d15f6 100644 --- a/secrets/repo/pii.nix.enc +++ b/secrets/repo/pii.nix.enc @@ -1,5 +1,5 @@ { - "data": "ENC[AES256_GCM,data:4J1fELKd55+B/WTnmKrP/uRFFsSQWrbtDIaFqMkdqqjGuGlni0QXll/qVRGNhRw5rHRWThZf5Gb2Pll92YVfb5j9Jq2m+Yz2dZvQNpaTB3be8RD9OzExc1mjqMGuy6Oa0J2XuRXh4hy3oAXDgQxRkICLssRwB2aC3wHlXCyxr3jDIlWEZMM1wvTJ9zIiClamOaS+oABdjR/W151QSa7VcVIMyXfyk19xCxAvlD8kjB1Pyhvn1hgfRY7Sv/R67Wo7IrlfHaH0dK6xng+5EkxZOJtcsQy0jPQRXUCLOHWYr6UVXI7f9OPfRzr8WEL0mz0Qvv/ML6OadycXJnW/rOsxV0domBa93dNO4V3smydlizgTCekswyw7CU9q1M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WdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBtU240VjVRZmJ5TGsrclJF\nRXRLbTRCZURtR0Z3d2E2eDNNeGRDODlXVEY4CllTeVFYbDJQWlRSS1RFLzAxSnlM\nZi9NU1c3cWo3YWRLcUJ2U2ZFWFBBVEEKLS0tIGtmZU9qSWdBT3RDeStaaFFDSWtk\ndkUzZXJwZUl4LzVxYXdidmxXRnNnclUKyAMZqCKSY/RQvTR4bbjLaPnGKwdBcHXc\nvtiVSrLdIdzMa6id/J07TJH5UesUmcp0wjU41MDa4aMBLy+cXhuBHA==\n-----END AGE ENCRYPTED FILE-----\n" } ], - "lastmodified": "2025-10-11T07:31:31Z", - "mac": "ENC[AES256_GCM,data:PnHpvceDR85hyKkOTcSaqY4Lg/2mqFvxCSShBxi4DSaTSJkSJwcJ+pWgSdZFu9+P2k/fQv49U/2uTiLZuvPZaIsZKFWG2ngQU9WgxDkte8/DlSHW2yjW2KdJrs4Gv45GcEMzGJRUC8XzY1r5x40VvqyYZX0F30qiOpYGtLJiGKk=,iv:QwhVQaGMj+2m8DDfXeX0iaOlOgwe4I9fhBEQ6t5WF9Y=,tag:cm+1ccwoDfLjbe8UcaTa+Q==,type:str]", + "lastmodified": "2025-10-21T17:52:25Z", + "mac": "ENC[AES256_GCM,data:SNsmzPknGzx9H7baoKo8gKSac/86sW5em3MKyhYFUxfRhZEtkUwkzz6KwDgZ4YCBzUlLrToiLUICA6KPnkXDHhKBh+8dyyVlB8ISU3gDbozjwRNA78oatLlA4h5sa5RADLha9j7Fr9euy4rcrCmk6jpL26RmsiFZhzaAxhkal4s=,iv:hmRyoG9tW5Wl9AKxWDW4Hv9Qvb5zlM4Ktrk0Q8jsVxg=,tag:ofsjndQpjLmnCMvz1NTsCA==,type:str]", "pgp": [ { "created_at": "2025-06-13T20:13:06Z",