Commit graph

116 commits

Author SHA1 Message Date
Jairo Llopis
318fc516d1
feat: respect old machine ssh host keys (#107)
When lustrating another machine, you usually are already connected by SSH. Thus, you usually already trusted that machine's keys.

With this patch, those keys are kept, so after booting into nixos, you still connect to the same trusted IP+Keys combination.

@moduon MT-904
2022-07-11 10:25:21 -07:00
Alex Wied
1b0c79cd46
feat(readme) Record successful installation on Ubuntu 22.04 (#105) 2022-07-11 10:24:22 -07:00
Michael Colicchia
e83b58ccfa
feat(readme) tested Ubuntu 20.04 at OVHcloud (#104) 2022-06-19 13:19:13 -07:00
Rhys
cbec4363cb
Update README.md for Ubuntu 22.04 on Vultr (#101)
* Update README.md for Ubuntu 22.04 on Vultr

* Update README.md to use User-Data on Vultr
2022-06-12 16:19:38 -07:00
Kid
fc470491a5
Update default nixpkgs version to 22.05 (#102) 2022-06-12 16:18:23 -07:00
Cabia Rangris
95c32c17ae
Added cockbox support and documentation (#103)
* Added required modules for Cockbox

* Added cockbox to the docs
2022-06-12 16:17:46 -07:00
Keith
90dbc4b073
Improve flexibility, enable pre-setting NIXOS_CONFIG, & NIXOS_LUSTRATE (#100)
* Improve flexibility, enable pre-setting of NIXOS_CONFIG, and NIXOS_LUSTRATE

* Added success/failure to table

* Use existing swap

* Use existing swap

* Check for exisitng Swap device

* typo fix

* typo fix
2022-04-20 01:17:21 -07:00
Vincent Bernat
d9012e22d3
Using sh instead of $SHELL (#96)
Nix install script should be parsed by a Bourne-like shell, like bash
or sh. If the user invokes the script using a Korn shell or a Z Shell,
the script won't work. Nix documentation says to use "sh".
2022-04-03 10:22:32 -07:00
igna
e649f34f79
feat: add galaxygate in hosters (#99) 2022-04-03 10:21:36 -07:00
~hocsyr-lonwep
c78693e44f
feat: add oracle ubuntu to tested list (#97) 2022-03-28 12:56:24 -07:00
Matthias Tafelmeier
36e19e3b30
infect: have swap usage optional (#91)
Doesn't work everywhere with swapon, e.g. osuosl openstack cluster.

Without swap it can succeed though, it's not a hard prerequisite for the
infection to take effect.
2022-01-03 09:26:23 -08:00
Kid
2ec52a0ede
Enable zramSwap.enable by default (#86) 2021-12-30 21:59:08 -08:00
Vincent Bernat
be0cbff9e0
Also check for /dev/xvda (Xen) (#88) 2021-12-30 21:58:42 -08:00
Siyuan Wang
e067a2db7b
chore: tested on aliyun ECS (#89) 2021-12-30 21:58:18 -08:00
Kid
1fa358ed0a
Update default nixpkgs version to 21.11 (#85)
* Update default nixpkgs version to 21.11

* Remove unnecessary `networking.firewall.allowPing` option

It is a default: https://search.nixos.org/options?channel=21.05&show=networking.firewall.allowPing&from=0&size=50&sort=relevance&type=packages&query=networking.firewall.allowPing
2021-12-03 10:53:33 -08:00
Xavier Vello
048ef96c7d
Update README for Debian 11 on Hetzner Cloud (#84) 2021-11-27 18:38:24 -08:00
Thomas Jost
343eecd900
Update README.md for OVHcloud on Debian 11 (#83) 2021-11-17 12:52:20 -08:00
asdfasdf
1e2ab19808
Add a search path /home/$SUDO_USER/ for ssh keys (#79) 2021-07-31 10:32:35 -07:00
José Albornoz
d4b99a21bf
Update default nix to latest stable 21.05 (#78) 2021-06-19 12:17:08 -07:00
ilian
f9dcc164a3
Add support for Oracle Cloud Infrastructure (#77)
* Check environment before making any changes

* Ignore missing dnf in checkEnv

* Add EFI support

* Generate correct file system type config

* Fix XFS tools build error on AArch64 by updating channel

* Add test results for Oracle Cloud Infrastructure

* Fix spacing
2021-06-09 13:45:06 -07:00
Teo Ljungberg
894d0ff67d
Fix spelling error of mmay -> may (#76) 2021-05-18 11:28:34 -07:00
asdfasdf
8a7527d796
Removed potentially misleading information (#75)
The information about OpenVZ might not be correct per https://github.com/deepfire/nixos-wiki/blob/master/Install%20NixOS%20as%20OpenVZ%20guest.page
2021-05-08 02:26:16 -07:00
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