-
-
Save dezgeg/16463de26038c2bab59210993d273f12 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
{ config, pkgs, lib, ... }: | |
{ | |
boot.loader.grub.enable = true; | |
boot.loader.grub.version = 2; | |
boot.loader.grub.efiSupport = true; | |
boot.loader.grub.device = "nodev"; | |
boot.loader.efi.efiSysMountPoint = "/boot/efi"; | |
boot.loader.grub.efiInstallAsRemovable = true; | |
boot.initrd.availableKernelModules = [ "ahci" "pci_thunder_ecam" ]; | |
boot.kernelParams = [ "cma=0M" "biosdevname=0" "net.ifnames=0" "console=ttyAMA0" ]; | |
services.openssh.permitRootLogin = "yes"; | |
services.openssh.enable = true; | |
networking.firewall.enable = false; | |
networking.bonds.bond0 = { | |
mode = "802.3ad"; | |
interfaces = [ | |
"eth0" | |
"eth1" | |
]; | |
}; | |
services.mingetty.autologinUser = "root"; | |
users.users = { | |
root = { | |
openssh.authorizedKeys.keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXGTF/bWTG8jd/U6LEJh8vRhg+iQTGB9g98/WujgxpsUVkXHbni36un1IiObnncXAXFddeH5L7GX5KdrLZjg6elDX+9ebd2Y+TkqI7g4V/CDSqt4u2s4qA0u9USkWnplQtwY/F917MbVLCleLW0noPSbbvc1R5RwhFNwXuTvytNfA8eGORFSN30owYj5wg+7eo1oIzDN6t+kS4AaqMLbECPykbYPwXLVpyz1DEt6gDCk+LD/u822kexGUYaQH+RiUs6989oek7E7bF0Rbs1mYwT1pz1VJRFKYQsTHwi9UlD4ArKf1D/RGYar89hWQRTIrPNCJnEzYqdiN5HN04lLw/"]; | |
}; | |
}; | |
boot.kernelPackages = pkgs.linuxPackages_latest; | |
services.nixosManual.enable = false; | |
security.sudo.enable = true; | |
fileSystems = { | |
"/" = { | |
device = "/dev/sda2"; | |
fsType = "ext4"; | |
}; | |
"/boot/efi" = { | |
device = "/dev/sda1"; | |
fsType = "vfat"; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment