X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fsystem%2Fdilion.nix;h=379117c740025efdb8bedc3ac1982716182eef85;hb=38ac9a5749743a95d27a5231d05eb93c2340e6bc;hp=d8bad6b72ed9632bf633bd63734d4a3b25db7dce;hpb=ba9412966f462a18f913cb22d9be3aae9728230f;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/system/dilion.nix b/modules/private/system/dilion.nix index d8bad6b..379117c 100644 --- a/modules/private/system/dilion.nix +++ b/modules/private/system/dilion.nix @@ -1,10 +1,12 @@ { privateFiles }: { config, pkgs, name, ... }: { + boot.supportedFilesystems = [ "zfs" ]; boot.kernelPackages = pkgs.linuxPackages_latest; myEnv = import "${privateFiles}/environment.nix" // { inherit privateFiles; }; networking = { + hostId = "27c3048d"; # generated with head -c4 /dev/urandom | od -A none -t x4 firewall.enable = false; interfaces."eth0".ipv4.addresses = pkgs.lib.attrsets.mapAttrsToList (n: ips: { address = ips.ip4; prefixLength = 32; }) @@ -101,8 +103,8 @@ # 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=" ]; @@ -114,6 +116,7 @@ extraDomains = { "discourse.immae.eu" = null; "discourse.cip-ca.fr" = null; + "dev.immae.eu" = null; }; }; services.nginx = { @@ -122,6 +125,12 @@ 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;