From 1e47d47dbd6495362a79ff893f06403abf936680 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Wed, 28 May 2025 10:59:58 +0200 Subject: [PATCH] feat: move partitions (1) --- hosts/sakura/hardware-configuration.nix | 45 ++++++++++++++++--------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/hosts/sakura/hardware-configuration.nix b/hosts/sakura/hardware-configuration.nix index 19346a2..e0d299a 100644 --- a/hosts/sakura/hardware-configuration.nix +++ b/hosts/sakura/hardware-configuration.nix @@ -1,30 +1,45 @@ # 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, ... }: +{ + config, + lib, + pkgs, + modulesPath, + ... +}: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ + "nvme" + "xhci_pci" + "thunderbolt" + "usb_storage" + "sd_mod" + ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/24035f97-746a-4aec-b1d8-696bc32d3c97"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/24035f97-746a-4aec-b1d8-696bc32d3c97"; + fsType = "ext4"; + }; - boot.initrd.luks.devices."luks-156453ac-bbad-452c-ad92-4fc569db9347".device = "/dev/disk/by-uuid/156453ac-bbad-452c-ad92-4fc569db9347"; + boot.initrd.luks.devices."luks-root".device = "/dev/nvme0n1p3"; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/0EFD-4B3F"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/0EFD-4B3F"; + fsType = "vfat"; + options = [ + "fmask=0022" + "dmask=0022" + ]; + }; swapDevices = [ ];