!zghijEASpYQWYFzriI:nixos.org

Hydra

393 Members
110 Servers

Load older messages


SenderMessageTime
8 Apr 2022
@tilpner:tx0.cotilpneryeah, that's fair :)21:06:32
@ma27:nicht-so.sexyma27
In reply to @tilpner:tx0.co
I have private = true in my config, and it seems to return a 403 unless signed in for every page
I implemented https://github.com/NixOS/hydra/pull/919 for private projects a while ago
21:09:24
@ma27:nicht-so.sexyma27
In reply to @tilpner:tx0.co
Hi ma27, which plugin did you write https://github.com/NixOS/hydra/pull/922 for? You mention e.g. the gitea status plugin, which (as you pointed out) requires a git input, and then to set gitea_status_repo to the name of that input. Is there some hidden flake input, or is that still incompatible with the flakes mode?
no it isn't. I add a second git input, so each repo is cloned twice. Dirty, but it gets the job done for now.
21:10:14
@tilpner:tx0.cotilpnerohh! I assumed "Jobset Inputs don't take any effect for flakes" meant that any non-String inputs would just be ignored, I'll try adding a second input for now21:11:51
@ma27:nicht-so.sexyma27see for instance https://hydra.ist.nicht-so.sexy/jobset/nvim-nix/master#tabs-configuration and the inputs configured for that jobset in https://hydra.ist.nicht-so.sexy/eval/699#tabs-inputs.21:14:00
@tilpner:tx0.cotilpner
In reply to @ma27:nicht-so.sexy
see for instance https://hydra.ist.nicht-so.sexy/jobset/nvim-nix/master#tabs-configuration and the inputs configured for that jobset in https://hydra.ist.nicht-so.sexy/eval/699#tabs-inputs.
thank you for the reference! I can't seem to make hydra report any status yet, but that could be a misconfigured gitea token/user account, or these evaluation errors...
21:41:54
9 Apr 2022
@tilpner:tx0.cotilpnerAre there any workarounds for automatic updates in flake mode, or does everyone with that requirement still use legacy mode and flake-compat?13:04:24
@artturin:matrix.orgArtturin
In reply to @tilpner:tx0.co
Are there any workarounds for automatic updates in flake mode, or does everyone with that requirement still use legacy mode and flake-compat?
automatic updates of what?
13:10:55
@rick:matrix.ciphernetics.nlRick (Mindavi)NixOS, I assume13:24:49
@tilpner:tx0.cotilpner
In reply to @artturin:matrix.org
automatic updates of what?
Automatic updates of flake inputs
13:37:17
@amanda:camnet.siteAmanda (she/her) I use a systemd timer on my homelab that does a regular clone, nix flake update commit and push 13:38:31
@tilpner:tx0.cotilpner* Automatic updates of flake inputs, e.g. the source code of an application, or even nixpkgs inputs for a nixosConfiguration flake13:40:38
@amanda:camnet.siteAmanda (she/her)If your useing GitHub you can probably make GitHub actions do it13:42:00
@amanda:camnet.siteAmanda (she/her)But I want to self host my stuff so it's just a systemd timer that updates the flake lock every Wednesday at midnight, then my hydra will build it all so in the morning I can see if it's okay to update13:43:16
@amanda:camnet.siteAmanda (she/her)If not, I can just revert the lock update13:43:44
@amanda:camnet.siteAmanda (she/her)With flakes the inputs become part of the source code, so usual source code workflows apply13:45:00
@tilpner:tx0.cotilpnerI have considered that, but it seems odd to have add-on tasks outside of hydra for something that hydra could already do in legacy mode13:46:40
@tilpner:tx0.cotilpner Also, I'd like much lower git-push-to-deployed latencies than would be possible with even hourly nix flake update timers 13:47:45
@amanda:camnet.siteAmanda (she/her)Flakes are meant to provide more reproducibility. I suppose hydra could have a mode to do the git updates for you, but that seems out of scope13:47:50
@tilpner:tx0.cotilpner

I understand automatic updates don't exactly fit the design of flakes, but this reems to be a recurring problem:

  • https://www.reddit.com/r/NixOS/comments/js5fxv/using_hydra_with_flakes_without_lock/
  • https://www.reddit.com/r/NixOS/comments/negjsu/people_who_use_nix_flakes_for_their_system_config/
13:48:21
@amanda:camnet.siteAmanda (she/her)They don't just "not exactly" fit, they're pretty much antithetical 13:49:15
@amanda:camnet.siteAmanda (she/her)The idea with flakes is you can pull a git repo, and get exactly the same output no matter when you do it13:49:52
@tilpner:tx0.cotilpnerand I appreciate that property for manual builds and deployments, it's just with hydra where it becomes a problem for automatic deployments :)13:50:53
@tilpner:tx0.cotilpnersure, I could whip up a small webhook receiver to automatically forward pushed in one repo to flake updates in another, but that feels very inelegant13:52:08
@amanda:camnet.siteAmanda (she/her)You probably don't want stuff changing it from under you for automatic deployments, see: node and the recent "protestware" package updates13:52:08
@amanda:camnet.siteAmanda (she/her)* You probably don't want stuff changing out from under you for automatic deployments, see: node and the recent "protestware" package updates13:52:25
@tilpner:tx0.cotilpnerI have two flakes, one for the system definitions, and one for an application. If I push a new commit to the application, I'd like hydra to build and check it, and then deploy it13:53:17
@tilpner:tx0.cotilpnerThat would work fine even in flakes mode, if it were a monorepo. As both repos are under my control, I'm not worried about malicious package updates, though of course these automatic updates should be selective13:54:50
@tilpner:tx0.cotilpnerI suppose I could configure hydra to execute a script after a build of the application repo finishes, which pushes a commit to the systems repo to trigger a deployment of that13:57:20
@tilpner:tx0.cotilpner(https://github.com/NixOS/hydra/pull/1103 would be neat for that)13:59:03

Show newer messages


Back to Room ListRoom Version: 6