summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-16 22:30:32 -0700
committerFuwn <[email protected]>2024-09-16 22:30:32 -0700
commit6e7e2f9dd873e45261704bb9eafdb99fd1579e97 (patch)
tree90e60f64d358e436d4c0cbe1a69bd711647ab07e
parentsecurity: disable audit (diff)
downloadnixos-config-6e7e2f9dd873e45261704bb9eafdb99fd1579e97.tar.xz
nixos-config-6e7e2f9dd873e45261704bb9eafdb99fd1579e97.zip
chore(just): replace complex conditionals with rui
-rw-r--r--justfile24
1 files changed, 2 insertions, 22 deletions
diff --git a/justfile b/justfile
index 63d0da5..91ecece 100644
--- a/justfile
+++ b/justfile
@@ -2,32 +2,12 @@ default:
@just --list
os hostname='kansai':
- #!/usr/bin/env sh
-
git add .
-
- if command -v doas &> /dev/null; then
- SUPERUSER_COMMAND=doas
- else
- SUPERUSER_COMMAND=sudo
- fi
-
- if ! command -v nh &> /dev/null; then
- $SUPERUSER_COMMAND nixos-rebuild switch --flake .#{{hostname}}
- else
- FLAKE="$(pwd)" nh os switch
- fi
+ rui os switch --hostname {{hostname}}
home user='ebisu':
- #!/usr/bin/env sh
-
git add .
-
- if ! command -v nh &> /dev/null; then
- home-manager switch --flake .#{{user}} --impure
- else
- FLAKE="$(pwd)" NIXPKGS_ALLOW_UNFREE=1 nh home switch -- --impure
- fi
+ rui home switch --user {{user}}
news user='ebisu':
home-manager news --flake .#{{user}}