diff options
| author | root <root@localhost> | 2025-01-21 17:25:31 +0000 |
|---|---|---|
| committer | root <root@localhost> | 2025-01-21 17:25:31 +0000 |
| commit | 6043502305e3d5ccc6c537d4ed085d8b2454c5c8 (patch) | |
| tree | f620aad6bbc32ea6736bc0381a955acdc671be20 | |
| parent | 1c0865add6a293d2521aaa7424eb43efb2faad36 (diff) | |
use linux builder
| -rw-r--r-- | machines/work.nix | 3 | ||||
| -rw-r--r-- | mut/aerospace/aerospace.toml | 11 | ||||
| -rwxr-xr-x | mut/bin/pnsh-nvim | 2 |
3 files changed, 13 insertions, 3 deletions
diff --git a/machines/work.nix b/machines/work.nix index 86dc916..1899dcd 100644 --- a/machines/work.nix +++ b/machines/work.nix @@ -109,6 +109,9 @@ nix.extraOptions = ''extra-platforms = x86_64-darwin aarch64-darwin ''; + nix.linux-builder.enable = true; + nix.settings.trusted-users = [ "@admin" "@ivi" ]; + # Set Git commit hash for darwin-version. system.configurationRevision = self.rev or self.dirtyRev or null; diff --git a/mut/aerospace/aerospace.toml b/mut/aerospace/aerospace.toml index c11e5c5..ce9f5fd 100644 --- a/mut/aerospace/aerospace.toml +++ b/mut/aerospace/aerospace.toml @@ -102,9 +102,16 @@ automatically-unhide-macos-hidden-apps = false end if end tell' ''' + cmd-w = '''exec-and-forget osascript -e ' - tell application "Chrome" - activate + tell application "System Events" + if exists application process "Google Chrome" then + tell application process "Google Chrome" + click menu item "New Window" of menu "File" of menu bar 1 + end tell + else + tell application "Google Chrome" to activate + end if end tell' ''' diff --git a/mut/bin/pnsh-nvim b/mut/bin/pnsh-nvim index 30d8508..f23fd6f 100755 --- a/mut/bin/pnsh-nvim +++ b/mut/bin/pnsh-nvim @@ -37,5 +37,5 @@ $" --volume=($env | default "/var/run" XDG_RUNTIME_DIR | get XDG_RUNTIME_DIR)/do --pnsh-docker-extra-args=$"($args)" --with-docker --docker-image=pionativedev.azurecr.io/pionative/pnsh-nvim - --docker-tag=latest + --docker-tag=darwin ) |
