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, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2023-09-17 15:57:39 +02:00
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2023-01-15 18:56:16 +01:00
|
|
|
|
|
2023-02-15 21:19:56 +01:00
|
|
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
2023-06-03 18:24:28 +02:00
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
2023-02-15 21:19:56 +01:00
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
2023-01-15 18:56:16 +01:00
|
|
|
|
|
2023-06-09 19:25:10 +02:00
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{ device = "none";
|
|
|
|
|
fsType = "tmpfs";
|
2024-01-10 20:53:25 +01:00
|
|
|
|
neededForBoot = true;
|
2023-06-09 22:21:52 +02:00
|
|
|
|
options = [ "defaults" "size=8G" "mode=755" ];
|
2023-06-09 19:25:10 +02:00
|
|
|
|
};
|
|
|
|
|
|
2023-01-15 18:56:16 +01:00
|
|
|
|
fileSystems."/boot" =
|
2024-01-10 20:53:25 +01:00
|
|
|
|
{ device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1";
|
2023-01-15 18:56:16 +01:00
|
|
|
|
fsType = "vfat";
|
2024-01-10 20:53:25 +01:00
|
|
|
|
neededForBoot = true;
|
2023-01-15 18:56:16 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-06-09 19:25:10 +02:00
|
|
|
|
fileSystems."/nix" =
|
2024-01-10 20:53:25 +01:00
|
|
|
|
{ device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part2";
|
|
|
|
|
fsType = "bcachefs";
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
options = [ "noatime" "nodiratime" ];
|
2023-06-09 19:25:10 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/data" =
|
2024-01-10 20:53:25 +01:00
|
|
|
|
{ device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part3";
|
|
|
|
|
fsType = "bcachefs";
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
options = [ "noatime" "nodiratime" ];
|
2023-06-09 19:25:10 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
|
|
|
|
{ device = "/data/home";
|
|
|
|
|
fsType = "none";
|
2024-01-11 07:27:20 +01:00
|
|
|
|
neededForBoot = true;
|
2023-06-09 19:25:10 +02:00
|
|
|
|
options = [ "bind" ];
|
2024-01-11 07:27:20 +01:00
|
|
|
|
depends = [ "/data" ];
|
2023-06-09 19:25:10 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/root" =
|
|
|
|
|
{ device = "/data/root";
|
|
|
|
|
fsType = "none";
|
2024-01-11 07:27:20 +01:00
|
|
|
|
neededForBoot = true;
|
2023-06-09 19:25:10 +02:00
|
|
|
|
options = [ "bind" ];
|
2024-01-11 07:27:20 +01:00
|
|
|
|
depends = [ "/data" ];
|
2023-06-09 19:25:10 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/etc/nixos" =
|
|
|
|
|
{ device = "/data/nixos/mini";
|
|
|
|
|
fsType = "none";
|
2024-01-11 07:27:20 +01:00
|
|
|
|
neededForBoot = true;
|
2023-06-09 19:25:10 +02:00
|
|
|
|
options = [ "bind" ];
|
2024-01-11 07:27:20 +01:00
|
|
|
|
depends = [ "/data" ];
|
2023-06-09 19:25:10 +02:00
|
|
|
|
};
|
|
|
|
|
|
2024-01-11 07:27:20 +01:00
|
|
|
|
fileSystems."/home/cullmann/vms" =
|
|
|
|
|
{ device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
|
|
|
|
|
fsType = "bcachefs";
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
options = [ "noatime" "nodiratime" ];
|
|
|
|
|
depends = [ "/home" ];
|
|
|
|
|
};
|
2023-09-17 00:23:47 +02:00
|
|
|
|
|
2023-01-15 18:56:16 +01:00
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2023-02-15 21:19:56 +01:00
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2023-01-15 18:56:16 +01:00
|
|
|
|
}
|