nixos-config/system/starlight/hardware-configuration.nix

70 lines
1.9 KiB
Nix
Raw Permalink Normal View History

2020-04-11 21:47:33 +00:00
# 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.
2024-03-02 03:13:17 +00:00
{
config,
lib,
pkgs,
modulesPath,
...
}:
2020-04-11 21:47:33 +00:00
{
2024-09-03 01:35:39 +00:00
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2020-04-11 21:47:33 +00:00
2024-03-02 03:13:17 +00:00
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
2024-09-03 01:35:39 +00:00
"sr_mod"
2024-03-02 03:13:17 +00:00
];
2020-04-11 21:47:33 +00:00
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2023-08-26 23:00:18 +00:00
fileSystems."/" = {
2024-09-03 01:35:39 +00:00
device = "/dev/disk/by-uuid/b50a01fa-fc35-4210-80dc-7476831d834f";
fsType = "ext4";
2023-08-26 23:00:18 +00:00
};
fileSystems."/boot" = {
2024-09-03 01:35:39 +00:00
device = "/dev/disk/by-uuid/B5CD-2F86";
2023-08-26 23:00:18 +00:00
fsType = "vfat";
2024-09-03 01:35:39 +00:00
options = [
"fmask=0022"
"dmask=0022"
];
2023-08-26 23:00:18 +00:00
};
fileSystems."/media/data" = {
device = "/dev/disk/by-uuid/c01b98d1-1eb9-42ce-8d05-4b9d852fca55";
fsType = "btrfs";
};
2024-09-03 01:35:39 +00:00
fileSystems."/media/luna" = {
device = "10.69.0.69:/media/tank";
2023-08-26 23:00:18 +00:00
fsType = "nfs4";
};
2021-01-23 19:00:13 +00:00
swapDevices = [
2024-09-03 01:35:39 +00:00
{ device = "/dev/disk/by-uuid/8a771161-9f84-4fc7-a3b7-5431c6bc6e14"; }
];
2024-09-03 01:35:39 +00:00
# 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.enp5s0f0np0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp5s0f1np1.useDHCP = lib.mkDefault true;
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2020-04-11 21:47:33 +00:00
}