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:
committed by
GitHub
parent
8d05f43594
commit
3c6106d06a
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user