Commit Graph

121 Commits

Author SHA1 Message Date
Jörg Thalheim
809413aad5 allow to pass nix options 2023-01-18 15:03:59 +01:00
bors[bot]
32510a7cdd
Merge #43
43: CI r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-18 11:19:39 +00:00
Jörg Thalheim
b28ec1bf61 add missing dependencies 2023-01-18 12:19:14 +01:00
bors[bot]
524a0c952b
Merge #38
38: also check cpu architecture r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-17 22:06:48 +00:00
bors[bot]
73ecd2e4e9
Merge #40
40: disable pseudo tty allocation in ssh r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-17 22:06:03 +00:00
Jörg Thalheim
d2f7012d1d expose nixos-remote tools in devshell 2023-01-17 16:32:46 +01:00
Jörg Thalheim
d467467e1a disable pseudo tty allocation in ssh
This will get rid of pseudo tty warnings.
2023-01-17 16:32:06 +01:00
Jörg Thalheim
d1f75c6642 detect nixos installer
This requires nixos unstable
2023-01-17 16:30:03 +01:00
Jörg Thalheim
eebada15ea also check cpu architecture 2023-01-17 16:23:58 +01:00
phaer
b83a2ab4a6 fix maybesudo quotation
this specific form did not work for me on machines without sudo:

```
+ '' rm -rf /root/kexec
-bash: line 2: : command not found
```
2023-01-15 23:57:32 +01:00
bors[bot]
75c85709fe
Merge #36
36: run nix copy --substitute-on-destination by default r=Mic92 a=phaer



Co-authored-by: phaer <hello@phaer.org>
2023-01-15 19:44:10 +00:00
phaer
89f64e4f21 default to nix copy --substitute-on-destination 2023-01-15 19:27:31 +01:00
phaer
f44e1b2070 extra-files: use rsync -p, -FF
After removing -a in #15, remote extra files are implictly chowned
according to the remote umask. So we (re-)add --perms to apply local
file permissions remotely as this should mostly be expected behavior.

The second -F disables uploading the .rsync-filter file itself if it exists.
2023-01-15 13:03:23 +01:00
Jörg Thalheim
2179012ece perform reboot in the background
This allows the user to monitor reboot happens from a script and run
further actions after it comes back.
2023-01-12 11:53:30 +01:00
bors[bot]
61a3eaa8db
Merge #30
30: fix command check when gathering facts r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-12 08:28:59 +00:00
Jörg Thalheim
351a6ba1f0 fix command check when gathering facts 2023-01-12 09:24:28 +01:00
Ilan Joselevich
e2d1a946b1 treewide: add formatting via treefmt 2023-01-12 04:40:53 +02:00
Ilan Joselevich
4d04a9dc93 nixos-remote.sh: add -L/--print-build-logs flag 2023-01-12 01:04:31 +02:00
Ilan Joselevich
4850438135 nixos-remote.sh: don't create symlink in dir 2023-01-12 01:04:31 +02:00
Ilan Joselevich
f18629c159
nix: refactor and start using flake-parts 2023-01-11 00:55:53 +02:00
Ilan Joselevich
52e7ab3910
Use writeShellApplication for packaging 2023-01-10 23:05:47 +02:00