rpi4: update btrfs config
This commit is contained in:
parent
5a040c7bf1
commit
b954abe8be
@ -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
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user