diff --git a/hosts/fragile/hardware-configuration.nix b/hosts/fragile/hardware-configuration.nix new file mode 100644 index 0000000..8e73657 --- /dev/null +++ b/hosts/fragile/hardware-configuration.nix @@ -0,0 +1,51 @@ +# 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, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "usb_storage" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/mapper/crypt"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + + boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/e482f2ab-7be3-48be-bb49-cc2661dd5eb6"; + + fileSystems."/home" = + { device = "/dev/mapper/crypt"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + fileSystems."/nix" = + { device = "/dev/mapper/crypt"; + fsType = "btrfs"; + options = [ "subvol=nix" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/F9B2-1EF8"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + #fileSystems."/boot" = + # { device = "/boot"; + # fsType = "none"; + # options = [ "bind" ]; + # }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; +}