gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || 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
sharktamer has joined #nixos
sharktamer has left #nixos ["WeeChat 2.2"]
kisik21 has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45602 → e2fsprogs: 1.44.3 -> 1.44.4 → https://git.io/fAq3E
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « e2fsprogs: 1.44.3 -> 1.44.4 (#45602) »: https://git.io/fAYIH
blankhart has quit [Quit: WeeChat 1.9.1]
lawlesseel has quit [Ping timeout: 250 seconds]
carlosdagos has joined #nixos
hellrazor has quit [Ping timeout: 264 seconds]
Travankor has joined #nixos
Travankor has quit [Client Quit]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAYLa
Ariakenom has quit [Quit: Leaving]
countingsort has quit [Ping timeout: 252 seconds]
lfam has joined #nixos
xeji has quit [Quit: WeeChat 2.1]
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
evil-olive has joined #nixos
judson has quit [Ping timeout: 276 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
slack1256 has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
ericsagnes has joined #nixos
kisik21 has quit [Ping timeout: 244 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
silver has quit [Quit: rakede]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.18-rc8 -> 4.19-rc1 »: https://git.io/fAYq1
Fare has joined #nixos
lassulus_ has joined #nixos
lassulus_ is now known as Random_int
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
lassulus has quit [Ping timeout: 252 seconds]
Random_int is now known as lassulus
timj has quit [Ping timeout: 264 seconds]
slack1256 has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
drakonis__ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #45664 → lollypop: 0.9.521 -> 0.9.522 → https://git.io/fAYY4
<{^_^}> [nixpkgs] @worldofpeace opened pull request #45665 → solargraph: 0.23.6 -> 0.25.1 → https://git.io/fAYYi
jmeredith has quit [Quit: Connection closed for inactivity]
jperras has quit [Quit: WeeChat 2.2]
Dagger has quit [Excess Flood]
Purple-mx has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f412e19996f (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
blankhart has joined #nixos
<blankhart> is there something i have to do to trigger the overrides in https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/configuration-common.nix?
<blankhart> that seem to be the reason my attempts to build tensorflow don't work - selections of particular versions of haskell libraries that have since been updated
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Purple-mx> where are the 'SLNOS' patches/tree?
<Purple-mx> or are they keeping it secret
<Purple-mx> Id like to start writing s6 services
slack1256 has joined #nixos
adisbladis has quit [Quit: WeeChat 2.1]
adisbladis has joined #nixos
slack1256 has quit [Remote host closed the connection]
blankhart has quit [Quit: WeeChat 1.9.1]
adisbladis has quit [Quit: WeeChat 2.1]
adisbladis has joined #nixos
daveo_ has quit [Read error: Connection reset by peer]
adisbladis has quit [Quit: WeeChat 2.1]
adisbladis has joined #nixos
Izorkin has joined #nixos
logzet has joined #nixos
daveo has quit [Ping timeout: 252 seconds]
<typetetris> blankhart: I fixed hunspell-hs in nixos and upstreamed the change, so it is fixed on hackage as well.
lawlesseel has joined #nixos
hamishmack has quit [Ping timeout: 268 seconds]
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
b has quit [Quit: Lost terminal]
Drakonis[m] has quit [Ping timeout: 260 seconds]
rycee[m] has quit [Ping timeout: 255 seconds]
devr[m] has quit [Ping timeout: 256 seconds]
MichaelEden[m] has quit [Ping timeout: 252 seconds]
Elephant454[m] has quit [Ping timeout: 252 seconds]
Dt[m] has quit [Ping timeout: 252 seconds]
tfc[m] has quit [Ping timeout: 252 seconds]
timokau[m] has quit [Ping timeout: 240 seconds]
wolkenbruch[m] has quit [Ping timeout: 260 seconds]
schmittlauch[m] has quit [Ping timeout: 260 seconds]
rnhmjoj[m] has quit [Ping timeout: 260 seconds]
nmikhailov[m] has quit [Ping timeout: 252 seconds]
kainospur[m] has quit [Ping timeout: 252 seconds]
hl[m] has quit [Ping timeout: 252 seconds]
ahbnr[m] has quit [Ping timeout: 264 seconds]
goibhniu[m] has quit [Ping timeout: 264 seconds]
xobroll[m] has quit [Ping timeout: 264 seconds]
k0d3fr34k[m] has quit [Ping timeout: 264 seconds]
musicmatze[m] has quit [Ping timeout: 264 seconds]
omawnakw[m] has quit [Ping timeout: 264 seconds]
dtz[m] has quit [Ping timeout: 264 seconds]
fgaz has quit [Ping timeout: 264 seconds]
timclassic has quit [Ping timeout: 264 seconds]
rdesfo[m] has quit [Ping timeout: 260 seconds]
DavidLeung[m] has quit [Ping timeout: 260 seconds]
U[m] has quit [Ping timeout: 260 seconds]
lkjhgfdsa00xxx[m has quit [Ping timeout: 260 seconds]
CoopDot[m] has quit [Ping timeout: 260 seconds]
sargon[m] has quit [Ping timeout: 260 seconds]
bhipple[m] has quit [Ping timeout: 260 seconds]
bennofs[m] has quit [Ping timeout: 260 seconds]
wervenyt[m] has quit [Ping timeout: 256 seconds]
hendrik[m]1 has quit [Ping timeout: 256 seconds]
craige[m] has quit [Ping timeout: 256 seconds]
bendlas[m] has quit [Ping timeout: 256 seconds]
Khorne[m]1 has quit [Ping timeout: 252 seconds]
PlasmaStrike[m] has quit [Ping timeout: 252 seconds]
bkchr[m] has quit [Ping timeout: 260 seconds]
TaoHansen[m] has quit [Ping timeout: 260 seconds]
mudri[m] has quit [Ping timeout: 260 seconds]
Ralith has quit [Ping timeout: 260 seconds]
tokudan[m] has quit [Ping timeout: 260 seconds]
Pneumaticat has quit [Ping timeout: 240 seconds]
florianjacob has quit [Ping timeout: 240 seconds]
MarkOtaris has quit [Ping timeout: 255 seconds]
philipp[m] has quit [Ping timeout: 264 seconds]
admintgs[m] has quit [Ping timeout: 264 seconds]
thefloweringash has quit [Ping timeout: 260 seconds]
slabity has quit [Ping timeout: 260 seconds]
sphalerit has quit [Ping timeout: 260 seconds]
Purple-mx has quit [Ping timeout: 276 seconds]
ejpcmac has quit [Ping timeout: 260 seconds]
leftfold[m] has quit [Ping timeout: 255 seconds]
happyente[m] has quit [Ping timeout: 276 seconds]
adamantium has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
timclassic has joined #nixos
Ralith has joined #nixos
schmittlauch[m] has joined #nixos
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
bennofs[m] has joined #nixos
florianjacob has joined #nixos
kyren has quit [Read error: Connection reset by peer]
kyren has joined #nixos
fgaz has joined #nixos
roberth has joined #nixos
hyper_ch2 has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
aither has joined #nixos
shabius has quit [Read error: Connection reset by peer]
shabius has joined #nixos
sb0 has quit [Quit: Leaving]
slyfox_ has joined #nixos
FRidh has joined #nixos
slyfox has quit [Ping timeout: 268 seconds]
nixy has quit [Ping timeout: 264 seconds]
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
nixy has joined #nixos
periklis has joined #nixos
trcc has joined #nixos
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #45643 → Staging next → https://git.io/fAm2y
<{^_^}> [nixpkgs] @FRidh pushed 10 commits to master: https://git.io/fAYnl
<{^_^}> [nixpkgs] @FRidh pushed 51 commits to staging: https://git.io/fAYnB
<{^_^}> [nixpkgs] @FRidh pushed 312 commits to staging-next: https://git.io/fAYn0
hamishmack has joined #nixos
witchof0x20 has quit [Remote host closed the connection]
witchof0x20 has joined #nixos
Ariakenom has joined #nixos
<jonge> hi there. is there a possibility to tell nix to just ignore binary caches if they are offline?
Fare has quit [Ping timeout: 272 seconds]
<typetetris> jonge: `--option substituters ""`
<srhb> jonge: No, but you can ad-hoc specify --substituters ""
<jonge> srhb: typetetris: my use case is that we have some haskellers in the company and thus rebuild a lot of libs all the time. if each other could just set each other's laptop as binary substituter for building as some kind of default setting, this would be pretty cool.
<jonge> providing that list in the cmd line on every nix-shell or nix-build would be very clunky :(
endformationage has quit [Quit: WeeChat 1.9.1]
<srhb> jonge: There's no good way to do that. Better to make everyone push their builds to a shared cache.
<jonge> srhb: we will soon have a shared cache in the company intranet. but then again nix is useless if that is not available outside. so it seems that the usecase of a binary cache that is "mostly" online is kind of not a supported case in nix configs at all?
orivej has joined #nixos
ThatDocsLady has joined #nixos
<srhb> jonge: No, not really.
<srhb> jonge: Why not just make it available outside? Through a VPN or whatnot.
<jonge> srhb: yeah it is available via vpn. i am using nix in order to get away from depending on the company vpn for everything, because sometimes it's not reachable very well (for good and bad reasons)
<typetetris> jonge: Would it be to cumbersome to set up a bash alias for example `alias nix-build-outside = nix-build --option substituters ""` and use `nix-build-outside` if your combanies cache isn't available to you?
<{^_^}> [nixpkgs] @leenaars opened pull request #45666 → pdftag: init at 1.0.3 → https://git.io/fAYCZ
Izorkin has quit [Ping timeout: 264 seconds]
<jonge> typetetris: i think this is feasible. i hope that this works out
<srhb> jonge: If at all possible, you could offer up a secured version of the cache outside.. Eg with http auth on.
<jonge> srhb: not sure if this is smart. we're building our proprietary IP with nix
<srhb> And there's also the option of using a a ssh substituter, if it's possible to ssh in through a bastion or something.
<srhb> jonge: Right..
<srhb> jonge: Meh, it's hard to make it very ergonomic and keep it very secure. :)
<jonge> srhb: right. although... if nix would say "let's first see which caches are available.... only 1? ok, let's use just that, then..."
Izorkin has joined #nixos
<srhb> jonge: Maybe you could wrap this up in a nicer checker around nix commands that chooses substituters based on some initial test?
<srhb> Since you can always _remove_ substituters even as an unprivileged user, that should be doable.
<jonge> srhb: that makes a lot of sense, yes. although i wonder if this functionality would be accepted if someone provided the patches for it.
<srhb> I'd be happy to back it at least :)
<jonge> which component would that be? just the nix binary?
<srhb> But if not, I think a wrapper makes a lot of sense and wouldn't be too hard
<srhb> jonge: Something in Nix, possibly the daemon? Not sure.
<srhb> Although maybe doing it in the binary is indeed simpler
<srhb> Since, again, we're only offering to remove some substituters.
<jonge> i guess the only scenario where you don't want to ignore offline substituters is on pure-deployment machines where you don't want/can't compile yourself for some reason, right?
<srhb> I don't want to end up having to build chromium ever, but I guess people have different opinions there :P
<clever> jonge: i have previously seen a bug in the livecd that broke binary caches, and sometimes a user just thinks a rebuild-the-world style gentoo install is normal, lol
<jonge> lol.
<srhb> To be fair, we do have a fair amount of people coming from Gentoo :P
<jonge> yeah when i tell my friends about nixos they usually say "sounds like gentoo on steroids"
<clever> gentoo was my main OS, prior to discovering nixos
fendor has joined #nixos
fendor has quit [Client Quit]
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAYWI
<{^_^}> [nixpkgs] @srhb merged pull request #45665 → solargraph: 0.23.6 -> 0.25.1 → https://git.io/fAYYi
<{^_^}> [nixpkgs] @Mic92 merged pull request #45642 → mandoc: 1.13.4 -> 1.14.4 → https://git.io/fAmuj
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fAYWn
<{^_^}> [nixpkgs] @basvandijk merged pull request #44529 → Fix gi vte haskell pkg → https://git.io/fNXFt
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to haskell-updates: https://git.io/fAYW0
amosbird has quit [Quit: ZNC 1.7.0 - https://znc.in]
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45664 → lollypop: 0.9.521 -> 0.9.522 → https://git.io/fAYY4
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAYWH
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
Tucky has joined #nixos
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
adamantium has joined #nixos
eon` has joined #nixos
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
amosbird has joined #nixos
adisbladis has quit [Quit: WeeChat 2.1]
adisbladis has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goibhniu has joined #nixos
civodul has joined #nixos
<viric> How do people roam with new wifi access points, in NixOS?
arianvp has joined #nixos
<viric> I have my own scripts since 10 years ago but maybe something came to do that job
* etu just use NetworkManager
<viric> what is that? a daemon with multiple clients?
kyren has joined #nixos
<etu> Yeah
<viric> I will try
<viric> does it allow choosing cable, with specific static ip address, and all that?
<viric> (if told so)
<{^_^}> [nixpkgs] @peti closed pull request #45658 → libyaml: update from 0.1.7 to 0.2.1 → https://git.io/fAmxc
<etu> viric: It supports lots of stuff, I find it good on desktops etc, not much on servers.
<{^_^}> [nixos-homepage] @edolstra merged pull request #235 → Update the number of packages in index.tt and about.tt → https://git.io/fALjy
<{^_^}> [nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/fAY4U
<ekleog> the issue I personally had with it is when managing a variety of VPNs (as well as the fact it becomes near-to-impossible(?) to git the networks configuration then)
kyren has quit [Quit: Textual IRC Client: www.textualapp.com]
<srhb> I prefer never to use it for vpn. It really is terrible at that... :-P
<etu> ekleog: you can write files yourself to /etc/NetworkManager/system-connections/ if you like, so it shouldn't be impossible to manage it somehow
<srhb> I just use it as a tolerable wifi manager and handle everything else separately.
lfam has quit [Ping timeout: 264 seconds]
<etu> srhb: We have a cisco VPN. I'd found the NetworkManager wrapping easier to use than the util itself :p
trcc_ has joined #nixos
arianvp has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @xeji merged pull request #45583 → udftools: 1.0.0b3 -> 2.0 → https://git.io/fAtXd
<{^_^}> [nixpkgs] @xeji pushed commit from @dguibert to master « udftools: 1.0.0b3 -> 2.0 (#45583) »: https://git.io/fAY46
__Sander__ has joined #nixos
<ekleog> etu: problem is, IIRC it's XML, so not really write-able by hand, and I'd rather not put my wifi passwords in the nix store until RFC5 isn't implemented :°
<etu> ekleog: Nope it's not xml
<srhb> etu: Oh, ouch, yes, I believe you.
<ekleog> (for VPNs, NM doesn't support eg. tinc, and IIRC they closed the issue asking for support as wontfix because the UI of tinc is just so different from the UI all other VPNs provide (not criticizing, that does make sense))
<etu> ekleog: Looks like ini-files with [sections]
trcc has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAY4p
<ekleog> etu: hmm…? somehow I had remembered from last time I checked (~2yrs ago?) that it was a file format I'd never manage to write by hand, sounds like I was misremembering, or things changed :)
kenshinCH has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fAYBJ
* etu doesn't know how it was before, but now they are kinda nice :)
<ekleog> (can't find again the wontfix'd issue for tinc support in NM, so let's call that FUD too, the only tangible fact being that NM doesn't currently support tinc and https://blogs.gnome.org/dcbw/2011/05/24/networkmanager-0-9-pidgin-and-tinc/ makes it sound like it isn't close to being supported :))
makefu has joined #nixos
<etu> ekleog: Doesn't seem to be any networkmanager-tinc package or so either :/
<{^_^}> [nixpkgs] @adisbladis opened pull request #45667 → weechat-matrix-bridge: 2018-01-10 -> 2018-05-29 → https://git.io/fAYB4
<ekleog> http://www.tinc-vpn.org/pipermail/tinc/2011-May/002701.html / http://www.tinc-vpn.org/pipermail/tinc/2011-May/002703.html sounds like the story is not as bleak as the one depicted in the blog post above :) though there seems to be nothing yet
* etu is planning to use wireguard in the future for his private use anyways
<etu> But work requires me to have cisco vpn
<ekleog> yeah, wireguard is among my list of things to try someday
<ekleog> blocked on it being upstreamed, currently :°
<viric> etu: what's wrong on servers, from network-manager?
<etu> viric: Well, it works there as well. But I tend to want to configure IP's statically. Sure you can do that with NetworkManager if you want. But I'd prefer to do it in Nix on servers.
thc202 has joined #nixos
Thra11 has joined #nixos
<r2d2leboss> symphorien: Thanks. I've been able to build and now run nix on Windows using Cygwin with some small fixes. Cygwin is acceptable for nix binary itself. However, my goal is to produce native Windows binaries then using MinGW. I now have some issues with ".nix" files (especially CMake) but it's another issue.
<viric> etu: by "do it", what is it?
makefu has quit [Quit: WeeChat 2.0]
leotaku has quit [Ping timeout: 268 seconds]
<etu> viric: Configure network?
<viric> ah ok
<viric> by nix = static config in configuration.nix
<etu> yeah
sb0 has joined #nixos
johanot has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #45667 → weechat-matrix-bridge: 2018-01-10 -> 2018-05-29 → https://git.io/fAYB4
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fAY0s
__Sander__ has quit [Ping timeout: 272 seconds]
__Sander__ has joined #nixos
sigmundv__ has joined #nixos
sb0 has quit [Ping timeout: 264 seconds]
graphene has quit [Remote host closed the connection]
trcc_ has quit [Remote host closed the connection]
trcc has joined #nixos
graphene has joined #nixos
graphene has quit [Remote host closed the connection]
trcc has quit [Read error: Connection reset by peer]
trcc has joined #nixos
graphene has joined #nixos
graphene has quit [Read error: Connection reset by peer]
lawlesseel has quit [Ping timeout: 250 seconds]
graphene has joined #nixos
mayhewluke has quit [Ping timeout: 264 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kisik21 has joined #nixos
<tilpner> davidcl - Of course they would, if it makes them more money
<genesis> i wonder when kernel upgrate to 4.18 #31999
<{^_^}> https://github.com/NixOS/nixpkgs/issues/31999 (by jflanglois, 39 weeks ago, open): Intel graphics performance degraded after upgrade to kernel 4.14
<tilpner> Oops, *daveo_
<genesis> next release if i understand.
sb0 has joined #nixos
makefu has joined #nixos
<srhb> genesis: Current unstable kernel is already 4.14
<srhb> Which appears to be what that issue discusses.
<genesis> yes, i speak about 4.18 :)
<genesis> that seems to fix the issue
<srk> boot.kernelPackages = pkgs.linuxPackages_latest;
<srhb> I don't think there are any plans to use 4.18 for NixOS 18.09?
<srhb> At least, I haven't heard of it.
<genesis> oki
<adisbladis> 4.14 is lts. 4.18 is not.
<srk> genesis: depending on the nixpkgs version you have you can use linuxPackages_latest, if you pull recent enough version you'll get 4.18
<genesis> linuxPackages_latest = linuxPackages_4_18 oki
<genesis> thanks for help
<srk> which one is the next lts?
<srhb> In unstable at least. In 18.03 it's 4.17.18
<adisbladis> So setting the kernel to 4.18 by default would not be good since we cant keep that version around for a release cycle.
<genesis> because it's a very very annoying bug.
<srk> srhb: I'm getting 'nvidia is broken' when I try to switch to 4.18
<srk> I wonder what else is blocking it for unstable
<etu> srk: linuxPackages_4_17 works with nvidia :)
<srk> yeah, I'm
<{^_^}> [nixpkgs] @pSub pushed 0 commits to update-udunits: https://git.io/fAYzx
<srk> "stuck" on 4.17 :D
<adisbladis> srk: Iirc they don't really have a fixed lts schedule
<srk> ah
<srhb> srk: There was some talk about that recently, and there were also some fs issues. I think most are being resolved.
<srk> cool!
mayhewluke has joined #nixos
<etu> The kernel team seems to be like: "this kernel feels good, lets make it an lts"
<etu> Nothing wrong with that imo
<genesis> fuck nvidia;)
adisbladis has quit [Quit: WeeChat 2.1]
genesis has quit [Remote host closed the connection]
genesis has joined #nixos
trcc has quit [Remote host closed the connection]
logzet has quit [Ping timeout: 276 seconds]
trcc has joined #nixos
adisbladis has joined #nixos
ris has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45281 → nixos/zsh: Adds enableGlobalCompInit option → https://git.io/fAekt
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fAY2o
<symphorien> r2d2leboss: in case it turns out to be too hard, you can cross compile from linux https://github.com/NixOS/nixpkgs/pull/44632
<{^_^}> #44632 (by matthewbauer, 2 weeks ago, merged): Support building putty for windows
trcc has quit [Ping timeout: 264 seconds]
<adisbladis> infinisil: Were you using nixops for your personal machines?
<adisbladis> I'm considering switching over my laptop to use nixops too but I'm thinking if there are any unforeseen drawbacks
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon3 is now known as Mateon1
<srhb> adisbladis: I know elvishjerricco is.
asymmetric has joined #nixos
ericsagnes has quit [Ping timeout: 252 seconds]
trcc has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #45668 → pythonefl: 1.20.0 -> 1.21.0 → https://git.io/fAYax
<{^_^}> [nixpkgs] @ThibautMarty opened pull request #45669 → herbstluftwm: 0.7.0 -> 0.7.1 → https://git.io/fAYVe
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fAYVU
<{^_^}> [nixpkgs] @adisbladis merged pull request #45562 → libuv: 1.21.0 -> 1.23.0 → https://git.io/fAt8x
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to staging: https://git.io/fAYVY
trcc has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #44990 → nixos/switch-to-configuration: reload user units → https://git.io/fNF6z
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAYVW
<genesis> so Mic92 , quoting or not quoting, that's the question :þ
<Mic92> genesis: nix restricts the character set of allowed store paths: https://github.com/NixOS/nix/blob/master/src/libexpr/lexer.l#L92
<genesis> yes that's why i've to use name in fetchurl sample-map
<genesis> i don't see why quoting, but in fact i don't care, i'd prefer this debate would not annoying stupid packager like me
trcc has joined #nixos
ng0 has quit [Quit: WeeChat 1.6]
<Mic92> Well debates are sometimes necessary to reach consensus and consistent reviews.
<genesis> yeap
ng0 has joined #nixos
<Mic92> also reviews are still fast in nixpkgs. I contributed to projects where it took a whole year to get something in.
<genesis> yes, on gentoo, sometime i receive an answer
<genesis> on an ebuild i made ... 10 years ago
<genesis> and not once.
<genesis> (so i stopped to package for them quickly)
slyfox_ is now known as slyfox
<genesis> it seems i did more contrib on nixos in 3 months than i did for gentoo in 15 years.
<genesis> thanks your process.
trcc_ has joined #nixos
trcc has quit [Read error: Connection reset by peer]
trcc_ has quit [Read error: Connection reset by peer]
trcc has joined #nixos
trcc_ has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
trcc has quit [Ping timeout: 244 seconds]
alexteves has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45657 → navit: add supports, xkdb, and many fixes → https://git.io/fAmbG
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAYrf
simukis has joined #nixos
<{^_^}> [nixpkgs] @johanot opened pull request #45670 → nixos/kubernetes: Module refactor → https://git.io/fAYrn
graphene has quit [Remote host closed the connection]
trcc_ has quit [Read error: Connection reset by peer]
viric has quit [Read error: Connection reset by peer]
viric has joined #nixos
graphene has joined #nixos
trcc has joined #nixos
__monty__ has joined #nixos
viric_ has joined #nixos
viric has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 264 seconds]
polman has quit [Ping timeout: 240 seconds]
<Ariakenom> Hello. How do I learn to use nix?
<{^_^}> [nixpkgs] @Profpatsch merged pull request #44677 → bazel: 0.15.2 -> 0.16.0 → https://git.io/fNySb
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @regnat to master « bazel: 0.15.2 -> 0.16.0 »: https://git.io/fAYKB
<infinisil> adisbladis: yes i am, but I'm actually considering switching away to a simple nixos-rebuild-in-a-for-loop
<infinisil> Because I don't need all that nixops flexibility, all my machines are just 'other' targets (normal nixos machines)
eeva has quit [Remote host closed the connection]
b has joined #nixos
phreedom has quit [Remote host closed the connection]
eeva has joined #nixos
<infinisil> And some drawbacks are: no easy way to evaluate machine configuration on its own, i can't easily nix-instantiate --eval '<nixpkgs/nixos>' -A config.foo.bar. I made a small hack so I could have this anyways, but it's not nice
<infinisil> I can't make it use nix 2.0 afaik because nixops uses 1.11
phreedom has joined #nixos
<infinisil> I originally used nixops so I could have machines depend on each others configuration, but this is suuper slow with nixops
<infinisil> Also having to keep around the nixops state is annoying
<infinisil> adisbladis: so yeah, that's my experience
<tilpner> infinisil - I structured mine into devices.*, an attrset of system evaluations, and use that to deploy with nix copy
<tilpner> (So no state)
<tilpner> I then type "nid device_name" and it deploys there
<gchristensen> infinisil: maybe look at nix-deploy
<tilpner> It does rely on having your ssh key registered everywhere, so not sure how well it would work for shared deployments
<infinisil> tilpner: gchristensen: thanks I'll take a look those
logzet has joined #nixos
<ij> I made an expression for vitetris: https://clbin.com/o48Z0 Should I fix anything before I make a PR?
<ocharles> Anyone running a laptop with an nVidia card and has a way to get vulkan apps to run on the nvidia card?
rtjure has quit [Ping timeout: 276 seconds]
<ij> Ariakenom, Check out nixpkgs source, install nixos, play with nix-shell for some development project.
<ij> The answer might be different depending on what goal you've got in mind.
<Ariakenom> ij: I've installed it and played iwth it for a while. Was looking to see if there was some other recommended way. I'll continue on my path then!
<Ariakenom> thanks
<ij> Ariakenom, surely also learn the syntax, to program in it and make some derivations
<genesis> ij : and use fetchFromGitHub since it saves bandwith fetching tarball if i remember
<ij> how
<disasm> hyper_ch: what's up? Saw you pinged a few days back.
<srhb> ij: grep -r fetchFromGitHub in pkgs/ and you'll find a lot of examples :)
<ij> Sorry — nono, I know how to use it :) I was wondering why does it save bandwidth?
<srhb> Ah, github serves automatic tarballs of that commit ref
<srhb> Ie. flat and without git history
<Ariakenom> ij: indeed
<ij> ah
<srhb> We grab those with fetchFromGitHub :)
<srhb> ij: It turns the 800MiB of nixpkgs into like 10MiB :-P
<ij> nice!
<ij> genesis, that repo doesn't have version tags
<ij> /refs
<srhb> Yes it does
<srhb> Every release turns into one
rtjure has joined #nixos
<srhb> That's what fetchFromGitHub will get given rev = "v0.57.2";
<vbernat> tilpner: do you have a blog post or a github repo to look at for how you manage that?
<ij> srhb, ah, I missed the "tags" tab on the branches button. Oops. :)
<srhb> :)
<srhb> Or just click "releases"
peel_ has joined #nixos
<ldlework> jesus christ
<ldlework> i just ran "nix-env -i" on accident
<ldlework> and it installed every package?!!
hamishmack has joined #nixos
<ldlework> wtf lol
<ldlework> is there a way to roll nix-env back before that?
<ldlework> oh god
<srhb> Well, that's what you told it to! :-P
<srhb> Didn't you cancel it? :P
<srhb> But yeah, --rollback
<srhb> I'd be surprised if you manage to run it to completion though
<ldlework> it didn't and failed
<ldlework> phew
<srhb> It should take... Quite a while for it to complete, even if everything was unbroken :-P
<ij> Here's the new version: https://clbin.com/gyE8g
<srhb> ij: Needs at least a meta section, and maybe there's a better way to tell it where to install, but otherwise lgtm.
peel_ is now known as peel
<ij> Is there a list of license shorthands or is it very much free-foramt?
<genesis> ij : i wonder if you should use a patchPhase and let default configurePhase let's go
<ij> is --prefix=$out supplied by default in configurePhase?
<ij> should I add myself to the maintainers list?
<genesis> perharps, i'm not sure :)
<ij> it didn't seem so
<genesis> use a configureFlags
<genesis> configureFlags = [ "--prefix=$(out)" ];
<genesis> you have to add you to maintainers.
<ij> Alright.
sb0 has quit [Quit: Leaving]
silver has joined #nixos
<srhb> Or use makeFlags directly
jpab has joined #nixos
jpab has left #nixos [#nixos]
<genesis> the german reviewers are hardcore, so let'us make all the chances it'll be merge :-D
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/718ee42eb97 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<ij> genesis, srhb, configureFlags/makeFlags = score!
<genesis> always check if you can use a Flags option instead of override default phase.
<srhb> ij: :)
<ij> It's my first derivation. :P
<genesis> i think we all get that :D
<srhb> ij: It's great ! By the way, don't ever be afraid to just open a PR, even if you're in doubt. Your pre-PR efforts are apprecicated though :)
<ij> :)
<tilpner> ocharles - This one apparently has: https://nixos.wiki/wiki/Nvidia#Nvidia_PRIME
exarkun_ has quit [Read error: Connection reset by peer]
<ij> Is all-packages.nix (semi-|un)ordered?
<tilpner> vbernat - I do not, currently. I can discuss it and share files though
<srhb> ij: The ordering is explained in the top comment :)
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 6 commits to haskell-updates: https://git.io/fAYMp
<{^_^}> [nixpkgs] @peti pushed 6 commits to master: https://git.io/fAYMh
mayhewluke has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @peti closed pull request #45560 → libyaml: 0.1.7 -> 0.2.1 → https://git.io/fAtlY
mayhewluke has joined #nixos
exarkun_ has joined #nixos
tg has quit [Ping timeout: 265 seconds]
tg has joined #nixos
<manveru> wait, there's ordering?
<LnL> :p
rtjure has quit [Ping timeout: 272 seconds]
<manveru> 3 years of using nixpkgs and i never read that comment... :P
<gchristensen> "ordering"
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
philippD has joined #nixos
aarvar has quit [Ping timeout: 272 seconds]
rtjure has joined #nixos
trcc has quit [Ping timeout: 272 seconds]
<ij> how should I update my old nixpkgs fork? Just --force it?
<{^_^}> [nixpkgs] @siers opened pull request #45672 → vitetris: init at 0.57.2 → https://git.io/fAYSt
rprije has quit [Ping timeout: 272 seconds]
<ij> me ↑
<genesis> manveru : i should admit i neither :')
<genesis> s/i/me
<etu> ij: I usually add upstream nixpkgs as an additional remote that I call upstream. Then I do: git fetch upstream; git rebase upstream/master; git push
<etu> ij: Unless you commit things on your own master you won't need to force it ever.
Dedalo has joined #nixos
orivej has joined #nixos
iyzsong-x has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
<genesis> ij: let's try this nix-review on your PR
iyzsong has quit [Ping timeout: 268 seconds]
<avn> ij: I usually rebase my WIP branch on top of current master
trcc has joined #nixos
iyzsong-x has quit [Read error: Connection reset by peer]
<yorick> adisbladis: I used to be, but why use nixops instead of nixos-rebuild --target-host if you don't need any of the provisioning
alex`` has joined #nixos
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @ejpcmac opened pull request #45673 → elixir_1_7: 1.7.2 -> 1.7.3 → https://git.io/fAYHR
<mkaito> how do I ask nix to tell me the output store path of a derivation without actually building it?
<gchristensen> what for, mkaito? and in the Nix language or in the CLI?
<yorick> mkaito: nix show-derivation
<mkaito> yorick: cheers
<mkaito> to copy a closure from my CI server :P
<yorick> mkaito: this is why I put the output names in the buildkite metadata
revtintin has joined #nixos
<mkaito> oh good to know
<infinisil> mkaito: `nix-instantiate --eval '<nixpkgs>' -A hello.outPath` would work too
<infinisil> Although I guess json is nicer
<mkaito> doesn't that build the derivation?
<mkaito> "package lacks a valid signature" -> "you're not in the cool club, please use sudo or add yourself to trusted users". Nix error messages are meme worthy dammit.
<infinisil> mkaito: Nope, nix-instantiate never builds anything, and with the --eval flag it doesn't instantiate the derivation either
<infinisil> And nix-instantiate is actually much faster I'm noticing
<infinisil> Probably because nix show-derivation *does* instantiate the derivation
bkchr[m] has joined #nixos
<bkchr[m]> When I use `crossSystem`, `nativeBuildInputs` should be used from the compiling platform?
<gchristensen> (infinisil, nix-instantiate will build stuff if you use IFD)
trcc has quit [Remote host closed the connection]
<infinisil> gchristensen: Even with --eval?
trcc has joined #nixos
<infinisil> I think it just fails in that case
<gchristensen> does it?
<gchristensen> dunno
trcc has quit [Ping timeout: 244 seconds]
<infinisil> > import (pkgs.fetchurl { url = "foobar"; sha256 = "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1j"; })
<{^_^}> cannot import '/nix/store/ilg7agjd90ifspmdggnq8qz83w23mc54-foobar', since path '/nix/store/bbcchb4kz4hs2xpf8hpam2wjg8rm77bb-foobar.drv' is not valid, at (string):171:1
endformationage has joined #nixos
<infinisil> gchristensen: Apparently so, the bot is using nix-instantiate --eval
<gchristensen> nice
<{^_^}> [nixpkgs] @adisbladis pushed 4 commits to master: https://git.io/fAY7T
<{^_^}> [nixpkgs] @adisbladis merged pull request #45630 → go_1_11: init at 1.11 and set as default → https://git.io/fAmJR
timj has joined #nixos
<infinisil> gchristensen: Oh! Add --read-write-mode to it and it will indeed do IFD
blankhart has joined #nixos
<yorick> mkaito: add our signing keys to your nix config
<yorick> mkaito: serokell-1:aIojg2Vxgv7MkzPJoftOO/I8HKX622sT+c0fjnZBLj0= or the cachix one
orivej has quit [Ping timeout: 272 seconds]
<mkaito> slack not working for you today either, yorick?
<mkaito> keeps timing out on me...
<{^_^}> [nixpkgs] @alexbiehl opened pull request #45674 → More conservative SCC tagging for Haskell libraries → https://git.io/fAY5a
bennofs has joined #nixos
nefix_ has joined #nixos
<nefix_> Hey there!
<nefix_> I've been using NixOS for two days now
<nefix_> I was wondering if there's a way to handle correctly dotfiles
<nefix_> Like to have all the configurations in a .nix file or something
<etu> nefix_: You can always look at home-manager: https://github.com/rycee/home-manager -- It's not the only way but it's one way :)
jperras has joined #nixos
<gchristensen> there is no canonical way though
<yorick> mkaito: today is not a slack day
<nefix_> Also I have a question regarding Golang
<nefix_> I had to install go-sqlite3 and I needed CGo
<nefix_> I created this thing called shell
<nefix_> But I was wondering if there's a way to already have it in the go environment
<nefix_> And if I should create a default.nix for each Go package I want to download
<{^_^}> [nixpkgs] @xeji merged pull request #45597 → mate.eom: 1.21.0 -> 1.21.2 → https://git.io/fAqL5
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.eom: 1.21.0 -> 1.21.2 (#45597) »: https://git.io/fAYd9
Aexoden has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #45592 → gmsh: 3.0.6 -> 4.0.0 → https://git.io/fAqJp
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « gmsh: 3.0.6 -> 4.0.0 (#45592) »: https://git.io/fAYFF
jD91mZM2 has joined #nixos
<{^_^}> [nixpkgs] @manveru opened pull request #45675 → crystal: 0.25.1 -> 0.26.0 → https://git.io/fAYbk
exarkun_ has quit [Read error: Connection reset by peer]
hax404 has quit [Ping timeout: 255 seconds]
<jD91mZM2> Hi! I can't run duplicity with a BackBlaze B2 backend. On stable, it complains about "FatalBackendException: Bucket cannot be created". On unstable, however, it's a little more informative and says "BackendException: B2 backend requires B2 Python APIs (pip install b2)". Is this a fault of the package? Should I make a PR to fix it?
the-kenny has quit [Ping timeout: 268 seconds]
ericsagnes has joined #nixos
Leo` has quit [Ping timeout: 268 seconds]
eisbaer-north has quit [Ping timeout: 268 seconds]
<goibhniu> jD91mZM2: a PR to fix it would be great!
eisbaer-north has joined #nixos
dkibi has quit [Remote host closed the connection]
<jD91mZM2> goibhniu: Should it be an optional dependency using some kind of feature flag?
exarkun_ has joined #nixos
the-kenny has joined #nixos
hax404 has joined #nixos
iyzsong has quit [Ping timeout: 272 seconds]
<goibhniu> I have no idea what BackBlaze is, but if it's commonly used and doesn't add much to the size of the closure, maybe you could just include it by default?
<jD91mZM2> goibhniu: It's a cheap storage service that can be used for backend in duplicity. Thanks for the input, will make a PR asap!
<goibhniu> cool, thanks!
ben has joined #nixos
bennofs has quit [Ping timeout: 264 seconds]
<philippD> Are there any cool ways of integrating nix with incremental builds or file watchers? I currently just run entr that watches my sources and runs nix-build each time they change but that seems a bit janky.
blankhart has quit [Ping timeout: 276 seconds]
<mdash> philippD: does it work poorly?
<manveru> philippD: that's pretty much my setup too
<manveru> it's alright if you make the derivations granular enough that you don't rebuild the whole thing every time... but hard to do :|
<philippD> It does a full compile each time. but cabal for example allows you to just rebuild changed files which can save a lot of time.
<manveru> usually a nix-shell is better then
Leo` has joined #nixos
Fare has joined #nixos
<nefix_> Is git-flow avaliable in NixOS?
<etu> ,locate git-flow
<{^_^}> Found in packages: oh-my-zsh, gitAndTools.gitflow
<nefix_> Maybe the second?
<etu> nefix_: Yes, in: gitAndTools.gitflow
<etu> :)
<nefix_> Is it installed as the other packages? Because normally the package names aren't started with gitAndTools
<etu> Just like others but with the gitAndTools. in there
<nefix_> like
nadley has quit [Remote host closed the connection]
<nefix_> nix-env -i gitAndTools.gitflow ?
<etu> Yeah, that should work
<nefix_> And in the configuration?
<manveru> -iA
<manveru> nefix_: the same
<nefix_> Okay, thanks!
<{^_^}> [nixpkgs] @alexbiehl opened pull request #45676 → More conservative SCC tagging for Haskell libraries → https://git.io/fAYxd
<{^_^}> [nixpkgs] @alexbiehl closed pull request #45674 → More conservative SCC tagging for Haskell libraries → https://git.io/fAY5a
<{^_^}> [nixpkgs] @alexbiehl closed pull request #45676 → More conservative SCC tagging for Haskell libraries → https://git.io/fAYxd
<{^_^}> [nixpkgs] @alexbiehl opened pull request #45677 → More conservative SCC tagging for Haskell libraries → https://git.io/fAYpU
<tilpner> jD91mZM2 - Just yesterday, someone had the same problem. Solved by adding backblaze-b2 to propagatedBuildInputs. I suggested adding an off-by-default config argument to duplicity that would add this dependency
<jD91mZM2> tilpner: Oh, backblaze-b2 is a python package already?
cfricke has joined #nixos
<jD91mZM2> I just tried to make a new one called "b2" :|
Izorkin has quit [Ping timeout: 264 seconds]
<Thra11> What do I need to do to get the pkg-config setup hook to add a dependency to PKG_CONFIG_PATH? I want cmake to be able to find lcms2, which has a pkgconfig file at /nix/store/8h...mf-lcms2-2.9-dev/lib/pkgconfig/lcms2.pc
the-kenny has quit [Ping timeout: 264 seconds]
ben has quit [Ping timeout: 264 seconds]
eisbaer-north has quit [Remote host closed the connection]
eisbaer-north has joined #nixos
Denommus has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #45673 → elixir_1_7: 1.7.2 -> 1.7.3 → https://git.io/fAYHR
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fAYhX
drakonis has joined #nixos
<Enzime> is there a difference between using disabled and meta.broken in a derivation?
Fare has quit [Ping timeout: 252 seconds]
dbmikus__ has joined #nixos
<nefix_> Could someone try to explain me how pkgs.fetchFromGithub works?
<Thra11> I can't seem to find any documentation about using cmake + pkgconfig in nix builds, but it's such a common way for packages to find their dependencies, that it must work somehow.
orivej has joined #nixos
the-kenny has joined #nixos
johanot has quit [Quit: leaving]
<nefix_> How can I get the sha256 of a commit?
<samueldr> ,tofu nefix_
<{^_^}> nefix_: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<nefix_> What?
<Enzime> nefix_: where is this commit?
<Enzime> are you looking for the commit hash?
<nefix_> Is the nixpkgs latest commit
<Enzime> nefix_: why do you want the sha256 of a commit?
<nefix_> for pkgs.fetchFromGitHub
<yorick> nefix_: nix-prefetch-github exists now
<nefix_> what's that?
<Enzime> nefix_: what samueldr was trying to tell you is just put in any hash that's wrong
<Enzime> and it'll tell you what the right hash is
<Enzime> then you just replace the incorrect hash with the correct one
<nefix_> Oh I see
<nefix_> Thanks both of you!
hyper_ch2 has quit [Quit: Page closed]
Aexoden has joined #nixos
Aexoden has quit [Client Quit]
Aexoden has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
cfricke has quit [Quit: WeeChat 2.1]
ThatDocsLady has joined #nixos
swflint has quit [Ping timeout: 265 seconds]
<genesis> should have a magic hash mecanism :')
pmade has joined #nixos
swflint has joined #nixos
<yorick> is there something like spiped in reverse? servers phoning home so I can ssh into them?
<yorick> but with a lot of resilience?
<gchristensen> like a RAT? :)
Fare has joined #nixos
<yorick> yes. the VPN is too error-prone
Ariakenom has quit [Ping timeout: 252 seconds]
<philippD> Is there a way to check if a file is a directory or a real file in a nix expression?
<srk> yorick: tor :)
<yorick> srk: too resource-intensive, and also often fails when something changes
<genesis> philippD isdirectory
<gchristensen> yorick: maybe you can more clearly describe the problem you're having and trying to solve, so we can think about the X in the X-Y problem
<srk> yorick: I'm about to try wireguard, looks nice
qyliss has quit [Quit: bye]
qyliss^work has quit [Quit: bye]
<philippD> genesis: where is isdirectory?
<gchristensen> zerotier is nice
<yorick> gchristensen: so I'm setting up wireguard, but if it fails (dns failure or systemd weirdness), then we can't reach the thing and need to get physical access
<gchristensen> isdirectory isn't a thing, genesis, philippD
<yorick> gchristensen: I was wondering if there is something more resilient, that tries to reconnect
<gchristensen> yorick: maybe your systemd job needs a Restart directive and a timeout, and maybe a timer which triggers a restart if it is Failed
<yorick> gchristensen: the wireguard job is a oneshot, so it can't restart
<genesis> sorry :)
<genesis> stats.isDirectory ?
qyliss has joined #nixos
Denommus has quit [Read error: Connection reset by peer]
<gchristensen> genesis: this isn't a Nix feature I know of, what is stats.isDirectory referring to?
<yorick> philippD: builtins.readDir, see if it errors
viric_ is now known as viric
<gchristensen> yorick: not even a Restart=failed directive?
<yorick> gchristensen: systemd says the oneshot service has to be Restart=none
<yorick> I can change the Type, but it will consider it `Started` prematurely
qyliss^work has joined #nixos
<gchristensen> yorick: w.r.t. readDir, how would you handle an error? I don't think you can
<yorick> gchristensen: builtins.tryEval?
<gchristensen> philippD: why do you want to do that?
<yorick> builtins.readDir the parent :)
<gchristensen> yorick: you could make it a "notify" job type, where you tell systemd if it is up
<yorick> I'm just trying to hack until https://github.com/NixOS/nixpkgs/pull/45392 makes it in
<{^_^}> #45392 (by dguibert, 6 days ago, open): nixos/wireguard: setup interface with systemd-networkd
[Leary] has quit [Ping timeout: 240 seconds]
<philippD> gchristensen: I create the arguments to my actual build program in nix. If the `src` attribute is a directory I have to add a special flag. I would like to build the whole argline in nix instead of inside the buildPhase script.
selfsymmetric-pa has joined #nixos
<selfsymmetric-pa> Hi #nixos. How do you install Emacs 26 with xwidget support? I tried this, and it compiles, but Emacs still reports that it does not have xwidget support. https://gist.github.com/matthew-piziak/f7e5ce877ee13f2c0532a7f4a69ff8f0
<selfsymmetric-pa> I could just be overriding things incorrectly. I'm new to the syntax.
johanot has joined #nixos
<selfsymmetric-pa> Er, sorry, I've added a typo on line 11. I should have pasted `withXwidgetsx = true;`. That's not my problem, since I compiled it without the typo and it still didn't have xwidgets support.
johanot has quit [Remote host closed the connection]
<gchristensen> philippD: yeah, probably better to not do it in Nix.
jperras has quit [Ping timeout: 252 seconds]
<symphorien> selfsymmetric-pa: to override the arguments in https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/emacs/default.nix you must use override
<symphorien> for arguments to stdenv.mkDerivation you must use overrideAttrs
<symphorien> so: emacs.override{withXwidgets=true;}.overrideAttrs(old: { src = ... })
dbmikus__ has quit [Ping timeout: 264 seconds]
<selfsymmetric-pa> Oh cool! Thank you!
Fare has quit [Ping timeout: 244 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
jperras has joined #nixos
Fare has joined #nixos
<{^_^}> [nixpkgs] @dezgeg pushed to master « zabbix34: Compile with OpenSSL »: https://git.io/fAOki
<selfsymmetric-pa> symphorien: I'm still struggling with the syntax https://gist.github.com/matthew-piziak/0e7211fe2734fe87a64fa936216c41de
<selfsymmetric-pa> I've been working from https://nixos.org/nixpkgs/manual/#sec-pkg-overrideAttrs but I'm not sure how to combine an override expression with an overrideAttr expression.
Tucky has quit [Quit: WeeChat 2.2]
<symphorien> probably more parens: (emacs.override {...}).overrideAttrs
<jtojnar> Thra11: you just add the dependency to buildInputs and cmake and pkgconfig to nativeBuildInputs and it should just work
<jtojnar> when there are some packages listed in Requires field of the pc file, you will need to add them as well if the package does not propagate them but that does not seem to be the case with lcms2
Fare has quit [Ping timeout: 272 seconds]
<symphorien> selfsymmetric-pa: also line 1 is one brace too many
Fare has joined #nixos
<symphorien> line 11*
erasmas has joined #nixos
<selfsymmetric-pa> It passes the syntax checker! An awwww, webkitgtk is marked as "insecure". :(
<selfsymmetric-pa> I'll have to think about whether I really want it now. XD
periklis has quit [Ping timeout: 264 seconds]
worldofpeace has joined #nixos
dbmikus__ has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<Thra11> jtojnar: I've added pkgconfig to nativeBuildInputs. However, if I run nix-shell, PKG_CONFIG_PATH does not appear to be set. Is that to be expected?
Ariakenom has joined #nixos
mayhewluke has quit [Ping timeout: 264 seconds]
<mkaito> infinisil: for what it's worth, nix-instantiate --eval doesn't seem to do what I expected, it seems to spit out a non-forced AST or something rather than a store path.
<infinisil> mkaito: nix-instantiate --eval '<nixpkgs>' -A hello.out
<mkaito> what I'm looking at is not in nixpkgs
orivej has quit [Ping timeout: 244 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<mkaito> infinisil: that exact command spits out what looks like an unforced internal representation of nix
<infinisil> mkaito: Oh, sorry, outPath instead of out
<mkaito> that does it :D
<mkaito> trying to eval an unbuilt derivation of mine, it does try to build it instead of just spitting out the corresponding store path though
<infinisil> mkaito: Your command is?
<mkaito> as this is not in nixpkgs, and default.nix is in PWD, I'm trying `nix-instantiate --eval -A foo.outPath`, since `nix-build -A foo` builds the thing.
Fare has quit [Ping timeout: 264 seconds]
<infinisil> And nix-instantiate --eval really starts the build??
<mkaito> yep
<infinisil> Is it using IFD?
<infinisil> mkaito: Try adding the --readonly-mode argument as well
<mkaito> building stuff again
<infinisil> mkaito: Is your code online?
<mkaito> no and I can't share without sanitizing the living crap out of it :(
<infinisil> Okay, so are you using IFD or not?
<mkaito> what's that?
<infinisil> ,IFD
<{^_^}> import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
<infinisil> This would require starting a build to do an evaluation, but on my tests this fails with --eval
<mkaito> yorick: does that look familiar?
juhe has joined #nixos
<infinisil> Also something like `pkgs = import ((import <nixpkgs> {}).fetchFromGitHub { owner = "NixOS"; repo = "nixpkgs"; ... }) {}` uses IFD, but only to get a nixpkgs version
<mkaito> hmmm that might be
<mkaito> I didn't write half of this, as you might have guessed by now
<infinisil> mkaito: What's your nix version?
<mkaito> 2.0.4
<infinisil> Yeah still weird then, in my tests --eval couldn't cause builds
<infinisil> Using the same version
<mkaito> maybe there's some of this IFD going on somewhere, but I don't see anything
<mkaito> ¯\_(ツ)_/¯
<infinisil> > import (pkgs.fetchurl { url = "foobar"; sha256 = "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1j"; })
<{^_^}> cannot import '/nix/store/ilg7agjd90ifspmdggnq8qz83w23mc54-foobar', since path '/nix/store/bbcchb4kz4hs2xpf8hpam2wjg8rm77bb-foobar.drv' is not valid, at (string):171:1
<infinisil> ^^ This is what the error should look like when --eval tries to do IFD
<infinisil> Oh well, not sure what's going on
<mkaito> how about this: import (import ./nixpkgs-src.nix) { overlays = [ (import ./pkgs) ]; }
Izorkin has joined #nixos
nbardiuk has joined #nixos
<infinisil> yup that's IFD
<juhe> Hi, I have troubles getting compilation for AVR working, I get the "fatal error: avr/io.h: No such file or directory", even though the avr-libc-2.0.0 is installed. I know it worked maybe ~2 month ago, though I've updated couple of times since then and do not know what generation it was working in. Anybody has/had similar issue?
mayhewluke has joined #nixos
buckley310 has joined #nixos
<symphorien> ,library juhe
<{^_^}> juhe: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
johanot has joined #nixos
johanot has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<juhe> symphorien: thx, will read and try that
HarpoRoeder has joined #nixos
<jtojnar> Thra11: how are you running it?
anonsmith has joined #nixos
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<Thra11> jtojnar: 'nix-shell /mnt/storage/nixpkgs/default.nix -A opencolorio --pure'
ThatDocsLady has quit [Remote host closed the connection]
<juhe> Do I get that correctly that even gcc should not be installed in system/user environment and should be put into use via nix-shell?
ThatDocsLady has joined #nixos
<symphorien> Exactly, except nix-shell already provides gcc by default
ris has quit [Ping timeout: 252 seconds]
logzet has quit [Remote host closed the connection]
<juhe> I don't understand then, how nix-collect-garbage knows, if gcc can be removed if it is not kept in system nor user profile. (Maybe avrgcc is a bit better example since I'd not consider it part of "base", which - from my point of view - gcc is).
<sphalerite> it will typically be removed if it's not in any profiles, or a dependency of any profiles, or in a *currently running* nix-shell
<juhe> ok, maybe not ideal, but good enough
<juhe> From the information above, I'd infer that packages that contain binaries, header files and libraries are not a good packages. Is that correct? (e.g. avrdude contain all three things).
joncfoo has quit [Ping timeout: 252 seconds]
<mpickering> How can I make /run/user/0 bigger?
<mpickering> It is getting filled up very quickly when this script runs
<srhb> mpickering: boot.runSize iirc
sigmundv__ has quit [Ping timeout: 268 seconds]
<sphalerite> juhe: that's normal. To save space, many packages have split outputs so that the things that depend on only a small part of it don't pull in everything
<infinisil> > nixos.options.boot.runSize.description
<{^_^}> "Size limit for the /run tmpfs. Look at mount(8), tmpfs size option,\nfor the accepted syntax.\n"
<juhe> sphalerite: yes, that makes perfect sense and I like it - AFAIR debian does that too.
<mpickering> It says the default is 25%
<mpickering> but that is not what i observe
joncfoo has joined #nixos
HarpoRoeder has quit [Remote host closed the connection]
<cransom> what do you observe?
<mpickering> What is it supposed to be 25% of? the total disk space?
<srhb> mpickering: memory.
<srhb> mpickering: But there may be a further per-user limit. Can't find that we're setting it anywhere though, so it may be defaulting.
<srhb> (Grepping for RuntimeDirectorySize)
<srhb> "Defaults to 10%"
<srhb> (The per-user limit)
<sphalerite> juhe: might also be better to make it use a different dir
<sphalerite> sorry I meant mpickering ^
<sphalerite> /run/user/* isn't meant for big stuff iirc
<srhb> Indeed, that should go in /tmp
<mpickering> I'm not putting anything in there myself, but I am using selenium which I think is
<sphalerite> mpickering: I think TMPDIR is set to /run/user/$UID by default which I think is wrong
<sphalerite> if it is, try running your thing with TMPDIR=/tmp
<mpickering> ok thanks
<sphalerite> also, running selenium as root? :/
<mpickering> why should I not run things as root?
<nefix_> Could someone try to explain me point 5 in #installation?
<mpickering> It's more convenient
anonsmith has quit [Quit: WeeChat 2.0]
redj has quit [Ping timeout: 240 seconds]
<sphalerite> because things running as root can thoroughly bork your system
<mpickering> this has never happened to me
<sphalerite> but it could!
* sphalerite is going now
rfold has joined #nixos
<cransom> mpickering: https://nixos.org/nixos/options.html#tmpontmpfs = false may also help you.
<cransom> (if not already set, but it's a default)
<mpickering> This issue is the problem I think? https://github.com/NixOS/nix/issues/395
<{^_^}> nix#395 (by michaeljones, 3 years ago, open): TMPDIR handling by nix-shell
<infinisil> Related: #17494
<{^_^}> https://github.com/NixOS/nixpkgs/pull/17494 (by cmfwyp, 2 years ago, open): nixos: set default for boot.tmpOnTmpfs to true
<mpickering> TMP=/tmp ./my-script.py worked
<mpickering> thanks sphalerite
lfam has joined #nixos
juhe has quit [Remote host closed the connection]
<nefix_> building '/nix/store/1g45rd20l432sj596jwz2qdhxg463c14-source.drv'...
<nefix_> fixed-output derivation produced path '/nix/store/10w3bna3kzwklddh45ddfcq2am8prqf0-source' with sha256 hash '0vfi1zyx0v0lwgmz33g4yjbbwk3vjgrrn5smk24ij0dj5af92w82' instead of the expected hash '1f08hv8qbv8gzs964sw3qlbvrgzdhl8p28ncwswl323qdgryj9yq'
<nefix_> error: build of '/nix/store/1g45rd20l432sj596jwz2qdhxg463c14-source.drv' failed
<nefix_> What does that mean?
<nefix_> (use '--show-trace' to show detailed location information)
<nefix_> My git sha256 is that hash
juhe has joined #nixos
<gchristensen> it means it expected the hash 1f08... but what it found was instead 0vfi...
<jtojnar> Thra11: that should work
<nefix_> but my hash is the expected hask
Lears has joined #nixos
<lfam> nefix_: How did you calculate the hash?
<Thra11> jtojnar: As in `env` should contain PKG_CONFIG_PATH, including the necessary package paths?
<nefix_> I copied the hash it throw
<nefix_> And pasted it into the home.nix file
<symphorien> Try the other one
<{^_^}> [nixpkgs] @joachifm merged pull request #44914 → libxnd and libndypes: init at 0.2.0dev3 → https://git.io/fN5or
<{^_^}> [nixpkgs] @joachifm pushed 3 commits to master: https://git.io/fAOn8
<nefix_> It worked
<nefix_> Lel
<symphorien> "Expected" means the one in the file, which you promised was right.
<nefix_> But shouldn't expected be the one that is correct?
dbmikus__ has quit [Read error: Connection reset by peer]
<infinisil> Lol, I just spent 10 minutes trying to debug infinite recursion only to realise I did `let value = attrs.${value}; in`...
nefix_ has quit [Quit: Lost terminal]
dbmikus has joined #nixos
nefix has joined #nixos
<symphorien> No the correct one is what nix got and what contradicted the expectations declared in the file
<hyper_ch> disasm: it's ok
<nefix> Oh i see
<nefix> Thanks!
<symphorien> But I grant you the error message can be misleading
<{^_^}> [nixpkgs] @dtzWill opened pull request #45678 → upx: 3.94 -> 3.95 → https://git.io/fAOcg
Lears has quit [Remote host closed the connection]
Fare has joined #nixos
philipcristiano has quit [Ping timeout: 264 seconds]
philipcristiano has joined #nixos
<nefix> What's the difference between running nix-env with or without root?
sigmundv_ has joined #nixos
sigmundv_ has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
iMatejC has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
phreedom_ has joined #nixos
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<mudri> In the Nixpkgs manual, section Declarative Package Management, I don't understand why it recommends using pathsToLink across the board. What advantage is there? https://nixos.org/nixpkgs/manual/#sec-declarative-package-management
revtintin has quit [Ping timeout: 264 seconds]
drakonis has quit [Remote host closed the connection]
eren has quit [Ping timeout: 272 seconds]
jperras has quit [Ping timeout: 252 seconds]
<gchristensen> what do you mean?
jperras has joined #nixos
johanot has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45672 → vitetris: init at 0.57.2 → https://git.io/fAYSt
<{^_^}> [nixpkgs] @xeji pushed commit from @siers to master « vitetris: init at 0.57.2 (#45672) »: https://git.io/fAO4W
nefix has quit [Quit: Lost terminal]
<mudri> gchristensen: From the linked section: “`pathsToLink` tells Nixpkgs to only link the paths listed which gets rid of the extra stuff in the profile. `/bin` and `/share` are good defaults for a user environment, getting rid of the clutter.”
<mudri> Why should I care about the clutter?
<gchristensen> maybe a package puts weird stuff in weird places and you don't want that probably, by default
<gchristensen> maybe you do!
Fare has quit [Ping timeout: 272 seconds]
<mudri> And shouldn't I worry about missing links breaking things?
xeji has joined #nixos
nefix has joined #nixos
<mudri> (More than having a few harmless links around)
<gchristensen> no, because nothing from those packages should be looking in the result of your buildEnv
<gchristensen> they should be looking for stuff in their own store paths
<mudri> Why would I want to link `/share`, then?
eren has joined #nixos
<gchristensen> because you chose to have it :) one reason you might choose to would be: frequently share contains docs, and if your buildEnv result is used in a place where `man` might be looking at it, linking /share would forward docs
<gchristensen> for me, I prefer to go the minimalist route of linked paths and grow from there so I know what is being exposed and why
johanot has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @stephengroat opened pull request #45679 → boost: explicitly disable of python → https://git.io/fAORO
<mudri> I still can't see why it'd be worth caring about stuff being hidden this late in the installation process, but I guess I'll just believe you that it is for you.
<{^_^}> [nixpkgs] @xeji merged pull request #45675 → crystal: 0.25.1 -> 0.26.0 → https://git.io/fAYbk
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fAORF
<jtojnar> mudri: pathsToLink is often used for things like desktop files and icons https://github.com/NixOS/nixpkgs/pull/45058
<{^_^}> #45058 (by michaelpj, 1 week ago, open): freedesktop modules: init
<Myrl-saki> I guess I just found one reason why we shouldn't delete keys when value is null.
<Myrl-saki> > ({ foo ? 1 }: foo) { foo = null; }
<{^_^}> null
<{^_^}> [nixpkgs] @xeji merged pull request #45121 → virtlyst: 1.1.0 -> 1.2.0 → https://git.io/fNhUn
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « virtlyst: 1.1.0 -> 1.2.0 (#45121) »: https://git.io/fAO0d
Fare has joined #nixos
trcc has joined #nixos
<Thra11> jtojnar: Hmmm. It looks like my buildInputs conditional expression was messed up in some way.
<Thra11> jtojnar: Now a) it builds and b) PKG_CONFIG_PATH is set in the nix-shell
<genesis> http://nixpaste.lbr.uno/raw/EY8X2RCl , i still get libpandaexpress.so.1.9 => not found etc, librarie in $out/lib/panda3d are not founded. any idea what i could try ?
tnks has joined #nixos
peel has quit [Quit: Connection closed for inactivity]
jperras has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @xeji merged pull request #45650 → racket: 6.12 -> 7.0 → https://git.io/fAmKo
<{^_^}> [nixpkgs] @xeji pushed commit from @tilpner to master « racket: 6.12 -> 7.0 (#45650) »: https://git.io/fAOzy
johnw has quit [Quit: ZNC - http://znc.in]
johnw has joined #nixos
asymmetric_ has joined #nixos
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
asymmetric has quit [Ping timeout: 244 seconds]
jD91mZM2 has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @ejpcmac opened pull request #45680 → elixir: 1.6.6 -> 1.7.3 (Update from elixir_1_6 to elixir_1_7) → https://git.io/fAO2E
juhe has quit [Quit: Leaving.]
nbardiuk_ has joined #nixos
jperras has joined #nixos
<{^_^}> [nixpkgs] @zauberpony opened pull request #45681 → hcloud: 1.6.0 -> 1.6.1 → https://git.io/fAO2x
aarvar has joined #nixos
<emily> if I'm trying to override a Haskell package in https://gist.github.com/srhb/9ae8206fa94bf9a0eaed3c9be78e0f70, does that go in packageOverrides in the config argument to nixpkgs, or...? I'm having trouble putting all the pieces together in my Nix file.
lfam has left #nixos ["Leaving"]
redj has joined #nixos
<{^_^}> [nixpkgs] @LnL7 merged pull request #45680 → elixir: 1.6.6 -> 1.7.3 (Update from elixir_1_6 to elixir_1_7) → https://git.io/fAO2E
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fAOVT
Fare has quit [Ping timeout: 272 seconds]
chreekat has joined #nixos
<jtojnar> emily: it can go to nixpkgs.overlays in your configuration.nix (nixkpkgs.config.packageOverrides should work too, though that one is less flexible so overlays are preferred)
civodul has joined #nixos
<selfsymmetric-pa> What's the right nix package for the `webkit2gtk` dependency? I can only find the old `webkitgtk`.
<selfsymmetric-pa> Emacs 26 has switched to the new one. I'm trying to update the libinputs.
aanderse has joined #nixos
pie_ has joined #nixos
<emily> jtojnar: I'm trying to work on an individual project with its own default.nix rather than modifying my NixOS configuration
<symphorien> emacs 26 is in unstable
<jtojnar> selfsymmetric-pa: webkitgtk attribute is the new one
<emily> jtojnar: the problem is just that nixpkgs needs a newer version of a Haskell package to work with the version of GHC nixpkgs master uses.
<emily> so I need to override that in the default.nix when calling nixpkgs
<pie_> primeos, hey, youre listed as a maintainer for signal-desktop
<aanderse> anyone feel like being my hero and merging this before 18.09 freeze hits? https://github.com/NixOS/nixpkgs/pull/45638
<{^_^}> #45638 (by aanderse, 1 day ago, open): incron: init at 0.5.12
fzer000 has joined #nixos
<selfsymmetric-pa> jtojnar: Here's what I'm working with https://gist.github.com/matthew-piziak/6ec78c79542bb859b267e7ad3b8fb2ec
<jtojnar> emily: you can do something like this: `with import <nixpkgs> { overlays = [(self: super: { glib = super.enableDebugging super.glib; })]; }; …`
<selfsymmetric-pa> jtojnar: Unfortunately with that gist I get `error: xwidgets requested but WebKitGTK+ not found`.
<jtojnar> selfsymmetric-pa: are you sure they use the newest one?
<emily> jtojnar: *nod* thanks. is it better to use overlays or packageOverrides or what? I'm kind of confused by the seemingly endless ways of substituting things
<jtojnar> selfsymmetric-pa: that is the one with webkit2gtk-4.0 pkg-config name
<jtojnar> emily: overlays are more composable/flexible so they are preferred these days
<jtojnar> selfsymmetric-pa: you will probably need something like `.override { withXwidgets = true; webkitgtk24x-gtk3 = pkgs.webkitgtk; }`
<jtojnar> since the package is still using the old webkit in nixpkgs
<jtojnar> and you should be able to get rid of the permittedInsecurePackages entry
<{^_^}> [nixpkgs] @Mic92 merged pull request #45385 → cryptsetup: 2.0.3 -> 2.0.4 → https://git.io/fAfwe
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fAOr2
<{^_^}> [nixpkgs] @Thra11 opened pull request #45682 → opencolorio: use system lcms2 on aarch64 → https://git.io/fAOrK
<{^_^}> [nixpkgs] @Mic92 merged pull request #45681 → hcloud: 1.6.0 -> 1.6.1 → https://git.io/fAO2x
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAOoU
nefix has quit [Quit: leaving]
Dedalo has quit [Quit: Textual IRC Client: www.textualapp.com]
nefix has joined #nixos
<nefix> Love when things start getting a shape!
<nefix> Have been all the whole day configuring and tunning my system
<nefix> And now it's starting to be usable
aarvar has quit [Ping timeout: 252 seconds]
drakonis_ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/294c3605a3a (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<srhb> nefix: yay :)
<nefix> It's been a little pain though
<nefix> Since I'm trying to rice the system without understanding the whole NixOS distro and how it works
<nefix> And using home-manager
<srhb> emily: Hi. I made a self contained example for you, maybe you didn't get it :)
<nefix> But I see it as a future investment
<{^_^}> [nixpkgs] @eadwu opened pull request #45683 → nvidia_x11: 390.77 -> 390.87 → https://git.io/fAOop
<aanderse> srhb: thanks for your review earlier. did what i land on seem reasonable, given the intent of the software?
<emily> srhb: oh! sorry, I must have missed it ^^; I saw https://gist.github.com/srhb/9ae8206fa94bf9a0eaed3c9be78e0f70 (and am fitting it into my default.nix now)
<nefix> \
<nefix> Woops
<srhb> aanderse: Given the intention of the software, I think so. I just think the software is a bit unreasonable. :D I'd like a second reviewer on it, but I'm inclined to say "go for it"
<srhb> emily: Remind me what the package was, and perhaps I can find the file again by grepping :P
<srhb> emily: purescript?
<srhb> emily: I don't remember what the problem was anymore, but I'm guessing it had something to do with applying overlays locally: https://gist.github.com/cf5f7b2cafe7b9261d74de12d8113820
<aanderse> srhb: the software is old and probably best suited to use something like systemd these days... but it would be good to have another option for people who want to migrate existing infrastructure when coming to nixos
<srhb> aanderse: Right right. :)
<aanderse> well, thanks again. hoping someone else can review before 18.09
<srhb> aanderse: Throw a link here, maybe someone will bite immediately :)
<aanderse> at the risk of being spammy...
<aanderse> anyone feel like being my hero and merging this before 18.09 freeze hits? https://github.com/NixOS/nixpkgs/pull/45638
<{^_^}> #45638 (by aanderse, 1 day ago, open): incron: init at 0.5.12
<aanderse> :)
<srhb> aanderse: jtojnar is on the case. :-)
<aanderse> thank you!
<aanderse> i've actually convinced the folks at work to consider switching to nixos
<jtojnar> srhb, aanderse: just a few nits, do not really feel qualified for deeper review
<srhb> jtojnar: The suggestion about extraPackages was excellent though
<srhb> But it makes me think it probably needs to be parameterizable over more than one user
<aanderse> so i've been trying really hard to port everything over thats missing before 18.09 hits freeze
<{^_^}> [nixpkgs] @xeji merged pull request #45531 → yubico-piv-tool: 1.5.0 -> 1.6.1 → https://git.io/fAtJ3
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « yubico-piv-tool: 1.5.0 -> 1.6.1 (#45531) »: https://git.io/fAOKw
<srhb> Since different users might have different package needs
<srhb> Dunno if that's too ambitious
<srhb> But it elegantly solves the PATH issue
<srhb> (Admittedly, by removing that misfeature :-P)
<jtojnar> well, there is only a single system daemon, is not it?
<srhb> I was assuming there could be more than one... Otherwise, no, you're probably right.
<jtojnar> it is a system service
<srhb> Sure, but they can be parameterizable too
<srhb> like
<srhb> JUst generate a unit for each desired unique PATH with a new name
<srhb> (If the daemon can tolerate that at least...)
ris has joined #nixos
<aanderse> jtojnar: reviewing and commenting
<srhb> Meh, dunno...
<jtojnar> I do not actually see why would it need to run as root
<jtojnar> inotify can be used by users as well
nefix has quit [Quit: leaving]
<aanderse> was going off the readme "The incron daemon (incrond) must be run under root (typically from runlevel script etc.). It loads the current user tables and hooks them for later changes."
<jtojnar> yeah, I saw that but do not understand why it cound not be per-user or per-session service
<primeos> pie_: Yes, can I help you with something?
<aanderse> taking a quick peak through the code i believe there would need to be a few modifications... but i mean, generally i agree, that would be better
<aanderse> i'm not inclined to make upstream pull requests on this project though...
<emily> srhb: yep, the local overlay was just what I had to figure out!
<emily> srhb: thanks for all the help :)
<srhb> emily: Welcome :)
nefix has joined #nixos
<emily> I've decided to use purescript from git (which is already patched for GHC 8.4) rather than going back to 18.03, but same difference :)
simukis has quit [Ping timeout: 272 seconds]
<srhb> emily: Did you notice that my example uses callHackage? (Not as new as fetching from git probably, but still!)
<emily> right
<srhb> OK :)
<emily> just feels cleaner to stay on nixpkgs master if I can
<srhb> Right right
<emily> while awaiting the release of the presumed 0.12.1
<srhb> Glutton for pain and all, know the feeling. ;-P
<{^_^}> [nixpkgs] @Mic92 merged pull request #45577 → hamlib: 3.2 -> 3.3 → https://git.io/fAtV8
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAO6i
<emily> ha ;_;
<emily> is there any nice way to get the right sha256 for a fetchFromGitHub?
<jtojnar> aanderse: maybe open an issue?
<pie_> primeos, ah sorry i seem to have left off half the message :( would you perchance update it?
<emily> or just a nicer way to get the sha256s to plug in in general than "nix-preload-url --unpack" I suppose
* emily wants nix-annotate-with-sha256s impure-expression.nix
<{^_^}> [nixpkgs] @manveru opened pull request #45684 → mint: 0.2.0 -> 0.2.1 → https://git.io/fAOim
<srhb> emily: No. And in fact, I recommend always using the tofu method :P
<{^_^}> [nixpkgs] @Mic92 merged pull request #45556 → media-player-info: 23 -> 24 → https://git.io/fAtZk
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAOiZ
anonsmith has joined #nixos
drakonis_ is now known as Drakonis
<srhb> emily: OK, it's not quite true. You can actually have nix-prefetch-git dump the json into a file and then import it and read the rev, sha from there.
<primeos> pie_: Do you mean on the stable channel (18.03)? Master has 1.15.5
<pie_> primeos, ahhh, ok, thanks for the clarification
trcc has quit [Remote host closed the connection]
jperras has quit [Quit: WeeChat 2.2]
<pie_> my bad. i havent gotten around to actually tryng to install from master yet, in the middle of making disk space
<Mic92> emily: cd nixpkgs && nix-prefetch-url -A xonsh.src
<emily> oh, thanks, I was unaware of nix-prefetch-git
selfsymmetric-pa has quit [Remote host closed the connection]
<emily> the nice thing about NixOS is that so much is undocumented that I feel less bad about asking questions ...
<Mic92> nix-prefetch-git is not the right tool for fetchFromGitHub
<srhb> Ah, true, that's fetchgit..
selfsymmetric-pa has joined #nixos
<primeos> pie_: Ok, no problem, normally I'm trying to update it on master within <24h but nixos-unstable is usually a few days behind master
<emily> yeah, but then I learned about nix-prefetch-github!
<selfsymmetric-pa> jtojnar: Your emacs advice worked perfectly, thank you!
<pie_> yeah. thanks fr working on it
anonsmith has quit [Client Quit]
<selfsymmetric-pa> For reference here is the working config: https://gist.github.com/matthew-piziak/064cd5b42b2a3260541390a1bd993f43
<emily> is there a nice way to consume such a .json to pass to fetchGitHub?
<emily> or, wait... does fetchGitHub ./foo.json actually work?
<srhb> no, you'd need to read it in and builtins.fromJSON it to get an attrset from it
<emily> *nods*
<Mic92> and
<Mic92> > builtins.readFile
<{^_^}> <PRIMOP>
anonsmith has joined #nixos
<emily> *nods*
<Mic92> > lib.version
<{^_^}> "18.09pre-git"
<emily> if only (import ./foo.json)
<nefix> Why nvim doesn't detect the .nix color scheme in my home.nix but it does in my configuration.nix?
<emily> ...I guess it's literally just a function composition away.
<Mic92> nefix: you can try to install vimPlugins.nix-vim
<Mic92> you have probably installed also a different vim in your user profile
<nefix> it's neovim, not vim
<anonsmith> Does anyone know how to fix polybar not displaying the volume module? I'm getting the message "Disabling module 'alsa' reason: unknown module: internal/alsa"
<nefix> And it doesn't have a configuration yet
<srhb> anonsmith: It's disabled by default iirc
<srhb> Hm, no.. That's pulse.
<anonsmith> yeah, "polybar -version" shows +alsa
<nefix> Oh and I have another question
<nefix> Where should I "declare" my packages? In home.nix or in configuration.nix? I think it's like being system-wide or user, but I'm not sure
<emily> hm, I guess overrideSrc doesn't update the dependencies.
<emily> I suppose that makes sense
<Mic92> nefix: where ever you like, I did it in home.nix: https://github.com/Mic92/dotfiles/blob/master/nixpkgs-config/home.nix#L170
<nefix> Okay then
<Mic92> I also use nix on non-nixos systems
<nefix> But I'm not getting the neovim part
<nefix> Can you do that? lel
<Mic92> since /nix is not used, it integrates quite well in common linux distributions like debian, ubuntu, arch
<{^_^}> [nixpkgs] @Mic92 merged pull request #45540 → riemann_c_client: 1.10.2 -> 1.10.3 → https://git.io/fAtL3
sigmundv__ has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed to master « nixpkgs.syslogng_incubator: mark as broken »: https://git.io/fAOXF
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAOXp
Ariakenom has quit [Quit: Leaving]
heinrich5991 has quit [Ping timeout: 264 seconds]
nbardiuk_ has quit [Ping timeout: 252 seconds]
nbardiuk_ has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45533 → udisks: 2.7.7 -> 2.8.0 → https://git.io/fAtTq
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « udisks: 2.7.7 -> 2.8.0 (#45533) »: https://git.io/fAOMG
heinrich5991 has joined #nixos
<aanderse> jtojnar: i really appreciate all your review. learning a whole bunch :)
<jtojnar> aanderse: it looks fine to me now but I would still wait for another reviewer, I do not like root services
BOSNA has joined #nixos
<{^_^}> [nixpkgs] @bignaux opened pull request #45687 → navit: fix plugins → https://git.io/fAODt
<nefix> can you define variables in a nix file? I'd like to define my colors as variables and use them through all the file
Thra11 has quit [Ping timeout: 252 seconds]
Dedalo has joined #nixos
<elvishjerricco> I recommend reading the whole chapter: https://nixos.org/nix/manual/#ch-expression-language
<nefix> I was just doing that xD
<nefix> And how can I access to this lets inside double quotes?
jperras has joined #nixos
<nefix> nvm
Drakonis has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 244 seconds]
graphene has quit [Remote host closed the connection]
<p_l> Is there a way to create a config file *external* to Nix and just have a symlink to it in the derivation?
graphene has joined #nixos
<pie_> primeos, do you know anything about signal-cli
Myrl-saki has quit [Quit: WeeChat 1.6]
<ivan> I wrote some signal-cli packaging for my debian machines
contrapumpkin has joined #nixos
<pie_> would be nice if i could use that to register or whatever
copumpkin has quit [Ping timeout: 240 seconds]
<ivan> hmm? signal-cli has a thing for registering a phone number
jperras has joined #nixos
<pie_> yeah
<pie_> ok so i have java in my env which signal-cli seems to use, seems to work
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « gradle: 4.9 -> 4.10 »: https://git.io/fAO9s
timokau_ has quit [Ping timeout: 268 seconds]
Myrl-saki has joined #nixos
jperras has quit [Ping timeout: 244 seconds]
orivej has joined #nixos
timokau_ has joined #nixos
jperras has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #45688 → granite: 5.0 -> 5.1.0 → https://git.io/fAOHc
<{^_^}> [nixpkgs] @xeji pushed commit from @stephengroat to staging « boost: disable python explicitly in b2Args (#45679) »: https://git.io/fAOHl
<{^_^}> [nixos-hardware] @yegortimoshenko merged pull request #75 → cpu/intel: early KMS → https://git.io/fAqFN
<{^_^}> [nixos-hardware] @yegortimoshenko pushed 2 commits to master: https://git.io/fAOH4
<{^_^}> [nixos-hardware] @yegortimoshenko pushed 0 commits to 20180825.135451/early-kms: https://git.io/fAOHB
Ridout has joined #nixos
<{^_^}> [nixpkgs] @xeji closed pull request #45679 → boost: explicitly disable of python → https://git.io/fAORO
__monty__ has quit [Quit: leaving]
b has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @xeji pushed commit from @manveru to master « mint: 0.2.0 -> 0.2.1 (#45684) »: https://git.io/fAOQT
<{^_^}> [nixpkgs] @xeji merged pull request #45684 → mint: 0.2.0 -> 0.2.1 → https://git.io/fAOim
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
rfold has quit [Ping timeout: 268 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « urlscan: 0.8.9 -> 0.9.0 (#45532) »: https://git.io/fAOQr
<{^_^}> [nixpkgs] @xeji merged pull request #45532 → urlscan: 0.8.9 -> 0.9.0 → https://git.io/fAtUb
erasmas has quit [Quit: leaving]
TaoHansen[m] has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45530 → xpra: 2.3.2 -> 2.3.3 → https://git.io/fAtf8
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « xpra: 2.3.2 -> 2.3.3 (#45530) »: https://git.io/fAOQb
<emily> if I'm using Nix to create a development environment for my software but the result isn't really a proper "Nix package" (e.g. "nix build" fails because of there being no Makefile and there's no buildPhase you could reasonably define that would work, because the language package manager I'm using fetches stuff from github), should I still use stdenv.mkDerivation and just accept its "invalidity" (and e.g.
<emily> should I have no default.nix but just a shell.nix)?
<aanderse> jtojnar: ok, thanks again for all recommendations. i've changed as requested. let me know if there is anything else you need aside from another reviewer.
<aanderse> any idea of anyone else who i could cc in for review?
<{^_^}> [nixpkgs] @xeji merged pull request #45538 → shaarli: 0.10.0 -> 0.10.2 → https://git.io/fAtIg
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « shaarli: 0.10.0 -> 0.10.2 (#45538) »: https://git.io/fAO7l
anonsmith has quit [Quit: WeeChat 2.0]
nefix has quit [Quit: leaving]
xeji has quit [Quit: WeeChat 2.1]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
mkoenig has quit [Ping timeout: 244 seconds]
mkoenig has joined #nixos
nbardiuk_ has quit [Ping timeout: 244 seconds]
hamishmack has joined #nixos
graphene has quit [Read error: Connection reset by peer]
graphene has joined #nixos
mayhewluke has quit [Ping timeout: 264 seconds]
crucialrhyme has joined #nixos
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
alexteves has quit [Remote host closed the connection]
troydm has joined #nixos
crucialrhyme has quit [Client Quit]
nckx has joined #nixos
<samueldr> emily: having something specifically for the shell be named shell.nix is perfectly right IMO
<emily> samueldr: *nods*
<emily> do you just put a stdenv.mkDerivation in shell.nix or is there a better way to do it when you don't quite have a full package?
<samueldr> mkShell
<samueldr> it's a well-hidden gem since it's not documented properly (that markdown file doesn't get compiled in the manual)
<jtojnar> why does not it? we already have some markdown sections do not we?
<samueldr> it's in my stack of things to check :S
* emily 's running hypothesis is that the most useful nix documentation is meant to be secret so you feel like a wizard for getting it working >.>
Baughn has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
sphalerite has quit [Ping timeout: 264 seconds]
WilliButz has quit [Ping timeout: 268 seconds]
<gchristensen> not on purpose :( docs are hard :$
phreedom_ has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos
Baughn has joined #nixos
<gchristensen> samueldr: I'll take care of that
shymega has quit [Ping timeout: 268 seconds]
sphalerite has joined #nixos
<samueldr> yeah, I guess it's a subtle issue, but minor one... the worse ones
<samueldr> gchristensen: I haven't verified if it builds in unstable; so maybe check that first
shymega has joined #nixos
hexa- has joined #nixos
hellrazor has joined #nixos
Fare has joined #nixos
<{^_^}> [nixpkgs] @samueldr merged pull request #26416 → make-desktopitem: make genericName optional → https://git.io/vHwDh
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/fAObV
kisik21 has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
Fare has quit [Ping timeout: 264 seconds]
seanparsons has quit [Ping timeout: 272 seconds]
Acou_Bass has quit [Ping timeout: 272 seconds]
kenshinCH has quit [Ping timeout: 268 seconds]
<gchristensen> yay xmloscopy
Fare has joined #nixos
<Shados> Is there a good way of having multiple different 'system' profiles, with all of them accessible from the boot menu?
kenshinCH has joined #nixos
garbas has quit [Quit: WeeChat 2.1]
Acou_Bass has joined #nixos
seanparsons has joined #nixos
aanderse has quit []
<samueldr> Shados: almost
<samueldr> there was a feature, but it got lost in time, there's a PR re-adding it; but it neede a bit of cleaning-up
<{^_^}> #45345 (by vmandela, 1 week ago, open): nixos/install-grub: include child configs in grub menu
<samueldr> (and it'll be grub-specific if the implementation passes)
<Shados> Better than starting from nothing, thanks :)
<manveru> looks like update-smart-drivedb isn't packaged right
<samueldr> Shados: if you're using a nixpkgs checkout for your system, you could realistically include the fix as it's pretty minimal
<Shados> Nah I prefer to extend or (if necessary) override modules, these days
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fAONx
<samueldr> hmmm, subtle enough :)
<emily> gchristensen: ty~
<samueldr> gchristensen: care to backport so the website updates? otherwise the website won't update until 18.09 lands
<gchristensen> on it
<gchristensen> still testing it :)
<gchristensen> (also, phonebanking, so doing it between phone calls.)
<samueldr> thanks!
mkoenig has quit [Ping timeout: 252 seconds]
* samueldr likes to link manual sections
dmj` has joined #nixos
<Shados> This reminds me that I should check if configuring for grub-only EFI boot was still broken (again)...
viric_ has joined #nixos
<samueldr> ?
mkoenig has joined #nixos