Skip to content

Commit 91c8a02

Browse files
eapolinarioclaude
andcommitted
refactor(nixos): simplify switch target to run locally on NixOS machine
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 31a189b commit 91c8a02

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nixos/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
HOST ?= fusion-vm
2-
TARGET ?= eduardo@192.168.4.85
32
FLAKE_DIR = $(shell pwd)
43

54
.PHONY: switch deploy fmt help
65

7-
## switch: rebuild and switch the config on the target host (ssh)
6+
## switch: rebuild and switch the flake on this machine
87
switch:
9-
ssh $(TARGET) "cd ~/dotfiles/nixos && sudo nixos-rebuild switch --flake .#$(HOST)"
8+
sudo nixos-rebuild switch --flake .#$(HOST)
109

1110
## deploy: full nixos-anywhere install (first-time, wipes disk)
1211
deploy:

0 commit comments

Comments
 (0)