rpi4: update btrfs config

This commit is contained in:
NullBite 2024-06-21 01:21:11 -04:00
parent 5a040c7bf1
commit b954abe8be
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,11 @@
./hardware-configuration.nix
];
fileSystems = let
mounts = [ "/nix" "/" "/.btrfsroot" "/home" ];
fn = (x: { options = [ "compress=zstd" ];});
in lib.genAttrs mounts fn;
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
boot.loader.grub.enable = false;
# Enables the generation of /boot/extlinux/extlinux.conf

View File

@ -13,6 +13,12 @@
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/.btrfsroot" =
{ device = "/dev/disk/by-uuid/112535b6-4318-4d26-812b-7baf0d65dae5";
fsType = "btrfs";
options = [ "subvol=/" ];
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/112535b6-4318-4d26-812b-7baf0d65dae5";
fsType = "btrfs";