File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,25 +12,25 @@ ifneq (${HOSTNAME},${WORK_HOSTNAME})
1212define homeTarget
1313$(eval
1414#: Builds the target home's activation script.
15- home/$(1 ) @$(2 ) : .roots/home/$(1 ) @$(2 ) ;
15+ home/$(1 ) @$(2 ) : .roots/home/$(1 ) @$(2 )
1616)
1717endef
1818
1919define homeHostTarget
2020$(eval
2121#: Builds the target host's activation script.
22- host/$(2 ) : home/$(1 ) @$(2 ) ;
22+ host/$(2 ) : home/$(1 ) @$(2 )
2323)
2424endef
2525
2626define installHomeTarget
2727$(eval
2828#: Activates configuration over SSH.
2929install/$(2 ) :: home/$(1 ) @$(2 )
30- install/$(2 ) :: DRV=$$(shell readlink -f .roots/home/$(1 ) @$(2 ) )
3130install/$(2 ) ::
32- nix-copy-closure --to $(1 ) @$(2 ) $${DRV}
33- ssh root@nas 'nix-env --profile /nix/var/nix/profiles/per-user/$(1 ) /home-manager --set "$${DRV}" && "$${DRV}/activate" --driver-version 1'
31+ export DRV=$$(shell readlink -f .roots/home/$(1 ) @$(2 ) ) ; \
32+ nix-copy-closure --to $(1 ) @$(2 ) $$$${DRV}; \
33+ ssh $(1 ) @$(2 ) 'nix-env --profile /nix/var/nix/profiles/per-user/$(1 ) /home-manager --set '$$$${DRV}' && '$$$${DRV}/activate" --driver-version 1"
3434)
3535endef
3636
You can’t perform that action at this time.
0 commit comments