diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2026-08-25 15:23:30 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2026-08-25 15:23:30 -0600 |
| commit | 3fb6b1f841bfae880375f6cf5bf7872c67913e8d (patch) | |
| tree | 2879404bb9f7de3062601630d06069755c3c3694 /machines/apollo/hardware-configuration.nix | |
| parent | 704e34461dd3464ff5dd89718d7194154117c170 (diff) | |
| parent | c87672dc1d12deec86c91db7fc7fa85fd57e991b (diff) | |
Merge branch 'master' of ssh://myrmexia.xyz:/srv/git/.flake
Diffstat (limited to 'machines/apollo/hardware-configuration.nix')
| -rw-r--r-- | machines/apollo/hardware-configuration.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/machines/apollo/hardware-configuration.nix b/machines/apollo/hardware-configuration.nix new file mode 100644 index 0000000..ac2c0ba --- /dev/null +++ b/machines/apollo/hardware-configuration.nix @@ -0,0 +1,24 @@ +# 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, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + # 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.ens18.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} |
