<clever>
simpson: the firmware update util also fails
<clever>
simpson: so ive been forced to just not use 2 entire disks
m0rphism has quit [Ping timeout: 248 seconds]
<tobiasBora>
aufs may help in my case...
Rusty1 has joined #nixos
<pie__>
this is fine for a lot of things, especially simply discoverable ones...we should emphasize documenting the more difficult obscure stuff that not everyone can handle without a lot of difficulty :I <manveru> and no, i don't know where any of this is documented... at some point you stop hoping for docs and just read the source :P
<pie__>
alternatively: strive for approaches that simplify things
<pie__>
best documentation is the documentation you dont need to wrote? xD
<pie__>
write
<pie__>
"Documentation bug: all behaviour is consistent and I'm out of a job"
<pie__>
"please introduce difficulties"
<Shados>
tobiasBora: if you don't need zfs, sounds like bcache may be what you want?
<manveru>
pie__: yeah, sometimes i wonder if we don't need some higher-level nix that's a bit easier to grasp for new people (or ones not interested in learning a PL to be able to admin their system)
ris has quit [Ping timeout: 246 seconds]
<pie__>
manveru, hm i dunno about that. not unreasonable i guess. most things would be covered by "give me tihs package with this version"?
<pie__>
well, i guess stuff like debian doesnt even give you that mich
<pie__>
much
<pie__>
though i guess maybe thats why we have docker and who knows what, i dont have any real experience in that area.
<manveru>
i'm mostly thinking of having a nixpkgs and module system that doesn't get held up by a bunch of mind-boggling constructs :)
<manveru>
while i appreciate the flexibility, there's just too many ways to do things IMHO
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjg9T
<clever>
bsima: the builder didnt produce the path it was supposed to produce
v88m has joined #nixos
ddellacosta has quit [Ping timeout: 258 seconds]
<dhess>
clever: have you ever set up a Hydra with an S3 store and it's not public?
<clever>
dhess: the only s3 one ive setup is public, but it needed extra redirect rules to make the bucket accessible easily, and acl's to make the bucket public by default
<clever>
dhess: so private might be simpler
<clever>
dhess: actually using it though, would require aws keys on every person wanting to use it, and an s3://bucket in the cache config
<{^_^}>
[nixpkgs] @dmvianna opened pull request #63004 → pytest-testmon: init at 0.9.16 → https://git.io/fjg9m
o1lo01ol1o has joined #nixos
<dhess>
clever: yep that part is easy :) What I'm not sure about are the meanings of server_store_uri and binary_cache_public_uri
<dhess>
ok bed time, got an early train. See some of you at Zurihac!
drakonis has quit [Ping timeout: 272 seconds]
<Shados>
clever: I have a local nginx caching cache.nixos.org for that purpose
<clever>
Shados: main difference from that, is that it can merge multiple binary caches into a single url
<clever>
and its caching narinfo files in ram, rather then disk, since those are always small and requesting them is a bottleneck often
mexisme has joined #nixos
<Shados>
What's the benefit of the former?
silver has quit [Read error: Connection reset by peer]
<clever>
Shados: i can hit multiple caches, but not have to setup 5 nginx caches and configure every machine to use 5 different local nginx's
<hodapp>
gchristensen: nope, Cincinnati. why?
Havvy has joined #nixos
drakonis_ has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
Fare has joined #nixos
<Fare>
Hi. I'm having trouble with stack build language-javascript-0.6.0.12, because one of the source file has a utf-8 character which make stack blow out in a pure build.
<Fare>
Whose responsibility is it? Should I blame the haskell library authors and send them a patch to not use utf8 in comments?
<Fare>
Should I blame the nix support of stack for failing to provide glibc locales files and local variables to the things it builds?
<{^_^}>
[nixpkgs] @tadeokondrak opened pull request #63006 → drm_info: init at 2.1.0 → https://git.io/fjg95
clacke_movim has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
acarrico has quit [Ping timeout: 246 seconds]
Matthieu_ has quit [Read error: Connection reset by peer]
mac10688 has joined #nixos
<hodapp>
er, wait, is this a locale issue?
<{^_^}>
[nixpkgs] @dmvianna opened pull request #63007 → pytest-watch: init at 4.2.0 → https://git.io/fjg9x
<mac10688>
I'm using nixos + xmonad. What's a good setup for connecting to wireless networks? Do I need to figure out how to add a wireless applet to xmobar or is there a nice command line way of doing it?
<mac10688>
It would be nice if I can use command line to list the wireless networks and then connect to it with a password prompt
drakonis_ has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @marsam opened pull request #63008 → svgbob: init at 2018-10-05 → https://git.io/fjgHJ
<tA_>
my friend is on manjaro, and when trying to curl the install script from the site, they keep getting `error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': No such file or directory`, they've done all the uninstall commands from the wiki and still get it when curling the install
<clever>
tA_: that implies that nix-daemon isnt running as root
<clever>
tA_: try setting it to singleuser mode, rather then multiuser mode
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
<{^_^}>
[nixpkgs] @marsam opened pull request #63012 → tflint: init at 0.8.3 → https://git.io/fjgHo
clacke_movim has joined #nixos
<tA_>
another quick question, i need to add { allowBroken = true; } to my .config/nixpkgs/config.nix, i want it for nix-shell, is there a way to just put it in shell.nix or something thats project specific?
niten has joined #nixos
<clever>
tA_: when you import <nixpkgs> {} you can just pass it a config attr
<gchristensen>
the private key should not be in the nix store
<clever>
that is a better solution
<niten>
hmm, okay
<clever>
niten: nixops?
<niten>
what about running in a container?
<niten>
bindmounts seem to always be read-only, and always be world-readable...though come to think of it, that might be because they're copied to the store first?
<niten>
haven't looked into nixops
<clever>
i would just copy the keys in by hand then
<gchristensen>
bind mounts aren't always read only
<gchristensen>
definitely because tehy're in the store :)
<clever>
niten: your containers are in /var/lib/containers
<niten>
even if I set readonly false, if i nix-env into the container and try to chmod it says the fs is mounted readonly
acarrico has quit [Ping timeout: 248 seconds]
<clever>
niten: another solution is lets encrypt
<clever>
niten: everything nix-env manages will appear to be read-only
<niten>
yeah...local network though :)
<niten>
ahh, okay
<niten>
okay, thanks! that's all very helpful
oborot has joined #nixos
<mac10688>
I'm trying to get wireless working still. I'm not sure to set `networking.wireless.enable = true;` or `networking.networkmanager.enable = true;`
<mac10688>
I want the option to use wireless or wired
<clever>
mac10688: networking.wireless.enable is what i use
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
I use networking.networkmanager.enable, and configure my wireless networks with `nmtui`
* clever
puts on grey beard
<mac10688>
lol
<clever>
back in my day, network-manager didnt exist, and i had to figure out wpa_supplicant without internet access, just to get internet working!
<gchristensen>
yeah I've had those days, that is why I use nmtui :P
<clever>
now that i know how it works, its fine :P
<gchristensen>
hehe
<clever>
which reminds me
<clever>
i was going to mess with hostapd
<gchristensen>
I messed with that but just got some APs once I coludn't get 5ghz t owork
Supersonic has quit [Ping timeout: 252 seconds]
<gchristensen>
I spent 3 days thinking my audio adjustment pulseaudio script was busted since it didn't work when I pressed the keys ... turns out I toggled the FnLock :')
mac10688 has quit [Ping timeout: 258 seconds]
mac10688 has joined #nixos
<mac10688>
omg nmtui is the best shit ever!!!
<mac10688>
that's exactly the tool i was looking for
<aleph->
Yeah it's good
mexisme has quit [Ping timeout: 258 seconds]
<aleph->
I need to get pytorch running again on my laptop
<gchristensen>
nmtui is pretty good :)
<mac10688>
I think the last thing I need to do is get sound configured and I'll be happy with my nixos setup
<mac10688>
This is the great thing about not having a job anymore. I have so much free time to figure this stuff out. Nixos is looking really great
<gchristensen>
nice! that is sort of how I first got in to it too :)
<tA_>
ive been running nixos as my daily (non-work) driver all year now and loving it
<tA_>
just need to watch enough rick and morty to figure out derivations for gog games and It'll be perfect
InFlames has joined #nixos
<mac10688>
lol
<tA_>
mac10688: make sure to check out home-manager if you havent already, its the game changer imo
Supersonic has joined #nixos
<mac10688>
oh cool, i haven't heard of that. checking it out now
<tA_>
mac10688: its the nixos system config thing, but per user, you can use it to symlink all your config files and stuff too
orivej has quit [Ping timeout: 245 seconds]
<mac10688>
Sorry it's a little lost on me right now. I actually don't understand the nix philosophy fully. After I configure sound to work, I'll need to better understand channels and it's packaging system. I'm not ready to learn about that just yet
<tA_>
no worries, lots of cool stuff to learn here
<gchristensen>
+1
<mac10688>
I'm not sure where to start to debug my sound issue. in the configuration file I uncommented sound.enable = true; hardware.pulseaudio.enable = true; but no sound
<clever>
mac10688: run pavucontrol, is anything muted?
<mac10688>
what should be my next step to figure this out. google search isn't helping me much
<mac10688>
i don't think so, let me run what you said
isHavvy has joined #nixos
Havvy has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
cjpbirkbeck has quit [Quit: Leaving]
toppler has quit [Ping timeout: 264 seconds]
<mac10688>
yeah i am running ncpamixer and it looks like everything should be working fine but when i look at my output devices, it shows my speaker is muted
<gchristensen>
oh cool I didn't know about ncpamixer
kvda has joined #nixos
abrar has quit [Ping timeout: 248 seconds]
siel has quit [Ping timeout: 248 seconds]
clever has quit [Ping timeout: 248 seconds]
dukedave has quit [Ping timeout: 252 seconds]
abrar has joined #nixos
tdeo_ has joined #nixos
<mac10688>
sweet audio is working. wow. I think my dev environment is complete now! ncpamixer is a VERY nice tool as well. I love tui's
srl295 has quit [Ping timeout: 248 seconds]
duoi has quit [Ping timeout: 248 seconds]
jackdk has quit [Ping timeout: 248 seconds]
tdeo has quit [Ping timeout: 248 seconds]
{^_^} has quit [Ping timeout: 252 seconds]
siel has joined #nixos
siel has joined #nixos
siel has quit [Changing host]
jackdk has joined #nixos
dukedave has joined #nixos
toppler has joined #nixos
r0bby has quit [Ping timeout: 252 seconds]
gyroninja_ has quit [Ping timeout: 248 seconds]
srl295 has joined #nixos
fusion809 has quit [Remote host closed the connection]
gyroninja_ has joined #nixos
clever has joined #nixos
clever has joined #nixos
clever has quit [Changing host]
bgamari_ has joined #nixos
bgamari has quit [Ping timeout: 248 seconds]
lunik1 has quit [Quit: :x]
orivej has joined #nixos
r0bby has joined #nixos
duoi has joined #nixos
{^_^} has joined #nixos
ricekrispie has quit [Read error: Connection reset by peer]
<Ralith>
I think that's normally filled in by DHCP
mac10688 has quit [Quit: WeeChat 2.4]
Arahael has quit [Ping timeout: 248 seconds]
Arahael has joined #nixos
jgt has joined #nixos
<jgt>
is there a way to run an arbitrary script on my target machine when deploying with NixOps?
<teto>
jgt: you can add system.activationScripts
<jgt>
teto: ok, thanks!
<jgt>
teto: my use case here is I want to curl a request to my issue tracker upon successful deploy. Do you think this should be done from my local machine? Or the target machine? Is there a practical difference?
<teto>
thanks, I realized it's more forward to use ByteString's writeFile in my usecase. I am trying to use Data.ByteString.writeFile "filename.json" (Data.Aeson.encode data) but seems like (Data.Aeson.encode data) is lazy while writeFile expects a strict bytestring. What's the most elegant way to solve this ?
<dminuoso>
Actually one of the largest performance bugs can be fixed without rewriting it.. :)
<dminuoso>
Is it fine to use python or perl in nixpkgs instead of a bash script?
<gentauro>
any issues with `rsync`?
veske has joined #nixos
dylon has quit [Remote host closed the connection]
arahael1 has joined #nixos
<gentauro>
I've been using the "# Time rsYnc Machine (tym), a back-up time machine as popularized by Apple"
<gentauro>
but it doesn't seem tp "play" nice with NixOS
<gentauro>
what it does is that it will make a full backup and then just make incremental backups while symbolic linking to files that haven't been modified
pie__ has quit [Ping timeout: 258 seconds]
<gentauro>
what I see is that this script doesn't work as expected in NixOS
<gentauro>
it keeps making full backups (increasing used space enormously)
<nyanloutre[m]>
Hello, I was playing a bit with the Steam chrootenv and had a problem with openssl. I found that the problem is the globally set LD_LIBRARY_PATH in the chrootenv. Is there a way to go around this for openssl ?
<nyanloutre[m]>
It's trying to make https requests and Python must have a working openssl to do this
<gentauro>
eyJhb: well it seems that I'm already using `-S` cos as you said, it doesn't run without it ...
Shoubit has joined #nixos
kvaster_ has quit [Ping timeout: 245 seconds]
madhukar has joined #nixos
init_6 has joined #nixos
toppler has quit [Ping timeout: 258 seconds]
<madhukar>
hello, I'm facing an interesting issue. Sound works for an extraUser but not for root. I'm using KDE, I haven't really tried to debug it, but I did no nix-env shenanigans to get it to work for the other user iirc.
<eyJhb>
gentauro well, time to debug it. Some print statements around the ln I suppose...
<eyJhb>
nyanloutre[m] seems weird if openssl isn't part of the chroot?
Shoubit has quit [Read error: Connection reset by peer]
<clever>
madhukar: some gui and audio things dont like running as root, because of security reasons
hmpffff has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Shoubit has joined #nixos
goibhniu1 has joined #nixos
<nyanloutre[m]>
eyJhb: It's in it but because of the LD_* env variable it's trying to use Steams libcryto.so and libssl.so instead of it's own
<madhukar>
when i log into to kde plasma with root, the sound icon says no available devices. I remember this not being the case earlier. I could play around wit th econfig to see if I can get it to work I guess https://pastebin.com/JmF1R0Qe
<madhukar>
I don't really need to, but quite curious
<madhukar>
clever: are you a maintainer, you seem pretty involved. While going though people's configuration.nix on github I saw an attribution to you in a comment haha
kvda has quit [Ping timeout: 272 seconds]
toppler has joined #nixos
goibhniu1 has quit [Ping timeout: 258 seconds]
Thra11 has quit [Ping timeout: 245 seconds]
<gentauro>
eyJhb: I sadly don't have time to do that ...
logzet has joined #nixos
<gentauro>
what I have been discovering is that stuff that just worked (on most distros) just don't play well with NixOS
<gentauro>
which is kind of annoying
<madhukar>
I've been wondering if I should use nixos for work, considering my colleagues install scripts and such might not work
<madhukar>
gentauro: what have you been trying to run?
<clever>
madhukar: i'm just fairly active in irc
<madhukar>
you're a blessing ^_^
<{^_^}>
[nixpkgs] @edolstra merged pull request #62966 → nixos-generate-config: add support for bcache → https://git.io/fjgcu
<teto>
gentauro: and things that work or are not even possible in other distros work fine on nixos. There is a steep learning curve and depending on if the packages you use are available or not, starting might be tough. But the reward can be worth it depending on your usage
<madhukar>
The reason I'm trying it out is that I want to play around with my system without having to rely on backup-restore applicatoins
InFlames has quit [Ping timeout: 248 seconds]
<madhukar>
hmm I've been noticing screen tearing(?) in kde konsole but in no other applications.. weird. Just straight horizontal lines under my prompt every 4 lines or so
inquisitiv3 has quit [Quit: Leaving]
goibhniu1 has joined #nixos
lem0n4de has joined #nixos
InFlames has joined #nixos
m0rphism has joined #nixos
<eyJhb>
gentauro also really depends on what you are trying to backup. Never really had a script that din't work on NixOS
johanot has quit [Ping timeout: 245 seconds]
<eyJhb>
And if a program wasn't packed, I just run stuff in Docker :p
arahael1 has quit [Ping timeout: 272 seconds]
zupo has joined #nixos
johanot has joined #nixos
Anton-Latukha has quit [Ping timeout: 245 seconds]
marusich has quit [Remote host closed the connection]
arahael1 has joined #nixos
thc202 has joined #nixos
lem0n4de has quit [Ping timeout: 245 seconds]
Zer000 has quit [Ping timeout: 245 seconds]
knupfer has joined #nixos
madhukar has quit [Quit: Page closed]
zupo has quit [Read error: Connection reset by peer]
<dminuoso>
Regarding my question earlier: If I was to contribute to nixpkgs, is it fine to replace a bash script with a python/perl program?
zupo has joined #nixos
<dminuoso>
(Or is there a channel dedicated to nixpkgs development?)
<eyJhb>
dminuoso basically this channel from my understanding :)
<eyJhb>
And what do you mean by replacing a bash script with python/perl? Make a issue, implement a PR, etc.?
<{^_^}>
[nix] @edolstra pushed to flakes « Fix fetchTarball with chroot stores »: https://git.io/fjg5A
<gentauro>
madhukar, I would suggest you that you dont ...
<dminuoso>
Specifically Im looking at a bash script that builds a dep cache, which is written so horribly slow that I could bring down the speed from 20-30 minutes to build the dep cache to probably under a minute.
sigmundv has joined #nixos
wfranzini has quit [Read error: Connection reset by peer]
<eyJhb>
dminuoso seems.. Weird to me, that anything with the word `Python` might make anything faster. - What package/script are we talking?
<eyJhb>
*link
hyper_ch2 has quit [Quit: Page closed]
lsyoyom has quit [Ping timeout: 252 seconds]
liny01 has joined #nixos
<dminuoso>
eyJhb: autoPatchElf
<dminuoso>
eyJhb: The problem has to do with bash having poor support for data structures.
phreedom has quit [Ping timeout: 256 seconds]
cfricke has joined #nixos
<eyJhb>
dminuoso Oh, I might not be the best on to talk to here about that. I think clever or gchristensen or.. any other would know this better. Seeing as this is a core function in NixOS
<eyJhb>
SO speedup would be nice, but they might have some better inputs (do and don'ts)
kvaster_ has quit [Ping timeout: 248 seconds]
arahael1 has quit [Ping timeout: 245 seconds]
<dminuoso>
Well the thing being done here cant be done fast im bash.
fendor has joined #nixos
<Athas>
Egads! After four days of struggle, I finally got NixOS to behave the way I want.
<Athas>
(Almost. I'm still confused why the C headers I want are not implicitly available.)
<dminuoso>
eyJhb: But Ill talk to them, cheers.
<gentauro>
Athas: ?
clacke_movim has joined #nixos
<eyJhb>
dminuoso might be your best option at least, I have only done like... 3-4 PRs :p So not really in the loop
<Athas>
Actually, can someone explain why adding a package like 'opencl-headers' to environment.systemPackages does not make them Just Work when compiling with gcc in the command line?
<Athas>
Command line programs are accessible without further ritual.
<clever>
,libraries Athas
<{^_^}>
Athas: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
JosW has quit [Read error: No route to host]
JosW has joined #nixos
<Athas>
A bit frustrating. I get why it's like that, but it makes hacking around a bit more annoying.
<MasseR>
It's a shift in mindset, but not really more annoying
<MasseR>
Everything you do is sandboxed
<MasseR>
I need version x.y for this, but for my other test I need x.b. Doesn't matter, both are sandboxed
arahael1 has joined #nixos
<dminuoso>
clever: Are you the right person to talk to? :o)
<clever>
dminuoso: about?
<dminuoso>
clever: I want to rewrite the auto-patchelf.sh into another language to make it fsat.
<dminuoso>
But I dont know the stance of the nixpkgs team on using non-bash to solve problems.
<clever>
dminuoso: ah, i didnt make that one
<dminuoso>
(The reason its slow is directly tied to bash not having access to high performance sets)
<teto>
Athas: "After four days of struggle " lucky you it's been > 18 months and I am still fiddling :p
phreedom has joined #nixos
<MasseR>
teto: do you have any peers using nixos? It helped immensely when all my coworkers were using nixos as well
<dminuoso>
Athas: It might be tied to `gcc` having plenty of hard wired paths.
<Athas>
teto: well, maybe I just haven't noticed what's missing yet.
zupo has quit [Read error: Connection reset by peer]
<Athas>
dminuoso: it respect CPATH, doesn't it?
<teto>
MasseR: nope I am the only one. I am now known as "that guy" because I get a bit too enthusiastic when speaking about my setup
<Athas>
Also, I can 'nix-shell' my way into an environment where gcc behaves the way I'd expect, so I don't think it's a technical restriction.
<dminuoso>
Athas: Does adding them to `systemPackages....` modify your CPATH?
<Athas>
But I can work around it. It's a bit tedious for my usecase, but I guess why it's the way it is.
<Athas>
dminuoso: doubt it.
<dminuoso>
Athas: I reckon that might be it then.
<Athas>
ACtually, I'm not really clear on how nix-shell makes gcc see the header files.
<Athas>
CPATH remains empty.
<Athas>
Ah, probably NIX_CFLAGS_COMPILE.
__monty__ has joined #nixos
Neo-- has joined #nixos
ThatDocsLady has joined #nixos
kvda has joined #nixos
Jackneill has quit [Ping timeout: 244 seconds]
init_6 has quit [Ping timeout: 245 seconds]
<MasseR>
Haven't dealt with gcc for a while, but nix is usually setting up environment variables to point to exact locations (hash) in the derivation itself
pie__ has joined #nixos
<MasseR>
Which is why tools such as python/haskell can't find libraries if installed with systemPackages or nix-env. They aren't mentioned in the derivation
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phreedom has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
dansho has quit [Ping timeout: 248 seconds]
dansho_ has joined #nixos
Makaveli7 has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.5]
cfricke has quit [Read error: Connection reset by peer]
kvaster_ has quit [Quit: Konversation terminated!]
kvaster_ has joined #nixos
alp has joined #nixos
Jackneill has joined #nixos
<immae>
MasseR: technically, the things you define as "systemPackages" get aggregated into /run/current-system/sw/, so pointing python to /run/current-system/sw/lib/python3.7/site-packages (for instance) should work
<immae>
I don’t question the recommendations, just mentionning the technical details (note that I don’t know how it works with python dependencies if they’re not explicitly declared as systemPackages, so what I said might be false because of that)
Zer000 has joined #nixos
cfricke has joined #nixos
Jetien_ has joined #nixos
johanot has quit [Ping timeout: 248 seconds]
psy3497 has quit [Ping timeout: 245 seconds]
johanot has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lunik1 has joined #nixos
<kuznero[m]>
Hi All! What is the right way to install `haskellPackages.threadScope` these days? It is marked as broken and when I try to install it, it complains about missing gtk libs. Is there any workaround?
cfricke has quit [Quit: WeeChat 2.5]
Anton-Latukha has joined #nixos
<__monty__>
kuznero[m]: Safest bet would probably be to install from an older nixpkgs version.
<tobiasBora>
I guess this refers to command line. But I was thinking that it may worth giving a link here to https://nixos.org/nixos/options.html
<tobiasBora>
because it's actually super practical (at least for me)
phreedom has joined #nixos
fendor has quit [Quit: Leaving]
Acou_Bass has quit [Ping timeout: 258 seconds]
<tobiasBora>
secondly, in https://nixos.org/nixos/manual/#sec-modularity they use the syntax '<nixpkgs/nixos>'. For a while this syntax was very misleading for me (like the ...), as usually people put between brackets < > stuff that the user needs to replace
<tobiasBora>
oh, actually there is a small line in sec-construct "Paths can also be specified between angle brackets, e.g. <nixpkgs>. This means that the directories listed in the environment variable NIX_PATH will be searched for the given file or directory name. "
<tobiasBora>
actually, I think this description is a bit oversimplified no?
<tobiasBora>
isn't it more like the environment variable NIX_PATH contains a list of "X1=P1:X2=P1", and the syntax <X1/R> refers to the path P1/R?
Zer000 has quit [Ping timeout: 248 seconds]
<immae>
tobiasBora: that’s it, but to be completely precise you can have "X1=P1:X1=P1b:X2=P1" and <X1/R> refers to the first existing path between P1/R and P2/R
<immae>
(the use of colons both as separator and in strings like http:// or channel:nixos-19.03 is a bit unhappy in my opinion)
InFlames has quit [Ping timeout: 245 seconds]
<tobiasBora>
immae: true. And also (that I just learned), you can even have non equal terms like "X1=P1:Y:X1=P1':X2=P2", and then <X1/R> will look for the first existing path between P1/R, Y/X1/R, and P1'/R
<tobiasBora>
immae: so how do you do if you need an http:// stuff in this list? (I think to remember you can actually have urls there right?)
Neo-- has joined #nixos
<tobiasBora>
there are hardwritten exception for https?:// and channel: ?
<immae>
tobiasBora: you never "need" that, I think the only mandatory element you need in nix paths is a "nixpkgs" value, which can be a local path or an url path (In my case I have NIX_PATH=nixpkgs=https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz for instance)
sb0 has quit [Quit: Leaving]
<tobiasBora>
immae: oh you actuall need a nixpkgs value? Even if NIX_PATH=/tmp/mynix, and /tmp/mynix contains a folder nixpkgs?
<immae>
hmm, I don’t know about it. I think if you don’t specify a key name then it’s considered "nixpkgs"
<inf>
Hey all, just wondering - is there any pull-style automatic configuration management solution for nixos, or everyone just rolls out their own bunch of cronjobs? (background: I'm mostly using Chef on non-nix systems, and rarely do I have direct SSH access to machines I have to manage, as they are running on customer premises)
<immae>
tobiasBora: I just consider that there is nothing magical here, when I look for <foo> in a nix expression, then it just looks for foo=(some path) in the NIX_PATH. It’s just feature that the path can be both local or a remote url.
<immae>
I don’þ consider corner cases like NIX_PATH=/tmp/mynix, for instance, which add no value
<clever>
immae: you can also NIX_PATH=something nix-instantiate --find-file nixpkgs
<clever>
with that, you can experiment to see what does what
Acou_Bass has joined #nixos
<immae>
clever: right, it’s just that I don’t have the use for that, I’m fine with explicit prefixes :)
<thblt>
I have an issue on NixOS unstable where enabling powertop auto-tuning with powerManagement.powertop.enable breaks bumblebee (optirun X fails with [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card). I've reported it some time ago https://github.com/NixOS/nixpkgs/issues/43067. Any ideas?
<tilpner>
inf: You *could* just pull from an ssh remote and verify the latest commit is signed with a hardcoded key, then rebuild. But that ignores build errors, and health checks which could trigger rollbacks
jb55 has joined #nixos
<immae>
clever: but I didn’t know about nix-instantiate --find-file, which is much easier to use when I’m debugging :D
<clever>
behind the scenes, nix will parse NIX_PATH and convert it into builtins.nixPath
<immae>
I used to do 'nix eval --raw nixpkgs.bc.meta.position | cut -d"/" -f-4' to find the root of my nixpkgs :D
<clever>
and every time you do <nixpkgs> it will be translated into `builtins.findFile builtins.nixPath "nixpkgs"`
<clever>
nix-instantiate --eval '<nixpkgs>' -A path
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<clever>
immae: yet another way to find nixpkgs!
<immae>
ha ha
<tobiasBora>
clever: that's great, that should be added to the documentation
<tobiasBora>
do you mind if I try to add something and do a pr?
<clever>
tobiasBora: go ahed
<tobiasBora>
ok I'll try ;)
Acou_Bass has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
mthst has quit [Ping timeout: 258 seconds]
<immae>
clever: I’m comparing two of your commands: `nix-instantiate --find-file nixpkgs` and `nix-instantiate --eval '<nixpkgs>' -A path`. Am I right if I say that the second one will only work if the evaluatex nixpkgs expression has a "path" attribute, while the first one will work for any kind of prefix (not just the usual nixpkgs prefix)?
<tilpner>
immae: Also nix-instantiate --eval -E '<nixpkgs>'
<tilpner>
Which works with <nixpkgs> set to not-nixpkgs-paths
<tilpner>
While the -A path wouldn't work with bogus <nixpkgs> values
<immae>
ok
Jackneill has quit [Ping timeout: 248 seconds]
<Taneb>
Is there something like trivial-builders.nix requireFile which will let me set permissions?
<tilpner>
No, I don't think that's possible
<tilpner>
What do you want to set permissions on, and why?
<Taneb>
I'm trying to put a closed-source program in the nix store and I want it executable
<tilpner>
Hmm
dansho has joined #nixos
dansho_ has quit [Read error: Connection reset by peer]
<tilpner>
Taneb: That should Just Work™
<tilpner>
Taneb: nix-store --add with an executable keeps the +x here
<Taneb>
Well, then I've screwed something up somewhere along the road, time to figure out what
<tilpner>
Just make sure the file is executable before you add it
<Taneb>
tilpner: thanks :)
dansho_ has joined #nixos
<hodapp>
gchristensen: that's interesting, as it's not a very common last name and I'm mostly only aware of the ones in the US; what's their full name?
dansho has quit [Ping timeout: 248 seconds]
Neo-- has quit [Ping timeout: 258 seconds]
dansho_ has quit [Ping timeout: 248 seconds]
mexisme has quit [Ping timeout: 245 seconds]
Jackneill has joined #nixos
xkapastel has joined #nixos
AK has quit [Ping timeout: 256 seconds]
AK has joined #nixos
zupo_ has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
phreedom has joined #nixos
Zer000 has joined #nixos
pie___ has joined #nixos
pie__ has quit [Ping timeout: 245 seconds]
jasongro` has joined #nixos
jasongrossman has quit [Ping timeout: 248 seconds]
mthst has joined #nixos
fendor has joined #nixos
layus has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dasJ opened pull request #63029 → nixos/stunnel: Fix CA files → https://git.io/fjgbH
veske has joined #nixos
layus has joined #nixos
hoek has quit []
hmpffff has quit [Quit: nchrrrr…]
hoek has joined #nixos
<myme>
Hi there! I've installed nix on Ubuntu and have some locale issues. System default locale is en_US.UTF-8, while this doesn't seem to be resolvable in e.g. nix-shell. Getting the typical "cannot change locale (en_US.UTF-8)". Prefixing with "LC_ALL=C.UTF-8" resolves it.
<myme>
So either I'd like for nix-shell to default locale to C.UTF-8 (without using --pure), *or* have a locale-archive with more locales available in nix-shell.
avn has quit [Ping timeout: 246 seconds]
lem0n4de has quit [Ping timeout: 258 seconds]
<adisbladis>
myme: Add glibcLocales to your buildInputs
<myme>
adisbladis: That works pretty well, yes. I still get a warning from bash when invoking e.g. "nix-shell -p glibcLocales" though. But that's I guess just cosmetic and caused by an exec/fork happening before the proper locale-archive is selected.
v0|d has quit [Ping timeout: 248 seconds]
<Taneb>
tilpner: nix-store --add preserves executable bit, nix-store --add-fixed does not, and that's what pkgs.requireFile suggests :|
toppler has quit [Ping timeout: 258 seconds]
<Taneb>
...--add-fixed doesn't seem documented, like, at all
phreedom has quit [Ping timeout: 256 seconds]
<Taneb>
Is this a bug in nix?
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Taneb>
Well, I've filed one in any case
<tilpner>
Taneb: --add-fixed works with --recursive
<tilpner>
But don't ask why --recursive should alter behaviour for single-file paths
<m1cr0man>
It did involve recovery reboot though and editing grub.cfg <3 that it keeps every version
<gchristensen>
you shouldn't need to edit grub?
<gchristensen>
you should be able to just pick the prior version and go
<m1cr0man>
Sorry, I couldn't access grub graphically
<gchristensen>
how about over a serial console?
<tobiasBora>
The question is not really linked with nixos directly, but I have some troubles with the huge git nixpkgs: a single "git status" takes ages to finish
Zer000 has quit [Ping timeout: 272 seconds]
<tobiasBora>
what are your trick to be able to work with nixpkgs?
<m1cr0man>
gchristensen, afaik no I don't have a serial console to this machine either. Recovery boot is the only way to fix it
<gchristensen>
tobiasBora: ditch the "git status in the prompt", personally
<gchristensen>
m1cr0man: ah, okay
<gchristensen>
m1cr0man: anyway you can set the nofail option on the mount point to not make it fail boot
<m1cr0man>
oh right, and it will gracefully skip it?
<gchristensen>
yea
<gchristensen>
(man fstab for other options :))
<m1cr0man>
and is the fileSystems.* the correct (only?) way to mount zfs filesystems too?
<m1cr0man>
bit cumbersome I wouldn't mind leaving some datasets to zfs
zupo has joined #nixos
lorenzoi has joined #nixos
<lorenzoi>
hi, I am having issues with installing nix on gentoo.
<lorenzoi>
when I run the command nix-env -i mc, it returns a segmentation fault
<pie___>
m1cr0man, ZFS on root eh?
<etu>
,-iA lorenzoi
acarrico has joined #nixos
<lorenzoi>
etu: ?
<m1cr0man>
pie_, Actually no. ZFS for nix store and other things, but I have a USB key for /boot and / for this reason
<etu>
lorenzoi: you probably want to do: nix-env -iA nixos.mc instead
<pie___>
m1cr0man, you only need filesystems.* for legacy mounts i think
<etu>
lorenzoi: We have a bot that can tell things like that, but I assume I made something wrong because it didn't :p
<pie___>
namely things your system needs at boot time, because otherwise there's some sort of race condition i think
<pie___>
otherwise you can just use dataset mount points
<m1cr0man>
pie_, yeah I just found out that non-legacy mounts don't really work at all. Complains about the root dataset not being empty when the zfs-mount service starts
<lorenzoi>
yeah it sais that attribute 'nixos' in section path nixos.mc isnt found
<m1cr0man>
yeah actually seems that other services don't wait for zfs-mount to finish. So I can use non-legacy mounts on datasets not used by any service.
<etu>
lorenzoi: What channels do you have? nix-channel --list?
<pie___>
m1cr0man, havent seen that error. sounds weird.
<m1cr0man>
I'll copy it out here
<pie___>
ah, i see
<m1cr0man>
and my configs are on github
<lorenzoi>
nix-pkgs
<lorenzoi>
the unstable branch'
<etu>
lorenzoi: Have you done a nix-channel --update ?
<pie___>
m1cr0man, maybe you can add a dependency on the mounts somewhere early in the boot process or something? of course if youre mounting stuff over the network and idk what not strange things may happen (?) ive no clue about this stuff
<lorenzoi>
yes, it returns: warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
<lorenzoi>
but before that it says that it is unpacking the channels
<m1cr0man>
pie_, It's all local storage so that could work. But how would I do that?
<m1cr0man>
it might be easy to just make a template + use nixos fileSystems mounting too
<etu>
lorenzoi: That should be fine for user channels iirc. You could try "nix-shell -p mc" and see if it works there
<lorenzoi>
what about the warning?
<lorenzoi>
oh nvm
<lorenzoi>
thanks
lorenzoi has quit [Quit: Lost terminal]
<pie___>
m1cr0man, idk how systemd works, maybe you can set the Before= service option or something?
ks0ne has joined #nixos
<pie___>
alternatively someone else might actually have a clue how to deal with this
<m1cr0man>
pie_, Yeah could do that. I'll just try all-legacy mounts first though
weedloser_ has joined #nixos
<m1cr0man>
:wq
<m1cr0man>
lol oops
ks0ne has quit [Client Quit]
ks0ne has joined #nixos
dansho has quit [Quit: Leaving]
veske has quit [Quit: This computer has gone to sleep]
<m1cr0man>
yeah seems legacy mounts + fileSystems are the way to go. I will look into making zfs-mount service higher priority later
<Yaniel>
you could set them to automount when accessed?
<Yaniel>
then it will boot even if the disks are unavailable
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
veske has joined #nixos
veske2 has joined #nixos
veske has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 272 seconds]
<m1cr0man>
oh! that would be cool
<m1cr0man>
How would that work? Systemd mount units?
<marek>
anyone seen the live image booting from an sd card fail with mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory?
<marek>
I just have the latest image dd'ed into an SD card and booting from it
<Yaniel>
set boot options noauto and x-systemd.automount
<Yaniel>
*mount options
<marek>
I guess that's not for me? :)
<pie___>
marek, yeah that was for m1cr0man
<marek>
yeah, figured it would be too easy
alp has quit [Ping timeout: 272 seconds]
<eyJhb>
gchristensen did dminuoso get a hold of you regarding replacing auto-patchelf.sh with a python version? -> speed up
<pie___>
marek, if you set boot.debug1devices you should be able to drop into a shell and start debugging
<pie___>
marek, if i understand correctly based on that error that it actually gets to nixos stage 1
<marek>
it does, but fails there
<pie___>
ok yeah so you can drop into that shell and start poking around
<marek>
stage 1 is where it wants to mount the live iso right?
Anton-Latukha has quit [Ping timeout: 245 seconds]
Neo-- has joined #nixos
<pie___>
i had a tangentially similar problem where it wasnt seeing my partitions for something else
<pie___>
marek, no clue
<pie___>
marek, i think its the initrd
<marek>
well, I think my disk boot ufi sector is broken
<marek>
I see just one big partition of 256GB with EFI GTP
<marek>
and nothing else
<pie___>
i had that :D
<pie___>
what does fdisk on it say
<pie___>
or gdisk (probably dont have gdisk)
<marek>
fdisk on it is just /dev/sda1 one big partition
<marek>
238G EFI GPT, that's all
<marek>
yeah only busybox fdisk
<marek>
I wanted to setup it fro mscratch using parted as per documentation
<marek>
need to probably figure out how to do it in fdisk
polman has quit [Ping timeout: 244 seconds]
dwdr has quit [Remote host closed the connection]
<marek>
pie___: how did you restore yours?
<pie___>
i asked about fdisk because fdisk told me something about being broken
<pie___>
but maybe busybox's one is dumber
<pie___>
marek, i truncated my gpt tables when dd-ing so i just had to write a new backup table
<marek>
when I enter fdisk it says The number of cylinders for this disk is set to 31009...
<pie___>
(theres like...one at the begninning and end of the disk or something)
<marek>
pie___: yeah, I think this is my case
<marek>
there is a backup table?
<marek>
well, sgdisk will be needed I think
polmaan has quit [Ping timeout: 248 seconds]
<marek>
but it is still a mistery why I cannot jsut boot the nixos live
<marek>
if it's about my local disk
<pie___>
wait sda1 or sda <marek> fdisk on it is just /dev/sda1 one big partition
<pie___>
for me it was just sda
<marek>
for me it's /dev/sda1
<pie___>
well, idk
<pie___>
marek, i was booted into a proper live system so i just ran proper fdisk gdisk whatever and it gave me some output that i googled and found a fix
<marek>
I will try to boot another distro to see what happens
<pie___>
if it really is just a missing backup gpt table then gdisk -> expert menu -> write backup gpt or something like that -> write results worked for me
polmaan has joined #nixos
jasongro` has quit [Ping timeout: 248 seconds]
<pie___>
marek, good luck debugging, i gotta work on something else
<marek>
thank you for your help!
polman has joined #nixos
<m1cr0man>
Yaniel, it didn't automount XD
<m1cr0man>
looks like another rescue boot for me
acarrico has quit [Ping timeout: 268 seconds]
polmaan has quit [Ping timeout: 248 seconds]
polmaan has joined #nixos
acarrico has joined #nixos
<__monty__>
kuznero[m]: Not to my knowledge, but I don't use ThreadScope.
<erik-4levels>
I'm currently looking in migrating an old elasticsearch project to a newer version and am looking for advice on having elasticsearch 1 & 2 & 5 running on the same nixos machine.
<erik-4levels>
I'm already using my own fork of the 18.09 branch of the nixpkgs repo to be able to run elasticsearch-1.7.2 (which is running fine)
<erik-4levels>
So I'm just not sure how to add another elasticsearch version, since elasticsearch is integrated in the nixos options and allows only for one package to be declared (unless I'm overlooking something obvious)
<immae>
erik-4levels: rather than forking, you should consider overlays: this would permit you to define several elasticsearch versions, which you can embed into separate systemd services afterwards
<erik-4levels>
I'm no Nix expert, I've just been using it for a couple of years for my deployment needs (using nixops)
<erik-4levels>
Hi @immae, I'm really not familiar with nixos and overlays seem daunting to me
acarrico has joined #nixos
<erik-4levels>
I kind of copy pasted a lot of things around, looking at the 18.03, 18.09 and even older branches just to get version 1.7.2 up
<immae>
erik-4levels: (no need of "@" to poke people on IRC) overlays is a mechanism to modify your "pkgs" so that they contain new / different versions of packages that you want to override
<erik-4levels>
I'm just not sure how to embed them in separate systemd services
<erik-4levels>
Like which ExecStart command should I pass?
<immae>
erik-4levels: copy it from nixos/modules/services/search/elasticsearch.nix and replace the systemd.services.elasticsearch name with systemd.services.elasticsearch_your_version
<erik-4levels>
(I'm also an irc noob obviously) Overlays seemed very difficult to achieve since a lot has changed in the way elasticsearch is configured and build in nixos between version < 17
<immae>
overlays should be much easier than forking and modifying a branch
<joepie91[m]>
this reminds me that I need to complain in the papercut thread about the inability to instantiate multiple of the same service :)
<immae>
I’m not a documentation digger, but I know I found good explanations of overlays in the nix doc/wiki, maybe someone around there will be able to find and share it
<joepie91[m]>
erik-4levels: simply put, an overlay is just a function that takes in the current 'package set' (nixpkgs) as an argument, and that returns all the new stuff to add to it
<joepie91[m]>
erik-4levels: so if you have something to add to the package set that depends on nothing, you don't even need to use the argument(s) of that function, you just return an attribute set with the new thing. you only need to use the argument(s) if you want to refer to existing stuff in the package set, eg. dependencies of your newly added thing
<erik-4levels>
Ok, I'm actually looking at the elasticsearch.nix file you mentioned for a while now, only to find the systemd configuration section at the bottom _facepalm_
<joepie91[m]>
well, actually, it's not just 'adding stuff to the package set' I believe, but to the entire system... same concept otherwise
<erik-4levels>
Ok, but just have a look at the diff between the forks: since the elasticsearch version I need to start from is that old (I mean, 1.7.2 is really old), I had to go back to nixpkgs branches before version 14 if I'm not mistaken, just to see how elasticsearch was configured..
<immae>
erik-4levels: just to make things clear: overlays will permit you to create elasticsearch_version1, elasticsearch_version2, ... packages. You can do it your way (forking, copying derivation files, modifying them to change the version and give another name in top-leves/all-packages.nix). Then you have to "run" those services, and there you’ll need to duplicate nixos/modules/services/search/elasticsearch.nix
<immae>
and override them to use each version
alex`` has joined #nixos
<erik-4levels>
ok, it's starting to make sense now (I had similar issues with running php5.6 and 7 on the same machine)
<erik-4levels>
Hence those changes are also in the diff
Makaveli7 has quit [Quit: WeeChat 2.5]
<erik-4levels>
(Luckily as of version 19 phpfpm can finally be configured to have multiple pools with customizeable config / php versions)
<immae>
yes, it’s about the same :)
<immae>
the difference here is that phpfpm module is done to start several independent services (each with its version of php), while elasticsearch is only done to start only one service with one version
<erik-4levels>
As you can see from the diff, I had to digg deep to find all required steps for elasticsearch 1.7.2 to work.
<erik-4levels>
Looking at the diff one more time, I'm still not so sure if this can be even achieved with overlays
<erik-4levels>
Well, thanks again for the pointers, hope to get things moving, at least a have a better insight now in how to define a new systemd service for each version I'd like to run!
<immae>
as you said, your phpfpm modifications is now integrated in 19.03, and for elasticsearch you’ll need to duplicate it anyway so...
<erik-4levels>
(how do I mention someone here?)
<immae>
just type his name
<immae>
I said you don’t need the "@" part of the mention :)
<immae>
immae vs @immae
<erik-4levels>
immae thanks a lot, joepie91[m] I hope to be able to read a noob-ready guide soon :-)
<mthst>
`ip rule` errors with "RTNETLINK answers: Address family not supported by protocol"
<mthst>
is there some kernel module i need to load?
kvaster_ has joined #nixos
Ariakenom has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @adisbladis pushed to master « pulseaudio-dlna: Fix build by downgrading zeroconf »: https://git.io/fjghE
reinhardt has quit [Quit: Leaving]
Henson has joined #nixos
<Henson>
hello everyone. I'm trying to get a kernel module to load at boot time. I put the line "boot.kernelModules = [ "pcspkr" ];" in /etc/nixos/configuration.nix and do "nixos-rebuild switch" then reboot, but the module doesn't get loaded. It exists because "modprobe pcspkr" works and so does the speaker after that. Any suggestions?
Manish[m] has joined #nixos
<dminuoso>
Who here is on the nixpkgs team that I could ask a contribution related question?
mthst has quit [Quit: the bouncer died]
Soo_Slow has quit [Remote host closed the connection]
mthst has joined #nixos
o1lo01ol1o has joined #nixos
<adisbladis>
dminuoso: Don't ask to ask, just ask :)
<jasongrossman>
,ask
<{^_^}>
Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<dminuoso>
adisbladis: Well I've asked 3 times already and gotten no response..
veske2 has quit [Ping timeout: 268 seconds]
<adisbladis>
dminuoso: What's the question
orivej has quit [Ping timeout: 248 seconds]
<dminuoso>
adisbladis: So auto-patchelf.sh is extremely slow (due to transitively producing potentially millions of .so files for the depcache, trying to insert them into a "set" modelled by a simple bash function around an array)
<dminuoso>
(Building a dep cache on a moderately sized project can take upwards 20-30 minutes)
<dminuoso>
So I was thinking about rewriting it in a different language where I can have high performance tree-based sets (since the problem is not in the code design in principle)
<dminuoso>
But Im not sure what the nix team thinks about using non-bash for core parts.
johanot has quit [Quit: WeeChat 2.4]
DerGuteMoritz has quit [Ping timeout: 258 seconds]
<matthewbauer>
dminuoso: auto-patchelf.sh should be okay because it's not used in any core part of nixpkgs. some setup hooks are more crucial though and probably need to be in bash
<dminuoso>
matthewbauer: So using say perl or python would be acceptable?
<adisbladis>
My take: It's fine.
xkapastel has joined #nixos
<adisbladis>
It really depends on how much closure size you are adding and for what gain
<matthewbauer>
dminuoso: yeah at least for the autoPatchelfFile implementation, probably some parts need to be in bash for the setup hook to actually run though
<samueldr>
ajs124: "how does something like that even happen?" "accidentally" I guess
<srhb>
ajs124: It's an unfortunate and hard-to-avoid usability issue. You change the source, forget that you didn't reset the hash to something impossible, the old source is in your store with the old hash, everything appears to work
<ajs124>
Off. Well, thanks for investigating >.<
<ajs124>
I'm honestly more surprised that it never lead to any errors, since then.
<samueldr>
the source is available already in the cache, so not only in your own store, but in the cache.nixos.org cache
<samueldr>
(I think?)
<srhb>
samueldr: Yes.
<ajs124>
But doesn't that ever get GCed?
<srhb>
ajs124: No, never.
<srhb>
(Well, I don't think anyone ever made that promise, but historically... it doesn't happen)
<ajs124>
Oh, good to know. Well, that would explain that.
<srhb>
Ideally we'd check the src hash on every PR, which could work for a lot (but not all) drvs.
veske2 has joined #nixos
veske2 has quit [Client Quit]
mthst has quit [Ping timeout: 258 seconds]
mthst has joined #nixos
lem0n4de has joined #nixos
sb0 has joined #nixos
<lem0n4de>
Hi
fendor has quit [Ping timeout: 258 seconds]
<o1lo01ol1o>
what's the format for hydra's "open gitlab merge requests" input? I'm getting a "malformed JSON string" error when I just use https//gitlab.com/foo/bar
<lem0n4de>
I have a problem with 'stack'. When trying to run 'stack ghci' it shows an error with "error: attribute 'ghc865' missing, at (string):1:43". What to do to fix this?
<Shoubit>
lem0n4de, sounds like stack is trying to use a version of ghc you don't have. ghc865 exists in nixos-unstable, but 19.03 is on ghc854. You can change the stackage lts version to one that uses ghc854 or you can try using ghc from nixos-unstable.
<{^_^}>
[nixpkgs] @flokli opened pull request #63037 → google-cloud-sdk: kubeconfig: don't store absolute path to gcloud binary → https://git.io/fj2eu
<philipp[m]>
Does anybody have a clue how to send `-nocursor` to the xorg invocation when using slim as the display-manager?
<philipp[m]>
I can't even find where X is actually called.
rpg has joined #nixos
Lears has quit [Ping timeout: 264 seconds]
cfricke has quit [Quit: WeeChat 2.5]
<srhb>
philipp[m]: services.xserver.displayManager.xserverArgs I believe.
veske has joined #nixos
<philipp[m]>
srhb: Thanks, that seems to be it!
<palo>
aber BSD-1/2/3 sind nicht frei
<palo>
grr falscher chat
<palo>
sorry
<betaboon_>
i have a question regarding nix-shell and python-development: i have a directory which holds a python-package(including setup.py), there i have a default.nix which is later used in an nixpkgs-overlay. now i want to have a shell.nix alongside that default.nix that makes the python-package runnable during development and i want to be able to define additional dependencies that are available in that
<betaboon_>
development-shell. i want to have the checkInputs defined in default.nix available in that development-shell aswell (eg pytest) any hints ? i dont seem to do it right.
PirBoazo has joined #nixos
<{^_^}>
[nixpkgs] @edolstra pushed to master « nix: Add nixFlakes attribute for the flake branch »: https://git.io/fj2vC
Ariakenom has quit [Quit: Leaving]
Anton-Latukha has joined #nixos
fusion809 has quit [Remote host closed the connection]
<ashkitten>
Henson: i still have pcspkr loaded though, probably because i loaded it in the initramfs
<betaboon_>
alex``: are you writing a nix-derivation for hunter? or are you trying to compile that in a nix-shell with the dependencies documented there? oO
<Henson>
ashkitten: I'll try moving it to the initrc
<PyroLagus>
Zer0xp: official arch packages
<Henson>
ashkitten: oops, initrd
<alex``>
betaboon_: I tried to compile with a nix-shell command by specifying the package dependencies
<PyroLagus>
aur mostly for stuff that i want to get from git master branches
<PyroLagus>
and ghidra and librepcb. that's about it
<alex``>
should not be the best practices but I did that to compile Rust projects
<Zer0xp>
Wow, so the AUR has less than half of non-unique packages in its repo ? Interesting.
__monty__ has joined #nixos
<alex``>
betaboon_: compile in nix-shell xd
<alex``>
I do not have the nix-fuu to write packages myself
drakonis has quit [Ping timeout: 250 seconds]
<PyroLagus>
i might use nix for ghidra if it was a thing
InFlames has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @fpletz pushed commit from @taku0 to release-19.03 « flashplayer: 32.0.0.192 -> 32.0.0.207 »: https://git.io/fj2fk
LogicAside has joined #nixos
<Zer0xp>
<etu> Actually you should open those mentioned in the top repos mentioned and you'll see that the numbers are different from the numbers mentioned in the list
drakonis has joined #nixos
<ashkitten>
i hate how we keep calling it an initrd when it's actually an initramfs (we use switch_root and not pivot_root, and it's a cpio archive)
<ashkitten>
like, i suppose it's not that big a deal but it bugs me
<etu>
Zer0xp: In my experience the quality of the packages in AUR is usually lower
<Henson>
ashkitten: adding it to boot.initrd.kernelModules worked. Thank you for your help.
<rustyraptor>
hi I just installed the NixOS virtualbox application and I am getting an error when trying to build my config and install packages. I can't find a solution anywhere.
<betaboon_>
alex``: I'm not sure i gave you good advice in how to use nix-shell to build the default.nix directly. i always forget the proper way oO
<srhb>
alex``: The simplest general purpose answer on how to do that with the matching version of nixpkgs is to clone the repo, check out a particular commit and then do the callPackage shenanigans in the respective directory.
<srhb>
alex``: However, if you _don't_ particularly care about that version (I don't know what you're actually trying to do) maybe just use nix search and nix build
<srhb>
(eg. in this case `nix build nixpkgs.kakoune`)
<srhb>
alex``: Anything specific you're trying to achieve?
dontobey has joined #nixos
<srhb>
Er, the above advice was unsound actually. You still want to callPackage from the right version of nixpkgs
<betaboon_>
alex``: sorry i have to run ;) good luck
<{^_^}>
[nixpkgs] @NeQuissimus pushed 5 commits to release-19.03: https://git.io/fj2fb
Ariakenom has joined #nixos
jaykru` has joined #nixos
<jaykru`>
Anybody know how I can get Coq packages installed with Nix into my Coq loadpath? (I'm on NixOS and would ideally be installing them through my configuration.nix)
rustyraptor has quit [Ping timeout: 256 seconds]
dbmikus has joined #nixos
clacke_movim has joined #nixos
freeman42x has joined #nixos
<Zer0xp>
Anyone here using the google-authenticator package ?
<Zer0xp>
Actually, does anyone here know how I can enable my Nvidia GPU ? My NixOS is currently running on my in-built Intel graphics.
<Yaniel>
nixos.wiki has a page on optimus
Yaniel has quit [Remote host closed the connection]
mthst- has quit [Ping timeout: 252 seconds]
mthst has joined #nixos
ThatDocsLady_ has quit [Quit: Leaving]
Synthetica has joined #nixos
ddellacosta has joined #nixos
<Henson>
is it possible to add packages to an overlay that are distributed in binary form? Is it necessary for derivations in an overlay to have the full source for the "mkDerivation" call? How are things in <nixpkgs> distributed such that nix-env functions are able to use them without having derivations in /nix/store? I'm trying to add custom binary-deployed software to an overlay so I can do...
<Henson>
"nix-env -iA customsoftwarename" and it will know where to look in /nix/store to find store paths I've already uploaded to it.
<Synthetica>
Henson: You might want to look at the derivation for Mathematica for inspiration
<Synthetica>
What they do there is use nix-prefetch-url file://(YOURFILE) to add it to the store, and identify it by hash
<infinisil>
Henson: You can add *any* Nix expression to an overlay. One type of Nix expression is a derivation. And inside a derivation, you can put *any* files/directories you want. So yes you can do that
Yaniel has joined #nixos
<infinisil>
Henson: And if you want to download prebuilt derivations, you'll want to have a Nix cache server, https://cachix.org/ is an easy way to get that
<NemesisD>
i've got a simple derivation where i need to copy some files relative to the script into the $out for the derivation. is `pkgs.runCommand` the right choice?
<infinisil>
Henson: Then users will only download the source of the derivation if the cache server isn't available
<NemesisD>
also, are you not meant to use `cabal new-*` with nix/haskell projects? i noticed i always end up with a `dist` and `dist-newstyle` dir and some cases where dependencies don't rebuild
<srhb>
NemesisD: You definitely can, but you should probably filter the source aggressively for the nix build to stay intact.
<srhb>
NemesisD: Specifically there's some dot files that are problematic and will make the build fail.
<catern>
One really cool thing about Nix is that if you have a dependency on some derivation, you also automatically have the ability to ship that derivation to another host. In other words, having a reference to a path means being able to deploy that path. That's pretty cool...
<NemesisD>
srhb: i already add shell hooks to `cabal new-configure --write-ghc-environment-files=never` for that reason. i wonder if these `cabal.project*` files are a problem too
jb55 has quit [Ping timeout: 256 seconds]
<NemesisD>
srhb: i'm not sure what you mean by source aggressively though. in my case i have some deps that are submodules. i instantiate them into the package set with `callCabal2nix`
ris has joined #nixos
<srhb>
NemesisD: I meant instead of something like src = ./. have src = some filtered version of ./. with all irrelevant files left out
<srhb>
s/irrelevant/problematic
thc202 has quit [Ping timeout: 245 seconds]
<NemesisD>
srhb: that might be a problem. i don't think i can do that with `callCabal2nix`
gratto has quit [Read error: Connection reset by peer]
<srhb>
NemesisD: Doesn't callCabal2nix just take some source argument?
gratto has joined #nixos
<srhb>
NemesisD: So you can manipulate the source however you want before passing it on.
zupo has joined #nixos
joko has joined #nixos
<NemesisD>
srhb: i'll take a look. i've been using it by passing it a derivation name, path to the dir or cabal file, and then an empty argument set, maybe the argument set has a `src` or something
<NemesisD>
i guess the downside here is that i have to know what files are important to build my dependencies, which is kinda inappropriate. is there a way to say "everything except files that look like ..."
<srhb>
NemesisD: The "dir" is the src.
mthst has quit [Ping timeout: 258 seconds]
<NemesisD>
srhb: ah ok. so is srcByRegex with a bunch of negation the way to do it or is there a better way?
ddellacosta has quit [Ping timeout: 245 seconds]
<Henson>
Synthetica: can you send me the link to the nix expression for mathematica? I can't find the "nix-prefetch-url" in the various mathematica derivations.
<Henson>
infinisil: thank you for the information. It may not even be necessary, then, for me to actually put the derivations on the computer. As long as I can have a way of finding the store paths globally (for example, assigning the paths to variables in a set) then that should work for me.
<Synthetica>
(Sorry, it was nix-store --add)
<Henson>
Synthetica: ahh ok, that's interesting. I don't think it will help with the problem I'm having, but will probably be useful in the future.
toppler has quit [Ping timeout: 248 seconds]
gratto has quit [Ping timeout: 268 seconds]
jb55 has joined #nixos
Matthieu_ has quit [Read error: Connection reset by peer]
ilmu has quit [Ping timeout: 248 seconds]
toppler has joined #nixos
drakonis has quit [Ping timeout: 258 seconds]
mthst has joined #nixos
mthst has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @veprbl merged pull request #60568 → Add support for Epson network scanners → https://git.io/fjZsq
<{^_^}>
[nixpkgs] @veprbl pushed commit from @booxter to master « epkowa: add support for network scanners (#60568) »: https://git.io/fj2UL
silver has quit [Read error: Connection reset by peer]
simendsjo has joined #nixos
mthst has joined #nixos
orivej has joined #nixos
mexisme has joined #nixos
Yaniel has quit [Quit: WeeChat 2.5-rc1]
gagbo has quit [Ping timeout: 272 seconds]
gratto has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
mthst has quit [Ping timeout: 258 seconds]
gagbo has joined #nixos
Yaniel has joined #nixos
lostman has joined #nixos
jgt has joined #nixos
inquisitiv3 has joined #nixos
knupfer has joined #nixos
<lostman>
hi folks. how can I use plasma from nixos-unstable without switching my whole system? I have `desktopManager.plasma5.enable = true` in my `configuration.nix`
tmaekawa has joined #nixos
gratto has quit [Read error: Connection reset by peer]
simendsjo has quit [Remote host closed the connection]
hmpffff has joined #nixos
lordcirth has quit [Remote host closed the connection]
lordcirth has joined #nixos
v88m has joined #nixos
detran has quit [Ping timeout: 244 seconds]
<Gopal[m]>
so I'm running awesomewm with lightdm. Wire-Desktop crashes when I try to restore a backup with the error: no Glib schmas are installed on the system
xkapastel has quit [Quit: Connection closed for inactivity]
<Gopal[m]>
etu: what are overlays?
<hyper_ch>
overlays are something closely related to magic (I still don't understand them)
<ashkitten>
you can compose together layers of incremental modifications that interact nicely with each other
<ashkitten>
whereas overridePackages is absolute and doesn't take into account previous modifications, with overlays you can override bits of a derivation that is already partially overridden
<hyper_ch>
ashkitten: one day, you'll make my head explod
<ashkitten>
why's that?
<hyper_ch>
I never really got OOP either
<hyper_ch>
it's just a thing I can't wrap my minde around
<hyper_ch>
and overlays are the same
karetsu has joined #nixos
<ashkitten>
you'll hate aeson's lenses, then
<ashkitten>
because it's essentially the same thing
<ashkitten>
well
<ashkitten>
sorta
<hyper_ch>
no idea what that is... I'm just an average computer user
fendor_ has joined #nixos
<ashkitten>
lenses in aeson (a haskell library for json) allow you to basically give the deserializer a transformation to apply to its input rather than grabbing all the data and working through it linearly
<hyper_ch>
json is devil's work
<ashkitten>
i don't disagree
<hyper_ch>
well, I'm off to bed
<ashkitten>
sweet dreams
<hyper_ch>
Gopal[m] can now watch nicolas explaining overlays
<ashkitten>
does my brain work differently in that i just sorta "get" this stuff?
<karetsu>
if json is devil's work then is XML the 9th circle?
<ashkitten>
it's weird
<karetsu>
aeson-lens is the good stuff though
gratto has quit [Read error: Connection reset by peer]
gratto has joined #nixos
gratto has quit [Read error: Connection reset by peer]
<ashkitten>
my current favorite github issue title is on serde-json: "figure out what lenses are"
<ashkitten>
it just quotes a couple twitter posts by haskell users and says "apparently the people want this"
<gallexme[m]>
window manager , terminal etc work, but when i run vscode it complains that it cant write to a directory/file, probably /run(or smth like that)
<angerman>
gchristensen: im on my phone and pretty much falling asleep. Just arrived this morning in Zurich from Singapore. So that’s not really tested. But should equip you with the idea.
<gchristensen>
thank you a lot!
<angerman>
There might also me something like `pkgs.mingw64Pkgs.hello`
<jasom>
true or false: A resonable way to specify cflags for a single package is to use overrideAttrs to add a line exporting a new NIX_CFLAGS_COMPILE to the preConfigure hook?
drakonis has quit [Ping timeout: 245 seconds]
<pie__>
jasom, i _think_ theres just a configureFlags option though?
<pie__>
not sre
<pie__>
*not sure
<jasom>
pie__: that would work for autoconf, but not cmake right, so less general than my suggestion?
<pie__>
ah, ok
tmaekawa has quit [Quit: tmaekawa]
* jasom
figured stdenv knows better how to push cflags into the various configuration systems than he does
hmpffff has joined #nixos
drakonis has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<plertrood>
I installed it originally with 'nix-env -f ./default.nix -iA purs'
<plertrood>
And now I want to upgrade, so I pulled down the latest from github.
<plertrood>
If I run ' nix-env -f ./default.nix --upgrade purs' it complains 'error: selector 'purs' matches no derivations'
<infinisil>
drakonis1: Well show us how, this could be useful for the future :)
<drakonis1>
well
<plertrood>
If I run ' nix-env -f ./default.nix -iA purs ' it complains 'error: packages '/nix/store/vrkg0rc37ax2w4lfb94ir2haz1wg80gk-purescript-0.12.5/bin/purs' and '/nix/store/pi9j59xnfw7wsis52y56wbrblnqnfmcx-purs-simple/bin/purs' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
<plertrood>
'
<plertrood>
If I then run 'nix-env --set-flag priority 0 purs'
<drakonis1>
adding "nix.package = pkgs.nixFlakes;" to the configuration file should do it
<plertrood>
It complains 'selector 'purs' matches no derivations'
<plertrood>
What gives? Any idea how I can update this package?
<drakonis1>
i didn't need to override anything as the attribute already exists
<infinisil>
Neat
<drakonis1>
simple i suppose
<drakonis1>
its ready for testing now
<drakonis1>
zfs is heckin broke on nixpkgs
mexisme has joined #nixos
fenedor has quit [Read error: Connection reset by peer]
<drakonis1>
so i can't upgrade my system due to the bash completion commits
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]