Skip to content

Instantly share code, notes, and snippets.

@ivan
Created May 17, 2019 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivan/46cd01e15f8208e5f7d1d28da6652987 to your computer and use it in GitHub Desktop.
Save ivan/46cd01e15f8208e5f7d1d28da6652987 to your computer and use it in GitHub Desktop.
import ./kexec-installer.nix {
extraConfig = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
tmux
zsh
zsh-autosuggestions
killall
acl
htop
lsof
pv
lshw
pciutils # for lspci
gptfdisk # for gdisk
binutils # for strings
testdisk # useful for repairing boot problems
gptfdisk
ddrescue
ccrypt
cryptsetup # needed for dm-crypt volumes
mkpasswd # for generating password files
# Some text editors.
nano
# Hardware-related tools.
sdparm
hdparm
smartmontools # for diagnosing hard disks
pciutils
];
services.openssh = {
enable = true;
startWhenNeeded = true;
};
users.extraUsers.root.openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqkYCf0Y7VDg82itkK5Km+xbJVtgURVxhBKbTzVXR0azn+vLx1t53Z+MnH/+Y0yvVNSMnuNfJvmFDnInB34j1hYSCqA2pjA7dK9NE91/f56eDtVF8snSOj/wXsnm3ec1XLyyPr6NCGLOgx/6orowvSElMfTD/6TlIdjGYwQmUNJF0aJiPWUxlLmJgvEfYdPRqqghu0xJN7DUhz+xwONgsMQH3BqE423oH/pUE7WVkG3tK5o7zcCF329IsFAuKl07GKxyA0dTpgGXNZkDmAyJvcr4G6ROsNamSzuJTkghbsVTCGZZe9+e4hwQYzNv8NIZaKa69ROI/s5f2HJl9ZI/fx at@ra
" ];
networking = {
hostName = "kexec-nixos-install";
firewall.allowedTCPPorts = [ 22 ];
dhcpcd.enable = true;
};
boot.supportedFilesystems = [ "vfat" "xfs" "zfs" ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment