diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2026-03-26 22:08:04 +0100 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2026-03-26 23:16:31 +0100 |
| commit | 8e7ea4e41ccd7a40b2cc0514a6cb37fd1e17ffa2 (patch) | |
| tree | 48f2ca03e914830faabbd51a31662ee350f93bc8 /hosts/nyaan/hardware.nix | |
| parent | d39df2cb4bc592d45d2312b48355480cfd484710 (diff) | |
add nyaan host
Diffstat (limited to 'hosts/nyaan/hardware.nix')
| -rw-r--r-- | hosts/nyaan/hardware.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/hosts/nyaan/hardware.nix b/hosts/nyaan/hardware.nix new file mode 100644 index 0000000..d3a1025 --- /dev/null +++ b/hosts/nyaan/hardware.nix @@ -0,0 +1,33 @@ +# 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 + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/20fc22cd-161a-4537-b432-adf6c60c9f1c"; + fsType = "btrfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/B057-BE14"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/253a1a87-9919-4262-8ae9-63ad63b00648"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
