homepage: wip cal, weather + secret hidden
This commit is contained in:
@@ -13,13 +13,18 @@ in
|
||||
enable = true;
|
||||
listenPort = cfg.port;
|
||||
environmentFile = config.sops.secrets.homepage.path;
|
||||
settings.layout = import ./homepage/layout.nix;
|
||||
settings = {
|
||||
providers.openweathermap = "ca54bc3999f608a5ad6e48b9c6c002ec";
|
||||
layout = import ./homepage/layout.nix;
|
||||
};
|
||||
widgets = import ./homepage/widgets.nix;
|
||||
services = import ./homepage/services.nix { inherit lib config; };
|
||||
bookmarks =
|
||||
builtins.readDir ./homepage/bookmarks
|
||||
|> builtins.attrNames
|
||||
|> builtins.filter (file: builtins.match ".*\\.nix" file != null)
|
||||
|> builtins.filter (
|
||||
file: builtins.match ".*\\.nix" file != null && !(builtins.match "^secret-.*" file != null)
|
||||
)
|
||||
|> map (file: import ./homepage/bookmarks/${file});
|
||||
};
|
||||
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverse cfg);
|
||||
|
||||
Reference in New Issue
Block a user