update flakes

This commit is contained in:
Tim Schubert 2021-08-27 17:48:55 +02:00
parent 53e9374d85
commit 499b893f3e
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
6 changed files with 77 additions and 38 deletions

View file

@ -1,4 +1,6 @@
{ ... }@inputs:
{ homePage
, ...
}@inputs:
{
admin = import ./admin.nix;
backup = import ./backup.nix;
@ -7,7 +9,7 @@
fileShare = import ./fileShare.nix;
gitea = import ./gitea.nix;
headphones = import ./headphones.nix;
homepage = import ./homepage.nix;
homepage = import ./homepage.nix { inherit homePage; };
networking = import ./networking.nix;
share = import ./share.nix;
steam = import ./steam.nix;

View file

@ -1,6 +1,8 @@
{ homePage }:
{ config, pkgs, lib, ... }:
let
cfg = config.dadada.homePage;
homePagePkg = pkgs.callPackage homePage { };
in
with lib; {
options.dadada.homePage = {
@ -12,7 +14,7 @@ with lib; {
services.nginx.virtualHosts."dadada.li" = {
enableACME = true;
forceSSL = true;
root = "/var/lib/www/dadada.li";
root = "${homePagePkg}";
};
};
}