From 6e7e2f9dd873e45261704bb9eafdb99fd1579e97 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 16 Sep 2024 22:30:32 -0700 Subject: chore(just): replace complex conditionals with rui --- justfile | 24 ++---------------------- 1 file 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}} -- cgit v1.2.3