1
Fork 0

Lapetus filesystems

This commit is contained in:
Matei Adriel 2023-07-18 17:49:13 +03:00
parent ccf58efcb3
commit 6df2378809
No known key found for this signature in database
2 changed files with 6 additions and 11 deletions

View file

@ -6,6 +6,7 @@
./services/syncthing.nix
./hardware-configuration.nix
./filesystems.nix
./zfs.nix
(import ./partitions.nix {

View file

@ -1,13 +1,7 @@
# Mark a bunch of paths as needed for boot
{ lib, ... }:
{
fileSystems =
let zfs = { neededForBoot = true; options = [ "zfsutil" ]; };
in
{
"/" = zfs;
"/nix" = zfs;
"/persist/data" = zfs;
"/persist/state" = zfs;
"/persist/local/cache" = zfs;
"/boot".neededForBoot = true;
};
fileSystems = lib.attrsets.genAttrs
[ "/" "/nix" "/persist/data" "/persist/state" "/persist/local/cache" "/boot" ]
(_: { neededForBoot = true; });
}