Put home page into overlay

This commit is contained in:
Tim Schubert 2020-12-31 03:35:47 +01:00
parent 630e867607
commit 6da2a6bc69
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13
4 changed files with 27 additions and 7 deletions

View file

@ -1,13 +1,8 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.dadada.homePage;
homePage = import (builtins.fetchTarball {
url = "https://github.com/dadada/dadada.li/archive/c77ffc04882f32c2feced7d0f2d8ce3622060230.tar.gz";
sha256 = "1b48m13yjmw7bpm1jikydv8janys07l6l37yhs1znnj4ygl4hz1d";
});
in {
in with lib; {
options.dadada.homePage = {
enable = mkEnableOption "Enable home page";
};
@ -17,7 +12,7 @@ in {
services.nginx.virtualHosts."dadada.li" = {
enableACME = true;
forceSSL = true;
root = pkgs.callPackage homePage {};
root = pkgs.homePage;
};
};
}