feat: import hardware configuration for fragile

This commit is contained in:
Ahwx 2026-04-29 00:02:32 +02:00
parent 543dfbccb1
commit 57b34bd3ca

View file

@ -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";
}