summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-04-27 12:17:34 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-04-27 12:17:34 +0200
commit7b57f336fdf057a74324cc329067300c8e52c600 (patch)
treebc1358aea8cfa326cb7be975e0df7bebe28258d9
parent9be1f3d6b5f6b054930d14975ff9a4c19e17ecce (diff)
downloadnixos-7b57f336fdf057a74324cc329067300c8e52c600.tar
nixos-7b57f336fdf057a74324cc329067300c8e52c600.tar.gz
nixos-7b57f336fdf057a74324cc329067300c8e52c600.tar.bz2
nixos-7b57f336fdf057a74324cc329067300c8e52c600.tar.xz
nixos-7b57f336fdf057a74324cc329067300c8e52c600.zip
system specifications
-rw-r--r--custom/uucp.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix
index b46ecedf..c1f148a3 100644
--- a/custom/uucp.nix
+++ b/custom/uucp.nix
@@ -10,6 +10,11 @@ let
10 reliable true 10 reliable true
11 command ${pkgs.openssh}/bin/ssh -x -o batchmode=yes ${name} 11 command ${pkgs.openssh}/bin/ssh -x -o batchmode=yes ${name}
12 ''; 12 '';
13 sysSpec = name: ''
14 system ${name}
15 time Any
16 port ${name}
17 '';
13in { 18in {
14 options = { 19 options = {
15 services.uucp = { 20 services.uucp = {
@@ -114,5 +119,12 @@ in {
114 environment.etc."uucp/port" = { 119 environment.etc."uucp/port" = {
115 text = concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); 120 text = concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes);
116 }; 121 };
122 environment.etc."uucp/sys" = {
123 text = concatStringsSep "\n" (map sysSpec config.services.uucp.remoteNodes);
124 };
125
126 security.setuidOwners = map (p: {program = p; owner = "root"; group = "root"; setuid = true; setgid = false;}) ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"];
127
128 environment.systemPackages = with pkgs; [uucp];
117 }; 129 };
118} 130}