use str instead of string

This commit is contained in:
Charlotte 🦝 Delenk 2024-10-28 11:43:52 +01:00
parent 76408a1df3
commit 32f43351d4
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ with lib; let
in { in {
options.autoContainers = mkOption { options.autoContainers = mkOption {
default = []; default = [];
type = types.listOf types.string; type = types.listOf types.str;
}; };
config = { config = {
containers = listToAttrs (map (container: { containers = listToAttrs (map (container: {

View file

@ -7,18 +7,18 @@ with lib; {
options.networking = { options.networking = {
rootHostName = mkOption { rootHostName = mkOption {
description = "Hostname of the running host"; description = "Hostname of the running host";
type = types.string; type = types.str;
default = ""; default = "";
example = "rainbow-resort"; example = "rainbow-resort";
}; };
nodeID = mkOption { nodeID = mkOption {
description = "Unique node ID"; description = "Unique node ID";
type = types.string; type = types.str;
readOnly = true; readOnly = true;
}; };
fullHostName = mkOption { fullHostName = mkOption {
description = "Full combined host name"; description = "Full combined host name";
type = types.string; type = types.str;
readOnly = true; readOnly = true;
}; };
}; };