refactor(fs)!: extPersist -> external
This commit is contained in:
parent
6670a96ec2
commit
ffa2202f50
4 changed files with 14 additions and 14 deletions
|
@ -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" ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue