diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-27 12:47:34 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-27 12:47:34 +0200 |
commit | 8032fa45ce4cf74776ad526888de04cc5866105f (patch) | |
tree | 05f632c106e928dac3e59eafc8fcfd54767a3c90 /custom | |
parent | d3df4cba29788a3b5520064415e34d9cd1e34277 (diff) | |
download | nixos-8032fa45ce4cf74776ad526888de04cc5866105f.tar nixos-8032fa45ce4cf74776ad526888de04cc5866105f.tar.gz nixos-8032fa45ce4cf74776ad526888de04cc5866105f.tar.bz2 nixos-8032fa45ce4cf74776ad526888de04cc5866105f.tar.xz nixos-8032fa45ce4cf74776ad526888de04cc5866105f.zip |
uucp hostname
Diffstat (limited to 'custom')
-rw-r--r-- | custom/uucp.nix | 8 |
1 files changed, 8 insertions, 0 deletions
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 { | |||
26 | ''; | 26 | ''; |
27 | }; | 27 | }; |
28 | 28 | ||
29 | nodeName = mkOption { | ||
30 | type = types.str; | ||
31 | default = "nixos"; | ||
32 | description = "uucp node name"; | ||
33 | }; | ||
34 | |||
29 | sshUser = mkOption { | 35 | sshUser = mkOption { |
30 | type = types.attrs; | 36 | type = types.attrs; |
31 | default = {}; | 37 | default = {}; |
@@ -91,6 +97,8 @@ in { | |||
91 | config = mkIf config.services.uucp.enable { | 97 | config = mkIf config.services.uucp.enable { |
92 | environment.etc."uucp/config" = { | 98 | environment.etc."uucp/config" = { |
93 | text = '' | 99 | text = '' |
100 | hostname ${config.services.uucp.nodeName} | ||
101 | |||
94 | spool ${config.services.uucp.spoolDir} | 102 | spool ${config.services.uucp.spoolDir} |
95 | lockdir ${config.services.uucp.lockDir} | 103 | lockdir ${config.services.uucp.lockDir} |
96 | pubdir ${config.services.uucp.pubDir} | 104 | pubdir ${config.services.uucp.pubDir} |