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