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, ... }:
|
||||
let
|
||||
bind = src: {
|
||||
depends = [ "/nix" ];
|
||||
depends = [ "/persist" ];
|
||||
device = src;
|
||||
fsType = "none";
|
||||
neededForBoot = true;
|
||||
|
|
@ -21,8 +21,15 @@ in {
|
|||
options = [ "defaults" "noatime" ];
|
||||
};
|
||||
|
||||
"/var/persist" = bind "/nix/persist";
|
||||
"/var/log/journal" = bind "/nix/persist/journal";
|
||||
"/boot" = bind "/nix/persist/boot";
|
||||
"/persist" = {
|
||||
device = "/dev/disk/by-label/PI_HDD";
|
||||
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