sphalerite changed the topic of #nixos to: NixOS stable: 19.03 \o/ https://discourse.nixos.org/t/nixos-19-03-release/2652 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
sheeldotme has quit [Client Quit]
sheeldotme has joined #nixos
jtojnar has joined #nixos
mkoenig has quit [Remote host closed the connection]
mkoenig has joined #nixos
drakonis has quit [Ping timeout: 276 seconds]
drakonis has joined #nixos
tdammers_ is now known as tdammers
WilliamHamilton has joined #nixos
<WilliamHamilton> hi, I don't seem to be able to activate wifi during the process of nixos installation
<qyliss> WilliamHamilton: using a MacBook by any chance?
Orbstheorem has quit [Ping timeout: 276 seconds]
<WilliamHamilton> no, a sony vaio duo 11 and using this guide https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134
npmccallum has joined #nixos
<WilliamHamilton> search for cat > /etc/wpa_supplicant.conf
<qyliss> h
<qyliss> Okay, what's not working?
<qyliss> Are you getting an error message?
Anton-Latukha has quit [Ping timeout: 246 seconds]
Orbstheorem has joined #nixos
<WilliamHamilton> no, no error message, but if I try to ping www.google.com I get
<WilliamHamilton> ping: www.google.com: Name or service not known
<qyliss> What does sudo systemctl status wpa_supplicant say?
<qyliss> does ping 8.8.8.8 work?
<MmeQuignon> Is this a resolution issue ? Have you tried to ping an IP ? like 91.198.174.192
<WilliamHamilton> ping 8.8.8.8 says `connect: network is unreachable`
<WilliamHamilton> systemctl status wpa_supplicant returns among other things active(running)
<qyliss> hmm
<WilliamHamilton> and then a series of lines saying "wpl2s0: reject scan trigger since one is already pending"
<WilliamHamilton> I think this could be the problem because that seems a wifi interface
<MmeQuignon> Do you get an ip ?
<MmeQuignon> What says "ip a" ?
<WilliamHamilton> no I don't get any ip for the interfaces enp5s0 and wlp2s0
<MmeQuignon> All right
<WilliamHamilton> of course I get the fake loopback ip
<qyliss> what does "ip l" say for your wifi interface?
<WilliamHamilton> qyliss: is there a specific thing you're looking for or would you benefit from me copying it all?
<qyliss> I'm looking for the stuff in caps
<WilliamHamilton> NO-CARRIER.BROADCAST.MULTICAST.UP
<qyliss> between < and >
<qyliss> hmm, so the interface is up
<WilliamHamilton> and then DORMANT, a bit after the >
<WilliamHamilton> no wait after the > it says "mtu ... qdisc mq state DOWN mode DORMANT"
<qyliss> Do we have network manager on the ISOs? I can't remember.
<WilliamHamilton> how would I check?
<qyliss> Do you have an nmcli command?
<WilliamHamilton> yes, I do
<WilliamHamilton> wlp2s0: disconnected is marked in red
<qyliss> You might have better luck with that than wpa_supplicant. It's a lot higher-level and friendlier.
<qyliss> Try running nmtui-connect
<qyliss> You'll get a nice friendly interface for connecting to wifi
<WilliamHamilton> should I stop the wpa_supplicant before?
<qyliss> good question
<li_matrix> no
<li_matrix> nm uses wpa
bgamari has quit [Ping timeout: 252 seconds]
<WilliamHamilton> very cool, now ping 8.8.8.8 works!
<qyliss> yay!
bgamari has joined #nixos
<WilliamHamilton> actually nmtui-connect is exactly the kind of tool I wanted!
<qyliss> it's fab
<WilliamHamilton> but, is there a way to get ping www.google.com working also?
<WilliamHamilton> what's fab?
<WilliamHamilton> I mean, fab=fabulous?
<MmeQuignon> Wow, I didn't know about this !
<li_matrix> set a nameserver
<qyliss> that's still not working?
<WilliamHamilton> nono, now it works also with names
<qyliss> yeah
<MmeQuignon> Well done ^^
<WilliamHamilton> the first time it didn't, don't know why
<WilliamHamilton> thanks guys!!!
<qyliss> nice!
<li_matrix> probably hadnt set the nameserver yet
<qyliss> hope you have a nice time using NixOS :)
ardumont has joined #nixos
<MmeQuignon> Now, is there somebody familiar with nvidia gpus ? :(
<WilliamHamilton> qyliss: thank you, I already use nixos as my daily driver, but I never needed to install it on a wifi only laptop! :)
<qyliss> oh, cool
<WilliamHamilton> MmeQuignon: I have an nvidia gpus in nixos, and I'm forced to use legacy driver for it
<qyliss> oh, you'll want to make sure you have networking.networkmanager.enable set in your config if you want to use nm after installing, btw
<WilliamHamilton> qyliss: great tip, thanks!
<MmeQuignon> WilliamHamilton: what happens when you dont ?
<WilliamHamilton> MmeQuignon: it uses the standard driver, nouveau I think it's called (it's a bit fuzzy, I didn't touch that part in ages)
<MmeQuignon> Well, I actually need to run CUDA
<WilliamHamilton> I notice no particular difference between the two on a daily basis, so you could leave the standard one
<MmeQuignon> So I think nvidia driver is required
Havvy has quit [Ping timeout: 255 seconds]
<WilliamHamilton> oh ok, I never ran CUDA on nixos, so that part I don't know much about
<WilliamHamilton> which is a pity, because my gpu supported CUDA in another system
<MmeQuignon> I spent my day searching for a working solution without success
<WilliamHamilton> I think you could try to ping infinisil then! Usually he knows
thc202 has quit [Ping timeout: 245 seconds]
<MmeQuignon> thank you
<WilliamHamilton> sure, sorry that I couln't be of more help! :)
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/fjnek
<MmeQuignon> No trouble
<{^_^}> [nixpkgs] @r-ryantm opened pull request #60824 → vte: 0.56.1 -> 0.56.2 → https://git.io/fjneI
sb0 has quit [Quit: Leaving]
Rusty1 has quit [Quit: Konversation terminated!]
<MmeQuignon> Hi infinisil !
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Havvy has joined #nixos
<infinisil> Hello :)
<MmeQuignon> I have a problem installing a driver for my GPU and WilliamHamilton told me you could probably help me
hio has quit [Quit: Connection closed for inactivity]
<MmeQuignon> Actually, I don't know what kind of informations you need, so here is my configuration file
<infinisil> Well I do have an nvidia GPU, but I'm not too familiar with nvidia stuff in general
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/86101e27874 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
drakonis has quit [Ping timeout: 257 seconds]
<infinisil> The most important thing is to actually tell us what the problem is
<MmeQuignon> If Yes
<MmeQuignon> -If
<MmeQuignon> Actually, I can't reach the login page
<MmeQuignon> I'm stuck with boot messages
<MmeQuignon> so I revert my config in a tty and try something else
orivej has quit [Ping timeout: 255 seconds]
shibboleth has quit [Quit: shibboleth]
drakonis has joined #nixos
ris has quit [Ping timeout: 260 seconds]
drakonis_ has joined #nixos
buffet has quit [Ping timeout: 250 seconds]
buffet has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
domogled has quit [Ping timeout: 252 seconds]
Rusty1 has joined #nixos
Glider_IRC_ has joined #nixos
dbmikus_ has quit [Ping timeout: 246 seconds]
WilliamHamilton has quit [Ping timeout: 256 seconds]
Glider_IRC has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @nh2 opened pull request #60826 → libvpx: 1.7.0 -> 1.8.0 → https://git.io/fjneu
fusion809_ has quit [Remote host closed the connection]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<{^_^}> [nixpkgs] @matthewbauer opened pull request #60827 → release-cross.nix: add mesa to platforms → https://git.io/fjneg
goibhniu2 has joined #nixos
iyzsong has joined #nixos
goibhniu has quit [Ping timeout: 246 seconds]
Glider_IRC__ has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
Glider_IRC_ has quit [Ping timeout: 245 seconds]
iyzsong has joined #nixos
o1lo01ol1o has joined #nixos
ddellacosta has quit [Ping timeout: 244 seconds]
jasongrossman has joined #nixos
silver has quit [Read error: Connection reset by peer]
iyzsong has quit [Changing host]
iyzsong has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
MmeQuignon has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @matthewbauer opened pull request #60828 → Mark some bad platforms → https://git.io/fjne1
sheeldotme has joined #nixos
mkoenig has quit [Remote host closed the connection]
dsiypl4 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @peterhoeg opened pull request #60829 → krunner-pass: fix the build → https://git.io/fjneh
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/083176a6e6d (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Supersonic has quit [Ping timeout: 276 seconds]
Supersonic has joined #nixos
<worldofpeace> Does anyone know if patch-diff.githubusercontent.com is a stable source for fetching patches?
fidart has joined #nixos
Glider_IRC__ is now known as Glider_IRC
scott has quit [Ping timeout: 258 seconds]
dhess has quit [Quit: ZNC - https://znc.in]
scott has joined #nixos
dhess has joined #nixos
<infinisil> Crazy idea: Let's get rid of the idea of users having to manage channels, and instead only provide tools to get the latest successful build of packages
<infinisil> So you wouldn't install hello from nixpkgs version 1e6bf25, but instead say "I want hello" and the tool would search the latest nixpkgs version that has a successful build of hello
<infinisil> And have some algorithm find a good nixpkgs that has a lot of dependencies to share
<worldofpeace> An algorithm like that sounds like i'd be hard to make, edge cases for sure. But it could be possible, and that's what people are really after anyways so why not ensure that.
mkoenig has joined #nixos
<worldofpeace> Also infinisil you need to be the head of affairs on "crazy" ideas :) It's a very useful skill to have and to share, and you're very good at it
<Shados> It's what a large group are after, sure... another large group wants stably pinned versions.
<infinisil> worldofpeace: Hehe thanks
judson_ has quit [Remote host closed the connection]
<infinisil> Shados: There's nothing that would make pinning impossible there
judson_ has joined #nixos
xcthulhu has joined #nixos
<Shados> You did say "only" provide tools to get the latest successful build of packages. I do think that would make for a good default, though.
<infinisil> Ah right
Glider_IRC has quit [Quit: Leaving]
judson_ has quit [Remote host closed the connection]
Glider_IRC has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/fjnvI
judson_ has joined #nixos
judson_ has quit [Remote host closed the connection]
alexherbo29 has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
<infinisil> Idea: Have some tool that allows you to strip nixpkgs to the bare minimum that you need to build some thing
jtojnar has quit [Ping timeout: 258 seconds]
<infinisil> Like remove all files you don't need
<infinisil> And an extension to that: Mirror nixpkgs by only applying the commits that change the files you need
<infinisil> This would allow you to have stripped down nixpkgs mirrors for specific applications, which minimizes the time to download pinned versions, and minimizes the need to update these mirrors
sheeldotme has quit [Quit: Textual IRC Client: www.textualapp.com]
MinceR_ has joined #nixos
<clever> 2019-05-02 23:12:27 < infinisil> So you wouldn't install hello from nixpkgs version 1e6bf25, but instead say "I want hello" and the tool would search the latest nixpkgs version that has a successful build of hello
MinceR has quit [Ping timeout: 276 seconds]
<clever> infinisil: thats going to make the qt version mismatch stuff 100x worse :P
<clever> infinisil: its also going to hella-waste disk space by giving you 100 copies of glibc!
<infinisil> Oh no
<infinisil> Let's eliminate impurities before that
<infinisil> It should serve as a motivator to do that :2
<clever> youll still have 100 copies of glibc
<clever> i recently discovered my laptop still had generation 1 of nixos, lol
<infinisil> clever: I think if an algorithm smartly chooses versions it might work well
<clever> it has been keeping every single build of nixos, from day 1
<infinisil> I don't have that much space, damn
<clever> up to gen 154 now
<infinisil> Huh that's not a lot
<clever> 18.03 was on the disk, but is gone now
<clever> 18.09 and 19.03 are still present
<infinisil> I'm on gen 559 now
<clever> from maybe 6 nixpkgs revs
<clever> my desktop is up to 470
<clever> and the desktop is the 2nd install i ever made
<clever> have i ever mentioned the 1st frankentstein install?
xcthulhu has quit [Quit: Leaving]
<infinisil> Can't say that you did
sigmundv_ has quit [Ping timeout: 246 seconds]
alexherbo29 has quit [Ping timeout: 244 seconds]
orivej has joined #nixos
<clever> infinisil: it booted x86-64 and armv6l on the same rootfs
o1lo01ol1o has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
mkoenig has quit [Remote host closed the connection]
goibhniu has joined #nixos
<infinisil> :P
<infinisil> That sure is something
goibhniu2 has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 252 seconds]
justanotheruser has quit [Ping timeout: 246 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
npmccallum has quit [Ping timeout: 268 seconds]
<yuken> If I want to clone a NixOS package configuration and update/change the version, how would I install this package?
srl295 has joined #nixos
phs^ has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.4]
endformationage has quit [Quit: WeeChat 2.4]
<roconnor> There are a couple of ways you might go about doing that. If you are thinking about your user profile, I might reach of using packageOverrides in your ~/.nixpkgs/config.nix file.
<roconnor> updating the version of a package requires somewhat moderate surgery, but it is doable.
schjetne has quit [Ping timeout: 245 seconds]
fusion809 has joined #nixos
orivej has quit [Ping timeout: 258 seconds]
rauno has quit [Ping timeout: 250 seconds]
dansho has quit [Ping timeout: 245 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 255 seconds]
palo1 is now known as palo
stepcut has joined #nixos
Myhlamaeus has quit [Ping timeout: 276 seconds]
ricekrispie has joined #nixos
ricekrispie2 has quit [Ping timeout: 258 seconds]
ayerhart has quit [Read error: Connection reset by peer]
mexisme has quit [Ping timeout: 246 seconds]
ayerhart has joined #nixos
Tucky has joined #nixos
rauno has joined #nixos
stepcut has quit [Remote host closed the connection]
mexisme has joined #nixos
jasongrossman has quit [Remote host closed the connection]
mkoenig has joined #nixos
m0rphism has joined #nixos
wfranzini has joined #nixos
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
lambda-11235 has quit [Quit: Bye]
pbb has quit [Client Quit]
pbb has joined #nixos
mexisme has quit [Ping timeout: 255 seconds]
cfricke has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
mexisme has joined #nixos
orivej has joined #nixos
Ariakenom has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
schjetne has joined #nixos
pwnst has joined #nixos
civodul has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
mwilsoncoding has quit [Ping timeout: 256 seconds]
pwnst has quit [Client Quit]
pwnst has joined #nixos
pwnst has quit [Ping timeout: 255 seconds]
mexisme has joined #nixos
fendor_ has joined #nixos
j6x has joined #nixos
domogled has joined #nixos
linarcx has joined #nixos
civodul has quit [Read error: Connection reset by peer]
civodul has joined #nixos
j6x has quit [Quit: Page closed]
Anton-Latukha has joined #nixos
roworu has joined #nixos
domogled has quit [Quit: domogled]
sigmundv_ has joined #nixos
linarcx has quit [Ping timeout: 255 seconds]
linarcx has joined #nixos
roworu has quit [Read error: Connection reset by peer]
init_6 has joined #nixos
MinceR_ is now known as MinceR
ar1a has quit [Ping timeout: 255 seconds]
jasongrossman has joined #nixos
ar1a has joined #nixos
sb0 has joined #nixos
winem_ has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
logzet has joined #nixos
Havvy has quit [Ping timeout: 255 seconds]
thc202 has joined #nixos
Makaveli7 has joined #nixos
Havvy has joined #nixos
__monty__ has joined #nixos
winem_ has quit [Remote host closed the connection]
sb0 has quit [Quit: Leaving]
johanot has joined #nixos
cfricke has quit [Ping timeout: 252 seconds]
mexisme has joined #nixos
logzet has quit [Ping timeout: 276 seconds]
logzet_ has joined #nixos
markus1189 has quit [Ping timeout: 250 seconds]
tshaynik has quit [Ping timeout: 244 seconds]
Jetien has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
markus1189 has joined #nixos
ardumont has quit [Ping timeout: 246 seconds]
rauno has quit [Ping timeout: 252 seconds]
<exarkun> anybody know how to get tlp to actually work on nixos? "Error: ThinkPad battery features not available.". I'm guessing some missing kernel module?
mexisme has quit [Ping timeout: 246 seconds]
ardumont has joined #nixos
<mog> exarkun, i think you need boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
<mog> i do have tlp working on my t480s
<exarkun> thanks, will try that
<tv> exarkun: there's also https://github.com/NixOS/nixos-hardware/tree/master/lenovo/thinkpad to check what might be missing
<exarkun> ah great
<azazel> exarkun: if you end up using nixos-hardare's lenovo profile tlp will be automatically activated ;-)
<exarkun> my thinkpad model isn't in https://github.com/NixOS/nixos-hardware/tree/master/lenovo/thinkpad, do I just pick something that's kinda close? I see some of these have acpi_call enabled.
<mog> whats your model?
<exarkun> I added what mog suggested and rebooted and it works now, though, so immediate issue resolved :)
<mog> also awesome
pwnst has joined #nixos
schjetne has quit [Ping timeout: 250 seconds]
Glider_IRC has quit [Quit: Leaving]
erictapen has joined #nixos
b1000101 has joined #nixos
pie_ has quit [Ping timeout: 246 seconds]
<b1000101> sorry for stupid question, but what could be wrong if patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath /nix/store/... is giving me this error? error: syntax error, unexpected ':', expecting $end, at (string):1:144
<b1000101> it "stops" at the first : in the path
kipari has quit [Ping timeout: 246 seconds]
xkapastel has joined #nixos
Soo_Slow has joined #nixos
<yuken> roconnor, I didn't even notice your messages up above, thanks!
<b1000101> oh, got it, I forgot to include stdenv.cc which :(
<yuken> Is there any... Nix by Example? I can't wrap my head around functional languages :o
johanot has quit [Ping timeout: 255 seconds]
<__monty__> yuken: The nix pills are usually recommended, not much of a language introduction though. Have you read the entire manual? It's worth your time.
<yuken> Nope, __monty__ - was going to this weekend, been super busy. I've never done functional language stuff outside of super basic bash, and even then it was as object-orientated as I could make it.
<yuken> So it's pretty confusing for me.
johanot has joined #nixos
WilliamHamilton has joined #nixos
<__monty__> yuken: Maybe think of functions as static methods. You always have to pass a value.
adamantium has joined #nixos
<WilliamHamilton> hi, after installing nixos following this guide https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134
<__monty__> The other difference is functions can be values. And the syntax.
<WilliamHamilton> at the boot I get the message `waiting for device /dev/disk/... to appear`
dslegends has joined #nixos
<WilliamHamilton> then it says that an error occurred at the stage 1 of the boot process, and prompts me to reboot or continue (continuing leads to an error)
<WilliamHamilton> what should I do? Why am I not inserting the passphrase for my encrypted disk?
<yuken> __monty__, that seems oversimplified, but if that's all there is then it doesn't seem too difficult.
<yuken> It's just a new mindset for me, hopefully I can figure it out fast.
hio has joined #nixos
<__monty__> Careful, once you figure it out you'll be all "Why would *anyone* do OOP?!?"
erictapen has quit [Ping timeout: 258 seconds]
<cyris212> WilliamHamilton: Have you set boot.initrd.luks.devices to right disk uuid?
<WilliamHamilton> cyris212: no thank you, I'll rectify this!
adamantium has quit [Remote host closed the connection]
<WilliamHamilton> I missed the importance of that step because I had a premade config
<cyris212> Happened to me on my first NixOS installation :-)
<srhb> yuken: For the basics of the language, people usually like this one: https://nixcloud.io/tour/
<srhb> yuken: (First load is quite slow, but it works)
johanot has quit [Quit: WeeChat 2.4]
mexisme has joined #nixos
<srhb> Er, or does it...
silver has joined #nixos
<srhb> Would be rather sad if it doesn't. :-P
mexisme has quit [Ping timeout: 244 seconds]
gamble has joined #nixos
<tilpner> If it doesn't, you can run:
<tilpner> nix-shell -p nix-tour --run nix-tour
<srhb> tilpner: Nice, I had no idea :)
<gamble> Hey would anyone be able to guide me through how to install https://client.pritunl.com/ on nixos?
<tilpner> That's probably not going to be a simple walk-through
<WilliamHamilton> cyris212: hahaha thanks :)
<WilliamHamilton> now I'm stumped because the graphical interface is not coming up
<gamble> Yeah, under the hood its an Electron app with a Go service in the background. I guess I'll try to start building it and see how far I get.
<srhb> gamble: The go part is likely super simple. The electron part... probably not :-)
<WilliamHamilton> (I set the xmonad stuff it's working on my desktop)
<gamble> srhb: Haha that's the opposite of what I was guessing :-)
<cyris212> WilliamHamilton: can you dump your configuration.nix somewhere? Then I will have a look at it.
emily has quit [Remote host closed the connection]
emily has joined #nixos
<WilliamHamilton> cyris212: thanks, let me do that; could you suggest a non graphical upload method for the file?
<tilpner> WilliamHamilton: | nc termbin.com 9999
<WilliamHamilton> tilpner: thanks!
gamble has quit [Quit: Page closed]
<WilliamHamilton> cyris212: here it is: https://termbin.com/hwrn
FRidh has joined #nixos
MmeQuignon has joined #nixos
<cyris212> WilliamHamilton: does the X server start at all?
acarrico has joined #nixos
<WilliamHamilton> cyris212: I would say it doesn't, I just see an underscore in the upper corner
<WilliamHamilton> how can I start it manually in another tty?
<tilpner> Can you switch to other ttys? ctrl-alt-f1
<WilliamHamilton> tilpner: sure, I'm logged in the other ttys
alexherbo2 has joined #nixos
<tilpner> Logs can be found with journalctl -eu display-manager
<tilpner> Something is weird about buildRustPackage
<tilpner> Every time an instantiation insists on local building, it's because I used that function
<WilliamHamilton> tilpner: it seems the error is .(EE) modeset(0): failed to set mode: invalid argument
<tilpner> And now you $search-engine with that line for solutions or wait for X wizards :)
<WilliamHamilton> tilpner: yep, thanks :D!
chrishtns has joined #nixos
pie_ has joined #nixos
<tilpner> It's not instantiation itself that's wrong, so it's not IFD
pie___ has joined #nixos
<tilpner> But they still never substitute properly
pie_ has quit [Ping timeout: 246 seconds]
cfricke has joined #nixos
<WilliamHamilton> where can I found the initial configuration nixos creates? I'd like to copy some default values from there
<tilpner> nixos-generate-config puts files into /etc/nixos, but you already know that
<WilliamHamilton> tilpner: but will it overwrite my customized one?
<cyris212> WilliamHamilton: only with --force.
<WilliamHamilton> cyris212: thanks!
<cyris212> WilliamHamilton: you can do `mkdir tmp && nixos-generate-config -dir tmp/`.
<WilliamHamilton> yes thank you!
<nh2[m]> grahamc: can I do something against `qtwebengine-5.12.0.drv' timed out after 3600 seconds` in https://github.com/NixOS/nixpkgs/pull/54398/checks?check_run_id=117345552 ?
<gchristensen> not really, no, we just don't have that much build capacity
adamantium has joined #nixos
adamantium has quit [Remote host closed the connection]
<krbtgt> i noticed my user didn't have any nixos channels at all, so i added those from the ones root had
<krbtgt> http://ix.io/1HTy my NIX_PATH
<tilpner> krbtgt: What command are you running and how does it fail?
<tilpner> E.g. nix-env ignores NIX_PATH by default
<krbtgt> nix-env -iA mypackages; it doesn't find my config.nix file, so i added -f to point it there, but i can't seem to find any specifier that makes it myPackages valid
<tilpner> krbtgt: What about without -f?
<tilpner> krbtgt: Try -iA nixos.myPackages
<krbtgt> that seems to have worked; i had tried that before but couldn't ascertain why
<krbtgt> maybe it's because i added the nixos channel as my local user
<tilpner> nix-env lacks a lot of consistency with the other tools, it uses ~/.nix-defexpr to find available packages
<tilpner> Which none of the other tools even knows about
<krbtgt> yeah, my friend had told me the user-side of package management was a bit of technical debt (the ad-hoc way it works)
<krbtgt> otherwise the system seems really nice
<manveru> who needs package management when you got NIX_AUTO_RUN :D
<tilpner> D:
<gchristensen> D:
* manveru hides
<gchristensen> oh my dear
<gchristensen> NIX_AUTO_INSTALL too, haha
<krbtgt> nix-shell is neat
rprije has quit [Ping timeout: 246 seconds]
<krbtgt> i'll approach the container/VM building stuff one at a time
<azazel> I had an issue like this, one time and it was due missing channel in ~/.nix-channels or /root/.nix-channels
erictapen has joined #nixos
Xyliton has joined #nixos
<Xyliton> is NixOps worth using for managing a single server?
<gchristensen> you could but no need, really
<tilpner> It's worth using Nix to remote-deploy to a single server
<tilpner> nixops isn't really necessary to do that
<nh2[m]> Xyliton: it can be worth it, because you can easily spawn a backup server with same config and so on
<Xyliton> the server in question is in-house
Shouou has joined #nixos
<lunik1> hey is anybody about who uses firejail on nixos? am I right in thinking any program I what wrapped should be specified in programs.firejail.wrappedBinaries but not environment.systemPackages?
<nh2[m]> Xyliton: however nixops usually means you can't enable automatic updates, so you have to pick one of the two (only one tool can control what exactly is running on the server)
<azazel> Xyliton: for single server I use something like https://github.com/azazel75/giskard-configuration
<manveru> hmm, did someone turn off {^_^}?
<gchristensen> ah right {^_^}
{^_^} has quit [Remote host closed the connection]
<manveru> offlinehacker: are you still using chef?
{^_^} has joined #nixos
<gchristensen> ,help
<{^_^}> Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
erictapen has quit [Ping timeout: 250 seconds]
<gchristensen> <3 {^_^}
<{^_^}> {^_^}'s karma got increased to 159
<azazel> ,
<{^_^}> Special commands: find tell locate - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu help libraries paste unfree unstable library escape'' declarative escape" overlay pr profiling howoldis ping pinning xy ask imperative which-channel wololo exec fancy-uninstall nixlang++ pills cache channels home-manager callpackage configsearch haskell loot stuck tias -a smart-questions stateversion timer cloak dontask error nur runtimedeps
erictapen has joined #nixos
<gchristensen> ,1
<{^_^}> Page 1: upgrade xml flakes ifd pure-eval wrapper bootfull cloudfront context escape-special helpout info jdwhat logs nix-info nixcon nixeval nixossearch the-pr-with-initially-1152-new-nixos-options wrapnix activationscripts arm dnw docbook github hardware matrixbridge nix-env-r nix-repl nixgl nixpkgsversion not-os notfound ops outpath proot python qt releasenotes replacemodule root thesis todeclarative whomademe zol
<gchristensen> ,2
<{^_^}> Invalid page index, the last page is number 1
<ar> gchristensen: {^_^} responds on query too
<jasongrossman> ,zol
<{^_^}> Linux Kernel 5 made a minor API change which people are saying is breaking ZFS. It'll be fine. ZFS isn't going anywhere. https://github.com/zfsonlinux/zfs/issues/8259
<gchristensen> ,3 = "tricky :)"
<{^_^}> Invalid page index, the last page is number 1
<gchristensen> nicely done infinisil
<gchristensen> ar: thank you for the tip :)
<Xyliton> azazel: Why should one build their binary closure remotely instead of on the server?
jchia_ has joined #nixos
iyzsong-x has joined #nixos
waleee has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
<azazel> Xyliton: because I do development on my workstation and push the results to the server(s), anyway probably can use the remote store in the server to do all the work, by accessing it via SSH
<dmj`> hey, how do I keep the git hash around when I do a nix build
fidart has quit [Ping timeout: 255 seconds]
<jchia_> I've been running distros like Ubuntu, Fedora and Arch Linux. I know how to install the distros and do simple admin things like configuring ssh, using LUKS encryption and configuring the network settings. How much time would it take me to learn how to maintain a NixOS installation comfortably for personal use to do software development?
<jchia_> I found out about NixOS because of Nix because of Haskell.
bollu has quit [Quit: Ping timeout (120 seconds)]
<gchristensen> hard to know, jchia_ :) it is still a Linux system, but there is a ramp-up time to learn how the configuration process works.
<gchristensen> jchia_:maybe set it up in a VM and give it a go?
bollu has joined #nixos
<jchia_> gchristensen: I have a spare laptop and am considering trying NixOS on it.
<gchristensen> oh great!
<qyliss^work> We're here if you need help getting started!
<infinisil> jchia_: to give you a random estimate, i think you'll need a couple weeks to get comfortable
<gchristensen> qyliss^work++
<{^_^}> qyliss^work's karma got increased to 7
<azazel> jchia_: have you tried to use Nix alone in your current distro to get "the feeling"?
<etu> jchia_: Just ask in the channel at any time, there's not people active at all time of the day. But there's often people here that can help :-)
<jchia_> azazel: No, I have only heard about Nix, and only because I know Haskell and some people who use Haskell also use Nix.
<gchristensen> give it a go, you'll love it!
<jchia_> What are a few of the more nixos commands I should get to know first?
<gchristensen> `nixos-rebuild switch` :)
<aswanson> `man configuration.nix`
<azazel> nix-shell !
<azazel> nix repl
<aswanson> https://nixos.org/nixpkgs/manual/ for when you want to start developing stuff
<azazel> , pills
<{^_^}> Invalid command syntax
<qyliss^work> ,pills
<azazel> beat me
o1lo01ol1o has joined #nixos
fyuuri has joined #nixos
<qyliss^work> +1 for nix-shell -- it's what sold me on Nix when I first saw it. Instantly have any program available for trying out / one-off use, without installing it globally
<jchia_> Thanks, everyone.
<jchia_> Going to install now.
domogled has joined #nixos
<zemm> jchia_: to be clear, you don't _have_ to install NixOS to use nix in development - although why not if you can :)
<infinisil> One time my friend had a problem with one of manjaro's packages. I then convinced him to install nix so he could install it through nix which didn't have any problems :P
Cale has quit [Ping timeout: 276 seconds]
<zemm> we just recently used Nix with development in Win10 (Windows Subsystem for Linux)
<zemm> there was some minor gripes in installation, but after that it worked fine
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<infinisil> Nice, what are those gripes? Were they fixed in nix/nixpkgs?
<manveru> zimbatm: what do you think about adding additionalWrapperArgs to bundlerApp, so we could do the PATH injection directly?
Acou_Bass has joined #nixos
<zemm> I can't remember, its been a few months :( But none of us had substatial knowledge of Nix, and got around it with some googling
<infinisil> I see
<qyliss^work> manveru: +1 from me on that idea, fwiw
MmeQuignon has quit [Ping timeout: 258 seconds]
jasongrossman has quit [Ping timeout: 245 seconds]
<WilliamHamilton> infinisil: do you have any thoughts on how to debug why the x server is not starting in a laptop with a fresh nixos installation?
<zemm> and the usage was a pretty basic shell.nix with all the dependencies neede by the project (go/elm/serverless so no nix-package was built, it just provided the environment)
<cyris212> WilliamHamilton: what kind of graphics card are you using?
<zemm> we also use Nix this way in Ubuntu and RHEL, provides huge benefits with very little knowledge needed in day to day usage
<azazel> WilliamHamilton: have a look at `journalctl -eu display-manager`
<WilliamHamilton> cyris212: it's an integrated card, intel HD graphics 4000
<WilliamHamilton> azazel: the relevant line from there could be one of these two:
<WilliamHamilton> 1) modeset(0): fauked to set mode; invalid argument
<WilliamHamilton> 2) AIGLX: suspending AIGLX clients for VT switch
<azazel> WilliamHamilton: also have a look into /var/log/X.0.log
<WilliamHamilton> both of those have tangential issues on google, but nothing I could put to use
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil> Hmm no idea really, are you using the nouveau driver?
<gchristensen> hrm it seems the thunderbolt kernel module is a bit buggy
<WilliamHamilton> azazel: that file doesn't exist for me
<WilliamHamilton> infinisil: I'm using the default one, which I think is nouveau, I didn't add any config for that
<infinisil> I think it should be in the display-manager logs which one was selected
bun_ has joined #nixos
o1lo01ol1o has joined #nixos
Cale has joined #nixos
<WilliamHamilton> infinisil: I can't find anything regarding nouveau in there, but wouldn't know the other one
srid has quit [Ping timeout: 255 seconds]
nahamu_ is now known as nahamu
bun_ has quit [Client Quit]
Makaveli7 has quit [Quit: WeeChat 2.4]
<infinisil> WilliamHamilton: When you `journalctl -u display-manager -b` and search for `LoadModule`, what do you find?
Xyliton has quit [Quit: Lost terminal]
<infinisil> Or maybe even gist it
<WilliamHamilton> infinisil: https://termbin.com/8uau
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/fc98b4e129a (from 64 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/528cdc8dc26 (from 65 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
stepcut has joined #nixos
srid has joined #nixos
<WilliamHamilton> infinisil: it doesn't seem to contain a `loadmodule`
<WilliamHamilton> oh sorry, it does
mabel has quit [Ping timeout: 250 seconds]
<infinisil> Ah, modesetting is the driver probably
<infinisil> WilliamHamilton: Try setting services.xserver.videoDrivers = [ "nouveau" ]` preferably, or [ "intel" ] if that doesn't work
justanotheruser has joined #nixos
erictapen has quit [Ping timeout: 252 seconds]
kreisys has joined #nixos
Shouou has quit [Read error: Connection reset by peer]
<WilliamHamilton> infinisil: wow, I'm _always_ amazed by your intuitions, "intel" worked!
orivej has joined #nixos
<gchristensen> infinisil++ for sure
<{^_^}> infinisil's karma got increased to 94
<genesis> what's the best way to fix such thing that break at each update :
<genesis> $ grep store ~/.cap32.cfg
<genesis> rom_path=/nix/store/vzklpxmzhgm8wrnl4m6blrad2jw925il-caprice32-4.5.0/share/caprice32/rom
WilliamHamilton has quit [Ping timeout: 256 seconds]
<genesis> classic nix issue i guess.
erictapen has joined #nixos
WilliamHamilton has joined #nixos
<WilliamHamilton> infinisil: sorry, power went out, I was about to ask how did you understand that modesetting was the driver, given that there were many LoadModules?
b1000101 has quit [Quit: Leaving]
<infinisil> Nice :)
<adisbladis> genesis: Maybe with home-manager
mabel has joined #nixos
<infinisil> WilliamHamilton: Just had a bunch, so I cd'd into nixpkgs/nixos/modules and did an `rg videoDrivers`, when I saw modesetting being listed
<infinisil> s/bunch/hunch
waleee has quit [Quit: WeeChat 2.4]
<infinisil> I'm not sure if #55583 was a good decision now..
<{^_^}> https://github.com/NixOS/nixpkgs/pull/55583 (by 7c6f434c, 11 weeks ago, merged): nixos/xserver: drop intel from videoDrivers
<infinisil> Apparentyl fgaz also stumbled on this in #58678
<{^_^}> https://github.com/NixOS/nixpkgs/issues/58678 (by fgaz, 4 weeks ago, closed): X (display-manager.service) fails to start
fusion809 has quit [Remote host closed the connection]
cfricke has quit [Quit: WeeChat 2.4]
jasongrossman has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/fc98b4e129a (from 89 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<linarcx> Guys, how to setup lsp-mode + emacs to get autocomplte for a c++ project? I can't figure out what sould i do? perhaps any successfull experience with deep details will be appreciate?
emily has quit [Quit: Updating details, brb]
emily has joined #nixos
orivej has quit [Ping timeout: 250 seconds]
mwilsoncoding has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<lunik1> Ok I have wrapped git in firejail using programs.firejail.wrappedBinaries and placed git in environment.Systempackages. I kind of expected this to give collisions because the wrappedBinaries options states "You will get file collisions if you put the actual application binary in the global environment"
o1lo01ol1o has quit [Ping timeout: 276 seconds]
<lunik1> Have I misunderstood something?
<hodapp> raaaawr, why must BlueZ deprecate useful tools and provide no good explanation about what replaces them?
<hodapp> I saw iqubic in here months ago asking about this same issue (missing hciconfig or hcitool)
<hodapp> perhaps it's time for me to add the build-time flag to still build deprecated tools in bluez's derivation
psyanticy has joined #nixos
Shouou has joined #nixos
endformationage has joined #nixos
Tucky has quit [Quit: WeeChat 2.4]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/528cdc8dc26 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<infinisil> lunik1: You'll probably only get collisions if you put git into systemPackages yourself
<lunik1> infinisil: that's what I did
<gchristensen> error: Nix daemon out of memory ... nice
<infinisil> lunik1: At build time there wasn't any warning about a collision?
<lunik1> infinisil: there was not
<infinisil> lunik1: How did you define wrappedBinaries?
<lunik1> git = "${lib.getBin pkgs.git}/bin/git";
<infinisil> Hmm not sure then
<gchristensen> awesome I accidentally tried to import /nix/store in to a nix build :D
<lunik1> and I get nothing when I run "sudo nixos-rebuild test" (just to check that should be where I see warnings)
zimbatm[m] is now known as zimbatm[m]1
<infinisil> Well once it built it there won't be any more warnings
<infinisil> (because the build is cached)
<infinisil> or should be
<lunik1> I don't think there were warnings the first time, can I ignore the cache?
<zimbatm> manveru: no objection here
domogled has quit [Ping timeout: 245 seconds]
stepcut_ has joined #nixos
stepcut has quit [Ping timeout: 246 seconds]
bohan has joined #nixos
schjetne has joined #nixos
<lunik1> ok I added aria2c and the collisions appeared, all is (not) well
zimbatm has quit []
mthst has joined #nixos
domogled has joined #nixos
zimbatm[m]1 is now known as zimbatm
zimbatm has quit [Changing host]
zimbatm has joined #nixos
mthst has quit [Client Quit]
domogled has quit [Client Quit]
npmccallum has joined #nixos
domogled has joined #nixos
npmccallum has quit [Remote host closed the connection]
npmccallum has joined #nixos
mthst has joined #nixos
<fgaz> Infinisil: hah, that one took me a lot to fix
<fgaz> I had to stay on an old generation for months
<fgaz> Fortunately the 19.03 changelog listed every breaking change (I was in unstable) and I found about the driver
jonaswouters has quit [Remote host closed the connection]
dsiypl4 has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
shibboleth has joined #nixos
Shouou has quit [Ping timeout: 268 seconds]
imdoor_ has joined #nixos
mthst has quit [Quit: the bouncer died]
erictapen has quit [Ping timeout: 252 seconds]
mthst has joined #nixos
knupfer has joined #nixos
<Philonous> Is there a way to see which generations have (successfully) booted in the past? Or even better, a command like nix-collect-garbage -d that is guaranteed to leave one bootable generation?
joko has joined #nixos
joko has quit [Changing host]
<gchristensen> I could have sworn that nix-collect-garbage would not delete the /run/booted-system profile link, but I guess not
<clever> it wont GC the target of booted-system, but it can delete the generation link
<gchristensen> yeah, I thought it didn't
<clever> so that booted version wont be put back into the bootloader
<clever> so, while it keeps the known-good nixos, it wont let you boot it :P
<gchristensen> seems foolishly simple to fix this :)
erictapen has joined #nixos
endformationage has quit [Ping timeout: 258 seconds]
<mthst> i can't make boot.initrd.network work. i get this error in stage-1-init: modprobe: FATAL: Module af_packet not found in directory /lib/modules/5.0.10
stepcut_ has quit [Remote host closed the connection]
ubert has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
grw has quit [Quit: WeeChat 1.4]
<jchia_> I just did a basic NixOS installation following the manual. However, the system is missing some important things. I can't connect to wifi because there's no wpa_supplicant. There's no vim, so I can only use nano. I think I need network connection above all. Supposing I have no Ethernet, does this mean I have to boot back to the USB and reinstall with a modified config that include the packages I need, including wpa_supplicant? If I have E
<jchia_> thernet, maybe it'll be simpler to plug in a cable?
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #nixos
<lordcirth__> jchia_, definitely simpler to plug in ethernet temporarily
Ariakenom has quit [Quit: Leaving]
theduke has joined #nixos
<theduke> hey, I'm playing around with nix-env (on Arch linux) and I have some trouble understanding packages
<theduke> eg `nix-env -qa git` shows 2 different entries, with no way to set them apart
<theduke> the web search shows them with two different "attributes" (minimal / full)
<theduke> but selecting those with `nix-env -iA nixos....` seems to only work on nix os, not on other distributions
<tilpner> Use -iA nixpkgs.
<theduke> i've scanned the user guide but this is not explained very well (attributes vs derivations etc)
<theduke> is there a good source somewhere?
<theduke> also , how can I get `nix-env -Qa` to show more info so I can tell the different entries apart?
iyzsong-x has quit [Ping timeout: 252 seconds]
lordcirth__ has quit [Remote host closed the connection]
<Philonous> also, »nix-env -qaP« shows the full attribute path
lordcirth__ has joined #nixos
<Philonous> e.g. nix-env -qaP git
WilliamHamilton has quit [Quit: Page closed]
<theduke> ah `-P` helps
<theduke> so attributes have a completely separate hierarchy and are not related to the package name?
<theduke> that's quite confusing
pwnst has quit [Ping timeout: 250 seconds]
<tilpner> Yes it is. You want to use attribute paths whenever you can
Glider_IRC has joined #nixos
chrishtns has quit [Quit: Lost terminal]
<tilpner> ,-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<Philonous> Nix-pkgs is a giant hash-map from names to derivations (think make-files in FreeBSD ports). The name of the package and where the derivation for it is stored in the map are prima facie unrelated.
<Philonous> You can have packages that aren't even stored in nixpkgs at all
<bohan> like make phony targets?
<Philonous> Sorry, meant to write "from attributes to derivations"
<bohan> don't be sorry. the hard part in your sentence was actually "prima facie" :p
mexisme has joined #nixos
jchia_ has left #nixos [#nixos]
domogled has quit [Ping timeout: 244 seconds]
stepcut has joined #nixos
andreas303 has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f2132308c45 (from 45 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/cdf6ac47592 (from 45 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
mexisme has quit [Ping timeout: 246 seconds]
<theduke> Philonous: thanks, that helps
stepcut has quit [Ping timeout: 246 seconds]
stepcut has joined #nixos
isHavvy has joined #nixos
<tilpner> I have a weird situation where Nix only contacts the cache about some store items, but not about others
<tilpner> A simple writeText, built on the server and pulled over with nix-store -r works fine
<tilpner> But a thing Hydra built with buildRustPackages does not, and I can't figure out why
<tilpner> Even the Hydra-suggested nix-env -i line fails
andreas303 has joined #nixos
Havvy has quit [Ping timeout: 250 seconds]
<tilpner> Does that seem familiar to any of you?
klntsky has quit [Remote host closed the connection]
<theduke> mhm, just installed Firefox and it has a very weird pointer icon (a rotated hand) and bad UI font. (very different from native)
<theduke> I assume that is related to gtk config?
klntsky has joined #nixos
<tilpner> theduke: Yes, sounds likely
anon has joined #nixos
Anton-Latukha has quit [Remote host closed the connection]
anon is now known as Guest7325
<tilpner> Nix says it's checking the substituter, but my nginx logs say differently, and I cleared ~/.cache/nix
jchia_ has joined #nixos
<jchia_> In case I mess up, should I backup /etc/nixos/configuration.nix or keep a version history myself or does NixOS automatically keep old versions?
Shouou has joined #nixos
<tilpner> jchia_: NixOS does not keep backups by default, though you can instruct it to do so
<lordcirth__> jchia_, I'd use git
<tilpner> jchia_: Many people use git to version-control their configuration
<makefu> jchia_:short answer, no . but there are a couple of ways to get this
<makefu> there was a post on discourse.nixos.org about that
<jchia_> use git as root or as some other user? Which is better?
<tilpner> You can change ownership of those files to your primary user if you want
<jchia_> I suppose I can even symlink
jchia_ has left #nixos [#nixos]
<tilpner> You can also move them anywhere else you want, they don't need to stay in...
<tilpner> :/
jchia_ has joined #nixos
<tilpner> Huh, nix-store --dump-db on the cache host aborts with an error about another invalid path
<tilpner> That's probably not good
Shouou has quit [Read error: Connection reset by peer]
Shououo has joined #nixos
<tilpner> And now it substitutes the path that used to not work
<tilpner> Without me doing anything, except starting a GC
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/f2132308c45 (from 75 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
sb0 has joined #nixos
erasmas has joined #nixos
jchia_ has left #nixos [#nixos]
ubert has quit [Quit: Leaving]
mkoenig_ has joined #nixos
wfranzini has quit [Remote host closed the connection]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/cdf6ac47592 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
mkoenig has quit [Ping timeout: 268 seconds]
linarcx has joined #nixos
OmnipotentEntity has joined #nixos
pie___ has quit [Ping timeout: 255 seconds]
<clever> tilpner: nix-store --verify
<tilpner> clever: I'll run that after the GC finishes, but I don't have a way to test whether things are fine anymore
<tilpner> clever: The previously failing substitution now works, and I have no idea why
dsiypl4 has quit [Read error: Connection reset by peer]
dsiypl4 has joined #nixos
<OmnipotentEntity> I'm having a rather obscure problem. Specifically full screening YouTube videos on my 3rd monitor only results in a black screen (rather than video, cursor still draws). My monitors are setup so that my first two monitors are on the first card, and my second is on my second card. They are GTX780s, and I'm using Base Mosiac mode. My configuration is here: https://pastebin.com/NAkbJMAU
<OmnipotentEntity> my third* is on my second card.
drakonis has joined #nixos
theduke has quit [Remote host closed the connection]
drakonis_ has quit [Ping timeout: 250 seconds]
<goibhniu> omnipotententity: I've had something like that from time to time, but restarting firefox or a suspend cycle would sort it out
dansho has joined #nixos
mwilsoncoding has quit [Ping timeout: 256 seconds]
Shououo has quit [Ping timeout: 255 seconds]
<OmnipotentEntity> thanks for the tip goibhniu, unfortunately, in my case simply restarting firefox, or even rebooting doesn't fix the issue. It does seem to be isolated to firefox video though, as both mplayer and vlc as well as chromium work just fine full screen on my third monitor. But twitch on firefox, for instance, does not.
<exarkun> is mdns-scan packaged? I can't find it with any obvious grepping. Or is something similar packaged?
<goibhniu> :/
<clever> ,locate mdns-scan
<{^_^}> Couldn't find in any packages
<clever> exarkun: `avahi-browse -at` does something similar
jtojnar has joined #nixos
sb0 has quit [Quit: Leaving]
<exarkun> thanks clever
domogled has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
dbmikus_ has joined #nixos
srl295 has joined #nixos
Anton-Latukha has joined #nixos
bgamari has quit [Ping timeout: 276 seconds]
bgamari has joined #nixos
<nh2> I'm trying to make gstreamer gst-plugins-good work on Darwin. The install step fails with
<nh2> The package has `outputs = [ "out" "dev" ];`, but neither `$out` nor `$dev` are used anywhere explicitly. What could be the problem here?
<nh2> `find: '/nix/store/dis3dljpdc7mi52m6skxh0nmg2mvhb09-gst-plugins-good-1.16.0-dev': No such file or directory`
Woland[m]1 has joined #nixos
<jtojnar> nh2[m]: probably somewhere in generic builder?
<jtojnar> or multiple-outputs.sh
jomik has joined #nixos
<nh2> jtojnar: does it make sense that these exist on the first place? On Linux I don't get an error, and thse `-dev` outputs exist in the store, but without contents, only `nix-support/propagated-build-inputs`. Should I delete the `"dev"` output?
<jtojnar> nh2: yeah, we can probably drop it
<jtojnar> nh2: it looks like it was used for libtool files https://github.com/NixOS/nixpkgs/commit/6a64edfa0e38b599ee15f7582d3dbe62b2b884af
<jtojnar> so it safe to drop now that we do not use libtool anymore
<nh2> jtojnar: it's used here for autoconf related-stuff:
<nh2> But there's also this that moves things around, possible that that still applies even to meson builds?
<jomik> So, I need to create an expression to build a package again. I think it is about time that I learn how to do it properly. Because I have just been modifying the phases with various debug output, like `ls` and stuff.. I am pretty certain that I should be able to open a nix-shell and then execute phases from that?
<jtojnar> nh2: yeah, but gst-plugins-good does not have anything to move
<nh2> jtojnar: why does it not fail for Linux though? Is it that only Linux has `nix-support/propagated-build-inputs`, and Darwin not?
<nh2> on Linux the contents of the file is `/nix/store/psk0prgy7niw28nbvsv3r3idb91zvf8l-gst-plugins-good-1.16.0`
<jtojnar> nh2: the file should be only created in fixupPhase
<nh2> jtojnar: the Linux build doesn't seem to have a fixupPhase either
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kreisys has joined #nixos
<nyanloutre[m]> hello, I tried to look on why the usb-modeswitch udev rules doesn't get applied. It seems we are incorectly patching the udev file: originaly it would call a script but we replace it by the usb_modeswitch executable without changing the arguments.
<nh2> NIX_PATH=nixpkgs=. nix-shell -E '(import <nixpkgs> {}).gst_all_1.gst-plugins-good'
<nh2> and then run `unpackPhase` and so on.
<nh2> With nix-shell, you can do e.g.
<nh2> jomik: yes, for many builds you can do that (though I think not for all). I know of 2 ways:
<nh2> With `nix-build`, you can run with `--keep-failed`, then cd into the failed build directory, run bash and `source env-vars`, cd into the subdir and run what you like (e.g. continue a `make` or so)
<jomik> Thanks ! :)
alexherbo29 has joined #nixos
<jtojnar> nh2: no idea, perhaps darwin has a different set of propagatedBuildOutputs
alexherbo2 has quit [Ping timeout: 246 seconds]
judson has joined #nixos
<jtojnar> it should still run in postFixup
tbenst_ has quit [Read error: Connection reset by peer]
tbenst_ has joined #nixos
<jomik> Though, I can't actually run the build commands, I need to run unpackPhase.
<nh2> jtojnar: hmm `echo $propagatedBuildInputs` is empty string on both Linux and Darwin, and both have a `fixupPhase` set
<clever> nh2: `env | grep -i --color prop`
<jtojnar> nh2: that would be OUTPUTS
<jtojnar> inputs are expected to be empty
Shououo has joined #nixos
<jtojnar> maybe darwin bash does something differently there
<nh2> jtojnar: should I for now make the `dev` output conditional so that it's not used on darwin, or remove it completely? I'm not sure whether one could override meson options such that the dev output becomes important?
<jtojnar> nh2: remove it completely for good plugins
<jtojnar> nh2: I would even consider it a bug that empty dev output is allowed thanks to the nix-support directory, other outputs would fail
kenshinCH has joined #nixos
jomik has quit [Ping timeout: 245 seconds]
srid has quit [Ping timeout: 246 seconds]
ckauhaus has quit [Quit: WeeChat 2.4]
<jtojnar> any ideas why replacing dlopen using LD_PRELOAD would break loading libraries, even if we pass the arguments right to the original implementation?
torsdago has joined #nixos
<matthewbauer> nh2: those look flipped in the gist
<nyanloutre[m]> I think we need to make the `usb_modeswitch_dispatcher` script work
<matthewbauer> nh2: __propagatedSandboxProfile should be just on darwin
domogled has quit [Ping timeout: 258 seconds]
<nh2> matthewbauer: oh you are right, they are flipped
<nh2> fixed
fendor_ has quit [Ping timeout: 258 seconds]
kai_w has quit [Quit: Konversation terminated!]
srid has joined #nixos
domogled has joined #nixos
<nyanloutre[m]> I opened an issue for the usb_modeswitch bug : https://github.com/NixOS/nixpkgs/issues/60878
<{^_^}> #60878 (by nyanloutre, 1 minute ago, open): usb_modeswitch_data udev rules aren't applied
freeman42x has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 276 seconds]
knupfer1 is now known as knupfer
torsdago has quit [Ping timeout: 268 seconds]
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/190727db4ea (from 27 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
qyliss^work has quit [Quit: bye]
qyliss^work has joined #nixos
Xal has quit [Ping timeout: 258 seconds]
fendor_ has joined #nixos
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/959b5a13b9d (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
Xal has joined #nixos
fendor_ has quit [Remote host closed the connection]
Myhlamaeus has joined #nixos
orivej has joined #nixos
<gchristensen> > :p mypaint.meta
<{^_^}> { available = true; description = "A graphics application for digital painters"; homepage = "http://mypaint.org/"; license = { fullName = "GNU General Public License v2.0 or later"; shortName = "gpl2P...
<jtojnar> something up with mypaint?
phreedom has joined #nixos
mwilsoncoding has joined #nixos
<gchristensen> sorry, was using IRC as a lazy way to look for its info :X
<gchristensen> (it is really good)
<etu> :D
orivej has quit [Ping timeout: 250 seconds]
<gchristensen> (on another note, "nix edit" is so good. `nix edit -f . mypaint`)
<infinisil> I personally use such a wrapper: https://paste.infinisil.com/9PWin2eXK8.sh
dbmikus_ has quit [Ping timeout: 268 seconds]
dbmikus_ has joined #nixos
ris has joined #nixos
<mwilsoncoding> python testing question for you folks: how can I get pytest to find the azure.applicationinsights module when using pytest on this package https://github.com/Azure/azure-sdk-for-python/tree/master/azure-applicationinsights ?
<mwilsoncoding> for whatever reason, it complains that it cannot find it and the tests fail every time
<mwilsoncoding> the same happens for other azure modules
mthst has quit [Quit: the bouncer died]
<azazel> mwilsoncoding: probably you need to install these modules
mthst has joined #nixos
gagbo has joined #nixos
<mwilsoncoding> azazel: how would one go about doing that? I'm putting this into a nixpkgs expression in which my checkPhase is "runHook preCheck; pytest; runHook postCheck"
<mwilsoncoding> can I somehow include azure-applicationinsights as a member of _its own_ checkInputs ?
Guest7325 has quit [Ping timeout: 244 seconds]
Guest7325 has joined #nixos
<azazel> mwilsoncoding: have you followed he python's packaging guide in nixpkgs manual?
freeman42x has quit [Ping timeout: 252 seconds]
<mwilsoncoding> I have it open in a tab and am referencing it- but I'm also trying to cover ground quickly, so there's a high probability I missed something...
imdoor_ has quit [Quit: imdoor_]
<mwilsoncoding> azazel: many thanks. I slowed down and took another look- pytest is called automatically if I just include it as a checkInput- I did not have to override checkPhase
dsiypl4 has quit [Read error: Connection reset by peer]
oida has quit [Remote host closed the connection]
dsiypl4 has joined #nixos
oida has joined #nixos
init_6 has quit []
<mwilsoncoding> wait- now I'm remembering why I did that- checkPhase essentially calls `setup.py test` rather than 'pytest'
<gagbo> don't you even want python -m pytest ?
sigmundv_ has quit [Ping timeout: 268 seconds]
dansho has quit [Quit: Leaving]
<manveru> aanderse: do you know why we have two redmine versions?
teej has quit [Remote host closed the connection]
<mwilsoncoding> gagbo: maybe? I'm really just trying to follow their testing practices: https://github.com/Azure/azure-sdk-for-python/wiki/Contributing-to-the-tests
Jetien has quit [Ping timeout: 244 seconds]
teej has joined #nixos
<mwilsoncoding> which, according to the documentation, appears to just be a call to pytest (tho they are assuming current directory is top level of the repository)
Guest7325 has quit [Ping timeout: 246 seconds]
jomik has joined #nixos
Guest7325 has joined #nixos
wfranzini has joined #nixos
<cocreature> I’m trying to upgrade nixpkgs in our CI and I’m getting a lot of “error: unexpected end-of-file” errors. Is there anything I can do to fix this or at least make it less likely (e.g. increase the number of retries somewhere)
<gagbo> mwilsoncoding: I prefer calling python -m pytest because you're using the python from the virtualenv. https://docs.pytest.org/en/latest/usage.html#usage-and-invocations
<coconnor> howdy all. Running QT executables from the shell results in no theme. I remember solving this before but forgot how. any pointers? :(
knupfer has quit [Quit: knupfer]
<gagbo> Apparently the doc also states it adds cwd to sys.path, which I thought it already did (I'm quite a noob in Python)
<coconnor> cocreature: what is outputting that error? EG: the command being executed
<cocreature> coconnor: sorry, forgot to include that. It happens while copying from the cache.
<cocreature> It seems to be flaky and happens on different store paths each time
civodul has joined #nixos
bepvte has joined #nixos
<bepvte> Im reading the "nix pills" guide, and I came across this syntax: pkgs = import <nixpkgs> {};
<bepvte> Why is {} being passed to import nixpkgs?
<gchristensen> when imported, <nixpkgs> returns a function
<bepvte> Ah
<bepvte> Thank you
Shououo has quit [Ping timeout: 246 seconds]
camsbury- has quit [Remote host closed the connection]
camsbury has quit [Remote host closed the connection]
alexherbo29 has quit [Read error: Connection reset by peer]
<coconnor> cocreature: understood. Copying from http cache?
<coconnor> (HA. co-creature. the dual of a creature? Can I read my name as the dual of a connor then?)
alexherbo29 has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
<gchristensen> (we also have a copumpkin, and colemickens which I assume is the dual of a lemickens)
<azazel> :-)
knupfer has joined #nixos
dslegends has quit [Quit: dslegends]
jomik has joined #nixos
U007D_ has joined #nixos
<coconnor> XD
<cocreature> coconnor: exactly! (two both questions ;))
U007D_ has left #nixos [#nixos]
acarrico has quit [Ping timeout: 252 seconds]
knupfer1 has joined #nixos
tbenst_ has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 276 seconds]
knupfer1 is now known as knupfer
Dema has joined #nixos
tbenst_ has joined #nixos
<Dema> Hi! I've a small question, I've installed nixos several days ago, I'm using unstable channel, did nixos-rebuild --upgrade yesterday. Just moments ago run nix-channel --update and launched nix build --no-link -f '<nixpkgs/nixos>' config.system.build.toplevel and it's downloading 2.3GiB. Why the number is so big? I thought it should only upgrade packages that are changed, but for example, I have two derivations of gimp in store of the same
<Dema> I wonder can I somehow see why it's being upgraded?
ricekrispie2 has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
domogled has quit [Ping timeout: 255 seconds]
ricekrispie has quit [Ping timeout: 258 seconds]
<coconnor> Dema: try `nix build --dry-run`
<gchristensen> Dema: if a very low level library changed, it will cause everything that depended upon it to rebuild as well
knupfer1 is now known as knupfer
<gchristensen> so in those cases you'll end up with, for example, two gimps
Jetien has joined #nixos
jomik has quit [Quit: WeeChat 2.4]
<Dema> Yeah, I was thinking that maybe something like glibc was changed. Just wanted to ask for some tools to explore what is going on there :)
jomik has joined #nixos
<jomik> I have to patch a binary that has an rpath of `$ORIGIN:$ORIGIN/../lib`, wth is origin? :D
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/959b5a13b9d (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
zeta has joined #nixos
<azazel> jomik: ?
<cocreature> jomik: the directory that contains the binary, see http://man7.org/linux/man-pages/man8/ld.so.8.html
<jomik> cocreature: Thanks :D
Mrmaxmeier7 has quit [Quit: The Lounge - https://thelounge.chat]
<jomik> Oh god, I need to patch all the libraries as well, don't I .. D:
<zeta> i just set up clamav on nixos, will it scan my web browser(firefox) as well ?
<Yaniel> doesn't clamav only scan things when you explicitly ask it to
<azazel> zeta: shouldn't better be used to scan data files like documents?
tbenst has quit [Ping timeout: 256 seconds]
Mrmaxmeier7 has joined #nixos
<zeta> well i set itup declaratively on configuration.nix, doesn't it scan the whole system automatically in intervals throughout the day ?
Mrmaxmeier7 is now known as Mrmaxmeier
o1lo01ol1o has quit [Remote host closed the connection]
<lordcirth__> zeta, look at the config file?
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<zeta> extraConfig option ?
<Yaniel> no, the config file
hodapp has quit [Quit: WeeChat 1.0.1]
<lordcirth__> zeta, the clamav config. Not that you should edit it from there, but you can look and see what it is set to do.
mexisme has joined #nixos
<zeta> where is the dir located, i cannot find the path ? to clamav
MichaelRaskin has joined #nixos
<lordcirth__> zeta, is it not in /etc?
hodapp has joined #nixos
mthst has quit [Ping timeout: 252 seconds]
blackriversoftwa has joined #nixos
<zeta> oh, i was looking in ~/.config , thanks
Mrmaxmeier has quit [Quit: The Lounge - https://thelounge.chat]
Mrmaxmeier has joined #nixos
<blackriversoftwa> angerman: In the IOHK haskell.nix infrastructure: is there a way to override mkDerivation (say, to add a shell hook) for a package set?
mexisme has quit [Ping timeout: 268 seconds]
<zeta> well it looks like clamav is scanning the whole system, i don't know ?
jomik has quit [Quit: WeeChat 2.4]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zeta> i just want to make sure clamav is scanning firefox ?
<Yaniel> firefox itself or your user profile?
matix has joined #nixos
<coconnor> huh. interesting. nixos provides a mostly blank config to clamd
<coconnor> which, without setting extraConfig, looks to set up clamd to the defaults
<coconnor> whatever those are
o1lo01ol1o has joined #nixos
<coconnor> the clamd docs, however, reference clamd.conf.example as a prototype config.
<zeta> well i just want clamav to scan the whole system(including firefox)
<coconnor> if the nixos config was derived from clamd.conf.example then this would be pretty straight forward to answer
<zeta> :(
<coconnor> "Look at the config and see what it says". as is tho.. the config is blank so it is kind of a mystery to what the config *is*
<coconnor> lemme try enablign the module to double check that haha brb
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<zeta> :)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/21112a7c169 (from 86 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
FRidh has quit [Quit: Konversation terminated!]
pwnst has joined #nixos
<coconnor> ok. better than I thought. `man clamd.conf` will tell you the default value for the options
<coconnor> by default, nixos is using the defaults for scanning. Which are...
kreisys has joined #nixos
<coconnor> huh. doesn't look like clamd automatically scans without enabling on-access
kreisys has quit [Ping timeout: 276 seconds]
<zeta> coconnor: ?
pwnst has quit [Ping timeout: 244 seconds]
<coconnor> interesting... I don't see a relevant option. A scan can be requested with `clamdscan /`.
<coconnor> I don't see an option for enabling or controlling a periodic scan in clamd.conf
<coconnor> if you would like files to be scanned on access then there is an option for that
pwnst has joined #nixos
emacsomancer has joined #nixos
<coconnor> A systemd service that invokes `clamdscan` periodically is one option. Just seems like it should be already done...
mwilsoncoding has quit [Quit: Page closed]
<zeta> so is there what is the setting i need to change or is clamav scanning the whole system ?
<coconnor> I presume you enabled clamav.daemon?
<zeta> yes: daemon and updater
logzet_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<zeta> coconnor: yes
matix has quit [Quit: :q!]
psyanticy has quit [Quit: Connection closed for inactivity]
dsiypl4 has quit [Read error: Connection reset by peer]
dsiypl4 has joined #nixos
camsbury has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/f2132308c45 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<camsbury> clever: I remember you telling me before some command you could run to get the hash of your current nixpkgs channel in nix repl?
<camsbury> I'd like to have that command so I could keep track of the versions I use when I update
zeta has quit [Quit: WeeChat 2.4]
ixxie has joined #nixos
<tilpner> camsbury: Perhaps it was lib.version, which doesn't show a hash here, but might with proper channels
jackdk has quit [Ping timeout: 258 seconds]
lordcirth has quit [Remote host closed the connection]
lordcirth has joined #nixos
eraserhd has joined #nixos
tbenst_ has quit [Remote host closed the connection]
tbenst_ has joined #nixos
zxcvbnm7358 has quit [Ping timeout: 246 seconds]
<eraserhd> Is there a way, with nix-env (on Mac, so not NixOS), to store a file in my dotfiles repo to install a bunch of stuff? The only way I can find so far is to build a package with a bunch of dependencies.
<Dema> I made a fix to broken pygame derivation, how can I replace broken derivation with correct one locally so I can try to rebuild switch everything that depends on it?..
mexisme has joined #nixos
o1lo01ol1o has joined #nixos
<LnL> eraserhd: I assume you mean eg. buildEnv, you can do something like this as an alternative
<Dema> I can successfully build it with nix-build -A python37Packages.pygame, but I don't know how to force other packages to use it instead of one from nixpkgs.
<Dema> At least I wanted to try to build frescobaldi which depends on it.
camsbury has quit [Ping timeout: 255 seconds]
camsbury has joined #nixos
lordcirth has quit [Remote host closed the connection]
<LnL> frescobaldi.override { pygame = ...; }
wfranzini has quit [Remote host closed the connection]
<camsbury> ty @tilpner
wfranzini has joined #nixos
<gchristensen> bgamari: looking like Monday/Tuesday btw
* bgamari tries to figure out what this means
<gchristensen> oh, oops
<gchristensen> right. 19.03 on Packet.com
<bgamari> ahh
<bgamari> right
<eraserhd> LnL: this looks pretty nice, actually. ty!
<Dema> Thanks! I've found something in CONTRIBUING.md guide. They say I should run nix-shell -p nix-review --run "nix-review pr XXX". Doing it now.
Dema has quit [Ping timeout: 256 seconds]
<Unode> hi all, if I want to create a derivation that consists of a python environment (with dependencies) and a python script to be downloaded and added to bin/ , is mkDerivation the apropriate function or is there a better suited one?
<camsbury> I have used mkDerivation and mkShell interchangeably in a `shell.nix`, calling `nix-shell` to activate
<camsbury> haven't done more research yet
<camsbury> but you get your deps for free just putting them into `buildInputs`
<camsbury> not sure about the best way to add the script, maybe a shellHook]d
ixxie has quit [Ping timeout: 252 seconds]
<infinisil> Unode: Yeah, you can install the binary in $out/bin like normal, and set `pythonPath = [ pythonPackages.foo ... ]; nativeBuildInputs = [ pythonPackages.wrapPython ]; postFixup = ''wrapPythonPrograms'';`
<infinisil> Could even use pkgs.runCommand or runCommandNoCC
<Unode> infinisil: lots of stuff I'm not entirely familiar with in your examples
<Unode> I'll explore those options, thanks
<Unode> camsbury: I do have a nix-shell solution as well but using shebangs which adds 2.5 seconds of startup time
<Unode> so not really practical
<infinisil> It's really just: wrapPythonPrograms wraps everything in $out/bin/* with the correct python interpreter, while listening to the $pythonPath env var for packages it needs. wrapPython is added to nativeBuildInputs such that the wrapPythonPackages becomes available
knupfer has quit [Ping timeout: 276 seconds]
<infinisil> It's probably the easiest way to make python binaries
<camsbury> ah okay
<camsbury> good to know infinisil
<Unode> infinisil: and to fetch the python script? fetchurl?
<Unode> I'm basically trying to package https://github.com/phuhl/notify-send.py
<infinisil> Unode: The simplest way is `pkgs.runCommandNoCC "foo" { pythonPath = ...; nativeBuildInputs = ...; } ''mkdir -p $out/bin; cp ${fetchFromGitHub { ... }} $out/bin; wrapPythonPrograms"`
<Unode> but was trying to skip a couple of hops, then again there's a setup.py so maybe there's a better way...
<infinisil> Ah well if there's a setup.py the standard buildPythonPackage should work
<Unode> will give that a try
talqu_` has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
Guest7325 has quit [Quit: WeeChat 2.4]
Ariakenom has joined #nixos
__monty__ has quit [Quit: leaving]
iceypoi has joined #nixos
<talqu_`> In a haskell project nix shell `cabal new-run` words, but now nix-build release.nix fails giving me this error: ghc: can't find a package database at /home/talqu/.cabal/store/ghc-8.6.4/package.db
knupfer has joined #nixos
talqu_ has joined #nixos
<infinisil> talqu_`: You need to clean your sources for nix builds
<talqu_`> infinisil: how do i do that?
<infinisil> Otherwise you'll have stuff like environment files and intermediate build outputs in your nix builds, which are impure
<infinisil> talqu_`: I personally use lib.sourceByRegex
<infinisil> talqu_`: Something like `src = lib.sourceByRegex ./. [ "src.*" ".*.cabal" ];` should probably work
vidbina has joined #nixos
<Unode> infinisil: hum... and what if setup.py is minimal and is missing dependencies? :S
<infinisil> Unode: Add them to propagatedBuildInputs
kyren has quit [*.net *.split]
lewo has quit [*.net *.split]
ctp has quit [*.net *.split]
attente[m]1 has quit [*.net *.split]
fnords has quit [*.net *.split]
risson has quit [*.net *.split]
IRCsum has quit [*.net *.split]
luciandesozay[m] has quit [*.net *.split]
timclassic has quit [*.net *.split]
tet[m] has quit [*.net *.split]
ptotter[m] has quit [*.net *.split]
darkf has quit [*.net *.split]
newhoggy has quit [*.net *.split]
thoradam has quit [*.net *.split]
peter2121[m] has quit [*.net *.split]
Criena[m] has quit [*.net *.split]
Purple-mx has quit [*.net *.split]
AntonSchirg[m] has quit [*.net *.split]
moope[m] has quit [*.net *.split]
DanP[m] has quit [*.net *.split]
bobvanderlinden_ has quit [*.net *.split]
ndarwincorn has quit [*.net *.split]
sitischu[m] has quit [*.net *.split]
Tony[m] has quit [*.net *.split]
luftmensch[m] has quit [*.net *.split]
abbafei[m] has quit [*.net *.split]
thequux[m] has quit [*.net *.split]
laas has quit [*.net *.split]
Rich[m] has quit [*.net *.split]
vaibhavsagar has quit [*.net *.split]
clacke[m] has quit [*.net *.split]
Guest26289 has quit [*.net *.split]
florianjacob has quit [*.net *.split]
bennofs[m] has quit [*.net *.split]
NickHu has quit [*.net *.split]
nore has quit [*.net *.split]
p_l has quit [*.net *.split]
shad has quit [*.net *.split]
chrisaw has quit [*.net *.split]
cocreature has quit [*.net *.split]
jbetz has quit [*.net *.split]
nimblepoultry has quit [*.net *.split]
nh2 has quit [*.net *.split]
vdemeester has quit [*.net *.split]
feepo has quit [*.net *.split]
sppky has quit [*.net *.split]
NYXT has quit [*.net *.split]
plllm has quit [*.net *.split]
flokli has quit [*.net *.split]
layus has quit [*.net *.split]
parsnip has quit [Quit: WeeChat 2.4]
<Unode> infinisil: http://dpaste.com/33B671W doesn't seem to work, still complains that dependency is missing.
<Unode> ^ is added to ~/.config/nixpkgs/config.nix
lstanley has quit [Ping timeout: 246 seconds]
srk has quit [Ping timeout: 250 seconds]
kenshinCH has quit [Ping timeout: 255 seconds]
<talqu_`> infinisil: I dont have ghc neither cabal-install globally on my nixos. In the beggining inside the project nix-build release.nix works well. However, once entered in a pure shell where I have haskellPackages.cabal-install as a nativeBuildInput, and doing cabal new-run for example, the file .ghc.environment.x86_64-linux-8.6.4 is generated inside the dir by cabal. Getting out of the shell, and doing nix-build release.
<talqu_`> nix fails now, until i delete that .ghc.environment.x86_64-linux-8.6.4 file. What is the reason behind this? How does nix-build work? I gets ghc, cabal behind the scenes (cause I dont have them globally)? And why does it fail in the case where .ghc.environment.x86_64-linux-8.6.4 file exists in the dir?
linarcx has quit [Quit: WeeChat 2.4]
digitalgrease_ has quit [*.net *.split]
wildsebastian has quit [*.net *.split]
utdemir[m] has quit [*.net *.split]
`slikts has quit [*.net *.split]
grenade has quit [*.net *.split]
bwe has quit [*.net *.split]
philipcristiano has quit [*.net *.split]
bachp1 has quit [*.net *.split]
mara[m]11 has quit [*.net *.split]
gausby_ has quit [*.net *.split]
Wizek has quit [*.net *.split]
nwspk has quit [*.net *.split]
jmeredith has quit [*.net *.split]
ocharles has quit [*.net *.split]
pointfree has quit [*.net *.split]
valwal_ has quit [*.net *.split]
statusbot has quit [*.net *.split]
pareidolia has quit [*.net *.split]
megfault has quit [*.net *.split]
Adluc has quit [*.net *.split]
jboy has quit [*.net *.split]
meck has quit [*.net *.split]
delan has quit [*.net *.split]
uranther has quit [*.net *.split]
pleeplop has quit [*.net *.split]
torched[m] has quit [*.net *.split]
zurdo has quit [*.net *.split]
Florian[m]5 has quit [*.net *.split]
contrun[m] has quit [*.net *.split]
peel has quit [*.net *.split]
tbenst[m] has quit [*.net *.split]
bkl[m] has quit [*.net *.split]
kevincox[m] has quit [*.net *.split]
ststefa[m] has quit [*.net *.split]
neonfuz2 has quit [*.net *.split]
escaP[m] has quit [*.net *.split]
klDen[m] has quit [*.net *.split]
alj[m] has quit [*.net *.split]
exarkun1 has quit [*.net *.split]
Seb[m] has quit [*.net *.split]
philipp[m] has quit [*.net *.split]
JaakkoLuttinen[m has quit [*.net *.split]
offlinehacker has quit [*.net *.split]
sm[m] has quit [*.net *.split]
Irenes has quit [*.net *.split]
nocoolnametom has quit [*.net *.split]
pingveno has quit [*.net *.split]
lpsmith has quit [*.net *.split]
unacceptable has quit [*.net *.split]
lejonet has quit [*.net *.split]
georgyo has quit [*.net *.split]
Shados has quit [*.net *.split]
DerGuteMoritz has quit [*.net *.split]
nikola has quit [*.net *.split]
obfusk has quit [*.net *.split]
NinjaTrappeur has quit [*.net *.split]
eri451 has quit [*.net *.split]
shreyansh_k has quit [*.net *.split]
mfernandez has quit [*.net *.split]
garbas has quit [*.net *.split]
witchof0x20 has quit [*.net *.split]
srk has joined #nixos
<infinisil> talqu_`: I don't know the specifics, but that file is generated by cabal for knowing about your build environment, which includes impure things like ~/.cabal as you previously noticed
<infinisil> And if you don't filter the source properly that file gets included in the nix-build, which means the cabal inside there tries to use that file
<infinisil> But of course it can't do that because the file refers to impure paths like ~/.cabal, which are not accessible in the sandbox
<talqu_`> i see thanks infinisil
m0rphism has quit [Ping timeout: 268 seconds]
acarrico has joined #nixos
zenobit has joined #nixos
pwnst has quit [Ping timeout: 258 seconds]
lovesegfault has joined #nixos
<talqu_`> How should i do something like this: I have a haskell binary built on local nixos machine, then nix-copy-closure to remote machine and now i need to kill old running version of that binary and run the new. I saw online a systemd solution but in its config it points to a binary name where in nixos world every version would have a different name. I could write a script which greps the old binary's process, kills it an
<talqu_`> d run the new binary. Would you point me to some better solutions for such a case?
<infinisil> talqu_`: Is it a linux remote machine?
<infinisil> Which runs systemd?
<talqu_`> yes, both nixos
<Unode> propagateBuildInputs -> propagatedBuildInputs . now it works
iceypoi has quit [Quit: WeeChat 2.4]
<Unode> infinisil: thanks for the help
<infinisil> Ah, well then you shouldn't nix-copy-closure this manually and instead define a systemd service that runs the binary
<infinisil> Unode: Ah haha didn't even notice sorry
<infinisil> talqu_`: Well, there's a few ways to do it
<Unode> infinisil: no worries, was surprised nix didn't complain though
<infinisil> Unode: Yeah I don't like that behavior.. It just makes all attributes environment variables
<infinisil> talqu_`: I suggest you to either manage the remote machine locally, by using nixos-rebuild with --target-host
<infinisil> Then you can define a systemd service that refers the local files without you having to transfer them
<infinisil> talqu_`: Or alternatively, transfer the files needed for the build (e.g. in a git repo would be nice), then import those files in the remote machine's nixos config
<infinisil> talqu_`: A simple systemd service might look like `systemd.services.foo = { wantedBy = [ "multi-user.target" ]; serviceConfig.ExecStart = "${import ../path/to/release.nix}/bin/foo"; }`
mexisme has quit [Ping timeout: 258 seconds]
<infinisil> Whenever you make any changes to your package, just nixos-rebuild for it to rebuild it, stop the old binary, and start the new one
knupfer has quit [Ping timeout: 276 seconds]
eraserhd has quit [Quit: WeeChat 2.3]
zenobit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xacktm has joined #nixos
vdemeester has joined #nixos
chrisaw has joined #nixos
ctp has joined #nixos
layus has joined #nixos
kyren has joined #nixos
NickHu has joined #nixos
p_l has joined #nixos
IRCsum has joined #nixos
cocreature has joined #nixos
clacke[m] has joined #nixos
Guest26289 has joined #nixos
florianjacob has joined #nixos
hexo has joined #nixos
bennofs[m] has joined #nixos
newhoggy has joined #nixos
risson has joined #nixos
thoradam has joined #nixos
nimblepoultry has joined #nixos
Rich[m] has joined #nixos
thequux[m] has joined #nixos
darkf has joined #nixos
laas has joined #nixos
nh2 has joined #nixos
fnords has joined #nixos
bwe has joined #nixos
jboy has joined #nixos
valwal_ has joined #nixos
delan has joined #nixos
jmeredith has joined #nixos
lpsmith has joined #nixos
delan has joined #nixos
delan has quit [Changing host]
obfusk has joined #nixos
georgyo has joined #nixos
wildsebastian has joined #nixos
joepie91 has joined #nixos
DerGuteMoritz has joined #nixos
mfernandez has joined #nixos
joepie91 has joined #nixos
joepie91 has quit [Changing host]
Irenes has joined #nixos
nikola has joined #nixos
nwspk has joined #nixos
Xyliton has joined #nixos
statusbot has joined #nixos
vaibhavsagar has joined #nixos
luftmensch[m] has joined #nixos
lejonet has joined #nixos
peel has joined #nixos
pingveno has joined #nixos
garbas has joined #nixos
Tony[m] has joined #nixos
witchof0x20 has joined #nixos
<Xyliton> has anyone managed to get wireguard+mullvad working on NixOS?
NYXT has joined #nixos
nore has joined #nixos
feepo has joined #nixos
uranther has joined #nixos
pareidolia has joined #nixos
philipcristiano has joined #nixos
ocharles has joined #nixos
Wizek has joined #nixos
gausby_ has joined #nixos
shreyansh_k has joined #nixos
lewo has joined #nixos
jbetz has joined #nixos
luciandesozay[m] has joined #nixos
jbetz has joined #nixos
jbetz has quit [Changing host]
`slikts has joined #nixos
`slikts has joined #nixos
`slikts has quit [Changing host]
grenade has joined #nixos
shad has joined #nixos
yastero has quit [Ping timeout: 250 seconds]
meck has joined #nixos
yastero_ has joined #nixos
eri has joined #nixos
flokli has joined #nixos
Adluc has joined #nixos
NinjaTrappeur has joined #nixos
attente[m]1 has joined #nixos
digitalgrease_ has joined #nixos
eri is now known as Guest7419
sppky has joined #nixos
tet[m] has joined #nixos
Peter_Storm_ has quit [Ping timeout: 250 seconds]
pointfree has joined #nixos
drakonis has joined #nixos
Peter_Storm_ has joined #nixos
unacceptable has joined #nixos
ndarwincorn has joined #nixos
sitischu[m] has joined #nixos
timclassic has joined #nixos
nocoolnametom has joined #nixos
bobvanderlinden_ has joined #nixos
megfault has joined #nixos
jbetz is now known as Guest55252
ptotter[m] has joined #nixos
DanP[m] has joined #nixos
Purple-mx has joined #nixos
peter2121[m] has joined #nixos
AntonSchirg[m] has joined #nixos
Criena[m] has joined #nixos
moope[m] has joined #nixos
mexisme has joined #nixos
mara[m]11 has joined #nixos
offlinehacker has joined #nixos
escaP[m] has joined #nixos
klDen[m] has joined #nixos
Shados has joined #nixos
abbafei[m] has joined #nixos
JaakkoLuttinen[m has joined #nixos
pleeplop has joined #nixos
torched[m] has joined #nixos
zurdo has joined #nixos
sm[m] has joined #nixos
philipp[m] has joined #nixos
Anton-Latukha has quit [Ping timeout: 258 seconds]
sm[m] is now known as Guest8331
Florian[m]5 has joined #nixos
Seb[m] has joined #nixos
alj[m] has joined #nixos
neonfuz2 has joined #nixos
ststefa[m] has joined #nixos
kevincox[m] has joined #nixos
tbenst[m] has joined #nixos
bkl[m] has joined #nixos
contrun[m] has joined #nixos
exarkun1 has joined #nixos
utdemir[m] has joined #nixos
bachp1 has joined #nixos
shibboleth has quit [Quit: shibboleth]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
akapav has quit [Quit: ZNC 1.7.2 - https://znc.in]
akapav has joined #nixos
pie_ has joined #nixos
<talqu_`> infinisil: Hmm. So from the remote machine, `nixos-rebuild with --target-host my-local-machine` would trigger a rebuild of my local machine's configuration.nix file? Local configuration.nix import the project's release.nix and gets rebuilt? Then in the remote machine's configuration.nix, a defined systemd service can directly refer to my local machine's project binary? I'm a noob, so sorry
shibboleth has joined #nixos
erasmas has quit [Quit: leaving]
<infinisil> talqu_`: No problem. Not really, maybe it's best to just copy the project files to the remote machine, then nixos-rebuild there, without --target-host. So you just rebuild your remote system as you always would
<infinisil> talqu_`: And to make the service work, add a systemd service definition as I showed earlier to your configuration.nix no the remote machine
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<talqu_`> infinisil: the idea i had was to precisely build the project on my local machine, cause the remote is slow and old.
Xyliton has quit [Ping timeout: 258 seconds]
fresheyeball has joined #nixos
<fresheyeball> I made tons more progress on my ghcjs build
<fresheyeball> but now it dies linking dist/build/cabal/cabal.jsexe
<infinisil> talqu_`: Ah I see, in addition to using what I just said, combine it with this: https://nixos.wiki/wiki/Distributed_build
<fresheyeball> stack overflow: use +RTS -K<size> to increase it
<fresheyeball> how can I get around this? Do I really need to have an insane stack size
<talqu_`> infinisil: thanks again, i'll read about that
o1lo01ol1o has quit [Ping timeout: 268 seconds]
jackdk_ has joined #nixos
submoo[m] has quit [Ping timeout: 264 seconds]
npmccallum has quit [Ping timeout: 244 seconds]
<talqu_`> infinisil: serviceConfig.ExecStart = "${import ../path/to/release.nix}/bin/foo"; Do i also need a serviceConfig.ExecStop, or rebuilding would automatically stop the service and once rebuild finishes would start it again?
<infinisil> Yeah you don't need to specify that
<infinisil> happens automatically
submoo[m] has joined #nixos
<talqu_`> nice :)
mexisme has quit [Ping timeout: 246 seconds]
marcinja has quit [Ping timeout: 264 seconds]
marcinja has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<fresheyeball> dmj`: heya
zurdo has quit [Ping timeout: 264 seconds]
teh[m] has quit [Ping timeout: 264 seconds]
nocent has quit [Ping timeout: 264 seconds]
nocent has joined #nixos
zurdo has joined #nixos
phreedom_ has joined #nixos
gagbo has quit [Ping timeout: 244 seconds]
teh[m] has joined #nixos
Ariakenom has quit [Quit: Leaving]
orivej has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
<angerman> blackriversoftwa: I don’t think we have shell hooks. Most customizations are controlled through the options. Best to open an issue.
<blackriversoftwa> angerman: So there is no way to specify an overlay that can override mkDerivation for the package set?
<blackriversoftwa> (I ask because that's what we're currently doing in the nixpkgs haskell infrastructure)
mexisme has joined #nixos
<pie_> youd probably end up overriding stdenv?
<pie_> i guess you could do an override such that you merge into the stdenv set
<pie_> but i dont know enough about stdenv to say much
<angerman> blackriversoftwa: it might actually be. I just haven’t done it myself yet. I was just trying to point out that the haskell.nix approach is rather trying to use the option system than multi layer overrides.
<pie_> self: super: { stdenv = super.stdenv // { mkDerivation = ... }}
<clever> pie_: there are some functions in nixpkgs that do basically that
<pie_> clever, i see
<blackriversoftwa> angerman: hrm well I was trying to follow that thread and it seems like there's no option for shellHook yet even though the component builder takes a shell hook as a parameter
<blackriversoftwa> I'll see about an issue and a patch
<blackriversoftwa> angerman: the other issue I'm running into: how would I override the `libs` option for a library component, instead of adding to it?
<angerman> blackriversoftwa: awesome!
<blackriversoftwa> a cabal-to-nix generated package definition is trying to grab a library by the wrong name
<blackriversoftwa> (bzlib haskell package wants pkgs.bz2 but in nix that's pkgs.bzip2)
<blackriversoftwa> but if I just put that in a module then it just adds it to the list rather than replacing the default from the package definition
endformationage has joined #nixos
ardumont has quit [Ping timeout: 258 seconds]
eraserhd has joined #nixos
<clever> blackriversoftwa: there are ~3 ways that is delt with, a translation map in cabal2nix, passing the right name when you callPackage, adding an override in the haskell overlay
astrofog has joined #nixos
<blackriversoftwa> clever: this is the iohk haskell infrastructure though, not the nixpkgs one
Orbstheorem has quit [Ping timeout: 250 seconds]
<blackriversoftwa> it seems to be using the same module system as NixOS so presumably it's the same sort of thing?
<angerman> blackriversoftwa: there are maps for haskell/cabal library name to nix-name in the haskell.nix repo.
<clever> blackriversoftwa: yeah, thats mostly done with overlays in the haskellPackages context
<clever> but the new haskell.nix stuff is entirely seperate from the old haskellPackages stuff
<angerman> Same for pkg-config stuff
judson has quit [Ping timeout: 246 seconds]
Orbstheorem has joined #nixos
mbrgm_ has joined #nixos
catern has quit [Excess Flood]
talqu_ has quit [Remote host closed the connection]
talqu_` has quit [Read error: Connection reset by peer]
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm_ is now known as mbrgm
<blackriversoftwa> angerman: I'm poking through the haskell.nix repo right now but I don't see that
catern has joined #nixos
<angerman> blackriversoftwa: please file any issues and questions you have as you go. This is very valuable. And it shows where we can improve the documentation for everyone!
<angerman> Ideally as one or multiple issues on the haskell.nix issue tracker, so it doesn’t get lost.
shibboleth has quit [Quit: shibboleth]
erictapen has quit [Ping timeout: 246 seconds]
erictapen has joined #nixos
ardumont has joined #nixos
<pie_> clever, random idea: i guess IFD would let one build from latest github source