zion/modules/hardware-configuration.nix

59 lines
1.9 KiB
Nix
Raw Normal View History

2019-11-08 14:13:50 +01: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.
2025-02-27 21:03:52 +01:00
{ config, lib, pkgs, modulesPath, ... }:
2019-11-08 14:13:50 +01:00
{
2025-02-27 21:03:52 +01:00
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2019-11-08 14:13:50 +01:00
2025-02-27 21:03:52 +01:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ];
2019-11-08 14:13:50 +01:00
boot.initrd.kernelModules = [ ];
2025-02-27 21:03:52 +01:00
boot.kernelModules = [ "kvm-intel" ];
2019-11-08 14:13:50 +01:00
boot.extraModulePackages = [ ];
2025-02-27 21:03:52 +01:00
fileSystems."/" =
{ device = "sysion/stateful/root";
fsType = "zfs";
};
2023-05-25 11:57:28 +02:00
2025-02-27 21:03:52 +01:00
fileSystems."/nix" =
{ device = "sysion/ephemeral/nix";
fsType = "zfs";
};
2023-05-25 11:57:28 +02:00
2025-02-27 21:03:52 +01:00
fileSystems."/tmp" =
{ device = "sysion/ephemeral/tmp";
fsType = "zfs";
};
2023-05-25 11:57:28 +02:00
2025-02-27 21:03:52 +01:00
fileSystems."/home/coolneng" =
{ device = "sysion/stateful/home";
fsType = "zfs";
};
2023-05-25 11:57:28 +02:00
2025-02-27 21:03:52 +01:00
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/C332-4650";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
2023-01-02 13:54:40 +01:00
2025-02-27 21:03:52 +01:00
swapDevices =
[ { device = "/dev/disk/by-uuid/d388feef-a651-4dae-8161-f666136de240"; }
];
2019-11-08 14:13:50 +01:00
2022-12-20 11:54:17 +01: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;
2025-02-27 21:03:52 +01:00
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
2022-12-20 11:54:17 +01:00
# networking.interfaces.wg0.useDHCP = lib.mkDefault true;
2025-02-27 21:03:52 +01:00
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
2022-12-20 11:54:17 +01:00
2025-02-27 21:03:52 +01:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2019-11-08 14:13:50 +01:00
}