mirror of
https://github.com/nix-community/disko.git
synced 2026-01-16 11:18:34 +01:00
fix(btrfs): automatic setting of fileSystems
Subvolumes without a mountpoint shouldn't be declared as fileSystems.
This commit is contained in:
parent
818207b99b
commit
140edd2d01
1 changed files with 2 additions and 8 deletions
|
|
@ -123,14 +123,8 @@
|
|||
default = [
|
||||
(map
|
||||
(subvol:
|
||||
let
|
||||
mountpoint =
|
||||
if (subvol.mountpoint != null) then subvol.mountpoint
|
||||
else if (config.mountpoint == null) then subvol.name
|
||||
else null;
|
||||
in
|
||||
lib.optional (mountpoint != null) {
|
||||
fileSystems.${mountpoint} = {
|
||||
lib.optional (subvol.mountpoint != null) {
|
||||
fileSystems.${subvol.mountpoint} = {
|
||||
device = config.device;
|
||||
fsType = "btrfs";
|
||||
options = subvol.mountOptions ++ [ "subvol=${subvol.name}" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue