replaced types.string with types.str

This commit is contained in:
Leyla Becker 2025-03-13 02:12:04 -05:00
parent 57c50fbe76
commit 86bcb200c8
2 changed files with 10 additions and 10 deletions

View file

@ -2,10 +2,10 @@
folderType = lib.types.submodule ({name, ...}: {
options = {
id = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
};
label = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
default = name;
};
};
@ -19,11 +19,11 @@ in {
type = lib.types.attrsOf (lib.types.submodule ({name, ...}: {
options = {
name = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
default = name;
};
id = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
};
folders = lib.mkOption {
type = lib.types.attrsOf (lib.types.submodule (
@ -33,7 +33,7 @@ in {
type = folderType;
};
path = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
};
type = lib.mkOption {
type = lib.types.enum ["sendreceive" "sendonly" "receiveonly" "receiveencrypted"];
@ -43,25 +43,25 @@ in {
simple = {
enable = lib.mkEnableOption "should this folder use simple versioning";
keep = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
default = "10";
};
};
trashcan = {
enable = lib.mkEnableOption "should this folder use trashcan versioning";
cleanoutDays = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
default = "1000";
};
};
staggered = {
enable = lib.mkEnableOption "should this folder use staggard versioning";
cleanInterval = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
default = "3600";
};
maxAge = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
default = "31536000";
};
};

View file

@ -7,7 +7,7 @@
services.syncthing = {
configuration = (import ./configuration-type.nix) input;
deviceName = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
};
};
};