Add Hydra binary cache to common config

This commit is contained in:
Ehmry - 2019-09-05 17:05:14 +02:00
parent feb1b78310
commit 64f2d42a11
3 changed files with 11 additions and 6 deletions

View File

@ -1,11 +1,18 @@
{ config, pkgs, ... }:
{
imports = [./common.nix];
imports = [ ./common.nix ];
networking = {
domain = "hq.c3d2.de";
defaultGateway.address = "172.22.99.1";
users.motd = builtins.readFile ./motd;
networking.domain = "hq.c3d2.de";
nix = if config.services.nix-serve.enable then
{ }
else {
binaryCaches = [ "https://nix-serve.hq.c3d2.de" ];
binaryCachePublicKeys =
[ "nix-serve.hq.c3d2.de:FEi9GyFkou1Ua8INaEKmuGaww9E5y3XwrNGNRfKYeLo=" ];
};
}

View File

@ -1,8 +1,6 @@
{ pkgs, ... }:
{
users.motd = builtins.readFile ./motd;
users.users.k-ot = {
packages = with pkgs;
[ screen tmux ];