Put home page into overlay
This commit is contained in:
parent
630e867607
commit
6da2a6bc69
4 changed files with 27 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue