2023-01-15 18:56:16 +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.
|
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
2023-06-12 19:32:36 +02:00
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
2023-01-15 18:56:16 +01:00
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
|
|
2023-06-12 18:48:24 +02:00
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{ device = "none";
|
|
|
|
|
fsType = "tmpfs";
|
2024-01-10 21:45:59 +01:00
|
|
|
|
neededForBoot = true;
|
2023-06-12 18:48:24 +02:00
|
|
|
|
options = [ "defaults" "size=8G" "mode=755" ];
|
|
|
|
|
};
|
|
|
|
|
|
2023-01-15 18:56:16 +01:00
|
|
|
|
fileSystems."/boot" =
|
2024-01-10 21:45:59 +01:00
|
|
|
|
{ device = "/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J-part1";
|
2023-01-15 18:56:16 +01:00
|
|
|
|
fsType = "vfat";
|
2024-01-10 21:45:59 +01:00
|
|
|
|
neededForBoot = true;
|
2023-01-15 18:56:16 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-06-12 18:48:24 +02:00
|
|
|
|
fileSystems."/nix" =
|
2024-01-10 21:45:59 +01:00
|
|
|
|
{ device = "/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J-part2";
|
|
|
|
|
fsType = "bcachefs";
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
options = [ "noatime" "nodiratime" ];
|
2023-06-12 18:48:24 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/data" =
|
2024-01-10 21:45:59 +01:00
|
|
|
|
{ device = "/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J-part3";
|
|
|
|
|
fsType = "bcachefs";
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
options = [ "noatime" "nodiratime" ];
|
2023-06-12 18:48:24 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
|
|
|
|
{ device = "/data/home";
|
|
|
|
|
fsType = "none";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/root" =
|
|
|
|
|
{ device = "/data/root";
|
|
|
|
|
fsType = "none";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/etc/nixos" =
|
|
|
|
|
{ device = "/data/nixos/kuro";
|
|
|
|
|
fsType = "none";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
|
2023-01-15 18:56:16 +01:00
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|