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" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
2023-06-12 18:48:24 +02:00
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{ device = "none";
|
|
|
|
|
fsType = "tmpfs";
|
|
|
|
|
options = [ "defaults" "size=8G" "mode=755" ];
|
|
|
|
|
};
|
|
|
|
|
|
2023-01-15 18:56:16 +01:00
|
|
|
|
fileSystems."/boot" =
|
2023-06-12 19:12:02 +02:00
|
|
|
|
{ device = "/dev/disk/by-uuid/03B1-533D";
|
2023-01-15 18:56:16 +01:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
2023-06-12 19:12:02 +02:00
|
|
|
|
boot.initrd.luks.devices."crypt-disk1".device = "/dev/disk/by-uuid/3009a0b5-3d8a-48e3-88a7-2a27a928b648";
|
2023-06-12 18:48:24 +02:00
|
|
|
|
boot.initrd.luks.devices."crypt-disk1".allowDiscards = true;
|
|
|
|
|
boot.initrd.luks.devices."crypt-disk1".bypassWorkqueues = true;
|
|
|
|
|
|
|
|
|
|
fileSystems."/nix" =
|
|
|
|
|
{ device = "/dev/mapper/crypt-disk1";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=nix" "noatime" "compress=zstd" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/data" =
|
|
|
|
|
{ device = "/dev/mapper/crypt-disk1";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=data" "noatime" "compress=zstd" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|