Your one-stop-cake-shop for everything Freshly Baked has to offer

feat(midnight): update hardware-configuration

We're reinstalling midnight! Previously we had the old hardware config
here, but that one didn't support impermanence and was pretty different
to teal's. As part of our reinstall we've repartitioned our disks to
have a much more similar layout...

authored by a.starrysky.fyi and committed by

Skyler Grey 8d1b877f 6e0d904f

+19 -16
+19 -16
packetmix/systems/midnight/hardware-configuration.nix
··· 2 2 # 3 3 # SPDX-License-Identifier: MIT 4 4 5 - { lib, config, ... }: 6 5 { 7 6 boot.initrd.availableKernelModules = [ 8 7 "nvme" 9 8 "xhci_pci" 9 + "ahci" 10 10 "usbhid" 11 + "uas" 11 12 "usb_storage" 12 13 "sd_mod" 13 14 ]; 14 15 boot.initrd.kernelModules = [ ]; 15 16 boot.kernelModules = [ "kvm-amd" ]; 16 17 boot.extraModulePackages = [ ]; 17 - fileSystems."/" = { 18 - device = "/dev/disk/by-uuid/0456a002-1692-4ed0-a233-d6cd76c8c2dd"; 18 + fileSystems."/nix" = { 19 + device = "/dev/disk/by-uuid/34b14ffd-62b4-4bca-a1b5-349a6eb7cb28"; 19 20 fsType = "btrfs"; 21 + options = [ "subvol=@nix" ]; 20 22 }; 21 - boot.initrd.luks.devices."luks-ssd0".device = 22 - "/dev/disk/by-uuid/a50b2c75-dd36-4d31-924f-d4b77b94efa9"; 23 23 fileSystems."/boot" = { 24 - device = "/dev/disk/by-uuid/9416-209A"; 24 + device = "/dev/disk/by-uuid/0CE9-FAD2"; 25 25 fsType = "vfat"; 26 + options = [ 27 + "fmask=0022" 28 + "dmask=0022" 29 + ]; 26 30 }; 27 - swapDevices = [ { device = "/dev/disk/by-uuid/a1cb08ad-39b3-4a36-bf5a-fad7714a85c0"; } ]; 28 - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 29 - # (the default) this is the recommended approach. When using systemd-networkd it's 30 - # still possible to use this option, but it's recommended to use it in conjunction 31 - # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 32 - networking.useDHCP = lib.mkDefault true; 33 - # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; 34 - # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; 35 - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 36 - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 31 + 32 + clicks.storage.impermanence = { 33 + enable = true; 34 + devices = { 35 + root = "/dev/disk/by-uuid/34b14ffd-62b4-4bca-a1b5-349a6eb7cb28"; 36 + persist = "/dev/disk/by-uuid/34b14ffd-62b4-4bca-a1b5-349a6eb7cb28"; 37 + }; 38 + }; 39 + fileSystems."/persist".options = [ "subvol=@persist" ]; 37 40 }