summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-15 03:15:58 -0800
committerFuwn <[email protected]>2025-02-15 03:15:58 -0800
commitedad8e751dbc78b0cfc63f926f58c88cb59cd774 (patch)
tree9d28a7f537c0eec873d59ee62e9a6676e53d16e7
parentNara: Add Google Drive Cask (diff)
downloadnixos-config-edad8e751dbc78b0cfc63f926f58c88cb59cd774.tar.xz
nixos-config-edad8e751dbc78b0cfc63f926f58c88cb59cd774.zip
justfile: Fix switch task
-rw-r--r--justfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/justfile b/justfile
index 05fecc3..e4ee898 100644
--- a/justfile
+++ b/justfile
@@ -16,10 +16,10 @@ darwin_action target action:
nix run nix-darwin -- {{action}} --flake .#{{target}}
switch target=hostname:
- @uname | \
- grep -q Darwin \
- && just darwin_action {{target}} switch \
- || just action {{target}} switch
+ case "$(uname)" in \
+ Darwin) just darwin_action {{target}} switch ;; \
+ *) just action {{target}} switch ;; \
+ esac
news user='ebisu':
rui home news --user {{user}} -- --impure