Eliminate hub-overrides.nix: write feature toggles into custom.nix instead

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/db82f216-af3e-4d7f-a972-86c03f23e069

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-03 14:28:24 +00:00
committed by GitHub
parent 8d05f43594
commit 3c6106d06a
3 changed files with 53 additions and 43 deletions

View File

@@ -283,24 +283,6 @@ in
};
};
systemd.services.hub-overrides-init = {
description = "Initialize hub-overrides.nix if missing";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
unitConfig.ConditionPathExists = "!/etc/nixos/hub-overrides.nix";
script = ''
cat > /etc/nixos/hub-overrides.nix <<'EOF'
# Auto-generated by Sovran Hub do not edit manually
{ lib, ... }:
{
}
EOF
'';
};
networking.firewall.allowedTCPPorts = [ 8937 ];
};
}