flake: use enum for mode option

This commit is contained in:
2025-01-07 22:15:08 +03:00
parent a56c582068
commit 0cf9b85787

View File

@@ -77,7 +77,7 @@
''; '';
}; };
mode = mkOption { mode = mkOption {
type = types.str; type = types.enum [ "hardlink" "symlink" "move" "copy" ];
default = "hardlink"; default = "hardlink";
description = '' description = ''
Organization mode, one of [ hardlink symlink move copy ]. Organization mode, one of [ hardlink symlink move copy ].