Created
December 30, 2016 01:47
-
-
Save Mic92/b6562e64f59f5049995ce883896fb11f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nixos/configuration.nix | |
boot = { | |
initrd.network = { | |
enable = true; | |
ssh = { | |
enable = true; | |
port = 2222; | |
hostECDSAKey = /etc/nixos/secrets/initrd-ssh-key; | |
}; | |
postCommands = '' | |
echo "cryptsetup luksOpen --tries 99 /dev/sda2 root && killall cryptsetup" >> /root/.profile | |
ip addr add ${network.ipv6} dev eth0 | |
ip route add default via fe80::1 dev eth0 | |
''; | |
}; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment