Jörg Thalheim
563b8191c2
add --from option
2023-01-24 13:36:39 +01:00
bors[bot]
b9b920844e
Merge #46
...
46: handle error case better when facts return no results back r=Mic92 a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-22 21:14:25 +00:00
Jörg Thalheim
4ea8c99a27
bors.toml: update list
2023-01-22 22:14:00 +01:00
bors[bot]
6188fdf227
Merge #48
...
48: use snake_case for variable names r=phaer a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-22 16:38:32 +00:00
Jörg Thalheim
2b7470b581
use snake_case for variable names
2023-01-22 13:29:50 +01:00
Jörg Thalheim
2f7c1a0654
apply nix fmt
2023-01-22 13:13:20 +01:00
Jörg Thalheim
87fd12fb84
flake.lock: Update
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/66add2cd9edab96f5e87477229772bf2b3ca513a' (2022-12-08)
→ 'github:nix-community/disko/e1eba38e8ea3ee6ca8ffef57668d4a37fff19ca4' (2023-01-19)
• Updated input 'nixos-images':
'github:nix-community/nixos-images/b14097667f2a9889083d6401ba468b046b2b52f1' (2022-12-23)
→ 'github:nix-community/nixos-images/acbbb3494fdf4d7f8f8e8832beeab9c448563e9b' (2023-01-19)
• Updated input 'nixos-images/nixos-2211':
'github:NixOS/nixpkgs/eabc38219184cc3e04a974fe31857d8e0eac098d' (2022-08-02)
→ 'github:NixOS/nixpkgs/f664029d68acdffe8d86e98a295b2d8303369353' (2023-01-18)
• Updated input 'nixos-images/nixos-unstable':
'github:NixOS/nixpkgs/3c6d63d22ca8b57adc4120f7c1ea5262925c8c2d' (2022-12-20)
→ 'github:NixOS/nixpkgs/8fc3a1dcc98d3603221d4afd239e666eeedb6141' (2023-01-17)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/6bc6f77cb171a74001033d94f17f49043a9f1804' (2022-12-09)
→ 'github:nixos/nixpkgs/cfb43ad7b941d9c3606fb35d91228da7ebddbfc5' (2023-01-20)
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/6717065d6a432bc3f5b827007ad959e6032d5856' (2023-01-05)
→ 'github:numtide/treefmt-nix/c117283f7482b99a89de0d6ae4b77318ad283294' (2023-01-21)
2023-01-22 13:13:20 +01:00
Jörg Thalheim
92e0ef6bf2
handle error case better when facts return no results back
2023-01-22 09:57:54 +01:00
bors[bot]
22d454d003
Merge #39
...
39: detect nixos installer r=Mic92 a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-19 15:00:05 +00:00
bors[bot]
1ce1e0ebcc
Merge #44
...
44: allow to pass nix options r=Mic92 a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-19 14:53:18 +00:00
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
bors[bot]
f1052a76be
Merge #41
...
41: expose nixos-remote tools in devshell + envrc r=Mic92 a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-17 22:05:11 +00:00
Jörg Thalheim
d2f7012d1d
expose nixos-remote tools in devshell
2023-01-17 16:32:46 +01:00
Jörg Thalheim
b5230b8640
add envrc
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
bors[bot]
35db719ca0
Merge #37
...
37: fix maybesudo quotation r=Mic92 a=phaer
Co-authored-by: phaer <hello@phaer.org>
2023-01-16 09:36:44 +00: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
bors[bot]
9885361b5f
Merge #35
...
35: extra-files: use rsync -p, -FF r=phaer a=phaer
Co-authored-by: phaer <hello@phaer.org>
2023-01-15 12:12:39 +00: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
bors[bot]
066d9d84ec
Merge #33
...
33: perform reboot in the background r=Mic92 a=Mic92
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-12 10:59:56 +00: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
bors[bot]
8288f02ce8
Merge #32
...
32: treewide: add formatting via treefmt r=Mic92 a=Kranzes
Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>
2023-01-12 08:26:15 +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
bors[bot]
75c182ae90
Merge #31
...
31: README: sync with command options r=Mic92 a=Kranzes
Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>
2023-01-11 23:52:09 +00:00
Ilan Joselevich
a5b080a799
README: sync with command options
2023-01-12 01:25:14 +02:00
bors[bot]
b4a725a80b
Merge #26
...
26: nixos-remote.sh: don't create symlink in dir & add --print-build-logs/-L flag r=Mic92 a=Kranzes
Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>
2023-01-11 23:07:51 +00:00
Jörg Thalheim
ed7b973d7b
Ci ( #29 )
...
* allow bors to push
* disable linear history enforcement for bors
2023-01-11 23:07:10 +00: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
Jörg Thalheim
0e1de25029
allow bors to push ( #28 )
2023-01-11 23:01:58 +00:00
Jörg Thalheim
9851d04597
Merge pull request #27 from numtide/ci
...
undo require bors as required check
2023-01-11 23:56:27 +01:00
Jörg Thalheim
623ba95ed9
undo require bors as required check
...
This stops bors from merging things... we need a better strategy
here (maybe a check that only runs in staging?)
2023-01-11 23:54:17 +01:00
Lassulus
b62a4386af
Merge pull request #25 from numtide/repo-settings
...
add repo settings
2023-01-11 18:15:43 +01:00
bors[bot]
9d287108e7
Merge #24
...
24: README: suggest the use of the packaged script r=zimbatm a=Kranzes
Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>
2023-01-11 16:52:39 +00:00
zimbatm
e982b2d444
add repo settings
2023-01-11 17:21:35 +01:00
Jörg Thalheim
7cb26cb756
Merge pull request #23 from Kranzes/flake-parts-refactor
...
nix: refactor and start using flake-parts
2023-01-11 11:53:59 +01:00
Ilan Joselevich
20ec3cb645
README: suggest the use of the packaged script
...
Without this change users will be running the script directly and might encounter errors as they are using the script unpackaged without its dependencies.
2023-01-11 01:04:57 +02:00
Ilan Joselevich
f18629c159
nix: refactor and start using flake-parts
2023-01-11 00:55:53 +02:00
bors[bot]
e518219f45
Merge #22
...
22: Use writeShellApplication for packaging r=Mic92 a=Kranzes
Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>
2023-01-10 22:15:39 +00:00
Ilan Joselevich
52e7ab3910
Use writeShellApplication for packaging
2023-01-10 23:05:47 +02:00