This commit is contained in:
Sridhar Ratnakumar 2026-05-27 21:29:04 -04:00
parent 6bb433025b
commit 87441d5270
5 changed files with 19 additions and 15 deletions

View file

@ -91,7 +91,10 @@ in
# Workaround `nixos-rebuild switch` hanging at "reloading the following units:
# dbus-broker.service". The reload step stalls (broker has long-lived clients
# holding the bus); skip reload/restart during activation. Bus policy changes
# land on next boot instead.
# land on next boot instead. Same applies to the per-user broker
# (`Failed to reload user unit dbus-broker.service` → exit 4).
systemd.services.dbus-broker.reloadIfChanged = lib.mkForce false;
systemd.services.dbus-broker.restartIfChanged = lib.mkForce false;
systemd.user.services.dbus-broker.reloadIfChanged = lib.mkForce false;
systemd.user.services.dbus-broker.restartIfChanged = lib.mkForce false;
}

View file

@ -28,6 +28,7 @@ in
{
programs.proxychains = {
enable = true;
quietMode = true;
chain.type = "strict";
proxyDNS = true;
proxies.devbox = {

13
flake.lock generated
View file

@ -793,16 +793,15 @@
},
"kolu": {
"locked": {
"lastModified": 1779546004,
"narHash": "sha256-op/9x5PI6Ku//hnt5nYmkNSX85gl8GDsttAoh4G6KAs=",
"lastModified": 1779931577,
"narHash": "sha256-2oLixiJncNbQY9qCWtuFWIWKvMtPJhDHFqExusa8zeI=",
"owner": "juspay",
"repo": "kolu",
"rev": "06d0ec7a58fcd9ba3b17f26a326f8e2ea4597b1b",
"rev": "d8c13f72b29be989352a9cfee2a3554e5541a3c9",
"type": "github"
},
"original": {
"owner": "juspay",
"ref": "feat/dock-activity-window",
"repo": "kolu",
"type": "github"
}
@ -1177,11 +1176,11 @@
]
},
"locked": {
"lastModified": 1779137063,
"narHash": "sha256-EM7vU74mCtfRANqGOv0GdLOrlGbmoFrrRxtDZYY0KZw=",
"lastModified": 1779830167,
"narHash": "sha256-j8WvZUrFIXajfk0O8jk4PnwzibgYIfrSwShy7rcnSwI=",
"owner": "juspay",
"repo": "project-unknown",
"rev": "dbc076e6781ffbf89bd86dbcb983c3b9805d5a09",
"rev": "6c54c2a6e4bdc2199010a5a1bd83c89cc67e0ea3",
"type": "github"
},
"original": {

View file

@ -36,7 +36,7 @@
jumphost-nix.flake = false;
# KOLU
kolu.url = "github:juspay/kolu/feat/dock-activity-window";
kolu.url = "github:juspay/kolu";
# anywhen is NOT a flake input — it's deployed as an incus-pet
# container, with the flake ref passed at deploy time (see

View file

@ -30,10 +30,11 @@ writers.writeHaskellBin "fuckport"
main :: IO ()
main = do
port <- Prelude.head <$> getArgs
s <- lsof "-i" (":" <> port) |> jc "--lsof" |> capture
let v = fromJust $ decode @[LsofRow] s
forM_ v $ \r -> do
putStrLn $ "Killing " <> show (pid r) <> " (" <> command r <> ")"
kill ["-KILL", show (pid r)]
ports <- getArgs
forM_ ports $ \port -> do
s <- lsof "-i" (":" <> port) |> jc "--lsof" |> capture
let v = fromJust $ decode @[LsofRow] s
forM_ v $ \r -> do
putStrLn $ "Killing " <> show (pid r) <> " (" <> command r <> ") on port " <> port
kill ["-KILL", show (pid r)]
''