# This is equivalent to setting environment.sessionVariables.NIX_PATH
nix.nixPath = [
- "home-manager=https://github.com/rycee/home-manager/archive/master.tar.gz"
- "nixpkgs=https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz"
+ "home-manager=${pkgs.sources.home-manager.url}"
+ "nixpkgs=${pkgs.sources.nixpkgs-home-manager.url}"
];
nix.binaryCaches = [ "https://hydra.iohk.io" "https://cache.nixos.org" ];
nix.binaryCachePublicKeys = [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ];
extraDomains = {
"discourse.immae.eu" = null;
"discourse.cip-ca.fr" = null;
+ "dev.immae.eu" = null;
};
};
services.nginx = {
recommendedGzipSettings = true;
recommendedProxySettings = true;
virtualHosts = {
+ "dev.immae.eu" = {
+ acmeRoot = config.myServices.certificates.webroot;
+ useACMEHost = name;
+ forceSSL = true;
+ root = "/home/immae/www";
+ };
"discourse.immae.eu" = {
acmeRoot = config.myServices.certificates.webroot;
useACMEHost = name;