refactor(fs)!: extPersist -> external

This commit is contained in:
514fpv 2024-01-21 20:43:50 +08:00
parent 6670a96ec2
commit ffa2202f50
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
4 changed files with 14 additions and 14 deletions

View file

@ -32,7 +32,7 @@ in {
description = "vfat serial number of EFI system partition";
};
};
extPersist = {
external = {
enable = mkEnableOption "external persist filesystem";
# this wraps the standard fileSystems module
# since some attrs have to be unconditionally set
@ -73,8 +73,8 @@ in {
{ device = "/dev/disk/by-uuid/${cfg.esp.uuid}";
fsType = "vfat";
};
fileSystems."/nix/persist" = mkIf cfg.extPersist.enable
{ inherit (cfg.extPersist) device fsType options;
fileSystems."/nix/persist" = mkIf cfg.external.enable
{ inherit (cfg.external) device fsType options;
neededForBoot = true;
depends = [ "/nix" ];
};