From c0bfedefa311252e239e8609e110f130b2b2b166 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 6 Jan 2020 14:11:15 +0100 Subject: address warnings --- custom/uucp.nix | 30 +++++++++++++++--------------- sif.nix | 10 +++++----- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/custom/uucp.nix b/custom/uucp.nix index 3ee52269..7fccb7e5 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -46,31 +46,31 @@ let nodeCfg = { options = { commands = mkOption { - type = types.listOf types.string; + type = types.listOf types.str; default = cfg.defaultCommands; description = "Commands to allow for this remote"; }; protocols = mkOption { - type = types.string; - default = cfg.defaultProtocols; - description = "UUCP protocols to use for this remote"; + type = types.separatedString ""; + default = cfg.defaultProtocols; + description = "UUCP protocols to use for this remote"; }; publicKeys = mkOption { - type = types.listOf types.string; + type = types.listOf types.str; default = []; description = "SSH public keys for this node"; }; generateKey = mkOption { - type = types.listOf types.string; + type = types.listOf types.str; default = [ "-t" "ed25519" "-N" "" ]; description = "Arguments to pass to `ssh-keygen` to generate a keypair for communication with this host"; }; hostnames = mkOption { - type = types.listOf types.string; + type = types.listOf types.str; default = []; description = "Hostnames to try in order when connecting"; }; @@ -125,19 +125,19 @@ in { }; defaultCommands = mkOption { - type = types.listOf types.string; + type = types.listOf types.str; default = ["rmail"]; description = "Commands allowed for remotes without explicit override"; }; defaultProtocols = mkOption { - type = types.string; - default = "te"; - description = "UUCP protocol to use within ssh unless overriden"; + type = types.separatedString ""; + default = "te"; + description = "UUCP protocol to use within ssh unless overriden"; }; incomingProtocols = mkOption { - type = types.string; + type = types.separatedString ""; default = "te"; description = "UUCP protocols to use when called"; }; @@ -209,7 +209,7 @@ in { }; extraConfig = mkOption { - type = types.string; + type = types.lines; default = '' run-uuxqt 1 ''; @@ -217,11 +217,11 @@ in { }; extraSys = mkOption { - type = types.string; + type = types.lines; default = '' protocol-parameter g packet-size 4096 ''; - description = "Extra configuration to prepend verbatim to `/etc/uucp/sys`"; + description = "Extra configuration to prepend verbatim to `/etc/uucp/sys`"; }; }; }; diff --git a/sif.nix b/sif.nix index 815a5caf..504f556b 100644 --- a/sif.nix +++ b/sif.nix @@ -41,10 +41,10 @@ powerManagement.enable = true; - i18n = { - consoleFont = "lat9w-16"; - consoleKeyMap = "dvp"; - defaultLocale = "en_US.UTF-8"; + i18n.defaultLocale = "en_US.UTF-8"; + console = { + font = "lat9w-16"; + keyMap = "dvp"; }; boot.kernelPackages = pkgs.linuxPackages_latest; @@ -312,7 +312,7 @@ bluetooth = { enable = true; - extraConfig = '' + config = '' [General] Enable=Source,Sink,Media,Socket ''; -- cgit v1.2.3