Commit graph

94 commits

Author SHA1 Message Date
Johannes Spangenberg
58edeb3933
Fix prefixLength for gateway6 route (#73) 2021-05-03 23:32:42 -07:00
Pamplemousse
0fd9469d05
Update README.md for OVHcloud on Debian 10 (#72)
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
2021-05-03 23:28:14 -07:00
Robert Scott
69fa0226d3
Add basic NVMe support (#74)
* grubdev detection: also check for /dev/nvme0n1

* add nvme to boot.initrd.kernelModules
2021-05-03 23:21:50 -07:00
Lyderic Dutillieux
d2996e3e53
Updated README.md with OVHcloud test on Arch Linux (#69)
Added a section for OVHcloud.
2021-03-30 02:27:04 -07:00
5uy4n9
a034446dec
add Tencent Cloud Lighthouse (#68) 2021-03-12 04:36:23 -08:00
Bryan Bennett
9f6428761d
Rewrite README (#67)
Increase clarity of operation procedure,
explicitly state tested hosters & OS versions,
and switch to using semantic linefeeds.
2021-02-08 07:33:39 -08:00
mschwaig
bdfc7b6a8d
avoid using NIX_PATH in resulting hardware-configuration.nix (#65)
This makes the resulting hardware-configuration.nix usable from a system
that is a nix flake without having to replace that usage of NIX_PATH first.
2020-12-31 22:50:30 -08:00
Akshay Mankar
dfc6f222da
Prefer to if to '&&' (#64)
doNetConf check always true

Co-authored-by: Eric Litak <elitak@gmail.com>
2020-12-25 21:35:33 -08:00
Eric Litak
a688bfaa0a rewrite loopback namservers to 8.8.8.8 2020-12-10 14:29:38 -08:00
Eric Litak
8df82582c0 removing some cruft 2020-11-27 22:13:34 -08:00
Eric Litak
1f4ca1ba1a nameserver parsing fix 2020-11-24 14:54:19 -08:00
Eric Litak
10e8dfe80a xzcat dep check 2020-11-24 14:23:30 -08:00
Jonas Chevalier
f42e554a40
random fixes (#63)
* use the nameservers

That variable was being set, but not used

* fix shellcheck issues
2020-11-23 16:47:55 -08:00
Sridhar Ratnakumar
928f9e5e1d
Remove irrelevant words (#59)
reworded DO yaml preamble

Co-authored-by: Eric Litak <elitak@gmail.com>
2020-08-25 15:05:29 -07:00
DavHau
30441b1236
Improve providers fix dns (#58)
* remove digitalocean as default; fix digitalocean dns; update channels

fixes #53
fixes #49

* fix doNetConf check
2020-08-21 08:57:57 -07:00
Federico Rampazzo
e65ec1dba5
Add DO: Ubuntu 20.04 (LTS) x64 (#57)
The script was tested on Ubuntu 20.04 and it works just fine
2020-07-26 12:02:07 -07:00
Jasper Woudenberg
a5c9db03b6
Update Hetzner instructions (#56)
Resolves #48.
2020-07-19 10:44:53 -07:00
peeech
a78d378528
nixos-infect: curl -L to follow 301 redirect (#55) 2020-06-21 14:46:22 -07:00
jleeuwes
f5da2577dd
Debian 10 fixes (#51)
* Fix missing curl/wget not being detected

If `which curl` failed, a function `curl` would always be created, whether or not `wget` is present.
So `req curl || req wget` (or even `req curl`) would never trigger `ERROR: Missing both curl and wget`.

* Install curl on Debian

In newer versions of Debian, wget is not installed by default and neither is curl.
So install curl if wget is missing and apt-get is present.
Behavior on other platforms should stay the same with this change.
2020-04-05 13:31:17 -07:00
Chris Stryczynski
565204bc21
Works on hetzner cloud! (#47)
* Works on hetzner cloud!

* Update README.md
2020-02-23 06:10:46 -08:00
DavHau
613fa20813
improve authorized_keys parsing (#46) 2020-02-19 15:22:02 -08:00
Christopher Rosset
9198c51f05
readme typo fix (#45) 2020-02-17 20:07:53 -08:00
DavHau
d8512ed9d3
add LVM support (#44) 2020-02-13 17:04:27 -08:00
kosmonavtika
0c2eef5dbb use nixos version 19.09 (#42) 2019-11-12 13:14:32 -08:00
Danylo Hlynskyi
38fb735eab Make routes config explicit. (#39)
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-11 00:32:54 -07: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