diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2024-08-25 17:50:54 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2024-08-25 17:50:54 -0600 |
| commit | 0aa1ac98ccd38a79ed75ea9976be825f006f6330 (patch) | |
| tree | 4e2c00fa28c4b2ba7d1dd5385a631ff181acd47b /machines/khad | |
| parent | 05a0c9efeb9d83ed24124c525fdfaf50e1951884 (diff) | |
partition change
Diffstat (limited to 'machines/khad')
| -rw-r--r-- | machines/khad/hardware-configuration.nix | 55 |
1 files changed, 41 insertions, 14 deletions
diff --git a/machines/khad/hardware-configuration.nix b/machines/khad/hardware-configuration.nix index 62f1bd4..4cd618c 100644 --- a/machines/khad/hardware-configuration.nix +++ b/machines/khad/hardware-configuration.nix @@ -1,37 +1,64 @@ # 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, modulesPath, ... }: +{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/17bf776d-ed6d-4a80-831c-ddd65dec14fb"; + fileSystems."/boot" = { + label = "EFI"; + fsType = "vfat"; + }; + + fileSystems."/" = { + label = "nixos"; fsType = "btrfs"; - options = [ "subvol=@" ]; + options = [ "subvol=@root" "compress-force=zstd:3" "noatime" ]; }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/83FA-1F6E"; - fsType = "vfat"; + fileSystems."/home" = { + label = "nixos"; + fsType = "btrfs"; + options = [ "subvol=@home" "compress-force=zstd:3" "noatime" ]; }; - fileSystems."/home" = - { device = "/dev/disk/by-uuid/c6f221f0-f4c0-413e-821b-7363aa5c5f4c"; + fileSystems."/nix" = { + label = "nixos"; fsType = "btrfs"; + options = [ "subvol=@nix" "compress-force=zstd:3" "noatime" ]; }; - swapDevices = - [ { device = "/dev/disk/by-uuid/9b961057-79f7-4024-b1ec-16f9e8af7405"; } - ]; + fileSystems."/persist" = { + label = "nixos"; + fsType = "btrfs"; + options = [ "subvol=@persist" "compress-force=zstd:3" "noatime" ]; + }; + + fileSystems."/swap" = { + label = "nixos"; + fsType = "btrfs"; + options = [ "subvol=@swap" "compress-force=zstd:3" "noatime" ]; + }; + + fileSystems."/var/log" = { + label = "nixos"; + fsType = "btrfs"; + options = [ "subvol=@log" "compress-force=zstd:3" "noatime" ]; + }; + + + swapDevices = [{ + device = "/swap/swapfile"; + # size = 35 * 1024; # 35GB +}]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's @@ -39,7 +66,7 @@ # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. networking.useDHCP = lib.mkDefault true; # networking.interfaces.eno1.useDHCP = lib.mkDefault true; - # networking.interfaces.enp0s20u4.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; |
