diff --git a/hosts/pi4/hardware-configuration.nix b/hosts/pi4/hardware-configuration.nix index b1e563f..93813bd 100644 --- a/hosts/pi4/hardware-configuration.nix +++ b/hosts/pi4/hardware-configuration.nix @@ -1,89 +1,75 @@ # 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. -{ lib, modulesPath, ... }: +{ config, lib, pkgs, modulesPath, ... }: { - imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ - "xhci_pci" - "uas" - ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "uas" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "none"; - fsType = "tmpfs"; - }; + fileSystems."/" = + { device = "none"; + fsType = "tmpfs"; + }; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/1DE6-4D02"; - fsType = "vfat"; - options = [ - "fmask=0022" - "dmask=0022" + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/7EC2-DEAC"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + fileSystems."/firmware" = + { device = "/dev/disk/by-uuid/7E6D-6434"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + fileSystems."/nix" = + { device = "/dev/disk/by-uuid/1318620e-747a-4f5c-a285-889245256472"; + fsType = "btrfs"; + options = [ "subvol=nix" ]; + }; + + fileSystems."/etc" = + { device = "/dev/disk/by-uuid/1318620e-747a-4f5c-a285-889245256472"; + fsType = "btrfs"; + options = [ "subvol=etc" ]; + }; + + fileSystems."/var/log" = + { device = "/dev/disk/by-uuid/1318620e-747a-4f5c-a285-889245256472"; + fsType = "btrfs"; + options = [ "subvol=log" ]; + }; + + fileSystems."/root" = + { device = "/dev/disk/by-uuid/1318620e-747a-4f5c-a285-889245256472"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/1318620e-747a-4f5c-a285-889245256472"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/d390a564-9ef9-4c7d-ae1a-93951e9873dd"; } ]; - }; - - fileSystems."/boot/firmware" = { - device = "/dev/disk/by-uuid/1BE6-CB10"; - fsType = "vfat"; - options = [ - "fmask=0022" - "dmask=0022" - ]; - }; - - fileSystems."/boot/uefi" = { - device = "/dev/disk/by-uuid/1BE3-8523"; - fsType = "vfat"; - options = [ - "fmask=0022" - "dmask=0022" - ]; - }; - - fileSystems."/nix" = { - device = "/dev/disk/by-uuid/7df3c990-7e55-4140-adab-de8ddc4db21a"; - fsType = "btrfs"; - options = [ "subvol=nix" ]; - }; - - fileSystems."/etc" = { - device = "/dev/disk/by-uuid/7df3c990-7e55-4140-adab-de8ddc4db21a"; - fsType = "btrfs"; - options = [ "subvol=etc" ]; - }; - - fileSystems."/root" = { - device = "/dev/disk/by-uuid/7df3c990-7e55-4140-adab-de8ddc4db21a"; - fsType = "btrfs"; - options = [ "subvol=root" ]; - }; - - fileSystems."/var/log" = { - device = "/dev/disk/by-uuid/7df3c990-7e55-4140-adab-de8ddc4db21a"; - fsType = "btrfs"; - options = [ "subvol=log" ]; - }; - - fileSystems."/home" = { - device = "/dev/disk/by-uuid/7df3c990-7e55-4140-adab-de8ddc4db21a"; - fsType = "btrfs"; - options = [ "subvol=home" ]; - }; - - swapDevices = [ { device = "/dev/disk/by-uuid/8b5640bb-2fbf-4e69-9504-fb9508d49f01"; } ]; # 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 # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. networking.useDHCP = lib.mkDefault true; - # networking.interfaces.end0.useDHCP = lib.mkDefault true; + # networking.interfaces.eth0.useDHCP = lib.mkDefault true; # networking.interfaces.wlan0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";