orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
tokudan[m] has quit [Ping timeout: 244 seconds]
Irenes[m] has quit [Ping timeout: 244 seconds]
Ericson2314 has quit [Ping timeout: 260 seconds]
doronbehar has quit [Ping timeout: 244 seconds]
jtojnar has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 246 seconds]
Valodim[m] has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
Irenes[m] has joined #nixos-dev
Valodim[m] has joined #nixos-dev
tokudan[m] has joined #nixos-dev
Ericson2314 has joined #nixos-dev
jtojnar has joined #nixos-dev
doronbehar has joined #nixos-dev
leungbk has quit [Ping timeout: 260 seconds]
leungbk has joined #nixos-dev
Irenes[m] has quit [Ping timeout: 244 seconds]
Valodim[m] has quit [Ping timeout: 244 seconds]
doronbehar has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos-dev
drakonis has joined #nixos-dev
Irenes[m] has joined #nixos-dev
Valodim[m] has joined #nixos-dev
doronbehar has joined #nixos-dev
orivej_ has quit [Ping timeout: 240 seconds]
<colemickens>
but for real, I've been working with flakes daily for a week and I still can't figure out how to get #.... and the actual outputs to line up
orivej has joined #nixos-dev
<colemickens>
I swear, every single time I try to do something with it or think I know the flake fragment to use, nope it doesn't work, or the coercion rules don't apply as I expect
justanotheruser has quit [Ping timeout: 272 seconds]
<Mic92>
colemickens: what specifically?
alp has joined #nixos-dev
<garbas>
colemickens: could you write a gist with examples what are you trying to do, what is the result and what you would expect to be. i think niksnut would really like this kind of feedback. UX is 70% trying to figure out the context your users are coming from :)
<colemickens>
Yeah, I'm sorry, I've been trying to hold off on that sort of feedback for something more comprehensive and I've been trying to get to a certain milestone to feel like I've properly given a good try.
<colemickens>
I will for sure come up with more concrete feedback and will likely write a small something about my experiences so far and/or file bugs for concrete things.
<colemickens>
(I've said it other places but I do want to say since I complained, I really am overall enjoying flakes a lot)
<manveru>
abathur: so curiously just doing a `nix build ./source#nixosConfigurations.atala-testnet-client-t3a-medium.config.system.build.toplevel` before doing the `nixos-rebuild` works around the issue
<manveru>
i really think nixos-rebuild has some very strange behaviour with flakes, but i can't figure out why...
<manveru>
also when i try to `nixos-rebuild --target-host`, it will just not copy the required closure, so i have to `nix copy` before
<manveru>
i assume `nix-copy-closure` just doesn't work properly with flakes
<manveru>
there really should be a `--verbose` tag for `nixos-rebuild` that just does `set -x` :)
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
dongcarl has quit [Read error: Connection reset by peer]
<infinisil>
manveru: I believe `bash -x nixos-rebuild` works!
<infinisil>
Since it's just a bash script :)
alp has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
<qyliss>
bash -x $(command -v nixos-rebuild) :)
<qyliss>
the -x won't propagate to the subprocess
<infinisil>
Which subprocess? (Can't check rn, on my phone)
<qyliss>
bash -x nixos-rebuild will run a bash process, which will run nixos-rebuild. Running nixos-rebuild starts a second bash process, which then interprets the nixosn-rebuild script
orivej has quit [Quit: No Ping reply in 180 seconds.]
<qyliss>
One bash comes from the command line, and the other bash comes from the nixos-rebuild shebang
<infinisil>
Ahh I see
<infinisil>
So the command -v is needed for the -x to apply
<qyliss>
Yes, because it skips the second bash
orivej has joined #nixos-dev
<qyliss>
You're just telling bash to interpret a script, rather than running a command
<qyliss>
so there's only a single bash process
<infinisil>
I see, I'll have to try this out on my pc later
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-dev
alp has joined #nixos-dev
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-dev
__monty__ has joined #nixos-dev
alp has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 244 seconds]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
Jackneill has joined #nixos-dev
orivej has quit [Ping timeout: 244 seconds]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-dev
alp_ has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-dev
<clever>
output '/nix/store/8g5cafxqbb0lygz2zia2m2g8hgs0mxfg-ext4-fs.img.zst-armv7l-unknown-linux-gnueabihf' of '/nix/store/85r0xkhyiaxjipkdv4dcdclljwsf2sir-ext4-fs.img.zst-armv7l-unknown-linux-gnueabihf.drv' differs from '/nix/store/8g5cafxqbb0lygz2zia2m2g8hgs0mxfg-ext4-fs.img.zst-armv7l-unknown-linux-gnueabihf.check' from previous round
<clever>
/nix/store/8g5cafxqbb0lygz2zia2m2g8hgs0mxfg-ext4-fs.img.zst-armv7l-unknown-linux-gnueabihf: Zstandard compressed data (v0.8+), Dictionary ID: None
<clever>
gchristensen: the filesizes dont even match! :O
<gchristensen>
hmm probably not too surprising, if something is a bit differently ordered the compression could be better/worse
<clever>
ah, so your thinking diff the uncompressed version first
<gchristensen>
yeah give that a go
<gchristensen>
ideally diffoscope already knows how to unpack zstd compressed files, and then .img files
<clever>
sdImage.compressImage = false; ...
<clever>
diffoscope spent several minutes seeming to do nothing on the files
<gchristensen>
hehe
<clever>
still compressed!? lol
<clever>
yeah, after manually uncompressing, sizes are identical
<clever>
AttributeError: 'FsImageContainer' object has no attribute 'g'
<matthewbauer>
The idea is to improve the "mkDerivation" that we have in Nixpkgs for use with flakes. It does some things that we've wanted for a while like: type checking of arguments, parallel by default, run checks by default, separate debug info, stricter deps. On top of that it has a little bit of sugar to make flakes easier.
<gchristensen>
hot!
<gchristensen>
all that type checking you do is going to definitely need the Nix evaluation cache :D
<gchristensen>
niksnut: what would you think about a builtin which lets you map over a closure?
<gchristensen>
oh I guess the evaluator doesn't know the run-time closure so it can't really happen
<gchristensen>
wish it did :P nevermind!
justanotheruser has joined #nixos-dev
MichaelRaskin has joined #nixos-dev
<infinisil>
matthewbauer: Neat!
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 246 seconds]
orivej_ has joined #nixos-dev
<matthewbauer>
gchristensen: yeah eval cache makes it much easier to do those checks
<matthewbauer>
It's a little bit of a black box in terms of what is being cached. It's not terrible without caching since you're just mapping over some errors.
<gchristensen>
yeaoh just thinking `hello` is already like 125k function calls and I wonder how much this wouldadd if used everywhere
<samueldr>
quick: is there a darwin-only package on nixpkgs you know off the top of your head?
<cole-h>
Security
<matthewbauer>
gchristensen: yeah it should use builtins pretty heavily, so it may not be as bad as nixpkgs actually
<jtojnar>
cole-h should that be agains the released branch?
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
primeos has quit [Quit: WeeChat 2.8]
primeos has joined #nixos-dev
justanotheruser has quit [Ping timeout: 260 seconds]
<cole-h>
jtojnar: Correct, thank you.
alp_ has quit [Ping timeout: 260 seconds]
<cole-h>
jtojnar: OK, deployed successfully. Feel free to rename the label.
<cole-h>
and/or worldofpeace
<jtojnar>
cole-h done, thank
__monty__ has quit [Quit: leaving]
<cole-h>
jtojnar: If you notice it not labeling GNOME PRs as expected -- can't see why it wouldn't, but just in case -- ping me and I'll look at the logs when I get a chance (if I'm not on IRC, a GitHub @ will suffice, or email if you're feeling daring)
<jtojnar>
thanks, hopefully there wll be no issues, going to bed now 😴️
<cole-h>
o/
cole-h has quit [Quit: Goodbye]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-dev
<julm>
Oh no, looks like one cannot overrides instances of systemd template services with NixOS, ie. create a file like /etc/systemd/system/user-runtime-dir@0.service.d/override.conf because /etc/systemd/system is a symlink to the a derivation built by generateUnits