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")
|
|
|
|
|
];
|
|
|
|
|
|
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
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
2023-06-09 19:25:10 +02:00
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{ device = "none";
|
|
|
|
|
fsType = "tmpfs";
|
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" =
|
2023-09-16 16:54:02 +02:00
|
|
|
|
{ device = "/dev/disk/by-uuid/F404-531A";
|
2023-01-15 18:56:16 +01:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
2023-09-17 00:23:47 +02:00
|
|
|
|
# system
|
2023-09-16 16:54:02 +02:00
|
|
|
|
boot.initrd.luks.devices."crypt-system".device = "/dev/disk/by-uuid/22c208e6-579b-4d34-8f83-83aa4a7ab1c3";
|
2023-06-09 19:25:10 +02:00
|
|
|
|
|
2023-09-17 00:23:47 +02:00
|
|
|
|
# vms
|
|
|
|
|
boot.initrd.luks.devices."crypt-vms".device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
|
|
|
|
|
|
2023-06-09 19:25:10 +02:00
|
|
|
|
fileSystems."/nix" =
|
2023-09-16 16:54:02 +02:00
|
|
|
|
{ device = "/dev/mapper/crypt-system";
|
2023-06-09 19:25:10 +02:00
|
|
|
|
fsType = "btrfs";
|
2023-09-16 16:54:02 +02:00
|
|
|
|
options = [ "subvol=nix" "noatime" "nodiratime" ];
|
2023-06-09 19:25:10 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/data" =
|
2023-09-16 16:54:02 +02:00
|
|
|
|
{ device = "/dev/mapper/crypt-system";
|
2023-06-09 19:25:10 +02:00
|
|
|
|
fsType = "btrfs";
|
2023-09-16 16:54:02 +02:00
|
|
|
|
options = [ "subvol=data" "noatime" "nodiratime" ];
|
2023-06-09 19:25:10 +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/mini";
|
|
|
|
|
fsType = "none";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
|
2023-09-17 00:23:47 +02:00
|
|
|
|
fileSystems."/home/cullmann/vms" =
|
|
|
|
|
{
|
|
|
|
|
depends = [ "/home" ];
|
|
|
|
|
device = "/dev/mapper/crypt-vms";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "noatime" "nodiratime" ];
|
|
|
|
|
};
|
|
|
|
|
|
2023-01-15 18:56:16 +01:00
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|