configs/laptop/hardware-configuration.nix
Geir Okkenhaug Jerstad 07100d1a01 appserver nfs
2024-05-20 20:26:56 +02:00

36 lines
1,004 B
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/c00b4f87-0c38-45e8-a65e-acb63b837124";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/28E2-7988";
fsType = "vfat";
};
fileSystems."/home/geir/nfs" =
{ device = "files:/mnt/storage";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}