Try hetzner
This commit is contained in:
parent
c81c5df0ea
commit
fc743f98a7
1 changed files with 15 additions and 37 deletions
|
@ -1,42 +1,20 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{
|
{
|
||||||
config,
|
fileSystems = {
|
||||||
lib,
|
"/" = {
|
||||||
modulesPath,
|
device = "/dev/disk/by-label/nixos";
|
||||||
...
|
fsType = "ext4";
|
||||||
}: {
|
};
|
||||||
imports = [
|
"/boot" = {
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
device = "/dev/disk/by-label/boot";
|
||||||
];
|
fsType = "ext4";
|
||||||
|
};
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "ehci_pci" "usbhid" "usb_storage" "sd_mod" "sr_mod"];
|
|
||||||
boot.initrd.kernelModules = [];
|
|
||||||
boot.kernelModules = ["kvm-amd"];
|
|
||||||
boot.extraModulePackages = [];
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/f54eef44-4680-4537-9040-3a148ed61fab";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
boot = {
|
||||||
device = "/dev/disk/by-uuid/ECDF-096A";
|
loader.grub = {
|
||||||
fsType = "vfat";
|
enable = true;
|
||||||
options = ["fmask=0077" "dmask=0077"];
|
device = "/dev/sda";
|
||||||
|
};
|
||||||
|
initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" "ext4"];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue