From 70a1fbb8466b7421a5f4bd2682ce9f971d3ff528 Mon Sep 17 00:00:00 2001 From: Hannes Date: Fri, 30 Aug 2024 23:33:42 +0200 Subject: [PATCH] restructured with hosts folder --- hosts/forgenite/hardware-configuration.nix | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 hosts/forgenite/hardware-configuration.nix diff --git a/hosts/forgenite/hardware-configuration.nix b/hosts/forgenite/hardware-configuration.nix new file mode 100644 index 0000000..077f043 --- /dev/null +++ b/hosts/forgenite/hardware-configuration.nix @@ -0,0 +1,38 @@ +# 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 = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/c02b5921-2932-4050-9789-40d62ad77af8"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/019D-9B08"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/a03ad96f-5ac0-44e9-9bd0-b58d799d51c4"; } + ]; + + # 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp6s18.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}