Alain Lehmann
37583c7afa
use pgrep for stopping utm
2024-12-01 00:19:35 +01:00
Alain Lehmann
6e5fd49d57
update nixosInstallerImage to 24.11
2024-11-30 23:20:46 +01:00
Alain Lehmann
b13508c41f
update nixpkgs to 24.11
2024-11-30 23:18:58 +01:00
Alain Lehmann
b2807740d8
use nixos-anywhere from nixpkgs
2024-10-11 12:58:32 +02:00
Alain Lehmann
e43cd6ffd1
improve documentation uf utmConfiguration
2024-10-11 01:57:26 +02:00
Alain Lehmann
e603f75ca5
replace nixosIP with 'utmConfiguration ip'
2024-10-11 01:38:31 +02:00
Alain Lehmann
be8ffb01f3
remove unused code/comments
2024-10-11 01:26:42 +02:00
Alain Lehmann
140ee090f5
add UTM_CONFIG environment variable for VM config
...
this allows to define a custom nix configuration file
to set the UTM VM configuration parameters. The content
of this nix file is merged with the config.plist of the VM.
The merging is done using json representation.
2024-10-11 01:15:54 +02:00
Alain Lehmann
3a57708f4e
update flake lock: nixpkgs & nixos-anywhere
2024-10-10 22:41:03 +02:00
Alain Lehmann
36025d5620
disable container for nix-flake-show
2024-08-01 17:46:56 +02:00
Alain Lehmann
db531efd9c
update nixpkgs/utm versions
2024-08-01 17:23:15 +02:00
Alain Lehmann
e6032ebfdd
allow for additional nix options
2023-10-19 00:09:28 +02:00
Alain Lehmann
b8ed514d24
add fallback to copy flake manually
2023-10-16 23:35:25 +02:00
Alain Lehmann
9e72f88c5f
reduce inputs footprint
2023-10-16 22:45:28 +02:00
Alain Lehmann
6cd2124719
add command to redeploy vm
2023-10-16 22:44:19 +02:00
Alain Lehmann
6ca2bee067
sshNixos starts the VM if necessary
2023-10-15 23:39:41 +02:00
Alain Lehmann
a6e9828e0a
reduce logging verbosity
2023-10-15 23:29:10 +02:00
Alain Lehmann
5f20067c2a
include flake default template
2023-10-15 23:11:53 +02:00
Alain Lehmann
54f4b0cbbc
improve robustness of nixosCmd
2023-10-15 22:24:00 +02:00
Alain Lehmann
f4b93e59c7
improve logging verbosity
2023-10-15 22:04:40 +02:00
Alain Lehmann
2b2cb1d48a
improve example configuration
2023-10-15 21:59:51 +02:00
Alain Lehmann
7613aa7822
move nixosConfiguration creation to example
2023-10-15 21:46:33 +02:00
Alain Lehmann
71234443a5
move configuration into example folder
2023-10-15 21:27:30 +02:00
Alain Lehmann
0b2d1c94e6
improve validation and tracing output
2023-10-15 21:18:56 +02:00
Alain Lehmann
45fad72c58
make nixosIP more robust
2023-10-15 20:01:03 +02:00
Alain Lehmann
65491b9311
improve diagnostic output
2023-10-15 19:51:21 +02:00
Alain Lehmann
443d76ffba
ensure error propagates if VM_NAME not set
2023-10-15 19:41:17 +02:00
Alain Lehmann
28318c71c5
rename NIXOS_NAME => VM_NAME
2023-10-15 19:40:46 +02:00
Alain Lehmann
6e6fa1f300
generate adhoc ssh key for installation
2023-10-15 19:26:12 +02:00
Alain Lehmann
59d63eeaed
fix killUTM for pid with leading space
2023-10-15 19:25:47 +02:00
Alain Lehmann
29270b8e10
isolate initial credential setting
2023-10-15 18:53:10 +02:00
Alain Lehmann
eccaa631df
create VM completly with setupVM.osa
2023-10-15 18:08:02 +02:00
Alain Lehmann
41c9a0cb5a
create disk via setupVM.osa
2023-10-15 17:04:21 +02:00
Alain Lehmann
6886b9a238
fix nixosIP: remove all leading zero in mac
2023-10-15 16:47:26 +02:00
Alain Lehmann
ce6397b224
define mac addr via osascript
2023-10-15 16:44:45 +02:00
Alain Lehmann
90935b359d
addIso entry instead of updating
2023-10-15 16:23:13 +02:00
Alain Lehmann
67f0743982
make nixosCreate properly selfcontained
2023-10-09 22:49:23 +02:00
Alain Lehmann
e70599b0b9
improve robustness
2023-10-09 22:39:45 +02:00
Alain Lehmann
3b87d62212
remove old known_host key after nixos-anywhere build
2023-10-09 21:38:20 +02:00
Alain Lehmann
24850c9322
disable host key checking for local vm
2023-10-07 02:21:55 +02:00
Alain Lehmann
b2f2d2c774
automate setup process of utm nixos vm
...
- use proper disk image format (current 10G)
- change nixosIP to use mac addr => arp information
- add nixos-anywhere/nixos/disko configuration
- add script to remove iso to avoid boot order problems
2023-10-07 02:14:36 +02:00
Alain Lehmann
5af1292f42
automate starting the nixos installer
2023-10-06 23:03:45 +02:00
Alain Lehmann
cc8b78276c
initial draft
2023-10-06 21:43:38 +02:00