<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
<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
<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
<{^_^}>
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"
<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
<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
<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] @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
<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 😬
<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
<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?
<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
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
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>
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
<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
<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
<{^_^}>
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')
<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]
<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
<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
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>
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
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.
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
<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?
<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
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
<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'
<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
<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
<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
<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
<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
<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]
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.
<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]
<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?
<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....
<{^_^}>
#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]>
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.
<{^_^}>
#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
<{^_^}>
[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>
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>
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.
<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
<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
<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]
<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
<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)
<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