This commit is contained in:
TheCrazyInsanity
2025-12-18 14:26:37 -05:00
parent 1ec653af81
commit af861165e5
22 changed files with 109 additions and 25 deletions

34
machines/homepc/hardware-configuration.nix Normal file → Executable file
View File

@@ -20,14 +20,40 @@
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.supportedFileSystems = [ "btrfs" ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/2849654b-6c3c-4db7-9603-5fa96ce561aa";
fsType = "ext4";
device = "/dev/disk/by-uuid/3c89fa92-1d43-4c48-b228-e2725fa70ee9";
fsType = "btrfs";
options = [ "compress=zstd" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/3c89fa92-1d43-4c48-b228-e2725fa70ee9";
fsType = "btrfs";
options = [ "compress=zstd" ];
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/3c89fa92-1d43-4c48-b228-e2725fa70ee9";
fsType = "btrfs";
options = [ "compress=zstd" "noatime" ];
};
fileSystems."/swap" = {
device = "/dev/disk/by-uuid/3c89fa92-1d43-4c48-b228-e2725fa70ee9";
fsType = "btrfs";
options = [ "noatime" ];
};
fileSystems."/persist" = {
device = "/dev/disk/by-uuid/3c89fa92-1d43-4c48-b228-e2725fa70ee9";
fsType = "btrfs";
options = [ "compress=zstd" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/90C0-8767";
device = "/dev/disk/by-uuid/2260-4302";
fsType = "vfat";
options = [
"fmask=0077"
@@ -36,7 +62,7 @@
};
swapDevices = [
{ device = "/dev/disk/by-uuid/7762478c-1123-4a1f-9402-1bba3723e53d"; }
{ device = "/swap/swapfile"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";