From 8032fa45ce4cf74776ad526888de04cc5866105f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 27 Apr 2016 12:47:34 +0200 Subject: uucp hostname --- custom/uucp.nix | 8 ++++++++ ymir.nix | 1 + 2 files changed, 9 insertions(+) diff --git a/custom/uucp.nix b/custom/uucp.nix index a47e0157..6fabe882 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -26,6 +26,12 @@ in { ''; }; + nodeName = mkOption { + type = types.str; + default = "nixos"; + description = "uucp node name"; + }; + sshUser = mkOption { type = types.attrs; default = {}; @@ -91,6 +97,8 @@ in { config = mkIf config.services.uucp.enable { environment.etc."uucp/config" = { text = '' + hostname ${config.services.uucp.nodeName} + spool ${config.services.uucp.spoolDir} lockdir ${config.services.uucp.lockDir} pubdir ${config.services.uucp.pubDir} diff --git a/ymir.nix b/ymir.nix index 7ccde30b..755d0a2c 100644 --- a/ymir.nix +++ b/ymir.nix @@ -340,6 +340,7 @@ in rec { services.uucp = { enable = true; + nodeName = "ymir"; remoteNodes = ["isaac"]; # legacy name for odin sshUser = { openssh.authorizedKeys.keys = [ ''no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command="/var/setuid-wrappers/uucico" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEgtDHA7oDIaRwggGGznNaKZF68rFTziqefSCn1t9ZKe uucp@odin'' -- cgit v1.2.3