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
<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__> </random scrollback excerpt>
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/fdd75fc6f1d (from 70 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<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
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @kalbasit merged pull request #56933 → shelldap: init at 1.4.0 → https://git.io/fhpTo
<{^_^}> [nixpkgs] @kalbasit pushed 4 commits to master: https://git.io/fjgSh
xorax has quit [Remote host closed the connection]
acarrico has joined #nixos
alex`` has quit [Ping timeout: 248 seconds]
fusion809 has joined #nixos
oborot has joined #nixos
<bsima> what does the "builder for /nix/store/...drv failed to produce output path /nix/store..." error refer to?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjg9J
<pie__> manveru, not a general fan of the mind boggling either
<{^_^}> [nixpkgs] @worldofpeace merged pull request #62707 → asciidoctor: 1.5.7.1 -> 2.0.10 → https://git.io/fjuzd
<{^_^}> [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
<{^_^}> input-output-hk/iohk-ops#352 (by cleverca22, 1 year ago, merged): [DEVOPS-836] configure hydra to upload everything to S3
<dhess> Assuming you wanted to make it private S3, would you set both of those to s3://foo-nix-cache ?
<dhess> clever: yeah I'm using that as my guide, it's very helpful.
<clever> dhess: i dont remember what the public uri was for
<clever> to the source!
<clever> $c->stash->{binaryCachePublicUri} = $c->config->{binary_cache_public_uri};
gentauro has quit [Read error: Connection reset by peer]
<dhess> I looked around in the source, it was opaque to me
<dhess> yeah I don't understand well enough how Hydra works for that to mean anything
<clever> dhess: when generating hydra product URL's (which must be clickable in the browser) it will use that string
<dhess> oh right
gentauro has joined #nixos
<dhess> clever: so... technically it's not really possible to make it private, is it?
<dhess> I mean, I don't really care if the clickable URLs don't work
<clever> you could point it to a custom nginx, that uses basic auth to authenticate people
<dhess> so if it breaks it's fine
<clever> or you could point it to blame.dhess.for.breakage.com
<dhess> clever: yeah I'm trying to avoid that. Right now I host my Hydra behind WireGuard but it's a PITA
<dhess> yeah I suppose I'll just point to a broken URI. Or maybe I can get it to work with AWS ALB eventually
<dhess> clever: ok how about server_store_uri, what's the diff between that and store_uri?
dansho has joined #nixos
o1lo01ol1o has quit [Ping timeout: 264 seconds]
<clever> dhess: hydra build products again, it can host documentation and html pages directly thru hydra
kvda has joined #nixos
<clever> and it uses this to fetch a single file from the cache
<clever> (thats what server_store_uri did)
<dhess> what does // do in Perl?
<clever> no clue, lol
<clever> store_uri is the only one you really care about, thats where hydra will push things when a build finishes
<dhess> hahahah :)
<dhess> right. My guess is that overrides if the left side is null
alp has quit [Ping timeout: 245 seconds]
<dhess> so first use server_store_uri, then store_uri, then "auto"
<dhess> and I assume nix ls-store works with S3 URIs?
<alienpirate5> I'm having trouble using anything involving gcc9
<alienpirate5> It seems to be in the repos
<clever> dhess: yeah
<alienpirate5> but I cannot install it, or create a nix-shell using it
<dhess> I think I can try this, already have an S3 store working on my Hydra box (just no Hydra configured yet)
<alienpirate5> Basically, how do I make gcc9 work?
<alienpirate5> When I run the command `nix-shell -p gcc9` I get the error `error: undefined variable 'gcc9' at (string):1:94`
<clever> alienpirate5: use gcc9Stdenv.mkDerivation
<alienpirate5> That does not work either
<alienpirate5> I get errors
<dhess> cool that works. OK I think I'll just set server_store_uri to the same thing as store_uri and make binary_cache_public_uri a bogus URL
<clever> alienpirate5: what errors do you get?
<dhess> thanks clever!
<alienpirate5> `error: undefined variable 'gcc9Stdenv' at /home/dmitry/work/mandelbrot/cuda/shell.nix:2:1` clever
<clever> alienpirate5: your nixpkgs may be too old
psy3497 has joined #nixos
<alienpirate5> I just did a `nix-channel --update`
<alienpirate5> And I'm on unstable
<clever> alienpirate5: what does nix-channel --list say?
<alienpirate5> oh
<alienpirate5> it's empty. what even
<alienpirate5> Ok, I'm going to add a channel
<clever> alienpirate5: no
<alienpirate5> why not
<clever> alienpirate5: every user has his own channels, and root is the fallback
<clever> alienpirate5: `sudo -i` and then --list again
<alienpirate5> ok
<alienpirate5> I think I need to update root's channels
<alienpirate5> It has unstable
<clever> yep
<alienpirate5> After updating root's channels, it worked. Thank you!
astal has quit [Ping timeout: 258 seconds]
<dhess> clever: I see that the NixOS Hydra uses a local nar cache and iohk's doesn't. Any thoughts on that?
<clever> dhess: nar cache?
<clever> dhess: ah, i dont think that existed when i set things up
cjpbirkbeck has joined #nixos
<dhess> Checkin by eelco, about 2 years ago, but no explanation on what it's for
<clever> dhess: that also looks like it may entirely replace cachecache, lol
<clever> dhess: i think that makes it save the .nar to a dir, after downloading
<clever> and check the dir before downloading
<dhess> clever: what's cachecache?
<clever> dhess: a cache for binary caches, lol
<dhess> ok :)
<clever> dhess: basically, i have 4 nixos machines in my house, and re-downloading things from cache.nixos.org is a bottleneck
<clever> but i have gigabit inside the house
<dhess> yeahhhh I hear that!
<clever> why not cache the ache?
<clever> this will also multiplex many caches into a single url
<clever> so i have 2 upstream caches, cachecache will check both, and then present a single cache to my LAN
<dhess> hey I might use that
astal has joined #nixos
<dhess> hah, I already starred it :)
<dhess> I guess I found that sometime in the past while poking around your github
<clever> dhess: and the nixos module to run it
<dhess> awesome
<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?
clacke_movim has left #nixos [#nixos]
<{^_^}> [nixpkgs] @marsam opened pull request #63005 → sops: 3.3.0 -> 3.3.1 → https://git.io/fjg99
freeman42x has quit [Ping timeout: 258 seconds]
acarrico has quit [Ping timeout: 258 seconds]
jackdk has joined #nixos
acarrico has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [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
clacke_movim has left #nixos [#nixos]
drakonis_ has joined #nixos
Diagon has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #62995 → melpa-stable-packages: remove unstable packages → https://git.io/fjgMP
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjgHT
acarrico has joined #nixos
mexisme has joined #nixos
<clever> mac10688: i just use wpa_passphrase and wpa_cli
<clever> mac10688: wpa_passphrase networkname password >> /etc/wpa_supplicant.conf ; systemctl restart wpa_supplicant
clacke_movim has joined #nixos
ym555 has quit [Quit: leaving...]
<{^_^}> [nixpkgs] @marsam opened pull request #63009 → postgresqlPackages.pg_bigm: init at 1.2 → https://git.io/fjgHk
<mac10688> oh let me try that
<{^_^}> [nixpkgs] @dmvianna opened pull request #63010 → Infix 1.2 → https://git.io/fjgHL
<mac10688> no wait I did do that and then i unplugged my wire and i got no internet
<clever> mac10688: it has a bit of trouble switching, try restarting wpa_supplicant again?
<clever> while the ethernet is unplugged
<mac10688> ok i'll do that now
<clever> and double-check that `iwconfig` shows it as being online
<mac10688> bbl
<mac10688> ok
adamantium has joined #nixos
oborot has quit [Ping timeout: 264 seconds]
justanotheruser has quit [Ping timeout: 248 seconds]
drakonis has joined #nixos
mac10688 has quit [Quit: WeeChat 2.4]
drakonis_ has quit [Ping timeout: 258 seconds]
drakonis_ has joined #nixos
ZaraChimera has joined #nixos
ZaraChimera has left #nixos ["https://quassel-irc.org - Chat comfortably. Anywhere."]
drakonis has quit [Ping timeout: 252 seconds]
dansho has quit [Ping timeout: 248 seconds]
justanotheruser has joined #nixos
justanotheruser has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @xrelkd opened pull request #63011 → parity: 2.4.6 -> 2.4.7, parity-beta: 2.5.1 -> 2.5.2 → https://git.io/fjgHu
mac10688 has joined #nixos
oborot has joined #nixos
<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
justanotheruser has joined #nixos
<{^_^}> [nixpkgs] @teto merged pull request #62998 → pythonPackages.cmd2_8: remove → https://git.io/fjgDX
<{^_^}> [nixpkgs] @teto pushed commit from @risicle to master « pythonPackages.cmd2_8: remove »: https://git.io/fjgHV
<tA_> sh <(curl https://nixos.org/nix/install) --no-daemon
<tA_> same error using that
clacke_movim has left #nixos [#nixos]
<clever> tA_: echo $NIX_REMOTE
<tA_> ok there was systemd stuff borked up
<tA_> think its good now
<tA_> thanks clever
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
<tA_> awesome, thanks
<clever> import <nixpkgs> { config = { allowBroken = true; }; }
<clever> i try to always do { config = {}; overlays = []; }
<clever> so it ignores whatever the user has in config.nix
<clever> makes it more reproducable, because it doesnt care what the end user did to config.nix
<niten> hi all
oborot has quit [Ping timeout: 244 seconds]
<gchristensen> hodapp: another hodapp is here.
<niten> i'm having trouble with private keys in nixos, wondering if anybody can point me in the right direction
<niten> i'm trying to get postgresql up and running with an open SSL port
<niten> it refuses to start if the key is public-readable
<clever> niten: https://nixos.org/nixos/options.html#environment.etc.%3Cname%3F%3E.mode
<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]
sb0 has quit [Quit: Leaving]
gratin has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @buckley310 closed pull request #54405 → metasploit: 4.16.1 -> 5.0.1 → https://git.io/fhzIP
InFlames has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 245 seconds]
mac10688 has quit [Ping timeout: 248 seconds]
marusich has joined #nixos
drakonis has joined #nixos
mac10688 has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
xkapastel has quit [Quit: Connection closed for inactivity]
oborot has quit [Ping timeout: 248 seconds]
mexisme has joined #nixos
mkoenig has quit [Quit: Lost terminal]
o1lo01ol1o has joined #nixos
mkoenig has joined #nixos
arahael4 has joined #nixos
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #62991 → papirus-icon-theme: 20190501 -> 20190521 → https://git.io/fjg1i
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/fjgQt
<clacke_movim> ncpamixer eh *makes notes*
Arahael has joined #nixos
arahael4 has quit [Ping timeout: 264 seconds]
domogled has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #62930 → libwhich: 2019-03-20 -> 1.1.0 → https://git.io/fjgTp
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjgQY
<{^_^}> [nixpkgs] @fpletz merged pull request #62990 → matrix-synapse: 0.99.5.2 -> 1.0.0 → https://git.io/fjg1c
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fjgQO
<{^_^}> [nixpkgs] @dtzWill opened pull request #63015 → less: 530 -> 551 → https://git.io/fjgQ3
clacke_movim has left #nixos [#nixos]
clacke_movim has joined #nixos
dylon has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #63016 → firefox: 67.0.1 -> 67.0.2 → https://git.io/fjgQZ
<{^_^}> [nixpkgs] @fpletz merged pull request #63003 → pythonPackages.wsproto: 0.14.0 -> 0.14.1 → https://git.io/fjgSc
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fjgQC
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0d576d7eb87 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @dtzWill opened pull request #63017 → skype: 8.46.0.60 -> 8.47.0.59 → https://git.io/fjgQl
Rusty1 has quit [Quit: Konversation terminated!]
Arahael has quit [Ping timeout: 245 seconds]
Arahael has joined #nixos
orivej has joined #nixos
gyroninja_ has quit [Ping timeout: 248 seconds]
gyroninja_ has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #63018 → xorg.xcalc: 1.0.7 -> 1.1.0 → https://git.io/fjgQB
hmpffff has quit [Quit: nchrrrr…]
Arahael has quit [Ping timeout: 245 seconds]
isHavvy has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @fpletz merged pull request #62838 → cryptsetup: enable kernel crypto api support again → https://git.io/fjzrC
<{^_^}> [nixpkgs] @fpletz pushed 3 commits to master: https://git.io/fjgQR
Arahael has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #63019 → browsh: 1.5.0 -> 1.5.2 → https://git.io/fjgQE
domogled has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #63020 → nghttp2: 1.38.0 -> 1.39.1 → https://git.io/fjgQu
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<{^_^}> [nixpkgs] @dtzWill opened pull request #63021 → dbus: 1.12.14 -> 1.12.16 → https://git.io/fjgQz
<{^_^}> [nixpkgs] @dtzWill opened pull request #63022 → pygraphviz: 1.3.1 -> 1.5 → https://git.io/fjgQ2
Arahael has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #63023 → txr: 216 -> 217 → https://git.io/fjgQa
Arahael has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
Arahael has quit [Ping timeout: 245 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Athas> My NixOS has stopped generating reasonable /etc/resolv.conf (no nameserver entries). Any ideas?
<{^_^}> #61490 (by angristan, 4 weeks ago, open): Empty networking.nameservers wipes /etc/resolv.conf after a rebuild
Arahael has joined #nixos
<Athas> Guess I'll just hardcode my nameserver in configuration.nix.
gyroninja_ has quit [Quit: WeeChat 2.4]
orivej has joined #nixos
dansho has joined #nixos
fusion809 has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
kvda has joined #nixos
reinhardt has joined #nixos
Fare has quit [Quit: Leaving]
palo1 has joined #nixos
palo has quit [Ping timeout: 272 seconds]
palo1 is now known as palo
Arahael has quit [Ping timeout: 264 seconds]
Diagon has quit [Quit: Leaving]
Arahael has joined #nixos
InFlames has joined #nixos
<{^_^}> [nixpkgs] @gnidorah opened pull request #63024 → midisheetmusic: always bring timidity dependency → https://git.io/fjg7T
dontobey has quit [Ping timeout: 248 seconds]
<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?
<dminuoso> https://gist.github.com/dminuoso/9e2c8be673e99990242bc2e1d7cbc0f1 so this performs horrifyingly bad apparently...
<dminuoso> Everything about this file is... "sub-optimal"
Arahael has quit [Ping timeout: 268 seconds]
<dminuoso> Say I wanted to rewrite the functionality, what kind of programming languages are acceptable in the nix world other than bash?
<{^_^}> [nixpkgs] @gnidorah opened pull request #63025 → adlplug, opnplug: 1.0.0 -> 1.0.1 → https://git.io/fjg7B
wfranzini has joined #nixos
Arahael has joined #nixos
<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.. :)
<clever> teto: Data.ByteString.Lazy.writeFile
<jgt> teto: I'd defer to Conduit for anything file-related, but I'm ignorant and paranoid
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<teto> clever: thanks. I asked in the wrong channel, dminuoso 's ubiquity confused me
Arahael has quit [Ping timeout: 248 seconds]
<jgt> it is nice seeing all the overlap between this channel and #haskell
kvda has joined #nixos
Arahael has joined #nixos
sb0 has joined #nixos
<{^_^}> [nixpkgs] @dywedir merged pull request #62985 → android-file-transfer: 3.8 -> 3.9 → https://git.io/fjgPU
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjg7K
v0|d has joined #nixos
Arahael has quit [Ping timeout: 248 seconds]
kvaster_ has joined #nixos
Arahael has joined #nixos
linarcx has joined #nixos
arahael1 has joined #nixos
<teto> I would like to build the coc.nvim binary myself. Seems like it uses webpack https://github.com/neoclide/coc.nvim/blob/313045f937702c4e019445fbc588f12bc7988ab8/release.sh#L26 but the binary webpack is in some strange packages :s
<teto> ,locate webpack
<{^_^}> Found in packages: gitlab, kibana5, brackets, wallabag, nextcloud, kibana-oss, vimPlugins.vim-addon-errorformats
jasongrossman has joined #nixos
hyper_ch2 has joined #nixos
Arahael has quit [Ping timeout: 268 seconds]
<clever> teto: its more visible if you run nix-locate locally
<clever> kibana.out 12 d /nix/store/6v4zl7g2pl2nyvlj47vc3igggqc5gdm3-kibana-4.6.0/libexec/kibana/webpackShims
pjan has joined #nixos
<clever> teto: a lot of those arent actually binaries
<{^_^}> [nixpkgs] @FRidh merged pull request #62801 → python3Packages.pywebpush: init at 1.9.4 → https://git.io/fjzce
<{^_^}> [nixpkgs] @FRidh pushed 5 commits to master: https://git.io/fjg77
qqlq has joined #nixos
<teto> ,locate bin webpack
<{^_^}> Couldn't find in any packages
<{^_^}> [nixpkgs] @FRidh merged pull request #63005 → sops: 3.3.0 -> 3.3.1 → https://git.io/fjg99
<{^_^}> [nixpkgs] @FRidh pushed commit from @marsam to master « sops: 3.3.0 -> 3.3.1 »: https://git.io/fjg7b
JosW has joined #nixos
LogicAside has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @FRidh pushed 188 commits to staging-next: https://git.io/fjg7x
arahael1 has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @FRidh pushed 190 commits to staging: https://git.io/fjg7p
LogicAside has joined #nixos
LogicAside has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @teto merged pull request #63019 → browsh: 1.5.0 -> 1.5.2 → https://git.io/fjgQE
<{^_^}> [nixpkgs] @teto pushed commit from @dtzWill to master « browsh: 1.5.0 -> 1.5.2 »: https://git.io/fjg5v
<{^_^}> [nixpkgs] @teto merged pull request #63018 → xorg.xcalc: 1.0.7 -> 1.1.0 → https://git.io/fjgQB
<{^_^}> [nixpkgs] @teto pushed 2 commits to master: https://git.io/fjg5J
LogicAside has joined #nixos
LogicAside has quit [Max SendQ exceeded]
<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)
johanot has joined #nixos
<gentauro> the script can be found at -> http://dragoman.org/tym/
<DigitalKiwi> have you had it working on not nixos?
kvaster_ has quit [Ping timeout: 246 seconds]
<gentauro> I had to modify the `#!/bin/bash -eu` to `#!/usr/bin/env bash -eu` but I'm not sure if the parameters are passed that way ...
<gentauro> DigitalKiwi: ofc, otherwise I wouldn't be writing here ...
<DigitalKiwi> just making sure it's a nixos specific issue
<{^_^}> [nixpkgs] @Lassulus merged pull request #62997 → bitlbee-discord: fix build → https://git.io/fjgDc
<{^_^}> [nixpkgs] @Lassulus pushed 2 commits to master: https://git.io/fjg5L
Anton-Latukha has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
<{^_^}> [nixpkgs] @markuskowa merged pull request #62976 → octopus: 8.4 -> 9.0 → https://git.io/fjggr
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fjg5q
<gentauro> DigitalKiwi: I'm guessing it is. It could be those two parameters not beeing fed to `bash`
<eyJhb> gentauro what would you expect those two options to do?
<gentauro> is $HOME isn't stored in /nix/store right?
<eyJhb> $HOME is not stored in /nix/store
<eyJhb> NixOS doesn't manage your home folder :)
<teto> anyone knows about any nix snippets compatible with vim ? (ultisnips). Snippets for fetching values and creating derivations could be helpful
<gentauro> #!/bin/bash -eu
<gentauro> # -e: Exit immediately if a command exits with a non-zero status.
<gentauro> # -u: Treat unset variables as an error when substituting.
<eyJhb> Hmm, it is quite easily to test if that is the case then
kvaster_ has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #2939 → Add tests for GitHub flakes → https://git.io/fjgMz
<{^_^}> [nix] @edolstra pushed 3 commits to flakes: https://git.io/fjg5l
civodul has joined #nixos
<eyJhb> gentauro looks like it isn't possible to pass params like that. Can't even get it to run, which seems weird if you can
<eyJhb> gentauro: not the first to have that problem, the solution might be useful - https://unix.stackexchange.com/a/399698
<eyJhb> or you can actually just do.. `#!/usr/bin/env -S bash -eu` :)
<gentauro> eyJhb: yeah, just say the example below
<gentauro> I will see if the helps
<eyJhb> gentauro: precisely ;)
<gentauro> cos I'm running out of disk place ...
<eyJhb> Just seems weird that it runs at all. Because, it .. Shouldn't
<eyJhb> https://termbin.com/djfq is basically my errors
<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 ?
inquisitiv3 has joined #nixos
zupo has joined #nixos
<nyanloutre[m]> For the context it's to make this work : https://github.com/simons-public/protonfixes
<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
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to master: https://git.io/fjg5D
ryantrinkle has quit [Ping timeout: 268 seconds]
<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]
clacke_movim has left #nixos [#nixos]
<{^_^}> [nixpkgs] @jlesquembre opened pull request #63027 → clojure: 1.10.0.442 -> 1.10.1.447 → https://git.io/fjg5p
kvaster_ has joined #nixos
wfranzini has joined #nixos
<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)
kvaster_ has joined #nixos
lem0n4de has joined #nixos
johnw has quit [Quit: ZNC - http://znc.in]
arahael1 has quit [Quit: WeeChat 2.2]
johnw has joined #nixos
<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]
Makaveli7 has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9edf8f73f76 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
kvda has joined #nixos
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
<{^_^}> [nixpkgs] @wiedzmin closed pull request #62730 → git-quick-stats: init at 2.0.8 → https://git.io/fju1I
dwdr has joined #nixos
Soo_Slow has joined #nixos
<MasseR> sure, but it also breaks the purity
<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.
<__monty__> ,pinning kuznero[m]
<__monty__> That should help find out how.
<kuznero[m]> __monty__: Thanks!
<kuznero[m]> And is there a known revision where threadScope works?
knupfer has quit [Ping timeout: 248 seconds]
<tobiasBora> Hello,
ubert has joined #nixos
<tobiasBora> Some questions about the documentation (I'm reading it from scratch to make sure I didn't missed some nice functionalities):
<tobiasBora> On https://nixos.org/nixos/manual/#sec-customising-packages, it's written "Warning: Unfortunately, Nixpkgs currently lacks a way to query available configuration options. "
<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> so I was thinking that a paragraph/entry should be added somewhere around https://nixos.org/nixos/manual/#sec-nix-syntax-summary to explain what is this syntax
<tobiasBora> and the same thing should also go in https://nixos.org/nix/manual/#sec-constructs
<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
<tobiasBora> hum, I think the precise definition is here https://nixos.org/nix/manual/#sec-common-env
silver has joined #nixos
Neo-- has quit [Ping timeout: 272 seconds]
<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
<immae> (at least for my workflow)
thblt has joined #nixos
jb55 has quit [Ping timeout: 256 seconds]
<immae> but the doc here https://nixos.org/nix/manual/#sec-common-env says you’re right about "no prefix" version
<tobiasBora> immae: yep. Maybe we could add a reference to that documentation in https://nixos.org/nixos/manual/#sec-nix-syntax-summary and in https://nixos.org/nix/manual/#ssec-values
<clever> [clever@amd-nixos:~]$ nix-instantiate --find-file nixpkgs
<clever> /nix/var/nix/profiles/per-user/root/channels/nixos
<tilpner> inf: I haven't seen a good common solution for that, unfortunately
<clever> [clever@amd-nixos:~]$ nix-instantiate --find-file nixpkgs/default.nix
<clever> /nix/var/nix/profiles/per-user/root/channels/nixos/default.nix
<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?
<{^_^}> #43067 (by thblt, 48 weeks ago, open): powerManagement.powertop.enable breaks Bumblebee
<thblt> This is on a Dell XPS 9560
<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> immae: also, nix-instantiate --eval -E builtins.nixPath
<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.
<{^_^}> [nixpkgs] @etu merged pull request #62783 → php: update build config and php package → https://git.io/fjzsy
<{^_^}> [nixpkgs] @etu pushed 6 commits to master: https://git.io/fjgNJ
<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
hmpffff has joined #nixos
toppler has joined #nixos
<marek> how do I enlarge /run/user/1000>
dansho has joined #nixos
<marek> services.logind.extraConfig = "RuntimeDirectorySize=2G"; :)
orivej has joined #nixos
phreedom has joined #nixos
<{^_^}> [nixpkgs] @romildo closed pull request #62494 → papirus-icon-theme: 20190501 -> 20190521 → https://git.io/fjEgJ
<{^_^}> [nixpkgs] @taku0 opened pull request #63030 → flashplayer: 32.0.0.192 -> 32.0.0.207 [Critical security fixes] → https://git.io/fjgNK
adamantium has quit [Ping timeout: 248 seconds]
cfricke has joined #nixos
<m1cr0man> I Just discovered that if I add new mount options and they fail my server dies. Is there a safe way to test my config wrt mounts? :P
<gchristensen> can you access your server's botolader? :)
<{^_^}> [nixpkgs] @taku0 opened pull request #63031 → firefox, firefox-bin: 67.0.1 -> 67.0.2 → https://git.io/fjgNX
<m1cr0man> yeah did that XD
<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
<gchristensen> fileSystems.<name?>.options = [ "nofail" ];
<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.
jasongrossman has joined #nixos
Neo-- has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/039983bd7a4 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
v88m has quit [Ping timeout: 258 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
<tobiasBora> gchristensen: ok thanks
alp has joined #nixos
<{^_^}> [nixpkgs] @Profpatsch merged pull request #62336 → bazel: 0.24.0 -> 0.26.1 → https://git.io/fjEto
<{^_^}> [nixpkgs] @Profpatsch pushed 6 commits to master: https://git.io/fjgAA
<tobiasBora> The page https://nixos.org/nixos/options.html is supposed to follow the latest stable version?
o1lo01ol1o has joined #nixos
<gchristensen> tobiasBora: yeah
<tobiasBora> ok thank you
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
iyzsong has joined #nixos
<Gopal[m]> libreoffice on unstable fails to build :(
<Gopal[m]> says `mysql.h: no such file or directory`
<tobiasBora> I can't find wher I can edit https://nixos.org/nix/manual
<Gopal[m]> isn't there a binary version of libreoffice that I can use?
<Gopal[m]> `firefox-devedition-bin-unwrapped` also fails to build with `cannot find executable file`
<Gopal[m]> help please
<slabity> libreoffice-fresh?
<Gopal[m]> yes
<etu> tobiasBora: Think it should be https://github.com/NixOS/nix
<Gopal[m]> that's one I am installing but it seems to build from source
<Gopal[m]> and fails with the above error
<tobiasBora> etu: thanks!
acarrico has quit [Ping timeout: 246 seconds]
linarcx has quit [Quit: WeeChat 2.4]
ricekrispie has joined #nixos
Maxdamantus has quit [Ping timeout: 268 seconds]
Maxdamantus has joined #nixos
orivej has joined #nixos
<{^_^}> [rfcs] @domenkozar merged pull request #47 → template: add shepherd team and leader → https://git.io/fjzzH
<{^_^}> [rfcs] @domenkozar pushed to master « template: add shepherd team and leader (#47) »: https://git.io/fjgxB
<{^_^}> [nixpkgs] @tobiasBora opened pull request #63033 → nixos/doc: documentation angle bracket syntax → https://git.io/fjgx2
erik-4levels has joined #nixos
<erik-4levels> hi all
<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)
<{^_^}> [nixpkgs] @sergiosoriaolivares opened pull request #63034 → chromedriver: 2.46 -> 75.0.3770.8 → https://git.io/fjgx6
<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
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
<immae> everything in "nixos" cannot, but there are other ways probably
seanparsons has quit [Quit: ZNC 1.7.2 - https://znc.in]
seanparsons has joined #nixos
ilmu has joined #nixos
<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 :-)
<erik-4levels> Keep up the great work folks!
fendor has quit [Ping timeout: 268 seconds]
seanparsons has quit [Client Quit]
seanparsons has joined #nixos
<marek> a really odd error while rebuilding ruby for a gitlab update, anyone has seen this before? ar: invalid option -- '/' https://gist.github.com/mmahut/e2207d4e3de7e566e5c1fbdaf66b3eaa
<immae> marek: ar takes an action as first argument, and I don’t see one in your example (first line)
PirBoazo has joined #nixos
endformationage has joined #nixos
<marek> immae: that is from building ruby2.5.5-grpc as an depenency
<gchristensen> I thought Nixpkg's emacs always came with nix-mode ... hrm
<kuznero[m]> __monty__: ended up wrapping a binary package of ThreadScope. Here it goes, if anyone is interested: https://pastebin.com/UY5zVc8L
PirBoazo has quit [Quit: Bonne Fin de Journée]
<adisbladis> gchristensen: We don't even have our own packages for it :P It comes through melpaPackages
PirBoazo has joined #nixos
<{^_^}> [nixpkgs] @dywedir merged pull request #62987 → exiftool: 11.48 -> 11.50 → https://git.io/fjgPy
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjghe
hmpffff has quit [Quit: nchrrrr…]
erik-4levels has quit []
kvaster_ has quit [Ping timeout: 246 seconds]
fendor has joined #nixos
<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
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #63035 → go: 1.12.5->1.12.6, 1.11.10->1.11.11 → https://git.io/fjghN
<dminuoso> matthewbauer: Yeah that makes sense, I suspect as much already.
<matthewbauer> it might even be possible to put the functionality in patchelf as a flag? not sure how specific to Nix/Nixpkgs it is
<dminuoso> matthewbauer: What do you mean by "flag" exactly?
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fjghx
<matthewbauer> dminuoso: so you could do something like `patchelf --auto -L $lib1/lib -L $lib2/lib -L$lib3/lib my-exe-file` with patchelf
<matthewbauer> it's written in c though
<matthewbauer> or c++ actually
<dminuoso> matthewbauer: c++ rather, but yeah
<dminuoso> matthewbauer: Indeed. Would be fine too for my taste.
<dminuoso> I mean it'd increase the effort a lot, but at least I'd get the performance and it wouldn't blow up closure sizes.
<adisbladis> I honestly wouldn't be too worried about closure size when it comes to autoPatchelfHook
<adisbladis> It's not widely used
<adisbladis> And it's typically used in proprietary software where the closure sizes are pretty big anyway
* dminuoso readies ghc
Tucky has joined #nixos
domogled has joined #nixos
ks0ne has quit [Ping timeout: 272 seconds]
Quarub has joined #nixos
Quarub has quit [Client Quit]
mexisme has joined #nixos
Quarub has joined #nixos
Quarub has quit [Client Quit]
mexisme has quit [Ping timeout: 272 seconds]
alp has quit [Ping timeout: 244 seconds]
Tucky has quit [Ping timeout: 245 seconds]
alp has joined #nixos
toppler has quit [Ping timeout: 246 seconds]
fendor has quit [Ping timeout: 245 seconds]
lordcirth has quit [Remote host closed the connection]
lordcirth has joined #nixos
<{^_^}> [nix] @CSVdB opened pull request #2943 → Added flags to override the lockfile → https://git.io/fjgjH
<{^_^}> [nixpkgs] @ajs124 opened pull request #63036 → python.flask_script: fix hash → https://git.io/fjgjd
<ajs124> how does something like what #63036 fixes even happen? someone seems to have bumped the version without changing the hash??
toppler has joined #nixos
<{^_^}> https://github.com/NixOS/nixpkgs/pull/63036 (by ajs124, 1 minute ago, open): python.flask_script: fix hash
PirBoazo has quit [Quit: Bonne Fin de Journée]
<samueldr> looking at the history it's more likely that the archive somehow changed
fendor has joined #nixos
<samueldr> if the hash isn't on the extracted files with fetchPyPi
* samueldr just read the body of the PR
<samueldr> scratch what I just said
<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?
<{^_^}> [nixpkgs] @kalbasit merged pull request #63035 → go: 1.12.5->1.12.6, 1.11.10->1.11.11 → https://git.io/fjghN
<{^_^}> [nixpkgs] @kalbasit pushed 18 commits to staging: https://git.io/fj2e8
<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
sigmundv has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @kalbasit opened pull request #63038 → bazel: 0.26.0 -> 0.26.1 → https://git.io/fj2e2
<lem0n4de> Shoubit, How can I change stackage version to ghc864?
lem0n has joined #nixos
<{^_^}> [nixpkgs] @kalbasit merged pull request #62989 → pythonPackages.cli-helpers: 1.2.0 -> 1.2.1 → https://git.io/fjgPd
<{^_^}> [nixpkgs] @kalbasit pushed commit from @jonringer to master « pythonPackages.cli-helpers: 1.2.0 -> 1.2.1 (#62989) »: https://git.io/fj2ew
lem0n has quit [Client Quit]
lem0n4de_ has joined #nixos
lem0n4de_ has quit [Client Quit]
lem0n4de has quit [Remote host closed the connection]
<arianvp> I'm trying to connect to WiFi on the minimal nix installer
<arianvp> But it says "nl80211: kernel reports: Attribute failed policy validation"
erasmas has joined #nixos
Jetien_ has quit [Ping timeout: 245 seconds]
wfranzini has quit [Remote host closed the connection]
gratto has joined #nixos
<betaboon_> does anyone have an opinion/suggestion on how or if to use default.nix+shell.nix+pipenv for a python package during development ?
ubert has quit [Quit: Leaving]
<arianvp> https://bbs.archlinux.org/viewtopic.php?id=246507 is the only hit on google
JonReed has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
[Leary] has joined #nixos
Soo_Slow has joined #nixos
<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]
ambro718 has joined #nixos
linarcx has joined #nixos
Thra11 has joined #nixos
JonReed has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @Profpatsch merged pull request #63038 → bazel: 0.26.0 -> 0.26.1 → https://git.io/fj2e2
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @kalbasit to master « bazel: 0.26.0 -> 0.26.1 »: https://git.io/fj2vr
pie___ has quit [Ping timeout: 245 seconds]
mthst- has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
mthst has quit [Ping timeout: 250 seconds]
Thra11 has quit [Ping timeout: 268 seconds]
<Henson> so, I've got a problem. I want to enable the "pcspkr" module. I've added it to boot.kernelModules, but this module is blacklisted by the /etc/modprobe.d/ubuntu.conf file which is automatically included by the modprobe.nix expression (https://github.com/NixOS/nixpkgs/blob/release-19.03/nixos/modules/system/boot/modprobe.nix#L44).
fendor has joined #nixos
<Henson> which is always included if the system is not a container
drakonis has joined #nixos
InFlames has joined #nixos
JosW has joined #nixos
JosW has quit [Client Quit]
drakonis_ has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @edolstra pushed to release-19.03 « nix: Add nixFlakes attribute for the flake branch »: https://git.io/fj2vF
hmpffff has joined #nixos
<ashkitten> Henson: weird, i don't have that in my /etc/modprobe.d/ubuntu.conf (tracking latest nixos-unstable)
<ashkitten> Henson: as far as i can see, the version of kmod-blacklist-ubuntu has not changed between our versions
<ashkitten> (between 19.03 and nixos-unstable)
__monty__ has quit [Ping timeout: 272 seconds]
Thra11 has joined #nixos
Zer0xp has joined #nixos
ThatDocsLady_ has joined #nixos
<Zer0xp> Hey, does anyone here use pacman in NixOS ?
<alex``> Hi
<alex``> I cannot compile hunter
<PyroLagus> Zer0xp: is that even a thing?
ks0ne has joined #nixos
jasongrossman has quit [Read error: Connection reset by peer]
<Zer0xp> I know I might get a lot of criticism for doing that but the AUR has way more packages than the nixpkgs repo
<ajs124> PyroLagus: nixpkgs.pacman does exist, for some reason
<PyroLagus> lol
ThatDocsLady has quit [Remote host closed the connection]
<ashkitten> Henson: yes, but is it in your /etc/modprobe.d/ubuntu.conf?
<alex``> $ nix-shell --packages gstreamer perldevelPackages.FileLibMagic
<alex``> oups
<ashkitten> Henson: it's not in mine
<alex``> $ nix-shell --packages pkg-config rustc cargo gstreamer perldevelPackages.FileLibMagic
<alex``> $ cargo build --release
<Zer0xp> I just added the pacman package to my home manager but it doesn't work
jasongrossman has joined #nixos
<betaboon_> alex``:what seems to be the problem ?
<Henson> ashkitten: yes, the line "blacklist pcspkr" is in my /etc/modprobe.d/ubuntu.conf file.
<ashkitten> Henson: oops, actually i do see it
<PyroLagus> i'm on arch, and i honestly don't even use the aur *that* much
<alex``> betaboon_: gstreamer afaik
<etu> Zer0xp: Does it? https://repology.org/
<Zer0xp> Then what do you use ?
<{^_^}> [nixpkgs] @fpletz merged pull request #63030 → flashplayer: 32.0.0.192 -> 32.0.0.207 [Critical security fixes] → https://git.io/fjgNK
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fj2fv
<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
<alex``> $ nix-shell --packages pkg-config rustc cargo gstreamer perldevelPackages.FileLibMagic
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fj2ff
<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.
<{^_^}> [nixpkgs] @NeQuissimus pushed 7 commits to master: https://git.io/fj2fn
<ashkitten> Henson: lol, np
rustyraptor has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
<betaboon_> alex``: i got this far: https://gist.github.com/betaboon/65cff26c5e1e554852c65752d75b1ba3 but it fails during compile due to some rust errors (i dont know rust ;) )
v88m has joined #nixos
<betaboon_> alex``: for testing you can run that with `nix-shell -p 'with import <nixpkgs> {}; callPackage ./default.nix {}'`
<{^_^}> [nixpkgs] @worldofpeace opened pull request #63040 → brave: 0.61.50 -> 0.65.118 → https://git.io/fj2fR
<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.
PirBoazo has quit [Quit: Bonne Fin de Journée]
<rustyraptor> I was just following the basic configuration syntax tutorial.
<rustyraptor> To clarify I get that error when running any nixos-rebuild command
<rustyraptor> The tutorial says to us "nixos-rebuild switch" to apply the config
elibrokeit has joined #nixos
<srhb> rustyraptor: Is nix-info available, and if so, can you paste its output?
<rustyraptor> Sure
<srhb> rustyraptor: Did a rebuild already succeed at least once?
<rustyraptor> Not one that I ran myself.
<rustyraptor> idk if the VirtualBox appliance does one automatically
<alex``> betaboon_: how to build once I'm in it?
<srhb> Maybe we can get some logs from the nix daemon, to find out why it appears to have crashed.
<srhb> rustyraptor: journalctl -u nix-daemon
<alex``> what would be the commande to build it?
<betaboon_> alex``: i dont understand what you mean
<rustyraptor> hmm lots of cannot allocate memory errors
<rustyraptor> Do I need to allocate more ram to the VM? it only has 2gb
<srhb> rustyraptor: That must be it, yeah
<rustyraptor> ok I'll give it a try brb
<srhb> rustyraptor: I suspect this is a recent change making that requirement..
<srhb> (And probably not a very desirable one...)
<alex``> betaboon_: how to build a package on nixpkgs for example, https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/kakoune, I tried nix-shell -p 'with import <nixpkgs> {}; callPackage ./default.nix {}', it enters in the shell but does not compile kakoune
rfold has joined #nixos
Shoubit has quit [Ping timeout: 248 seconds]
Seraxis has quit [Ping timeout: 264 seconds]
liny01 has quit [Ping timeout: 246 seconds]
rustyraptor has quit [Ping timeout: 256 seconds]
<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] @veprbl merged pull request #63025 → adlplug, opnplug: 1.0.0 -> 1.0.1 → https://git.io/fjg7B
<{^_^}> [nixpkgs] @veprbl pushed commit from @gnidorah to master « adlplug, opnplug: 1.0.0 -> 1.0.1 (#63025) »: https://git.io/fj2fS
<srhb> (Which is usually still simpler with a checkout, and then nix-build -A kakoune from the root of the nixpkgs clone)
Matthieu_ has joined #nixos
rustyraptor has joined #nixos
<rustyraptor> Well the error is gone now.
<rustyraptor> Looks like I just have config errors so I just need to get a basic config going
<rustyraptor> Thanks for the help guys. Will be back soon I bet haha.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c8dedaddd64 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<srhb> rustyraptor: Cool :)
<{^_^}> [nixpkgs] @vcunat closed pull request #63031 → firefox, firefox-bin: 67.0.1 -> 67.0.2 → https://git.io/fjgNX
clacke_movim has left #nixos [#nixos]
<{^_^}> [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]
qqlq has quit [Quit: ZNC 1.7.3 - https://znc.in]
gratto has joined #nixos
qqlq has joined #nixos
Zer0xp has quit [Ping timeout: 256 seconds]
v88m has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @xrelkd opened pull request #63041 → eksctl: init at 0.1.35 → https://git.io/fj2Tk
<etu> lostman: Overlays will be your friend for this
<etu> ,unstable
hmpffff has quit [Quit: nchrrrr…]
drakonis has joined #nixos
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)
detran has joined #nixos
<hyper_ch> Gopal[m]: and here's the video https://www.youtube.com/watch?v=6bLF7zqB7EM
<hyper_ch> well, somwhere
<{^_^}> [nixpkgs] @xbreak opened pull request #63042 → waf: Added support for optional extra tools → https://git.io/fj2TR
<Gopal[m]> thank you :)
<hyper_ch> Gopal[m]: here it starts https://youtu.be/6bLF7zqB7EM?t=2364
<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
knupfer has quit [Ping timeout: 248 seconds]
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<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"
pie__ has joined #nixos
<LnL> heh
gratto has joined #nixos
fendor_ has quit [Quit: Leaving]
Thra11 has quit [Ping timeout: 246 seconds]
shabius has quit [Quit: Leaving]
kim0 has joined #nixos
Matthieu_ has joined #nixos
ee1943 has quit [Ping timeout: 248 seconds]
knupfer has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
shabius has joined #nixos
<{^_^}> serde-rs/json#443 (by dtolnay, 1 year ago, closed): Figure out what lenses are
<ashkitten> yep
<eyJhb> +1 for that :p
<pie__> "figure out what lenses are" big mood right there
gallexme[m] has joined #nixos
<gallexme[m]> whats the correct way to initialize the env variables? for a XSession?
<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)
Thra11 has joined #nixos
<gchristensen> matthewbauer: 'round?
<gchristensen> angerman: ping?
freeman42x has quit [Ping timeout: 258 seconds]
freeman42y has joined #nixos
jaykru`` has joined #nixos
<joko> gallexme[m]: did you try .xprofile?
jaykru` has quit [Ping timeout: 245 seconds]
Zer000 has joined #nixos
<karetsu> joko: I could never get xmonad to read .xprofile without me having to write the xmonad.hs, is .xinitrc preferred?
<karetsu> gnome definitely reads .xprofile though
Synthetica has quit [Quit: Connection closed for inactivity]
morr_ is now known as morr
jgt has quit [Ping timeout: 244 seconds]
<joko> karetsu: it seems to be working here, I set QT_QPA_PLATFORMTHEME for xmonad
<gallexme[m]> joko: xession runs xprofile
<karetsu> I've nothing but problems with xmonad so its no doubt specific to me >_<
<joko> gallexme[m]: I have recently switched to the same
<gallexme[m]> doesnt seem to work with xrdp tho
mkoenig has quit [Remote host closed the connection]
Ariakenom has quit [Quit: Leaving]
mkoenig has joined #nixos
MarcWeber has quit [Remote host closed the connection]
<angerman> gchristensen: sup?
<gallexme[m]> heres the result of printenv, inside an x application: https://gist.github.com/gallexme/f71da2531218bf4251ee97a0a1f5cce6
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> angerman: can you tell me about cross compiling GNU Hello for Windows? =)
fenedor has joined #nixos
<angerman> gchristensen: Set crossSystem to the mingw64 example System and build?
<gchristensen> can you paste me a little sample? I've never cross compiled anything :x
<angerman> I believe I’m not understanding the question though.
<angerman> gchristensen: `wirh import <nixpkgs> { config = { crossSystem = ...systems.mingw64; }; hello`
fendor has quit [Ping timeout: 272 seconds]
qqlq has quit [Quit: ZNC 1.7.3 - https://znc.in]
<gchristensen> oh cool, thank you angerman :)
<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`
karetsu has quit [Quit: WeeChat 2.4]
<angerman> gchristensen: see https://github.com/input-output-hk/haskell.nix/pull/171#discussion_r291862297, which is where _rvl showed me that pigs trick.
<angerman> gchristensen: so `pkgs.pkgsCross.mingwW64.hello` If you like magic.
xkapastel has joined #nixos
<gchristensen> wow:o
<gchristensen> thank you :D
domogled has quit [Ping timeout: 272 seconds]
<gchristensen> angerman: good grief that was too easy
Thra11 has quit [Ping timeout: 248 seconds]
weedloser_ has quit [Quit: Leaving]
<pie__> :O
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @JohnAZoidberg opened pull request #63044 → Wine fonts → https://git.io/fj2kP
rfold has quit [Quit: WeeChat 2.4]
jaykru`` has quit [Ping timeout: 248 seconds]
jgt has joined #nixos
<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]
drakonis_ has joined #nixos
<hodapp> ,locate which
<{^_^}> Found in packages: zsh, atom, which, heroku, meteor, toybox, busybox, brackets, atom-beta, kibana-oss, nodejs-6_x, nodejs-8_x, simplenote, zsh-prezto, debianutils, factor-lang, nodejs-10_x, nodejs-11_x, nylas-mail-bin, nodePackages.bower, nodePackages.hueadm, nodePackages.meguca, nodePackages.triton, nodePackages.fast-cli, nodePackages.peerflix-server, nodePackages.create-cycle-app
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « licenses: refer to libpng2 using spdx »: https://git.io/fj2Ik
drakonis1 has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
kraem has quit [Quit: outta here]
mexisme has quit [Ping timeout: 245 seconds]
Soo_Slow has quit [Remote host closed the connection]
kraem has joined #nixos
toppler has quit [Ping timeout: 245 seconds]
<infinisil> ,locate bin which
<{^_^}> Found in packages: which, toybox, busybox, debianutils
<infinisil> hodapp: ^
mexisme has joined #nixos
nD5Xjz has quit [Ping timeout: 272 seconds]
nD5Xjz has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #62986 → Add Bash completions for ZFS. → https://git.io/fjgPI
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @caadar to master « Add Bash completions for ZFS. (#62986) »: https://git.io/fj2I3
toppler has joined #nixos
cyp3d has joined #nixos
cyp3d has left #nixos [#nixos]
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #nixos
<pie__> infinisil, maybe that should be the default :v
<infinisil> Maybe yeah
<pie__> well...meh.
hmpffff has quit [Client Quit]
<pie__> maybe fall back to global search if theres no result
<pie__> but now theres implicit behaviour
<pie__> (add an idicator?)
<infinisil> Found binaries in packages: <list>, and found non-binaries in packages: <list>
hmpffff has joined #nixos
<pie__> suddenly everything is complicated
<pie__> hm that seems decent
hmpffff has quit [Client Quit]
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
knupfer has quit [Ping timeout: 250 seconds]
<infinisil> Currently I'm deep into other weird Haskell troubles
v0|d has joined #nixos
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drakonis1> what's the right way to override nix itself?
mexisme has quit [Ping timeout: 248 seconds]
kini has joined #nixos
erasmas has quit [Quit: leaving]
markh[m] has left #nixos ["User left"]
plertrood has joined #nixos
<drakonis1> ah nevermind, it is done now.
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
<plertrood> Hi. I am trying to upgrade a package (purescript) which I got from here https://github.com/justinwoo/easy-purescript-nix
<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)]
<drakonis1> #62986
<{^_^}> https://github.com/NixOS/nixpkgs/pull/62986 (by caadar, 1 day ago, merged): Add Bash completions for ZFS.
<drakonis1> i have to build all of zfs now
<drakonis1> i'm not so hot on pulling zfs
jgt has quit [Ping timeout: 258 seconds]
alex`` has quit [Ping timeout: 244 seconds]
<PyroLagus> ah. you have to wait for the hydra tests?
m0rphism has quit [Ping timeout: 245 seconds]
<drakonis1> well, zfs is failing to build in here
alex`` has joined #nixos
<PyroLagus> ah
<{^_^}> [nixpkgs] @mmahut opened pull request #63045 → gitlab: 11.10.4 -> 11.10.5 → https://git.io/fj2I6
<drakonis1> i suspect its the merge done earlier
<drakonis1> well, i reverted that commit and now everything is fine
<drakonis1> fun.
plertrood has quit [Ping timeout: 258 seconds]
<drakonis1> matthewbauer: the zfs bash completion commits broke zfs building
<drakonis1> on master that is
dansho has joined #nixos
goibhniu1 has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #61923 → nixos/gitea: make use of declarative features where applicable → https://git.io/fjBfV
<{^_^}> [nixpkgs] @Ma27 pushed 4 commits to master: https://git.io/fj2I7
fresheyeball has joined #nixos
<fresheyeball> hi out there
ricekrispie has quit [Quit: YEET]
<fresheyeball> has anyone got postgresT working on nixos?
fusion809 has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.5]
drakonis has joined #nixos
<drakonis> hmm, strange, i still have nix 2.2.2
<drakonis> i suppose that what i've done isn't the right fix
<marek> anyone can ask ofborg to build this and add security tag please?
<drakonis> the vm has it
<{^_^}> #63045 (by mmahut, 15 minutes ago, open): gitlab: 11.10.4 -> 11.10.5
<drakonis> isn't it just a command you can call?
<drakonis> "ofborg build"?
fresheyeball has quit [Quit: WeeChat 2.4]
<joepie91[m]> gchristensen: ^ security patch
<joepie91[m]> oh
<joepie91[m]> samueldr added a tag :P
<samueldr> drakonis: not everyone can queue up builds
<drakonis> ah i see.
simukis__ has joined #nixos
<buckley310> does anyone here use smartcards? I am trying to get OpenSC to read mine
simukis_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #63047 → zfs: fix install completions → https://git.io/fj2LU
<drakonis> ^ merge?
ambro718 has quit [Ping timeout: 245 seconds]
<drakonis> alas, i have found out why it wasnt working
<drakonis> seems like a lustrate install fails me
__monty__ has quit [Quit: leaving]
jgt has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #63047 → zfs: fix install completions → https://git.io/fj2LU
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fj2LZ
jgt has quit [Ping timeout: 252 seconds]
Matthieu_ has quit [Ping timeout: 258 seconds]
gagbo has quit [Ping timeout: 244 seconds]
gagbo has joined #nixos
<drakonis> finally its all working
Matthieu_ has joined #nixos
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 245 seconds]
mbrgm_ is now known as mbrgm
<iqubic> Is it fine to run ssh-keygen on Nixos?
<iqubic> or will that break things?
drakonis has quit [Quit: WeeChat 2.5]
<buckley310> ssh-keygen works fine, you're just generating keys for ~/.ssh/ right?
<iqubic> yes
<buckley310> yeah its fine
o1lo01ol1o has quit [Remote host closed the connection]
lambda-11235 has joined #nixos