summaryrefslogtreecommitdiff
path: root/custom/uucp.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/uucp.nix')
-rw-r--r--custom/uucp.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix
index 8a9a1df6..07724ff7 100644
--- a/custom/uucp.nix
+++ b/custom/uucp.nix
@@ -29,12 +29,6 @@ in {
29 sshUser = mkOption { 29 sshUser = mkOption {
30 type = types.attrs; 30 type = types.attrs;
31 default = { 31 default = {
32 name = "uucp";
33 isSystemUser = true;
34 isNormalUser = false;
35 createHome = true;
36 home = "/var/spool/uucp";
37 description = "User for uucp over ssh";
38 }; 32 };
39 description = "The local uucp linux-user"; 33 description = "The local uucp linux-user";
40 }; 34 };
@@ -109,7 +103,14 @@ in {
109 ''; 103 '';
110 }; 104 };
111 105
112 users.users."uucp" = config.services.uucp.sshUser; 106 users.users."uucp" = {
107 name = "uucp";
108 isSystemUser = true;
109 isNormalUser = false;
110 createHome = true;
111 home = config.services.uucp.spoolDir;
112 description = "User for uucp over ssh";
113 } // config.services.uucp.sshUser;
113 114
114 system.activationScripts."uucp-sshconfig" = '' 115 system.activationScripts."uucp-sshconfig" = ''
115 mkdir -p ${config.users.users."uucp".home}/.ssh 116 mkdir -p ${config.users.users."uucp".home}/.ssh