diff --git a/lib/types/nodev.nix b/lib/types/nodev.nix index f0d3c50..ad72d47 100644 --- a/lib/types/nodev.nix +++ b/lib/types/nodev.nix @@ -6,6 +6,17 @@ rootMountPoint, ... }: +let + # REF; nixos/modules/tasks/filesystems.nix + specialFSTypes = [ + "proc" + "sysfs" + "tmpfs" + "ramfs" + "devtmpfs" + "devpts" + ]; +in { options = { type = lib.mkOption { @@ -86,4 +97,7 @@ description = "Packages"; }; }; + config = { + device = lib.mkIf (lib.elem config.fsType specialFSTypes) (lib.mkDefault config.fsType); + }; }