From 57353c3da0c7bf8d7997303f8679127dfd20dfb0 Mon Sep 17 00:00:00 2001 From: joy Date: Sat, 5 Oct 2024 02:26:34 +0200 Subject: [PATCH] rebuild for phone --- hosts/phone/default.nix | 1 + modules/apps/home/zsh/scripts/rebuild.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/hosts/phone/default.nix b/hosts/phone/default.nix index cf5d79c..ba94964 100644 --- a/hosts/phone/default.nix +++ b/hosts/phone/default.nix @@ -1,6 +1,7 @@ {pkgs, ...}: { environment.packages = with pkgs; [ vim + hostname zsh fish font-awesome diff --git a/modules/apps/home/zsh/scripts/rebuild.sh b/modules/apps/home/zsh/scripts/rebuild.sh index 11d65a3..104d264 100755 --- a/modules/apps/home/zsh/scripts/rebuild.sh +++ b/modules/apps/home/zsh/scripts/rebuild.sh @@ -12,6 +12,8 @@ if echo "$hostname" | grep -q 'desktop'; then sudo nixos-rebuild switch --flake ~/nix/#desktop elif echo "$hostname" | grep -q 'laptop'; then sudo nixos-rebuild switch --flake ~/nix/#laptop +elif echo "$hostname" | grep -q 'localhost'; then + nix-on-droid switch --flake ~/nix fi cd "$current_dir"