Lapetus filesystems
This commit is contained in:
parent
ccf58efcb3
commit
6df2378809
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
./services/syncthing.nix
|
./services/syncthing.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./filesystems.nix
|
||||||
./zfs.nix
|
./zfs.nix
|
||||||
|
|
||||||
(import ./partitions.nix {
|
(import ./partitions.nix {
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
|
# Mark a bunch of paths as needed for boot
|
||||||
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
fileSystems =
|
fileSystems = lib.attrsets.genAttrs
|
||||||
let zfs = { neededForBoot = true; options = [ "zfsutil" ]; };
|
[ "/" "/nix" "/persist/data" "/persist/state" "/persist/local/cache" "/boot" ]
|
||||||
in
|
(_: { neededForBoot = true; });
|
||||||
{
|
|
||||||
"/" = zfs;
|
|
||||||
"/nix" = zfs;
|
|
||||||
"/persist/data" = zfs;
|
|
||||||
"/persist/state" = zfs;
|
|
||||||
"/persist/local/cache" = zfs;
|
|
||||||
"/boot".neededForBoot = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue