!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

886 Members
177 Servers

Load older messages


SenderMessageTime
27 Sep 2021
@balsoft:balsoft.rubalsoftI'm rewriting it to only create one meaningful commit and then stop updating if there are any human changes on the branch, under the assumption that if humans have pushed something they are going to merge rather soon.15:52:29
@balsoft:balsoft.rubalsoftAlso, I'll add error reporting (if it fails to update it should create an issue) and gitlab support some time in the future15:53:37
@balsoft:balsoft.rubalsoftCurrently it has rudimentary "plain git" support, but it can't submit oldschool patches via email or anything like that, it simply pushes changes to a remote branch15:54:28
@aciceri:nixos.devzrsk

If I understand correctly, the bot pushes to a branch called automatic-update in the same repository, I suppose I have to create it before, right?
And the ssh key must be that of the bot user on Github (I've to give it the write permissions in the automatic-update branch). However could I use also my ssh key specifying a custom author.name? In this case giving permissions wouldn't be necessary since I would have a single GIthub account.

However I understand the problem you exposed, I hope you solve it soon, it's a nice project that could be used by many since the increment of people passing to Flake.

16:04:42
@balsoft:balsoft.rubalsoft
In reply to @aciceri:nixos.dev

If I understand correctly, the bot pushes to a branch called automatic-update in the same repository, I suppose I have to create it before, right?
And the ssh key must be that of the bot user on Github (I've to give it the write permissions in the automatic-update branch). However could I use also my ssh key specifying a custom author.name? In this case giving permissions wouldn't be necessary since I would have a single GIthub account.

However I understand the problem you exposed, I hope you solve it soon, it's a nice project that could be used by many since the increment of people passing to Flake.

  1. The bot will automatically create the update branch if it doesn't exist
  2. Yes, the ssh key must have push permission to the repository. You can use author.name but that would only affect commits, not the github interface (e.g. the pull requests will still show you as the initiator)
16:07:16
@balsoft:balsoft.rubalsoftThe "problem" is not actually a showstopper, more of an annoyance.16:07:31
@balsoft:balsoft.rubalsoft See for example https://github.com/serokell/pegasus-infra/pull/23 16:07:44
@balsoft:balsoft.rubalsoftWhere we just resorted to manually updating in a separate pull request rather than dealing with all the commits16:08:10
@aciceri:nixos.devzrsk
In case any of the flakes fail to update, update-daemon will exit with a non-zero exit code (but still finish updating all the other flakes);

But what does this (from README) mean?
It fails only if the strings replacement in flake.lock fails or is it also running tests/checks?

16:15:14
@balsoft:balsoft.rubalsoft
In reply to @aciceri:nixos.dev
In case any of the flakes fail to update, update-daemon will exit with a non-zero exit code (but still finish updating all the other flakes);

But what does this (from README) mean?
It fails only if the strings replacement in flake.lock fails or is it also running tests/checks?

It fails if some part of the operation fails.
16:39:12
@balsoft:balsoft.rubalsoftIt doesn't run any checks, it goes through the usual review process, which includes CI16:39:34
@yusdacra:nixos.devyusdacra changed their profile picture.19:50:47
28 Sep 2021
@anderscs:matrix.organderscs joined the room.14:23:28
@astro:envs.netAstro joined the room.19:14:09
@deeunderscore:feneas.orgDee hm, running nix flake metadata on a dirty Nixpkgs tree takes about 7 seconds, but running it on a clean tree isn't done even after 70 seconds 22:49:29
@deeunderscore:feneas.orgDeeI assume this is because with a clean tree it... counts the commits or something?22:49:40
@edrex:matrix.orgedrex balsoft I'm reading some of your nixos-config modules for ideas 22:55:46
@edrex:matrix.orgedrexi'm curious about the pass-based secrets management and using envsubst. Have you written about that anywhere (issue threads, design notes or whatnot)?22:57:50
@edrex:matrix.orgedrexi'm working on a module for setting up device-specific stuff esp networking (like, which interfaces are trusted LAN, etc so I can configure everything with a consistent policy. your devices module is a good template for that sort of thing (nothing non-obvious in it, i just like following established patterns over making up my own)23:00:48
@balsoft:balsoft.rubalsoft
In reply to @edrex:matrix.org
i'm curious about the pass-based secrets management and using envsubst. Have you written about that anywhere (issue threads, design notes or whatnot)?
Nope, not yet
23:02:32
@edrex:matrix.orgedrexi didn't know envsubst existed.23:03:06
@balsoft:balsoft.rubalsoftIt's quite... hacky23:03:14
@balsoft:balsoft.rubalsoftSo I'm not sure it's actually something to be reused as-is23:03:24
@balsoft:balsoft.rubalsoftBut it's a good source of inspiration I think23:03:34
@edrex:matrix.orgedrexyeah23:03:36
@edrex:matrix.orgedrexi'm using agenix and quite happy with it, with a few nits23:04:51
@balsoft:balsoft.rubalsoft
In reply to @edrex:matrix.org
i'm working on a module for setting up device-specific stuff esp networking (like, which interfaces are trusted LAN, etc so I can configure everything with a consistent policy. your devices module is a good template for that sort of thing (nothing non-obvious in it, i just like following established patterns over making up my own)
Note that most of my config is pretty NIH/reinventing-the-wheel-ish
23:04:53
@balsoft:balsoft.rubalsoftThe learning experience is as important as actually getting a good system going.23:07:22
@edrex:matrix.orgedrexI feel nixos as it is rewards a certain level of willingness and experience blazing trail23:07:51
@edrex:matrix.orgedrexit's really both a programming language community and a linux distro, which is kind of unique.23:09:44

Show newer messages


Back to Room ListRoom Version: 6