From 1c4bc94eaecd42cf639d08ce0bbabc42f40c1aa3 Mon Sep 17 00:00:00 2001 From: workflow <4farlion@gmail.com> Date: Mon, 22 Jan 2024 20:33:51 +0000 Subject: [PATCH] feat(boar): switch to new 4TB disk --- machines/boar/hardware-scan.nix | 8 ++++---- machines/boar/system.nix | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/machines/boar/hardware-scan.nix b/machines/boar/hardware-scan.nix index cf922e2a..21d199cb 100644 --- a/machines/boar/hardware-scan.nix +++ b/machines/boar/hardware-scan.nix @@ -1,7 +1,7 @@ # 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, ... }: +{ lib, ... }: { boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "vmd" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; @@ -11,13 +11,13 @@ fileSystems."/" = { - device = "/dev/disk/by-uuid/647ff1a6-e9a1-425b-99ee-806fd2dc25d5"; + device = "/dev/disk/by-uuid/0cdc2f83-310d-4c4f-aaaf-5b94afad426a"; fsType = "ext4"; }; fileSystems."/boot" = { - device = "/dev/disk/by-uuid/F41C-8BCE"; + device = "/dev/disk/by-uuid/FCF5-8B05"; fsType = "vfat"; }; @@ -28,7 +28,7 @@ }; swapDevices = - [{ device = "/dev/disk/by-uuid/61d5dd00-b05f-4d52-9eb7-2124ed6b81af"; }]; + [{ device = "/dev/disk/by-uuid/1918e35f-be18-4ca8-a179-9a4e2e5107f8"; }]; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; } diff --git a/machines/boar/system.nix b/machines/boar/system.nix index fcd01746..1e06a49e 100644 --- a/machines/boar/system.nix +++ b/machines/boar/system.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, ... }: { # Use the systemd-boot EFI boot loader. @@ -24,7 +24,7 @@ # LVM on LUKS boot.initrd.luks.devices = { root = { - device = "/dev/disk/by-uuid/74d4c5f3-f5fe-4aba-ac7a-56b0d28efc64"; + device = "/dev/disk/by-uuid/69615b0a-fffd-4424-99e6-e39f11dab27e"; preLVM = true; }; data-b-enc = {