!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

911 Members
For people hacking on the Nix package manager itself191 Servers

Load older messages


SenderMessageTime
9 Jun 2021
@manveru:matrix.orgmanveru and self.rev is only set if the flake isn't dirty 11:53:54
@joerg:bethselamin.deMic92 (Old)the whole flake or just the submodule?11:54:08
@joerg:bethselamin.deMic92 (Old) If the whole flake needs to be clean than this is useless 11:54:52
@manveru:matrix.orgmanveruyeah... i know :|11:55:23
@manveru:matrix.orgmanverusubmodules cost me more weeks of my life than i'd dare to count11:55:48
@manveru:matrix.orgmanveru also in theory you can pass submodules = true for flake inputs, but i think that's still broken 11:56:53
@manveru:matrix.orgmanveruhttps://github.com/NixOS/nix/issues/4423 has more info11:59:39
@manveru:matrix.orgmanverualso related https://github.com/NixOS/nix/pull/4435 for that inputs issue12:02:00
@manveru:matrix.orgmanverui tried fixing that, but couldn't get it right :|12:02:14
@Las:matrix.orgLasSubmodules for flakes are still broken14:18:09
@Las:matrix.orgLas
In reply to @manveru:matrix.org
also in theory you can pass submodules = true for flake inputs, but i think that's still broken
I couldn't get this to work
14:18:39
@sophrosyne97:mozilla.orgSophrosyne joined the room.15:30:55
@sophrosyne97:mozilla.orgSophrosyne changed their display name from sophrosyne97 to Sophrosyne.17:10:28
@rycee:rycee.netrycee abathur: Generally speaking my use-case for user-installable suid programs would be something like Gnome Keyring or xscreensaver, which rely on being run as suid for some functionality. For example, starting xscreensaver prints "OOM: /proc/127568/oom_score_adj: Permission denied: To prevent the kernel from randomly unlocking your screen via the out-of-memory killer, "xscreensaver-auth" must be setuid root.". 21:11:57
@rycee:rycee.netrycee Mic92: Yeah, seems like a really tricky problem to solve. I was thinking about some kind of signature system that would allow signed packages to be installed with extra capabilities (such as suid) if the signer is trusted by the system. 21:21:17
10 Jun 2021
@abathur:matrix.orgabathur rycee: graham pointed me at a doc about a "pivots" concept recently when I was asking about these from resholve's perspective; it looks like maybe the canonical source is https://gist.github.com/Infinisil/3366e7dfc9a01f6eeb25b5cb475cc585 00:30:56
@abathur:matrix.orgabathur * rycee: graham pointed me at a doc about a "pivots" concept recently when I was asking about these from resholve's perspective; it looks like maybe the canonical source (not sure; just guessing because it has a proof-of-concept...) is https://gist.github.com/Infinisil/3366e7dfc9a01f6eeb25b5cb475cc585 00:32:21
@ma27:nicht-so.sexyma27Anything missing from me to get https://github.com/NixOS/nix/pull/4770 merged? :) 10:52:01
@ldesgoui:matrix.orgldesgouiHey, say I wanted to build/check a flake in recursive-nix, I do have its lockfile, is that possible at the moment? Would that respect the restrictions of not doing arbitrary substitutions? I'm trying stuff out but I'm hitting my head against the sandbox I believe11:36:58
@ldesgoui:matrix.orgldesgouiI suppose I should explain what I'm trying to do, I would like to have a derivation create a machine-readable report from the results of building/checking a flake, even the failing derivations, from what I can tell recursive-nix would be the only way11:43:58
@ldesgoui:matrix.orgldesgouiLet me know if this is the wrong channel to ask in11:46:36
@manveru:matrix.orgmanveru ldesgoui: i'm in a similar boat atm... tried getting nixos-rebuild with a flake to work, but the build fails because it cannot download the flake inputs 11:54:03
@manveru:matrix.orgmanverui think one could maybe work around that by creating all the cache directories Nix wants... but that's really hard :|11:56:12
@manveru:matrix.orgmanveru * i think one could maybe work around that by creating all the caches Nix wants... but that's really hard :|11:56:23
@manveru:matrix.orgmanveruit definitely makes trying to write a nixos test for bootstrapping my cluster hard, but i guess i could simplify it by referencing the flake directly, copying it over, and just calling the activation script myself12:01:56
@infinisil:matrix.orginfinisilabathur: rycee: Yeah that's the original source, written by graham and me12:09:52
@krey:matrix.orgKrey joined the room.13:56:47
* @krey:matrix.orgKrey created https://github.com/NixOS/nixpkgs/issues/12648213:59:16
@krey:matrix.orgKrey[kreyren@leonid:/etc/nixos]$ cat configuration.nix | ix http://ix.io/3pt Howddya get the variable available in the imports? U_U15:39:36
* @krey:matrix.orgKrey created https://github.com/NixOS/nixpkgs/issues/12649616:16:34

Show newer messages


Back to Room ListRoom Version: 6