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
jluttine has quit [Ping timeout: 245 seconds]
ddellacosta has quit [Ping timeout: 252 seconds]
zupo has joined #nixos
o1lo01ol1o has quit [Ping timeout: 255 seconds]
mexisme has quit [Ping timeout: 255 seconds]
esmerelda has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #61727 → chit: 0.1.13 -> 0.1.14 → https://git.io/fj8Hg
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj8QS
dansho has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #61729 → nixos/geoclue2: don't run as root → https://git.io/fj8QH
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
buffet_ has quit [Ping timeout: 258 seconds]
buffet has joined #nixos
najib has joined #nixos
jluttine has joined #nixos
najib is now known as najibpuchong
MmeQuignon has quit [Quit: WeeChat 2.4]
_ris has quit [Ping timeout: 246 seconds]
<najibpuchong> Hi, I have installed openra game with command 'nix-env -iA nixos.openraPackages.engines.playtest'. But in the game, it still say "Your are running an outdated version of OpenRA". I have no idea which package to install. Please enlight me.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj8Qh
fusion809 has joined #nixos
___laika has quit [Quit: WeeChat 2.4]
justanotheruser has joined #nixos
mmlb285 has joined #nixos
mmlb28 has quit [Ping timeout: 255 seconds]
ym555 has joined #nixos
ym555_ has quit [Ping timeout: 246 seconds]
drakonis2 has quit [Read error: Connection reset by peer]
drakonis2 has joined #nixos
drakonis2 has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
drakonis_ has joined #nixos
acarrico has quit [Ping timeout: 258 seconds]
<najibpuchong> How to install Openra so I can join multiplayer compatible with 20190314 release?
drakonis has quit [Ping timeout: 252 seconds]
mexisme has joined #nixos
<nh2> domenkozar[m]: with stack2nix, is there a good way I can find out from nix which compiler was generated to be used, e.g. `ghc864`?
<aanderse> najibpuchong: looks like the version in nixos needs a bump
alp has quit [Remote host closed the connection]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
MmeQuignon has joined #nixos
<najibpuchong> aanderse, ok thanks.
alexherbo2 has joined #nixos
aszlig has quit [Quit: Kerneling down for reboot NOW.]
drakonis has joined #nixos
<aanderse> najibpuchong: trying a version bump now... hold on a sec
alexherbo21372 has quit [Ping timeout: 245 seconds]
nD5Xjz has quit [Ping timeout: 246 seconds]
aszlig has joined #nixos
nD5Xjz has joined #nixos
disasm| has quit [Ping timeout: 268 seconds]
<domenkozar[m]> @nh2 don't think that's exported but it could be :)
eraserhd has joined #nixos
MmeQuignon has quit [Quit: WeeChat 2.4]
MmeQuignon has joined #nixos
esmerelda has quit [Ping timeout: 246 seconds]
justanotheruser has quit [Quit: WeeChat 2.4]
MmeQuignon has quit [Client Quit]
esmerelda has joined #nixos
MmeQuignon has joined #nixos
Anton-Latukha has joined #nixos
nDuff has quit [Quit: zzz]
max1 has joined #nixos
disasm| has joined #nixos
cheriimoya_ has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @aanderse opened pull request #61730 → openra: 20181215 -> 20190314… → https://git.io/fj87C
MmeQuignon has quit [Quit: WeeChat 2.4]
adamantium has quit [Ping timeout: 246 seconds]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
MmeQuignon has joined #nixos
MmeQuignon has quit [Client Quit]
LnL has joined #nixos
marusich has joined #nixos
LnL is now known as Guest46690
Anton-Latukha has quit [Quit: Leaving.]
drakonis1 has joined #nixos
drakonis2 has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
drakonis1 has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #61731 → redhat-official-fonts: init at 2.2.0 → https://git.io/fj87l
ee1943 has quit [Ping timeout: 252 seconds]
ee1943 has joined #nixos
najibpuchong has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #61732 → acl2: 8.1 -> 8.2 → https://git.io/fj876
najib has joined #nixos
ottidmes has quit [Ping timeout: 258 seconds]
najib has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @aanderse merged pull request #61720 → phpPackages.phpstan: 0.11.6 -> 0.11.7 → https://git.io/fj89q
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fj879
Supersonic has quit [Ping timeout: 250 seconds]
mexisme has quit [Ping timeout: 255 seconds]
<infinisil> nh2: since it generates a package set and ghc is in the package set too, you could get the version with (import ./file.nix {}).ghc.version
<infinisil> (Untested but I'm fairly certain this should work)
Supersonic has joined #nixos
Ralith_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @marsam merged pull request #60721 → python37Packages.jupyterlab: 0.35.4 -> 0.35.5 → https://git.io/fjZ14
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fj87F
MinceR_ has joined #nixos
MinceR has quit [Ping timeout: 268 seconds]
drakonis2 has quit [Ping timeout: 244 seconds]
drakonis2 has joined #nixos
tbenst__ has quit [Remote host closed the connection]
tbenst__ has joined #nixos
<{^_^}> [nixpkgs] @thefloweringash opened pull request #61733 → nmap: fix build with new Darwin stdenv → https://git.io/fj87h
dansho has quit [Ping timeout: 246 seconds]
slack1256 has joined #nixos
slack1256 has quit [Remote host closed the connection]
mexisme has joined #nixos
phaebz has joined #nixos
iqubic has joined #nixos
iqubic` has joined #nixos
iqubic` has quit [Remote host closed the connection]
iqubic has quit [Ping timeout: 252 seconds]
tbenst has joined #nixos
Supersonic has quit [Ping timeout: 248 seconds]
tbenst__ has quit [Ping timeout: 255 seconds]
justanotheruser has joined #nixos
Supersonic has joined #nixos
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bbd8dbe43b5 (from 57 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
drakonis has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #61732 → acl2: 8.1 -> 8.2 → https://git.io/fj876
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fj85q
<teto> any advice on how to merge old doc (xml)https://github.com/NixOS/nixpkgs/pull/55302 with my new one (markdown)
<{^_^}> #55302 (by teto, 14 weeks ago, open): doc: update lua documentation
___laika has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #60717 → python37Packages.gphoto2: 1.9.0 -> 2.0.0 → https://git.io/fjZXw
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fj85Y
abathur has quit [Ping timeout: 268 seconds]
gchristensen has quit [Quit: Connection closed for inactivity]
toppler`` has quit [Ping timeout: 245 seconds]
endformationage has quit [Ping timeout: 255 seconds]
wfranzini has quit [Remote host closed the connection]
toppler`` has joined #nixos
dansho has joined #nixos
___laika has quit [Read error: Connection reset by peer]
___laika has joined #nixos
InFlames has joined #nixos
Izorkin has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 258 seconds]
palo1 has joined #nixos
revtox has joined #nixos
Mateon3 has joined #nixos
palo has quit [Ping timeout: 268 seconds]
palo1 is now known as palo
Mateon1 has quit [Ping timeout: 255 seconds]
Mateon3 is now known as Mateon1
___quietlaika has joined #nixos
<revtox> trying to boot nixos minimal on usb, but it doesn't seem to be working (goes straight to my existing OS's boot menu). I tested another os (ubuntu) and it worked fine. uefi btw, with secure boot disabled. Any ideas to debug this?
Glider_IRC__ has joined #nixos
___laika has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @peterromfeldhk opened pull request #61734 → elasticmq-server-bin: init at 0.14.6 → https://git.io/fj854
mexisme has joined #nixos
Glider_IRC_ has quit [Ping timeout: 268 seconds]
domogled has joined #nixos
MinceR_ is now known as MinceR
<v0id72[m]> anyone able to help me with an i3 issue? Still unable to get an i3status file except for the one stuck in the store :(
wangoe has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
<v0id72[m]> i haz reddit gold for anyone who can help :)
mexisme has quit [Read error: Connection reset by peer]
___quietlaika has quit [Ping timeout: 246 seconds]
phaebz has quit [Ping timeout: 258 seconds]
phaebz has joined #nixos
<v0id72[m]> my files are in that link
<srhb> v0id72[m]: Sorry, can you explain the issue a bit further?
<v0id72[m]> unable to use polybar for some reason <shrug> so went with i3
<v0id72[m]> then unable to config i3status as its only in stroe folder
<v0id72[m]> no other places
mexisme has joined #nixos
<srhb> v0id72[m]: Does it not read /etc/i3/status ?
<v0id72[m]> unfortunately no
max1 has quit [Ping timeout: 258 seconds]
<v0id72[m]> only found in the store folders :(
<v0id72[m]> now I cannot even boot into i3 :)
jmeredith has quit [Quit: Connection closed for inactivity]
<srhb> Well, if push comes to shove you can point it at a config file with -c according to the man oage.
<srhb> But it looks like it has a number of sensible default locations that it goes looking in.
<v0id72[m]> o clue on that - as I have tried a bunch
<v0id72[m]> as the config will show you :)
<srhb> v0id72[m]: I see no attempt at creating the file in your config.
mexisme has quit [Ping timeout: 255 seconds]
<srhb> v0id72[m]: Perhaps you can write out what you have tried so far if I'm just giving you suggestions you've already tried :)
<v0id72[m]> its alright - been at this for 6 hours sooooo...
<v0id72[m]> thanks though.
<v0id72[m]> always a pleasure.
<srhb> Anyway, try putting the file in one of the locations the man page mentions and tell us what happens :)
<teto> v0id72[m]: I've been using the home-manager module with joy, might be worth trying if it's been 6 hours already :p
<srhb> Speaking of bars... Anything good out there that fits xmonad that emphatically isn't taffybar?
<cizra> xmobar
<srhb> Yeah, I guess.. :-P
mexisme has joined #nixos
hyper_ch2 has joined #nixos
<v0id72[m]> rather not use the home. manager as rather keep trying for 6 more hours :)
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/971b731fc18 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
Izorkin has joined #nixos
<angerman> can I easily get the md5 and sha256 of a derivation $out?
<angerman> from within a nix expresison.
Xal has quit [Ping timeout: 245 seconds]
dansho has quit [Ping timeout: 258 seconds]
Xal has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
dansho has joined #nixos
thc202 has joined #nixos
max1 has joined #nixos
phaebz has quit [Ping timeout: 255 seconds]
<srhb> angerman: No.
<srhb> angerman: Wait, not sure I understood that question.
<srhb> angerman: What do you have, and what do you want?
<angerman> srhb: I have some `writeText ...` and I want to get the md5, sha256 and length of that. So I can construct another `writeText` wit those values.
<angerman> But I've since considered using `substitute ${./path/to/template} $out/filename ...`
<etu> angerman: You can probably have a runCommand that take the first writeText's out as a param and run md5sum or sha256sum on that in the command
PLPD-Bot has quit [Remote host closed the connection]
reinhardt has joined #nixos
<v0id72[m]> at least nixos is good for depression
<{^_^}> [nixpkgs] @SRGOM closed pull request #60666 → Add pplatex- tex error pretty printer → https://git.io/fjZVp
PLPD-Bot has joined #nixos
Myhlamaeus has quit [Ping timeout: 248 seconds]
<etu> v0id72[m]: How so?
mexisme has joined #nixos
<v0id72[m]> because who wants to kill themselves and be sad when you cannot figure out a simple thing like how to configure a simple bar that you can easily do in Arch for example :)
<v0id72[m]> computer can't win
brejoc has joined #nixos
<{^_^}> [nixpkgs] @evax opened pull request #61735 → passff-host: 1.0.2 -> 1.2.1 → https://git.io/fj8dU
<v0id72[m]> just noticed im at zero trust level what happened to the trust levelss?
phaebz has joined #nixos
brejoc has quit [Ping timeout: 264 seconds]
bpierre has quit [Read error: Connection reset by peer]
phaebz has quit [Ping timeout: 244 seconds]
c00w has quit [Read error: Connection reset by peer]
bpierre has joined #nixos
rodarmor has quit [Read error: Connection reset by peer]
c00w has joined #nixos
rodarmor has joined #nixos
digitalgrease has quit [Read error: Connection reset by peer]
jchw has quit [Read error: Connection reset by peer]
nand0p has quit [Read error: Connection reset by peer]
blackriversoftwa has quit [Ping timeout: 258 seconds]
WooDWorkeR has quit [Ping timeout: 258 seconds]
gonz_ has quit [Ping timeout: 258 seconds]
lightbulbjim has quit [Read error: Connection reset by peer]
joedevivo has quit [Read error: Connection reset by peer]
CMCDragonkai has quit [Read error: Connection reset by peer]
jbetz has quit [Read error: Connection reset by peer]
johs has quit [Read error: Connection reset by peer]
carter has quit [Read error: Connection reset by peer]
scott has quit [Read error: Connection reset by peer]
sgraf has quit [Read error: Connection reset by peer]
techtangents has quit [Write error: Connection reset by peer]
jeregrine has quit [Read error: Connection reset by peer]
vaninwagen has quit [Read error: Connection reset by peer]
nand0p has joined #nixos
alp has joined #nixos
angerman has quit [Write error: Connection reset by peer]
digitalgrease has joined #nixos
cbarrett has quit [Read error: Connection reset by peer]
jchw has joined #nixos
blackriversoftwa has joined #nixos
WooDWorkeR has joined #nixos
joedevivo has joined #nixos
pointfree has quit [Write error: Connection reset by peer]
CMCDragonkai has joined #nixos
lightbulbjim has joined #nixos
manveru has quit [Read error: Connection reset by peer]
jw358 has quit [Read error: Connection reset by peer]
alunduil has quit [Read error: Connection reset by peer]
teehemkay has quit [Write error: Connection reset by peer]
mudri has quit [Read error: Connection reset by peer]
d1rewolf has quit [Read error: Connection reset by peer]
Wizek has quit [Read error: Connection reset by peer]
gonz_ has joined #nixos
jbetz has joined #nixos
sgraf has joined #nixos
johs has joined #nixos
techtangents has joined #nixos
jeregrine has joined #nixos
vaninwagen has joined #nixos
angerman has joined #nixos
scott has joined #nixos
cbarrett has joined #nixos
carter has joined #nixos
teehemkay has joined #nixos
manveru has joined #nixos
jw358 has joined #nixos
mudri has joined #nixos
alunduil has joined #nixos
Wizek has joined #nixos
pointfree has joined #nixos
d1rewolf has joined #nixos
slyfox has quit [Quit: \o/]
mkoenig has joined #nixos
bitonic has quit [Ping timeout: 258 seconds]
<{^_^}> [cabal2nix] @peti merged pull request #416 → Don't hardcode $doc → https://git.io/fjlwz
<{^_^}> [cabal2nix] @peti pushed 2 commits to master: https://git.io/fj8dm
mexisme has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fj8dO
bitonic has joined #nixos
kvda has joined #nixos
mexisme has joined #nixos
slyfox has joined #nixos
chris| has quit [Quit: ZNC 1.7.2 - https://znc.in]
chris| has joined #nixos
wfranzini has joined #nixos
NightTrain has quit [Ping timeout: 255 seconds]
mexisme has quit [Ping timeout: 268 seconds]
pie_ has quit [Ping timeout: 252 seconds]
rauno has joined #nixos
linarcx has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fj8dC
phaebz has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-19.03 « Merge #61715: linux_hardkernel_4_14: 4.14.102-156 -> 4.14.120-160 »: https://git.io/fj8d4
kaliumxyz has joined #nixos
talqu has joined #nixos
<talqu> hi, how do I completely remove postgresql and then reinstall it again from scratch?
<talqu> i tried toggling enable property to false/true, while removing /var/lib/postgresql at the same time
<kaliumxyz> what is your problem with it c:?
<{^_^}> [nixpkgs] @vcunat merged pull request #61715 → linux_hardkernel_4_14: 4.14.102-156 -> 4.14.120-160 → https://git.io/fj8D0
<kaliumxyz> just running nix-env -i {name} will reinstall it for you.
<kaliumxyz> The program installation itself is immutable though so it should not be in a bad state, and more likely its the configuration thats cousing you problems
<tobiasBora> Hello,
<tobiasBora> I'm just curious to know, is there a way to know when nixos was installed?
kvda has quit [Quit: Textual IRC Client: www.textualapp.com]
<kaliumxyz> check when your journaldb log starts tobiasBora
otwieracz has joined #nixos
<kaliumxyz> just run
<otwieracz> hi!
<otwieracz> https://github.com/NixOS/nixpkgs/issues/38509 ← I am just hit by this issue.
<tobiasBora> kaliumxyz: when the system has been running for a long time, aren't these log removed?
<{^_^}> #38509 (by yorickvP, 1 year ago, closed): container with privateNetwork fails to start if name is too long
<kaliumxyz> journalctl
<kaliumxyz> easiest way is to check tobiasBora :d
<otwieracz> I am unable to rebuild system, as container name is too long
kvda has joined #nixos
<otwieracz> Will I loose any data after simply renaming this conainer?
zupo_ has joined #nixos
<kaliumxyz> it appears to store till a certain amount of memory rather than date tobiasBora
<tobiasBora> kaliumxyz: well I'm asking because I just saw this question, and I'm curious to know if nixos gives a general way to know that information (journalctl gives an accurate answer in my case, but may not always) https://unix.stackexchange.com/questions/519873/how-to-tell-when-a-nixos-system-was-first-installed
<tobiasBora> (fell free to write your own answer there, nixos questions are rare enough to be adressed :P)
<kaliumxyz> c:
zupo has quit [Ping timeout: 246 seconds]
<kaliumxyz> heh, in my case my installation predates my filesystem age :d
<kaliumxyz> these answers are good c:
civodul has joined #nixos
<tobiasBora> kaliumxyz: how is it possible?
<kaliumxyz> I switched to a bigger disk so just cloning was not enough.
<kaliumxyz> had to delete and recreate the filesystem to resize it.
vid has joined #nixos
zupo has joined #nixos
phaebz has quit [Ping timeout: 246 seconds]
<kvda> How do you replace docker-compose behaviour in Nix ecosystem?
<kaliumxyz> Use nixops :D
<kvda> Or how do you organise multiple services. Through nixops?
<kvda> I see, and is virtualbox the only option to run containers locally?
<kaliumxyz> you can also run actual containers but the documentation is pretty lacking about that.
<etu> kvda: Nope, vbox isn't containers. It's vm's :p
<kaliumxyz> one problem I ran into with containers was that the default ssh port nixops wants to use is 22 and my main box runs openssh on port 22 too :d
lambda-11235 has quit [Quit: Bye]
zupo_ has quit [Ping timeout: 268 seconds]
<kvda> etu yep pardon the confusion.
<kvda> so VM would be slow, but it's the default suggestion in nixops by the looks of it
<kvda> Where there's not much about containers like kaliumxyz said
vid has quit [Read error: Connection reset by peer]
<kvda> Is running NixOS in a VM then using that base NixOS to get NixOS containers setup a thing?
vid has joined #nixos
Makaveli7 has joined #nixos
<tobiasBora> kaliumxyz: hum funny, thanks!
alp has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #61737 → biber: fix shebang → https://git.io/fj8dD
max1 has quit [Ping timeout: 255 seconds]
jgt has quit [Ping timeout: 252 seconds]
<tobiasBora> Hum...
<tobiasBora> Regularly, when I compile some LaTeX documents, I get:
<tobiasBora> "luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: "File not found: lmroman10-regular.".
<kvda> No-one runs mutliple services locally with Nix?
<v0id72[m]> does anyone have any advice as I just setup nixos again. But before going to do i3 - how can I make it so that I get a file in my user ./config directory this time. AS istatus.conf is only in the store. :(
<tobiasBora> and my system blocks for a ~20s, time to reload fonts I guess. But this appears at every reboot, which is a bit annoying (as far as I can tell I don't have this issue with debian). Any idea if I can avoid that?
<etu> v0id72[m]: I thought it read the config from your homedirectory by default
<etu> But it was a while since I used i3
<v0id72[m]> unfortunately no. I somehow only appears in the store for istatus.conf :(
<v0id72[m]> its a FU day as I got fed up and just wiped
Guest46690 has joined #nixos
Guest46690 has quit [Changing host]
<fusion809> aanderse: did you see my reply to #61730?
Guest46690 is now known as LnL
<{^_^}> https://github.com/NixOS/nixpkgs/pull/61730 (by aanderse, 6 hours ago, open): openra: 20181215 -> 20190314…
m0rphism has joined #nixos
max1 has joined #nixos
___quietlaika has joined #nixos
zupo has quit [Ping timeout: 259 seconds]
zupo has joined #nixos
mexisme has joined #nixos
sb0 has joined #nixos
polman has quit [Ping timeout: 255 seconds]
polman has joined #nixos
<revtox> anyone have any idea why my nixos usb might not be booting? ubuntu worked fine when I tested it, but for some reason nixos won't boot (goes to my normal OS's boot menu straight away). I'm using nixos-minimal-19.03.172396.d740b2ee855-x86_64-linux.iso. UEFI with secure boot disabled btw.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/1741386f85c (from 60 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
___quietlaika has quit [Ping timeout: 268 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goibhniu1 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #61699 → rustc: 1.34.0 -> 1.34.2, security → https://git.io/fj8oL
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fj8Fl
ThatDocsLady has joined #nixos
adamantium has joined #nixos
<kaliumxyz> someone nixpill me on hydra pl0x
MayeulC is now known as MayeulC_backup
ym555 has quit [Ping timeout: 258 seconds]
vid has quit [Ping timeout: 258 seconds]
silver has joined #nixos
joepie91 is now known as joepie91`
joepie91` is now known as joepie91
cfricke has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #61731 → redhat-official-fonts: init at 2.2.0 → https://git.io/fj87l
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fj8F7
silver has quit [Read error: Connection reset by peer]
silver has joined #nixos
knupfer has joined #nixos
winem_ has joined #nixos
<{^_^}> [nixpkgs] @endgame opened pull request #61738 → arandr: Stop crashing when trying to open dialog boxes → https://git.io/fj8bU
silver has quit [Read error: Connection reset by peer]
silver has joined #nixos
InFlames has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/cdec6217d98 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
asheshambasta_m has joined #nixos
adamantium has quit [Quit: Konversation terminated!]
silver has quit [Read error: Connection reset by peer]
silver has joined #nixos
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/cdec6217d98 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<{^_^}> [nixpkgs] @dtzWill merged pull request #61713 → minify: 2.0.0 -> 2.5.0, module → https://git.io/fj81A
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fj8bB
silver has quit [Remote host closed the connection]
najib has joined #nixos
najib is now known as najibpuchong
<{^_^}> [nixpkgs] @Lassulus opened pull request #61739 → openvpn: fix pkcs11 helper → https://git.io/fj8bu
<{^_^}> [nixpkgs] @Lassulus merged pull request #60539 → solc: 0.5.7 -> 0.5.8 → https://git.io/fjZqx
<{^_^}> [nixpkgs] @Lassulus pushed commit from @sifmelcara to master « solc: 0.5.7 -> 0.5.8 »: https://git.io/fj8bz
<{^_^}> [nixpkgs] @Lassulus merged pull request #55136 → steam: provide pidof and lsusb for Steam VR → https://git.io/fhSiK
<{^_^}> [nixpkgs] @Lassulus pushed commit from @corngood to master « steam: provide pidof and lsusb for Steam VR »: https://git.io/fj8bg
<{^_^}> [nixpkgs] @Lassulus merged pull request #59985 → nixos/syncthing: add options for declarative device/folder config → https://git.io/fj3JW
<{^_^}> [nixpkgs] @Lassulus pushed to master « nixos/syncthing: add options for declarative device/folder config »: https://git.io/fj8ba
<{^_^}> [nixpkgs] @flokli merged pull request #56720 → nixos/postgresql: add ensureDatabases & ensureUsers options → https://git.io/fhASh
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/fj8br
najib has joined #nixos
winem_ has quit [Ping timeout: 250 seconds]
winem__ has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
najibpuchong has quit [Ping timeout: 245 seconds]
seanparsons has quit [Quit: ZNC 1.7.2 - https://znc.in]
linarcx has joined #nixos
seanparsons has joined #nixos
najib has quit [Ping timeout: 248 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asheshambasta_m has quit [Quit: Leaving.]
ottidmes has joined #nixos
najib has joined #nixos
zupo has joined #nixos
knupfer has quit [Ping timeout: 245 seconds]
winem_ has joined #nixos
winem__ has quit [Ping timeout: 258 seconds]
toppler`` has quit [Ping timeout: 244 seconds]
Synthetica has joined #nixos
toppler`` has joined #nixos
pie_ has joined #nixos
xantoz has quit [Ping timeout: 246 seconds]
<angerman> So in restricted mode, (say hydra), can I call `curl` or something?
alp has joined #nixos
alp has left #nixos [#nixos]
<angerman> fixed output derivations should be fine, right?
<{^_^}> [nixpkgs] @zimbatm merged pull request #61591 → Sylk: init at 2.1.0 → https://git.io/fjlHN
<{^_^}> [nixpkgs] @zimbatm pushed to master « Sylk: init at 2.1.0 »: https://git.io/fj8NY
<{^_^}> [nixpkgs] @zimbatm merged pull request #61695 → xinetd: exec xinetd on launch → https://git.io/fj8VM
<{^_^}> [nixpkgs] @zimbatm pushed commit from @jb55 to master « xinetd: exec xinetd on launch »: https://git.io/fj8NG
Makaveli7 has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @zimbatm merged pull request #61697 → pijul: 0.11.0 -> 0.12.0 → https://git.io/fj8ro
<{^_^}> [nixpkgs] @zimbatm pushed commit from @dtzWill to master « pijul: 0.11.0 -> 0.12.0 »: https://git.io/fj8NZ
<Synthetica> angerman: You can use fetchurl?
Mister_Magister has quit [Quit: bye]
<Synthetica> Or do you need curl-specific features?
cfricke has quit [Quit: WeeChat 2.4]
<angerman> Synthetica: fetchurl generates an output path. I don't want that as it impact the hash.
cfricke has joined #nixos
Makaveli7 has joined #nixos
max1 has quit [Ping timeout: 258 seconds]
<angerman> that should produce the same output store path for each invocation with the same arguments. But because `index` changes over time, the command's shell input changes over time and as such it's output hash changes over time as well :-/
<Synthetica> ... Right
<Synthetica> I don't know of a way to do that, sorry
Ariakenom has joined #nixos
Mister_Magister has joined #nixos
<pie_> does nix eval have a strict evaluation mode?
<xorAxAx> deepSeq?
<pie_> guess i should just use deepseq actually
<pie_> ah there we go :p
fendor has joined #nixos
<pie_> xorAxAx, you seem to have gotten oriented quite fast :D
<xorAxAx> pie_, heh
<xorAxAx> yeah, i like it
<xorAxAx> it being nixos
<xorAxAx> btw, does anyone have a t480s so that i can test a kernel driver that i wrote yesterday?
<wucke13> When I clone a nixos vm (including storage), what do I have to do to ensure no problems occur when running the clone and the original side by side? How do I regenerate ssh host fingerprints?
<wucke13> xorAxAx, Does a t480 work too?
InFlames has joined #nixos
<xorAxAx> wucke13, i dont think so
esmerelda has quit [Ping timeout: 258 seconds]
<xorAxAx> wucke13, but we can quickly check: run as root "cat /sys/firmware/acpi/tables/DSDT > dsdt.dat", then do "nix-shell -p iasl --command 'iasl -d dsdt.dat'", then grep GSSS dsdt.dsl
<wucke13> xorAxAx: I'm currently at work, and the thinkpad isn't. Is it ok if I run it sometime today and hit you up with a PM once I have results?
<xorAxAx> wucke13, totally fine :-)
alexherbo2 has quit [Ping timeout: 246 seconds]
sigmundv has joined #nixos
logzet has joined #nixos
___quietlaika has joined #nixos
<{^_^}> [nixpkgs] @zimbatm merged pull request #61679 → pythonPackages.zxcvbn-python: 4.4.24 -> 4.4.27 → https://git.io/fj80D
<{^_^}> [nixpkgs] @zimbatm pushed commit from @eadwu to master « pythonPackages.zxcvbn-python: 4.4.24 -> 4.4.27 »: https://git.io/fj8No
<{^_^}> [nixpkgs] @abbradar opened pull request #61740 → Support nested user chrootenv environments → https://git.io/fj8NP
<{^_^}> [nixpkgs] @volth opened pull request #61741 → perldevel: 5.29.9 -> 5.30.0-RC2 → https://git.io/fj8N1
___quietlaika has quit [Ping timeout: 246 seconds]
Jetien_ has joined #nixos
siraben has quit [Ping timeout: 250 seconds]
siraben has joined #nixos
<{^_^}> [nixpkgs] @zimbatm merged pull request #61707 → Add CRI-O package → https://git.io/fj8iH
<{^_^}> [nixpkgs] @zimbatm pushed commit from @saschagrunert to master « cri-o: init at version v1.14.1 »: https://git.io/fj8NS
<{^_^}> [nixpkgs] @abbradar opened pull request #61742 → lutris: init at 0.5.2.1 → https://git.io/fj8N5
lord| has quit [Read error: Connection reset by peer]
lord| has joined #nixos
marek has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @aanderse closed pull request #61730 → openra: 20181215 -> 20190314… → https://git.io/fj87C
Makaveli7 has quit [Quit: WeeChat 2.4]
InFlames has quit [Ping timeout: 246 seconds]
<yorick> is super.callPackage magic? how does it know about the final package set?
<yorick> or does it get injected with the fixpoint itself later
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #61394 → openra: 20181215 -> 20190314 + updated other engine releases and mods → https://git.io/fjWZH
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fj8AZ
marek has joined #nixos
<{^_^}> [nixpkgs] @abbradar opened pull request #61743 → wireguard service: allow empty interfaces → https://git.io/fj8AC
<wucke13> xorAxAx: The grep is empty. I guess that's a no?
<xorAxAx> wucke13, indeed
<xorAxAx> so they dont share the same bios on t480 and t480s
<xorAxAx> or your bios is older than autumn 2018
alexherbo2 has joined #nixos
<wucke13> Hmmh
<wucke13> Sorry
<xorAxAx> no problem :)
<{^_^}> [nixpkgs] @volth opened pull request #61744 → perlPackages: update → https://git.io/fj8AR
<{^_^}> [nixpkgs] @abbradar opened pull request #61745 → criu: 3.9 -> 3.11 → https://git.io/fj8A0
<pie_> I can never get this deepseq stuff to work right:
<pie_> nix-repl> builtins.deepSeq gg.a.a gg.a.a
<pie_> { a = [ ... ]; b = true; c = true; f = "a winner is you"; }
<pie_> shouldnt that a = [ ... ] be expanded?
<kaliumxyz> how do I access a virtual box deployment of which SSH is broken?
<kaliumxyz> without any users accessable without keys ofc
<{^_^}> [nixpkgs] @abbradar opened pull request #61746 → gdm service: unload PulseAudio modules which conflict with user daemon → https://git.io/fj8AV
<pie_> kaliumxyz, with the GUI?
fendor has quit [Quit: Leaving]
<kaliumxyz> what GUI?
<kaliumxyz> I broke the sshd config in the nixconfig that I used for deployment
<xorAxAx> VirtualBox
<xorAxAx> is the GUI called
revtox has quit [Quit: leaving]
<pie_> ok maybe i misunderstood whats meant by "virtual box"
<pie_> kaliumxyz, if its a remote deployment to which you have no access...well you have no access. you have to use some out of band method to access it or load a new machine image?
drakonis2 has quit [Ping timeout: 245 seconds]
<kaliumxyz> Its on a local image.
<kaliumxyz> Virtualbox, tho I was not using the GUI. I can use the GUI to acess it till the login screen after which things go sideways because I don't have a user with a password
cyberwolf[m] is now known as byzoni[m]
mexisme has quit [Ping timeout: 268 seconds]
drakonis2 has joined #nixos
<kaliumxyz> I lost access to my virtualbox guest
<kaliumxyz> hmm..
<xorAxAx> kaliumxyz, you can boot with init=/nix/store/...bash
<xorAxAx> init=/bin/sh should work
<xorAxAx> in the bootloader (edit with "e")
<yorick> pie_: no, the print just goes two levels deep
<kaliumxyz> xorAxAx TIL the easy way for getting past login 0_o
<kaliumxyz> thanks c:
<xorAxAx> :D
Shoubit has joined #nixos
<xorAxAx> it also boots much faster ;-)
esmerelda has joined #nixos
<{^_^}> [nixpkgs] @CohenCyril opened pull request #61747 → fixing coqPackages_8_10 → https://git.io/fj8AF
<{^_^}> [nixpkgs] @dotlambda closed pull request #60853 → home-assistant: add sonos component dependencies → https://git.io/fjcbW
<pie_> yorick, so just making sure, ... isnt an unevaluated thing?
<yorick> pie_: dunno, try it on something with side effects
<yorick> pie_: like builtins.trace
<{^_^}> [nixpkgs] @dotlambda opened pull request #61748 → home-assistant: add sonos component dependencies → https://git.io/fj8Ap
<{^_^}> [nixpkgs] @edolstra merged pull request #61545 → gdb: 8.2.1 -> 8.3 → https://git.io/fjluv
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to staging: https://git.io/fj8Aj
max1 has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #61748 → home-assistant: add sonos component dependencies → https://git.io/fj8Ap
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/fj8xf
max1 has quit [Ping timeout: 245 seconds]
mexisme has joined #nixos
max1 has joined #nixos
gchristensen has joined #nixos
<{^_^}> [nixpkgs] @Chiiruno closed pull request #42075 → lutris: init at 0.4.18 → https://git.io/vhXQq
<{^_^}> [nixpkgs] @dotlambda merged pull request #60947 → Fix home-assistant netatmo support → https://git.io/fj8xY
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/fj8xO
<{^_^}> [nixpkgs] @dotlambda merged pull request #60953 → Fix home-assistant fitbit support → https://git.io/fj8x3
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/fj8xs
kai_w has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @zimbatm merged pull request #61700 → nixos/release-notes: mention length of release support → https://git.io/fj8oB
<{^_^}> [nixpkgs] @zimbatm pushed commit from @vcunat to master « nixos/release-notes: mention length of release support »: https://git.io/fj8xZ
<{^_^}> [nixpkgs] @dotlambda pushed to master « home-assistant: run parse-requirements.py »: https://git.io/fj8xn
<lassulus> yaay we are under 1200 open PRs
<gchristensen> nice
<kaliumxyz> rolling back c:
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
<kaliumxyz> >overthinking this hard
iyzsong has joined #nixos
<kaliumxyz> I just rolled back and could log in over ssh :D
<kaliumxyz> I love nix.
<gchristensen> nice :D
<ajs124> lassulus, let me open 3 real quick, then we won't be :P
<pie_> lassulus, link vpn thing
<pie_> lassulus, nvm
adam-6520493 has quit [Ping timeout: 268 seconds]
andreas303 has quit [Remote host closed the connection]
Makaveli7 has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @aanderse opened pull request #61749 → openraPackages.engines.bleed: fix hash → https://git.io/fj8x2
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
Makaveli7 has joined #nixos
Anton-Latukha has joined #nixos
civodul` has joined #nixos
civodul has quit [Ping timeout: 248 seconds]
___quietlaika has joined #nixos
sb0 has quit [Quit: Leaving]
acarrico has joined #nixos
___quietlaika has quit [Ping timeout: 246 seconds]
lsyoyom has quit [Ping timeout: 264 seconds]
dansho has quit [Quit: Leaving]
linarcx has quit [Quit: WeeChat 2.4]
lsyoyom has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4e674aa1578 (from 63 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
sb0 has joined #nixos
jomik has joined #nixos
<jomik> Hey guys. Can someone help me wrap Firestorm in FHS? I am not sure where I need to place the binary/desktop files..
<jomik> It has the following pkgbuild https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=firestorm-bin if that is any help..
<jomik> It seems that the shell script that I have to execute to start the program uses relative paths... yay.
mexisme has quit [Ping timeout: 244 seconds]
jmeredith has joined #nixos
mmlb285 has quit [Ping timeout: 255 seconds]
{^_^} has quit [Ping timeout: 248 seconds]
q3k has quit [Ping timeout: 252 seconds]
q3k has joined #nixos
Neo-- has joined #nixos
rauno has quit [Ping timeout: 258 seconds]
{^_^} has joined #nixos
alter-schjetne has quit [Ping timeout: 246 seconds]
Copenhagen_Bram has quit [Write error: Connection reset by peer]
andreas303 has joined #nixos
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/cdec6217d98 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<{^_^}> [nixpkgs] @worldofpeace merged pull request #61094 → pythonPackages.macropy: init at 1.10b2 → https://git.io/fjc81
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fj8hn
copumpkin has joined #nixos
Copenhagen_Bram has joined #nixos
bohadi has joined #nixos
civodul` has quit [Ping timeout: 259 seconds]
bohadi has quit [Client Quit]
schjetne has joined #nixos
pointfourtwo has joined #nixos
pointfourone has quit [Read error: Connection reset by peer]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cfricke has quit [Quit: WeeChat 2.4]
srid has quit [Ping timeout: 245 seconds]
jomik has quit [Ping timeout: 258 seconds]
ckoparkar has joined #nixos
Guest70 has joined #nixos
mmlb285 has joined #nixos
psyanticy has joined #nixos
srid has joined #nixos
Guest70 has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest70 has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.4]
Shoubit has quit [Ping timeout: 268 seconds]
mmlb285 has quit [Ping timeout: 255 seconds]
jomik has joined #nixos
Guest70 has quit [Client Quit]
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @costrouc opened pull request #61751 → pythonPackages.stravalib: init at 0.10.2 → https://git.io/fj8jU
civodul has joined #nixos
<{^_^}> [nixpkgs] @flokli opened pull request #61752 → nextcloud: 15.0.7 -> 15.0.8 → https://git.io/fj8jI
mmlb285 has joined #nixos
o1lo01ol1o has joined #nixos
Shoubit has joined #nixos
waleee has joined #nixos
pointfourtwo has quit [Read error: Connection reset by peer]
<alexarice[m]> has a recent home-manager update changed the home.file option, I feel it used to just create a symlink as it now seems to create an immutable copy and link to that
pointfourtwo has joined #nixos
mmlb285 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #60946 → ngrok2: 2.3.18 -> 2.3.29 → https://git.io/fj8jZ
<{^_^}> [nixpkgs] @c0bw3b merged pull request #60946 → ngrok2: 2.3.18 -> 2.3.29 → https://git.io/fj8jZ
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fj8jn
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master:
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @aanderse to master « openraPackages.engines.bleed: fix hash (#61749) »: https://git.io/fj8jC
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @aanderse to master « openraPackages.engines.bleed: fix hash (#61749) »: https://git.io/fj8jC
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61749 → openraPackages.engines.bleed: fix hash → https://git.io/fj8x2
<jomik> It depends on how you refer to the file I am pretty certain. Nix will copy a file to the store if you refer to it as a path, but if you refer to it as a string, it will just symlink.
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61749 → openraPackages.engines.bleed: fix hash → https://git.io/fj8x2
<jomik> I am pretty certain.
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
markus1189 has quit [Ping timeout: 245 seconds]
fendor has joined #nixos
endformationage has joined #nixos
Izorkin has quit [Ping timeout: 258 seconds]
camsbury has joined #nixos
{^_^} has quit [Remote host closed the connection]
marusich has quit [Remote host closed the connection]
markus1189 has joined #nixos
iyzsong has quit [Ping timeout: 248 seconds]
reinhardt has quit [Quit: Leaving]
<gchristensen> FWIW I've been migrating {^_^} to a new system. it is nearly done, but obviously something is going up. will continue work on it shortly
<alexarice[m]> jomik: Mine are written as strings but seem to copy to store
nschoe has joined #nixos
orivej has joined #nixos
camsbury has quit [Ping timeout: 258 seconds]
<pie_> is there any way to access the old arguments of a previous .override?
zupo has joined #nixos
<tilpner> I don't thin kso
<nschoe> Hi all, I was curious to see that `steam` was available in nixOS. But when I try to run it, I get `glXChooseVisual` error. From a quick search it seems to be related to the graphics driver not being correct. I have the well-spread intel hd graphics 5500. Does anybody know what I should do?
<pie_> I want to have an overridden field that accumulates stuff
<jomik> I guess I need nixGL for Firestorm, so I am trying to build it here : https://git.io/fj8jS but it keeps giving me an error on this line https://github.com/guibou/nixGL/blob/master/default.nix#L24 How can I fix that?
<nschoe> From my understanding, this chip is standard and should work out of the box, but maybe that's only for basic graphics?
<pie_> i mean like. (doot.someOverrider { a = [ 1 ] }).someOverrider { a = [ 2 ] } results in a = [ 1 2 ]
<pie_> or at least i want to do something not entirely unlike that
<alexarice[m]> nschoe: have you set the options in https://nixos.wiki/wiki/Steam
<alexarice[m]> specifically the support 32 bit stuff
o1lo01ol1o has quit [Remote host closed the connection]
zupo has quit [Client Quit]
<pie_> alexarice[m], we should have steam warn if that isnt set or something...
<pie_> i bet people keep running into this problem
<pie_> not that i know anything about the steam infra
<pie_> hot take: a lot of documentation is just UX bugs
o1lo01ol1o has joined #nixos
<alexarice[m]> pie_: are packages able to read nixos settings
toppler`` has quit [Ping timeout: 245 seconds]
fendor has quit [Quit: Leaving]
<pie_> alexarice[m], not sure. i dont see why it would be impossible
fendor has joined #nixos
<tilpner> Technically yes, but it's not (or shouldn't be) allowed in nixpkgs
<alexarice[m]> pie_: perhaps there could be a steam module that sets up the necessary options
<ajs124> pie_, for that specific usecase, couldn't you do something like (doot.overrideAttrs (oA: { a = oA.a ++ [ 1 ] })).overrideAttrs etc
<pie_> thoguh i guess if it was possible to read arbitrary values you could read out private stuff as well, so thats sketchy
<nschoe> alexarice[m], hum no, indeed. Sorry I don't know how I missed that :/
<alexarice[m]> nschoe: np, hope it works
<pie_> ajs124, overrideAttrs is different thatn override
<pie_> im specifically thinking of .override
<pie_> though i could see how my example was probably not clera
<pie_> *clear
zupo has joined #nixos
<tilpner> Wait
<tilpner> > hello.override (old: old)
<tilpner> That works
<tilpner> Just pass a function
<pie_> tilpner, wait...since when does that work
<pie_> i could have sworn that doesnt work :O
<nschoe> alexarice[m], rebuilding and trying now ^^
* pie_ 's mind collapese in on itself
<nschoe> alexarice[m], actually.. it does :-) It launched. Thanks for that.
<tilpner> pie_: Don't worry, I forgot too
toppler`` has joined #nixos
<pie_> tilpner, no i mean i specificallyl thought you _couldnt_ do that
<pie_> :D *shrug*
zupo_ has joined #nixos
<Shoubit> How do I add myself as a trusted user in NixOS? Can I do it in configuration.nix?
zupo has quit [Ping timeout: 258 seconds]
<pie_> wow i somehow managed to get my nix into some kind of idle memory eating loop that doesnt involve evaluating all of nixpkgs
<pie_> ...maybe infinite appending to a list, idk
<jomik> Is there a nice way to make desktop files?
<alexarice[m]> jomik: makeDesktopItem?
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<jomik> Yes, that :D
<tilpner> Shoubit: "man configuration.nix", "/trustedUser"
<pie_> man trace is bad
<Shoubit> tilpner, figured it out just now but thank you. I didn't know you could `man configuration.nix`, that's awesome.
<tilpner> Shoubit: Much better than the web search thing
<tilpner> pie_: Don't trace all of it. hello.override (old: builtins.trace old.fetchurl old)
<pie_> apparently hello.override (old: builtins.trace old old) is a BAD thing
cswl has joined #nixos
<pie_> oh
<pie_> i guess that makes sense
<cswl> Im using nixpkgs in mulit user mode..
<cswl> How do I install global packages?
<pie_> i probably wanted attrNames old
<pie_> for starters
<tilpner> pie_: Tracing all of stdenv is expensive, apparently
<pie_> tilpner, i like how you immediately knew what i did to
<pie_> tho
o1lo01ol1o has quit [Remote host closed the connection]
<tilpner> Well, I tried the same thing, sooo
<cswl> Okay just prefixing with sudo seems to work :V
o1lo01ol1o has joined #nixos
Zer0xp has joined #nixos
<cswl> Is that how you install nix package globally.. it seems to work..
<tilpner> Maybe. What's your PATH?
<Zer0xp> Hey, I'm relatively new to NixOS and I'd like to know how to get the apt package to work in NixOS because I've installed the apt package and tried to run an apt-get command but I can't seem to get it to work.
<tilpner> While it may be possible to use apt, I've never heard of anyone doing that
<infinisil> Zer0xp: With Nix/NixOS you *don't* want to use another package manager, this really goes against Nix and there's probably nobody that does this
<cswl> Im not even using my Distro package manager on Nixpkgs
<simpson> Zer0xp: It seems strange to want apt purely on the basis of having tried to use apt. What are you actually wanting?
<cswl> And youre trying to run apt in NixOS WTF
<Zer0xp> The thing is, I'm trying to set up a HA cluster using Kubernetes but the tutorial suggests that I install some command line updates via apt-get like in any other distro.
hisham has joined #nixos
<simpson> cswl: Nix doesn't really *do* global package installation; a lot of Nix usage involves getting rid of the idea of installing packages, and instead simply *having them available* when needed.
hisham has quit [Client Quit]
<Zer0xp> I'm looking for an alternative to that.
hisham has joined #nixos
<simpson> > kubernetes # Zer0xp: the standard k8s tooling is already packaged, can you use that?
<simpson> Well, if a bot were here, they might say: «derivation /nix/store/0b6kv2xrblhhrp3zj3qnkm8yy1gys02m-kubernetes-1.14.0.drv»
Izorkin has joined #nixos
knupfer has joined #nixos
<cswl> Oh its just having two three binaries in every user..
o1lo01ol1o has quit [Remote host closed the connection]
<cswl> Using root's profile seem to solve it on Nixpkgs
o1lo01ol1o has joined #nixos
<yorick> so I need the .git directory out of a fetchGit
camsbury has joined #nixos
<Zer0xp> Yes, I know that that k8s package exists but if I want to set up nodes I have to use commands like this apt-get update && apt-get install -y apt-transport-https curl
<yorick> so should I do fetchGitDir = uri: builtins.seq (fetchGit uri) ("${builtins.getEnv "HOME"}/.cache/nix/gitv2/${builtins.hashString "sha256" uri}") ?
<tilpner> Zer0xp: curl is packaged too
___quietlaika has joined #nixos
M-Gregoire has quit [Quit: The Lounge - https://thelounge.chat]
<simpson> Zer0xp: Effort must be made to translate these old instructions. In general, don't look at what they tell you to *install*, but what they tell you to *use*.
<Taneb> ...you can only really use apt in Debian and Ubuntu and derivatives of those
<Taneb> So people using a whole load of distributions, like Arch or Fedora or Gentoo, would have to translate the instructions too, not just NixOS
M-Gregoire has joined #nixos
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
M-Gregoire4 has joined #nixos
___quietlaika has quit [Ping timeout: 255 seconds]
<yorick> oh, it needs import-from-derivation to get a base32 hash
zupo_ has quit [Read error: Connection reset by peer]
M-Gregoire has quit [Ping timeout: 257 seconds]
mmlb285 has joined #nixos
drewr has quit [Quit: ERC (IRC client for Emacs 26.2)]
jomik has quit [Quit: WeeChat 2.4]
pointfourtwo has quit [Quit: Leaving]
mexisme has joined #nixos
Izorkin has quit [Ping timeout: 255 seconds]
wfranzini has quit [Ping timeout: 246 seconds]
astrofog has joined #nixos
Zer0xp has quit [Ping timeout: 256 seconds]
wfranzini has joined #nixos
Izorkin has joined #nixos
mexisme has quit [Ping timeout: 258 seconds]
hyper_ch2 has quit [Quit: Page closed]
camsbury has quit [Ping timeout: 258 seconds]
schjetne has quit [Ping timeout: 245 seconds]
erasmas has joined #nixos
drakonis has joined #nixos
zupo has joined #nixos
IRCsum has quit [Ping timeout: 250 seconds]
astrofog has quit [Remote host closed the connection]
drewr has joined #nixos
IRCsum has joined #nixos
zupo_ has joined #nixos
zupo has quit [Ping timeout: 258 seconds]
domogled has quit [Quit: domogled]
___quietlaika has joined #nixos
domogled has joined #nixos
Ralith_ has joined #nixos
leothrix has quit [Quit: ZNC 1.7.3 - https://znc.in]
leothrix has joined #nixos
jackdk has quit [Quit: Ping timeout (120 seconds)]
jabranham has joined #nixos
<pie_> is it possible to check if something is a derivation?
<Taneb> lib.isDerivation
<pie_> oh duh. thanks \o/
<pie_> trying to write some tests
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<pie_> do we have some kind of test library for nix expressions yet
talqu has quit [Read error: Connection reset by peer]
najib has quit [Remote host closed the connection]
{^_^} has joined #nixos
MmeQuignon has joined #nixos
<gchristensen> ,botsnack=Oh thanks, have a cookie yourself
<gchristensen> ,botsnack = Oh thanks, have a cookie yourself
<{^_^}> botsnack defined
<gchristensen> infinisil: ^
<infinisil> :D
<gchristensen> with this change, events.nix.gsc.io and the gateway have moved to the new host and shouldn't go away
o1lo01ol1o has quit [Remote host closed the connection]
Ariakenom has quit [Quit: Leaving]
wfranzini has quit [Quit: wfranzini]
mekeor has joined #nixos
fusion809 has quit [Remote host closed the connection]
MmeQuignon has quit [Ping timeout: 244 seconds]
InFlames has joined #nixos
npmccallum has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jetien_ has quit [Quit: WeeChat 2.4]
schjetne has joined #nixos
<marek> I have a ${hostname}.nix file - is there a way to use this hostname as an variable inside the script
<infinisil> marek: Only in a very hacky way..
<marek> infinisil: hrm, too bad
<devalot> marek: I do it like this: hostname = builtins.getEnv "HOST";
<devalot> Then put ${hostname}.nix into imports = [ ]
<devalot> Another way of doing it is use -Ihostfile=/path/to/hostname.nix and then import <hostfile>
ddellacosta has joined #nixos
<Baughn> Zer0xp: There's a kubernetes *service* in NixOS. I don't know if I'd call it fully baked (it worked very badly when I tried it last year), but it's under active development so who knows.
<Baughn> Check your configuration.nix, it should have instructions.
winem_ has quit [Ping timeout: 246 seconds]
<devalot> You may need to use a directory instead of a file for the import <...> trick.
<Baughn> Almost definitely want to use -unstable, though.
<marek> devalot: I have server1.example.com.nix, but I would like to get server1.example.com from it as a variable
<clever> devalot: -I can work with files and directories
<devalot> marek: Yeah, I'd use -I when you call nixos-rebuild and then you can use import <foo> in your module list.
<marek> devalot: I mean, I would like to have the hostname variable just from the file name, not in the code itself
<marek> nice, I will give that a try, thank you!
<Baughn> Zer0xp: That being said, unless you have a particular want to try _Kubernetes specifically_, I've always found that running software as Nixified services (under systemd) is way more comfortable and easier to understand.
<Baughn> K8s is great, assuming you have at least a dozen machines and a full-time employee dedicated to running it.
<johnw> is there a good way to debug why a binary cache isn't being used?
linarcx has joined #nixos
acarrico has quit [Ping timeout: 245 seconds]
<clever> johnw: nix-store -r /nix/store/foo -vvvvv, and then read the logs
<pie_> yorick, you too? <yorick> so I need the .git directory out of a fetchGit
MmeQuignon has joined #nixos
<pie_> yorick, something something .gits can be nondeterministic, but i havent checked that
<infinisil> .git is very much impure
<pie_> the hack i did was i wrote my own fetchgit >_> which just runs normal git and doesnt delete anything
InFlames has quit [Ping timeout: 246 seconds]
<pie_> infinisil, im open to suggestions
<infinisil> What do you need .git for?
<infinisil> pie_: Oh um, the default fetchgit has a leaveDotGit options :)
<infinisil> I think that strips it from its impurities
<pie_> that is fake
<pie_> in my experience anyway
<infinisil> Huh?
<pie_> it leaves some horribly mangled .git that didnt work
<johnw> clever: thanks!
astrofog has joined #nixos
<pie_> ah, well, didnt work for whatever i was using that was trying to use it at least
<infinisil> pie_: Yeah so, wha do you need it for?
<yorick> infinisil: stackage specifies the sha1 hashes of .cabal files, because they sometimes change
<pie_> go2nix i think
<yorick> infinisil: so I need to git show that hash to get the right version of a cabal file
<infinisil> pie_: More specifically?
o1lo01ol1o has joined #nixos
<pie_> i dont know more specifically. didnt think to look into it. i might later. it used git rev information to do pinning
<yorick> the current attempt looks like this: https://gist.github.com/yorickvP/c6b0280081cd1822299edc6e7ec452fb
<yorick> also, this repo is much too large to check out on disk
srid has quit [Ping timeout: 246 seconds]
<infinisil> yorick: Where does the sha1 hash come from? A git hash?
<yorick> infinisil: yes
<infinisil> So you need to check out that sha1 version of the repo and get the cabal file you want from there?
<yorick> infinisil: no, you just do git show $FILE
<yorick> (the tool I'm wrapping uses libgit for it)
<infinisil> Am a bit confused still
o1lo01ol1o has quit [Ping timeout: 244 seconds]
drakonis has quit [Quit: WeeChat 2.4]
<yorick> infinisil: git is a content-addressable store, by sha1 hash, so if you have the .git, you can use 'git show' to get any version of a file if you know it's git-sha1 hash
<yorick> the stackage lts files include a "GitSHA1: d3246a36cfd03aa0f315502cbcc33d0046aa668c"
<yorick> then you do `git show d3246a36cfd03aa0f315502cbcc33d0046aa668c` to get that file
<Shoubit> How do I run `nix repl` with a different channel, e.g. say I have an unstable channel aliased to "unstable"?
<yorick> Shoubit: nix repl '<unstable>' ?
<tilpner> nix repl channel:nixos-unstable
<tilpner> That will download and :l nixos-unstable
<pie_> bbiab
<Shoubit> yorick, I tried that initially and it doesn't seem to be working :( tilpner, nice, that works
<infinisil> yorick: Ahh, so the hash isn't a commit hash, but some other git object hash
<yorick> infinisil: right :)
<yorick> (I think this is horrible and that cabal files should be immutable after publication)
<tilpner> Shoubit: Note that this will be the newest (cached) version of nixos-unstable
<infinisil> yorick: And pkgs.fetchgit with leaveDotGit didn't work because it would take too long to clone?
<infinisil> yorick: Yeah I agree with that..
<yorick> infinisil: pkgs.fetchgit doesn't work if I don't have the sha yet, and it would take too much space, yes
<tilpner> Shoubit: Not any unstable pin you may have elsewhere
<yorick> but the haskell people do this instead: https://github.com/haskell-infra/hackage-trustees/blob/master/policy.md
<infinisil> yorick: That does seem like a pretty problematic case you have there..
schjetne has quit [Ping timeout: 255 seconds]
<infinisil> yorick: Oh I have an idea
<yorick> infinisil: well, I can just run it outside of nix
<infinisil> yorick: Write a fixed-output derivation that fetches master and only puts the file with that very sha1 in $out
drakonis has joined #nixos
srid has joined #nixos
pie_ has quit [Ping timeout: 258 seconds]
<infinisil> The problem would still be that you can't clone it due to its size.. But ignoring that this seems like a good solution
greenerworld[m] has joined #nixos
vid has joined #nixos
<yorick> infinisil: hmm, but there's thousands of those files
JonReed has joined #nixos
<yorick> 2346 files
<greenerworld[m]> hey guys, if I do a installation with 19.09pre180241.971b731fc18 version, do I need to update if another `pre...` version releases?
<infinisil> Haha lol, cloning that repo 2346 times doesn't seem very realistic
<infinisil> Or any repo really
max1 has quit [Ping timeout: 258 seconds]
<yorick> I could make it 2346 fixed-output derivations :P
<infinisil> Yeah that's what I understood
<yorick> or do a builtins.fetchUrl to the github raw output 2346 times
<infinisil> Ah right but why not make it a single fixed-output derivation?
<simukis_> what would be a good way to make a templated patch for derivation? I’m looking to include a path to nix store into the patch.
<yorick> infinisil: because I don't know the final hash
<infinisil> yorick: Do you know the hash of individual files then^
<infinisil> ?
<yorick> yes, that's in the yaml
<infinisil> sha256 hashes or only the git ones?
<yorick> md5, skein512, sha1, sha512, sha2546, gitsha1
<infinisil> I see
drakonis2 has quit [Ping timeout: 258 seconds]
<infinisil> yorick: OH crazy idea: Maybe you could precalculate the hash, because ultimately it's just a combination of already known hashes + a directory layout
<tilpner> Uhhh
<yorick> infinisil: I checked, sha uses padding here
hmpffff has joined #nixos
<tilpner> That seems like a brittle idea
<yorick> this idea breaks bitcoin :P
<infinisil> yorick: Still, I think it should be doable in theory
<infinisil> Oh
vid has quit [Ping timeout: 245 seconds]
<infinisil> You mean that Nix doesn't pad the files, but the hashes you have did pad the files?
<greenerworld[m]> btw how is btrfs support for nixos?
<yorick> greenerworld[m]: nothing is lacking except upstream btrfs being good
<infinisil> Yeah it would still work, would just have to pad the files in the fixed-output derivation :P
<yorick> infinisil: you can't combine two sha hashes
<infinisil> Oh..
<infinisil> nix-hash computes the hash over a dump of the directory
<infinisil> Well darn
<greenerworld[m]> yorick:
<greenerworld[m]> yorick: what do you mean with upstream being good?
<cizra> worldofpeace: Better?
<yorick> greenerworld[m]: btrfs is about half the speed of ext4 and has lost my data multiple times
<yorick> greenerworld[m]: also, anything but raid0 or raid1 is not stable
stranger___ has joined #nixos
<greenerworld[m]> I'm using raid0
<yorick> okay, then you probably don't care about your data
<yorick> go ahead and use btrfs :D
<greenerworld[m]> didn't had any problems with data loss on other distros
<greenerworld[m]> exactly right :D
<yorick> greenerworld[m]: nixos also has pretty good zfs support, you might consider that
<stranger___> hello. what do you think of JACK module? https://github.com/NixOS/nixpkgs/pull/57712
<{^_^}> #57712 (by gnidorah, 9 weeks ago, open): jack module: init
<greenerworld[m]> oh yeah, forgot about zfs, how does it compare to btrfs and ext4?
<yorick> greenerworld[m]: it's more stable and featureful than btrfs, but it's relatively flaky since it's not in the kernel
<infinisil> yorick: How about this: Get a rev for all-cabal-files impurely by choosing one that got created at about the time the LTS got created, then use that with pkgs.fetchgit and leaveDotGit
run500 has quit [Remote host closed the connection]
<yorick> infinisil: hmm, they probably do base it on some rev I hope
Izorkin has quit [Quit: ZNC 1.7.3 - https://znc.in]
hmpffff has quit [Quit: Textual IRC Client: www.textualapp.com]
Izorkin has joined #nixos
rfold has joined #nixos
hmpffff has joined #nixos
<greenerworld[m]> thank you yorick
<infinisil> yorick: Oh and cloning all-cabal-files doesn't seem like a problem to me, it's "only" 200MB (still big, but manageable)
<yorick> infinisil: the resulting directory?
<infinisil> Yea
<infinisil> 210MiB to be exact
<JonReed> Hi, let's say I have a package like `polybar` installed some time ago through `configuration.nix`, now I'm trying to update it and it breaks. What would be the easiest way to use old `polybar` that is already installed and working but to update everything else? I think I need to just include the derivation ("/nix/store/..") of that old `polybar` in `packages = ` somehow, right?
<infinisil> I guess this would still be pretty bad because you still need to have many many fixed-output derivations..
<infinisil> I really feel like nix-hash should recursively hash directories instead of hashing a dump of it. Then you should be able to precompute the combined hashes
<goibhniu1> JonReed you could install the old version in your user or root profile instead of in the system profile (`nix-env -i /nix/store/blah/polybar`)
nschoe has quit [Quit: Program. Terminated.]
<yorick> infinisil: yes, but now you can just hash the nars
<infinisil> yorick: How do you mean that?
<yorick> infinisil: you can easily validate downloaded nars by hashing them and checking the result
<infinisil> Yeah but in this case you don't have nars?
<yorick> I think it uses nars to determine the dependencies, too
<infinisil> You mean you could run a single fixed-output derivation to get all 2000+ files with a bogus hash first to get the correct one for all of them?
wangoe has quit [Ping timeout: 268 seconds]
<yorick> no, I mean that's why they do concatenated hashes instead of hashing directory contents
<yorick> infinisil: also, the roommate is working on bringing back gnat
wangoe has joined #nixos
<JonReed> goibhniu1: Yeah, I guess I'm struggling the most with trying to figure out what /nix/store that specific polybar had. But I think I'll be able to find it through nix-generations somehow (I did not had to do it for so long that I forgot).
<infinisil> yorick: gnat?
<yorick> the ada compiler
<alexarice[m]> JonReed: You could just `find | grep polybar` in /nix/store
<infinisil> yorick: No idea what this has to do with me :P
<alexarice[m]> JonReed: as long as you haven't gced it
InFlames has joined #nixos
<yorick> infinisil: oh I thought you cared, must have been viric
<yorick> viric: also, the roommate is working on brining back gnat
<yorick> currently stuck on some configure thing
ym555 has joined #nixos
<infinisil> I see
<simukis_> is there a way to disable builder sandbox for a particular package?
<simukis_> s/package/derivation/
<yorick> simukis_: sudo nix-build --sandbox false
<infinisil> JonReed: You should get the last nixpkgs version where polybar succeeded, then import polybar from that version
o1lo01ol1o has joined #nixos
<infinisil> JonReed: Do you know that nixpkgs version?
<JonReed> infinisil: No, is there a way to track it from /nix/store path? I just found what path the polybar had.
<simukis_> yorick: is it possible from within derivation? I have a derivation which I know will never work in a sandbox because it uses bazel nonsense which goes out to the internets to fetch stuff during build.
GiGa has joined #nixos
GiGa has joined #nixos
GiGa has quit [Changing host]
<infinisil> JonReed: It's in general impossible to go from store path -> nix value, but maybe it's possible if it was built by hydra, I'll check
<yorick> simukis_: no
<yorick> simukis_: you could pre-cache it for bazel somewhere maybe?
<GiGa> Hello. I just ran "nix-env --install" in error. What impact will this have please? Executed as a limited user (without sudo) on my NixOS system.
acarrico has joined #nixos
<JonReed> alexarice[m]: Thanks. That turned out of the be easiest way to find the path.
sudoforge has quit [Ping timeout: 258 seconds]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<simukis_> yorick: I *could* but it would involve me patching out about a hundred such dependencies. (--option sandbox false does not work either – I’m probably not in a list of trusted users and I cannot add myself there)
o1lo01ol1o has joined #nixos
<infinisil> JonReed: Hmm there doesn't seem to be a way even in hydra to get back to the nixpkgs version from a store path
<yorick> git bisect
oida has quit [Remote host closed the connection]
sigmundv has quit [Ping timeout: 246 seconds]
Myhlamaeus has joined #nixos
<infinisil> yorick: You can't know what's new/old (or good/bad)
<yorick> I know it worked in 18.09
<infinisil> yorick: To find a nixpkgs version for a store path?
<JonReed> infinisil: Thanks for verifying it.
<yorick> no, polybar
<infinisil> Ah yeah if you just need any working version that works
oida has joined #nixos
<infinisil> Or you could just get the last working version from hydra
<infinisil> But JonReed tries to get the very version he already has in their store
<yorick> also it builds in master
<infinisil> Yeah it's easier to just pick a version that works
<infinisil> JonReed: What's the store path?
<JonReed> infinisil: " /nix/store/ia1qzancvd7fvfqghi1x7xl1wbf1mc0p-polybar-3.3.0 "
<JonReed> infinisil: Ah, it won't be there, because it was build with additional support (like for i3).
<infinisil> Ah well then it's almost hopeless :P
<infinisil> Well actually no
o1lo01ol1o has quit [Remote host closed the connection]
cswl has quit [Quit: Connection closed for inactivity]
<infinisil> If you really wanted to find the nixpkgs version you could still go through all previous channel nixpkgs versions and check for the store path in each of them :)
o1lo01ol1o has joined #nixos
<infinisil> But gchristensen's https://channels.nix.gsc.io/ seems to be down right now so I couldn't even try
astrofog has quit [Remote host closed the connection]
<gchristensen> yeah, sorry, still working on bringing things up :(
<gchristensen> it has been a really poorly timed weekend for hardware failure
<gchristensen> I'm going t obring it up and then move that somewhere which is more available
zupo has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<infinisil> Hehe no problem, we'll survive :)
<gchristensen> thank you <3
Shoubit has quit [Ping timeout: 246 seconds]
Glider_IRC_ has joined #nixos
freeman42x has joined #nixos
ddellacosta has quit [Ping timeout: 245 seconds]
<worldofpeace> cizra: why still use if?
<alexarice[m]> why has polybar broken, the nix expression has hardely changed in a year
Glider_IRC__ has quit [Ping timeout: 258 seconds]
<infinisil> alexarice[m]: It probably has about 200 Nix files in nixpkgs as a dependency, and any change to any of those could break it
<clefru> Hello everyone, I am organizing a NixOS user group in Zurich, Switzerland. We are meeting on Thursday, more info here https://www.meetup.com/en-AU/NixOS-User-Group-Zurich/
ardumont has quit [Ping timeout: 248 seconds]
* infinisil will be going there :)
<mightybyte> Can anyone point me at where the runCommand function is defined in nixpkgs? I'm grepping but so far haven't found it.
<clefru> infinisil: wooohoo :)
<aminechikhaoui> mightybyte pkgs/build-support/trivial-builders.nix
shibboleth has joined #nixos
ambro718 has joined #nixos
<tilpner> > builtins.unsafeGetAttrPos "runCommand" pkgs
<{^_^}> { column = 3; file = "/var/lib/nixbot/nixpkgs/master/repo/pkgs/build-support/trivial-builders.nix"; line = 25; }
ardumont has joined #nixos
<mightybyte> aminechikhaoui: Great, thanks!
schjetne has joined #nixos
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
__monty__ has joined #nixos
dywedir has joined #nixos
<cizra> worldofpeace: Uh, didn't I remove it?
<worldofpeace> cizra: I don't think so, ol the github ui is acting strange
<cizra> worldofpeace: eh, my bad, too many versions of history floating around. Fixed it now.
JonReed has quit [Ping timeout: 256 seconds]
<worldofpeace> cizra: thanks, having it build it now. Once that passes we should be good for merge :)
inquisitiv3 has joined #nixos
Neo-- has quit [Ping timeout: 248 seconds]
<cizra> worldofpeace: Yarr! Me, an OS developer :D
<worldofpeace> cizra: lol, but this is really how that happens though.
mekeor has quit [Ping timeout: 250 seconds]
ddellacosta has joined #nixos
<inquisitiv3> What's necessary for running Cabal (Haskell)? When I run `cabal init` in an environment with `cabal-install` installed and try to chose a license it craches.
<inquisitiv3> Do I miss something, or is it a bug?
<inquisitiv3> Running Nix on Fedora
esmerelda has quit [Ping timeout: 255 seconds]
esmerelda has joined #nixos
halfbit has joined #nixos
<blackriversoftwa> elvishjerricco:
schjetne has quit [Ping timeout: 258 seconds]
<blackriversoftwa> elvishjerricco: I'm trying to get into a shell with ghcjs86, using the latest master (as of earlier today) of nixpkgs. `nix-shell -p haskell.compiler.ghcjs86`
Ariakenom has joined #nixos
<blackriversoftwa> elvishjerrico: error paste: https://www.irccloud.com/pastebin/neZw9EiG/
<blackriversoftwa> it seems like ghcjs86 was marked broken for a while, then unbroken recently (looking at the history on ghcjs-ng/default.nix). If it was marked unbroken then presumably it worked for someone? But it seems it was marked broken and then unbroken since the last bump to the source fetch. Any ideas?
<cizra> worldofpeace: World of yumminess. What's the usual timeline of master commits to percolate down to a stable channel? I'm on 19.03.
pie_ has joined #nixos
psyanticy has quit [Quit: Connection closed for inactivity]
drakonis has quit [Ping timeout: 248 seconds]
<pie_> how does nix do equality checking on attrsets?
max1 has joined #nixos
<pie_> > (pkgs.hello // {a = 1;}) == pkgs.hello
<{^_^}> true
<pie_> oh no.
<pie_> so much for a unit test i wanted to make
<gchristensen> what does that even mean O.o
<pie_> gchristensen, hm?
<pie_> what I actually wanted to check?: (root.extend emptyOverlay).extend emptyOverlay = root
<pie_> s/?//
<gchristensen> I guess I'm asking how is that possible
<gchristensen> it is not sensible
<pie_> oh
o1lo01ol1o has joined #nixos
<pie_> maybe its just doing a derivation specific check
ddellacosta has quit [Ping timeout: 246 seconds]
<tilpner> nix-repl> builtins.attrNames (pkgs.extend (self: super: {})) == builtins.attrNames pkgs
<tilpner> true
toppler`` has quit [Ping timeout: 258 seconds]
<pie_> also im using derivations with attributes :P so...i need this
<tilpner> nix-repl> builtins.attrNames (pkgs.extend (self: super: { foo = 42; })) == builtins.attrNames pkgs
<tilpner> false
shibboleth has quit [Quit: shibboleth]
<pie_> tilpner, well thats a start i guess. I could write my own checking function
<pie_> hm, how to avoid infinite recursion though
<cizra> I'm developing a Nix package that takes a while to compile, and it's taking me A LOT of retries. Is there a way to hook ccache into nix-build? Or avoid compilation by reusing a dirty tree?
<sphalerite> cizra: use nix-shell
<tilpner> > pkgs.extend (self: super: {}) # infinisil
<{^_^}> { AAAAAASomeThingsFailToEvaluate = <CODE>; AMB-plugins = <CODE>; AgdaSheaves = <CODE>; AgdaStdlib = <CODE>; CoinMP = <CODE>; DisnixWebService = <CODE>; EBTKS = <CODE>; EmptyEpsilon = <CODE>; FIL-plugi...
<tilpner> Huh
<pie_> sphalerite, ive been wondering, how to you start a nix-shell that actually behaves like a build sandbox though
<sphalerite> cizra: although if you're fiddling with build flags it's likely to affect the whole build
<tilpner> infinisil: In PM it says "file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):5:16"
<sphalerite> cizra: with /build and all that? There isn't currently any provision for that
<worldofpeace> cizra: that actually doesn't happen on its own. the changes need to be backported to the stable branch
<cizra> sphalerite: I'm not, I'm fiddling around with install scripts. Can I still fiddle with install scripts using nix-shell? I thought they're kind of incompatible.
<sphalerite> cizra: sure you can, just set $out to a non-nix-store path :)
<pie_> cizra, you might be able to goad cntr into doing what you want as well but idk
<pie_> see also breakpointHook
o1lo01ol1o has quit [Ping timeout: 244 seconds]
<sphalerite> cizra: so you can do something like `export out=/tmp/inst ; ( genericBuild ; )
* gchristensen pokes {^_^}
<gchristensen> c'mon now
<cizra> worldofpeace: And some day a new stable branch would be created, containing all of master, I suppose, not only backports?
toppler`` has joined #nixos
domogled has quit [Quit: domogled]
<pie_> can i type cast a derivation to a plain attrset? :ÜP
<pie_> * :P
domogled has joined #nixos
<cizra> pie_: Hmm, that's promising
<pie_> cizra, i had a lot of trouble with it but i was trying to do crazy stuff
<pie_> cizra, do report back
<infinisil> tilpner: Hmm..
<pie_> anyone know where the source code for `+` is? infinisil ?
<sphalerite> pie_: primops.cc
<pie_> i tried a quick peek in primops but couldnt find a keyword that worked
<tilpner> pie_: prim_add
<infinisil> ,whomademe
<{^_^}> #<prnumber>, ',command' and '> nix' are implemented in infinisil's backend <https://github.com/infinisil/nixbot> utilizing gchristensen {^_^} frontend <https://github.com/grahamc/ircbot/>. The rest of the features are done by other people's backends
<sphalerite> pie_: prim_add
<tilpner> pie_: nix/src/libexpr/primops.cc +1671
<pie_> ahh, great
<pie_> thanks
<sphalerite> oh, tilpner beat me to it.
<sphalerite> infinisil: will we get ,find back soon? ;)
<infinisil> Soon? No. Eventually? Maybe
<gchristensen> ,find searched the repo for a file?
<{^_^}> ,find is temporarily unimplemented
<infinisil> Yea
<infinisil> And it preferred files with more commits
<gchristensen> fancy
<pie_> ok...im actually looking for the implementation of "=="
esmerelda has quit [Ping timeout: 246 seconds]
<infinisil> But I guess i could just not implement this commit thing, then it would be much easier
phaebz has joined #nixos
<pie_> searching "equa" (-l-ity) got nothin
<infinisil> Why did i get rid of the implementation? Because i generated the file -> commit count mapping manually. It wouldn't have worked for new files
<sphalerite> pie_: src/libexpr/eval.cc ExprOpEq::eval
<{^_^}> [nixpkgs] @grahamc closed pull request #59336 → check-meta: don't execute check-meta.nix 15,000 times (backport) → https://git.io/fjqQq
<{^_^}> [nixpkgs] @grahamc reopened pull request #59336 → check-meta: don't execute check-meta.nix 15,000 times (backport) → https://git.io/fjqQq
<sphalerite> ah damn, I keep getting beaten to it :p
<gchristensen> oh thank goodness, {^_^} seems to be feeling much better
<pie_> sphalerite, you were more correct though
ng0 has joined #nixos
<sphalerite> pie_: I guess. Still, the interesting part is what you found ;)
<{^_^}> [nixpkgs] @primeos pushed to master « ubridge: 0.9.15 -> 0.9.16 »: https://git.io/fj4kU
<pie_> Profpatsch, looks like equality checking could be lazier? dunno if that would be a good or bad thing though :D (aborts are impure anyway :P)
<pie_> (i mean fail fast)
<pie_> currently it forces both values
<pie_> well I guess I found my problem and it does what one would guess https://github.com/NixOS/nix/blob/bb6e6923f25841874b6a915d234d884ddd4c92dd/src/libexpr/eval.cc#L1703
<pie_> hmm...hold on
<worldofpeace> ,define Worldofyumminess = Worldofwarmth(trill every r) + a dash of extra sweetness
<pie_> ah it returns early
<pie_> yeah so only the outpaths of my sets get compared and not their contents
<pie_> which would be fine if i wasnt tacking on attributes afterwards that dont affect the actual output of the given derivation
<pie_> inb4 this ends up being horribly misguided and i wasted a lot of time on it >_>
leotaku has quit [Ping timeout: 245 seconds]
* pie_ goes back to experimenting :D
<worldofpeace> ,Worldofyumminess = Worldofwarmth(trill every r) + a dash of extra sweetness
<{^_^}> worldofyumminess defined
<pie_> > (pkgs.hello // {a = 1;}) == pkgs.hello
<{^_^}> true
<pie_> > (pkgs.hello // {type = "set"}) == (pkgs.hello // {type = "set"})
<{^_^}> error: syntax error, unexpected '}', expecting ';', at (string):253:30
<pie_> > (pkgs.hello // {type = "set";}) == (pkgs.hello // {type = "set";})
<{^_^}> true
<pie_> > (pkgs.hello // {a = 1; type = "set";}) == (pkgs.hello // {type = "set";})
<{^_^}> false
<pie_> no I'm not doing anything bad why do you ask.
<alexarice[m]> pie_: would be getting worried if == wasn't reflexive
<pie_> alexarice[m], i mean, i dont know much nix internals so, could be pointer equality for all i know :P
<pie_> and if its a new object, false
<pie_> obviously this is not the case
<alexarice[m]> pie_: can that even happen in a pure language?
<infinisil> pie_: can't be pointer equality because purity, I think
mexisme has joined #nixos
<pie_> im not 100% sure its that simple
<pie_> but that was just an example
<kaliumxyz> https://imgur.com/ZPNJHch free nixos meme
<pie_> kaliumxyz, ....we will accept it
* pie_ stashes
drakonis has joined #nixos
<infinisil> let x = 10; y = 10; in z: z == x
<infinisil> This function would give you different results if you pass in x vs y
<infinisil> If == was pointer equality
<infinisil> -> would be impure as a function could return different results for same inputs
<infinisil> Q.E.D. :P
mexisme has quit [Ping timeout: 268 seconds]
<pie_> sure
zeta_wolf has joined #nixos
zeta_wolf has quit [Remote host closed the connection]
nikivi has quit [Remote host closed the connection]
<pie_> is there anything i break by type "casting" a set
<pie_> + doesnt want to accept set that i tried to say is an integer :C
schjetne has joined #nixos
zeta_wolf has joined #nixos
<infinisil> The pkgs.hello / { a = 1; } example sure is a bit weird
* infinisil checks the nix source
<pie_> it ignores the attributes of derivations
wangoe has quit [Ping timeout: 258 seconds]
<infinisil> Yeah just saw it too
* infinisil doesn't like that
<pie_> i can see how it would normally be correct
<pie_> but im not sure what do expect of this case
<pie_> guess this is how you end up with multiple equality operators :P
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.{beta,dev,canary}: 3.5.0.13 -> 3.5.0.14 »: https://git.io/fj4kE
<zeta_wolf> hello guys, when i tried to set these packages to automatically update emacs nixos threw the `read only file system` error, i have my emacs packages declaratively installed in home.nix so will they automatically be updated by nixos? https://hastebin.com/otenahugun.sql
ondrejsl has joined #nixos
<ondrejsl> hello, I am trying to build my haskell project with nix. I've done stack2nix which generated a 40k lines nix file which takes ages to compile (no cache seems wrong) and then fails with "binutils-2.31.1/bin/ld: cannot find -lpthread" and similar lines -- can you please advise what's needed?
civodul has joined #nixos
<zeta_wolf> ondrejsl: could you pastebin your setup for this and have you tried this link: https://github.com/Gabriel439/haskell-nix
<infinisil> ondrejsl: No cache is expected, the nixpkgs build farm can't possibly build every package for all possible versions of dependencies
<sphalerite> pie_: I guess you'll implement your own equality operator that does care about attrs on derivations? :D
<sphalerite> (in nix, since that should be perfectly possible)
<infinisil> ondrejsl: Ideally stack2nix should generate working builds, but it seems that in your case something went wrong and you might need to fix something manually, what's the full error? From the first suspicious line to the end
<pie_> ondrejsl, infinisil, maybe worth an additional comment, if this is correct?: stack2nix probably wont be using the same packages as in the in-tree nixpkgs haskell packages, and if you happen to have a different version of something thats a core dependency, its no surprise you end up rebuilding the world
<infinisil> pie_: Yeah it generates a completely new Haskell package set that has nothing to do with the nixpkgs one. It would be really surprising if it would evaluate to the exact same derivations
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/a7e559a5504 (from 35 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/a7e559a5504 (from 35 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/cdec6217d98 (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/971b731fc18 (from 19 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/cdec6217d98 (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/81d4e65891f (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/66af519580b (from 29 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/cdec6217d98 (from 12 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/920d066ded1 (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<gchristensen> woohoo infinisil ^
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> Whew!
<pie_> w00t
<drakonis> sweet christmas
<pie_> make it rain
<gchristensen> these are not necessarily recent bumps, but the system running the tracker died.
<sphalerite> RIP
<gchristensen> definitely
_ris has joined #nixos
<ondrejsl> zeta_wolf: I'll try to post it later, the gist is that it takes haskell.packages.ghc864 and does compiler.override. Now I am guessing I need to add some dependencies to the override(?) but I can't find where it's documented.
<ondrejsl> infinisil: ah, good to know, thank you
<clever> ondrejsl: you can use .extend to add more overlays to things
<averell> wow, we have a FF 67 PR before they even released their release notes
<clever> > haskellPackages.extend
<{^_^}> <LAMBDA>
<pie_> averell, maybe they want to put nix in the release notes :P (jk)
<clever> ondrejsl: the extend function takes a single overlay, and returns a new package set, that also has its own .extend
<zeta_wolf> i am setting up some web devopment tools in nixos, but the instructions on how to setup postgresql and nginx do not go in depth, also i am trying to setup yesod web framework, is there instructions(links) that go in depth on setting this stuff up? thanks in advance!!!
<gchristensen> averell: link?
<averell> ah, that must be it
<averell> #61757
<{^_^}> https://github.com/NixOS/nixpkgs/pull/61757 (by andir, 2 hours ago, open): firefox: 66.0.5 -> 67.0
<gchristensen> nice
<pie_> zeta_wolf, i cant think of anything other than piecing together information from random tutorials and the programs documentation
mexisme has joined #nixos
<infinisil> andi-: Why backport FF major releases? (<- gchristensen averell: Do you know?)
<gchristensen> browsers are security critical
<gchristensen> and not really an API
<infinisil> Hm alright
<andi-> yeah that is exactly the reason why I started picking that package up..
<andi-> averell: I have been doing pre-release PRs for ~5 versions now.. It is pretty predictable since they schedule is an iCal file you can add to your calendar
<ondrejsl> clever: I am not sure I need an overlay. I can just edit my default.nix. The problem is I don't know how to add pthread, gmp and similar dependencies.
<zeta_wolf> well are any of you guys using: 'postgresql', 'nginx', or 'yesod' for web development? It would be nice to have some nixos configurations to use as a reference
<andi-> s/they/their/
<averell> oh i see. cool.
cswl has joined #nixos
<infinisil> ondrejsl: First, can you paste the full error?
<pie_> zeta_wolf, calm down, read some docs, wait at least until your question has gone off the screen before asking again :p
<clever> ondrejsl: why do you need to add things like pthread and gmp?
<infinisil> clever: (Read their first message in the backlog)
<ondrejsl> infinisil, clever : here's the error https://pastebin.com/CWqS4e7G
<pie_> also ive never used stack2nix but how would it know about system packages?
tilpner has quit [Quit: WeeChat 2.4]
<clever> ondrejsl: it cant even find -lc, something is wrong with the entire compiler
schjetne has quit [Ping timeout: 258 seconds]
<clever> ondrejsl: are you doing anything weird like forcing static or cross-compiling?
tilpner has joined #nixos
zupo has joined #nixos
<ondrejsl> clever: not intentionally, I hope to copy the binary with nix-copy-closure later
<ondrejsl> here's an excerpt from the nix file https://pastebin.com/F1E7c0rL
<ondrejsl> skipping about 39500 lines of package descriptions
esmerelda has joined #nixos
<clever> ondrejsl: looks like regular stack2nix, is the haskell source online publicly?
<ondrejsl> clever: no
<ondrejsl> I am realising that if it's not obvious to you people it's probably better I find a different way to build this
<clever> ondrejsl: i'm thinking you can just ignore stack2nix, and use normal cabal2nix
<clever> ondrejsl: https://gist.github.com/cleverca22/5918f7d6a10b66ea2d38ef09e769a676 is a very basic example, that just loads proposal-ui.cabal from . and builds it, start with that, and see how far you get
<ondrejsl> clever: first good sign is that it's using cache.nixos.org
dywedir has quit [Quit: Lost terminal]
<clever> ondrejsl: yeah, thats one reason i avoid stack2nix when possible
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 248 seconds]
knupfer1 is now known as knupfer
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « monkeysphere: 0.43 -> 0.44 »: https://git.io/fj4Ig
knupfer has quit [Client Quit]
knupfer1 has joined #nixos
<infinisil> Same, i try to use cabal when possible
zupo has quit [Ping timeout: 258 seconds]
knupfer1 is now known as knupfer
o1lo01ol1o has joined #nixos
<bourbon> hi - I'm trying to use a package in darwin nix, but it's saying that it's not compatible:
<bourbon> where can I see what platforms a derivation is good for, and what would I do to make this derivation okay for darwin? it seems like just trying to run telegraf works. maybe the problem is the systemd service?
<{^_^}> [nixpkgs] @Lassulus opened pull request #61762 → Openvpn backport → https://git.io/fj4Ir
ckoparkar has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @c0bw3b opened pull request #61763 → Pkg/pstree classic → https://git.io/fj4Io
<infinisil> bourbon: I'm confused, are you on NixOS or Darwin? Because those two are very much disjoint. The file you linked to is a systemd service for NixOS
zupo has joined #nixos
<bourbon> ah, darwin
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<bourbon> I'm very new to nixness
<infinisil> I see :)
tokudan has quit [Quit: ZNC 1.7.2 - https://znc.in]
<bourbon> the other build engineer is twisting my arm and forcing me to deploy software for the osx build machines in nix
<infinisil> bourbon: So what command are you running and what error do you get?
<judson_> I just ran across https://github.com/NixOS/nixpkgs/issues/42117 - trying to use exim from Rails. The NixOS ssid wrapper won't allow it?
<{^_^}> #42117 (by nh2, 48 weeks ago, open): NixOS setuid wrapper prevent running sudo in user namespace
<judson_> Is there a workaround for this?
<ondrejsl> clever: so curiously the error is the same pretty much,... I tried to go with the guide to cabal2nix in the manual and got https://pastebin.com/uMb3M3B8 I'll try your expression next
<clever> ondrejsl: can you pastebin the cabal file?
tokudan has joined #nixos
<bourbon> I'm just trying `nix-shell --run "some stuff"`
<bourbon> our main default.nix does something along the lines of `pkgs.stdenv.mkDerivation rec {...`
<bourbon> I added `pkg.nix` to buildInputs`
mmlb285 is now known as mmlb
mnoronha has joined #nixos
<infinisil> The error is..?
waleee has quit [Quit: WeeChat 2.4]
<mnoronha> This is a beginner question: I'm trying to make an isolated python environment with nix-shell like what's specified here: https://nixos.org/nixpkgs/manual/#python
<mnoronha> This works initially, but when I go add a package, it seems to be "caching" my shell
<bourbon> error looks like
<bourbon> "2019/05/17 21:15:20 ui error: ==> qemu: error: Package ‘telegraf-1.7.0’ in /nix/store/220kpvq17xqg89vr25b1g69lsgksvi7k-source/pkgs/servers/monitoring/telegraf/default.nix:25 is not supported on ‘x86_64-apple-darwin’, refusing to evaluate."
<bourbon> sorry, took a minute to track it down
<infinisil> It looks like you might be using a nixpkgs meant for Linux on Darwin
<bourbon> sure does
<ondrejsl> clever: perfect clue! I forgot some flags for static linking there from previous attempts!
<bourbon> oddly, it never complained when the build guy was using the same channel for ruby packages, even ones with native lib dependencies
<bourbon> perhaps there's a way I can make a derivative derivation from the one that exists for telegraf that is compatible?
<tilpner> > :p (builtins.elemAt telegraf.meta.platforms 1).kernel.families
<{^_^}> { darwin = { _type = "exec-format"; name = "darwin"; }; }
<infinisil> bourbon: By default when you import nixpkgs something like this: `import <nixpkgs> {}`, it infers some default impure arguments in the {}, one of which is `system` which defaults to something like builtins.currentSystem
<infinisil> So I suspect there might be an instance where these defaults aren't used because such an argument is passed explicitly
<bourbon> first few expressions in the default.nix are:
<bourbon> `let` followed by ` _pkgs = import <nixpkgs> {};`
<bourbon> or... sec...
<clever> ondrejsl: ah, so you forced it to be fully static, and it couldnt find libgmp.a and libc.a
<clever> ondrejsl: so -lc and -lgmp failed
zeta_wolf has quit [Remote host closed the connection]
<infinisil> bourbon: Aha! That nixpkgs version only supported linux for telegraf
<srhb> Hum, anyone know how to make chromium actually obey ~/.XCompose?
<bourbon> how does the telegraf package "know" that it does not support darwin, though?
<srhb> Or a syswide setting to achieve the same thing I suppose.
<bourbon> I guess that's pretty explicit
<infinisil> bourbon: And in this commit it was changed to also include darwin: https://github.com/NixOS/nixpkgs/commit/8f87a61de202067f618f028b82256055c46337bc
fresheyeball has joined #nixos
<fresheyeball> hey out there
<fresheyeball> I am running 19.09 unstable
<bourbon> well, thanks
<fresheyeball> and can't get gtk themes to work
<bourbon> so I could get through this hell by just using a newer version of the package repository?
<infinisil> bourbon: You just need to override it to have it indicate support for darwin as well
<infinisil> Hold on..
<fresheyeball> I got GTK_DATA_PREFIX set
<clever> ondrejsl: so now you should have 2 ways of building it, with either cabal or stack2nix, and need to decide if obeying stack.yaml is worth the build time
<fresheyeball> and the setting sticks in gnome-tweak-tool
<fresheyeball> and I see Arc-dark in gnome-tweak-tool
<clever> ondrejsl: or if you would rather ignore stack.yaml and get help from cache.nixos.org!
<fresheyeball> but no change to the windows
<infinisil> bourbon: Replace `telegraf` with `telegraf.overrideAttrs (old: { meta = meta // { platforms = lib.platforms.unix; }; })`
<infinisil> (untested, but I'm fairly certain this should do it)
<ondrejsl> clever: my stack.yaml is trivial so I think the latter works better
<ondrejsl> clever: thank you!
InFlames has quit [Ping timeout: 246 seconds]
<infinisil> fresheyeball: Does it work with lxappearance? Specifically lxappearance-gtk3?
<fresheyeball> I will try
<fresheyeball> but on my other machine I couldn't get it work with lxappearence (the setting would not persist)
<fresheyeball> and had better luck with gnome-tweak-tool
<pie_> oh no we're up to 1200 PR again :D
<infinisil> fresheyeball: Yeah try lxappearance-gtk3, standard lxappearance never worked for me
<bourbon> infinisil: so to make a derivative derivation, I just use `telegraf.overrideAttrs(old: { __NEW_STUFF__ ..` and base it on the default.nix you linked?
<infinisil> pie_: Down to! It has been between 1200-1300 for a while now
<infinisil> bourbon: Not sure what you mean by "base it on", but yeah that's how you customize derivations
<aveltras> are there examples of derivations similar to https://github.com/GoogleChrome/rendertron ? I'm trying to package it taking inspiration from yarn but with no success
<infinisil> In this case at least, there's a bunch of other override techniques
<bourbon> I mean... I just set fields, and anything I set in that dictionary overrides stuff that default.nix provides?
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> bourbon: Yes, specifically it overrides the mkDerivation attributes
<bourbon> infinisil: what's the relationship between nixpkgs/nixos/modules/services/monitoring/telegraf.nix and nixpkgs/pkgs/servers/monitoring/telegraf/default.nix ?
<infinisil> bourbon: The former is a NixOS service that sets up a systemd service to run telegraf, the latter is just the package definition
<ondrejsl> is there a guide to signing my build so that I can nix-copy-closure it? I found https://blog.joel.mx/posts/how-to-use-nix-copy-closure-step-by-step and nix-copy-closure no longer has the used flags
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<clever> ondrejsl: if the recieving end is a trusted user in nix.conf (root is by default), it wont check signatures
<clever> ondrejsl: so you can either `nix-copy-closure --to root@something` or `sudo nix-copy-closure --from notroot@something`
<ondrejsl> clever: nice one!
<ondrejsl> still would be great to understand this, it looks useful
<fresheyeball> infinisil:that worked, hu
<infinisil> fresheyeball: See #26909 too
<{^_^}> https://github.com/NixOS/nixpkgs/issues/26909 (by pbogdan, 1 year ago, open): lxappearance unable to save gtk2 settings
<pie_> clever, is being a trusted user wequivalent to always running as root
schjetne has joined #nixos
<clever> pie_: nearly, you can basically just unpack whatever NAR you want to /nix/store/
<clever> pie_: so you could maliciously provide a trojaned copy of sudo, but you cant make root run it
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a43fb1def6f (from 88 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @cizra opened pull request #61764 → tdm: init at 2.07 → https://git.io/fj4Lm
<fresheyeball> infinisil: interesting
<clever> pie_: but if you can predict what root is going to nixos-rebuild to next, you could beat them to it
linarcx has quit [Quit: WeeChat 2.4]
<clever> pie_: and "prebuild" the wrong one
<cizra> manveru and others: I packaged The Dark Mod (phew! That was quite some compilation!) @ https://github.com/NixOS/nixpkgs/pull/61764 -- however, it only runs if I add the path containing libGL.so.1 to the LD_LIBRARY_PATH manually. How do I fix it?
<{^_^}> #61764 (by cizra, 2 minutes ago, open): tdm: init at 2.07
<clever> cizra: that will depend on if the gpu drivers have it or not
goibhniu1 has quit [Quit: Leaving.]
<clever> cizra: my desktop has libGL in /run/opengl-drivers
<clever> cizra: but my laptop does not
<cizra> clever: Mine apparently doesn't (NVidia closed-source). I added libglvnd to dependencies (as visible in PR), but that changed nothing.
fresheyeball has quit [Quit: WeeChat 2.4]
<infinisil> cizra: You'd have to `wrapProgram ... --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL-or-whatever ]}
<infinisil> libGLU_combined seems to be common, judging from ripgrepping through nixpkgs
<infinisil> Or --prefix
mexisme has quit [Ping timeout: 255 seconds]
<cizra> infinisil: Added. Lessee.
<{^_^}> [nixos-artwork] @samueldr opened pull request #44 → Adds social preview banners → https://git.io/fj4LW
<{^_^}> [nixpkgs] @c0bw3b merged pull request #61763 → pstree: re-init at 2.39 (reverts #60994) → https://git.io/fj4Io
<{^_^}> [nixpkgs] @c0bw3b pushed 3 commits to master: https://git.io/fj4L4
ym555_ has joined #nixos
ambro718 has quit [Ping timeout: 255 seconds]
ym555 has quit [Ping timeout: 246 seconds]
ondrejsl has quit [Ping timeout: 256 seconds]
ondrejsl has joined #nixos
<bourbon> infinisil: no dice: " veertu-anka: error: undefined variable 'meta' at /Users/anka/default.nix:30:14"
<infinisil> bourbon: Ah sry, `.. meta = old.meta ..`
<bourbon> would using a `rec {...` let me refer to `meta` directly?
<cizra> infinisil: Guess what, it works! Thanks a lot!
<infinisil> bourbon: Nope that won't help in this case
<bourbon> okdok
mexisme has joined #nixos
<cizra> manveru: It's all yours @ https://github.com/NixOS/nixpkgs/pull/61764 There was somebody else who liked Thief / The Dark Mod, but I forgot their name.
<{^_^}> #61764 (by cizra, 27 minutes ago, open): tdm: init at 2.07
<bourbon> is "old:" in this case a declaration of the name to refer to the "old" one as?
<{^_^}> [nixpkgs] @andir opened pull request #61765 → [19.03] firefox 66.0.5 -> 67.0 → https://git.io/fj4Li
<bourbon> I notice in the dox, it's `oldAttrs: ...`
<bourbon> but some issues on github use `old:`
<bourbon> (and you suggest `old:...`
<bourbon> )
zupo_ has joined #nixos
drewr has quit [Quit: ERC (IRC client for Emacs 26.2)]
ym555_ has quit [Ping timeout: 246 seconds]
<immae> bourbon: "old" is a variable name for the function argument, you can name it fooBar if you want. If you don’t use it in the function body, you may name it _ to clarify the fact that you don’t need it
zupo_ has quit [Client Quit]
<bourbon> just making sure I'm not dealing with named args here
<bourbon> I'm... very new to nix's config language, still
ym555_ has joined #nixos
schjetne has quit [Ping timeout: 248 seconds]
<immae> yes, it’s a function argument here
zupo has quit [Ping timeout: 252 seconds]
<immae> like probably everywhere you’d see `<something>:` actually
<infinisil> bourbon: Yeah I just used "old" because it contains the old attributes to mkDerivation
<bourbon> immae: but I can be safe in assuming this label is applied only at the call-site, not the actual function definition?
<bourbon> also, still having a hard time parsing through the first few lines of the nixfile: https://hastebin.com/atuzifetod.js
<bourbon> what's it mean that there's a dangling colon on the {} from the let block?
knupfer has quit [Ping timeout: 252 seconds]
<immae> it’s a ";" not a ":"
<immae> and the ":" at the last line will make the whole thing not compile
<immae> How much are your at ease with functionnal programming?
<bourbon> I prefer it, generaly
sheeldotme has joined #nixos
<bourbon> so the dangling colon turns it into a function definition... but to what end?
<immae> Your whole file here is a nix expression (a unique one, as is any nix file you’ll encountr)
<immae> In your case, it’s a function
<immae> taking one argument of the form "{ pkgs }" and resulting in a mkDerivation below
<immae> so you’re supposed to call it with an argument { pkgs = <something>; }
<bourbon> hm
<bourbon> so it's a function with 1 arg with a default value for it if it's missing?
<immae> *But* you have a default in your case ( { pkgs ? <default> } which is taken if you call it with jus {}
<immae> exactly
<bourbon> where should I slip "lib" in to get it to be defined, btw?
<infinisil> pkgs.lib :)
<bourbon> ok
<immae> you can put it in the first "let", like `lib = _pkgs.libs;
<infinisil> immae: (except it's "lib", not "libs")
<immae> right, sorry :)
<infinisil> And `lib = _pkgs.lib` is equivalent to `inherit (_pkgs) lib` if we want to be fancy :P
<bourbon> ok
<bourbon> so the previous devs were just being "clever"
<bourbon> https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/monitoring/telegraf/default.nix < seems to be similarly formatted as a function with the same args
<immae> there is nothing clever nor unclever in there
<bourbon> just no defaults
<immae> Ok, so here you have something else
<immae> Usually you "import" file, like `import ./file.nix { function args }`
shiver has quit [Ping timeout: 244 seconds]
<immae> Here they’re using a very handy thing that is callPackage
drewr has joined #nixos
<immae> Which is used like `callPackage ./file.nix { function args }`, very similar to imports
<immae> but it has a big difference
<bourbon> I don't see any invocations of callPackage, though
<immae> It will automatically replace elements of pkgs in the function, so in your case you can expect them to be filled in correctly with the values
<immae> bourbon: that’s the job of the caller, which you don’t see here
<bourbon> that's baked into the implementation of `nix-shell`?
<immae> (if anyone knows a wiki page or so that explains the thing better than me, please share)
<immae> yep
<immae> and most nix-foo's
<immae> in your case, lib, buildGoPackage, fetchFromGitHub are all "direct children" of nixpkgs, so they will be filled in automatically when using callPackage facility
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<immae> but you could also say `import ./default.nix { inherit (pkgs) lib buildGoPackage fetchFromGitHub; }` and it would be exactly the same
<bourbon> so in which cases will the default pkgs get used instead of the one provided from outside?
Ariakenom has quit [Quit: Leaving]
<immae> you mean in your code?
<bourbon> yeah
<immae> nix-build doesn’t use the callPackage for instance
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/c00a043ce2f (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<bourbon> so nix-build, yes, nis-build no?
<immae> so nix-build your_file.nix will use the default
<immae> (unless you provide other arguments)
<infinisil> Um hold on immae, I'm pretty sure nix-build/nix-shell doesn't have anything to do with callPackage directly
<immae> nix-builid doesn’t, as I said
<immae> nix-shell I thought so?
<bourbon> hm
<infinisil> I'm pretty sure it doesn't either
<immae> oh
<immae> sorry then
<infinisil> callPackage is a nixpkgs construct and is nothing inherent to Nix
<bourbon> the only thing I'm seeing invoked in the build scripts is `$HOME/.nix-profile/etc/profile.d/nix.sh`
<immae> infinisil: makes sense, sorry. So basically you’ll only find the callPackages in a nix file
<{^_^}> [nixpkgs] @matthewbauer closed pull request #59756 → [wip] Performance experiments → https://git.io/fjYrZ
<{^_^}> [nixpkgs] @matthewbauer reopened pull request #59756 → [wip] Performance experiments → https://git.io/fjYrZ
<bourbon> so I can assume that there's no nix-magic that calls callPackages ever?
<bourbon> ie: there's no magic, and things do what they explicitly say?
wfranzini has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
nDuff has joined #nixos
<infinisil> There is one piece of magic
wfranzini has joined #nixos
<infinisil> But otherwise everything does what they explicitly say
<infinisil> I really wish we had a Nix LSP server with go-to-definition
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<pie_> infinisil, please god yes
<gchristensen> didn't ,jdwhat make that?
<infinisil> ,jdwhat
<{^_^}> jD91mZM2
<gchristensen> oh they're even in channel ready to be tab completed
<pie_> damn son, you just got tab completed
<infinisil> Nix go-to-definitions seems really hard to get right, and it can't even be done right in general
linarcx has joined #nixos
<infinisil> s/seems/is
stranger___ has quit [Quit: Connection closed for inactivity]
<immae> What do you mean with "go-to-definition"?
<infinisil> immae: Being able to hover over e.g. `runCommand`, press a key and the editor switches to where runCommand is defined
shabius has quit [Quit: Leaving]
<Baughn> "Press hotkey, editor jumps to whatever defines the binding you're looking at."
<Baughn> It's extremely useful for library functions.
<immae> ahh ok, I took "definition" as "documentation" instead of "source". Makes sense and quite useful, I agree :D
<bourbon> it's invaluable for the bazel-intellij integration
<bourbon> ^] "just works"
shiver has joined #nixos
shabius has joined #nixos
<Baughn> ^] works? In which editor?
<infinisil> It's the default in vim
camsbury has joined #nixos
hyper_ch has quit [Remote host closed the connection]
hyper_ch has joined #nixos
amir has quit [Remote host closed the connection]
<camsbury> clever: trying to get the hash of my current nixpkgs channel to use with fetchTarball
<camsbury> I think you told me how to do this before
<tilpner> Try lib.version to get a short commit hash
amir has joined #nixos
GiGa has quit [Quit: Leaving]
<clever> [root@system76:~]# nix eval nixpkgs.lib.version
<clever> "19.09pre177651.aeb464dfd37"
<camsbury> clever++
<{^_^}> clever's karma got increased to 132
<camsbury> ty!
__monty__ has quit [Quit: leaving]
<{^_^}> [nixpkgs] @c0bw3b opened pull request #61766 → pwsafe: 1.07 -> 1.08.1 → https://git.io/fj4tE
linarcx has quit [Quit: WeeChat 2.4]
Makaveli7 has joined #nixos
ondrejsl has quit [Quit: Page closed]
fenedor has joined #nixos
toppler`` has quit [Ping timeout: 246 seconds]
praetorg has joined #nixos
fendor has quit [Ping timeout: 258 seconds]
schjetne has joined #nixos
toppler`` has joined #nixos
<{^_^}> [nixpkgs] @volth closed pull request #61744 → perlPackages: update → https://git.io/fj8AR
drakonis has quit [Ping timeout: 245 seconds]
<praetorg> is building of bcachefs kernel on unstable currently broken? patch fails to apply, stating "Reversed (or previously applied) patch detected!"
<{^_^}> [nixpkgs] @worldofpeace merged pull request #61738 → arandr: Stop crashing when trying to open dialog boxes → https://git.io/fj8bU
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj4ti
rfold has quit [Quit: WeeChat 2.4]
ddellacosta has joined #nixos
shibboleth has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
ym555 has joined #nixos
sir_guy_carleton has joined #nixos
<viric> yorick: Good luck :)
ym555_ has quit [Ping timeout: 244 seconds]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
MmeQuignon has quit [Ping timeout: 246 seconds]
Copenhagen_Bram has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/650a295621b (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
cswl has quit [Quit: Connection closed for inactivity]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
Copenhagen_Bram has joined #nixos
orivej has quit [Ping timeout: 258 seconds]
schjetne has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @nh2 opened pull request #61767 → hotspot: 1.0.0 -> 1.2.0 → https://git.io/fj4qT
selfsymmetric-mu has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.4]
Copenhagen_Bram has quit [Read error: Connection reset by peer]
<{^_^}> [cabal2nix] @nh2 opened pull request #417 → xmonad: Fix missing dollar escape quotes. → https://git.io/fj4qs
ddellacosta has quit [Ping timeout: 258 seconds]
ym555 has quit [Ping timeout: 258 seconds]
sigmundv has joined #nixos
<nh2> can anybody who runs NixOS with desktop GUI try whether this program starts for you? https://github.com/NixOS/nixpkgs/pull/61767
<{^_^}> #61767 (by nh2, 12 minutes ago, open): hotspot: 1.0.0 -> 1.2.0
ym555 has joined #nixos
Copenhagen_Bram has joined #nixos
lovesegfault has joined #nixos
jackdk has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #59657 → pythonPackages.loo-py: init at 2017.2 → https://git.io/fjYLi
<{^_^}> [nixpkgs] @marsam pushed 9 commits to master: https://git.io/fj4qE
kleisli has joined #nixos
<kleisli> how could one find which package installed a given binary to the store, without just searching nixpkgs?
jackdk has quit [Client Quit]
<{^_^}> [nixpkgs] @marsam merged pull request #61751 → pythonPackages.stravalib: init at 0.10.2 → https://git.io/fj8jU
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/fj4qw
jackdk has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
<infinisil> nh2: You mean a desktop environment?
<nh2> infinisil: yes
<qyliss> kleisli: is the store path not enough?
max1 has quit [Ping timeout: 245 seconds]
<qyliss> If not, try nix-store --query --deriver
<nh2> kleisli: nix-locate perhaps? That also shows the nixpkgs attribute
ThatDocsLady has joined #nixos
<nh2> infinisil: on Ubuntu I get one of these common Qt errors
jackdk has quit [Client Quit]
<qyliss> Can I set the nice level of nixbld users? daemon-nice-level doesn't seem to propagate to build users
jackdk has joined #nixos
jackdk has quit [Client Quit]
<qyliss> (despite the documentation?)
jackdk has joined #nixos
mbrgm_ has joined #nixos
<infinisil> Ohh this very much sounds like the reason why the nice level never really did anything for me
o1lo01ol1o has joined #nixos
fenedor has quit [Quit: Leaving]
gagbo has joined #nixos
mbrgm has quit [Ping timeout: 255 seconds]
mbrgm_ is now known as mbrgm
<qyliss> my nix-daemo nprocess is running with thhhhhhhe right niceiii level, but none of nixbld*'s processes
<qyliss> (hence the key repeat weirdness :P)
o1lo01ol1o has quit [Ping timeout: 258 seconds]
selfsymmetric-mu has quit [Remote host closed the connection]
ddellacosta has joined #nixos
markasoftware has joined #nixos
nDuff has quit [Quit: zzz]
<worldofpeace> dtz: how'd #61639 go for you?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/61639 (by dtzWill, 3 days ago, open): dbus: 1.12.12 -> 1.12.14
gagbo has quit [Ping timeout: 246 seconds]
kleisli has quit [Quit: Communi 3.5.0 - http://communi.github.com]
shibboleth has quit [Quit: shibboleth]
abathur has joined #nixos
kleisli has joined #nixos
erasmas has quit [Quit: leaving]
dansho has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
hamishmack has joined #nixos
ddellacosta has quit [Ping timeout: 255 seconds]
jackdk has quit [Ping timeout: 258 seconds]
ddellacosta has joined #nixos
schjetne has joined #nixos
<markasoftware> will nixos run well on a VPS with 0.5gb of memory?
jackdk has joined #nixos
<simpson> markasoftware: That should be enough to boot. NixOS isn't special in terms of footprint; you should be able to plan for it like you'd plan for any other Linux+systemd distro.
<markasoftware> i'm worried abouth the package manager, mainly
<markasoftware> it seems to use more memory than apt, substantially
<simpson> Which command? nix-env is known to use a lot of memory, but the rest of them should be relatively well-behaved.
<markasoftware> if i install things using configuration.nix instead of nix-env, will it use less memory?
selfsymmetric-mu has joined #nixos
<simpson> Sure. Or nix-shell or nix-build. It's nix-env in particular that builds extra structures in memory while doing its work, and IIUC only when evaluating nixpkgs to do package lookups by name.
<markasoftware> ok, i'll take your word for it!
<markasoftware> i can always upgrade the VPS if it isn't enough.
jackdk has quit [Ping timeout: 245 seconds]
<simpson> Or destroy it if you tire of it. It's just a VPS.
MmeQuignon has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #61771 → gnome3.eog: 3.32.1 -> 3.32.2 → https://git.io/fj4mZ
<{^_^}> [nixpkgs] @volth opened pull request #61772 → xfce4-13: 4.13.x -> 4.14pre1 → https://git.io/fj4mn
thc202 has quit [Ping timeout: 250 seconds]
jluttine has quit [Ping timeout: 258 seconds]
<abathur> I'm using an overlay on darwin to run bash 5 as my default interactive shell; is it meaningful to file issues for anything I see that seems related before there's a real attempt to make 5 the default?
sigmundv has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @nh2 merged pull request #61767 → hotspot: 1.0.0 -> 1.2.0 → https://git.io/fj4qT
<{^_^}> [nixpkgs] @nh2 pushed to master « hotspot: 1.0.0 -> 1.2.0 »: https://git.io/fj4mC