default.nix (1359B)
1 { config, lib, pkgs, modulesPath, ... }: 2 3 { 4 imports = 5 [ (modulesPath + "/profiles/qemu-guest.nix") 6 ]; 7 8 boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ]; 9 boot.initrd.kernelModules = [ ]; 10 boot.kernelModules = [ ]; 11 boot.kernelParams = [ "console=ttyS0,19200n8" ]; 12 boot.extraModulePackages = [ ]; 13 boot.loader.grub.extraConfig = '' 14 serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1; 15 terminal_input serial; 16 terminal_output serial 17 ''; 18 19 boot.loader.grub.forceInstall = true; 20 boot.loader.grub.device = "nodev"; 21 boot.loader.timeout = 10; 22 23 fileSystems."/" = 24 { device = "/dev/disk/by-uuid/1e609a52-89b2-434d-8062-68e4c957e01a"; 25 fsType = "ext4"; 26 }; 27 28 swapDevices = 29 [ { device = "/dev/disk/by-uuid/f1408ea6-59a0-11ed-bc9d-525400000001"; } 30 ]; 31 32 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 33 # (the default) this is the recommended approach. When using systemd-networkd it's 34 # still possible to use this option, but it's recommended to use it in conjunction 35 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 36 networking.useDHCP = lib.mkDefault true; 37 # networking.interfaces.enp0s5.useDHCP = lib.mkDefault true; 38 39 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 40 }