summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-03-24 18:31:39 +0100
committertv <tv@shackspace.de>2015-05-19 23:14:32 +0200
commitbca15281f911b2e41eb7189cad706ed9698cac43 (patch)
tree15de1f367ccab686d03986ac4379b92d323d387c
parent8cded0bb8a5fe0a5b47452490334b7306aa5413f (diff)
host cd: add user "mv"
-rw-r--r--cd.nix15
-rw-r--r--modules/exim-cd.nix3
2 files changed, 17 insertions, 1 deletions
diff --git a/cd.nix b/cd.nix
index b105fbb8d..70c8a85ab 100644
--- a/cd.nix
+++ b/cd.nix
@@ -20,6 +20,7 @@
htop
iftop
iotop
+ mutt # for mv
nethogs
rxvt_unicode.terminfo
tcpdump
@@ -95,7 +96,21 @@
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDYv5OkVrnerkzJwgi7ol7HzcWJf4oWCJTX84trFX5vgJXu1zMvSe+koY8xpnMOd7WHF2wgsjjrFlMuixTrfMPc/OjvG2N1TlnvzlFD8ivTW/AJzDwNxT//niqAYAZ9kmb8e/zE/SyNHSKZcyEKGiiW2+YW9wWHPYRP/XiNEjLP3BeTGScMwWr001V/8m7ne4SGHrE1FbHbHqaBXgqUFgnvzMY3CsfDafODZlj5xSMNGHyLGNNKvu3YR1crcAjbQrBXBdwaArThFxp+e2uWrnffshlks6WtRyR1AFVjc/gxEG74Axq1AHY6EJm2Fw/JdFNiYQ7yyQZHS9bZJYjgnWF tv@nomic"
];
};
+
+ mv = rec {
+ name = "mv";
+ uid = 1338;
+ group = "users";
+ home = "/home/${name}";
+ createHome = true;
+ useDefaultShell = true;
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGer9e2+Lew7vnisgBbsFNECEIkpNJgEaqQqgb9inWkQ mv@vod"
+ ];
+ };
+
};
+
users.mutableUsers = false;
}
diff --git a/modules/exim-cd.nix b/modules/exim-cd.nix
index b28f39437..a4c47b399 100644
--- a/modules/exim-cd.nix
+++ b/modules/exim-cd.nix
@@ -41,6 +41,7 @@ in
{ from = "noc"; to = "root"; }
{ from = "security"; to = "root"; }
{ from = "root"; to = "tv"; }
+ { from = "mirko"; to = "mv"; }
];
to-lsearch = concatMapStringsSep "\n" ({ from, to }: "${from}: ${to}");
@@ -276,7 +277,7 @@ in
driver = appendfile
maildir_format
maildir_use_size_file
- directory = $home/Maildir
+ directory = $home/Mail
directory_mode = 0700
delivery_date_add
envelope_to_add