flake parts, migrated modules

This commit is contained in:
Danilo Reyes
2025-10-12 13:41:48 -06:00
parent 6497dede6f
commit 6f97b24115
41 changed files with 359 additions and 166 deletions

View File

@@ -1,10 +1,14 @@
{ lib, config, ... }:
{
lib,
config,
inputs,
...
}:
let
cfg = config.my.servers.homepage;
setup = import ../factories/mkserver.nix { inherit lib config; };
in
{
options.my.servers.homepage = setup.mkOptions "homepage" "home" 8082;
options.my.servers.homepage = inputs.self.lib.mkServerOptions "homepage" "home" 8082 lib;
config = lib.mkIf config.my.secureHost {
sops.secrets = lib.mkIf cfg.enable {
homepage.sopsFile = ../../secrets/homepage.yaml;