diff options
| author | Grigory Shipunov | 2022-06-17 02:55:10 +0200 |
|---|---|---|
| committer | Grigory Shipunov | 2022-06-17 13:14:05 +0200 |
| commit | c7ea1fec18e5b5886120fd23c17f8979afdbb905 (patch) | |
| tree | 4af6579c7cccaff61dc345d4047b5d7d78c6a5f6 /hosts/cirrus/hardware-configuration.nix | |
| parent | 2a83361681a03440cf644e5a398bb076d237cb5d (diff) | |
cirrus: init
Diffstat (limited to 'hosts/cirrus/hardware-configuration.nix')
| -rw-r--r-- | hosts/cirrus/hardware-configuration.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/hosts/cirrus/hardware-configuration.nix b/hosts/cirrus/hardware-configuration.nix new file mode 100644 index 0000000..bedfc3b --- /dev/null +++ b/hosts/cirrus/hardware-configuration.nix @@ -0,0 +1,36 @@ +# 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 = [ "ahci" "xhci_pci" "virtio_pci" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/627952eb-107a-43c3-8223-bfea9af92837"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/5CA6-CCE4"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + # 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.enp1s0.useDHCP = lib.mkDefault true; + + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
