wip: add comment on fixing file system oopsie

This commit is contained in:
oddlama 2024-01-18 13:14:57 +01:00
parent cbd79751a0
commit 35a5d08c3e
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 5 additions and 1 deletions

View file

@ -17,7 +17,7 @@ Interface naming by MAC | Module | [Link](./modules/interface-naming.nix) | - |
EFI/BIOS boot config | Module | [Link](./modules/boot.nix) | - | - | Allows you to specify a boot type (bios/efi) and the correct loader will automatically be configured
Nginx recommended options | Module | [Link](./modules/nginx.nix) | - | agenix | Sets many recommended settings for nginx with a single switch plus some opinionated defaults. Also adds a switch for setting recommended security headers on each location.
Node options | Module | [Link](./modules/node.nix) | - | - | A module that stores meta information about your nodes (hosts). Required for some other modules that operate across nodes.
Guests (MicroVMs & Containers) | Module | [Link](./modules/guests) | zfs, node options | - | This module implements a common interface to use guest systems with microvms or nixos-containers.
Guests (MicroVMs & Containers) | Module | [Link](./modules/guests) | zfs, disko, node options | - | This module implements a common interface to use guest systems with microvms or nixos-containers.
Restic hetzner storage box setup | Module | [Link](./modules/restic.nix) | agenix, agenix-rekey | - | This module exposes new options for restic backups that allow a simple setup of hetzner storage boxes. There's [an app](./apps/setup-hetzner-storage-boxes.nix) that you should expose on your flake to automate remote setup.
#### Home Manager Modules

View file

@ -51,6 +51,7 @@
then disko.zfs.filesystem zfsCfg.hostMountpoint
else disko.zfs.unmountable;
}));
# Add the required fileSystems for shared folders
fileSystems = mkMerge (flip map (attrValues guestCfg.zfs) (zfsCfg: {
${zfsCfg.hostMountpoint} = {
@ -281,6 +282,9 @@ in {
"d /guests 0700 root root -"
];
fileSystems =
# for guests filter zfs shared, group by mountpoint, fold and add dependencies.
assertions = flatten (flip mapAttrsToList config.guests (
guestName: guestCfg:
flip mapAttrsToList guestCfg.zfs (