forked from mirrors_public/oddlama_nix-config
fix: it's a good idea to also add the generation to the profile...
This commit is contained in:
parent
aed03a5c2b
commit
c9f0f1a026
3 changed files with 52 additions and 52 deletions
|
@ -93,7 +93,7 @@
|
|||
for host in "''${HOSTS[@]}"; do
|
||||
store_path="''${TOPLEVEL_STORE_PATHS["$host"]}"
|
||||
echo "[1;36m Copying [m➡️ [34m$host[m"
|
||||
nix copy --to "ssh-ng://$host" "$store_path"
|
||||
nix copy --to "ssh://$host" "$store_path"
|
||||
time_next
|
||||
echo "[1;32m Copied [m✅ [34m$host[m [90min ''${T_LAST}s[m"
|
||||
done
|
||||
|
@ -101,8 +101,8 @@
|
|||
for host in "''${HOSTS[@]}"; do
|
||||
store_path="''${TOPLEVEL_STORE_PATHS["$host"]}"
|
||||
echo "[1;36m Applying [m⚙️ [34m$host[m"
|
||||
ssh "$host" -- /run/current-system/sw/bin/nix-env --profile /nix/var/nix/profiles/system --set "$store_path"
|
||||
ssh "$host" -- "$store_path"/bin/switch-to-configuration "$ACTION"
|
||||
nix copy --to "ssh-ng://$host" "$store_path"
|
||||
time_next
|
||||
echo "[1;32m Applied [m✅ [34m$host[m [90min ''${T_LAST}s[m"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue