rebuild for phone

This commit is contained in:
joy 2024-10-05 02:26:34 +02:00
parent bf0acbb9d7
commit 57353c3da0
2 changed files with 3 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.packages = with pkgs; [ environment.packages = with pkgs; [
vim vim
hostname
zsh zsh
fish fish
font-awesome font-awesome

View file

@ -12,6 +12,8 @@ if echo "$hostname" | grep -q 'desktop'; then
sudo nixos-rebuild switch --flake ~/nix/#desktop sudo nixos-rebuild switch --flake ~/nix/#desktop
elif echo "$hostname" | grep -q 'laptop'; then elif echo "$hostname" | grep -q 'laptop'; then
sudo nixos-rebuild switch --flake ~/nix/#laptop sudo nixos-rebuild switch --flake ~/nix/#laptop
elif echo "$hostname" | grep -q 'localhost'; then
nix-on-droid switch --flake ~/nix
fi fi
cd "$current_dir" cd "$current_dir"