worldofpeace changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | NixOS 20.09 Nightingale ✨ https://discourse.nixos.org/t/nixos-20-09-release/9668 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | https://r13y.com | 20.09 RMs: worldofpeace, jonringer | https://logs.nix.samueldr.com/nixos-dev
mkaito has quit [Quit: WeeChat 3.1]
<cole-h> Regnat[m]: Any chance you {c,w}ould merge https://github.com/NixOS/nix/pull/4657, so I can build Nix from master again? <:D
<{^_^}> nix#4657 (by Ericson2314, 8 hours ago, open): Fix typos in the last PR #4656
eyJhb has quit [Ping timeout: 246 seconds]
eyJhb has joined #nixos-dev
eyJhb has joined #nixos-dev
eyJhb has quit [Changing host]
eyJhbV2 has joined #nixos-dev
eyJhb has quit [Ping timeout: 240 seconds]
eyJhbV2 is now known as eyJhb
eyJhb has joined #nixos-dev
eyJhb has quit [Changing host]
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos-dev
rajivr has joined #nixos-dev
Raito_Bezarius has quit [Remote host closed the connection]
Raito_Bezarius has joined #nixos-dev
orivej has quit [Ping timeout: 264 seconds]
__monty__ has quit [Quit: leaving]
<abathur> does nixland have a solution for software LOCALE inconsistency/conflict?
<{^_^}> oilshell/oil#868 (by andychu, 15 weeks ago, open): dev build locales issue
<{^_^}> oilshell/oil#912 (by rsteube, 14 hours ago, open): archlinux: Invalid locale for LC_CTYPE
jonringer_ has joined #nixos-dev
jonringer has quit [Ping timeout: 244 seconds]
supersandro2000 has quit [Quit: The Lounge - https://thelounge.chat]
supersandro2000 has joined #nixos-dev
<supersandro2000> has anyone any idea why I get `failed due to signal 6 (Aborted)` when remote building on a week long running machine?
<supersandro2000> went away after reboot.
<supersandro2000> it didn't build halfway and broken again
evils has joined #nixos-dev
tomberek has quit [Ping timeout: 240 seconds]
<LinuxHackerman> consistently at a specific point?
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 244 seconds]
jonringer_ has quit [Ping timeout: 264 seconds]
cole-h has quit [Ping timeout: 246 seconds]
<supersandro2000> as soon as it tries to build the package and no longer downloads stuff it dies
<ma27[m]> supersandro2000: are you on nixUnstable?
<supersandro2000> the remote builder might be
<ma27[m]> ahh sorry, I thought I got the same error on nixUnstable a while ago, but it was "unknown message type 5". nvm then, not entirely awake yet :)
<supersandro2000> everything after nixos-unstable-small coredumps... 🤔
<supersandro2000> I am coming to the conclusion that since https://github.com/NixOS/nixpkgs/commit/e6b2664b3522567f70ef5b3aa4bc646d6739bb01 it core dumps
<supersandro2000> but the commit is totally unrelated
AlwaysLivid has joined #nixos-dev
orivej has joined #nixos-dev
FRidh has joined #nixos-dev
Raito_Bezarius has quit [Ping timeout: 260 seconds]
<supersandro2000> I think I know what is happening
<supersandro2000> they builders use each other as substituters and we got a bad nix store entry which propagated
<supersandro2000> disabling substituters on one machine magically fixed it
pmy has quit [Quit: WeeChat 3.1]
__monty__ has joined #nixos-dev
<sterni> tarball for unstable-small builds again https://hydra.nixos.org/eval/1657374#tabs-now-succeed
<sterni> tested job has 7 pending builds and then unstable small should be alright again
pmy has joined #nixos-dev
AlwaysLivid has quit [Remote host closed the connection]
AlwaysLivid has joined #nixos-dev
makefu has quit [Quit: WeeChat 2.6]
AlwaysLivid has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 265 seconds]
pmy has quit [Quit: WeeChat 3.1]
Taneb has quit [Ping timeout: 264 seconds]
atriq has joined #nixos-dev
atriq is now known as Taneb
<supersandro2000> Does someone have time to debug something with me in nix?`
<supersandro2000> I think I get a coredump, when I build a derivation on a remote builder that uses substitutes
<supersandro2000> https://termbin.com/s5tys
<supersandro2000> before anyone wastes time with that: the bug is with nix 2.3.4 from debian...
FRidh has quit [Quit: Konversation terminated!]
rj has joined #nixos-dev
<supersandro2000> and I finally have my builders back. Thanks for rubber ducking with me! 🦆
<siraben> supersandro2000: what ended up being the issue?
<supersandro2000> using the nix-daemon from debian which is 2.3.4
<siraben> oof
<supersandro2000> I think the remote builders might have gotten an update the last day or 20.09 got a nix update or something
<supersandro2000> so it broke
<supersandro2000> Should I create an issue with the coredump? might be a protocol error
<siraben> I should update my nixpkgs-review
<siraben> or Mic92 can push an update 😂 because my version still enables sandboxing on darwin
<supersandro2000> you should get the one from master on nix-community
<siraben> nix-review-tools?
<siraben> Oh is that better?
<supersandro2000> don't exactly know whats that
<supersandro2000> probably some tooling for other stuff
<siraben> which repo are you referring to?
<supersandro2000> you could do an overlay just for nixpkgs-review
<siraben> yeah I could do an overlay/niv source for nixpkgs-review
<siraben> bah, i'm going to flakify my home-manager one of these days
<supersandro2000> you don't need niv for that
<supersandro2000> you just fetch new source
<siraben> it makes it easier to update the hashes
<supersandro2000> I still don't like flakes. I don't want to commit thinks and update more lock files
<supersandro2000> I usually just invalidate the hash
<s1341_> how can I import mkDerivation without importing stdenv?
<siraben> supersandro2000: fair enough, flakes are after all, still experimental
<s1341_> i mean have mkDerivation be an argument to a derivation instead of stdenv?
<siraben> the author really wants his POP system merged... #114449
<{^_^}> https://github.com/NixOS/nixpkgs/pull/114449 (by fare, 3 weeks ago, open): Update Gambit, Gerbil, Glow
<siraben> which i wonder how many people actually understand
boredom101 has joined #nixos-dev
<sterni> siraben: why would you want that? mkDerivation always implicitly pulls in a stdenv anyways
<siraben> wrong ping
<sterni> whoops
<sterni> s1341_: ^^
<s1341_> becasue i have an infinite recursion when trying to build a cross toolchain for android/bionic.
<s1341_> using llvm.
<s1341_> it works fine with gcc
<s1341_> but with llvm it recurses...
<s1341_> @stermi ^
<s1341_> @sterni ^
<sterni> not sure what exactly you are doing but importing stdenv in derivation shouldn't be the issue
<s1341_> ok.
<s1341_> sterni: i have this:
<s1341_> shouldn't that make the stdenv be different for the bionic-prebuilt derivation?
boredom101 has quit [Ping timeout: 240 seconds]
boredom10160 has joined #nixos-dev
jonringer_ has joined #nixos-dev
<supersandro2000> s1341_: stdenvNoCC.mkDerivation?
boredom10160 has quit [Client Quit]
<s1341_> uh. yeah that might work...
<siraben> supersandro2000: reminds me I need to look into all the dontBuild = true packages and switch them to stdenvNoCC when possible
<s1341_> ok. got past the recursion...
<s1341_> now i have another issue...
<s1341_> i think i need Ericson2314
<Ericson2314> ok
<s1341_> yay! Ericson2314
<s1341_> !!!
<siraben> lol
<siraben> summoned
<Ericson2314> notifications work that way!
<supersandro2000> siraben: you could also look at ? null and assert not null packages
<supersandro2000> because it is pointless and makes working with those packages needlessly hard
<siraben> supersandro2000: switch them to boolean flags?
<siraben> sure, maybe it's small enough to crack out manually
<siraben> convert `foo ? null` to `enableFoo ? false`, right?
<supersandro2000> they are already
<supersandro2000> enableFoo ? true, foo ? null; \n\n\n assert foo => !null;
<siraben> supersandro2000: convert that to what?
<siraben> yeah I've seen that pattern a few times
<supersandro2000> it is a bit pointless now days
pmy has joined #nixos-dev
<supersandro2000> packages are not allowed to be null
<supersandro2000> I think this should be a good example https://github.com/NixOS/nixpkgs/commit/c560f7954ec59cfb61c58021daadc16ec13ee481
<supersandro2000> it basically converts to removal of ? null and the assert because nix does all that already
<supersandro2000> and packages only required for other platforms are not evaluated anyway
<supersandro2000> same for darwin frameworks. They don't need ? null.
boredom101 has joined #nixos-dev
<supersandro2000> cole-h: https://github.com/NixOS/nixpkgs/pull/117295 fails consistently for me
<{^_^}> #117295 (by cole-h, 16 hours ago, open): nixUnstable: add util-linuxMinimal to buildInputs
<siraben> supersandro2000: Ok, good to know for another treewide.
orivej has joined #nixos-dev
<siraben> 🎉
<supersandro2000> my nix-build still coredumps... https://termbin.com/b2zi
adisbladis has quit [Remote host closed the connection]
pbogdan has quit [Ping timeout: 245 seconds]
hl has quit [Read error: Connection reset by peer]
davidak[m] has quit [Ping timeout: 246 seconds]
maralorn has quit [Ping timeout: 246 seconds]
garbas[m] has quit [Ping timeout: 246 seconds]
colemickens has quit [Ping timeout: 246 seconds]
regnat[m] has quit [Ping timeout: 246 seconds]
pbogdan has joined #nixos-dev
hl has joined #nixos-dev
supersandro2000 has quit [Ping timeout: 245 seconds]
Ox4A6F has quit [Ping timeout: 240 seconds]
supersandro2000 has joined #nixos-dev
Ericson2314 has quit [Ping timeout: 240 seconds]
adisbladis has joined #nixos-dev
philipp[m]1 has quit [Ping timeout: 244 seconds]
rmcgibbo[m] has quit [Ping timeout: 244 seconds]
kraem[m] has quit [Ping timeout: 258 seconds]
Valodim[m] has quit [Ping timeout: 258 seconds]
LinuxHackerman has quit [Ping timeout: 268 seconds]
chvp has quit [Ping timeout: 268 seconds]
aanderse has quit [Ping timeout: 240 seconds]
rnhmjoj has quit [Ping timeout: 240 seconds]
JJJollyjim has quit [Ping timeout: 240 seconds]
michaelpj has quit [Ping timeout: 244 seconds]
jonge[m] has quit [Ping timeout: 244 seconds]
symphorien[m] has quit [Ping timeout: 244 seconds]
thefloweringash has quit [Ping timeout: 258 seconds]
Dandellion has quit [Ping timeout: 268 seconds]
ryantm has quit [Ping timeout: 268 seconds]
ma27[m] has quit [Ping timeout: 240 seconds]
bbigras has quit [Ping timeout: 240 seconds]
jtojnar has quit [Ping timeout: 240 seconds]
roberth has quit [Ping timeout: 240 seconds]
siraben has quit [Ping timeout: 244 seconds]
danielrf[m] has quit [Ping timeout: 244 seconds]
immae has quit [Ping timeout: 240 seconds]
nh2[m] has quit [Ping timeout: 240 seconds]
puzzlewolf has quit [Ping timeout: 258 seconds]
zimbatm[m] has quit [Ping timeout: 258 seconds]
emily has quit [Ping timeout: 268 seconds]
jdnixx-M has quit [Ping timeout: 268 seconds]
ky0ko1 has quit [Ping timeout: 268 seconds]
arianvp has quit [Ping timeout: 265 seconds]
zuh0 has quit [Ping timeout: 244 seconds]
Guest57260 has quit [Ping timeout: 244 seconds]
kalbasit[m] has quit [Ping timeout: 244 seconds]
domenkozar[m] has quit [Ping timeout: 258 seconds]
mjlbach has quit [Ping timeout: 258 seconds]
DamienCassou has quit [Ping timeout: 268 seconds]
arianvp has joined #nixos-dev
lopsided98 has quit [Ping timeout: 256 seconds]
srk has quit [Remote host closed the connection]
srk has joined #nixos-dev
boredom101 has quit [Quit: Connection closed]
arianvp has quit [Read error: Connection timed out]
lopsided98 has joined #nixos-dev
arianvp has joined #nixos-dev
davidak[m] has joined #nixos-dev
maralorn has joined #nixos-dev
colemickens has joined #nixos-dev
jdnixx-M has joined #nixos-dev
ky0ko1 has joined #nixos-dev
garbas[m] has joined #nixos-dev
philipp[m]1 has joined #nixos-dev
<supersandro2000> I finally know when the coredump happens. I had a nix in my home environment installed which somehow interfered with the system one
regnat[m] has joined #nixos-dev
<supersandro2000> it probably assumes that they should be the same version
Ericson2314 has joined #nixos-dev
kraem[m] has joined #nixos-dev
rmcgibbo[m] has joined #nixos-dev
Valodim[m] has joined #nixos-dev
JJJollyjim has joined #nixos-dev
jonge[m] has joined #nixos-dev
symphorien[m] has joined #nixos-dev
michaelpj has joined #nixos-dev
rnhmjoj has joined #nixos-dev
chvp has joined #nixos-dev
LinuxHackerman has joined #nixos-dev
thefloweringash has joined #nixos-dev
aanderse has joined #nixos-dev
zimbatm[m] has joined #nixos-dev
Dandellion has joined #nixos-dev
ryantm has joined #nixos-dev
Ox4A6F has joined #nixos-dev
siraben has joined #nixos-dev
nh2[m] has joined #nixos-dev
danielrf[m] has joined #nixos-dev
jonringer_ has quit [Read error: Connection reset by peer]
jonringer has joined #nixos-dev
roberth has joined #nixos-dev
kalbasit[m] has joined #nixos-dev
Guest57260 has joined #nixos-dev
mjlbach has joined #nixos-dev
boredom101 has joined #nixos-dev
boredom101 has quit [Client Quit]
zuh0 has joined #nixos-dev
puzzlewolf has joined #nixos-dev
emily has joined #nixos-dev
domenkozar[m] has joined #nixos-dev
bbigras has joined #nixos-dev
ma27[m] has joined #nixos-dev
jtojnar has joined #nixos-dev
DamienCassou has joined #nixos-dev
immae has joined #nixos-dev
cole-h has joined #nixos-dev
tomberek has joined #nixos-dev
mkaito has joined #nixos-dev
tomberek has quit [Quit: Connection closed]
<gchristensen> it would be cool if I could import a module and declare ahead of time a limit to the scope of its settings
<gchristensen> like imports = [ (only [ "services" "hydra" ] ./hydra-tuning.nix) ];
<gchristensen> oh I bet I could with assert ...hm!
justanotheruser has joined #nixos-dev
justan0theruser has quit [Ping timeout: 260 seconds]
<Mic92> siraben: if you could remind me tomorrow again. That would be great.
bgamari has quit [Quit: ZNC 1.8.1 - https://znc.in]
tomberek has joined #nixos-dev
bgamari has joined #nixos-dev
<sterni> gchristensen: the scope of the options it provides or the settings it affects?
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-dev
rajivr has quit [Quit: Connection closed for inactivity]
<gchristensen> settings it affects
<infinisil> gchristensen: I've got a design document (well, just a bunch of notes really), for how a module system that supports that could look
<infinisil> Specifically, being able to give option read/write access to modules
<gchristensen> nice
<infinisil> The interface I decided on was `meta.writeRestrict = [ "hydra" ]`, where "hydra" is the new concept of a component, a grouping of nixos modules
<sterni> only = path: { lib, ... }@args: module: let res = (import module args); in res // { config = lib.filterAttrs (inPath path) res.config; }
<sterni> could that work? for a sufficient definition of inPath
<infinisil> I think it could then be used like `imports = [ { meta.writeRestrict = [ "hydra" ]; imports = [ ./hydra-tuning.nix ]; } ]`
<sterni> (you'd have to swap out import for something that'd also understand functions I guess)
<infinisil> sterni: That would be very hacky and brittle
<sterni> oh you'd have to do more as well
<gchristensen> filtering isn't great because it makes your module not behave the way it is written
<sterni> since the imports of that module could change the settings that are restricted
<sterni> gchristensen: oh you want an error basically?
<gchristensen> right
<infinisil> Yeah and I'm fairly certain that's impossible with the current module system
<gchristensen> right, if I wrote a function with `only` it'd need to do a really difficult job of tracing down recursive imports and whatnot
boredom101 has joined #nixos-dev
<sterni> you'd basically need to fully evaluate parts of the configuration then check if it violates a property and if yes throw
<sterni> which means you'd need to have an implementation of the module system around just for this
<gchristensen> or pass capability down from the top
<infinisil> gchristensen: I don't think capabilities can work with Nix
<gchristensen> why not?
<infinisil> If a capability is a Nix value, there's nothing stopping anybody from just creating that Nix value themselves
<gchristensen> take the caller's capability and the child capability and limit the child based on the caller
<infinisil> Ah you're thinking of extending Nix
<gchristensen> not at all
<infinisil> Huh, then I'm confused
<gchristensen> you could do it as you process imports. you have the capability of the thing you're in, now limit the one you're entering
<infinisil> Ahh I see now
<infinisil> gchristensen: So it's just capabilities (to set/get specific options) tracked implicitly in the module system
<infinisil> s/just//
<gchristensen> yeah I suppose so
<infinisil> Damn, I wanna work on this
<infinisil> The modules-ng thing
boredom101 has quit [Quit: Connection closed]
orivej has quit [Ping timeout: 258 seconds]
rj has quit [Ping timeout: 268 seconds]
tomberek has quit [Ping timeout: 240 seconds]
rj has joined #nixos-dev
boredom101 has joined #nixos-dev
boredom101 has quit [Quit: Connection closed]
<gchristensen> w00t-
AlwaysLivid has joined #nixos-dev
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixos-dev
evils has quit [Ping timeout: 256 seconds]
tokudan has quit [Remote host closed the connection]
tokudan has joined #nixos-dev
<aanderse> infinisil: what modules-ng thing?
<infinisil> Just some notes really
<aanderse> nice
<aanderse> /me adds to reading list
jonringer has quit [Remote host closed the connection]
jonringer has joined #nixos-dev
AlwaysLivid has quit [Remote host closed the connection]
makefu has joined #nixos-dev
mkaito has quit [Quit: WeeChat 3.1]
orivej has joined #nixos-dev
pinpox has quit [Quit: The Lounge - https://thelounge.chat]
pinpox has joined #nixos-dev
Raito_Bezarius has joined #nixos-dev