diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-04-25 14:52:15 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-04-25 14:52:15 +0200 |
| commit | 740081d9eecff224fe5aa398000f0dcb72ff89b5 (patch) | |
| tree | 1fb23f7d07e1fef673e3d9106c1450124a11119c /accounts | |
| parent | e85f955fbcf4e0541a0c7985deab5e59c37164a7 (diff) | |
| download | nixos-740081d9eecff224fe5aa398000f0dcb72ff89b5.tar nixos-740081d9eecff224fe5aa398000f0dcb72ff89b5.tar.gz nixos-740081d9eecff224fe5aa398000f0dcb72ff89b5.tar.bz2 nixos-740081d9eecff224fe5aa398000f0dcb72ff89b5.tar.xz nixos-740081d9eecff224fe5aa398000f0dcb72ff89b5.zip | |
bump
Diffstat (limited to 'accounts')
| -rw-r--r-- | accounts/gkleen@sif/default.nix | 2 | ||||
| -rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 4 | ||||
| -rw-r--r-- | accounts/gkleen@sif/zshrc | 15 |
3 files changed, 16 insertions, 5 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 1c2031b5..3b3c7fc5 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix | |||
| @@ -398,7 +398,7 @@ in { | |||
| 398 | fira-code-symbols libreoffice xournalpp google-chrome | 398 | fira-code-symbols libreoffice xournalpp google-chrome |
| 399 | nixos-shell virt-viewer freerdp gnome-icon-theme | 399 | nixos-shell virt-viewer freerdp gnome-icon-theme |
| 400 | paper-icon-theme sshpassSecret weechat element-desktop | 400 | paper-icon-theme sshpassSecret weechat element-desktop |
| 401 | sieve-connect gimp inkscape udiskie glab nitrokey-app | 401 | sieve-connect gimp3 inkscape udiskie glab nitrokey-app |
| 402 | pynitrokey gtklock wlrctl remmina openscad spice-record | 402 | pynitrokey gtklock wlrctl remmina openscad spice-record |
| 403 | libguestfs-with-appliance nerd-fonts.fira-mono | 403 | libguestfs-with-appliance nerd-fonts.fira-mono |
| 404 | nerd-fonts.symbols-only nerd-fonts.fira-code powerline-fonts | 404 | nerd-fonts.symbols-only nerd-fonts.fira-code powerline-fonts |
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index b5347d6f..0e25fc95 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
| @@ -273,8 +273,6 @@ in { | |||
| 273 | workspaces = list() | 273 | workspaces = list() |
| 274 | 274 | ||
| 275 | def focus_workspace(output, workspace): | 275 | def focus_workspace(output, workspace): |
| 276 | global workspace_history, history_lock | ||
| 277 | |||
| 278 | with history_lock: | 276 | with history_lock: |
| 279 | workspace_history[output] = [workspace] + [ws for ws in workspace_history[output] if ws != workspace] # noqa: E501 | 277 | workspace_history[output] = [workspace] + [ws for ws in workspace_history[output] if ws != workspace] # noqa: E501 |
| 280 | print(json.dumps(workspace_history), file=sys.stderr) | 278 | print(json.dumps(workspace_history), file=sys.stderr) |
| @@ -299,8 +297,6 @@ in { | |||
| 299 | 297 | ||
| 300 | class RequestHandler(StreamRequestHandler): | 298 | class RequestHandler(StreamRequestHandler): |
| 301 | def handle(self): | 299 | def handle(self): |
| 302 | global workspace_history, history_lock | ||
| 303 | |||
| 304 | with detaching(TextIOWrapper(self.wfile, encoding='utf-8', write_through=True)) as out: # noqa: E501 | 300 | with detaching(TextIOWrapper(self.wfile, encoding='utf-8', write_through=True)) as out: # noqa: E501 |
| 305 | with history_lock: | 301 | with history_lock: |
| 306 | json.dump(workspace_history, out) | 302 | json.dump(workspace_history, out) |
diff --git a/accounts/gkleen@sif/zshrc b/accounts/gkleen@sif/zshrc index c628e2e9..362943f3 100644 --- a/accounts/gkleen@sif/zshrc +++ b/accounts/gkleen@sif/zshrc | |||
| @@ -300,6 +300,21 @@ dichotomic_search() { | |||
| 300 | echo $min | 300 | echo $min |
| 301 | } | 301 | } |
| 302 | 302 | ||
| 303 | sieve-edit() { | ||
| 304 | case "$host" in | ||
| 305 | surtr) | ||
| 306 | sieve-connect -s surtr.yggdrasil.li -m EXTERNAL --clientkey <(nix run nixos'#'sops -- decrypt ~flk/hosts/surtr/email/ca/gkleen@sif.key) --clientcert ~flk/hosts/surtr/email/ca/gkleen@sif.crt --edit --remotesieve sieve | ||
| 307 | ;; | ||
| 308 | ymir) | ||
| 309 | sieve-connect -s ymir.yggdrasil.li -u gkleen --edit --remotesieve sieve | ||
| 310 | ;; | ||
| 311 | *) | ||
| 312 | echo "Unknown host: ‘$host’" >&2 | ||
| 313 | exit 2 | ||
| 314 | ;; | ||
| 315 | esac | ||
| 316 | } | ||
| 317 | |||
| 303 | while read -r -d $'\0' d _ s; do | 318 | while read -r -d $'\0' d _ s; do |
| 304 | hash -d ${s}=${d} | 319 | hash -d ${s}=${d} |
| 305 | done < <(find ~/projects ~/uni -regextype posix-extended -maxdepth 2 -type d -regex '\S+/[0-9]{2}[ws]/\S+' -print0 2>/dev/null | \ | 320 | done < <(find ~/projects ~/uni -regextype posix-extended -maxdepth 2 -type d -regex '\S+/[0-9]{2}[ws]/\S+' -print0 2>/dev/null | \ |
