summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/uucp.nix8
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}