aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-11 00:17:41 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-11 00:17:41 +0100
commit52c3e9e710eb26d5a7b8edca154f8e99c1deaec3 (patch)
treeb4726ccb175e05b95d6e5e4bd681db9594fa1843
parent42f4b42d5082b80b5b2afc55f112ae9ec3374d68 (diff)
downloadNix-52c3e9e710eb26d5a7b8edca154f8e99c1deaec3.tar.gz
Nix-52c3e9e710eb26d5a7b8edca154f8e99c1deaec3.tar.zst
Nix-52c3e9e710eb26d5a7b8edca154f8e99c1deaec3.zip
Add users for redis and nullmailer
-rw-r--r--nixops/modules/databases/default.nix4
-rw-r--r--nixops/modules/mail/default.nix5
2 files changed, 9 insertions, 0 deletions
diff --git a/nixops/modules/databases/default.nix b/nixops/modules/databases/default.nix
index 695069d..bbacded 100644
--- a/nixops/modules/databases/default.nix
+++ b/nixops/modules/databases/default.nix
@@ -184,6 +184,10 @@ in {
184 } 184 }
185 ]; 185 ];
186 186
187 ids.uids.redis = myconfig.env.users.redis.uid;
188 ids.gids.redis = myconfig.env.users.redis.gid;
189 users.users.redis.uid = config.ids.uids.redis;
190 users.groups.redis.gid = config.ids.gids.redis;
187 services.redis = rec { 191 services.redis = rec {
188 enable = config.services.myDatabases.redis.enable; 192 enable = config.services.myDatabases.redis.enable;
189 bind = "127.0.0.1"; 193 bind = "127.0.0.1";
diff --git a/nixops/modules/mail/default.nix b/nixops/modules/mail/default.nix
index eeb28aa..6ec9165 100644
--- a/nixops/modules/mail/default.nix
+++ b/nixops/modules/mail/default.nix
@@ -1,5 +1,10 @@
1{ lib, pkgs, config, myconfig, mylibs, ... }: 1{ lib, pkgs, config, myconfig, mylibs, ... }:
2{ 2{
3 config.ids.uids.nullmailer = myconfig.env.users.nullmailer.uid;
4 config.ids.gids.nullmailer = myconfig.env.users.nullmailer.gid;
5 config.users.users.nullmailer.uid = config.ids.uids.nullmailer;
6 config.users.groups.nullmailer.gid = config.ids.gids.nullmailer;
7
3 config.services.nullmailer = { 8 config.services.nullmailer = {
4 enable = true; 9 enable = true;
5 config = { 10 config = {