caramel/filesystem: store persist on separate drive
This commit is contained in:
parent
1d6d52d3e7
commit
11350fb5c2
1 changed files with 11 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
bind = src: {
|
bind = src: {
|
||||||
depends = [ "/nix" ];
|
depends = [ "/persist" ];
|
||||||
device = src;
|
device = src;
|
||||||
fsType = "none";
|
fsType = "none";
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
|
|
@ -21,8 +21,15 @@ in {
|
||||||
options = [ "defaults" "noatime" ];
|
options = [ "defaults" "noatime" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/var/persist" = bind "/nix/persist";
|
"/persist" = {
|
||||||
"/var/log/journal" = bind "/nix/persist/journal";
|
device = "/dev/disk/by-label/PI_HDD";
|
||||||
"/boot" = bind "/nix/persist/boot";
|
fsType = "ext4";
|
||||||
|
options = [ "defaults" "relatime" ];
|
||||||
|
neededForBoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"/var/persist" = bind "/persist";
|
||||||
|
"/var/log/journal" = bind "/persist/journal";
|
||||||
|
"/boot" = (bind "/nix/persist/boot") // { depends = [ "/nix" ]; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue