diff options
author | Dominique Martinet @ jormungand <asmadeus@codewreck.org> | 2020-05-09 10:59:24 +0200 |
---|---|---|
committer | Dominique Martinet @ jormungand <asmadeus@codewreck.org> | 2020-05-09 10:59:24 +0200 |
commit | 743c8f54248a857039d50c884a14a5b73a5ebff7 (patch) | |
tree | e4bfbae83e63ec1396b5327cb47a15e56830d02c /machines/jormungand | |
parent | f289fd8ed251cd56fd77d9493a09b991ea152aa5 (diff) |
containers: more common config (kitty terminfo, localtime, start timeout)
Diffstat (limited to 'machines/jormungand')
-rw-r--r-- | machines/jormungand/containers.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/machines/jormungand/containers.nix b/machines/jormungand/containers.nix index d70a425..b560eb3 100644 --- a/machines/jormungand/containers.nix +++ b/machines/jormungand/containers.nix @@ -14,11 +14,16 @@ let targetConfig = { # workaround for https://github.com/NixOS/nixpkgs/issues/65690 # also allows to use overlay packages within containers! nixpkgs.pkgs = lib.mkForce pkgs; + + # site specifics + environment.systemPackages = with pkgs; [ kitty.terminfo ]; + time.timeZone = "Europe/Paris"; }; in { containers.nginx = { autoStart = true; + timeoutStartSec = "10m"; config = { config, pkgs, ... }: targetConfig // { security.acme.acceptTerms = true; security.acme.email = "nrfhrvn.ztnnzq-nfp@noclue.notk.org"; @@ -48,6 +53,7 @@ let targetConfig = { containers.mpd = { autoStart = true; + timeoutStartSec = "10m"; bindMounts = { "/var/lib/mpd/music" = { hostPath = "/home/asmadeus/zik"; }; }; @@ -96,6 +102,7 @@ let targetConfig = { containers.tor = { autoStart = true; + timeoutStartSec = "10m"; config = { config, pkgs, ... }: targetConfig // { services.tor = { enable = true; @@ -108,6 +115,7 @@ let targetConfig = { containers.vaderetro = { autoStart = true; + timeoutStartSec = "10m"; config = { config, pkgs, ... }: targetConfig // { users.extraUsers.vaderetro = { isNormalUser = true; }; environment.systemPackages = with pkgs; [ |