feat: Added lvm volume for sata ssds

This commit is contained in:
uttarayan21
2025-02-01 04:03:35 +05:30
parent be6ee1f72f
commit e1b6272aea
5 changed files with 101 additions and 15 deletions

View File

@@ -8,7 +8,10 @@
pkgs,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
# ./disk-config.nix
];
hardware.graphics = {
enable = true;
@@ -71,8 +74,15 @@
boot.initrd.availableKernelModules = ["vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = ["nvidia" "nvidia_modeset" "nvidia_drm"];
boot.kernelModules = ["kvm-intel" "i2c-dev"];
boot.kernelModules = [
# "vfio_pci"
# "vfio"
"kvm-intel"
"i2c-dev"
];
boot.extraModulePackages = [];
boot.kernelParams = ["intel_iommu=on"];
# services.udev.packages = [pkgs.yubikey-personalization pkgs.yubikey-personalization-gui pkgs.via];
services.udev.packages = [pkgs.via];
services.yubikey-agent.enable = true;
@@ -102,6 +112,18 @@
fsType = "ext4";
};
fileSystems."/media" = {
device = "/dev/storage/media";
fsType = "ext4";
options = ["users" "nofail"];
};
fileSystems."/games" = {
device = "/dev/storage/games";
fsType = "ext4";
options = ["users" "nofail"];
};
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking