Commit graph

71 commits

Author SHA1 Message Date
Danylo Hlynskyi
f562ed2b12 generate random password for root as initial configuration
Some cloud providers allow web console login (Hetzner Cloud, for example).
You can then login and fix network issues (if any).

This change generates a password for root, so it is 1 step easier to do.
2019-10-10 11:59:51 +02:00
Danylo Hlynskyi
ba58e54ee9 Make routes config explicit.
This helps Hetzner Cloud, which doesn't populate routes by
default and thus network doesn't work.

Fixes https://github.com/elitak/nixos-infect/issues/25
2019-10-10 11:28:39 +02:00
le Duc Banal
d28f8f9679 Update nixos-infect (#38)
Fix both issues cited in this [comment](https://github.com/elitak/nixos-infect/issues/18#issuecomment-508904427)
2019-07-07 10:09:47 -07:00
Marek Mahut
6c6e63594d Making swap sooner as dnf under DigitalOcean requires more memory (#36) 2019-05-10 19:42:20 -07:00
asymmetric
b95ff459a8 Use if rather than test before rebooting (#35)
* whitespace

* Use if rather than test before rebooting

When the -z returned false, the script would return its error code, 1,
resulting in a failure.
2019-05-05 11:23:09 -07:00
SRGOM
4f31db455e Update README.md 2019-05-04 12:05:20 -07:00
Lorenzo Manacorda
a009827712 add NO_REBOOT variable
Useful when nixos-infect is used within programs that manage the
machine's state, like nixops.
2019-04-21 05:41:52 -07:00
asymmetric
2d3b1dffa9 nixos 18.09 -> 19.03
Bump to latest release.
2019-04-19 16:44:08 -07:00
obadz
dc533ec3c9 Fix Startup Script issue on Vultr 2018-12-08 17:16:07 -08:00
obadz
5596ad166a Support for Vultr 2018-12-08 02:14:22 -08:00
obadz
20853bf8d8 nixos 18.03 -> 18.09 2018-12-08 02:14:22 -08:00
Eric Litak
de3ef47941 added LICENSE 2018-10-24 07:54:29 -07:00
Danylo Hlynskyi
1f8634dd48 more robust removeSwap
During my nixos-infect tests I have sometimes canceled infection in the middle.
Rerun of nixos-infect failed because there were some old swap files, which
were no longer available as swap devices.

`swapoff -a` will handle this for us (we are going reboot anyway)
2018-07-12 15:04:17 -07:00
Danylo Hlynskyi
89b92f3de1 Fix hardcode of eth0 in several places
The problem was that some VPS (from GigaCloud provider, Ukraine) provided `ens3` interface
name, but after infection it was renamed to `eth0` via udev rules.
2018-07-12 15:02:59 -07:00
ibrahim Sağıroğlu
914dad1039 fix eth1 rule (#17)
* fix eth1 rule

* gateway6 without eth1

* actually use eth0
2018-07-12 15:02:14 -07:00
Eric Litak
520f3973ac
Merge pull request #26 from obadz/dhcp
disable dhcp
2018-06-09 18:38:00 -07:00
obadz
82d0ebb06e disable dhcp 2018-06-10 00:25:27 +01:00
Eric Litak
5d08c81d09 one last update to 18.03 2018-04-04 15:28:27 -07:00
Eric Litak
d69e8b73bb suggest 18.03 in readme to match config gen 2018-04-04 08:02:22 -07:00
Eric Litak
71c326e7a8
Merge pull request #22 from obadz/patch-4
missed one more usage of the old configuration keys
2018-03-25 07:43:28 -07:00
obadz
f657821bb5
missed one more usage of the old configuration keys 2018-03-24 16:29:49 +00:00
Eric Litak
87920dc1ce
Merge pull request #20 from obadz/patch-2
update ip4/ip6 configuration keys per 18.03 warnings
2018-03-23 18:27:41 -07:00
Eric Litak
28191523c6
Merge pull request #21 from obadz/patch-3
debian no longer has curl + 17.09 has been stable for a while
2018-03-23 18:26:49 -07:00
obadz
871e78ce16
debian no longer has curl + 17.09 has been stable for a while 2018-03-23 21:22:18 +00:00
obadz
6f696404e9
update ip4/ip6 configuration keys per 18.03 warnings 2018-03-23 20:37:49 +00:00
Eric Litak
769dce60c9 Merge pull request #15 from zimbatm/extra-imports
NIXOS_IMPORT option
2017-04-18 17:36:36 -07:00
zimbatm
5d8c2ed208 NIXOS_IMPORT option
Allow to boot and configure the machine in one go
2017-04-19 00:25:50 +01:00
Eric Litak
a025094b20 Merge pull request #14 from zimbatm/shellcheck
Shellcheck
2017-04-15 12:32:07 -07:00
zimbatm
89c2c6b7f4 disable invalid shellcheck warnings 2017-04-15 17:59:26 +01:00
zimbatm
8f31ebc55d SC2046: Quote this to prevent word splitting 2017-04-15 17:59:26 +01:00
zimbatm
e745ee3aa2 don't use bash arrays for values 2017-04-15 17:59:26 +01:00
zimbatm
9c0a833bda SC2006: Use $(STATEMENT) instead of legacy STATEMENT 2017-04-15 17:59:26 +01:00
zimbatm
3bd6fe9352 SC2086: Double quote to prevent globbing and word splitting 2017-04-15 17:59:26 +01:00
zimbatm
ff398f6447 SC2068: Double quote array expansions to avoid re-splitting elements. 2017-04-15 17:59:26 +01:00
Eric Litak
673c70f45c Merge pull request #13 from np/patch-1
Revert the `users.users.root` change
2017-04-11 16:29:24 -07:00
Nicolas Pouillard
ffb0e964c3 Revert the users.users.root change 2017-04-11 13:43:59 +02:00
Eric Litak
9d8dff9382 Merge pull request #12 from mmai/master
optional eth1, works on OVH VPS
2017-04-10 09:24:10 -07:00
Henri Bourcereau
3926cea21a optional eth1, works on OVH VPS 2017-04-10 17:50:09 +02:00
Eric Litak
49f9184636 Merge pull request #11 from obadz/nixos-17.03
nixos: 16.09 -> 17.03
2017-04-02 02:04:15 -07:00
obadz
04f90f5285 nixos: 16.09 -> 17.03 2017-04-02 09:51:28 +01:00
Eric Litak
75342d0e38 Merge pull request #10 from obadz/swap-cleanup
Cleanup Swap files & add README.md
2017-03-12 14:36:02 -07:00
obadz
2e513bee28 move doc into README.md
(and modify example user-data to include a NIX_CHANNEL version)
2017-03-12 21:24:45 +00:00
obadz
8c9034e579 remove swap partitions before rebooting.
Should help keep /old-root a bit smaller…
2017-03-04 15:23:24 +00:00
Eric Litak
9e1c0fdd42 nonfunctional fixes 2017-02-16 18:51:05 -08:00
Eric Litak
da8f61d2ff fix depchecking, skip conf regen, no more -x 2017-02-14 01:25:42 -08:00
Eric Litak
c0b008b0ee allow missing ip6 info 2017-02-14 00:37:47 -08:00
Eric Litak
0b48e18a3a more refactoring, curl fallback to wget 2017-02-14 00:18:59 -08:00
Eric Litak
cad9b43b69 prepareEnv,checkEnv refactor; other tiny fixes 2017-02-13 17:54:50 -08:00
Eric Litak
7c2f3e8e2d Merge pull request #9 from danbst/hetzner
support Hetzner vServer
2017-01-24 16:47:50 -08:00
Данило Глинський (Danylo Hlynskyi)
cb40c94d58 support Hetzner vServer
This tweaks nixos-infect to be allow infecting some Hetzner servers.
Also, add some fallbacks (useful for debugging new backends)
2017-01-25 01:39:15 +02:00