mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-12-23 08:38:28 +03:00
commit
49f9184636
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ cat and EOF in the Digital Ocean Web UI (or HTTP API):
|
||||||
#cloud-config
|
#cloud-config
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-16.09 bash 2>&1 | tee /tmp/infect.log
|
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-17.03 bash 2>&1 | tee /tmp/infect.log
|
||||||
```
|
```
|
||||||
Potential tweaks:
|
Potential tweaks:
|
||||||
- `/etc/nixos/{,hardware-}configuration.nix`: rudimentary mostly static config
|
- `/etc/nixos/{,hardware-}configuration.nix`: rudimentary mostly static config
|
||||||
|
|
|
@ -189,7 +189,7 @@ infect() {
|
||||||
|
|
||||||
source ~/.nix-profile/etc/profile.d/nix.sh
|
source ~/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
|
||||||
[[ -z "$NIX_CHANNEL" ]] && NIX_CHANNEL="nixos-16.09"
|
[[ -z "$NIX_CHANNEL" ]] && NIX_CHANNEL="nixos-17.03"
|
||||||
nix-channel --remove nixpkgs
|
nix-channel --remove nixpkgs
|
||||||
nix-channel --add "https://nixos.org/channels/$NIX_CHANNEL" nixos
|
nix-channel --add "https://nixos.org/channels/$NIX_CHANNEL" nixos
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
|
|
Loading…
Reference in a new issue