Files
nixos/iso/hardware-configuration.nix

45 lines
817 B
Nix

{ config, pkgs, ... }: {
boot.loader.systemd-boot.enable = true;
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
fileSystems."/" = {
device = "/dev/disk/by-partlabel/NIXOS";
fsType = "btrfs";
options = [
"subvol=@"
"ssd"
"compress=zstd:3"
"discard=async"
"noatime"
];
};
fileSystems."/nix/store" = {
device = "/dev/disk/by-uuid/";
fsType = "btrfs";
options = [
"subvol=@nix-store"
"ssd"
"compress=zstd:3"
"discard=async"
"noatime"
];
};
fileSystems."/nix/persist" = {
device = "/dev/disk/by-partlabel/NIXOS";
fsType = "btrfs";
options = [
"subvol=@nix-persist"
"ssd"
"compress=zstd:3"
"discard=async"
"noatime"
];
};
}