# for remote unlock
temp=$(mktemp -d)
install -d -m755 "$temp/etc/secrets/initrd"
ssh-keygen -t ed25519 -N "" -f $temp/etc/secrets/initrd/ssh_host_ed25519_key
# host key
install -d -m755 "$temp/etc/ssh"
ssh-keygen -t ed25519 -N "" -f $temp/etc/ssh/ssh_host_ed25519_key
# disk password
echo "password" > /tmp/password.key
# install
nix run github:nix-community/nixos-anywhere -- --extra-files "$temp" --disk-encryption-keys /tmp/password.key /tmp/password.key --flake .#ovhcloud root@<ip address>
# local update
nixos-rebuild switch --flake github:daniel-fahey/nixos-anywhere-examples#ovhcloud
# remote update (probably much slower)
nixos-rebuild switch --flake .#ovhcloud --target-host root@<ip address>
forked from nix-community/nixos-anywhere-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
daniel-fahey/nixos-anywhere-examples
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Nix 100.0%