···2626 nix flake update
27272828install:
2929- nixos-generate-config --no-filesystems --show-hardware-config > 'hosts/${host}/hardware-configuration.nix'
3030- git add . && git diff --staged
3129 # This consumes significant memory on the live USB because dependencies are
3230 # downloaded to tmpfs. The configuration must be small, or the machine must
3331 # have a lot of RAM.
···11-# Do not modify this file! It was generated by ‘nixos-generate-config’
22-# and may be overwritten by future invocations. Please make changes
33-# to /etc/nixos/configuration.nix instead.
44-{ config, lib, pkgs, modulesPath, ... }:
55-66-{
77- imports =
88- [ (modulesPath + "/profiles/qemu-guest.nix")
99- ];
1010-1111- boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "usbhid" "usb_storage" "sr_mod" ];
1212- boot.initrd.kernelModules = [ ];
1313- boot.kernelModules = [ ];
1414- boot.extraModulePackages = [ ];
1515-1616- # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
1717- # (the default) this is the recommended approach. When using systemd-networkd it's
1818- # still possible to use this option, but it's recommended to use it in conjunction
1919- # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
2020- networking.useDHCP = lib.mkDefault true;
2121- # networking.interfaces.enp0s1.useDHCP = lib.mkDefault true;
2222-2323- nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
2424-}
···11-# Do not modify this file! It was generated by ‘nixos-generate-config’
22-# and may be overwritten by future invocations. Please make changes
33-# to /etc/nixos/configuration.nix instead.
44-{ config, lib, pkgs, modulesPath, ... }:
55-66-{
77- imports =
88- [ (modulesPath + "/installer/scan/not-detected.nix")
99- ];
1010-1111- boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" ];
1212- boot.initrd.kernelModules = [ ];
1313- boot.kernelModules = [ "kvm-amd" ];
1414- boot.extraModulePackages = [ ];
1515-1616- # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
1717- # (the default) this is the recommended approach. When using systemd-networkd it's
1818- # still possible to use this option, but it's recommended to use it in conjunction
1919- # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
2020- networking.useDHCP = lib.mkDefault true;
2121-2222- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2323- hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2424-}