worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
<clever> numkem: and with the version nixos ran?
<numkem> Yup, the full command
<clever> not sure then
<numkem> could it be something related to the binary cache? Building it on a machine that is not the same or that isn’t booting using efi?
<clever> nope
<numkem> clever: is there a way to force rebuild without my binary cache? So we could rule that out? I’ve already tried changing the kernel version which built some things but I got the same result
<clever> the sandbox wont even let the build know if its an efi machine or not
mariatsji has quit [Ping timeout: 244 seconds]
h0m1 has quit [Ping timeout: 260 seconds]
<numkem> that rules out the binary cache then
<clever> numkem: what command did you run?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #93022 → i2p: 0.9.42 -> 0.9.47 → https://git.io/JJOGT
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JUGtc
<numkem> clever: to trigger the error? ´sudo nixos-rebuild switch´ same with a ´boot’ too
<clever> thats weird, not sure what the problem is then
<numkem> could it be related to unstable-small since there are less tests?
<{^_^}> [nixos-homepage] @samueldr pushed 25 commits to feature/2020-r/main: https://git.io/JUGtl
<clever> it should still have the critical tests ran
<clever> but you can try another channel
<hpfr> is there a way to view another github user's ssh keys
<hpfr> aha, thanks, I was trying /keys
<numkem> clever: go back in time with the unstable one
<hpfr> clever: do you copy your key and use it on every machine?
<evanjs> ahh crap I almost forgot, cargo-cache's description breaks nix-env lol. ugh how do I escape thissss
<clever> hpfr: indirectly, i run ssh-add over ssh agent forwarding, to load it into gpg
<hpfr> clever: load it into gpg?
<evanjs> "Manage cargo cache (${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively"
<clever> hpfr: i have gpg acting as my ssh agent, so it stores the ssh keys in the gpg keyring
<clever> ,escape" Manage cargo cache (${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively
<evanjs> this is what I currently have: "Manage cargo cache (\${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively"
<{^_^}> Escape this in '' strings with: " Manage cargo cache (''${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively
<{^_^}> Escape this in " strings with: \" Manage cargo cache (\${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively
<evanjs> ooo that's a thing??
proofofkeags has joined #nixos
<evanjs> time to see if it kills my user profile lol
<hpfr> clever: how do you authenticate to gpg
<clever> hpfr: it asks for the passphrase with a gui as normal
<evanjs> ,escape "Manage cargo cache (${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively"
<{^_^}> Escape this in '' strings with: "Manage cargo cache (''${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively"
<{^_^}> Escape this in " strings with: \"Manage cargo cache (\${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively\"
<evanjs> for the last quote lol
<evanjs> ahhh alright cool
<hpfr> thanks. for context I've just set up a VPS and am trying to figure out whether I should give it an ssh key for access to my git repos, it's weird to think about a machine some provider has root access to
<clever> hpfr: i would use agent forwarding for that, just `ssh -A` into the vps
<clever> hpfr: and then it can use your local agent
jophish has quit [Ping timeout: 244 seconds]
Ashy has quit [Ping timeout: 240 seconds]
<hpfr> makes sense, thanks
growpotkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
h0m1 has joined #nixos
<clever> hpfr: just be aware, that root can also use your agent, while that ssh session remains open
growpotkin has joined #nixos
<{^_^}> [nixpkgs] @mweinelt closed pull request #96689 → Home assistant plugins: pysqueezebox and yeelight → https://git.io/JUtbC
<{^_^}> [nixpkgs] @mweinelt merged pull request #97151 → Home assistant plugins: pysqueezebox and yeelight → https://git.io/JUsIx
<{^_^}> [nixpkgs] @mweinelt pushed 3 commits to master: https://git.io/JUGta
<hpfr> yeah, so theoretically a malicious admin at the provider could impersonate you while your session is open
<hpfr> that's certainly better than leaving a key on the server though
<clever> some ssh agents can be configured to confirm each use of the key with a gui prompt
<evanjs> clever: mmyup. still dies, soooo not sure what I should do
<clever> so if you get a prompt when your not expecting it, youll know
<evanjs> the '' method doesn't allow me to install, fails with error: undefined variable 'CARGO_HOME' at /mnt/gentoo/home/evanjs/src/nixpkgs/pkgs/development/tools/rust/cargo-cache/default.nix:21:44
<clever> evanjs: can you pastebin the file?
<hpfr> I will look into that
<evanjs> with the current description, it kills nix-env and doesn't let you e.g. `nix-env -q` after it is installed
<evanjs> returning e.g. error: undefined variable 'CARGO_HOME' at /nix/store/vbjs2bbr0amhn6xyprk580745408i8hy-env-manifest.nix:1:71
<clever> evanjs: and what is the contents of that env-manifest.nix ?
<evanjs> yeah I just now figured that's what you meant XD
<clever> evanjs: i think the problem is when nix tries to serialize the string back into a .nix file, for the manifest
<clever> so even if you escape it right, nix doesnt escape it internally
<evanjs> is it expected to work normally as part of systemPackages?
<clever> yeah, that wont make a manifest
marusich has joined #nixos
<evanjs> okay that makes sense
<evanjs> but yeah basically that's what's happening
<evanjs> reminds me of all the weird stuff with nodePackages like @angular/cli
<clever> evanjs: that doesnt even look like a .nix file, the quotes are all over the place
<evanjs> Yeah I formatted lol 1 sec
<evanjs> "formatted" lol
jophish has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JUGtM
<evanjs> mmkay unformatted now lol
<evanjs> (I initially threw it in a JSON formatter and disalbed verification lol)
<clever> thats much more readable
<clever> and yep, it did exactly what i expected
<evanjs> right excatly
<evanjs> any idea why it might be doing that?
Ashy has joined #nixos
<clever> because it just does ${key} = "${value}";
<clever> when generating the nix file
<evanjs> come to think of it... is this a nix or nixpkgs issue, then?
<clever> nix
<evanjs> okay I figured as much. Phew. Guess I don't need to worry too much about the freeze, then :P
<evanjs> uhhh related? nix#1416 :P
<{^_^}> https://github.com/NixOS/nix/issues/1416 (by ericsagnes, 3 years ago, open): Outputting '${ from indented strings
<evanjs> literally my problem haha
<evanjs> though there's also nix#3063
<{^_^}> https://github.com/NixOS/nix/issues/3063 (by volth, 1 year ago, open): Nix should fail (or warn) on unsupported string escapes
<ldlework> nix-repl> with pkgs; lib.makeLibraryPath [ stdenv.cc.cc.lib ] "/nix/store/snc31f0alikhh3a835riyqhbsjm29vki-gcc-6.4.0-lib/lib"
<ldlework> error: attempt to call something which is not a function but a string with context, at (string):1:12
<ldlework> Why am I getting this error?
<ldlework> Why does it think lib.makeLibraryPath is a string?
<clever> > lib.makeLibraryPath [ stdenv.cc.cc.lib ]
<{^_^}> "/nix/store/0zsq4j8syam2g7i642dqspq7bbjflwyp-gcc-9.3.0-lib/lib"
<clever> > lib.makeLibraryPath [ stdenv.cc.cc.lib ] "/nix/store/snc31f0alikhh3a835riyqhbsjm29vki-gcc-6.4.0-lib/lib"
<{^_^}> attempt to call something which is not a function but a string with context, at (string):321:1
<evanjs> I was going to say, you're adding a string on the end, right?
leungbk has joined #nixos
<ldlework> oh I see
gustavderdrache has left #nixos [#nixos]
kreyren has quit [Remote host closed the connection]
<hpfr> is x11-ssh-askpass working for others?
<hpfr> I've created a new key with a passphrase and tested it, and it doesn't seem to be working
proofofkeags_ has joined #nixos
<hpfr> steps: 1. `ssh-keygen -t ed25519 -a 100 -f test-key` 2. enter passphrase "asdf" 3. `ssh-add -c test-key` 4. enter prompted passphrase, works fine in terminal 5. `ssh-add -T test-key.pub` 6. enter passphrase in x11-ssh-askpass. this returns "Agent signature failed for test-key.pub: agent refused operation"
leungbk has quit [Ping timeout: 244 seconds]
proofofkeags has quit [Ping timeout: 256 seconds]
proofofkeags__ has joined #nixos
philr has joined #nixos
<evanjs> clever: well blah https://github.com/NixOS/nix/issues/3989
<{^_^}> nix#3989 (by evanjs, 9 seconds ago, open): Some strings can break manifest.nix
<evanjs> hopefully it isn't too close to the other issues (didn't seem to be after I read a bit on each)
proofofkeags_ has quit [Ping timeout: 260 seconds]
<numkem> clever: update, the efi mountpoint is present
la-jesystani has quit [Ping timeout: 256 seconds]
<clever> numkem: id say strace then, do `nixos-rebuild build` then `strace -f ./result/bin/switch-to-configuration boot` and see what fails
<clever> numkem: possibly `-ff -o logfiles` to make it more readable
leungbk has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed to staging-next « Revert "nixos/fontconfig: fix 50-user.conf handling" »: https://git.io/JUGq4
proofofkeags__ has quit [Ping timeout: 240 seconds]
proofofkeags has joined #nixos
<numkem> clever: https://gist.github.com/numkem/05b80baf7c7982a31ddd82d75be43b80 the first file seems to be the important one
<clever> openat(AT_FDCWD, "/proc/1/environ", O_RDONLY|O_CLOEXEC) = -1 EACCES (Permission denied)
<clever> numkem: why is it getting permission denied to pid 1? was it ran in a container?
<numkem> nope, straight on the laptop
<clever> exit_group(0) = ?
<clever> ah, but that one didnt fail
<numkem> my bad, wasn't run with sudo... ignore me, I'll run it again
<clever> write(1, "System:\n Firmware: UEFI 2.00"..., 2201) = 2201
<clever> numkem: you may also want to add `-s 3000` to it, so the message isnt truncated
h0m2 has joined #nixos
<numkem> clever: added the `s 3000` and ran it again, just added the last file: https://gist.github.com/numkem/21ffd20b11feaccf02aebaa0eee85bd7
<clever> numkem: seems like systemd-boot has just lost its mind
<clever> numkem: `bootctl status` is printing the status, then exiting with status 1
h0m1 has quit [Ping timeout: 256 seconds]
<clever> id abandon systemd-boot and use grub :P
<numkem> don't mind myself, this is the only system I have that is using systemd-boot, the rest are not even EFI
<numkem> clever: don't know if that has to do with anything but when I run the command I end up with "less"
<clever> numkem: add `| cat` to the end
<numkem> clever: works just fine
<clever> and check `echo $?` ?
<numkem> clever: 0 indeed
<clever> yep, no idea at all
<numkem> clever: since I don't really want to rebuild the laptop from scratch, can I still do EFI through grub? which options would be necessary?
<clever> numkem: boot.loader.grub = { enable = true; efiSupport = true; };
o1lo01ol1o has joined #nixos
<clever> numkem: and nixos-rebuild boot --install-bootloader
<numkem> clever: can hardly be any harder, do I need boot.loader.efi.canTouchEfiVariables?
<clever> that should still be true
kleisli has quit [Ping timeout: 244 seconds]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #97267 → vimPlugins: Inherit meta from node plugins → https://git.io/JUGI0
<{^_^}> [nixpkgs] @jonringer pushed commit from @jbaum98 to master « vimPlugins: Inherit meta from node plugins »: https://git.io/JUGmJ
<numkem> clever: does boot.loader.grub.devices needs to be set to []? if it's not set it asserts saying it's required
<clever> numkem: boot.loader.grub.device = "nodev";
<numkem> clever: that did the trick it finally applied, gonna reboot to test
o1lo01ol1o has joined #nixos
<numkem> clever: and that did the trick! thank you for all your help! clever++
<{^_^}> clever's karma got increased to 500
<clever> the big 500! lol
<numkem> clever: do you think a bug should be filed for systemd-boot?
<clever> probably
<numkem> I have a hard time believe I was the only one who was really affected
o1lo01ol1o has quit [Ping timeout: 260 seconds]
rajivr has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #97269 → zola: 0.11.0 -> 0.12.0 → https://git.io/JUGmD
<{^_^}> [nixpkgs] @marsam merged pull request #97235 → pspg: 3.1.2 -> 3.1.3 → https://git.io/JUs52
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGmH
<{^_^}> [nixpkgs] @marsam merged pull request #97203 → minikube: 1.12.3 -> 1.13.0 → https://git.io/JUsac
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGm5
tomberek has joined #nixos
<tomberek> is grahamcofborg broken? Noticing many PRs are showing errors.
<{^_^}> [nixpkgs] @marsam merged pull request #97216 → openlibm: 0.7.0 -> 0.7.1 → https://git.io/JUs1b
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGmF
<samueldr> tomberek: errors how?
<samueldr> tomberek: can you link to such a PR?
<tomberek> #97251 #97249 #97248
<{^_^}> https://github.com/NixOS/nixpkgs/pull/97251 (by r-ryantm, 7 hours ago, open): star: 2.7.4a -> 2.7.5c
<{^_^}> https://github.com/NixOS/nixpkgs/pull/97249 (by r-ryantm, 7 hours ago, open): skaffold: 1.13.2 -> 1.14.0
<{^_^}> https://github.com/NixOS/nixpkgs/pull/97248 (by r-ryantm, 7 hours ago, open): sickgear: 0.21.36 -> 0.21.42
<tomberek> seems like many of the newest PRs are all failing... not sure yet, still investigating...
<tomberek> running them locally seems to work
<samueldr> creating directory '/nix/store/jghpc7w1ra7r3wbyp0carlnm2sssk9g0-packet-spot-eval-3/pkgs/servers/sql/monetdb': No space left on device
mariatsji has joined #nixos
<tomberek> I'm seeing this in many of the PRs:
<tomberek> error: while evaluating the attribute 'constituents' of the derivation 'nixpkgs-20.09pre999999.f7127a3' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/packet-spot-eval-1/pkgs/build-support/trivial-builders.nix:7:7:while evaluating the attribute 'pandoc.x86_64-linux' at undefined position:attribute 'x86_64-linux' missing,
<tomberek> at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/packet-spot-eval-1/pkgs/top-level/release.nix:98:15
<samueldr> there might be multiple issues, too
<samueldr> but it happens sometimes that master breaks
<samueldr> and it ripples down in PR checks :(
<tomberek> it could be just pandoc?
<{^_^}> [nixpkgs] @marsam merged pull request #97175 → influxdb: 1.8.0 -> 1.8.2 → https://git.io/JUs8R
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGYe
cole-h has joined #nixos
<tomberek> perhaps pandoc is needed for grahamcofborg to function? so if that breaks, all the PRs break?
<samueldr> the issue is a bit more subtle
<samueldr> it's not that ofborg requires pandoc
<samueldr> but rather ofborg evals *all* attributes to prevent accidental breakage elsewhere
<samueldr> it also could have been fixed since 7 hours ago
<{^_^}> #97170 (by jonringer, 1 day ago, closed): Pandoc job fails on release
<samueldr> and yes it was
<samueldr> (I assume)
<samueldr> you can comment @GrahamcOfBorg eval on those PRs to re-eval
Nak has joined #nixos
<tomberek> i'm not sure if i'm in the approved list for grahamcofborg
mariatsji has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #97172 → helmfile: 0.125.7 -> 0.128.0 → https://git.io/JUsWu
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGYI
<{^_^}> [nixpkgs] @marsam merged pull request #97168 → hcloud: 1.17.0 -> 1.19.1 → https://git.io/JUsCe
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGYq
leungbk has quit [Ping timeout: 265 seconds]
<cole-h> samueldr: (please recommend @ofborg over @GrahamcOfBorg -- gchr*stensen wanted to decouple the bot from his name a while ago, so while the old way will still work, we prefer the new way ;^) )
<{^_^}> cole-h: 6 hours, 22 minutes ago <nf> indeed not, it's just generally a good idea to quote what should be quoted
<cole-h> nf++
<{^_^}> nf's karma got increased to 1
<samueldr> cole-h: ah, didn't know it responded to that name too, good to know
<samueldr> and it's even in its doc
<cole-h> samueldr: It's not ideal @ofborg doesn't show in autocompletions since it's an org... we haven't tackled that issue yet. :P
<samueldr> yeah
<{^_^}> [nixpkgs] @marsam merged pull request #97160 → go-migrate: 4.11.0 -> 4.12.2 → https://git.io/JUsZ0
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGYO
<cole-h> samueldr: Yeah, I PR'd the README as a result of gchr*stensen's desire to decouple :P
knerten1 has joined #nixos
<tomberek> What's the policy to be added to https://github.com/NixOS/ofborg/blob/released/config.public.json?
<{^_^}> [nixpkgs] @marsam merged pull request #97174 → idsk: 0.19 -> 0.20 → https://git.io/JUs83
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGYZ
knerten2 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #97173 → hpx: 1.4.1 -> 1.5.0 → https://git.io/JUsly
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGYu
evanjs has quit [Quit: ZNC 1.8.1 - https://znc.in]
<{^_^}> [nixpkgs] @marsam merged pull request #97179 → jx: 2.1.127 -> 2.1.138 → https://git.io/JUs4i
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGYg
chenhq2005 has joined #nixos
<{^_^}> ofborg#528 (by tomberek, 2 minutes ago, open): users: add @tomberek
<{^_^}> [nixpkgs] @marsam merged pull request #97159 → gmt: 6.1.0 -> 6.1.1 → https://git.io/JUsGb
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGYa
<cole-h> (Note that I will never merge one of those PRs unless approved by gchri\stensen / Ln\L -- ultimately, ofborg runs on their machines, so they hold the final say)
evanjs has joined #nixos
RN1986239 has quit [Ping timeout: 256 seconds]
<cole-h> It's also good form to include reasoning (e.g. why you want/need access, what it would help you achieve, etc) in your PR body
<{^_^}> [nixpkgs] @marsam merged pull request #97178 → jackett: 0.16.998 -> 0.16.1057 → https://git.io/JUs8A
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGYK
<{^_^}> [nixpkgs] @peterhoeg opened pull request #97270 → calibre: build with py3 by default → https://git.io/JUGYi
leungbk has joined #nixos
<cole-h> In closing: it's up to L\nL / gchr\istensen -- I will never merge one of those PRs, mostly because they interact with the Nix community far more than I do (and so can decide if one meets the "well-known, trusted members of the community" requirement)
<tomberek> okay, thanks
h0m2 has quit [Ping timeout: 246 seconds]
xcmw has joined #nixos
<xcmw> What does this error mean? I am trying to install nix without root on Ubuntu 20.04.1 LTS with nix-user-chroot https://pastebin.pl/view/raw/3722bcfa
dyaso has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #97123 → nixos/cachefilesd: don't set up manually → https://git.io/JU3Fi
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JUGYD
<xcmw> I'm not sure what /nix/store/b64sdzfcc4wd2p656i9jskxdmhjkq0cv-user-environment.drv.chroot/ is because it does not appear to exist
h0m2 has joined #nixos
<{^_^}> nix-community/nix-user-chroot#17 (by michaelmesser, 1 day ago, open): Invalid cross-device link
<cole-h> cc Mic92
dsx has quit [Quit: dsx]
<{^_^}> [nixpkgs] @ryantm merged pull request #97244 → rssguard: 3.7.0 -> 3.7.2 → https://git.io/JUspi
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JUGYN
<{^_^}> [nixpkgs] @ryantm merged pull request #97251 → star: 2.7.4a -> 2.7.5c → https://git.io/JUGvr
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JUGYx
dyaso has quit [Quit: Konversation terminated!]
<cole-h> > showSrc lib.generators "toINI"
<{^_^}> "generators.nix:111 toINI = {"
chenhq2005_ has joined #nixos
chenhq2005 has quit [Ping timeout: 240 seconds]
<xcmw> cole-h: I made the github issue. I did. It returned YES.
<cole-h> (Maybe that should be added to the issue ;) )
kleisli has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
chenhq2005_ has quit [Ping timeout: 260 seconds]
ericsagnes has quit [Ping timeout: 260 seconds]
ericsagnes has joined #nixos
dxtr has joined #nixos
chenhq2005 has joined #nixos
dsx has joined #nixos
h0m2 has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
h0m2 has joined #nixos
Nak has quit [Remote host closed the connection]
jmeredith has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Twey opened pull request #97271 → rainloop: allow multiple instances to use the same package → https://git.io/JUGOp
b has quit [Ping timeout: 258 seconds]
leungbk has quit [Ping timeout: 240 seconds]
b has joined #nixos
mog- has joined #nixos
mog has quit [Ping timeout: 246 seconds]
mog- is now known as mog
<tomberek> are the re-eval's working?
chenhq2005_ has joined #nixos
chenhq2005 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Twey opened pull request #97272 → Rainloop service → https://git.io/JUG3I
pjt_tmp has quit [Ping timeout: 258 seconds]
pjt_tmp has joined #nixos
leungbk has joined #nixos
zeta_0 has joined #nixos
growpotkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
<bqv> my system fails to startup with latest nixpkgs, systemd fails to find /dev/sda3
<bqv> that sound familiar to anyone?
<bqv> btrfs
growpotkin has joined #nixos
<zeta_0> can the rev and sha attributes be added to fetchTarball, or will i need to use fetchFromGithub instead to add them?
xcmw has quit [Ping timeout: 260 seconds]
<evanjs> OTOH: me getting worried about ever being on the trusted users list lol
<{^_^}> [nixpkgs] @Twey opened pull request #97273 → imgsize: init at 2.1 → https://git.io/JUG3l
<evanjs> Are we just using #50105 to nominate people and etc, now?
<{^_^}> https://github.com/NixOS/nixpkgs/issues/50105 (by Infinisil, 1 year ago, open): New nixpkgs committers requests
<evanjs> Based on infinisil's "arbitrary" reqs I think I'd just need reviews... bah. My least favorite thing. But not because I don't like reading other people's things, I just don't trust myself 😬
xcmw has joined #nixos
<zeta_0> ote: i'm using emacs-overlay to install emacs 27.1: https://github.com/nix-community/emacs-overlay#latest-master-each-rebuild
<zeta_0> typo, note
<evanjs> bqv: I mean it sounds like problem with your hardware config or something. Nothing weird happening with my btrfs drives lately, though all my boot drives are F2FS, now
<evanjs> Might need more info re your config and etc
<bqv> i mean literally all i did was bump nixpkgs
<bqv> it worked fine before
<bqv> so it's not my stuff
<tomberek> bqv: what is your hardware-configuration.nix?
<bqv> i don't have one...
Supersonic112 has joined #nixos
<tomberek> possible that somehwere you are using a reference to /dev/sda3 versus using something like: /dev/disk/by-uuid
<{^_^}> [nixpkgs] @Twey opened pull request #97274 → mailpile: 1.0.0rc2 -> 1.0.0rc6 → https://git.io/JUG3V
<bqv> sure, but i haven't changed my partitions
<bqv> so that wouldn't be invalid now
<bqv> or is it no longer sd* in new kernels?
<bqv> that would explain it
Supersonic has quit [Ping timeout: 272 seconds]
Supersonic112 is now known as Supersonic
<tomberek> bqv: the sd* names are not necessarily stable. Label or better yet, UUID, is a better way.
* bqv sighs
<tomberek> bqv: where/how do you declare your filesystems?
leungbk has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/c2c55c94c19 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<{^_^}> [nixpkgs] @Twey opened pull request #97275 → Mailpile multiple instances → https://git.io/JUG3y
zeta_0 has quit [Quit: rcirc on GNU Emacs 27.1]
<bqv> rc.fron.io/hosts/zeta/default.nix i'll try it your way
<bqv> but rather than fixing this, i'm more curious why the fuck this broke in the first place
<bqv> updating nixpkgs shouldn't make my system unbootable
chenhq2005 has joined #nixos
<tomberek> bqv: looks like all of those reference /dev/sda3... not sure exactly what happened. i'm not aware of any major movements in the filesystem modules. I have seen the kernel sometimes call something /dev/sdb* instead of /dev/sda* depending on things plugged into the computer.
chenhq2005_ has quit [Ping timeout: 240 seconds]
<tomberek> can you examine if the disk is present at a different location like /dev/sdb* ? i'd also be interested in finding out the root cause here
<bqv> again, pretty damn hard if i can't boot, but by that logic if i reboot a couple times it should just work eventually
h0m2 has quit [Ping timeout: 272 seconds]
chenhq2005 has quit [Ping timeout: 240 seconds]
h0m2 has joined #nixos
<bqv> that would be less of a pain if boots didn't take 5 mins each
<bqv> tomberek: booted with by-uuid instead, same issue. it's not that.
chenhq2005 has joined #nixos
xd1le has quit [Read error: Connection reset by peer]
<tomberek> bqv: you updated all of the filesystem options and ran a nixos-rebuild? (from a liveUSB or something?)
xd1le has joined #nixos
<bqv> rc.fron.io/hosts/zeta/default.nix
<{^_^}> [nix-mode] @rossabaker opened pull request #105 → Fix nix-get-completions, add to nix-repl-mode → https://git.io/JUGsO
<bqv> i can boot into a previous system just fine
<bqv> as soon as i go past the one where i update nixpkgs, it breaks
<bqv> i could believe this is my fault but i literally don't see how
<M0-[m]> I have `rocm-opencl-icd` and `rocm-runtime` installed, but running `clinfo` gives me a segfault. Anyone have rocm opencl working? I'm using a Radeon VII btw.
<tomberek> okay, i didn't know that. Old nixpkgs works fine. I see you're using btrfs. perhaps something changed there? (btw: the more recent links you posted are not accessible)
<tomberek> what is the kernel version bump that goes with this nixpkgs bump?
cjpbirkbeck has quit [Quit: Goodbye, take care]
<{^_^}> [nixpkgs] @marsam merged pull request #97162 → gotestsum: 0.5.2 -> 0.5.3 → https://git.io/JUsnu
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JUGs8
mariatsji has joined #nixos
<bqv> oh right yeah, you can't browse that config cause it's hosted on that machine >_>
<bqv> yet another reason not being able to boot that is real damn inconvenient
<tomberek> it should be visible when you select a particular boot configuration (i'm assuming it's grub)... is this a cloud instance/VM?
chenhq2005 has quit [Ping timeout: 258 seconds]
mariatsji has quit [Ping timeout: 244 seconds]
<Mic92> bqv: is your disk for some reason now named differently?
<bqv> nothing at all has changed except that i have updated nixpkgs, and if i revert nixpkgs it works again
<tomberek> he tried to use by-uuid, still having difficulties
chenhq2005 has joined #nixos
<Mic92> k
<tomberek> what about doing smaller nixpkgs bumps? try to bisect our way to exactly where this breaks?
<tomberek> it may take a while, but will help narrow down where/when the problem was caused
tomberek has quit [Remote host closed the connection]
<bqv> i have stuff i needed to do tonight ;_; and this process is so slow because boots take 10 minutes apiece, require user interaction, and i have to deploy from here. christ
tomberek has joined #nixos
zeta_0 has joined #nixos
<zeta_0> how do i correctly add a rev and sha attributes to emacs-overlay, i keep getting errors thrown? https://dpaste.org/Gs3A https://github.com/nix-community/emacs-overlay#usage-of-the-overlay
leungbk has joined #nixos
<zeta_0> i used the nixpkgs manual as a reference, but i'm guessing either my syntax is off or i'm missing something !
<bqv> something new has definitely happened with systemd, cause it's also broken something else i have
<bqv> what is going on
<tomberek> bqv: any logs or error messages you can post?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c2c55c94c19 (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
chenhq2005 has quit [Ping timeout: 264 seconds]
iceypoi has joined #nixos
<zeta_0> ok, i asked this question in a post that i asked earlier in reddit, if any of you would like to help, thanks in advance !
zeta_0 has quit [Quit: rcirc on GNU Emacs 27.1]
icey__ has quit [Ping timeout: 256 seconds]
Orbstheorem has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @zowoq opened pull request #97276 → buildah: 1.15.2 -> 1.16.0 → https://git.io/JUGGZ
MtotheM has quit [Read error: Connection reset by peer]
tmaekawa has joined #nixos
xd1le has quit [Remote host closed the connection]
tmaekawa has quit [Client Quit]
xd1le has joined #nixos
disasm has quit [Ping timeout: 240 seconds]
disasm has joined #nixos
endformationage has quit [Quit: WeeChat 2.9]
ddellacosta has quit [Ping timeout: 264 seconds]
<bqv> tomberek: nevermind, this is probably the source of all my issues https://status.nixos.org/
<bqv> unstable is more than 2 weeks old
<bqv> jesus christ
<bqv> guess i'm switching to small urp br,
Rusty1 has quit [Quit: WeeChat 2.3]
o1lo01ol1o has joined #nixos
mmohammadi98128 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 260 seconds]
mmohammadi98128 has quit [Client Quit]
<tomberek> bqv: that's being fixed, i'm under the impression the fix was committed yesterday, the builds are still in-progress
<bqv> well, at least in the interests of not having ten thousand builds to do tomorrow, i'm just switching to small for now
<tomberek> thanks for the report
xcmw has joined #nixos
mariatsji has joined #nixos
tomberek has quit [Remote host closed the connection]
mmohammadi98128 has joined #nixos
palo1 has joined #nixos
kleisli_ has joined #nixos
palo has quit [Ping timeout: 258 seconds]
palo1 is now known as palo
chenhq2005 has joined #nixos
kleisli has quit [Ping timeout: 244 seconds]
mariatsji has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #96730 → ocamlPackages.srt: init at 0.1.1 → https://git.io/JUq3P
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.srt: init at 0.1.1 »: https://git.io/JUGn3
leungbk has quit [Ping timeout: 258 seconds]
Orbstheorem has joined #nixos
<cole-h> bqv: What are the nixpkgs commits (good and bad)?
Orbstheorem has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @vbgl opened pull request #97277 → ocamlPackages.batteries: 3.0.0 → 3.1.0 → https://git.io/JUGnR
zupo has joined #nixos
Orbstheorem has joined #nixos
chenhq2005_ has joined #nixos
leungbk has joined #nixos
chenhq2005 has quit [Ping timeout: 265 seconds]
maxdevjs has quit [Ping timeout: 246 seconds]
duckonomy1 has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #97278 → youtube-dl: 2020.07.28 -> 2020.09.06 → https://git.io/JUGnD
<{^_^}> [nixpkgs] @FRidh merged pull request #97253 → tiledb: 1.7.7 -> 2.0.7, pythonPackages.tiledb: 0.5.6 -> 0.6.6, enable for darwin along with libpqxx → https://git.io/JUGff
<{^_^}> [nixpkgs] @FRidh pushed 5 commits to master: https://git.io/JUGny
mariatsji has joined #nixos
leungbk has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @basilgood closed pull request #96362 → atlassian-jira: 8.10.0 -> 8.11.1 → https://git.io/JUTCz
chenhq2005_ has quit [Ping timeout: 264 seconds]
marusich has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waleee-cl has quit [Quit: Connection closed for inactivity]
<bqv> cole-h: complicated question to answer due to my channels thing. as far as i can see it, the problem's cause i use modules from (basically) master, and packages from large, but large hasn't updated for 16 days and even it it had there's no guarantee this systemd thing wouldn't still be fscked
<bqv> i'm testing with small now but the build won't be done for a few hours
<cole-h> I guess mixing channels is dangerous...
<bqv> usually, not at all!
<bqv> i've come across subtle things before but nothing that can't be fixed by just overriding a package here or there, but this i obviously can't do that for
mmohammadi981288 has joined #nixos
<cole-h> Definitely not something I plan on donig :P
<cole-h> (Fix spelling as applicable)
ericsagnes has quit [Ping timeout: 272 seconds]
<V> donut.
<cole-h> Sounds good to me
<cole-h> :P
<V> Same
* V wants doughnuts now
<{^_^}> [nixpkgs] @danieldk merged pull request #96996 → broot: 0.20.3 -> 1.0.0, fix Darwin build → https://git.io/JUOBJ
<{^_^}> [nixpkgs] @danieldk pushed 3 commits to master: https://git.io/JUGcz
mmohammadi98128 has quit [Ping timeout: 246 seconds]
mmohammadi981288 is now known as mmohammadi98128
mmohammadi981288 has joined #nixos
<{^_^}> [nixpkgs] @danieldk merged pull request #97013 → Move KnightOS packages into pkgs/tools/knightos → https://git.io/JUOML
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JUGcD
b has quit [Quit: Lost terminal]
mallox has joined #nixos
mmohammadi98128 has quit [Ping timeout: 260 seconds]
mmohammadi981288 is now known as mmohammadi98128
<bqv> cole-h: for real, the only issue I can remember had was resolved by pinning lvm2 to master instead, if I had one before that I probably just waited a bit and tried again. Its specifically things that are in master, strongly tied to a package update, but not in large yet, which is a negligible set
<bqv> But it does assume large isn't stuck
<cole-h> Well, I run off small anyways
<bqv> Anyway, are there any plans to use nix-processmgmt in nixpkgs?
<bqv> I'm very interested
<bqv> I stumbled onto it while 2 days into making a shim to port systemd services to s6
<cole-h> Considering it touts itself as "a very experimental prototype", I wouldn't think so.
mallox_ has joined #nixos
<bqv> Gotta start somewhere…
<cole-h> And that place to start would be decoupling NixOS from systemd, I'd expect.
<cole-h> But that would be an endeavor upon itself.
<bqv> I don't see that happening at all tbh
<cole-h> It would likely need an RFC for integration into NixOS
mallox has quit [Ping timeout: 260 seconds]
<cole-h> And it might even be that svanderburg doesn't want to
<bqv> Yeah, true. Meh.
<{^_^}> [nixpkgs] @basilgood opened pull request #97279 → atlassian-jira: 8.10.0 -> 8.12.0 → https://git.io/JUGch
eoli3n_ has joined #nixos
<bqv> It intrigues me because it would be better to have a decent proper abstraction and just write an new frontend, than translate nixpkgs's half-baked systemd specifications to another manager, especially as I'm realising systemd has so many weird quirks and "features"
<cole-h> (:
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cole-h has quit [Quit: Goodbye]
jakobrs has joined #nixos
Heirlung has quit [Ping timeout: 258 seconds]
eoli3n_ has quit [Ping timeout: 256 seconds]
<energizer> tbh i dont want nixos to move toward even-more-niche tools
<MichaelRaskin> With Nixpkgs you can use Nix for Just One Package, you do not need full buy-in
<MichaelRaskin> If NixOS is slowly decoupled into a more à la carte set of things, having an option for more suitable niche tools becomes apure plus
Heirlung has joined #nixos
stiell has quit [Ping timeout: 260 seconds]
o1lo01ol1o has joined #nixos
stiell has joined #nixos
o1lo01ol1o has quit [Ping timeout: 264 seconds]
mallox_ has quit [Quit: WeeChat 2.9]
stiell has quit [Ping timeout: 240 seconds]
justanotheruser has quit [Ping timeout: 246 seconds]
stiell has joined #nixos
la-jesystani has joined #nixos
<jackdk> Is there a way of specifying non-public git dependencies when using flakes?
stiell has quit [Excess Flood]
astylian_ has joined #nixos
eoli3n_ has joined #nixos
stiell has joined #nixos
astylian has quit [Ping timeout: 265 seconds]
<joesventek> I just noticed that the nixos-unstable branch on nixpkgs-channels has not been updated in more than two weeks because of a build problem. I'm new to the nix world and am missing experience so I'm wondering how often it actually happens that unstable is this far behind?
<V> joesventek: every few weeks
<V> maybe every couple months or so
<V> it's not uncommon, but it doesn't constantly happen at least
<joesventek> I see. Thank
<joesventek> you
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « texinfo: revert to version 6.5 on Darwin »: https://git.io/JUGW5
growpotkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
ericsagnes has joined #nixos
Izorkin has quit [Ping timeout: 256 seconds]
Izorkin has joined #nixos
<jakobrs> What am I supposed to do with cyclic dependencies between build outputs?
<V> jakobrs: try to break the cycle somewhere
<{^_^}> [nixpkgs] @7c6f434c merged pull request #97091 → radare2: 4.5.0 -> 4.5.1 → https://git.io/JU3rV
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JUGl3
<MichaelRaskin> After large upstream changes, merging the two outputs together might be necessary
<jakobrs> Specifically, with pipewire 0.3.8+, some files from the pulseaudio source tree are copied to the pipewire output itself
<jakobrs> So pipewire.lib depends on pipewire.out instead of pulseaudio.out
<jakobrs> and pipewire.out depends on pipewire.lib (in the RPATHs of some of the binaries)
noudle has joined #nixos
dbmikus has joined #nixos
<jakobrs> I was able to revert the commit that causes the cyclic dependency, but I don't think this is a very robust way of fixing the problem.
<jakobrs> It means that the package's behaviour may differ from upstream if those files that were copied are changed in pulseaudio but not in pipewire.
<MichaelRaskin> Well, maybe split the out ?
<jakobrs> As in, move the files into their own output?
<jakobrs> I guess that could work
<MichaelRaskin> If it works without too much effort, that sounds like the most natural solution
<jakobrs> Should I symlink the files into the "old" out too? Also, I have to come up with a name for the new output.
<MichaelRaskin> Why would you need to symlink?
<MichaelRaskin> Dunno, pa-files ?
<MichaelRaskin> Do you expect any rev-dependency to care about these files?
<jakobrs> It was just in case any dependent would expect those files to exist in $out
<jakobrs> Can I write a patch that refers to the value of $out?
<jakobrs> Or would it be better to add a custom meson option that refers to the path to install the files in
malook has joined #nixos
maddo has joined #nixos
<maddo> is there any news on this https://github.com/NixOS/nixpkgs/pull/53901 ?
<{^_^}> #53901 (by grahamc, 1 year ago, open): WIP: Sign systemd boot EFI images for secure booting.
<jakobrs> "/nix/store/...-stdenv-linux/setup: line 1121: alsa-card-profile-files: bad substitution"
<jakobrs> Any idea what that is supposed to mean?
eoli3n_ has quit [Remote host closed the connection]
eoli3n_ has joined #nixos
<jakobrs> Can I run the fixup phase with bash -x somehow?
<MichaelRaskin> set -x in the pre-hook?
<jakobrs> As in `preFixup = "set -x"`?
<MichaelRaskin> Yes, something like that should hopefully work
<jakobrs> Didn't seem to work, unfortunately
fendor has joined #nixos
<jakobrs> Seems output names can't contain dashes
arjen-jonathan has joined #nixos
<jakobrs> It builds
<{^_^}> [nixpkgs] @danieldk merged pull request #97243 → rink: 0.5.0 -> 0.5.1 → https://git.io/JUsxM
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JUGBk
<jakobrs> ... Just dedided to actually search for if someone else has already done this, and turns out it's part of #93725
<{^_^}> https://github.com/NixOS/nixpkgs/pull/93725 (by nglen, 6 weeks ago, open): nixos/pipewire: add transparent ALSA/PulseAudio/JACK support
<jakobrs> There it's done in a slightly different way, though: the relevant files are moved into $lib
cosimone has joined #nixos
yangm has quit [Quit: Idle for 30+ days]
eoli3n_ has quit [Ping timeout: 258 seconds]
gsals[m] has quit [Quit: Idle for 30+ days]
pjt_tmp has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JUG0n
<jakobrs> How do I package programs which use meson subprojects (which would require internet access)?
<{^_^}> [nixpkgs] @Ma27 merged pull request #97278 → youtube-dl: 2020.07.28 -> 2020.09.06 → https://git.io/JUGnD
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JUGEU
invokesus has joined #nixos
<Yaniel> jakobrs: predownload all of them
<Yaniel> and copy them in the dirs where meson expects to find them
__monty__ has joined #nixos
danpker has quit [Quit: WeeChat 3.0-dev]
<{^_^}> [nixpkgs] @Ma27 pushed commit from @zowoq to release-20.03 « youtube-dl: 2020.07.28 -> 2020.09.06 »: https://git.io/JUGEC
jakobrs has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #97262 → nushell: enable for aarch64 → https://git.io/JUGT7
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JUGEz
jakobrs has joined #nixos
alexherbo2 has joined #nixos
jasom has quit [Ping timeout: 244 seconds]
jasom has joined #nixos
<jakobrs> Yaniel: I'll try that
chenhq2005 has joined #nixos
FRidh has joined #nixos
kleisli_ has quit [Ping timeout: 264 seconds]
eoli3n_ has joined #nixos
spudly- has joined #nixos
spudly has quit [Ping timeout: 256 seconds]
spudly- is now known as spudly
malook has quit [Quit: malook]
Maxdamantus has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @tex opened pull request #97280 → airscan: 0.99.8 -> 0.99.16 → https://git.io/JUGud
hke has quit [Ping timeout: 260 seconds]
hke has joined #nixos
Maxdamantus has joined #nixos
qz has quit [Ping timeout: 246 seconds]
S0rin has quit [Ping timeout: 260 seconds]
dozn has quit [Quit: I'm probably just changing some settings or have had an outage, I'll be back soon.]
kreyren has joined #nixos
chenhq2005_ has joined #nixos
dozn has joined #nixos
stiell has quit [Ping timeout: 258 seconds]
arjen-jonathan has quit [*.net *.split]
astylian_ has quit [*.net *.split]
h0m2 has quit [*.net *.split]
Orbstheorem has quit [*.net *.split]
mariatsji has quit [*.net *.split]
bloodyfish[m] has quit [*.net *.split]
woobilicious[m] has quit [*.net *.split]
nicolas[m]1 has quit [*.net *.split]
faya01[m] has quit [*.net *.split]
d8d910[m] has quit [*.net *.split]
wedens[m] has quit [*.net *.split]
hsngrmpf[m] has quit [*.net *.split]
printfn[m] has quit [*.net *.split]
hienergy[m] has quit [*.net *.split]
billiozzi[m] has quit [*.net *.split]
truby has quit [*.net *.split]
steakfan[m] has quit [*.net *.split]
trepetti[m] has quit [*.net *.split]
slabity has quit [*.net *.split]
felschr[m] has quit [*.net *.split]
alexfmpe has quit [*.net *.split]
anonymouserobot[ has quit [*.net *.split]
cab404[m] has quit [*.net *.split]
derrecklowe[m] has quit [*.net *.split]
etokarev[m] has quit [*.net *.split]
norbert[m]2 has quit [*.net *.split]
unrooted[m] has quit [*.net *.split]
srasu[m] has quit [*.net *.split]
Guest31244 has quit [*.net *.split]
pjt_014[m] has quit [*.net *.split]
ma27[m] has quit [*.net *.split]
regnat has quit [*.net *.split]
kaychaks_riot has quit [*.net *.split]
khassanov[m] has quit [*.net *.split]
Bino has quit [*.net *.split]
marcus[m] has quit [*.net *.split]
Niobium[m] has quit [*.net *.split]
alienpirate5 has quit [*.net *.split]
azazel has quit [*.net *.split]
das-g[m] has quit [*.net *.split]
aanderse has quit [*.net *.split]
leons has quit [*.net *.split]
nilsirl[m] has quit [*.net *.split]
grin[m] has quit [*.net *.split]
LeshaInc has quit [*.net *.split]
tazjin has quit [*.net *.split]
NobbZ[m] has quit [*.net *.split]
Yakulu[m] has quit [*.net *.split]
Poscat[m] has quit [*.net *.split]
pikajude has quit [*.net *.split]
PyroLagus has quit [*.net *.split]
Cadey has quit [*.net *.split]
etu has quit [*.net *.split]
Fulgen has quit [*.net *.split]
SOO7 has quit [*.net *.split]
rummik has quit [*.net *.split]
ldlework has quit [*.net *.split]
chenhq2005 has quit [Ping timeout: 246 seconds]
alienpirate5 has joined #nixos
stiell has joined #nixos
bloodyfish[m] has joined #nixos
Orbstheorem has joined #nixos
h0m2 has joined #nixos
nicolas[m]1 has joined #nixos
woobilicious[m] has joined #nixos
slabity has joined #nixos
derrecklowe[m] has joined #nixos
ma27[m] has joined #nixos
mariatsji has joined #nixos
printfn[m] has joined #nixos
norbert[m]2 has joined #nixos
arjen-jonathan has joined #nixos
pjt_014[m] has joined #nixos
etokarev[m] has joined #nixos
billiozzi[m] has joined #nixos
steakfan[m] has joined #nixos
srasu[m] has joined #nixos
truby has joined #nixos
faya01[m] has joined #nixos
das-g[m] has joined #nixos
anonymouserobot[ has joined #nixos
aanderse has joined #nixos
wedens[m] has joined #nixos
Yakulu[m] has joined #nixos
Poscat[m] has joined #nixos
hsngrmpf[m] has joined #nixos
trepetti[m] has joined #nixos
d8d910[m] has joined #nixos
Niobium[m] has joined #nixos
felschr[m] has joined #nixos
astylian_ has joined #nixos
unrooted[m] has joined #nixos
Bino has joined #nixos
cab404[m] has joined #nixos
hienergy[m] has joined #nixos
grin[m] has joined #nixos
azazel has joined #nixos
nilsirl[m] has joined #nixos
NobbZ[m] has joined #nixos
kaychaks_riot has joined #nixos
tazjin has joined #nixos
Fulgen has joined #nixos
etu has joined #nixos
regnat has joined #nixos
Cadey has joined #nixos
alexfmpe has joined #nixos
SOO7 has joined #nixos
rummik has joined #nixos
LeshaInc has joined #nixos
leons has joined #nixos
PyroLagus has joined #nixos
ldlework has joined #nixos
marcus[m] has joined #nixos
Guest31244 has joined #nixos
khassanov[m] has joined #nixos
pikajude has joined #nixos
la-jesystani has quit [Ping timeout: 256 seconds]
nilsirl[m] has quit [Max SendQ exceeded]
S0rin has joined #nixos
nilsirl[m] has joined #nixos
<{^_^}> [nixpkgs] @risicle merged pull request #92978 → sndio: 1.6.0 -> 1.7.0 → https://git.io/JJYNZ
<{^_^}> [nixpkgs] @risicle pushed 3 commits to master: https://git.io/JUGzM
<hsngrmpf[m]> In nix repl, I can easily get a functions location by evaluating it without arguments. How can I get the same with `trace`? How to convert a function to a string?
<jakobrs> I might be wrong, but that seems like the sort of thing that is impossible by design
<jakobrs> to preserve function extensionality
astylian_ has quit [Remote host closed the connection]
chenhq2005 has joined #nixos
<{^_^}> [nixpkgs] @gebner opened pull request #97281 → beet: fix build with mutagen 1.45 → https://git.io/JUGgf
<{^_^}> [nixpkgs] @gebner merged pull request #96886 → beets: Fix wavpack mediafile test → https://git.io/JUmly
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/JUGgT
dozn has quit [Quit: I'm probably just changing some settings or have had an outage, I'll be back soon.]
<{^_^}> [nixpkgs] @gebner closed pull request #97281 → beets: fix build with mutagen 1.45 → https://git.io/JUGgf
qz has joined #nixos
dozn has joined #nixos
chenhq2005_ has quit [Ping timeout: 246 seconds]
<jakobrs> hsngrmpf[m]: Otherwise there's builtins.unsafeGetAttrPos if it's in an attrset
<LnL> that's the only way to access location information from within nix itself AFAIK
<{^_^}> [nixpkgs] @gebner merged pull request #97193 → libwacom: 1.4.1 -> 1.5 → https://git.io/JUszS
<{^_^}> [nixpkgs] @gebner pushed 2 commits to staging: https://git.io/JUGgO
<LnL> > builtins.unsafeGetAttrPos "hello" pkgs
<{^_^}> { column = 3; file = "/var/lib/nixbot/nixpkgs/master/repo/pkgs/top-level/all-packages.nix"; line = 20855; }
<LnL> so if it's for logging that's the way to go
<jakobrs> What does the "the string is not allowed to refer to a store path" error mean?
<jakobrs> > builtins.getContext "${vim}"
<{^_^}> { "/nix/store/b9vispwhs5psmz3hd6gmjb6zsd70286d-vim-8.2.1123.drv" = { outputs = [ "out" ]; }; }
<jakobrs> > (builtins.getContext "${vim}")."${vim.drvPath}"
<{^_^}> the string '/nix/store/b9vispwhs5psmz3hd6gmjb6zsd70286d-vim-8.2.1123.drv' is not allowed to refer to a store path (such as '=/nix/store/b9vispwhs5psmz3hd6gmjb6zsd70286d-vim-8.2.1123.drv')
<LnL> drvPath has context (to track dependencies)
<jakobrs> > (builtins.getContext "${vim}")."${builtins.unsafeDiscardStringContext "${vim.drvPath}"}"
<{^_^}> { outputs = [ "out" ]; }
<jakobrs> Why is it disallowed?
<LnL> think of it like different types
<LnL> > :t "hello"
<{^_^}> Unknown command: t
cosimone has quit [Quit: Quit.]
noudle has quit []
sMuNiX_ has quit [Quit: WeeChat 2.9]
<jakobrs> :t "${hello.drvPath}"
<jakobrs> a string with context
<jakobrs> But why can't strings with context be used as keys?
<jakobrs> Is it because it would implicitly drop the context?
<LnL> yeah think of it like different types
chenhq2005 has quit [Ping timeout: 240 seconds]
<jakobrs> okay
<jakobrs> thank you
<LnL> eg, concatination merges context from both strings
<LnL> but "hello" and "hello" with some context are different things so what should indexing do?
<jakobrs> that makes sense
jakobrs has quit [Quit: WeeChat 2.7.1]
chenhq2005 has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #97282 → vgrep: init at 2.4.0 → https://git.io/JUGgr
Unode has quit [Read error: Connection reset by peer]
Unode has joined #nixos
tilcreator has quit [Quit: ZNC 1.7.5 - https://znc.in]
Acou_Bass has quit [Quit: ZNC 1.7.5 - https://znc.in]
chenhq2005 has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @erikarvstedt opened pull request #97283 → Fix paperless and other Python pkgs → https://git.io/JUGgN
Acou_Bass has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @smunix opened pull request #97284 → avro-tools: 1.9.1 -> 1.9.2 → https://git.io/JUG2t
sangoma has joined #nixos
chenhq2005 has joined #nixos
zupo has joined #nixos
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b0976a302c7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
cr4y1 has joined #nixos
<{^_^}> [nixpkgs] @teto closed pull request #62105 → init maintainers/scripts/update-hackage → https://git.io/fjRcm
cr4y1 has quit [Read error: Connection reset by peer]
Unode has quit [Read error: Connection reset by peer]
Unode has joined #nixos
cr4y1 has joined #nixos
puffnfresh_ has quit [Quit: ZNC 1.8.0 - https://znc.in]
<kraem> numkem: you're not alone with that `bootctl` error. i've had it for a week. can't remember since what commit this started happening exactly though.
puffnfresh_ has joined #nixos
cr4y1 has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @gebner opened pull request #97285 → cura: 4.6.1 -> 4.7.1 → https://git.io/JUG26
tobiasBora0 has joined #nixos
<{^_^}> [nixpkgs] @gebner merged pull request #96688 → octoprint.python.pkgs.octoprint-dashboard: init at 1.13.0 → https://git.io/JUtF9
<{^_^}> [nixpkgs] @gebner pushed 4 commits to master: https://git.io/JUG21
ixxie has joined #nixos
cr4y1 has joined #nixos
chenhq2005 has quit [Ping timeout: 264 seconds]
cr4y1 has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
cr4y1 has joined #nixos
<ixxie> Hey folks; trying to make my first overlay and I'm not quite getting the hang of it
turbo_MaCk has joined #nixos
<pbogdan> ixxie: `override` overrides the inputs of a package / function, you probably want `overrideAttrs` instead
<pbogdan> you will also need to override its src, just changing the name itself won't make it build the new version
<{^_^}> [nixpkgs] @7c6f434c closed pull request #96933 → linux_zen: 5.8.1 -> 5.8.5 → https://git.io/JUYtl
<{^_^}> [nixpkgs] @7c6f434c merged pull request #97038 → linux_zen: 5.8.1 -> 5.8.7 → https://git.io/JU3k0
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JUGak
<ixxie> pbogdan: aaah cheers! Yeah I realized I need to override the source but wanted to understand this issue first
<turbo_MaCk> Hi, I have a problem with botting my desktop. Stage 2 seems to work correctly but at the time I would expect to get to sddm login I just get the black screen with cursor and system appears not to be responding to any input. I don't think this is caused by state of nixos itself but rather by some state outside of nix store but I can't really be sure about that. Anyone know how I can work around this
<turbo_MaCk> to get at least to root console? I'm using systemd boot
<{^_^}> [nixpkgs] @kevincox merged pull request #96899 → kakoune: 2020.08.04 -> 2020.09.01 → https://git.io/JUmKi
<{^_^}> [nixpkgs] @kevincox pushed 2 commits to master: https://git.io/JUGaW
<{^_^}> [nixpkgs] @danieldk merged pull request #97269 → zola: 0.11.0 -> 0.12.0 → https://git.io/JUGmD
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JUGaB
<ixxie> pbogdan: hmm so something like this https://gist.github.com/ixxie/ddb2b8b3f1ec1f555e2c753879b5174c but I did something wrong
<pbogdan> ixxie: `overrideAttrs` takes a function of one argument so you want .overrideAttrs(old: { })
<pbogdan> overrideAttrs(old: { name = '...'; src = '...'; })
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/b0976a302c7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<ixxie> cheers pbogdan!
<ixxie> kinda weird its building the whole thing now but I haven't changed the sha256 yet...
<ixxie> and it didn't fail...
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<turbo_MaCk> ixxie: use nix-prefetch-url to determine sha256 it's part of
mmohammadi98128 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
xd1le has quit [Remote host closed the connection]
mmohammadi98128 has joined #nixos
mmohammadi98128 has quit [Client Quit]
mmohammadi98128 has joined #nixos
mmohammadi98128 has quit [Client Quit]
tobiasBora0 has quit [Read error: No route to host]
knupfer has quit [Ping timeout: 260 seconds]
xd1le has joined #nixos
knupfer has joined #nixos
turbo_MaCk has quit [Quit: WeeChat 2.9]
ambro718 has joined #nixos
<jackdk> My current nixos config set nixpkgs.overlays to a bunch of stuff so that I had updated versions of all the things I wanted in the built nixpkgs. In the Glorious Brave New World Of Flakes, how do I construct a flake that behaves like nixpkgs but with my overlay changes built in?
<jackdk> my overall objective is to refactor to a repo with all my machine configurations set as different flake outputs; this feels like a standard usecase
chenhq2005 has joined #nixos
disasm has quit [Ping timeout: 264 seconds]
tilcreator has joined #nixos
disasm has joined #nixos
<ixxie> I'm trying to bump the version of a driver with an overlay and it turns out the build steps have changed
<ixxie> I'm a little bit in over my head
turbo_MaCk has joined #nixos
<ixxie> turbo_MaCk: thanks for the tip earlier, it helped
xeijin has joined #nixos
<turbo_MaCk> ixxie: I'm glad it did and sorry for unfinished sentence, I'm kind of in middle of debugging of my own :/
<ixxie> nothing to be sorry about! good luck
<pbogdan> ixxie: try adding nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ self.xorg.utilmacros self.autoreconfHook ];
<{^_^}> [nixpkgs] @risicle merged pull request #93008 → yafaray-core: 3.4.4 -> 3.5.0 → https://git.io/JJOIt
<{^_^}> [nixpkgs] @risicle pushed 3 commits to master: https://git.io/JUGV9
<{^_^}> [nixpkgs] @marsam merged pull request #97033 → jellyfin: 10.6.3 -> 10.6.4 → https://git.io/JU3vC
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGVA
<ixxie> pbogdan: looks like that did the trick! thanks!
<{^_^}> [nixpkgs] @marsam merged pull request #97223 → deno: 1.3.2 -> 1.3.3 → https://git.io/JUsyx
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGVh
ixxie has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @marsam merged pull request #97249 → skaffold: 1.13.2 -> 1.14.0 → https://git.io/JUGe8
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGwk
chenhq2005 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #97248 → sickgear: 0.21.36 -> 0.21.42 → https://git.io/JUGee
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGwz
<{^_^}> [nixpkgs] @marsam merged pull request #97054 → vsci: init at 7.0.12 → https://git.io/JU3Zn
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JUGw2
duckfullstop has quit [Quit: Why do you need...?]
<{^_^}> [nixpkgs] @marsam merged pull request #97246 → sensu-go-backend: 5.21.1 -> 5.21.2 → https://git.io/JUsj2
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUGww
duckfullstop has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #nixos
eoli3n_ has quit [Ping timeout: 256 seconds]
chenhq2005 has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
boredom101 has joined #nixos
boredom101 has left #nixos [#nixos]
boredom101 has joined #nixos
chenhq2005 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @HaoZeke opened pull request #97286 → busybox: Fix 404 error → https://git.io/JUGr0
Unode has quit [Read error: Connection reset by peer]
Unode has joined #nixos
arjen-jonathan has quit [Ping timeout: 246 seconds]
cr4y1 has quit [Read error: Connection reset by peer]
<jackdk> I really do not like that `nix build` tells me that a flake has a cached failure, but _won't tell me what it is_
<{^_^}> [nixpkgs] @TethysSvensson opened pull request #97287 → chromium: Unblock nixos-unstable by using the correct argument to fet… → https://git.io/JUGoI
turbo_MaCk has quit [Ping timeout: 240 seconds]
kreyren has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @andir merged pull request #97106 → firefox: 80.0 -> 80.0.1 → https://git.io/JU3MX
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/JUGo8
boredom101 has quit [Remote host closed the connection]
Dagger has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @flokli merged pull request #93424 → nixos/gitlab: Support incoming mail → https://git.io/JJnBl
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JUGoS
<{^_^}> [nixpkgs] @romildo merged pull request #96691 → iconpack-obsidian: 4.12 -> 4.13 → https://git.io/JUtNl
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JUGod
turbo_MaCk has joined #nixos
<turbo_MaCk> Just in case someone will land on the log from irc dealing with issue I described ^^^ I personally fixed it by using super dirty hack (since I don't know about better way). Botted to install cd, mounted root there, broke xserver (by removing sddm from nix/store) rebooted, xssession failed to console and there I fixed the system.
Dagger3 has joined #nixos
Dagger2 has quit [Excess Flood]
<{^_^}> [nixpkgs] @peterhoeg merged pull request #96769 → nixos/phpfpm: always restart service on failure → https://git.io/JUqik
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JUGKe
Dagger2 has joined #nixos
<{^_^}> [nixpkgs] @Atemu opened pull request #97288 → linux_5_8: 5.8.6 -> 5.8.7 → https://git.io/JUGKk
chenhq2005 has joined #nixos
turbo_MaCk has quit [Ping timeout: 256 seconds]
Dagger2 has quit [Max SendQ exceeded]
ManiacOfMadness has quit [Ping timeout: 244 seconds]
smyds has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #96627 → fractal: add gtk support to gstreamer → https://git.io/JULN9
<{^_^}> [nixpkgs] @jtojnar pushed commit from @tnias to master « fractal: add gtk support to gstreamer »: https://git.io/JUGK4
<smyds> hi, i had a printing issue because I didn't have the 169.254.x.x zeroconf route configured. I added it manually through network-manager but I was wondering if there was a better way to get this route by default.
mallox has joined #nixos
Dagger has joined #nixos
xd1le has quit [Read error: Connection reset by peer]
<evanjs> ugh wait lol that's just pulseaudio :P hrm what else is there
<evanjs> Trying to remember what I've done to get printing to work nicely
<smyds> yep that option was actually already enabled but yeah its just for pulseaudio
xd1le has joined #nixos
<smyds> there's services.avahi.nssmdns that i enabled also, and avahi-browse found the printer but resolve to a 169.254.x.x address that I had no route for
`IceK1ng has joined #nixos
chenhq2005 has quit [Ping timeout: 264 seconds]
turbo_MaCk has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #97287 → chromium: Unblock nixos-unstable by using the correct argument to fet… → https://git.io/JUGoI
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JUGKj
`IceK1ng has quit [Quit: Reboot The Universe: (Y/N/Quit) https://imgur.com/a/ki6Mgcv]
orivej has joined #nixos
<{^_^}> [nixpkgs] @kampka opened pull request #97289 → texinfo: Depend on gettext on Darwin → https://git.io/JUG6O
leungbk has joined #nixos
<{^_^}> [nixpkgs] @primeos opened pull request #97290 → gammastep: 2.0.1 -> 2.0.2 → https://git.io/JUG6W
andymandias has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @risicle opened pull request #97291 → elasticmq: remove in favour of elasticmq-server → https://git.io/JUG60
leungbk has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @primeos pushed to master « gns3-{gui,server}: 2.2.12 -> 2.2.13 »: https://git.io/JUG6a
Dagger has quit [Max SendQ exceeded]
Dagger2 has joined #nixos
Dagger2 has quit [Excess Flood]
teto has joined #nixos
fendse has joined #nixos
Dagger has joined #nixos
<evanjs> Anybody seen this with latex-live-preview lately? "vim-latex-live-preview: Neither the explicitly set livepreview_engine NOR the defaults are executable."
kreyren has joined #nixos
ixxie has joined #nixos
Rusty1 has joined #nixos
leungbk has joined #nixos
<evanjs> *realizes my tex option is disabled* -_-
turbo_MaCk has quit [Ping timeout: 246 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ixxie> I'm thinking of switching from gnome to KDE
<ixxie> What kind of declarative configuration is possible for KDE?
zupo has joined #nixos
sputny has joined #nixos
leungbk has quit [Ping timeout: 256 seconds]
eoli3n_ has joined #nixos
<evanjs> okay, wow... I guess I had forgotten to roll some tex plugins into the whole "disable tex by default" changes I made some time back... well that makes sense XD
<{^_^}> [nixpkgs] @meutraa opened pull request #97292 → androidStudioPackages.{dev,canary}: 4.2.0.8 -> 4.2.0.9 → https://git.io/JUGXO
cosimone has joined #nixos
waleee-cl has joined #nixos
xeijin has left #nixos ["ERC (IRC client for Emacs 27.1)"]
<{^_^}> [nixpkgs] @OPNA2608 opened pull request #97293 → palemoon: Add libpulseaudio to wrapper → https://git.io/JUGXg
<{^_^}> [nixpkgs] @oxalica opened pull request #97294 → linux: remove dependency to utillinuxMinimal → https://git.io/JUGXo
<ixxie> Rusty1: cheers!
<m1cr0man> Hey folks. I'm trying to fix a build (django-picklefield) and I've discovered the pypi package doesn't contain its tests, hence the hydra failure. What's the consensus on using fetchPypi vs fetchFromGitHub for pythonPackages? Sourcing from github would fix the issue
<ixxie> Rusty1: but I guess the plasma addons must me enabled imperatively
orivej has quit [Quit: No Ping reply in 180 seconds.]
maxdevjs has joined #nixos
ixxie has quit [Quit: Lost terminal]
ixxie has joined #nixos
<evanjs> Gah why are there so many variants of *.package option descriptions lol. Like what do I even say x_x
orivej has joined #nixos
o1lo01ol1o has joined #nixos
mmohammadi98128 has joined #nixos
mmohammadi98128 has quit [Client Quit]
mmohammadi9812 has joined #nixos
mmohammadi9812 has quit [Client Quit]
mmohammadi9812 has joined #nixos
arjen-jonathan has joined #nixos
Extends has joined #nixos
<{^_^}> [nixos-homepage] @davidak pushed to pre-nixcon-survey « Add pre-nixcon survey banner »: https://git.io/JUGMU
<ldlework> jb55: hey are you around?
jmeredith has joined #nixos
jakobrs has joined #nixos
<jakobrs> If I need to package a dependency of a package while packaging something, should I open multiple PRs?
anderslu1dstedt has joined #nixos
<{^_^}> [nixpkgs] @FRidh opened pull request #97296 → utils.bash: revert #93560 for darwin, unblocks channels → https://git.io/JUGMB
<evanjs> also... is there an easier way of testing module changes than rebuilding with e.g. nixpkgs=<local nixpkgs repo>?
anderslundstedt has quit [Ping timeout: 240 seconds]
anderslu1dstedt has quit [Ping timeout: 246 seconds]
anderslundstedt has joined #nixos
<{^_^}> [nixpkgs] @danieldk merged pull request #97238 → tbb: fix library install name on macOS → https://git.io/JUsbY
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JUGMQ
<Unode> hi all, in the past I've used some nix tooling where I could run build phases step by step in a shell environment and inspect the code that was being built/compiled. I'm trying to find what the command was but can't seem to find this in the docs. Does anyone know what I'm referring to ?
<Unode> It looks like what I want are the stdenv functions but I'm missing the initial command
<flokli> evanjs: write a nixos test ;-)
<fzakaria> Unode: Lookup stdenv phases
<teto> Unode: set|less and look for 'Phase' . probably 'configurePhase' or 'unpackPhase'
<flokli> Unode: you can give breakpointHook a try as well
<flokli> (should be documented in the manual)
<fzakaria> Something i've always wanted was also a "continue" debugger like functionality or "next"
<fzakaria> when i'm in nix-shell i want to just issue "next" for stdenv
<fzakaria> and go through each phase registered.
<Unode> fzakaria: that's the manual section I was reading but I don't see how to get a shell that has stdenv loaded
<Unode> flokli: will do
orivej has quit [Ping timeout: 264 seconds]
<fzakaria> `nix-shell` that's it. (if you have a default.nix_
<fzakaria> or `nix-shell --pure`
julm_ has joined #nixos
<Unode> fzakaria: and then just source the stdenv shell script?
julm_ has quit [Client Quit]
<Unode> flokli: breakpointHook looks promising. Will give it a try. Never heard about 'cntr'
<{^_^}> [nixpkgs] @romildo opened pull request #97297 → marwaita-manjaro: 2020-08-29 -> 1.5 → https://git.io/JUGDT
<jakobrs> What folder should wireplumber go in?
<evanjs> flokli: bah but I wanna try out the module myself :P *switches to computer with more free space*
<fzakaria> Unode: if you check your environment variables they will be set to functions you can run
<{^_^}> [nixpkgs] @FRidh merged pull request #97296 → utils.bash: revert #93560 for darwin, unblocks channels → https://git.io/JUGMB
<{^_^}> [nixpkgs] @FRidh pushed to staging-next « utils.bash: revert #93560 for darwin, unblocks channels »: https://git.io/JUGDq
<{^_^}> [nixpkgs] @FRidh pushed 221 commits to staging-next: https://git.io/JUGDm
<{^_^}> [nixpkgs] @FRidh pushed 277 commits to staging: https://git.io/JUGD3
<fzakaria> ```
<fzakaria> ```[nix-shell:~/code/nix/playground]$ declare -F | grep unpack
<fzakaria> declare -f unpackPhase
<fzakaria> declare -f unpackFile
<fzakaria> you can search all the functions loaded in your shell for the phases
<fzakaria> you just run them.
<{^_^}> [nixpkgs] @FRidh pushed to staging « Revert "utils.bash: revert #93560 for darwin, unblocks channels" »: https://git.io/JUGDc
<Unode> fzakaria: here I just get "error: cannot auto-call a function that has an argument without a default value ('stdenv')" . Probably the default.nix is not in the right format for a simple "nix-shell" on the same folder.
<Unode> adding --pure doesn't help either.
<Unode> taking a couple of steps back
julm_ has joined #nixos
<Unode> say I want to debug a package in the nixpkgs tree that fails to compile. I want to be able to inspect the code, tweak it and once I know what is the issue prepare a patch to be added to the expression. How would I go about this?
<fzakaria> hmm not sure; but that's generally the concepts.
<fzakaria> On a really trivial derivation doesn't error for me.
<Unode> (I'm also trying out the breakpointHook flokli mentioned)
<fzakaria> breakpoint or just run the steps yourself if it's stdenv
<fzakaria> in nix-shell
<fzakaria> sometimes i even resort to one-at-a-time running the commands
<fzakaria> maybe a specific line in my installPhase is bad
<Unode> what I'm missing is how do I even get the shell started with the right environment.
<teto> Unode: stdenv doesn't have a default value. you can instead do `{ pkgs ? <nixpkgs>}: pkgs.stdenv`
<fzakaria> are you in the nixpkgs tree ?
<teto> so if `pkgs` is not set, it defaults to `<nixpkgs>` and you can just call nix-shell in that folder
Rusty1 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<Unode> fzakaria: yes. Lets say pkgs/servers/caddy
<fzakaria> i think ; nix-shell <nixpkgs> -A caddy but let me try
<fzakaria> yea i wrote `nix-shell -A caddy` in nixpkgs
<fzakaria> when i wrote
<fzakaria> [nix-shell:~/code/github.com/NixOS/nixpkgs]$ unpackPhase
<fzakaria> ```
<fzakaria> source root is source
<fzakaria> unpacking source archive /nix/store/zsysmy993zfg8as65whmh3bvzs5344n4-source
<fzakaria> ```
<fzakaria> so stdenv is working to debug
teto has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #91121 → Restructure acme module → https://git.io/Jfbsp
<{^_^}> [nixpkgs] @flokli pushed 7 commits to master: https://git.io/JUGDo
<Unode> 'nix-shell -A caddy' doesn't work but "nix-shell '<nixpkgs>' -A caddy" is working. Will continue exploring from here. Thanks!
julm_ has quit [Quit: leaving]
<{^_^}> [nixpkgs] @felschr opened pull request #97298 → filebot: init at 4.9.1 → https://git.io/JUGDP
<V> Unode: nix-shell '<nixpkgs>' -A caddy
<V> nix-shell needs an attrset to grab an attribute from when you pass -A
<V> if you don't give it one, it'll try loading default.nix from the current directory
<V> which will probably fail, unless you happen to be in a directory containing such a file
<Unode> V: I was but then I get the stdenv error mentioned above.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ebd2e632d61 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jakobrs has quit [Quit: WeeChat 2.7.1]
invokesus has quit [Ping timeout: 265 seconds]
tomberek has joined #nixos
<{^_^}> [nixpkgs] @kalbasit merged pull request #96920 → pgformatter: 4.3 -> 4.4 → https://git.io/JUYfD
<{^_^}> [nixpkgs] @kalbasit pushed to master « pgformatter: 4.3 -> 4.4 (#96920) »: https://git.io/JUGDQ
<ixxie> I there a way to declaratively configure KDE themes?
<{^_^}> [nixpkgs] @edef1c merged pull request #33283 → kernel config: CONFIG_DRM_DP_AUX_CHARDEV → https://git.io/vbx9V
<{^_^}> [nixpkgs] @edef1c pushed 2 commits to master: https://git.io/JUGDd
<Unode> flokli: breakpointHook worked but it doesn't seem to give the exact environment at the time of failure. I do have a shell open on the build folder though so this is neat.
<Unode> inside the sandbox it seems
<Raito_Bezarius> is there something to do IPv4 to IPv6 proxy for TLS using SNI preferably in NixOS?
<flokli> Unode: yeah, but you can poke around at least
<flokli> Raito_Bezarius: sniproxy
<Raito_Bezarius> sounds good flokli !
<Unode> flokli: seems like sourcing build/env-vars is all I need now. Already making progress. Cheers!
<flokli> Raito_Bezarius: I use it to dispatch some legacy traffic to nspawn containers
<{^_^}> [nixpkgs] @risicle opened pull request #97299 → elasticmq-server: 0.14.6 -> 0.15.7, add passthru.tests → https://git.io/JUGDh
<Unode> although puzzled... the build failed with standard nix-build but inside cntr seems to be making progress :puzzled_look:
<Raito_Bezarius> flokli: I'm trying to reproduce this: https://www.mythic-beasts.com/support/topics/proxy
cole-h has joined #nixos
kreyren has quit [Ping timeout: 240 seconds]
<flokli> Raito_Bezarius: yeah, sniproxy should do pretty much that: https://github.com/dlundquist/sniproxy#configuration-syntax
Rusty1 has joined #nixos
<{^_^}> [nixpkgs] @kalbasit merged pull request #97074 → bazel-kazel: 0.0.12 -> 0.1.0 → https://git.io/JU30O
<{^_^}> [nixpkgs] @kalbasit pushed commit from @r-ryantm to master « bazel-kazel: 0.0.12 -> 0.1.0 (#97074) »: https://git.io/JUGyv
<flokli> there's also the `proxy_protocol` option
kreyren has joined #nixos
<{^_^}> [nixpkgs] @m1cr0man opened pull request #97300 → django-picklefield: Source from Github, fix test and build → https://git.io/JUGyJ
<{^_^}> [nixpkgs] @m1cr0man opened pull request #97301 → django-extensions: 2.2.8 -> 3.0.8 → https://git.io/JUGyU
<Raito_Bezarius> flokli: this one is a bit annoying because I want to enable it only for IPv4 hosts
<Raito_Bezarius> clients*
pingiun has joined #nixos
<Raito_Bezarius> and not IPv6 ones
<Raito_Bezarius> unsure if I can do that
<pingiun> How can I allow nixos to continue booting even when it cannot find my zfs pool?
<cole-h> \
<cole-h> Oops
<flokli> Raito_Bezarius: why can't you just bind on the IPv4 address?
<Raito_Bezarius> flokli: I don't have IPv4
<Raito_Bezarius> To be fair, I only have *ONE* IPv4
<Raito_Bezarius> and it's a multi-tenancy thing
<Raito_Bezarius> so I cannot put everyone on the same box and share the IPv4
<Raito_Bezarius> (plus I don't want to share the IPv4 and I don't want to use it except for very specific things)
ambro718 has quit [Quit: Konversation terminated!]
<flokli> Raito_Bezarius: I don't understand. If you want clients that only have IPv4 to be able to connect to IPv6-only servers, you kinda need to provide this proxy service via IPv4.
<Raito_Bezarius> Yes, it's my plan to use sniproxy on this IPv4, sorry for the confusion
<flokli> for each domain, you point the A record to the proxy, and AAAA to the individual IPv6 address.
<Raito_Bezarius> but I believe if I enable proxy protocol, it'll be enabled for all hosts
<Raito_Bezarius> which is a security hazard for IPv6 clients because they can spoof their IPs
<flokli> so all IPv6 traffic goes direct, and only the v4 one goes through SNIproxy
<Raito_Bezarius> or I misunderstood something
<Raito_Bezarius> I completely agree with what you said
<flokli> on the individual hosts, you need to restrict, and only allow the proxy protocol from the source address the sniproxy box is sending packets from
<Raito_Bezarius> I'm not sure if NGINX enable such precise configuration of the proxy protocol
<Raito_Bezarius> But I have to check
<Raito_Bezarius> If that's possible, then yes
<{^_^}> [nixpkgs] @FRidh merged pull request #92761 → eventstat: 0.04.09 -> 0.04.10 → https://git.io/JJqNI
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « eventstat: 0.04.09 -> 0.04.10 »: https://git.io/JUGys
<{^_^}> [nixpkgs] @FRidh merged pull request #92661 → wimlib: 1.13.1 -> 1.13.2 → https://git.io/JJt5t
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « wimlib: 1.13.1 -> 1.13.2 »: https://git.io/JUGyG
<pingiun> I found that "nofail" for my zfs mount does not matter if the zpool cannot be imported. Can I make importing the zpool failable?
<{^_^}> [nixpkgs] @FRidh merged pull request #92896 → qwt6_qt4: 6.1.4 -> 6.1.5 → https://git.io/JJYYU
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « qwt6_qt4: 6.1.4 -> 6.1.5 »: https://git.io/JUGyZ
<{^_^}> [nixpkgs] @FRidh merged pull request #92908 → sysvinit: 2.96 -> 2.97 → https://git.io/JJYly
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « sysvinit: 2.96 -> 2.97 »: https://git.io/JUGyC
<{^_^}> [nixpkgs] @FRidh merged pull request #93736 → fx_cast_bridge: 0.0.6 -> 0.0.7 → https://git.io/JJ8Dj
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « fx_cast_bridge: 0.0.6 -> 0.0.7 »: https://git.io/JUGyB
<{^_^}> [nixpkgs] @gebner merged pull request #97285 → cura: 4.6.1 -> 4.7.1 → https://git.io/JUG26
<{^_^}> [nixpkgs] @gebner pushed 7 commits to master: https://git.io/JUGyu
<{^_^}> [nixpkgs] @FRidh merged pull request #92010 → icingaweb2: 2.8.0 -> 2.8.1 → https://git.io/JJU96
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « icingaweb2: 2.8.0 -> 2.8.1 »: https://git.io/JUGyz
<{^_^}> [nixpkgs] @FRidh merged pull request #91820 → opencl-clhpp: 2.0.11 -> 2.0.12 → https://git.io/JJfS5
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « opencl-clhpp: 2.0.11 -> 2.0.12 »: https://git.io/JUGya
<{^_^}> [nixpkgs] @FRidh merged pull request #91797 → catch2: 2.12.2 -> 2.12.3 → https://git.io/JJf2J
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « catch2: 2.12.2 -> 2.12.3 »: https://git.io/JUGyw
<{^_^}> [nixpkgs] @FRidh closed pull request #90553 → flmsg: 4.0.14 -> 4.0.15 → https://git.io/Jf7jj
<{^_^}> [nixpkgs] @vbgl opened pull request #97302 → liquidsoap: 1.3.4 → 1.4.2 → https://git.io/JUGyi
<flokli> Raito_Bezarius: iirc, it's a separate proxy_protocol field in an additional "listen" line on the backend server - so you could firewall that port away
<{^_^}> [nixpkgs] @martinetd opened pull request #97303 → systemd-confinement: handle ExecStarts etc being lists → https://git.io/JUGyX
<Raito_Bezarius> hm, that could be the most effective solution indeed
greizgh_ has quit [Quit: greizgh_]
greizgh has joined #nixos
<infinisil> Such that bootup wasn't delayed by a slow pool
<infinisil> main is the pool and /betty is the only filesystem that's being mounted on that pool
ddellacosta has joined #nixos
<pingiun> infinisil: so the idea is that the zfs-import target is reached immediately and the system can continue booting?
<infinisil> Yeah
<infinisil> And zfs-import I think is only used for non-root pools
<pingiun> I'll check the sources for that, but thanks this helps
<infinisil> pingiun: What's `nix-instantiate --eval --strict '<nixpkgs/nixos>' -A config.systemd.targets.zfs-import.after` and `nix-instantiate --eval --strict '<nixpkgs/nixos>' -A config.systemd.services.zfs-import-<pool>.before` for you?
<pingiun> is there a way I can run those commands without /etc/nixos/configuration.nix (I use nixops)
work_ has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #96889 → ocamlPackages.labltk: init at 8.06.9 for OCaml 4.11 → https://git.io/JUm8F
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.labltk: init at 8.06.9 for OCaml 4.11 »: https://git.io/JUGSk
<pingiun> ah I can see that there is no service defined for importing my root pool
<infinisil> You could `systemctl cat zfs-import.target` and `systemctl cat zfs-import-<pool>` on the target machine
bennofs__ has joined #nixos
<infinisil> Should display the After and Before statements
<{^_^}> [nixpkgs] @davegallant opened pull request #97304 → awscli2: 2.0.36 -> 2.0.46 → https://git.io/JUGSt
<pingiun> After=zfs-import-trunk.service and Before=trunk-backup.mount trunk-books.mount trunk-download.mount trunk-media.mount local-fs.target
<pingiun> I recon that the local-fs.target should be removed from the before
bennofs_ has quit [Ping timeout: 256 seconds]
<infinisil> Yeah
<pingiun> and the after can be empty
<pingiun> nice
<pingiun> thanks for the help
<infinisil> :)
<ixxie> how would I conditionally import a module?
<ixxie> would mkIf work?
<cole-h> imports = `lib.mkIf (true) [ ./module ]` I would guess
<infinisil> cole-h: Doesn't work if the condition depends on config
ddellacosta has quit [Ping timeout: 240 seconds]
<infinisil> If it does there's no way to do it. The next best thing is to always import the module but use `config = mkIf (...) { ... }` within the module
<ixxie> That's what I have previously done but I was wondering if it would be more elegant if I could do at import
tomberek has quit [Remote host closed the connection]
lukegb is now known as l4b
l4b is now known as lukegb
tazjin is now known as t4n
rajivr has quit [Quit: Connection closed for inactivity]
lotharn has joined #nixos
turlando has joined #nixos
mariatsji has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer merged pull request #92539 → python27Packages.pydub: 0.24.0 -> 0.24.1 → https://git.io/JJLMQ
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.pydub: 0.24.0 -> 0.24.1 »: https://git.io/JUGS5
mariatsji has joined #nixos
<davidak[m]> has anyone noticed that nixos is broken on master? https://github.com/NixOS/nixpkgs/issues/97305
<{^_^}> #97305 (by davidak, 57 seconds ago, open): NixOS broken on master
evanjs has quit [Read error: Connection reset by peer]
sangoma has quit [Ping timeout: 264 seconds]
evanjs has joined #nixos
sangoma has joined #nixos
wangoe[m] has joined #nixos
FireFly is now known as Luciole
aborsu has joined #nixos
cosimone has quit [Quit: Quit.]
mmohammadi9812 has quit [Ping timeout: 240 seconds]
corpix_ has joined #nixos
corpix has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
nullheroes has quit [Quit: WeeChat 2.9]
nullheroes has joined #nixos
ManiacOfMadness has joined #nixos
justanotheruser has joined #nixos
turlando has quit [Ping timeout: 240 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<fzakaria> infinisil: what do you think of this idea. Aughment stdenv builder to support `next` or `continue` which executes the next configured stage or continues them until failure.
<infinisil> fzakaria: Sounds like a good idea if it can be implemented well :)
<fzakaria> cole-h: why do you have to use `mkIf` instead of just `if X then Y else Z;`
<infinisil> There's a bunch of bash/env var hackery going on in the builder though, so I'm not sure how well it works
<fzakaria> infinisil: ah; i always forget the phases to execute and want just a step-through function. I'll take a look.
t4n is now known as tazjin
invokesus has joined #nixos
<{^_^}> [nixpkgs] @risicle merged pull request #96409 → tippecanoe: 1.35.0 -> 1.36.0 → https://git.io/JUkgg
<{^_^}> [nixpkgs] @risicle pushed 2 commits to master: https://git.io/JUGHf
Izorkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
arjen-jonathan has quit [Ping timeout: 244 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Izorkin has joined #nixos
dbmikus has quit [Ping timeout: 260 seconds]
zupo has joined #nixos
invokesus has quit [Ping timeout: 264 seconds]
teto has joined #nixos
<{^_^}> [nixpkgs] @primeos merged pull request #97215 → python3Packages.scapy: 2.4.3 -> 2.4.4 → https://git.io/JUs1v
<{^_^}> [nixpkgs] @primeos pushed to master « python3Packages.scapy: 2.4.3 -> 2.4.4 (#97215) »: https://git.io/JUGHs
<cole-h> bqv: WOOOHOOO
<cole-h> bqv: I fixed `--option log-format` from your PR :DDDD
<cole-h> bqv: Now both `--option log-format` and `--log-format` work :D
xcmw has joined #nixos
<cole-h> bqv: (Also, your PR doesn't compile because of an oopsie in `LogFormat`'s `toJSON`
<cole-h> )
<cole-h> diff in a sec
gustavderdrache has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 pushed to release-20.03 « radare2: 4.5.0 -> 4.5.1 »: https://git.io/JUGHD
<worldofpeace> davidak: *begins to tear hair from head
<worldofpeace> lol, it's like ballistic missiles have been dropped on nixos in fairly even intervals 🤪
Rusty1 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<davidak[m]> like root was removed or something
<worldofpeace> davidak: if that's the case with no test to verify the simplest thing 🔥 🎆
<worldofpeace> * WORLDofWRATH enters the chat
orivej has quit [Quit: No Ping reply in 180 seconds.]
<worldofpeace> and karen needs to speak to nixos's manager
endformationage has joined #nixos
philr has quit [Ping timeout: 240 seconds]
<cole-h> davidak[m]: What are the good and bad commits? While you're bisecting, maybe a simple look at the git log will enlighten me
<mica[m]> worldofpeace: I thought you were one of nixos' managers...
<davidak[m]> :D
<worldofpeace> mica: I know. It's going to be me and karen having a showdown
<worldofpeace> I'm feeling sorry for myself tbh
<davidak[m]> cole-h: haven't found any goot commit yet
<cole-h> davidak[m]: Well it's a new issue, so it must've been fine before. Do you know what commit of nixpkgs you were on before you ran into this issue?
noudle has joined #nixos
<davidak[m]> i'm on stable. so trying that now
* mica[m] hugs worldofpeace
<mica[m]> Hopefully your user name stays true
pingiun has quit [Ping timeout: 260 seconds]
kreyren_ has joined #nixos
<worldofpeace> mica: hehe, it's my actual name also. But in the interwebs they take on other forms on occasion
kreyren has quit [Remote host closed the connection]
<worldofpeace> ,worldofyumminess
<{^_^}> Worldofwarmth(trill every r) + a dash of extra sweetness
<{^_^}> [nixpkgs] @danieldk opened pull request #97306 → openblas: re-enable AVX512 support → https://git.io/JUGQY
mariatsji has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @unode opened pull request #97307 → tdm: 2.07 -> 2.08 → https://git.io/JUGQs
<cole-h> davidak[m]: tbh, it looks like your /var/lib/nixos/uid-map / /var/lib/nixos/gid-map is corrupted
mariatsji has joined #nixos
<cole-h> Seeing as you're getting a malformed json string due to null bytes at the beginning of the file...
<cole-h> davidak[m]: Actually, it's your uid-map that's the problem (line 11 is reading that file)
<{^_^}> [nixpkgs] @romildo opened pull request #97308 → ubuntu-themes: 19.04 -> 20.10 → https://git.io/JUGQW
<worldofpeace> davidak: I did have that happen once
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cole-h> FWIW, I also see the /dev/fd/62 issue... it doesn't seem to hurt anything though........
mariatsji has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed to master « nixos/qemu-vm: support nix run »: https://git.io/JUGQR
justanotheruser has quit [Ping timeout: 240 seconds]
knupfer has quit [Quit: knupfer]
ddellacosta has quit [Quit: WeeChat 2.8]
knupfer has joined #nixos
zupo has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<davidak[m]> cole-h: here is what i have for now https://github.com/NixOS/nixpkgs/issues/97305#issuecomment-687857303
orivej has joined #nixos
<davidak[m]> i still can't login in the good commit.
<davidak[m]> users.extraUsers.root.password = "root"; worked before...
ddellacosta has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
growpotkin has joined #nixos
<cole-h> davidak[m]: Before you go any further, I'd open /var/lib/nixos/uid-map in a text editor, first
patrickod_ is now known as patrickod
<davidak[m]> i have the issue in a vm where i can't login nixos-rebuild build-vm -I nixpkgs=~/code/nixpkgs/ -I nixos-config='/home/davidak/root'
<cole-h> And make sure it looks like you'd expect json to look
<worldofpeace> I just tried 02590c96209d374d7f720293fcb8337e17104bc9 and I could login *shrug
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sangoma has quit [Ping timeout: 265 seconds]
sangoma has joined #nixos
<fzakaria> is there a way to get nixos-rebuild on a non-NixOS machine ?
orivej_ has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
<cole-h> Not that I'm aware of.
<fzakaria> > $ nix-shell -p 'nixos-rebuild'
<{^_^}> error: syntax error, unexpected $undefined, at (string):321:1
<V> fzakaria: nixos-rebuild is just a script that builds NixOS, and runs a script from within it
<simpson> fzakaria: Read like two more comments in that same thread.
<fzakaria> so i run non-NixOS on my laptop but want to rebuild my server from it.
<fzakaria> makes all those 'nix deploy' scripts useless
<fzakaria> nixos-rebuild has a `--target` option which makes it easy.
<{^_^}> [nixpkgs] @teto merged pull request #94683 → hping: 20051105 -> 2014-12-26 → https://git.io/JJKoO
<{^_^}> [nixpkgs] @teto pushed commit from @sikmir to master « hping: 20051105 -> 2014-12-26 (#94683) »: https://git.io/JUGQD
<Raito_Bezarius> I'd like to factor a bit my NixOS configuration, is there a way to have custom properties inside config?
<Raito_Bezarius> just for the sake of organisation
<Raito_Bezarius> such as config.publicIPv6
<V> Raito_Bezarius: sure, just add it to options like any other nixos module
<V> configuration.nix is just a nixos module that gets merged with all the other nixos modules
<V> it's not special in any way
<V> you can also add your own modules and add those to imports
<Raito_Bezarius> yeah, I guess that's the only way
<V> (for structuring your config, when it gets too big)
<V> { options.publicIPv6 = mkOption { type = types.str; description = "public IPv6 address"; }; config.something = config.publicIPv6; }
<patrickod> hey folks. I'm trying to update the looking-glass-client package to the latest B2-rc4 build but am running into some compilation issues which I believe are specific to my being on an AMD architecture https://gist.github.com/patrickod/64136d60a6957470607a7a2cb52496a8 has the updated derivation and the build output.
<patrickod> AIUI as a result of https://github.com/NixOS/nixpkgs/pull/61019 having been merged I'd expect the CC wrapper to be passing the appropriate znver2 option as -march and -mtune but that doesn't appear to be the case? I'm building this against the master branch which does include this merged PR for architectures.nix
<{^_^}> #61019 (by volth, 1 year ago, merged): platform.gcc.arch: support for AMD CPUs
<fzakaria> simson: `nix-shell -p '(nixos{}).nixos-rebuild'` works well enough; but there's no man entry
<fzakaria> I have to set NIX_CONFIG beforehand though.
ManiacOfMadness has quit [Ping timeout: 272 seconds]
ixxie has quit [Quit: Lost terminal]
<davidak[m]> cole-h worldofpeace i now get the issue also on the lastest stable commit, even tho it worked some minutes before. it might be just me or nixos-rebuild build-vm. i don't understand yet what's going on
<cole-h> davidak[m]: Have you checked your uid-map yet?
<davidak[m]> (i'm not out of disk space :D)
<davidak[m]> cole-h: how?
<cole-h> /var/lib/nixos/uid-map
<davidak[m]> cole-h: of my host system?
<Raito_Bezarius> V++
<{^_^}> V's karma got increased to 3
tobiasBora0 has joined #nixos
davidv7 has quit [Ping timeout: 240 seconds]
<cole-h> davidak[m]: Both, if possible.
<davidak[m]> cole-h: that looks normal and contains root. i can't login to the vm
<cole-h> Can you set the VM's init to sh?
<cole-h> (I don't remember if running a vm built by build-vm has a bootloader)
<cole-h> davidak[m]: Also make sure `hexdump -n 2 /var/lib/nixos/uid-map` doesn't show a zero.
Darkmatter66_ has joined #nixos
<cole-h> davidak[m]: You can mount qcow2 with `guestmount`. The VM should dump it somewhere in the result symlink, maybe?
<{^_^}> [nixpkgs] @placeybordeaux opened pull request #97309 → joplin-desktop 1.0.233 -> joplin-desktop 1.0.241 → https://git.io/JUG7t
<cole-h> pkgs.libguestfs is guestmount
<davidak[m]> yes, it's at ./nixos.qcow2
<cole-h> `guestmount -a ./nixos.qcow2 -i --ro /mountpoint` once you have guestmount in your PARH
<cole-h> PATH
Darkmatter66 has quit [Ping timeout: 264 seconds]
<davidak[m]> thanks
<davidak[m]> [davidak@gaming:~/code/nixpkgs]$ sudo guestmount -a ./nixos.qcow2 -i --ro /tmp/tmp.1F7pugMFFJ
<davidak[m]> libguestfs: error: cannot find any suitable libguestfs supermin, fixed or old-style appliance on LIBGUESTFS_PATH (search path: /nix/store/bibp9w2bnh4365fz82m94i33qapxh250-libguestfs-1.40.2/lib64/guestfs)
<davidak[m]> [sudo] password for davidak:
<cole-h> I forgot
<cole-h> pkgs.libguestfs-with-appliance
<davidak[m]> i used nix run, maybe not good
<cole-h> And it'll need to build
<cole-h> since -with-appliance isn't cached due to its size
<davidak[m]> i see
<{^_^}> [nixpkgs] @Mic92 merged pull request #96885 → nixos/tests/sssd-ldap: init → https://git.io/JUmCz
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JUG7R
shibboleth has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #97264 → appimageTools: use buildFHSUserEnvBubblewrap → https://git.io/JUGkg
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JUG72
<cole-h> bqv: btw, here's the patch to apply on top of your PR: https://gist.github.com/cole-h/ec8e4334e6595c2848252e9dda54941d
o1lo01ol1o has quit [Ping timeout: 258 seconds]
ManiacOfMadness has joined #nixos
<davidak[m]> cole-h: [root@gaming:/tmp/tmp.1F7pugMFFJ]# hexdump -n 2 var/lib/nixos/uid-map
<davidak[m]> 0000002
<davidak[m]> 0000000 0000
<cole-h> Yeah
<cole-h> That's no bueno
reductum has joined #nixos
<cole-h> Yep, deeeeeefinitely no good.
Thra11 has quit [Quit: WeeChat 2.9]
<cole-h> That's the problem: your uid-map is full of null bytes
ixxie has joined #nixos
<davidak[m]> same with etc/shadow
<cole-h> Which causes the update-users-groups.pl script to choke when it's expecting well-formed JSON and receives null bytes
<cole-h> That sounds like corruption to me (or maybe you accidentally sent /dev/null into those files)
<ixxie> I'm trying to enable plasma5 (in parallel to gnome / xmonad, if it matters) and running into really weird graphics issues
<ixxie> Any time I try to open most applications in KDE, the windows don't open and weird artifacts appear on the screen
<ixxie> the programs do appear in the dock minimized so it seems they launch, but when I try to expand them either nothing appears or some artifacts appear
<ixxie> I found threads about tearing and stuff, and they recommend change some compositor settings
<ixxie> unfortunately I cannot get to those settings without opening windows....
kreyren_ has quit [Ping timeout: 240 seconds]
<davidak[m]> cole-h: that was at this commit (stable) https://github.com/NixOS/nixpkgs/commit/51d115ac89d676345b05a0694b23bd2691bf708a
<davidak[m]> can you reproduce it?
<davidak[m]> i guess anyone should have noticed it when it's not only me
<cole-h> davidak[m]: I can't, because build-vm is not supported with flakes.
marsh has quit [Ping timeout: 272 seconds]
<q3k[m]> davidak: i regularly hit this issue if i kill a nixos test vm too fast after spawning it and not waiting for the disk to sync
<q3k[m]> davidak: fwiw
<{^_^}> #69365 (by arianvp, 49 weeks ago, open): update-users-groups.pl is broken when running NixOS tests interactively
<cole-h> davidak[m]: So maybe try removing the VM image and retrying?
<cole-h> q3k[m]++
<{^_^}> q3k[m]'s karma got increased to 3
Thra11 has joined #nixos
<davidak[m]> that's it
<{^_^}> [nixpkgs] @lovesegfault closed pull request #91187 → beets: add flask with enableZero → https://git.io/JfbN3
<q3k[m]> nicolas: hm, probably because "\\" in nix is two literal backslashes, not a backslash (from escaping)
<q3k[m]> nicolas: but json has to escape backslashes because they are significant (eg. for "\udeadboof")
<q3k[m]> nicolas: so you get `"\"\\\\xDEADBEEF\""`
<q3k[m]> where `\\\\` is really a "\\" string, which is what your original string has
kreyren has joined #nixos
<q3k[m]> * where `\\\\` is really a `"\\"` string, which is what your original string has
<nicolas[m]1> that's the thing. You cannot represent `\xDEADBEEF` with `builtins.toJSON`
<q3k[m]> what is `\xDEADBEEF`
<q3k[m]> rfc7159 doesn't mention `\x` escape strings as far as i can tell
<q3k[m]> but JSON is a shit standard that's an absolute interoperability minefield, so i would guess some implementations do in fact emit/expect `\x`
<nicolas[m]1> I don't think the standard allows \x
<nicolas[m]1> My usecase was for the recently added `pkgs.formats.{json, yaml, ...}`
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/43a27ce45d5 (from 83 minutes ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<nicolas[m]1> YAML allows hexadecimal escapes (`\x`) in strings
<q3k[m]> yes but this is not yaml, this is json
<nicolas[m]1> But the implementation blindly uses `builtins.toJSON` underneath, which makes it impossible to represent `"\\xDEADBEEF"`
<q3k[m]> i mean, what you get is literally "\\xDEADBEEF"
<q3k[m]> * i mean, what you get is literally `"\\xDEADBEEF"`
<q3k[m]> just the slashes are extra quoted
<q3k[m]> since:
<nicolas[m]1> My example escapes the slash otherwise Nix interprets the escape sequence
ixxie has quit [Quit: Lost terminal]
<q3k[m]> oh right, so this is indeed then a single-slash string
eoli3n_ has quit [Ping timeout: 258 seconds]
<q3k[m]> but then again, the output JSON seems fine, too:
<q3k[m]> `nix-repl> :b pkgs.writeText "foo" (builtins.toJSON "\\xdeadbeef")`
<q3k[m]> that makes:
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/43a27ce45d5 (from 88 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<q3k[m]> ```
<q3k[m]> ```
<q3k[m]> 00000000: 225c 5c78 6465 6164 6265 6566 22 "\\xdeadbeef"
<q3k[m]> so that again seems like the correct behaviour to me
<nicolas[m]1> No it's not
<q3k[m]> why not? what did you expect?
<q3k[m]> `\xdeadbeef` is against RFC7159
<nicolas[m]1> Nevermind, it's the right behaviour in the case of a JSON string
<nicolas[m]1> but not in the case of a YAML string
<q3k[m]> yes
<q3k[m]> correct
<nicolas[m]1> I'll open an issue for the YAML formatter in this case
<q3k[m]> but then again, "\xAA" is not a nix thing, either, as far as I can tell
o1lo01ol1o has joined #nixos
<q3k[m]> like you can't quote-escape hexadecimal strings in nix strings, i think
<q3k[m]> sorry, backslash-escape
<q3k[m]> so even if you wanted a backslash-escaped hexadecimal string in YAML, you'd have to feed it into nix some other way
<{^_^}> [nixos-homepage] @garbas merged pull request #517 → Add pre-nixcon survey banner → https://git.io/JUsZ6
<{^_^}> [nixos-homepage] @garbas pushed 2 commits to master: https://git.io/JUGdU
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to pre-nixcon-survey: https://git.io/JUGdT
<q3k[m]> ie. find another way to get a nix string that contains nonprintable characters like DE, AD, BE or EF
<nicolas[m]1> You can represent it by escaping the slash
<q3k[m]> you mean `\\deadbeef`? no, that just means a literal string of `[\, d, e ,a ,d, b, e, e, f]` in nix
shibboleth has quit [Quit: shibboleth]
<q3k[m]> not `[de, 'a', ...]` or `[de, as, be, ef]`
<nicolas[m]1> I simply expect the formatter to do something like "builtins.replaceStrings ["\\\\"] ["\\"] (builtins.toJSON "\\xDEADBEEF")"
<q3k[m]> * you mean `\\deadbeef`? no, that just means a literal string of `['\', 'd', 'e' ,'a' ,'d', 'b', 'e', 'e', 'f']` in nix
<q3k[m]> but that doesn't make sense
<nicolas[m]1> In the context of YAML it does
us3r[m] has joined #nixos
zupo has joined #nixos
<q3k[m]> not really, as `\\xDEADBEEF` in nix is just a string, not a string containing unprintable characters
<q3k[m]> so you can't expect the YAML serializer to suddenly go 'oh i will perform my own unescaping here'
<q3k[m]> * not really, as `\xDEADBEEF` in nix is just a string, not a string containing unprintable characters
<nicolas[m]1> home-manager's alacritty module uses this hack to convert the attrset representing the configuration to YAML
<q3k[m]> because some users might actually want to emit -prefixed strings that don't mean anything special
<q3k[m]> * because some users might actually want to emit `\`-prefixed strings that don't mean anything special
<{^_^}> [nixpkgs] @Infinisil merged pull request #68887 → services.openssh: add banner item → https://git.io/JUGdW
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JUGd8
sangoma has quit [Ping timeout: 240 seconds]
Rusty1 has joined #nixos
knupfer has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @flokli merged pull request #97294 → linux: remove dependency to utillinuxMinimal → https://git.io/JUGXo
<{^_^}> [nixpkgs] @flokli pushed 2 commits to staging: https://git.io/JUGd5
<{^_^}> #97310 (by berbiche, 3 minutes ago, open): Newly introduced YAML formatter does not allow hexadecimal escapes (or other escapes) in strings
<cole-h> davidak[m]: Are you sure it only happens when you execute `nixos-rebuild build-vm` a second time? I was under the impression it was due to an iterrupted VM, not that there exists a prior VM image...
<davidak[m]> cole-h: i can't reproduce it now after removing it once
<davidak[m]> i closed the vm window while it boots
<davidak[m]> but it still works
<Raito_Bezarius> is the codimd service working?
<Raito_Bezarius> i'm getting an error on sqlite3
<Raito_Bezarius> sept. 06 22:23:40 playground codimd[19879]: 2020-09-06T20:23:40.894Z error: uncaughtException: Please install sqlite3 package manually
<davidak[m]> it happened after i was using `nixos-rebuild build-vm` maby times. no idea how exactly
<cole-h> Maybe you closed it at just the right time before. If you can't reproduce by doing another `nixos-rebuild build-vm`, then the problem wasn't with the fact the disk image existed from a previos run, but that it had gotten corrupted at one point
<davidak[m]> worldofpeace: the issue don't affect the release :)
<davidak[m]> cole-h: but shouldn't the image change when building from another commit and work again?
<worldofpeace> davidak: I've noticed that with tests before
<cole-h> I would expect it to reuse the disk image, not recreate it.
<worldofpeace> it can get corrupted, I think
<davidak[m]> worldofpeace: the issue with tests is known https://github.com/NixOS/nixpkgs/issues/69365
<{^_^}> #69365 (by arianvp, 49 weeks ago, open): update-users-groups.pl is broken when running NixOS tests interactively
<cole-h> davidak[m]: It would "change", but since /var/lib/nixos/uid-map already existed, no reason to recreate it (it doesn't know it's been zeroed)
<davidak[m]> that makes sense
<cole-h> e.g. I wouldn't expect build-vm, when using an already-present disk image, to recreate the entire fs
<davidak[m]> would be pretty bad when happening on hardware. not sure if that is possible
<Extends> simple question, I have a bash script that I'm trying to package that calls some packages in it, what's the proper way to specify this dependencies in my derivation ? propagatedBuildInputs didn't work unfortunately.
<cole-h> I would think it would just be a quirk of qemu being interrupted. Though the only way to interrupt a bare-metal system would be to hit the power button or pull the plug, which obviously could corrupt a disk
<ldlework> How do I include something like ${SCREEN_SIZE:-800x600} in a nix string being used as script source?
nrb has joined #nixos
<cole-h> ,escape ${SCREEN_SIZE:-800x600}
<immae> ,escape ${
<{^_^}> Escape this in '' strings with: ''${SCREEN_SIZE:-800x600}
<{^_^}> Escape this in " strings with: \${SCREEN_SIZE:-800x600}
<{^_^}> Escape this in '' strings with: ''${
<{^_^}> Escape this in " strings with: \${
<V> lol @ all the people doing that at the same time
<cole-h> :)
<V> I almost did as well
<immae> My hand was too fast I didn’t manage to prevent committing the message :D
<ldlework> thanks all
justanotheruser has joined #nixos
cole-h has quit [Quit: Goodbye]
fendor has quit [Remote host closed the connection]
ixxie has joined #nixos
nrb26 has joined #nixos
reductum has quit [Quit: WeeChat 2.9]
<Extends> I used lib.makeBinPath in postFixup, it fixed it
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nrb26> 1st timer with NixOS 20.03 vanilla install here and have basic question: $ systemctl start sshd \ Failed... Unit sshd.service not found
MarkRBM has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<q3k[m]> nrb26: did you `services.openssh.enable = true;` in your `/etc/nixos/configuration.nix`? :)
<nrb26> ah, I see it commented out...
<nrb26> Can I edit the file and... sorry what next? (very first step on my learning curve with NixOS)
<V> you can edit it, yes
<V> and then `nixos-rebuild switch`
<teto> how can I modify the set of packages passed to nixosConfigurations in flakes ? it doesn't seem to take into account the outputs.overlay packages
<V> I recommend reading through the manual some more, though
<nrb26> fantastic, many thanks - am also reading up
<V> That will answer a lot of the questions you have
<V> there's also https://nixos.org/nixos/manual/ which is on another page
<nrb26> ok, thank you
<nrb26> I always use vi -- having to learn nano...
ixxie has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @Ma27 pushed to master « nixos/doc/borgbackup: correct install instructions for `vorta` »: https://git.io/JUGb8
peter0576[m] has joined #nixos
tobiasBora has joined #nixos
Thra11 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @teto merged pull request #97304 → awscli2: 2.0.36 -> 2.0.46 → https://git.io/JUGSt
<{^_^}> [nixpkgs] @teto pushed commit from @davegallant to master « awscli2: 2.0.36 -> 2.0.46 (#97304) »: https://git.io/JUGbM
<tobiasBora> Hello, in order to test my setting, I would like to be able to boot it on the VM. However, the settings for the VM are slighly different, as I don't need to configure the hardware, and I also don't setup the SSL attributes in the same way, so I wanted to add an additional optional argument in my configuration, but as I explain here, it fails: like:
<tobiasBora> For references, I was defining in my configuration.nix { config, pkgs, lib, isVM ? false, ... }:, and then importing using lib.optional (!isVM), but it fails with infinite recursion
<clever> tobiasBora: imports cant depend on config, you must use config = lib.mkIf (expr) { ... }; inside the thing in imports
<tobiasBora> clever: it's what rycee was suggesting, but then I get errors "error: attribute 'isVM' missing, at /nix/store/m59d3v89nhp9207hgvf6v21wxq7lhq64-source/lib/modules.nix:217:28"
<tobiasBora> Was using it as { config, pkgs, lib, isVM ? false, ... }: lib.mkIf (!isVM) { ... }
<tobiasBora> (inside the import)
<{^_^}> [nixpkgs] @risicle merged pull request #92227 → keepalived: 2.0.20 -> 2.1.3 → https://git.io/JJkTn
<clever> tobiasBora: you want to use config.custom.isVM
<{^_^}> [nixpkgs] @risicle pushed 2 commits to master: https://git.io/JUGNv
<clever> and define it within options, options.custom.isVM = lib.mkOption { type = lib.types.bool; default = false; };
<q3k[m]> yeah, that's what i'm doing as well
__monty__ has quit [Quit: leaving]
<q3k[m]> i have a module included everywhere that defines some options like 'is dev vm'
<q3k[m]> modules check these options
<q3k[m]> and then different machines might or might not include somewhere in their config setting these options to true
<q3k[m]> (eg. you can stick it in hardware.nix)
<tobiasBora> clever: hum... so it means that I won't use anymore the { config, pkgs, lib, isVM ? false, ... }?
<{^_^}> [nixpkgs] @zowoq merged pull request #97276 → buildah: 1.15.2 -> 1.16.0 → https://git.io/JUGGZ
<{^_^}> [nixpkgs] @zowoq pushed to master « buildah: 1.15.2 -> 1.16.0 »: https://git.io/JUGNZ
<q3k[m]> yep
<infinisil> nicolas[m]1: Am afraid q3k[m] is correct regarding the hex escaping, just replied in the issue you opened
<tobiasBora> ok thanks, let me try
xcmw has joined #nixos
mallox has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @primeos merged pull request #97290 → gammastep: 2.0.1 -> 2.0.2 → https://git.io/JUG6W
<{^_^}> [nixpkgs] @primeos pushed to master « gammastep: 2.0.1 -> 2.0.2 (#97290) »: https://git.io/JUGNu
<{^_^}> [nixpkgs] @primeos merged pull request #96922 → chromium: Prefix $PATH with xdg_utils → https://git.io/JUYTN
<{^_^}> [nixpkgs] @primeos pushed to master « chromium: Prefix $PATH with xdg_utils (#96922) »: https://git.io/JUGN2
<tobiasBora> clever: and "custom" here is just a random name/convention, or it's actually a special word when defining user options?
<q3k[m]> no, it's a name you pick
gxt__ has joined #nixos
<tobiasBora> k thanks
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<nicolas[m]1> "infinisil" (https://matrix.to/#/@freenode_infinisil:matrix.org) thanks, the proposed solution looks good
o1lo01ol1o has quit [Ping timeout: 260 seconds]
eta has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @bachp closed pull request #95994 → nixos/unifi-poller: add unifi-poller service → https://git.io/JUvZS
<Raito_Bezarius> can I override NixOS module to create my own versions?
<dminuoso> Yes.
<Raito_Bezarius> Is it enough to import my own NixOS module?
<Raito_Bezarius> or my overrides?
* fzakaria waves
<dminuoso> Raito_Bezarius: No. You need to use disabledModules first.
<Raito_Bezarius> dminuoso: Alright
<{^_^}> [nixpkgs] @risicle merged pull request #91824 → ott: 0.30 -> 0.31 → https://git.io/JJfH8
<{^_^}> [nixpkgs] @risicle pushed 2 commits to master: https://git.io/JUGAJ
eta has joined #nixos
<tobiasBora> clever: q3k[m]: it works great, thanks a lot!
<fzakaria> Can I move `nixos-manpages` outside the nixos module ? and into a top level derivation.
<fzakaria> in fact; why are there any derivations inside nixos path at all; they should all be within nixpkgs ?
<jlv> How is the unstable nixpkgs block coming along?
nixbitcoin_ has joined #nixos
nixbitcoin has quit [Ping timeout: 240 seconds]
<ldlework> Is there a way to make a nix-shell out of the derivation used in a nixpkg pkg?
<ldlework> Like, is there a way for me to drop into a shell based on the qtile derivation in nixpkgs?
<ldlework> Bonus, if I can do so while overriding the src to point at some local git repo
<jlv> ldlework: I think `man nix-shell` has an example of that.
<jlv> `nix-shell '<nixpkgs>' -A pan`
<tobiasBora> I've a few more questions on how to deal with VM. I would like to setup multiple hostnames for one VM, like "www.me.com", "git.me.com". However, I can't find how to put hostnames to a VM, I tried with deployment.targetHost = "www.me.com" but it fails saying that deployment does not exist (and also this option does not allow to setup multiple hostnames)
<jlv> `nix-shell '<nixpkgs>' -A qtile` for qtile. I haven't tried it myself.
<ldlework> File "/home/ldlework/ext/qtile/libqtile/pangocffi.py", line 55, in <module>
<ldlework> gobject = ffi.dlopen('libgobject-2.0.so.0')
<ldlework> OSError: cannot load library 'libgobject-2.0.so.0': libgobject-2.0.so.0: cannot open shared object file: No such file or directory
<ldlework> :(
<jlv> I'm not sure you can override `src` from the command line, but you could make a simple .nix file, like `<nixpkgs>.qtile.override ...`. I'm not sure that syntax is correct, but that's the basic idea.
<{^_^}> [nixpkgs] @risicle merged pull request #92182 → guile-sdl2: 0.4.0 -> 0.5.0 → https://git.io/JJTSm
<{^_^}> [nixpkgs] @risicle pushed 2 commits to master: https://git.io/JUGA9
<jlv> `man nix-shell` has an example of a Nix expression with `-E`. You could use that to avoid writing a .nix file to override src.
<jlv> `man nix-shell` has a lot of good examples :)
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo24 has joined #nixos
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo24 is now known as alexherbo2
<ldlework> jlv, how do you "run the build" from inside the shell?
<jlv> ldlework: `eval "$buildPhase"`
<jlv> Actually, if this is the first time running, you'll probably need to run `eval "$unpackPhase"` and `eval "$configurePhase"` as well.
<jlv> The specifics will depend on the package.
<jlv> In general, you can run a phase of the derivation with `eval "$phaseName"`.
<jlv> To do a full build, just like a `nix-build`, you can run each phase in order.
MtotheM has joined #nixos
<ldlework> hmm shouldn't there be an envvar with the used build phases
<jlv> I don't think phases that reference `$out` will work from the Nix shell, but I'm not sure.
<ldlework> hmph, I guess I don't really need to contribute to QTile :P
Nigel[m] has joined #nixos
<ldlework> It would be pretty neat if there was a standard way to use the nixpkg itself, to do development on things.
Gaelan has quit [Quit: ZNC 1.8.0 - https://znc.in]
Gaelan has joined #nixos
<worldofpeace> nix develop in nixUnstable can have a --phase flag
<ldlework> I see that some patch files are applied in the nixpkg, +gobject = ffi.dlopen('@glib@/lib/libgobject-2.0.so.0')
<ldlework> I guess nix-shell doesn't really have a concept of applying patches to the source
<worldofpeace> if u do unpackPhase and cd to source, then patchPhase it's the same?
<worldofpeace> I do that all the time to verify substitutions worked
spudly- has joined #nixos
spudly- has joined #nixos
spudly- has quit [Changing host]
sputny1 has joined #nixos
sputny has quit [Ping timeout: 244 seconds]
sputny1 is now known as sputny
spudly has quit [Ping timeout: 240 seconds]
noudle has quit []
MichaelRaskin has quit [Quit: MichaelRaskin]
<ldlework> :O I got it working by making a default.nix just like the nixpkg
<jb55> ldlework: you pinged me? what's up
teto has quit [Quit: WeeChat 2.9]
Extends has quit [Quit: Lost terminal]
<ldlework> jb55: I saw that you did some work to get omnisharp working (I hope I'm remembering correctly) and I was just wondering if you still do dotnet on NixOS
<jb55> well I wrote https://github.com/jb55/dotnet2nix and use it to build some personal projects but the method used in nixpkgs works fine as well
teoma has joined #nixos
<teoma> What would be a good way to add existing ssh host key files when building a NixOS VM?
<Unode> I'm trying to understand the nixpkgs derivation header. Files typically start with '{ argA, arbB, }:' which if I understand correctly, defines a function. But, 1) one can add additional keywords to {} and if they exist in nixpkgs they are made available and, 2) I do not need to have an ellipsis inside { , ...} to ignore all unused arguments. I'm trying to find where this code is called from to
<Unode> understand how this works.
<Unode> Can someone clarify?
kreyren has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
<ldlework> jb55: i have been trying to razor language server support in vscode
<ldlework> pretty sure it's hopeless tho
nrb has quit [Remote host closed the connection]
<aszlig> Raito_Bezarius: no need to be sorry, however i'm currently quite involved with other things[TM] but if you have questions, feel free to ask
<infinisil> fzakaria: The NixOS man pages can depend on what NixOS modules the user has (e.g. with documentation.nixos.includeAllModules), so there's not any single derivation that would work for every user
<infinisil> fzakaria: Also I think the general idea is that pkgs should be non-OS specific
kreyren has joined #nixos
<Raito_Bezarius> aszlig: to be fair, I tried to make the current nixpart work, but I completely failed to get a working blivet
<Raito_Bezarius> so I tried to bump blivet to its latest version
<Raito_Bezarius> and got some instructions from upstream on what was needed
<hpfr> quick way to list all open firewall ports? there's nixos-option but there's both individual and ranges
<Raito_Bezarius> but I didn't had any time to work on this
<Raito_Bezarius> s/had/have
<infinisil> hpfr: nmap
<aszlig> Raito_Bezarius: mhm, that was my last state as well, however nowadays upstream is actually running their own test suite, so checking whether things are supposed to be working is much easier
kreyren has quit [Remote host closed the connection]
<Raito_Bezarius> yes, it seems like blivet is a lot more mature
<V> Unode: that would be the callPackage function
<V> It takes nixpkgs and a function and fills in the function with the appropriate arguments
<fzakaria> infinisil: yea i couldn't move them :(
<fzakaria> I wanted to figure out if i could install nixos-rebiuld mangpages on my non-nixos system
kreyren has joined #nixos
<Unode> V: I guess the part that is puzzling me is why is the ellipsis not necessary here.
<V> Because it's only passing in those exact parameters.
<V> And not passing in the entire nixpkgs
<V> (IIRC)
<aszlig> Raito_Bezarius: anyway, should you have time to pick up on it, feel free to ping me anytime... i'll hope to answer earlier next time X-D
<Unode> so callPackage inspects the ... ok need to look at that code to understand how that works
<infinisil> fzakaria: You still can
<{^_^}> [nixpkgs] @davidak opened pull request #97313 → limesurvey: 3.23.0+200813 -> 4.3.13+200824 → https://git.io/JUGhI
<V> If you were to, say, call your function directly on nixpkgs, it would require the ellipsis
<V> You can try that out for yourself
<Raito_Bezarius> aszlig: no worries :)
<infinisil> fzakaria: `(import <nixpkgs/nixos> { configuration = {}; }).config.system.build.manual.manpages`
<Unode> V: cause from a pure nix language point of view, I don't see how this could work without the ellipsis.
<V> callPackage is a little bit more than what I described, though
<V> There's overrides and such
<Unode> V: looking for it
maddo has quit [Remote host closed the connection]
<V> E.g. there's qt5Libs.callPackage, which makes available everything from within nixpkgs *and* everything from within qt5
<Unode> yeah, I'm going a bit deeper into nix today to see if I can make my brain click on this for once. Already had a couple of aha! moments but this one is still puzzling.
<fzakaria> infinisil oh thanks: i couldn't figure it out
<V> And various other things like this for language specific ecosystems or desktop environments
<fzakaria> ```
<fzakaria> ```
<fzakaria> i was trying to do
<fzakaria> nix-build '<nixpkgs/nixos/doc/manual>' -A manpages
<fzakaria> (or something with _callPackage_)
<fzakaria> but i didn't know how to callPackage since it takes revision, version & config
<V> This is definitely a more complicated part of nixpkgs though
<infinisil> > simplifiedCallPackage = f: args: f (builtins.intersectAttrs (builtins.functionArgs f) args)
<{^_^}> simplifiedCallPackage defined
<infinisil> > :p simplifiedCallPackage ({ a }: { inherit a; }) { a = 10; b = 20; }
<{^_^}> { a = 10; }
<infinisil> This is basically how it does it Unode ^
<Unode> oh builtins.functionArgs
<V> Yeah
<V> It's all available to Nix
<V> Everything is attrsets
<V> Even functions
<Unode> mind blown
<V> So you can do some fairly fancy introspection
<Unode> was going to google for it, thanks!
<fzakaria> I think there's a good explanation in the Nix Pills;
<fzakaria> I'm missing mine.
<fzakaria> Does NixOS automatically register <nixos-config> channel ?
<infinisil> fzakaria: Nope, and the <...> syntax doesn't have to be a channel
<infinisil> <...> looks up ... in the NIX_PATH env var
<fzakaria> oh right
<fzakaria> nix_path; duh
<fzakaria> okay it's there :)
* colemickens hears boos
<infinisil> And if you do `import <nixpkgs/nixos> { configuration = ...; }` then it won't try to look at <nixos-config> and instead use the config you gave it there
<fzakaria> right right
<fzakaria> im just writting a little entry on some stuff; trying to be *too smart* and do NixOS workflows on my non-NixOS system
<Unode> are builtins also written in nix or they are ... well builtins and have access to aspects of the language not available through other means?
joebobjoe has joined #nixos
<joebobjoe> hi I'd like to request that nix-darwin be canceled
<joebobjoe> it is so unreliable it makes nix look bad
<joebobjoe> it is constantly breaking and I lose access to all the tools I installed
<Unode> or otherwise, all the functions with a <primop> representation in nix repl
<joebobjoe> at least deprecate the multi-user option which is what I'm using that always breaks
justanotheruser has quit [Ping timeout: 256 seconds]
<joebobjoe> it's an embarassment
<{^_^}> [nixpkgs] @evanjs opened pull request #97314 → nixos/lorri: add package option → https://git.io/JUGhg
<fzakaria> can i build NixOS without any hardware-configuration ? I just want to see the built environment generally.
<fzakaria> I tried an empty configuration but it still wants `fileSystems` or `boot.loader.grub`
<fzakaria> (I could give it the VM module but seeing if there's something minimal; it doesn't need to be bootable)
work_ has quit [Quit: Connection closed for inactivity]
<infinisil> Unode: Yeah builtins aren't written in the Nix language, but are provided by the C++ implementation
zeta_0 has joined #nixos
<infinisil> fzakaria: I usually just pass some garbage to these two options
fendse has quit [Ping timeout: 240 seconds]
<Unode> infinisil: ok, that explains why most of those functions can do things other functions can't. Thanks!
<fzakaria> hmm; okay.
<fzakaria> I'll look them -- actually never wrote one since i use the EC2 / AWS module.
<zeta_0> i need a networking tool for a computer networking course that i'm taking, but the only download file that it has for linux is a .deb file(which requires the apt pkg manager), can i install a pkg with nix using a .deb file, or am i better off just install the apt pkg manager and installing it with that?
joebobjoe has quit [Ping timeout: 240 seconds]
<zeta_0> could someone clarify this, thanks in advance !
<simpson> zeta_0: If the package's upstream is open-source, then you could package it directly using Nix. Otherwise, you could call dpkg-deb in a build step; grep nixpkgs for examples.
philr has joined #nixos
<fzakaria> What does this error signify:
<fzakaria> Trying to work through NixOS eval-config
<fzakaria> ```
<fzakaria> passthru = «error: The option `passthru' is used but not defined.»
<fzakaria> ```
<ornxka> what happened to nixos-unstable
<ornxka> it hasnt updated in weeks
<samueldr> ornxka: generally blocker issues are listed at the top of this page https://status.nixos.org/
<ornxka> omg
<ornxka> it was literally right there
<ornxka> i was looking at that very page...
<samueldr> :)
<infinisil> fzakaria: How do you get that?
<zeta_0> simpson: it's a cisco tool called `packet tracer`, which is used for computer networking simulation. i'm pretty sure that it's closed-source/proprietary, so i'm guessing that i'm better of just installing the apt pkg manager using nix, and installing it with apt, also the .deb file says amd on it and my laptop uses intel, so i don't even know if i'll be to get the networking tool working.
<fzakaria> i did `:p eval.config`
<samueldr> ornxka: I don't know the exact details, but it seems like it's a complicated problem in a code path that includes stdenv (thus the world) rebuilds
<samueldr> ornxka: and reverting wasn't an option in this instance
<fzakaria> ```eval = import <nixpkgs/nixos/lib/eval-config.nix> { inherit system; modules = [ {}]; } ```
<infinisil> fzakaria: Oh don't use :p with that
<infinisil> That evaluates stuff strictly
<fzakaria> only way for me to investigate stuff :o
joebobjoe has joined #nixos
<infinisil> fzakaria: I'd recommend tab completion instead
<ornxka> ahhh
<infinisil> config.<TAB>
<simpson> zeta_0: I'm guessing that you *don't* want any extraneous scripts, so you really may have better luck treating the .deb file as a dumb archive rather than a package. At any rate, "amd64" means 64-bit x86, including typical Intel desktop CPUs, if that's what you're seeing.
<fzakaria> infinisil: trying to see what `config` has; & then subsequently `config.system`
<fzakaria> i c.
<ornxka> im glad that the test suite catches it instead of me...
<infinisil> config contains the values of all options
<fzakaria> The `system.build` values don't come up in nixos search online.
<fzakaria> I came across (through Google-fu) `config.system.build.tarball`; trying to figure out how I'd discover that.
<fzakaria> `config.system.build` attributes are set all over the place.
<infinisil> fzakaria: Yeah so the option is `system.build`, and it contains an attribute set within
<infinisil> (though system.build is hidden so it won't show up in option listings)
<fzakaria> looks like it's an attr set of drvs
<infinisil> It's an attribute set of <anything>
<infinisil> E.g. there's system.build.fileSystems which isn't a derivation
joebobjoe has quit [Ping timeout: 265 seconds]
justanotheruser has joined #nixos
<fzakaria> i c.
<fzakaria> ```
<fzakaria> [ "binsh" "bootStage1" "bootStage2" "earlyMountScript" "etc" "extraUtils" "fileSystems" "grub" "initialRamdisk" "initialRamdiskSecretAppender" "installBootLoader" "kernel" "manual" "nixos-enter" "nixos-generate-config" "nixos-install" "nixos-option" "nixos-rebuild" "pamEnvironment" "setEnvironment" "toplevel" "units" ]
<fzakaria> nix-repl> :p builtins.attrNames eval.config.system.build
<fzakaria> ```
* fzakaria bows
<{^_^}> [nixpkgs] @mohe2015 closed pull request #96923 → nixos/httpd: respect hostName when provisioning certificates → https://git.io/JUYk0
<zeta_0> simpson: oh ya, the .deb file is amd64, so that's good, the networking tool should work on my laptop then, also, since you said to treat the .deb file as an archive instead of a package, what would you recommend that i do, to install/build the networking tool with the .deb file? the `nix way` or the `apt way`?
<simpson> zeta_0: The apt way *doesn't work* on NixOS. Grep nixpkgs for dpkg-deb.
<{^_^}> [nixpkgs] @worldofpeace pushed to master « Revert "nixos/qemu-vm: support nix run" »: https://git.io/JUGjo
mbrgm_ has joined #nixos
ml| has quit [Ping timeout: 260 seconds]
<V> zeta_0: are you using NixOS or just Nix the package manager
<V> If just Nix the package manager, just use apt
<zeta_0> V: i'm using nixos.
<V> If NixOS, you want a derivation that has its unpackCmd set to dpkg-deb -x $src .
<V> And then probably some patchelf
tomberek has joined #nixos
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<V> (Or an fhsuserenv, if you're not feeling up to that)
<V> (Or you could just run it through steam-run)
<V> You have lots of options, and half of them don't really make any sense :D
<damjan> I'm trying to build uwsgi with and its php plugin, but it fails with `fatal error: php.h: No such file or directory` http://vpaste.net/ujbZU
<zeta_0> and is there a link to some nix documentation, that explains step-by-step how to do this, i'm confused.
<V> Probably not, documentation is scarce here
<V> Your best reference is grepping around inside nixpkgs
<V> And seeing what other people have done before you
<V> After a certain level of familiarity you don't need to do that so much
<V> damjan: I'm assuming it doesn't actually pull in PHP
<V> Try adding it to your store explicitly
<damjan> V: it did compile php
mhueschen[m] has joined #nixos
<damjan> /nix/store/g4npc9x4n6fp9pwixkgvjfbiclvz1s8b-php-7.4.6
<V> damjan: /bin/sh: php-config: not found
<V> Suggests it's not in the path
<V> I.e. it's a dependency, it ended up in the path, but something wants to use that without using an absolute path to refer to it
<V> s/in the path/in the store/ sorry
<damjan> there's php-config too /nix/store/ah6kwd3s0k9scyzlchnkw1h0lj2q3y9c-php-7.4.6-dev/bin/php-config
<V> Sure, but it's just sitting in the nix store and isn't in the $PATH of whatever is trying to call it
<damjan> right, I think I get what you're saying
<{^_^}> [nixpkgs] @marsam merged pull request #97202 → miller: 5.9.0 -> 5.9.1 → https://git.io/JUs2F
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUZef
<zeta_0> i'm going to git clone nixpkgs from github now in a bit, do i need to use the --recursive flag with the git command as well?
<V> zeta_0: no
<V> It doesn't use submodules to my knowledge
<V> Just a normal git clone will do :)
<infinisil> zeta_0: Haven't you been using NixOS for over a year now?
<zeta_0> V: cool, i'm going to clone the repo now then.
<damjan> https://github.com/unbit/uwsgi/blob/2.0.18/plugins/php/uwsgiplugin.py#L8 uwsgi does have an option to specify where php-config is. I guess the nix derivation needs to set that