diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2026-08-22 06:24:39 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2026-08-22 06:24:39 -0600 |
| commit | 14f32e24996805629efec8c9ee28f2e56b75f660 (patch) | |
| tree | 8ede0ada91cd8678ac52253800a61e61c3ab561a /machines/bosco/hardware-configuration.nix | |
| parent | ae38485a951968b9aff81e397525818f0c8f68ac (diff) | |
migrating bosco to new hardware failed, so changing new bosco name
to apollo for ease of maintenance
Diffstat (limited to 'machines/bosco/hardware-configuration.nix')
| -rw-r--r-- | machines/bosco/hardware-configuration.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/machines/bosco/hardware-configuration.nix b/machines/bosco/hardware-configuration.nix index ac2c0ba..34dd9bf 100644 --- a/machines/bosco/hardware-configuration.nix +++ b/machines/bosco/hardware-configuration.nix @@ -8,17 +8,28 @@ [ (modulesPath + "/profiles/qemu-guest.nix") ]; - boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; + fileSystems."/" = + { device = "/dev/sda"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/sdb"; } + ]; + # 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; + # networking.useDHCP = lib.mkDefault true; + networking.interfaces.enp0s5.useDHCP = lib.mkDefault true; + # required for ssh? + networking.interfaces.eth0.useDHCP = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } |
