beta to bcachefs
This commit is contained in:
parent
6689d9b279
commit
73bfed1ae0
3 changed files with 44 additions and 68 deletions
|
@ -1,30 +1,31 @@
|
|||
# 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") ];
|
||||
|
||||
# basic drivers
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
|
||||
# AMD microcode updates please
|
||||
# AMD CPU
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
|
||||
# AMD graphics
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
services.ollama.acceleration = "rocm";
|
||||
|
||||
# /boot efi partition to boot in UEFI mode
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/E632-D1CA";
|
||||
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part1";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
neededForBoot = true;
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
# encrypted system
|
||||
boot.initrd.luks.devices."crypt-system" = {
|
||||
device = "/dev/disk/by-uuid/0021030c-73ab-4de5-8764-0af3bb6c415c";
|
||||
allowDiscards = true;
|
||||
bypassWorkqueues = true;
|
||||
# /nix volume with the system & all persistent data
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part2";
|
||||
fsType = "bcachefs";
|
||||
neededForBoot = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue