diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-27 12:27:32 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-27 12:27:32 +0200 |
commit | dc6a9a2be33614e7526790abf2b5286b4558979e (patch) | |
tree | ab6ab8e2963f00f45ff4dd7188974e066cd3ba68 /custom | |
parent | b682390b7599cedda5a83760e2a8ff3c49f59e9c (diff) | |
download | nixos-dc6a9a2be33614e7526790abf2b5286b4558979e.tar nixos-dc6a9a2be33614e7526790abf2b5286b4558979e.tar.gz nixos-dc6a9a2be33614e7526790abf2b5286b4558979e.tar.bz2 nixos-dc6a9a2be33614e7526790abf2b5286b4558979e.tar.xz nixos-dc6a9a2be33614e7526790abf2b5286b4558979e.zip |
more sensible uucp user config
Diffstat (limited to 'custom')
-rw-r--r-- | custom/uucp.nix | 15 |
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 |