mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
modules: fix state.paths typing
This commit is contained in:
parent
c3cdc27721
commit
6987a2215f
@ -6,7 +6,7 @@
|
||||
pathsSubmodule = { lib, ... }: {
|
||||
options = {
|
||||
paths = lib.mkOption {
|
||||
type = with lib.types; attrsOf (listOf path);
|
||||
type = with lib.types; attrsOf (listOf str);
|
||||
default = { };
|
||||
description = ''
|
||||
Set of paths to hold as a single source of truth for path-related
|
||||
@ -22,6 +22,6 @@
|
||||
};
|
||||
};
|
||||
in lib.mkOption {
|
||||
type = lib.type.submodule pathsSubmodule;
|
||||
type = lib.types.submodule pathsSubmodule;
|
||||
};
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ in {
|
||||
changeDirWidgetCommand = "${fd} --type directory --unrestricted";
|
||||
defaultCommand = "${fd} --type file --hidden";
|
||||
defaultOptions = let
|
||||
skipDirectories' = lib.concatStringsSep "," config.state.ignoreDirectories;
|
||||
skipDirectories' = lib.concatStringsSep "," config.state.paths.ignoreDirectories;
|
||||
in [
|
||||
"--walker-skip=${skipDirectories'}"
|
||||
];
|
||||
|
@ -6,7 +6,7 @@
|
||||
directoriesSubmodule = { lib, ... }: {
|
||||
options = {
|
||||
paths = lib.mkOption {
|
||||
type = with lib.types; attrsOf (listOf path);
|
||||
type = with lib.types; attrsOf (listOf str);
|
||||
description = ''
|
||||
A set of directories to share its value to various parts of the
|
||||
system.
|
||||
|
Loading…
Reference in New Issue
Block a user