blob: 6b88493335fe92248941bd0bfae256235ae5bed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Deployment
To build the production server config locally:
nix-build --attr system ./nixos.nix
To deploy manually after building:
nix-build --attr system ./nixos.nix
nix copy --to "ssh://root@simatime.com" ./result
# manually copy the final /nix/store/... path and:
ssh root@simatime.com sudo /nix/store/.../bin/switch-to-configuration switch
When that damn bug gets fixed, we could just do:
nix-deploy --to root@simatime.com \
--path $(nix-build --no-out-path ./nixos.nix)
|