80 lines
2.2 KiB
Nix
80 lines
2.2 KiB
Nix
# 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")
|
||
];
|
||
|
||
# Enable support for the Xbox One wireless dongle
|
||
hardware.xone.enable = true;
|
||
|
||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
||
boot.initrd.kernelModules = ["amdgpu"];
|
||
boot.kernelModules = ["kvm-amd"];
|
||
boot.extraModulePackages = [];
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/5322c217-b87b-4150-8b4c-a8fa17a899bf";
|
||
fsType = "btrfs";
|
||
options = ["subvol=@root" "compress=zstd"];
|
||
};
|
||
|
||
fileSystems."/nix" = {
|
||
device = "/dev/disk/by-uuid/5322c217-b87b-4150-8b4c-a8fa17a899bf";
|
||
fsType = "btrfs";
|
||
options = ["subvol=@nix" "compress=zstd"];
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/5322c217-b87b-4150-8b4c-a8fa17a899bf";
|
||
fsType = "btrfs";
|
||
options = ["subvol=@boot" "compress=zstd"];
|
||
};
|
||
|
||
fileSystems."/boot/efi" = {
|
||
device = "/dev/disk/by-uuid/FB87-4CBC";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems = {
|
||
/*
|
||
Mount the root subvolume of the SSD
|
||
This is helpful for getting things from
|
||
my old Arch install, as well as for running btdu
|
||
*/
|
||
"/mnt/ssd" = {
|
||
device = config.fileSystems."/".device;
|
||
fsType = config.fileSystems."/".fsType;
|
||
options = ["subvolid=5" "ro"];
|
||
};
|
||
"/mnt/windows" = {
|
||
device = "/dev/disk/by-uuid/B61AFDAC1AFD6A2F";
|
||
fsType = "ntfs3";
|
||
neededForBoot = false;
|
||
options = ["noauto" "windows_names"];
|
||
};
|
||
"/home" = {
|
||
device = "/dev/disk/by-uuid/5322c217-b87b-4150-8b4c-a8fa17a899bf";
|
||
fsType = "btrfs";
|
||
options = ["subvol=@home" "compress=zstd"];
|
||
};
|
||
"/persist" = {
|
||
device = "/dev/disk/by-uuid/5322c217-b87b-4150-8b4c-a8fa17a899bf";
|
||
fsType = "btrfs";
|
||
options = ["subvol=@persist" "compress=zstd"];
|
||
neededForBoot = true;
|
||
};
|
||
};
|
||
|
||
swapDevices = [];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|