rpi4: mount home assistant subvol
This commit is contained in:
parent
01cf89fac4
commit
91f7d08bac
@ -12,7 +12,14 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
fileSystems = let
|
fileSystems = let
|
||||||
mounts = [ "/nix" "/" "/.btrfsroot" "/home" ];
|
mounts = [
|
||||||
|
"/nix"
|
||||||
|
"/"
|
||||||
|
"/.btrfsroot"
|
||||||
|
"/home"
|
||||||
|
"/opt/hassio"
|
||||||
|
"/opt/hassio/.snapshots"
|
||||||
|
];
|
||||||
fn = (x: { options = [ "compress=zstd" ];});
|
fn = (x: { options = [ "compress=zstd" ];});
|
||||||
in lib.genAttrs mounts fn;
|
in lib.genAttrs mounts fn;
|
||||||
|
|
||||||
|
@ -42,6 +42,19 @@
|
|||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/opt/hassio" =
|
||||||
|
{ device = "/dev/disk/by-uuid/112535b6-4318-4d26-812b-7baf0d65dae5";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=/@hassio" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/opt/hassio/.snapshots" =
|
||||||
|
{ device = "/dev/disk/by-uuid/112535b6-4318-4d26-812b-7baf0d65dae5";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=/snapshots/@hassio" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
Loading…
x
Reference in New Issue
Block a user