<iqubic>
The issue is that megaparsec is an undefined variable.
<iqubic>
Which baffles my mind.
<clever>
iqubic: megaparsec is an attribute of haskellPackages
<clever>
iqubic: you are using haskellPackages.callPackage, so you just need to add megaparsec on line 1, thats it
<iqubic>
What does that mean?
wfranzini has joined #nixos
<clever>
iqubic: do you see how base is on line 1?
<iqubic>
Yes I do.
<clever>
iqubic: add megaparsec
<iqubic>
I see.
<iqubic>
Do I need to do that with every library I'll want to add?
drakonis_ has joined #nixos
<clever>
iqubic: yes, or use cabal2nix
<clever>
iqubic: cabal2nix ./. > default.nix
<iqubic>
what does cabal2nix gain me?
<clever>
it does this step for you
emptyfl4sk has joined #nixos
<iqubic>
I'm fine doing it myself.
pie_ has joined #nixos
<ldlework>
I have > 150 dependencies :(
<ldlework>
including transitive dependencies, that is
<ldlework>
i don't wanna do it by hand :(
emptyfl4sk has quit [Ping timeout: 272 seconds]
sigmundv_ has quit [Ping timeout: 272 seconds]
<iqubic>
ldlework: I understand.
<ldlework>
iqubic: there's not even a foo2nix for my language though
* ldlework
sulks.
<clever>
ldlework: then you should write one!
<ldlework>
well there are other problems too but alas
<ldlework>
clever: there are other problems
<ldlework>
Only the most bleeding edge of nuget (19 days ago) includes the -Deterministic flag
<ldlework>
But in Nixpkgs, Nuget is provided by some rando github.com/mono repo that includes a prebuilt nuget
<ldlework>
no documentation on the build process, etc
<ldlework>
and we just ship that
<ldlework>
so i have no idea how to get a nix nuget that is built from source
<clever>
ldlework: it may be a similar problem to gcc and ghc, where you need nuget to build nuget
<clever>
ldlework: so your only option might be to use that prebuilt nuget, to build nuget from source
<ldlework>
i tried to go to the official nuget repository and try to build it myself but I couldn't do it on nix
<ldlework>
so I did it on windows
<iqubic>
I love lorri so freaking much.
<ldlework>
and shipped the binary to nix and that works
<ldlework>
but
<ldlework>
it can't actually do any work
<ldlework>
because of the mono infrastructure in place isn't what it expects
<ldlework>
so it just blows up with some cryptic thing
<ldlework>
yay for universal binaries
<ldlework>
i'm optimistic overall though
<ldlework>
because once nixpkgs does get that version of nuget
<ldlework>
I think that dotnet in general is going to get a lot better for nix
<clever>
ldlework: i think the problem is that your still trying to compile in the fixed-output drv
<clever>
ldlework: once you can solve that, you wont need -Deterministic
<ldlework>
through all my experimentation it is my working theory that the only source of indeterminism from trying to package some stuff, was a few GUID's in the nuget packages I was creating, and this is specifically addressed by that flag
<clever>
and writing a dotnet2nix would help automate that process
<ldlework>
and i still don't fully appreciate or conceptualize what you're telling me with that
<ldlework>
some dependencies are source dependencies
<ldlework>
that come from github and don't exist on nuget's repos
<clever>
ldlework: for 99% of the packages in nix, your doing src = fetchurl ...;
<ldlework>
as prebuilt binaries
<ldlework>
yesh
<ldlework>
that's what I'm doing
<clever>
and that will simply download the source, and thats it
<ldlework>
agreed
<clever>
it wont compile it
<ldlework>
and yet it needs to be compiled
<clever>
you must compile it in a second derivation
<clever>
that is not fixed-output
<clever>
that has src= set to the fixed-output one
<ldlework>
i'm having a hot brain moment trying to understand
<clever>
ldlework: basically, for every dependency, you want 2 derivations, a fixed-output that downloads the src, and a normal that builds it
<clever>
then add the normal ones to buildInputs, as needed
<ldlework>
I think the problem is that in building a dependency
<ldlework>
the build process wants to go get all the other dependencies
drakonis has joined #nixos
<clever>
you need to convince it that the dependencies are already built, and to look in a given directory
<ldlework>
i did some work to get nuget to use a local cache
<ldlework>
but the output is not deterministic
<ldlework>
but what you're saying
<clever>
the output of compiling doesnt need to be deterministic
<ldlework>
is that the derivation using a local cache to build, even if not deterministic, since it doesn't use the internet, doesn't have to be fixed pointed
<clever>
only the fetching of the source
<clever>
yeah
<ldlework>
god damn it now i'm probably going to spend another day on this
<clever>
you just need to split fetch and compile in 2
<ldlework>
haha
<ldlework>
i was resolved to just use docker because no one using my software is ever going to be using nixos anyway
<ldlework>
hehe
<ldlework>
argh damned hacker spirit
<ldlework>
thanks clever, i think i'll give it one more go
<clever>
but if you can fix things, it can be used as the basis for a dotnet2nix, and fix all dotnet things
<ldlework>
i take your point there
<ldlework>
It's really a "paket2nix" as, it looks like there's a working "fetchNuGet" function -- but paket supports dependency resolution across git repositories which nuget doesn't do
<ldlework>
but paket just fixes a lock file for nuget to then do the lifting
<ldlework>
well and the built git repos
selfsymmetric-mu has quit [Remote host closed the connection]
freeman42x[m]2 has joined #nixos
selfsymmetric-mu has joined #nixos
lambda-11235 has quit [Quit: Bye]
noudle has quit []
tjg1 has quit [Quit: if i commit suicide, at least a real nigga killed me]
emptyfl4sk has joined #nixos
tjg1 has joined #nixos
emptyfl4sk has quit [Ping timeout: 245 seconds]
aanderse has quit [Excess Flood]
<craige>
I have an issue where NixOS *appears* to have decided to build everything from source. I've been unable to work out where / how it got this idea in it's head. I was wondering if anyone has seen this behaviour before and has any pointers as to what I may have done to incur this wrath? :-)
aanderse has joined #nixos
<ivan>
craige: did you change something in your nixpkgs?
<clever>
craige: what is your substituer list in nix.conf?
<craige>
I've got a local copy of nixpkgs, ivan, carrying heaps of changes but my laptop, does not point any of it's own configs at it (I build vm's from the local nixpkgs for testing)
<craige>
I'll look into that clever
steell has joined #nixos
polman has quit [Ping timeout: 245 seconds]
<mdash>
The last time this happened to me I had been fooling with binary cache settings.
<craige>
substituters line in nix.conf points to iohk, clever
<craige>
I have been too, making lots of changes I'm now trying to unwind mdash :-)
<craige>
I've paired my channels back to 19:03 only.
<pie_>
on the note of https://github.com/NixOS/nixpkgs/issues/67636 , why *dont* we have some sort of way to get system information ? or rather, there has to be some sane way to get this to work
<{^_^}>
#67636 (by Alkeryn, 9 hours ago, open): Access system level option from profile level overlays
<pie_>
even if it wasnt an overlay, i dont know of this information being accessible from a user level config? (is it?)
polman has joined #nixos
growpotkin has joined #nixos
<craige>
Giving that a crack. Thanks ivan
knupfer has quit [Ping timeout: 264 seconds]
* craige
relaxes as sanity and productivity return to his laptop. Thanks ivan and clever! ;-)
<clever>
craige: your welcome :)
<craige>
Next I need to blog how I got into and out of that mess. :-)
<clever>
craige: the issue is that cache.nixos.org is in the default binary cache list
<clever>
craige: so if you set the list to anything, the default goes away
Mateon1 has quit [Ping timeout: 272 seconds]
<evanjs>
> when you “finish” switching to a new config format and then realize that profiles/desktop-old.nix is still affecting things 😒
<{^_^}>
error: syntax error, unexpected $undefined, expecting ')', at (string):263:10
<ivan>
clever: craige: this is fixed in master but not 19.03; nix-daemon.nix has nix.binaryCaches = [ "https://cache.nixos.org/" ]; instead of having that in the default
Mateon1 has joined #nixos
<clever>
ivan: ah, thats one solution, but makes it harder to not use that cache, since you would have to mkForce in every one of your modules
steell has quit [Ping timeout: 244 seconds]
<freeman42x[m]2>
I'm in a bit of a bind. I booted the new NixOS insulation but there is no WiFi icon in the tray
<clever>
freeman42x[m]2: does `iwconfig` show the wifi card?
<craige>
I think happened was I added verbatim some custom cache additions for work they removed the NixOS cache - I'll test that theory now and see if I can recreate the problem.
<freeman42x[m]2>
clever, not sure. there are 2 entries
<clever>
freeman42x[m]2: ethernet cards usually start with an e, and wifi with a w
<freeman42x[m]2>
both labeled ethernet
<clever>
freeman42x[m]2: what are the device names?
<freeman42x[m]2>
but 1 is named wlp13s0
<clever>
freeman42x[m]2: then you do have wifi, and just need to configure it
<clever>
freeman42x[m]2: `iwlist wlp13s0 scan` ?
<freeman42x[m]2>
but the tray icon is missing
<craige>
yep recreated the problem. Excellent. Thanks again clever and ivan :-)
<clever>
freeman42x[m]2: the tray icon is probably just not installed
<freeman42x[m]2>
no scan results
<clever>
freeman42x[m]2: `ip link set wlp13s0 up` then scan again?
<freeman42x[m]2>
the WiFi was available in tray in the live cd
<clever>
freeman42x[m]2: ah, maybe its just a firmware issue, any errors in dmesg?
<pie_>
jtojnar: for https://github.com/Simmesimme/Gnome-Pie/issues/170 , could one in theory figure out the icon directories of runnin applications through some indiret method? theres gotta be some way to do this without rewriting the entire ecosystem...(or not....)
<Ralith>
I like networkmanager in principle but nm-applet's popup menu absolutely insists on restricting itself to a tiny corner of my massive 4k screen and making me laboriously scroll through it
<Ralith>
maybe an issue with how it handles updating live after an initial scan
<clever>
Ralith: i just use wpa_cli in a terminal, though i learned wpa before nm was a thing
noogie has joined #nixos
alex`` has joined #nixos
akamaus has quit [Remote host closed the connection]
akamaus has joined #nixos
oborot has quit [Ping timeout: 245 seconds]
janetlouis88 has joined #nixos
emptyfl4sk has joined #nixos
janetlouis88 has quit [Remote host closed the connection]
emptyfl4sk has quit [Ping timeout: 245 seconds]
Okinan has quit [Quit: Konversation terminated!]
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
<jonge[m]>
iqubic: i use this regularly. one example is: https://github.com/tfc/pprintpp/blob/nix/nix/build.nix#L10 if you have any open questions about this, shoot. mind that in nixpkgs, where these functions are defined, there are many comments on how to use it.
abbiya has joined #nixos
Zer0xp has joined #nixos
ee1943 has quit [Read error: Connection reset by peer]
<philipp[m]>
error: anonymous function at [...]/nixpkgs/pkgs/development/libraries/edbee-lib/default.nix:1:1 called without required argument 'qtbase', at [...]/nixpkgs/lib/customisation.nix:69:12
<freeman42x[NixOS>
ivan, ok, I think I get it. But how do I install and use LXD on NixOS to install other programs?
o1lo01ol1o has joined #nixos
<freeman42x[NixOS>
and is there no way to get Snap to work on NixOS? IrfanView is available on the snap store
<ivan>
virtualisation.lxd.enable = true;
<andi->
i think we have snap support but never used it
<ddima>
__monty__: thx for linking yesterday
<ivan>
This option enables lxd, a daemon that manages containers. Users in the "lxd" group can interact with the daemon (e.g. to start or stop containers) using the <command>lxc</command> command line tool, among others."
<__monty__>
ddima: np
nexgen2 has joined #nixos
<andi->
maybe we dont and I confuse it with one of the many other container thingies
<{^_^}>
#30336 (by alesguzik, 1 year ago, open): Flatpak and snap support
<philipp[m]>
The proper way to deal with packages that include a lot of 3rd party libraries via git submodules is creating a dep file in the package dir and pulling from there, right?
<__monty__>
gchristensen: You're right, my wording's not correct either. Note that it only keeps 4 older generations though, not 5, that's what we tripped on back then. I'll fix my wording.
<Profpatsch>
adisbladis: Most of that is due to lassulus, to give credit where credit is due
<gchristensen>
__monty__: thanks. I hope you'll be able to do that very soon, I'd like to get it in to 2.3 :)
<__monty__>
gchristensen: Thinking about wording rn. "number of gens older than and including current" sounds terrible.
cjpbirkbeck has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<gchristensen>
"+5 will keep five older generations: the current generation and the four generations right before" also isn't great
<__monty__>
Tbh I think the real fix is to make +5 mean current *and* 5 older gens : )
<clever>
gchristensen: another quirk, is that /run/booted-system prevents you from GC'ind whatever you booted, no mater how old it is
<clever>
so some generations are rooted, even if you remove the generation root, and cant be GC'd until you reboot
<evanjs>
gchristensen: __monty__: Is "the last 5 generations" too ambiguous?
<rawtaz>
very clever.
<__monty__>
evanjs: It's not the last 5.
<__monty__>
evanjs: That's what gchristensen showed in his review comment.
rndd has joined #nixos
<evanjs>
Now I'm starting to see how confusing it is x_x
<rndd>
hi everyone, where I can find a function specification. For example "fetchurl"...
<gchristensen>
well maybe it is a bug and it should delete 5
nexgen2 has quit [Ping timeout: 244 seconds]
<o1lo01ol1o>
I'm trying to debug a private cache issue on hydra, I've generated the signing key with nix-store --generate-binary-cache-key, passed the priavate key to services.nix-serve, and added my client's public ssh-rsa to the list of allowed ssh allowed to sshServe. However, when I nix-store -r /nix/store/5blzqmi4735d90rdrw26byjnn2bdzm4b-hello-2.10 --option substituters ssh://nix-ssh@bar --option trusted-public-keys foo from the
<o1lo01ol1o>
client, I'm told substituter does not have a valid signature for path. What gives?
zupo has joined #nixos
<vika_nezrimaya>
Ok, great. My hydra instance can't access /run/keys/hydra-binary-cache key that I've specified in NixOps for signing binary cache output.
<__monty__>
Maybe we need different syntax: x..y deletes gens x up to and including y, omitting a bound means min/max gen respectively, and a special bound "current" or offsets +/- to current (+5 would mean current+5)?
<o1lo01ol1o>
vika_nezrimaya: did you /run/current-system/sw/bin/chown -R hydra:hydra and chmod it?
<{^_^}>
[nixpkgs] @rnhmjoj opened pull request #67683 → rxvt_unicode: add rnhmjoj as maintainer → https://git.io/fjxRE
<__monty__>
gchristensen: How about "+5 to delete all generations up to and including current+5."
<gchristensen>
not sure :P
<gchristensen>
that is confusing too
orivej has quit [Ping timeout: 248 seconds]
<vika_nezrimaya>
o1lo01ol1o: I'm using NixOps for deployment, and I've tried a lot of combinations for access rights... right now trying hydra:hydra 0550
<vika_nezrimaya>
wait for deployment
<vika_nezrimaya>
I'll tell the results
<o1lo01ol1o>
vika_nezrimaya: do you need to provide the key via /run/keys or can you just generate a key on the server with nix-store --generate-binary-cache-key?
<vika_nezrimaya>
I'm trying to provide the key via NixOps
<vika_nezrimaya>
so /run/keys is a requirement here
<hyperfekt>
rndd: For builtins, there's the Nix manual. For library functions, you will probably want to look at the source.
<vika_nezrimaya>
Oh
<vika_nezrimaya>
work
<vika_nezrimaya>
works after restarting hydra-www
<vika_nezrimaya>
or some other hydra-service
<__monty__>
gchristensen: How about if I tag ", e.g., if 30 is the current generation +5 will delete generation 25 and all older generations." onto it?
<gchristensen>
__monty__: just clarify thesentences, let's not add a bunch more right now
steell has joined #nixos
<cjpbirkbeck>
how to do you add packages to a python package. i want to add an optional dependency to a python package, so i overrode the pythonpath variable and added the package, but it doesn't seem to do anything
<__monty__>
Ok, how about "+5 to keep the last 5 generations ignoring generations newer than current, e.g., if 30 is the current generation +5 will delete generation 25 and all older generations." Is that clear to everyone?
<{^_^}>
[nixpkgs] @jb55 opened pull request #67687 → Remove altcoins set and create blockchains section → https://git.io/fjx0l
abbiya has quit [Quit: abbiya]
zupo has quit [Read error: Connection reset by peer]
<cjpbirkbeck>
hmm, adding the overlay to my python package to nixpkgs.overlays also seems to do nothing
orivej has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.5]
zupo has joined #nixos
<exarkun>
seems like restarting systemd on nixos is a pretty bad scene. trying to remember if I have ever had it succeed or if I always end up rebooting.
<exarkun>
common experience?
chiefgoat has quit [Ping timeout: 248 seconds]
ubert has quit [Ping timeout: 248 seconds]
emptyfl4sk has joined #nixos
psyanticy has joined #nixos
<evanjs>
? Not for me. Any services in particular? Errr wait... restarting like _all_ it?? Or do you just mean nixos-rebuild restarting stuff?
o1lo01ol1o has quit [Remote host closed the connection]
nexgen2 has joined #nixos
<exarkun>
I tried to pay closer attention this time. It looks like it tries to bring up systemd-timesync.service before the network is up and that fails and hoses the whole process.
o1lo01ol1o has joined #nixos
<exarkun>
then I tried to fix it manually by starting and stopping services in the right order but I couldn't figure out the right order or it was too late at that point
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
cjpbirkbeck: you need to use python-self more, on line 10
<clever>
pkgs.python37Packages will bypass the overlay
<teofr>
Hello everyone, I want to add a node package to the /development/node-packages folder. I already have the thing working and was planning to do a PR, and I have a few questions:
aborsu has quit [Quit: aborsu]
<teofr>
1. From which branch should I start working, to which branch should I do the PR?
<srhb>
cjpbirkbeck: I'm guessing you're falling for the pitfall of the assumption that the pythonPath change will somehow propagate to the other variables that used the old pythonPath
<srhb>
cjpbirkbeck: That's not the case. They're still defined in terms of the old one.
<srhb>
Hm, actually, not sure what buildPythonApplication does in this case..
<cjpbirkbeck>
so i'm trying override pkgs.qtile, by adding pydbus and pygobject to pythonPath
woffs has quit [Ping timeout: 245 seconds]
philr has quit [Ping timeout: 268 seconds]
umachan has quit [Ping timeout: 245 seconds]
jb55 has quit [Ping timeout: 260 seconds]
gentauro has quit [Ping timeout: 245 seconds]
levdub has quit [Ping timeout: 264 seconds]
<craige>
That little moment of joy when you can spin up a custom NixOS vm and see the software running that you hope to have on your NixOS phone. It's baby steps but it's wonderful to see.
<{^_^}>
[nixpkgs] @godelized opened pull request #67688 → proxychains-ng: init at 4.14 → https://git.io/fjxEj
gentauro has joined #nixos
jb55 has joined #nixos
reallymemorable has joined #nixos
<PyroLagus>
craige: pinephone or librem5?
<vika_nezrimaya>
globin: berdario: I have a question about Redis. Currently I'm trying to fix Redis' cross-compilation as part of my cross-compilation efforts, and I found out that while Redis enables jemalloc (which is vendored) on ARM by default, it does not cross-compile properly due to having hardcoded configure flags in a certain place of the source tree. Should I patch these configure flags or unify Redis' behaviour by enabling libc malloc on ARM
<vika_nezrimaya>
too?
__monty__ has quit [Quit: leaving]
<craige>
Librem5, PyroLagus - currently working on a branch of nixpkgs with the Purism hacks - mirroring their own VM images.
<PyroLagus>
ah, cool :)
<vika_nezrimaya>
craige: wow, this is cool! :3 NixOS-based phone is my dream
<vika_nezrimaya>
except I don't have money for a Librem phone, it's expensive
<craige>
Then samueldr and his NixOS mobile project may be for you, vika_nezrimaya
<craige>
Thanks :-) Trying to get this done before the phone actually ships :-)
<PyroLagus>
i'll probably get a pinephone though, because $600 is whew
<vika_nezrimaya>
craige: i found it already
<craige>
:-)
<craige>
I only found out about the Pine phone recently - I bought the Librem5 18 months ago. My last $600 phone is still my primary phone - 6 years later.
<oblivia>
Hey guys, I'm having a bit of an issue with the generated fstab when installing NixOS: the fstab that nixos-generate-config spits out is just a copy of /etc/fstab on the installation image. Any idea what might be going wrong here, and how I can fix it?
<rnhmjoj>
can someone take a look at PR #63696? i think i have finally figured it out
<makefu>
exarkun: no need to touch the host system when using kexec
<lewo>
Do we have discussions on the usage of buildGoModule/buildRustCrate?
<srhb>
exarkun: Depends on the kexec-based installer. For most of them, it's a means to quickly get a homogenous environment from which to bootstrap, rather than relying on disparate host systems.
<exarkun>
okay
<lewo>
Becuase i'm really surprised they are massively used:/
<ivan>
exarkun: hard to replace / with another filesystem without first booting into something where / isn't mounted
<exarkun>
so if I have had success following the "from other distro" instructions then kexec probably doesn't buy me much?
<ivan>
if you're OK with the / filesystem you can use the lustrate mechanism
<srhb>
exarkun: Not really.
<exarkun>
my problem at this point is that I can _sometimes_ get the system to boot after following "from other distro" instructions
<srhb>
exarkun: That sounds like flubbed steps somewhere.
byteflam1 has joined #nixos
<exarkun>
it does, yea
<exarkun>
also if the system fails to boot then I lose all access and can't investigate any further
<srhb>
If I knew that I was going to install several times, I would not rely on "from other OS" regardless.
<srhb>
Because every other OS tends to be different.
<arianvp>
arianvp++
<{^_^}>
arianvp's karma got decreased to 3
<arianvp>
:D
<exarkun>
I can tell the DC monkeys to put Debian 9 on every system I have to touch
<srhb>
Quickest route to a sane installer seems to me to be the way to go.
<exarkun>
but I can't even reliably get a Debian 9 system to boot NixOS w/ "from other distro" instructions
<srhb>
rndd: section 3.5.4: The configure phase prepares the source tree for building. The default configurePhase runs ./configure (typically an Autoconf-generated script) if it exists.
<exarkun>
ivan: no, in fact I took the existing /boot partition and swept it under the rug so /boot ends up on /
orivej has quit [Ping timeout: 248 seconds]
<exarkun>
ivan: and I did get that working in one case
<o1lo01ol1o>
is it possible to get nix-serve to serve the binaries built (and signed by) hydra?
<ivan>
exarkun: is your / over 2TB
drakonis has quit [Ping timeout: 252 seconds]
<exarkun>
ivan: hmmm
<exarkun>
ivan: that's a good question
<exarkun>
I wonder which of the servers are back up now.
<ivan>
exarkun: you didn't resize or move /, right
<exarkun>
right
<exarkun>
that's just craziness
drakonis has joined #nixos
ashumailov has left #nixos ["Good Bye"]
<ivan>
you want a separate /boot if the disk is over 2TB, unless you've validated that your BIOS is so great and works all the time
<exarkun>
Okay this system has 9TB /
<exarkun>
I guess I should try this w/ the separate /boot then
<ivan>
exarkun: is your network configuration just the default dhcp.enable = true;?
<exarkun>
ivan: no, static config
<ivan>
scary because you need the right device name
<exarkun>
hm
<exarkun>
it might have come up after I gave up on it
* exarkun
edits known_hosts
<o1lo01ol1o>
how can I restrict access to `services.nix-serve` ?
<exarkun>
oh it did
<ivan>
exarkun: yeah that 'takes 10 minutes to come up' has happened to me
<exarkun>
ivan: device names are so predictable!
<exarkun>
ivan: I just copied what debian told me in `ip addr`. so far it has worked. I guess if there is enough systemd version skew between debian and nixos I might get screwed...
<exarkun>
but yea it totally worked this time. this is the first success on this hardware configuration. the fix was using the /boot partition.
<exarkun>
thanks for that tip :)
<ivan>
cool
<exarkun>
I've gotten this far on some other hosts before. Now to see if I can `nixos-rebuild boot` without losing it ... though now I wonder if there's any chance I just failed to wait long enough on the previous "failures"
byteflam1 has quit [Ping timeout: 245 seconds]
<tokudan>
exarkun, can you run lspci on the system? then you can predict the name
<exarkun>
according to systemd-analysize it was up in 24 seconds
<exarkun>
tokudan: Sure but so far just asking `ip` has been good enough
<tokudan>
exarkun, sure, if you can access the running system with it ;)
<exarkun>
hm looks like dhcpcd.service is responsible for a lot of those 24 seconds
wfranzini has quit [Remote host closed the connection]
vika_nezrimaya has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixos-homepage] @matthewbauer opened pull request #299 → Add New York Nix Users Group → https://git.io/fjx20
<{^_^}>
[nixos-homepage] @grahamc merged pull request #299 → Add New York Nix Users Group → https://git.io/fjx20
<{^_^}>
[nixos-homepage] @grahamc pushed 2 commits to master: https://git.io/fjx2z
<bikki[m]>
I have one question, is there a way to alter the global state of the install besides /etc/nixos/configuration.nix ?
<bikki[m]>
For example, if I want every user to have a particular package installed, my only two options would be to deploy it across all profiles, or add it to my /etc/nixos/configuration.nix yes?
<srhb>
bikki[m]: Sort of. The "default" (root) profile is also normally available to everyone
<srhb>
bikki[m]: I will say that people tend to avoid nix-env-style ad-hoc package management after a while.
drakonis has quit [Quit: WeeChat 2.5]
<bikki[m]>
Other profiles inherit root? I didn't know that. Very helpful, thanks.
<pie_>
the android emulator generator sounds nice but the very first example i tried failed, help? :( https://bpaste.net/show/z4G0
<{^_^}>
[nixos-homepage] @samueldr opened pull request #300 → [WIP] Adds unfree software (hidden by default → https://git.io/fjxaU
<{^_^}>
[nixpkgs] @NeQuissimus pushed 3 commits to release-19.03: https://git.io/fjxaG
growpotkin has quit [Ping timeout: 258 seconds]
drakonis_ has quit [Ping timeout: 264 seconds]
<pie_>
hm will try unstable
freeman42x[NixOS has joined #nixos
<evanjs>
ooo speaking of https://github.com/NixOS/nixos-homepage/pull/300, is there a nixos option to host the options/packages listing (eg basically the nixos homepage in general) with local packages and options, or is my best bet to clone, modify, and compile the nixos-homepage repo locally? It can get sort of cumbersome.
<johrmungand>
hey guys im having issues when it comes to qutebrowser, it is not working even after being add to my env.syspkgs and is giving me an error
<s34n>
is there any prep that has to happen before curl|sh?
<evanjs>
Trying to debug a musnix kernel compilation but I can't load the kernel in a repl, etc (linuxPackages_4_19_rt). Any thoughts/further info I can provide to help debug?
<exarkun>
s34n: yes
<exarkun>
s34n: at least, you need to `sudo sysctl kernel.unprivileged_userns_clone=1`
<s34n>
why doesn't the installer do that?
<exarkun>
it's hard to write a program that succeed on any arbitrary linux
<exarkun>
also that's a system-wide setting with, maybe, security implications
emptyflask has joined #nixos
laika___ has joined #nixos
<exarkun>
maybe you don't want the installer silently flipping it for you
* exarkun
shrugs
<exarkun>
just guessing, not like I wrote the installer
<{^_^}>
[nixpkgs] @peti opened pull request #67708 → NixOS module for GNU Mailman Core → https://git.io/fjxaR
<{^_^}>
[nixpkgs] @peti closed pull request #67461 → WIP: update mailman to version 3.2.2 → https://git.io/fjA3M
<{^_^}>
[nixpkgs] @vaibhavsagar opened pull request #67709 → Fixes for GHC 8.8.1 → https://git.io/fjxa0
<exarkun>
looks like my systemd issue was user error this time
<exarkun>
I told it the wrong disk uuid
<exarkun>
seems like that would make it hard for a mount unit to have much luck
<johrmungand>
Does anyone know what options i need to enable in order to get kitty to work, its complaining that i have a too old opengl driver and im not sure if i even have any installed or which to install
ossus has left #nixos [#nixos]
ossus has joined #nixos
<evanjs>
johrmungand: kitty works fine as is for me right now. I do have a few options for opengl enabled, though. opengl.enable, driSupport, etc
<johrmungand>
can you paste those enabled options?
<johrmungand>
do you have it installed vie nix-env or through the env.sysPkgs?
<evanjs>
Though, re opengl.enable: Whether to enable OpenGL drivers. This is needed to enable OpenGL support in X11 systems, as well as for Wayland compositors like sway, way-cooler and Weston. It is enabled by default by the corresponding modules, so you do not usually have to set it yourself, only if there is no module for your wayland compositor of choice. See services.xserver.enable, programs.sway.enable, and
<evanjs>
programs.way-cooler.enable.
<evanjs>
What OS are you running?
<s34n>
`nix search` doesn't give any information about the version of a package
<exarkun>
Why can I import a relative path but I can only readFile an absolute path?
jgeerds has joined #nixos
sondr3 has joined #nixos
emptyfl4sk has joined #nixos
<s34n>
what are the implications of sandbox=false in nix.conf?
<exarkun>
derivations can read random a random grab bag of stuff from the host
<exarkun>
increasing the amount of impurity in the resulting store objects
<ossus>
Hi all =) Can't figure out how to trace cmake error logs. It seems that the logs get removed along with the failed build output directory. Is there a way to store build logs somewhere like /var/log/myfailedbuildsdir?
Jackneill has quit [Remote host closed the connection]
vika_nezrimaya has joined #nixos
<o1lo01ol1o>
Does anyone know if hydra can write to a non-public s3 bucket as a binary cache? I can't find any immediate information about how to specify the authentication information if so.
<ivan>
ossus: --keep-failed
<vika_nezrimaya>
Can someone from GrahamcOfBorg known users restart the build at PR #67694? It failed because stdenv wasn't built, never even got to my code
<evanjs>
nix-env -iA can also help if you know the full path. AFAIK, all references of -i in the manual were replaced with -iA recently
<evanjs>
^ yeah what s34n said
<s34n>
ok. I should probably backup some
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<s34n>
I suppose it would be better to add a desired package to some list of packages, then have nix see that there is an item in that list that needs installed
<s34n>
that sounds like what emily mentioned as environment.systemPackages
<s34n>
or something similar
drakonis has joined #nixos
<s34n>
that way I could get a reproducible environment
<emily>
yeah, you can just do environment.systemPackages = [ pkgs.hello ]; in your configuration.nix (assuming you're on NixOS; otherwise I guess nix-env is the best option)
<emily>
or if the packages are only used for one specific project you can make a shell.nix for that project that includes it
fendor has quit [Quit: Leaving]
ThatDocsLady has quit [Quit: Leaving]
<s34n>
emily: I'm not on NixOS
<emily>
ah, ok, systemPackages isn't an option then
<s34n>
`nix-env -iA pijul` tells me "error: attribute 'pijul' in selection path 'pijul' not found"
<tilpner>
s34n: Try nix-env -iA nixpkgs.pijul
<tilpner>
(You can configure nix-env to not need the nixpkgs. if that annoys you)
o1lo01ol1o has quit [Remote host closed the connection]
DariusTheMede has quit [Ping timeout: 272 seconds]
<evanjs>
s34n: it looks like you were asking about channels(?) when you mentioned choices, but if you want to query the options in your current nix config, nixos-option (tab completion supported) is extremely helpful. eg nixos-option services.xserver.enable. It will also tell you what files define the option, including files in your config
<tilpner>
evanjs: They are not on NixOS
<evanjs>
*scrolls up*. Derp. That makes things fun
<worldofpeace>
infinisil: do you recall the pr that fixed improper use of "multi-line/not multi-line" in nixos option descriptions?
<iqubic>
How does do Java development on Nix?
<iqubic>
*does one do
Myhlamaeus2 has quit [Read error: Connection reset by peer]
<boxscape>
I switched channels recently - did home manager switch at some point from linking files to copying them to /nix/store and then linking to that location?
<evanjs>
iqubic depends on your package management/build system
<iqubic>
I'm using NixOS
<evanjs>
Derp forgot to specify Java lol
<evanjs>
Like maven, gradle, etc
Myhlamaeus2 has joined #nixos
<iqubic>
Ah. Is there a guide for this that I can view?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjxwm
<evanjs>
I cant find anything in the manual aside from ant, and maven support is nonexistent in tree AFAIK, but it does look like there’s an expression for gradle build support
<evanjs>
I typically just (rip)grep the nixpkgs repo when I’m looking for examples of undocumented frameworks/features
<ToxicFrog>
I'm also interested in mvn support, since there's a package in nixpkgs I'd like to build from source (currently the derivation just fetches the release jar) so I can patch it.
<evanjs>
For maven support, this is the closest thing to working I’ve found so far
<johrmungand>
a small question tho, if i need to edit sth in /etc/ like issue, it doesnt let me since the fs is read only? even as root. where can i edit this? also
<ivan>
johrmungand: /etc itself isn't read-only, nix writes symlinks pointing to a read-only /etc/static
<ivan>
typically there will be some relevant module to adjust the configuration in /etc, but if not, you can use environment.etc."filename".text = '' some text '';
o1lo01ol1o has quit [Remote host closed the connection]
stites has quit [Remote host closed the connection]
byteflam1 has quit [Ping timeout: 245 seconds]
<spinus>
bsima: not sure what are you trying to achieve
dasj19 has joined #nixos
<bsima>
notmuch needs gdb compiled with python support, i want to make sure that the gdb that gets passed to the derivation includes this
<bsima>
i'm trying to compile notmuch-0.29, the latest in nixpkgs is 0.28.x
<tilpner>
> builtins.any (p: p == python3) gdb.buildInputs
<{^_^}>
true
<tilpner>
Seems to have python3 by default
o1lo01ol1o has joined #nixos
wildtrees has joined #nixos
<bsima>
hm, well the build failures i'm seeing seem to indicate otherwise
<tilpner>
(I know, elem python3 gdb.buildInputs. I was going to compare names first)
<tilpner>
bsima: If you are cross-compiling or on Windows, python is disabled
<bsima>
nah, i'm just using home-manager, but i don't think that should change anything
<bsima>
on nixos-19.03
<tilpner>
It should not
cjpbirkbeck has quit [Quit: Quitting now.]
o1lo01ol1o has quit [Remote host closed the connection]
<tilpner>
Can you run "builtins.elem python3 gdb.buildInputs" in a "nix repl '<nixpkgs>'"?
ossus has joined #nixos
<bsima>
iyeah, i got 'true'
<tilpner>
Then pythonSupport is already enabled
<tilpner>
(Unless you did funny overrideAttrs)
<bsima>
nah i avoid overrideAttrs as much as possible ;)
mrnux has joined #nixos
<johrmungand>
ava.io.IOException: Cannot run program "/home/nihad/.tlauncher/jvms/jre1.8.0_51/bin/java" (in directory "."): error=2, No such file or directory
<johrmungand>
how can i solve this error
<johrmungand>
i have programs.java.enable enabled
oblivia has quit [Quit: leaving]
<johrmungand>
so in theory i should have java programms working
atlas_ has left #nixos [#nixos]
<johrmungand>
i launched the jar normally java -jar program.jar
jgeerds has joined #nixos
domogled has quit [Ping timeout: 246 seconds]
byteflam1 has joined #nixos
drakonis_ has joined #nixos
<evanjs>
jorhrmunhand: sweet. Was it just a reboot for kitty?it looks like its trying to run a program with
<{^_^}>
[nixpkgs] @Ma27 opened pull request #67722 → wasm-bindgen-cli: init at 0.2.50 → https://git.io/fjxrT
<evanjs>
A Java wasn’t provided by nix. Not sure that is going to work
<evanjs>
johrmungand: * oops misspelled it the first time. What java program are you trying to run?
<evanjs>
Assuming tlauncher. I know multimc is available on nix but not sure about this one
byteflam1 has quit [Ping timeout: 258 seconds]
hmpffff has quit [Quit: nchrrrr…]
<evanjs>
Doesn’t look like it. Typically programs will need to be patched to work with nix, binaries in particular
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
<spinus>
yea, that looks like he has some own java deployment that tried to launched and hence the "no file"
pie_ has quit [Ping timeout: 252 seconds]
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
byteflam1 has joined #nixos
hmpffff has joined #nixos
<evanjs>
Yeah not like java is alone here but it’s not the first time I’ve seen an app that tries to get its own java and use that which can break things.
<vika_nezrimaya>
Can anyone test that nixos-manual builds from commit 604b7c139f4d44d9fb0e84d812efdfcf5dda3448? I think I may have found a breakage in the manual
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
<vika_nezrimaya>
This commit hash was acquired using git bisect while I was testing a change in bash module against latest master
<johrmungand>
thats a bummber, guess i gotta figure out how to fix TLauncher (btw im not a cheapo and i am planning on buying minecraft but when you live in a third world country, college is more important than paying for minecraft lmfao)
wfranzini has quit [Ping timeout: 245 seconds]
reallymemorable has joined #nixos
johrmungand has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjxrD
ossus has quit [Ping timeout: 244 seconds]
Izorkin has joined #nixos
byteflam1 has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
sondr3 has quit [Quit: WeeChat 2.4]
ossus has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
byteflam1 has quit [Ping timeout: 245 seconds]
fusion809 has joined #nixos
jlv has joined #nixos
ixxie has joined #nixos
<jlv>
I can't seem to get memtest to show up on the grub boot menu. I set `boot.loader.grub.memtest86.enable = true` and ran `nixos-rebuild switch --install-boothloader`, but grub menu is still just nixos configurations and reboot to firmware
<ivegotasthma>
hello, how do I setup golang for development?
<ivegotasthma>
I can't find any useful sources
reallymemorable has joined #nixos
Okinan has joined #nixos
<savanni>
ivegotasthma: I have a shell.nix file around from the past that I used to get an environment with the compiler. I put it at the beginning of the normal golang source directory.
johnw has quit [Ping timeout: 276 seconds]
<savanni>
Would it be helpful for me to share it?
Synthetica has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
<ivegotasthma>
thanks a lot
<ivegotasthma>
just what I needed
<savanni>
You just go to wherever you're going to host your Go files, drop the shell.nix in, create those three directories, and then clone your repo into root/src/github.com/<your-username>/<project>
<ivegotasthma>
I was setting the gopath the wrong way
reallymemorable has quit [Quit: reallymemorable]
<savanni>
👍
o1lo01ol1o has joined #nixos
vika_nezrimaya has quit [Ping timeout: 244 seconds]
civodul has joined #nixos
johnw has joined #nixos
dansho has quit [Quit: Leaving]
o1lo01ol1o has quit [Remote host closed the connection]
<trubydoor>
does anyone know if it's possible to completely disable xorg.conf? My laptop has a pretty "particular" graphics setup and the only way I've ever managed to make it work with just the nvidia card (which is what I want) on any distro is to have no xorg.conf and blacklist i915...
Jackneill has quit [Remote host closed the connection]
vika_nezrimaya has joined #nixos
ossus has quit [Ping timeout: 248 seconds]
<vika_nezrimaya>
How to find a module's maintainer? in particular, nixos/modules/programs/bash/bash.nix
<evanjs>
trubydoor: maybe you could set xserver.config to ‘’
<trubydoor>
it would be so incredibly useful if I could just disable the intergrated graphics in uefi settings....
Izorkin has joined #nixos
growpotk- has joined #nixos
<trubydoor>
the problem is that the optimus stuff doesn't work properly either, because both the intel card and the nvidia card are MXM cards... no idea why it's set up that way
emptyfl4sk has quit [Ping timeout: 246 seconds]
<hyperfekt>
trubydoor: You're gonna have to patch the module to get rid of the config file.
<trubydoor>
so, now I have managed to get gdm to start but gnome just gives me a black screen. But, progress right?!
Wharncliffe has joined #nixos
emptyfl4sk has joined #nixos
<hyperfekt>
trubydoor: Well, the other option is to wrap xserver in a script that removes the config argument but that's probably even worse :b
<superbaloo>
how does the overlay system works? nixpkgs=overlay-a:/path/to/nixpkgs ?
<multun>
I think it's looked up from inside nixpkgs
<superbaloo>
ha okay
<multun>
see pkgs/top-level/default.nix and look for "overlays"
sm has joined #nixos
sm has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
Myhlamaeus2 has quit [Ping timeout: 245 seconds]
Myhlamaeus2 has joined #nixos
<multun>
woops pkgs/top-level/impure.nix may be more relevant
xkapastel has joined #nixos
<Smith[m]>
I'm using nixops to deploy to a physical machine (backend = none). Can I deploy and replace a completely different configuration ? Or should I reinstall nix on the machine ?
<{^_^}>
[nixpkgs] @lightbulbjim opened pull request #67732 → freecad: fix missing app icon and name when running under Wayland → https://git.io/fjxKW
sm[m] has joined #nixos
<sm[m]>
g'day all. The general Nix room on matrix points here, so I guess it's I'm on topic: nix-channel --update nixpkgs always says "SSL peer certificate or SSH remote key was not OK" and "unable to download '/nixexprs.tar.bz2': URL using bad/illegal format or missing URL". What to do ?
<evanjs>
sm: What's the URL you used for the channel?
<allan>
Looking at ‘all-packages.nix’ I see there is no (plain) trash command, so presumably that is why I cannot find (and install) it?
<sm[m]>
hmm, it completed. No, I see emacs 26.3 and greater in there. I wonder why nix-env -qc showed emacs 26.2
thc202 has quit [Ping timeout: 264 seconds]
<allan>
oh… all-packages.nix has “darwin = callPackage ./darwin-packages.nix { };” and “darwin-packages.nix” does “trash = darwin.callPackage ../os-specific/darwin/trash { };”
emptyfl4sk has quit [Ping timeout: 244 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
Soo_Slow has joined #nixos
<allan>
Another problem: Installing libressl does not install headers (in ~/.nix-profile/include) though using nix-shell -p libressl *does* add the headers to NIX_CFLAGS_COMPILE
<sm[m]>
strange. After upgrading the installed emacs 26.1 to emacs 26.2, M-x emacs-version still shows "Build 17G65"
Supersonic has quit [Ping timeout: 252 seconds]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
<sm[m]>
how can I install those newer-than-26.2 emacs builds that I see on hydra ?
Walker3R has joined #nixos
Walker3R has quit [Remote host closed the connection]
emptyflask has joined #nixos
<inkbottle>
[live usb-stick] I pressed Alt-f8 to view the manual, but I can't figure out how to close it
<inkbottle>
q followed by n doesn't seem to work
<inkbottle>
w3m not wanting to quit
<samueldr>
inkbottle: alt+F1 to go back
simukis__ has joined #nixos
<inkbottle>
ok, tx
<samueldr>
you have a couple virtual terminals, from F1 to F7
sconybeare has joined #nixos
<samueldr>
so you could be running something in the one on F1, and do something else on the one on F2
<inkbottle>
usually it is rather Ctrl-Alt-Fn
<samueldr>
that's X11
<inkbottle>
ok
<samueldr>
otherwise it'd clash with button combinations software wants to use :)
<samueldr>
(I guess maybe wayland too uses ctrl-alt-Fx)
simukis_ has quit [Ping timeout: 258 seconds]
<inkbottle>
and *here* it's not x11?
<inkbottle>
just virtual terminals
<samueldr>
sounds like it :)
<inkbottle>
about to start the display namager
drakonis has quit [Ping timeout: 245 seconds]
<samueldr>
that runs under X11, if it matters
<inkbottle>
d... I do have a kde session
npmccallum has joined #nixos
<inkbottle>
I'm wondering if that account for .5% or 1% of the total installation
mbrgm_ has joined #nixos
unigram has quit [Ping timeout: 244 seconds]
tiAy has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #67363 → dbus: don't make datadir /etc, set runstatedir to /run → https://git.io/fjNKV
<{^_^}>
[nixpkgs] @worldofpeace pushed 8 commits to staging: https://git.io/fjxKj
danbst has joined #nixos
mbrgm has quit [Ping timeout: 268 seconds]
mbrgm_ is now known as mbrgm
<danbst>
,locate XInput2.h
<tiAy>
howdy, im on ubuntu and trying to do nix-build from within a nix-shell, and im getting "unable to download <cache.nixos.org url>: problem with the SSL CA cert", Ive never seen this before, Im on the unstable channel
<{^_^}>
Found in packages: xlibs.libXi.dev
<danbst>
thanks
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<danbst>
tiAy try `nix-shell -p cacert`
<tiAy>
that worked! thank you
noudle has quit []
DariusTheMede has joined #nixos
<danbst>
,locate Xge.h
<{^_^}>
Found in packages: xlibs.libXext.dev
trubydoor has quit [Remote host closed the connection]