gchristensen changed the topic of #nixos to: The Nix Ecosystem, https://nixos.org | NixOS: https://nixos.org/nixos/download.html | Nix: https://nixos.org/nix/download.html | Logs: https://logs.nix.samueldr.com/nixos/ | #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<fresheyeball> things just look to be hanging
<fresheyeball> mount.nfs: timeout set for Sun Aug 25 18:01:32 2019
<fresheyeball> mount.nfs: trying text-based options 'vers=4.2,addr=192.168.1.20,clientaddr=192.168.1.10'
<fresheyeball> it pooped that out first
<fresheyeball> how can I restart nfs on the server?
<fresheyeball> is there firewall ports I need to open or something?
ng0 has quit [Quit: Alexa, when is the end of world?]
<ldlework> clever: I'm getting, /nix/store/k16skadgyjx39vfdc6lajwy55qvw137d-dotnet-sdk-2.2.401/sdk/2.2.401/Microsoft.Common.CurrentVersion.targets(1124,5): warning MSB3191: Unable to create directory "obj/Debug/netcoreapp2.2/". Access to the path '/tmp/nix-build-disinfo.drv-0/disinfo/Disunity.Disinfo/obj/Debug/netcoreapp2.2/' is denied. [/tmp/nix-build-disinfo.drv-0/disinfo/Disunity.Disinfo/Disunity.Disinfo.csproj]
<ldlework> Only when building on windows WSL2
<ldlework> Can you think of anything?
Rusty1 has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed to master « lib/options: fix path in comment »: https://git.io/fjAZX
<clever> ldlework: windows be funky :P
<clever> [root@nas:~]# netstat -anp | grep LIST
<clever> tcp 0 0 0.0.0.0:20048 0.0.0.0:* LISTEN 2933/rpc.mountd
<clever> tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
<clever> tcp6 0 0 :::35555 :::* LISTEN 2932/rpc.statd
<clever> tcp6 0 0 :::9125 :::* LISTEN 2884/statsd_exporte
<clever> [root@nas:~]# netstat -anp | grep rpc
<clever> fresheyeball: strange, i dont have those listed in my firewall config
<clever> fresheyeball: all of the ports are clearly laid out in the nixos module!
<clever> fresheyeball: 2049 is part of nfs
<clever> fresheyeball: and netstat confirms, i do have open connections on that port, between machines doing nfs mounts
<clever> 3260 is tgtd, ignore that
<fresheyeball> clever: so I switched off the firewall on the server
<fresheyeball> and now manual mounting doesn't hang anymore
<fresheyeball> and I can cd to /mnt/spruce and /mnt/fig
<fresheyeball> but no files show with `ls`
<clever> fresheyeball: try restarting nfs-server.service ?
<fresheyeball> clever: can I restart the client?
<clever> fresheyeball: sure
qubasa has joined #nixos
<fresheyeball> ok so I restarted the nfs-server on the server machine
<fresheyeball> and I ran umount on the client
<fresheyeball> and manually mounted again
<fresheyeball> and it didn't hang
<fresheyeball> but I see no files
<clever> fresheyeball: what if you create a file in that directory?
<fresheyeball> permission denied
<clever> fresheyeball: as root?
<fresheyeball> (touch /mnt/spruce/foo on the client)
<clever> fresheyeball: add no_root_squash to the options, then root on the client is also root on the server
<fresheyeball> clever: still permission denied
iyzsong has joined #nixos
qubasa_ has quit [Ping timeout: 258 seconds]
<fresheyeball> clever: ok I added that
<{^_^}> [nixpkgs] @kalbasit merged pull request #67462 → hugo: 0.55.4 -> 0.57.2 → https://git.io/fjA3S
<{^_^}> [nixpkgs] @kalbasit pushed commit from @xworld21 to master « hugo: 0.55.4 -> 0.57.2 (#67462) »: https://git.io/fjAZy
<fresheyeball> now when I umount I get device busy
<fresheyeball> grr
<clever> fresheyeball: is something currently in that dir?, you shouldnt have to umount
<fresheyeball> ok I umounted
<fresheyeball> and did an manual mount again
<fresheyeball> no change
<fresheyeball> no files
<clever> fresheyeball: touch again?
<fresheyeball> clever: it created the file
<fresheyeball> if I ls I can see it
dansho has joined #nixos
<clever> fresheyeball: and if you ls on the server, can you see it?
<fresheyeball> no
<clever> fresheyeball: what if you umount the ntfs and ls again?
<fresheyeball> so I did a umount
<fresheyeball> and the foo file is still in there
<clever> on the server or client?
<fresheyeball> client
<clever> its not mounted yet the file is still there???
<fresheyeball> if I try to mount now it says its busy
<fresheyeball> so I rmed the file
<clever> also, that step was for the server
<clever> i said ntfs, not nfs
<fresheyeball> oh
<fresheyeball> shiza
jluttine_ has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @kalbasit merged pull request #67456 → nixos/unifi: restarting on failure → https://git.io/fjAOO
<{^_^}> [nixpkgs] @kalbasit pushed commit from @mmahut to master « nixos/unifi: restarting on failure (#67456) »: https://git.io/fjAZ7
<fresheyeball> clever: on the server I can mount and unmount the filesystem
<fresheyeball> and I can create files without sudo
<clever> if you umount it, then ls the directory beneath the mount, does the file the client made appear?
<fresheyeball> no
<clever> you may need to go back to step 1, since you deleted the file
<fresheyeball> but I screwed up your steps
<fresheyeball> I removed that file
<clever> mount everything back up, and make the file from the client
<fresheyeball> ok
<fresheyeball> done
<fresheyeball> I made it on the client
<fresheyeball> /mnt/spruce/bar
<clever> then check on the server, does it exist?
<fresheyeball> and did ls on the server
<fresheyeball> and its not there
<clever> umount spruce on the server, and ls again?
<fresheyeball> ok
aveltras has quit [Quit: Connection closed for inactivity]
<fresheyeball> now it's there!
<fresheyeball> if I ls on the server now it's there!
<clever> that confirms, the nfs server is sharing the /mnt/spruce directory on /
<clever> not the thing you mounted over /mnt/spruce
<fresheyeball> ok!
<clever> nohide should be stopping it from doing that
dycan_ has quit [Ping timeout: 272 seconds]
<fresheyeball> perhaps that's why the wiki shows the redundant lines?
<clever> thats a work-around for when your not using nohide
<fresheyeball> clever: what do you suggest?
<clever> try putting them back in and see what happens
<fresheyeball> ok!
<{^_^}> [nixpkgs] @kalbasit merged pull request #66892 → gofumpt: Init at 2019-07-29 → https://git.io/fjFwm
<{^_^}> [nixpkgs] @kalbasit pushed commit from @rvolosatovs to master « gofumpt: Init at 2019-07-29 (#66892) »: https://git.io/fjAZb
<fresheyeball> ok so I put those lines back
<fresheyeball> rebuilt the server
<fresheyeball> then restarted nfs for good measure
<fresheyeball> umounted on the client
<fresheyeball> and then ran mount on the client
<fresheyeball> and I still only see the file the client made
<fresheyeball> /mnt/spruce/bar is there (client)
<clever> fresheyeball: what is the line from exports, for spruce, and what does `mount | grep spruce` say on the client?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjAZN
<fresheyeball> systemd-1 on /mnt/spruce type autofs (rw,relatime,fd=96,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
<fresheyeball> 192.168.1.20:/mnt/spruce on /mnt/spruce type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.10,local_lock=none,addr=192.168.1.20)
jluttine_ has joined #nixos
wtv_nick has quit [Ping timeout: 245 seconds]
<clever> fresheyeball: try removing the exports line for /mnt ?
<fresheyeball> clever: I don't know what you mean
<fresheyeball> this is deeper than I have dared tread in the past
<fresheyeball> oh wait
<fresheyeball> you mean on the server
<clever> fresheyeball: you should have 4 exports lines, one for /mnt, and then 3 for each subdir
<clever> just remove the line for /mnt
<fresheyeball> yay!
<fresheyeball> that seems to have done the trick!
fresheyeball has quit [Quit: WeeChat 2.4]
boxscape has left #nixos [#nixos]
xkapastel has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #67470 → cpython: skip macOS system frameworks → https://git.io/fjAne
fresheyeball has joined #nixos
<fresheyeball> clever: I rebooted the client
<fresheyeball> and all is well
<fresheyeball> that you for your help once again
<fresheyeball> clever++
<{^_^}> clever's karma got increased to 182
<clever> fresheyeball: heh, was looking like a hit&run, you vanished the instant the problem was solved!
<fresheyeball> clever: I rebooted
<clever> yeah
dycan has joined #nixos
dycan has quit [Ping timeout: 272 seconds]
<ldlework> clever: turns out my dependency package is not hash-reproducable based on what machine builds it
<ldlework> clever: on windows it runs into a permission error in the same exact place with a random .drv folder in /tmp
<ldlework> Is there any chance you'd like to build my project to say that it can build on machines other than my own laptop?
<ldlework> https://github.com/disunity-hq/disinfo is the repo if anyone wants to let me know if this builds for them
<clever> *looks*
<clever> ldlework: first minor problem, you import <nixpkgs> in each file, that ruins performance
<clever> ldlework: you want to start the file with { stdenv }:, and then load it with callPackage
<clever> and default.nix is the only one that should import <nixpkgs>
iyzsong has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
<clever> ldlework: build fails here, hash mismatch
ryantrinkle has joined #nixos
<clever> ldlework: next minor problem, both derivations have the identical name
<clever> so its imposible to tell which one is which in the errors
<clever> /nix/store/z955xygfz1c365nasjfbh4jhf0dnzsvf-dotnet-sdk-2.2.103/sdk/2.2.103/Microsoft.Common.CurrentVersion.targets(1128,5): warning MSB3191: Unable to create directory "obj/Debug/netcoreapp2.2/". Access to the path '/build/disinfo/Disunity.Disinfo/obj/Debug/netcoreapp2.2/' is denied. [/build/disinfo/Disunity.Disinfo/Disunity.Disinfo.csproj]
<clever> ldlework: you didnt use the no-preserve flag i gave earlier
<infinisil> I'm currently going through the arguments in https://github.com/NixOS/nixpkgs/pull/16922
<{^_^}> #16922 (by ryantrinkle, 3 years ago, closed): nixos copySystemConfiguration: enable by default
<infinisil> And I just don't get it, I don't see any good reason why this can't be enabled by defualt
<ldlework> clever: you're right!
<clever> infinisil: if <nixos-config> doesnt exist, or is the wrong config (nixops for ex) it will copy the wrong file
<infinisil> One argument is "Because it won't back up the files configuration.nix includes", but any kind of backup is better than none, so that's no good
<evanjs> infinisil: also, dolstra says bc not everything needs it - e.g. nixops. lol but I would want it on nixops machines so I know whats going on ...
iyzsong has joined #nixos
jluttine_ has quit [Ping timeout: 268 seconds]
<clever> infinisil, evanjs: this variant, will just archive the entire nixos-configs dir, including .git
<infinisil> clever: Yeah but even if it will copy the wrong file in some cases, it's better than just never copying it
<clever> (and any secrets it may contain)
<clever> oh, that gives me an idea
<dansho> what's a good partition size for nixos root? (everything excluding /home)
<clever> infinisil: what if nixos-generate-config put those 3 lines, into the default configuration.nix?
<clever> dansho: zfs and then you dont care!
<dansho> i was using 32G for a while, but i tried building ue4 and ran out of disk space (with about 16G free)
<infinisil> clever: Yeah that's why I'm asking, I'm picking https://github.com/NixOS/nixpkgs/pull/24707 back up
<{^_^}> #24707 (by techhazard, 2 years ago, open): nixos-generate-config: add `system.copySystemConfiguration = true;`
<clever> infinisil: i'm thinking, instead of the module trying to guess where you get the config from, you just give it a ./. to tell it
<infinisil> clever: But I just don't see any good reason for not making it true by default
<clever> infinisil: and then that both enables, it, and tells it exactly where to look
ericsagnes has quit [Quit: WeeChat 2.4]
georges has quit [Ping timeout: 272 seconds]
dycan has joined #nixos
<infinisil> clever: Seems a bit too implicit but might work yeah
<infinisil> clever: But really, is there a good argument against true by default?
<infinisil> Because any kind of backup would save the ass of many people
<infinisil> Only doing it for new nixos configs with nixos-generate-config would benefit only new users
<infinisil> And there's no real cost to enabling it by default, the worst thing that could happen is that it can't backup the file
<clever> infinisil: defaulting to true may cause security issues in nixops cases, and it would need a new nixops to turn it back off
<clever> so if your nixpkgs gets ahead of nixops, bad things happen
<infinisil> How would it cause security issues?
<infinisil> Ah
<clever> infinisil: secrets in the host configuration.nix leaking to targets in nixops
<infinisil> I guess if you use nixops on a nixos machine, it would copy the configuration.nix into nixops result
<clever> because it copied the wrong config
<infinisil> True dat
<clever> which is what ./. solves
<clever> but that must exist in the directory it needs to backup, hence, nixos-generate-config
<infinisil> clever: You mean this should then backup the whole ./. directory?
<clever> infinisil: yeah, check the core.nix example i linked above
<clever> that also solves the imports problems
<infinisil> (unless you import from outside the dir)
<infinisil> Not sure about backing up the whole dir, what if someone has /etc/nixos/nixpkgs
<clever> then your just asking for problems, because you config is scattered over the machine and you cant just backup /etc/nixos :P
jluttine_ has joined #nixos
<clever> infinisil: filterSource
iggi42 has joined #nixos
<infinisil> Hm yeah so this would require effort by the user to filter out
<clever> commonly named things like nixpkgs could be filtered by the module
<infinisil> And filterSource is annoying to use damn
<infinisil> I should also push https://github.com/NixOS/nixpkgs/pull/56985 forward because of this
<{^_^}> #56985 (by nh2, 24 weeks ago, open): sources: Add explicitFilterSource
wtv_nick has joined #nixos
<clever> warning: dumping very large path (> 256 MiB); this may run out of memory
<clever> [root@amd-nixos:~]# sqlite3 /nix/var/nix/db/db.sqlite
<clever> sqlite> .mode column
<clever> sqlite> select path, narsize/1024/1024 as narmb, datetime(registrationTime,'unixepoch') from ValidPaths where narsize > 256 * 1024 * 1024 order by registrationTime;
<clever> infinisil: this will list every store path over 256mb, sorted by when it was added to the store
<clever> which lets you discover what it just dumped
<infinisil> Neat
<clever> may be handy to toss it into a wiki
<clever> /nix/store/gcpzi1q7bv9mxryxdhq2lym2k7njqx3c-nixpkgs 296 2019-08-12 20:19:24
<clever> in my case, there is a random .nar.xz in one of my nixpkgs dirs, lol
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<clever> which is adding 66mb to it
ericsagnes has joined #nixos
Acou_Bass has joined #nixos
jluttine_ has quit [Ping timeout: 258 seconds]
teej has quit [Quit: Connection closed for inactivity]
<{^_^}> [hydra] @craigem opened pull request #674 → Test hydra notify → https://git.io/fjAnC
<ldlework> clever: in one of the derivations I do a sed
<clever> + cp -r --no-preserve=mode ${paket-deps}/.nuget $HOME
<clever> + cp -r --no-preserve=mode ${paket-deps}/* .
<clever> ldlework: this is the main change i had to do, to make it build
<wtv_nick> Is the only upside to nixos that you could switch and save different config states in nixstore? Essentially the whole system config is around the configuration.nix. Pressumably you would git that from some repo and install everything you need. Which sounds great but this could easily also be the case with a bash scrypt that apt-gets everything. In the ladder case all that's needed is bash, no need to
<wtv_nick> learn nix language. So am i missing something?
<clever> wtv_nick: the other major benefit, is that you can undo changes very easily
<clever> wtv_nick: ive bricked a few machines with `apt-get dist-upgrade`, but nixos lets you undo even major changes
<evanjs> wtv_nick: for me, a few things.
georges has joined #nixos
<wtv_nick> undo in term of picking an older state in the startup screen or literally undo, with some sort of undo command
<evanjs> Sharing fragments of configs between machines, making many parts of the config dependent on other settings, and sometimes set or handled automatically based on other factors, etc
<clever> wtv_nick: you can either pick an older state from grub, or use `nixos-rebuild rollback`
<clever> which you use depends on if kernel changes are involved, and if you broke it so badly that you cant even boot
<wtv_nick> also i guess you could pick exact version of packages that way on the same machine
<evanjs> the determinism is also extremely helpful when configuring multiple machines (ie from the same repo)
<wtv_nick> Could you explain how the fragments of configs point is different compared to just importing an extra bash file
<wtv_nick> like how is it fundamentaly better doing it with .nix in nixos
<clever> wtv_nick: all config files are built in a sandbox, and only have access to what they defined as inputs, and the output path is a hash of all of the defined inputs
<clever> so any change to an input will properly update all things that depended on it
<wtv_nick> I guess the determinism and the almost garenty that you'll always have a configuration/state that works
<clever> thats not simple to do in a bash script
<wtv_nick> Ah ok see there's the thing i was missing
<wtv_nick> the all config files built in a sandbox part
<clever> both config files, and actual packages
<wtv_nick> Ya the whole sentence
<wtv_nick> thanks, this is much more valuable for someone that needs to deploy machines i guess
<wtv_nick> I mean there is definitely an upside for a normal user but I don't know if it is worth learning it considering what an average linux home user would gain
<clever> wtv_nick: i recently began having problems with the whole machine locking up due to changes in the graphics drivers
<clever> but it only took seconds to pick an older generation in grub, to undo the whole upgrade
<wtv_nick> ah ok ya that's a good use case
<clever> and i know somebody else, that did an upgrade on fedora, and it basicalled killed all of xorg, and made the machine basically un-usable
<clever> like, reinstall levels of unusable
<infinisil> Joy
<wtv_nick> Do you find youself running into that kind of issue enough to where you feel the work you had to put into learning and configuring usefull?
<clever> infinisil: thats how i convinced him to convert to nixos
<clever> wtv_nick: i once ran into an issue with minecraft segfaulting in opengl, and it was fairly simple to just build a special opengl with debug print statements everywhere, to confirm where it was failing
<infinisil> wtv_nick: Nowadays I'm not afraid to reconfigure NixOS in drastic ways. Try out a different kernel? no problem, try out different DE? Sure
<clever> wtv_nick: doing that (and undoing when your done) is not trivial on any other distro
<evanjs> Right, it really depends on your use cases. It's extremely helpful if I have multiple linux machines and want to keep a lot of things synchronized/up to date, without having to maintain multiple completely separate configurations. My desktops now have like <30 lines for their respective configurations. The rest is basically shared or set via profiles defined in those configurations.
<wtv_nick> I guess you only need to run into a problem that screws ur machine up once for it to have been worth beeing under nixos
<clever> wtv_nick: yep
<wtv_nick> cool thanks
<wtv_nick> i just started running nixos on qemu
freeman42x has quit [Ping timeout: 258 seconds]
<wtv_nick> unixporn made me get upsest with setting up my machine this whole week
<wtv_nick> obessed*
<wtv_nick> obsessed* lol
<{^_^}> [nixpkgs] @matthewbauer opened pull request #67471 → emacs-irony: fix build → https://git.io/fjAna
<emptyflask> I've run into an issue with nix-prefetch-git hashes not matching the hashes when building a derivation... I have a default.nix that works under MacOS, but not on NixOS. Possibly something to do with capital letters in filenames? https://gist.github.com/emptyflask/c9750b05386efc132fe91c19d7144a0e
whatever_nick has quit [Quit: leaving]
jluttine_ has joined #nixos
kp__ has quit [Quit: WeeChat 2.5]
freeman42x has joined #nixos
slack1256 has joined #nixos
<emptyflask> I thought maybe it had something to do with an older snapshot of the git repo, but it's using a specific revision, and I've also tried a `nix-collect-garbage` first
steell has quit [Ping timeout: 245 seconds]
<clever> emptyflask: try building the repo on 2 machines (linux and mac), fixing the hash to match what it claims, then use nix-copy-closure to copy the paths to a single machine
<clever> emptyflask: then run `diff -r /nix/store/a /nix/store/b` to diff them, what differs?
<{^_^}> [nixpkgs] @matthewbauer opened pull request #67472 → python: enable loadable sqlite extensions → https://git.io/fjAnM
<slack1256> The node.md file on nixpkgs didn't help to have a mental model on how to use node on nixos. Does anyone remember a blogpost about it?
<{^_^}> [nixpkgs] @worldofpeace opened pull request #67473 → nixos/pantheon: fix launching nm-applet components → https://git.io/fjAnD
<emptyflask> clever: I'll have to try that tomorrow. strange thing though is that nix-prefetch-git under nixos shows the same hash that built under macos. it's just when running nix-shell that it calculates something different
reallymemorable has joined #nixos
<teto> just updated nixos-unstable seems like gettext is broken which in turn blocks evrything.
nexgen2 has quit [Remote host closed the connection]
<slack1256> Report it
<evanjs> teto: Wait, nixos-unstable is broken, but nixpkgs-unstable isn't? o_O
<clever> ,howoldis
<clever> evanjs: which is newer?
lh- has joined #nixos
<lh-> hello?
xkapastel has quit [Quit: Connection closed for inactivity]
<hpfr[m]> Hello
<evanjs> clever: I guess I just figured that nixos-unstable is typically only newer because stuff is added after tests pass. Is that not always (or ever?) the case?
<clever> evanjs: nixpkgs-unstable also waits for darwin builds, so that can hold it back
lh- is now known as liam
<evanjs> clever: aha. I had no idea that was the case. I see the differences are listed on howoldis now though :P The difference between the two is interesting, though
liam is now known as hpfr
oida has quit [Remote host closed the connection]
oida has joined #nixos
infinii has quit [Ping timeout: 248 seconds]
hpfr has quit [Remote host closed the connection]
Myhlamaeus1 has quit [Remote host closed the connection]
<teto> I don't get how nixos-unstable could pass with gettext broken since it breaks many packages :/
<tdeo> is there a simple function to turn a file in the store to a file in a directory in the store?
<clever> teto: the channel updates when the tests pass, and hydra has tried to build everything, the non-test stuff doesnt have to pass
<clever> teto: howoldis will link to the subset that must pass
<tdeo> i want to make a buildEnv of a bunch of greasemonkey scripts, and they're all single files
Myhlamaeus1 has joined #nixos
lambda-11235 has quit [Quit: Bye]
<clever> tdeo: pkgs.writeText and its friends
<teto> anyway here is the report https://github.com/NixOS/nixpkgs/issues/67474
<{^_^}> #67474 (by teto, 10 minutes ago, open): gettext doesn't build on unstable.
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/3924b344254 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<mdash> hhhhhhhhhhhhhhhhhh
<mdash> systemd is not my friend today
<mdash> I am trying to create a systemd unit for freeswitch in my nixos config. I am not getting very far.
<mdash> clever: Yeah, I've done this before for trivial stuff. but freeswitch wants to fork and there's permissions issues and etc
<mdash> Mostly I am exasperated by not being able to get a shell in the environment systemd creates for the service
<clever> mdash: serviceConfig.Type = "forking"; i think
<clever> whats the permission error?
<mdash> At present the entirety of the output I'm getting in the journal is:
<mdash> Aug 25 21:56:36 colossus freeswitch[30322]: 30324 Backgrounding.
<mdash> Aug 25 21:56:36 colossus freeswitch[30322]: FreeSWITCH[30322] Error starting system! pid:30324
<clever> mdash: id prefix it with `strace -ff -o /tmp/logfiles` and then look at why it gave an error
<mdash> yeah i forgot about strace -o
<mdash> thanks.
<clever> mdash: -ff is also helpful, it will mutate the output filename, and write to logfiles.<pid>
<mdash> right
<iggi42> hmm, I need to use an old java version (jre 7)
liberiga has joined #nixos
<iggi42> any recommendations on how to do that easily?
ryantrinkle has quit [Ping timeout: 268 seconds]
aszlig has quit [Quit: Kerneling down for reboot NOW.]
<teto> arf nevermind the error, it seems it was because I added in my config `doCheckByDefault`. I added it without knowing what it was
MinceR_ has joined #nixos
aszlig has joined #nixos
MinceR has quit [Ping timeout: 248 seconds]
iggi42 has quit [Remote host closed the connection]
infinii has joined #nixos
alex`` has quit [Ping timeout: 245 seconds]
<tdeo> clever: writeText doesn't seem to make it a directory for me, it seems
<clever> tdeo: check the args for writeTextFile then
slack1256 has quit [Ping timeout: 245 seconds]
<tdeo> ah, writeTextDir was it
ryantrinkle has joined #nixos
<clever> yep, it was the "and friends" part
laika___ has joined #nixos
Zer0xp has joined #nixos
chr15 has joined #nixos
hpfr has joined #nixos
englishm has quit [Excess Flood]
englishm has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/86f31274eb5 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @Infinisil opened pull request #67475 → nixos-generate-config: Add system.copySystemConfiguration = true → https://git.io/fjAcG
<{^_^}> [nixpkgs] @matthewbauer opened pull request #67476 → nixos/update-users-groups.pl: chomp hashedPassword → https://git.io/fjAcZ
reallymemorable has quit [Quit: reallymemorable]
hpfr has quit [Ping timeout: 276 seconds]
Supersonic has quit [Ping timeout: 276 seconds]
Supersonic has joined #nixos
wtv_nick has quit [Ping timeout: 258 seconds]
abathur has joined #nixos
mrCyborg has quit [Quit: The Lounge - https://thelounge.github.io]
mrCyborg has joined #nixos
<evanjs> teto: ah well that’s good to know, either way
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3f4144c30a6 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Myhlamaeus1 has quit [Read error: Connection reset by peer]
abathur has quit [Ping timeout: 245 seconds]
laika___ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @matthewbauer pushed to staging-next « qtbase: remove sdk.mk check for macOS »: https://git.io/fjAcl
Zer0xp has quit [Ping timeout: 268 seconds]
<hpfr[m]> How can I write to /lib/systemd/system-sleep/ with nix?
chr15 has quit [Ping timeout: 268 seconds]
sb0 has quit [Quit: Leaving]
philr has quit [Ping timeout: 244 seconds]
<Shados> Why do you want to?
<evanjs> Yeah after a google it doesn’t look like the best thing perhaps -
<evanjs> In general, though, systemd management is fairly robust with the options listed here https://nixos.org/nixos/options.html#systemd.services.%3Cname%3E
<hpfr[m]> Ah thanks for that thread
freeman42x has quit [Ping timeout: 245 seconds]
inkbottle has quit [Ping timeout: 245 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
dansho has quit [Ping timeout: 248 seconds]
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4ca0df15390 (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
liberiga has quit [Ping timeout: 260 seconds]
wfranzini has quit [Remote host closed the connection]
dansho has joined #nixos
chr15 has joined #nixos
Zer0xp has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 245 seconds]
palo1 is now known as palo
emptyflask has quit [Ping timeout: 268 seconds]
laika___ has joined #nixos
nexgen2 has joined #nixos
chr15 has quit [Quit: WeeChat 2.4]
mac10688 has quit [Ping timeout: 244 seconds]
MinceR_ is now known as MinceR
zupo has joined #nixos
Zer0xp has quit [Quit: Bye!]
zupo has quit [Client Quit]
Zer0xp has joined #nixos
rsoeldner has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
<vvbb[m]> I have a problem with compiling a C program
<vvbb[m]> I have a lot of details and errors so I will be pasting a bin link
<vvbb[m]> Please check it out https://0bin.net/paste/wRodzDJiiVRc+CJb#Vi7sletmv5R+zupD9rOlBNg9um6t7Us1hl3jIMEpWb9
n00b13 has joined #nixos
<clever> vvbb[m]: you want to use pkgconfig
LarryTheCow has joined #nixos
<clever> vvbb[m]: in your Makefile, do gcc $(pkg-config --cflags cairo) ...
<vvbb[m]> a.out: main.c; gcc $(pkg-config --cflags cairo) $< -o $@
<vvbb[m]> like this?
<clever> vvbb[m]: probably
<LarryTheCow> Hi. Quick question: Where are the ssh logs stored on NixOS?
<clever> LarryTheCow: the systemd journal
<clever> LarryTheCow: journalctl -u sshd
<vvbb[m]> i've been trying to fix this for 2 days now i don't want a probably also i tested it it doesn't work still cairo.h missing
<LarryTheCow> Can I also make it log to /var/log?
<clever> LarryTheCow: dont think so
hpfr has joined #nixos
Palpares_ has quit [Remote host closed the connection]
<LarryTheCow> thanks a lot. I'll try to stick to journalctl
LarryTheCow has left #nixos [#nixos]
Palpares_ has joined #nixos
rauno has quit [Ping timeout: 250 seconds]
<hpfr> is all I need for a working systemd service wantedBy and script?
infinii has quit [Quit: WeeChat 2.3]
<clever> hpfr: i believe so
hpfr has quit [Remote host closed the connection]
reanimus has joined #nixos
<clever> vvbb[m]: this builds with both `make` under` nix-shell` and also `nix-build
alanz has joined #nixos
<n00b13> Does anyone here know how to use I2P or get the package to work on NixOS ?
gxt has quit [Ping timeout: 260 seconds]
<clever> vvbb[m]: gist updated, you can now `nix-build -A simple` to build the program, or `nix-build -A output` to both build, and run it, producing a result/hello.png
<clever> vvbb[m]: if nothing has change with the code, it wont re-run it, and if you perfectly undo something, it can reuse a previous result!
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
zupo has joined #nixos
<vvbb[m]> wait how do i run it?
<clever> vvbb[m]: nix-build -A simple && ./result/bin/simple
<clever> vvbb[m]: or nix-build -A output && ls -lh result/
<vvbb[m]> error: attribute 'simple' in selection path 'simple' not found
<clever> vvbb[m]: refresh the gist
<vvbb[m]> how
<clever> the refresh button in your browser
<vvbb[m]> oh that gist
<vvbb[m]> didn't see it up there
<vvbb[m]> oh wow all of this for just a simple main.c file?
<clever> vvbb[m]: thats how i start most projects
<vvbb[m]> error: nix-shell requires a single derivation
<vvbb[m]> wait what
<vvbb[m]> i ran nix-shell default.nix
<clever> vvbb[m]: default.nix returns a set, you want `nix-shell -A simple`
<vvbb[m]> oh yea
<vvbb[m]> build
<vvbb[m]> main.c:1:10: fatal error: cairo.h: No such file or directory
<vvbb[m]> error: build of '/nix/store/xqj4ygyhzv3ahzn18rqc8jpkd4z0hw74-simple.drv' failed
<clever> vvbb[m]: are you using the makefile in my gist?
<vvbb[m]> yep works now
nexgen2 has quit [Remote host closed the connection]
<vvbb[m]> can you list ALL and i mean ALL of the manual pages from where you found all of this info
nexgen2 has joined #nixos
<vvbb[m]> because i have no idea how you did any of this
<clever> vvbb[m]: the only thing i read was the stack overflow i linked above, the rest was pretty much all memorized
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #67477 → ansible: 2.8.2 -> 2.8.4 → https://git.io/fjAC2
<clever> just stuff you pick up after using linux for over a decade
<vvbb[m]> well it would be better if i could find all that info on a manual page or something since i haven't used nixos more than a few weeks
<clever> vvbb[m]: most of it should be in the manual for make
<clever> and part of it is just knowing how pkgconfig is meant to be used
endformationage has quit [Quit: WeeChat 2.5]
<vvbb[m]> i can't find the make manual page
<vvbb[m]> for nixos
<clever> vvbb[m]: nix-shell -p --command "man make"
<{^_^}> [nixpkgs] @lheckemann closed pull request #67375 → Merge openssl 1.1 into staging → https://git.io/fjNy2
<vvbb[m]> what i thought you meant was that there was a nixos.org manual page for make
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> just the standard man page for make, that is shipped with make
<vvbb[m]> for the full documentation info make is required btw
<clever> vvbb[m]: https://www.gnu.org/software/make/manual/ is another copy of the manual
<vvbb[m]> which for some reason redirects me to the man page?
<vvbb[m]> what the hell?
<clever> if `info` cant find the info file, it searches for a man page by the same name
<clever> which is explained in the man page for info
<clever> when i first got into linux, i just obsessively read every man page for every command, lol
<vvbb[m]> which one do you prefer using gnu make or cmake
<clever> cmake helps automate a lot of things, but then you never learn how make itself works
<sphalerite> clever: but what if you don't want to know how make works, just to build your software? ;)
<dminuoso> Mmm. so I want to run emacs from a nix-shell, but then be able to close that terminal (Ideally I want my X server to adopt it - or whatever it is that owns the process when started from my program launcher)
<clever> sphalerite: yeah, it depends on if you want to forever ride a bike with trainwheels, lol
<vvbb[m]> maybe run it with `&` dminuoso
<dminuoso> vvbb[m]: That wouldn't do it.
<vvbb[m]> hmm i have no idea ask clever he probably knows
<clever> dminuoso: nohup emacs &
<dminuoso> clever: That would keep stdout disconnected, wouldnt it?
<clever> i think it keeps stdout linked, but will stop the SIGHUP
<dminuoso> Right, and its SIGHUP that actually kills the process when the parent dies right?
<dminuoso> (or at least thats the expectation)
<clever> SIGHUP is sent when you close the terminal, its the hang-up signal
<clever> from the old days when you dialed into a machine over a modem
<dminuoso> clever: Ohh! Wow! I just understood why it was called HUP. I always thought it was about telling a process it was "hung" in the sense of "being stuck"
<dminuoso> what about disown
<{^_^}> [nixpkgs] @jojosch opened pull request #67478 → teamspeak_client: 3.3.0 -> 3.3.2 → https://git.io/fjACP
<clever> that will change the owning tty and process group, and disown the child
abbiya has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #67169 → dynamic-colors: 0.2.2.1 -> 0.2.2.2 → https://git.io/fjbVd
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjACX
<dminuoso> Ah
<{^_^}> [nixpkgs] @peterhoeg merged pull request #67441 → crystal: init at 0.30.1 → https://git.io/fjAIF
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjAC1
<{^_^}> [nixpkgs] @peterhoeg merged pull request #67028 → owl-lisp: 0.1.16 -> 0.1.19 → https://git.io/fjFxn
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjACM
<clever> i think the disown works, by having disown first fork out a child, then that child forks again to make emacs
<clever> then the 2nd disown, exits, without cleaning up its own children
<{^_^}> [nixpkgs] @peterhoeg merged pull request #66931 → amarok: 2.9.0-20180618 -> 2.9.0-20190731 → https://git.io/fjFX8
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to staging: https://git.io/fjACD
<dminuoso> Honestly, emacs is one of those things where nix workflow feels sketchy
<clever> and things are seperated enough from the shell above, that the shell wont notice
<dminuoso> emacs just doesnt fit well into nix :)
<{^_^}> [nixpkgs] @peterhoeg merged pull request #66248 → grc: leave /etc/grc.conf alone so we can override it → https://git.io/fjQ24
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjACy
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
hpfr has joined #nixos
hpfr has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peterhoeg merged pull request #64383 → kodi: 18.1 -> 18.3 → https://git.io/fjieg
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjAC7
jgeerds has joined #nixos
nexgen2 has quit [Remote host closed the connection]
gxt has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #62974 → zoneminder: add perlPackages.DeviceSerialPort for zmtrigger.pl → https://git.io/fjg0E
<{^_^}> [nixpkgs] @peterhoeg pushed 4 commits to master: https://git.io/fjACx
zaninime has quit [Quit: ZNC 1.7.3 - https://znc.in]
<{^_^}> [nixpkgs] @peterhoeg merged pull request #66929 → zanshin: 2017-11-25 -> 2019-07-28 → https://git.io/fjFXt
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to staging: https://git.io/fjACp
hyper_ch2 has joined #nixos
orivej has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #67479 → remove duplicate definition → https://git.io/fjAWJ
<{^_^}> [nixpkgs] @peterhoeg merged pull request #67479 → remove duplicate definition → https://git.io/fjAWJ
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjAWU
rauno has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
Ariakenom has joined #nixos
Izorkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
Izorkin has joined #nixos
zaninime has joined #nixos
freeman42x has joined #nixos
jgt1 has joined #nixos
Chiliparrot has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #67480 → botan2: 2.7 -> 2.11 → https://git.io/fjAWV
cfricke has joined #nixos
knupfer has joined #nixos
<ctp> Hi folks. Do you use home-manager? I moved from regular Nix to Nix + home-manager in a way that I just install the most important packages (handful) via regular Nix and ALL other stuff via home-manager. But after few weeks of use it feels a little bit uncomfortable. nixos-rebuild and home-manager don't play together, what Nix gives with rollbacks is basically what home-manager lacks of etc. Any suggestions how to deal with
<ctp> userconfigs?
<srhb> ctp: Take a look at the home manager NixOS module.
dycan has quit [Ping timeout: 272 seconds]
civodul has joined #nixos
zupo has joined #nixos
<immae> srhb: is there such thing? Do you have a link/reference?
rsoeldner has quit [Ping timeout: 276 seconds]
<immae> ah right sorry I misunderstood, I was looking at "integrated" modules
<srhb> Yeah, that :)
Izorkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<jackdk> I normally use nix shells for my Haskell development, but I'm trying to test that my cabal new-build instructions work. I'm in a shell with nix-shell -p zlib zlib.dev (among others) but I see an error "<command line>: can't load .so/.DLL for: libz.so". What am I doing wrong?
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #67481 → perlPackages.DeviceSerialPort: name -> pname → https://git.io/fjAW9
<ctp> ok, i will do. the question is, is it smart in general to use home-manager as primary package manager and regular nix just basically to bootstrap the machine
<{^_^}> [nixpkgs] @peterhoeg merged pull request #67481 → perlPackages.DeviceSerialPort: name -> pname → https://git.io/fjAW9
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjAW5
<ctp> oh wait, now i get the idea
zaninime has quit [Ping timeout: 244 seconds]
aveltras has joined #nixos
nexgen2 has joined #nixos
nadley has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @jonringer opened pull request #67483 → allegro: 5.2.4.0 -> 5.2.5.0 → https://git.io/fjAlJ
veske has joined #nixos
veske2 has joined #nixos
veske has quit [Read error: Connection reset by peer]
bakakuna has joined #nixos
Makaveli7 has joined #nixos
___laika has joined #nixos
rsoeldner has joined #nixos
Tucky has joined #nixos
o1lo01ol1o has joined #nixos
jgt1 has quit [Ping timeout: 276 seconds]
thc202 has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #67469 → vcv-rack: 1.1.3 -> 1.1.4 → https://git.io/fjAZo
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAlG
jgt1 has joined #nixos
<{^_^}> [nixpkgs] @bkchr opened pull request #67484 → Rust 1.37.0 → https://git.io/fjAl8
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt1 has quit [Ping timeout: 250 seconds]
strojatr has joined #nixos
<strojatr> Greetings, Hydra's nixos:staging-small is staging or staging-next branch? Thank you.
<srhb> strojatr: You should be able to find that information in the interface itself.
<strojatr> srhb: I see a stanging jobset, which was last ran in January and nixos:staging-small looks to contain only a few packages
<srhb> strojatr: Under configuration: nixpkgs / git checkout / https://github.com/NixOS/nixpkgs.git staging <-- that's the branch
<strojatr> srhb: Oh, I'm sorry, I was looking just under nixos itself, not nixpkgs, that might be it. So we are not running the nixos test set on staging?
jgt1 has joined #nixos
<srhb> That is the nixos:staging-small jobset, not nixpkgs.
<srhb> If you compare the list of jobs, you'll see that it's not that similar to the nixos test set.
<strojatr> You are right, sorry, I'm confused about this process at little - does it mean that jobset rebuilds only packages different from master? And that the unstable does for everything?
fendor_ has joined #nixos
<strojatr> I would like to submit a PR into staging branch, as it's a mass rebuild and just wondering where should I watch for possibly of breakage.
<srhb> strojatr: Nix always only rebuilds if there's a difference from.. Something :)
<srhb> stojatr: nixos:staging sounds good along with nixpkgs:staging and nixpkgs:staging-next
<strojatr> srhb: that's a good point, so actually for the unstable, it rebuilds only on change OR if the package is failing to build?
<srhb> Well
jgt1 has quit [Client Quit]
<srhb> Not staging-next if you're aiming for staging of course
<srhb> strojatr: Right.
<srhb> I don't recall exactly how/if the failure caching works though..
<strojatr> srhb: thank you for you help, I wish you a nice day!
strojatr has left #nixos [#nixos]
<srhb> You as well :)
<srhb> ah
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
___laika has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #67453 → exiv2: 0.27.1 -> 0.27.2 → https://git.io/fjAYf
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjAlo
valebes has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
aswanson_ has quit [Quit: WeeChat 2.4]
<aveltras> is callCabal2nix supposed to work on a package without cabal file but with a package.yaml (hpack) ?
<clever> aveltras: i think so
<{^_^}> [nixpkgs] @mmahut merged pull request #67463 → ffsend: v0.2.49 -> v0.2.50 → https://git.io/fjAG9
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAlH
<{^_^}> [nixpkgs] @mmahut merged pull request #67471 → emacs-irony: fix build → https://git.io/fjAna
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjAl5
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #67485 → Backport go updates to 19.03 → https://git.io/fjAld
<{^_^}> [nixpkgs] @peterhoeg opened pull request #67486 → astyle: use cmake to avoid having to manually manage the build → https://git.io/fjAlF
<{^_^}> [nixpkgs] @mmahut merged pull request #67455 → python2: CVE-2018-20852 → https://git.io/fjAYV
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to staging: https://git.io/fjAlb
zupo has joined #nixos
fendor_ has quit [Ping timeout: 244 seconds]
<aveltras> clever: ended up using callHackageDirect which worked
ng0 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<rnhmjoj> anyone here with a good internet connection that wants to finish the review of PR #64738?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/64738 (by rnhmjoj, 6 weeks ago, open): magnetico: init package and service
alex`` has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.5]
seanparsons has quit [Quit: ZNC 1.7.3 - https://znc.in]
<{^_^}> [nixpkgs] @dasJ opened pull request #67487 → nixos/systemd: Add suspend-then-hibernate units → https://git.io/fjA8U
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/3f4144c30a6 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
o1lo01ol1o has quit [Remote host closed the connection]
AWizzArd has quit [Quit: Lost terminal]
Chiliparrot has joined #nixos
ubert has joined #nixos
Palpares_ has quit [Ping timeout: 260 seconds]
bakakuna1 has joined #nixos
seanparsons has joined #nixos
bakakuna has quit [Ping timeout: 268 seconds]
bakakuna1 is now known as bakakuna
<tilpner> rnhmjoj: What do you mean, "port to be used by indexing"? Do you mean "for indexing"?
Palpares_ has joined #nixos
knupfer has quit [Remote host closed the connection]
<rnhmjoj> tilpner: yes, it's my bad english
knupfer has joined #nixos
o1lo01ol1o has joined #nixos
sigmundv_ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3de05cd8b5a (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
reallymemorable has joined #nixos
Izorkin has joined #nixos
bakakuna has quit [Ping timeout: 272 seconds]
jbgi has joined #nixos
ilikeheaps has joined #nixos
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #67488 → glib: add getSchemaPath, makeSchemaPath → https://git.io/fjA8M
rsoeldner_ has joined #nixos
<{^_^}> [nixpkgs] @primeos merged pull request #66527 → ffmpeg_4: Enable support for AV1 decoding via dav1d by default → https://git.io/fj5mF
<{^_^}> [nixpkgs] @primeos pushed 2 commits to staging: https://git.io/fjA8N
rsoeldner has quit [Ping timeout: 272 seconds]
rsoeldner has joined #nixos
rsoeldner_ has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #67466 → nixos/gnome3: split up → https://git.io/fjAZL
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/fjA4e
reallymemorable has quit [Quit: reallymemorable]
zfnmxt has quit [Quit: Bye!]
cfricke has quit [Quit: WeeChat 2.5]
vika_nezrimaya has quit [Read error: Connection reset by peer]
nschoe has joined #nixos
<{^_^}> [nixpkgs] @mmahut opened pull request #67489 → exiv2: enabling tests for real → https://git.io/fjA4n
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ottidmes has joined #nixos
gxt has quit [Ping timeout: 260 seconds]
freannrak has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #66796 → anki: use wrapQtAppsHook to fix execution → https://git.io/fjFtu
<{^_^}> [nixpkgs] @timokau pushed 5 commits to master: https://git.io/fjA4B
DariusTheMede has joined #nixos
domogled has joined #nixos
philr has joined #nixos
<lucus16> I just realised the escaping mechanism in indented strings is ugly and incomplete: How to escape a $ depends on potentially many characters in front of it and some strings are unrepresentable as indented strings
<sphalerite> does anyone have a nice solution for managing DNS zones with nix? Particularly managing the serial number
<dminuoso> sphalerite: That's a really curious thought.
zfnmxt has joined #nixos
Zer0xp has quit [Ping timeout: 258 seconds]
<sphalerite> lucus16: you can use ${""} within an indented string to represent anything. It's ugly, but not incomplete ;)
orivej has joined #nixos
n00b13 has quit [Ping timeout: 272 seconds]
<lucus16> sphalerite: You can also use string concatenation to represent anything but that wasn't the point
<sphalerite> lucus16: it doesn't _need_ to be complete is my point :p
<{^_^}> [nixpkgs] @bkchr closed pull request #67484 → rustc: 1.36.0 -> 1.37.0 → https://git.io/fjAl8
<sphalerite> lucus16: you can even use builtins.readFile if you have a really hot mess of text that's just too nasty to quote in nix :)
<lucus16> sphalerite: I'm working on nixfmt, it needs to produce the least ugly code possible
<clever> or just "cp ${./hot-mess.txt} hot-mess.txt"
<lucus16> E.g. let bar = "bar" in "foo'\$${bar}" cannot be represented as indented string because the first $ cannot be escaped
<lucus16> And even if it's acceptable that it's incomplete, the point is that escaping an arbitrary string is still very much non-trivial
vika_nezrimaya has joined #nixos
<lucus16> Even when picked from the representable strings
<clever> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<vika_nezrimaya> seems like couchbase tests are hung for some reason
<clever> lucus16: yeah, i can see the issue...
<lucus16> oh right, ''\' still exists
<lucus16> but yeah, the need for escaping can still keep propagating backwards
<clever> > let bar = "bar"; in ''foo'\''$${bar}''
<{^_^}> "foo'\\$bar"
ris has joined #nixos
<clever> lucus16: i think this is identical to your example
<clever> > let bar = "bar" in "foo'\$${bar}"
<{^_^}> error: syntax error, unexpected IN, expecting ';', at (string):263:17
<clever> > let bar = "bar"; in "foo'\$${bar}"
<{^_^}> "foo'$bar"
<clever> hmm, ah, you want a literal $bar, not a \$bar
<lucus16> yes
<clever> > let bar = "bar"; in ''foo''$${bar}''
<{^_^}> "foo$bar"
<clever> > let bar = "bar"; in ''foo'''$${bar}''
<{^_^}> "foo''$${bar}"
<lucus16> > let bar = "bar"; in ''foo''\'''$${bar}''
<{^_^}> "foo'$bar"
<clever> yeah, theres the problem, ''$ turns into $, while '''$ turns into ''$
<clever> but there is no way to make a '$ .....?
bakakuna has joined #nixos
<lucus16> there is, with ''\'''$
<clever> > let bar = "bar"; in ''foo''\'''\$${bar}''
<{^_^}> "foo'$bar"
domogled has quit [Ping timeout: 245 seconds]
bakakuna has quit [Ping timeout: 268 seconds]
rsoeldner_ has joined #nixos
rsoeldner has quit [Read error: Connection reset by peer]
valebes has quit [Ping timeout: 268 seconds]
bakakuna has joined #nixos
Okinan has joined #nixos
<{^_^}> [nixpkgs] @kisik21 opened pull request #67490 → libargon2: fixed cross-compilation → https://git.io/fjA4p
<{^_^}> [nixpkgs] @peterhoeg merged pull request #67486 → astyle: use cmake to avoid having to manually manage the build → https://git.io/fjAlF
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjABe
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<Miyu-chan> > '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<{^_^}> "two single quotes: '' bash curly bois: ${} newline: \n tab: \t any character x: x "
<Miyu-chan> I always found this interesting ^
<clever> Miyu-chan: the problem is when you want to put ''' right before ''$
<clever> > '' one''' two ''$ end ''
<{^_^}> "one'' two $ end "
<clever> > '' one'''''$ end ''
<hyperfekt> Is there any way to prevent the garbage collection from collecting tarballs used to build the current system?
<{^_^}> "one''$ end "
<clever> ok, that one happened to work fine
<lucus16> $ interpol -> ''$ interpol
<lucus16> '$ interpol -> ''\'''$ interpol
<lucus16> '''$ interpol -> '''''\'''$ interpol
<lucus16> ''$ interpol -> '''''$ interpol
<Miyu-chan> Oh.
<Miyu-chan> I think someone actually asked about this a while ago.
<Miyu-chan> Idk, but I'd just do ${"..."} for this
knupfer has quit [Ping timeout: 264 seconds]
* clever heads off to bed
<Miyu-chan> G'night!
DariusTh` has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #67483 → allegro: 5.2.4.0 -> 5.2.5.0 → https://git.io/fjAlJ
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fjABk
DariusTheMede has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @markuskowa opened pull request #67491 → gitAndTools.qgit: 2.8 -> 2.9 → https://git.io/fjABY
o1lo01ol1o has quit [Remote host closed the connection]
captn3m0- has quit [Ping timeout: 245 seconds]
rsoeldner__ has joined #nixos
lally has joined #nixos
captn3m0 has joined #nixos
rsoeldner_ has quit [Ping timeout: 245 seconds]
lally has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @clefru opened pull request #67493 → make-disk-image.nix: Handle cptofs error explicitly → https://git.io/fjABi
abbiya has quit [Quit: abbiya]
freannrak has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fjAB1
amb007[m] has joined #nixos
psyanticy has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « The proper release of ghc-8.8.1 is out. »: https://git.io/fjAB9
<{^_^}> [nixpkgs] @lasandell closed pull request #60331 → wxwidgets 3.1.0 -> 3.1.2 → https://git.io/fjGIG
lally has joined #nixos
lassulus has quit [Ping timeout: 245 seconds]
nschoe has quit [Ping timeout: 248 seconds]
tv has quit [Ping timeout: 245 seconds]
jbgi has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #67477 → ansible: 2.8.2 -> 2.8.4 → https://git.io/fjAC2
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjARt
cfricke has joined #nixos
kwizart has joined #nixos
ilikeheaps has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 5.2.9 -> 5.2.10 »: https://git.io/fjARg
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-19.03 « linux: 5.2.9 -> 5.2.10 »: https://git.io/fjARw
ilikeheaps has joined #nixos
nexgen2 has quit [Ping timeout: 272 seconds]
alex`` has quit [Ping timeout: 246 seconds]
lally has quit [Ping timeout: 276 seconds]
lally has joined #nixos
sb0 has joined #nixos
lally has quit [Ping timeout: 276 seconds]
freeman42x has quit [Quit: Leaving]
dansho has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @Rakesh4G opened pull request #67494 → imgaug: 0.2.9-patch → https://git.io/fjA0q
dycan has joined #nixos
<{^_^}> [nixpkgs] @Alkeryn opened pull request #67495 → ckb-next: fix #67371 → https://git.io/fjA03
nschoe has joined #nixos
Chiliparrot has joined #nixos
jbgi has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to master « The proper release of ghc-8.8.1 is out. »: https://git.io/fjA0W
<vika_nezrimaya> does Grub support initrd secrets?
jgeerds has quit [Ping timeout: 244 seconds]
kandinski has joined #nixos
<kandinski> how standard is the use of "Nixlang" to refer to the Nix expression language?
<{^_^}> [nixpkgs] @peterhoeg merged pull request #48036 → nixos/darkhttpd: module to enable darkhttpd → https://git.io/fxGs6
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjA00
ryantrinkle has quit [Ping timeout: 244 seconds]
<vika_nezrimaya> kandinski: This sounds logical, but I don't hear it often
<vika_nezrimaya> We usually use "Nix language", but Nixlang is a nice contraction
<{^_^}> [nixpkgs] @mb21 opened pull request #67496 → Docs: clarify Rust overlay on non-NixOS → https://git.io/fjA0g
lally has joined #nixos
sb0 has quit [Quit: Leaving]
aswanson has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #67498 → xxdiff: drop the old qt4 version in favour of qt5 → https://git.io/fjA0K
rauno has quit [Ping timeout: 245 seconds]
kwizart has left #nixos ["Leaving"]
<{^_^}> [nixpkgs] @peterhoeg closed pull request #33239 → Migrate from qt4 to qt5 [WIP] → https://git.io/vbAiS
<{^_^}> [nixpkgs] @marsam opened pull request #67499 → tflint: 0.10.1 -> 0.10.3 → https://git.io/fjA01
<vika_nezrimaya> ok, suppose I got SSH to initrd. How to enter the password remotely and continue booting?
minicom has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #67416 → babl: 0.1.66 → 0.1.72 → https://git.io/fjNhp
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/fjA0S
<Athas> Why have I been invited to the NixOS organisation on GitHub?
<Athas> Is this automatic for package maintainers?
<gchristensen> ,invite Athas
<{^_^}> Athas: Invited to join "Nixpkgs Maintainers" on GitHub? For more information, see: https://discourse.nixos.org/t/join-the-package-maintainer-team/3751
<gchristensen> let me know what you think :)
<Athas> Oh cool, that seems to make lots of sense.
<gchristensen> great!
<vika_nezrimaya> do we have a team for people fixing cross-compilation?
<gchristensen> I don't think we have a formal team, mostly people who are interested in cross compilation fix the problems
rsoeldner__ has quit [Remote host closed the connection]
<vika_nezrimaya> gchristensen: maybe we should have a formal team? cross-compilation needs more love
<vika_nezrimaya> should I propose an RFC for that?
<gchristensen> we could just make a team :)
<gchristensen> a literal github team, but I'm not sure who would be on it to start
<vika_nezrimaya> me! I'm kisik21 on Github :3
<gchristensen> vika_nezrimaya: maybe publish something on discourse about starting a cross team?
<{^_^}> [nixpkgs] @jtojnar opened pull request #67500 → graphene: fix installed tests → https://git.io/fjA0N
itorres has quit [Ping timeout: 244 seconds]
itorres has joined #nixos
<vika_nezrimaya> gchristensen: how and where to file it? I'm not used to Discourse, more used to traditional mailing lists
<vika_nezrimaya> (and please don't suggest email, my mail server is currently down because I can't cross-compile packages for it! :3
<gchristensen> hah
<gchristensen> ouch
ThatDocsLady has joined #nixos
steell has joined #nixos
<vika_nezrimaya> yeah, that's why I have trouble with this
<gchristensen> maybe under Development
veske2 has quit [Quit: This computer has gone to sleep]
veske2 has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #67501 → theme-obsidian2: 2.8 -> 2.9 → https://git.io/fjAEe
daGrevis has quit [Quit: daGrevis]
daGrevis has joined #nixos
steell has quit [Ping timeout: 245 seconds]
DariusTh` has quit [Ping timeout: 268 seconds]
DariusTh` has joined #nixos
philr has quit [Ping timeout: 244 seconds]
selfsymmetric-pa has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #67502 → hunspellDicts.uk-ua: 4.2.5 -> 4.6.3 → https://git.io/fjAEq
<vika_nezrimaya> gchristensen: oh! found the new topic button after... five or so minutes of search
<{^_^}> [nixpkgs] @risicle opened pull request #67503 → poco, cctz: enable for darwin → https://git.io/fjAEC
<gchristensen> ah cool
<gchristensen> good
___laika has joined #nixos
<risson> Hi! So I'm trying to create a package and I added a patch to it. Now I want to add a second patch but it refuses to build telling me the first patch has already been applied and cannot be applied again (first version has been pushed to cachix)
xkapastel has joined #nixos
<risson> Can I force the rebuild somehow ?
<vika_nezrimaya> Is it worth to host remote builders in remote locations, for example, for an interconnected distributed build farm managed by a Hydra instance somewhere? For example, a laptop at home, a VPS/EC2 instance and a friend's laptop overseas?
<rnhmjoj> risson: are you using the mkDerivation patches attribute?
<risson> rnhmjoj: yes
<risson> stdenvNoCC.mkDerivation to be precise
dycan has quit [Remote host closed the connection]
<risson> with nix-build
<rnhmjoj> risson: have you tried applying the patches sequentially in the source tree? maybe their out of order collide in some way
<rnhmjoj> *they're
<risson> They don't apply to the same files so they shouldn't
<risson> Hold on I'm a moron
___laika has quit [Ping timeout: 248 seconds]
<rnhmjoj> risson: what was it?
jbgi_ has joined #nixos
<{^_^}> [nixpkgs] @blargg opened pull request #67504 → tiled: use qt5.mkDerivation → https://git.io/fjAER
jbgi has quit [Ping timeout: 245 seconds]
<betaboon> who is in charge of inviting to the github-nixos-organization ?
Neo-- has joined #nixos
<gchristensen> I am
<betaboon> gchristensen: did you invite me on purpose ?
<risson> rnhmjoj: both patch files were the same because I copied the wrong one :/
<risson> fml
<gchristensen> ,invite betaboon
<{^_^}> betaboon: Invited to join "Nixpkgs Maintainers" on GitHub? For more information, see: https://discourse.nixos.org/t/join-the-package-maintainer-team/3751
<vika_nezrimaya> gchristensen: if I get into the org, would I be able to set labels on issues? it seems like my issue with apr is left unseen by anyone, and I can't set label: cross-compilation because I lack the rights to do so
<betaboon> gchristensen: ah thanks :) gonna read up on that
<rnhmjoj> risson: oh, at least you solved it
<gchristensen> vika_nezrimaya: not yet
<gchristensen> but possibly eventually yeah
<risson> rnhmjoj: yeah x) thanks anyway :D
domogled has joined #nixos
endformationage has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #67500 → graphene: fix installed tests → https://git.io/fjA0N
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/fjAE6
<gchristensen> we'ave received 3 questions out of 100 invitations. probably a fine level
<rnhmjoj> gchristensen: why is there a 2FA requirement?
<vika_nezrimaya> Security. Preventing situations like with gentoo's org from occuring
seanparsons has quit [Quit: ZNC 1.7.3 - https://znc.in]
<gchristensen> since this team has no real special "rights", I maybe wouldn't require 2FA
<gchristensen> but github doesn't allow teams to have different 2FA policies -- and 2FA is required to have commit access to the repo
seanparsons has joined #nixos
<manveru> gchristensen: ah, forgot about that... gotta apply :D
reallymemorable has joined #nixos
ryantrinkle has joined #nixos
selfsymmetric-pa has quit [Ping timeout: 248 seconds]
waleee-cl has joined #nixos
selfsymmetric-pa has joined #nixos
Tucky has quit [Quit: WeeChat 2.5]
domogled has quit [Ping timeout: 245 seconds]
<manveru> zimbatm: btw, i think we should move bundix to nix-community as well
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
alanz has quit [Remote host closed the connection]
domogled has joined #nixos
<catern> is there a simple way on the command line to see all the derivations that are defined by a Nix expression in a file?
<zimbatm> manveru: I'm all for it
<catern> I'd use `nix-instantiate` but I expect that would be slower than some alternative, since it actually writes to the store, and I just want to see names
<zimbatm> manveru: do you have access already?
reallymemorable has quit [Quit: reallymemorable]
<manveru> zimbatm: i don't think so
<alexarice[m]> is anyone using emacsPackagesNg.irony and got it to work?
ub has joined #nixos
<zimbatm> manveru: yes you do :p
<manveru> ah :)
<zimbatm> manveru: /join #nix-community
<manveru> wonder when that happened...
<zimbatm> when you worked on builtwithnix.org
<evanjs> catern: I typically just import stuff into the repl
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e02148563af (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<catern> evanjs: yeah that's what I would do but this question comes from a relatively novice Nix user
ubert has quit [Ping timeout: 268 seconds]
ubert has joined #nixos
ub has quit [Ping timeout: 245 seconds]
veske2 has quit [Quit: This computer has gone to sleep]
<{^_^}> [nixpkgs] @peti pushed to master « mailman: reserve uid & gid in NixOS »: https://git.io/fjAu4
<manveru> catern: something like this: `nix eval --json '(let lib = import <nixpkgs/lib>; in __mapAttrs (k: v: lib.isDerivation v) (import ./some.nix))' `
ubert has quit [Ping timeout: 245 seconds]
fusion809 has quit [Remote host closed the connection]
<manveru> `nix eval --json '(__mapAttrs (k: v: __isAttrs v && v ? type && v.type == "derivation") (import ./ci.nix))'` for the nixpkgs-less version
<evanjs> manveru: Ahh that’s nice. I usually resort to the repl as I don’t know how to import some things with eval so that should help a bit
vmandela has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to master « mailman: drop hard-coded references to /usr/bin »: https://git.io/fjAuB
<yorick> oi, who removed node v9
<yorick> oh well, time to update stuff
<ivan> did killall stop working properly on nixos recently
<{^_^}> [hydra] @grahamc merged pull request #673 → Add error boolean attribute to jobset API response → https://git.io/fjbJC
<{^_^}> [hydra] @grahamc pushed 2 commits to master: https://git.io/fjAu0
<ivan> ("no process found")
<vika_nezrimaya> ivan: use pkill, it's better
<vika_nezrimaya> not specific to NixOS btw
<vika_nezrimaya> the reason is unknown but pgrep and pkill always work
<samueldr> what I like from pgrep/pkill is how I can validate with pgrep that I'm not accidentally including other processes
<gchristensen> +1
<ivan> vika_nezrimaya: can I get pkill to complain when it can't find the process, or do I need to wrap it?
<samueldr> (and killall is a linuxism that could get you in hot waters on some other unices)
Theuni2 has joined #nixos
<manveru> it returns status 1 if it can't find the process
<samueldr> IIRC it was solaris, where killall meant kill _all_
<infinisil> I usually prefer to kill from htop
<infinisil> Much easier and clearer and less error prone
<vika_nezrimaya> ivan: I think it returns exitcode 1
<manveru> htop can jump around a lot :P
<vika_nezrimaya> manveru: there is a lock feature
<vika_nezrimaya> I've never used it though
<manveru> ha
<vika_nezrimaya> also Space marks processes
<vika_nezrimaya> marked processes are all acted upon
<manveru> yeah
englishm has quit [Excess Flood]
<ivan> killall uses some process name that doesn't match what ps lists
<DariusTh`> Is there an example of how to set up circle ci with a default.nix?
englishm has joined #nixos
ryantrinkle has quit [Ping timeout: 244 seconds]
<ivan> cat /proc/28840/stat
<ivan> 28840 (.qbittorrent-wr) ...
<ivan> killall -STOP .qbittorrent-wr # works :((
domogled has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @jtojnar opened pull request #67506 → wireshark-cli: remove Qt from build closure → https://git.io/fjAu2
<ivan> maybe the new Qt wrapper caused this breakage for Qt programs?
<ivan> seems to be working for other things and there aren't any killall complaints on LKML
orivej has quit [Ping timeout: 272 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<Ariakenom> I have clementine installed on nixos and I've tried to remove it. clementine in bash doesn't find anything but it keeps starting when I log in.
jgeerds has joined #nixos
<vika_nezrimaya> gchristensen: topic on Discourse is done! https://discourse.nixos.org/t/proposal-a-dedicated-cross-compiling-team/3824
ryantrinkle has joined #nixos
knupfer has joined #nixos
<Ariakenom> basic setup with kde plasma
alanz has joined #nixos
lordcirth_ has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @tw-360vier closed pull request #66889 → nixos/samba: add option reloadIfchanged → https://git.io/fjFVj
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<nilsirl[m]> When I install alacritty from `configuration.nix` rather than `nix-env` vim colour highlighting doesn't owrk
<nilsirl[m]> * When I install alacritty from `configuration.nix` rather than `nix-env` vim colour highlighting doesn't work
<{^_^}> [nixpkgs] @misuzu opened pull request #67507 → 3proxy: init at 0.8.13 → https://git.io/fjAub
Phillemann has left #nixos ["WeeChat 2.5"]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/09cc90827a2 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<ivan> I think there's some signal-desktop / xfceUnstable (?) breakage in master where the number of unread messages doesn't appear in the window button
<evanjs> nilsirl[m]: are your user and root nix channels the same/both up to date? Or are you using `nix-env` as root?
hyper_ch2 has quit [Remote host closed the connection]
cfricke has quit [Quit: WeeChat 2.5]
Ariakenom has quit [Remote host closed the connection]
dsx has quit [Quit: dsx]
<{^_^}> [nixpkgs] @peterhoeg merged pull request #67501 → theme-obsidian2: 2.8 -> 2.9 → https://git.io/fjAEe
<{^_^}> [nixpkgs] @peterhoeg pushed commit from @romildo to master « theme-obsidian2: 2.8 -> 2.9 (#67501) »: https://git.io/fjAzZ
<{^_^}> [nixpkgs] @peterhoeg merged pull request #67491 → gitAndTools.qgit: 2.8 -> 2.9 → https://git.io/fjABY
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fjAzR
jtojnar has quit [Quit: jtojnar]
knupfer has quit [Ping timeout: 264 seconds]
dsx has joined #nixos
<samueldr> imagine I have a function defined into a `callPackage`d file, what's the idiomatic way to make sure the function is not named "anonymous function", but something useful?
<samueldr> hard-mode: it would be better if the name of the function had a dot, `"x.y"`
lordcirth_ has left #nixos ["Leaving"]
<samueldr> looks like the only location `setName` for a nix expression is set is in `binds`, https://github.com/NixOS/nix/blob/15ee2bc2fe6768a2ec1b312b6682299bbc407d86/src/libexpr/parser.y#L441-L442
<samueldr> via addAttr
lally has quit [Ping timeout: 245 seconds]
emptyflask has joined #nixos
<manveru> samueldr: i usually use `addErrorContext` in that case
<samueldr> manveru: got a sample? still "anonymous function at"
<samueldr> I have a way to do it, using a `let` binding that I return directly, I mostly find it weird
tv has joined #nixos
<manveru> it will output on some line before that, not the function name itself
<manveru> it's more like a `trace`
<samueldr> I figured, though it's not at all
<manveru> strange :|
<samueldr> I wrapped `builtins.addErrorContext "myFunc" ({x}: x)` and it's from an undefined position, only line anonymous function called without required argument
<manveru> yeah
<samueldr> I'll continue with the weird let bindings and adjust later
<manveru> i'm not sure why, it works on nix-build for my usage
<manveru> but trying with nix eval it fails to output anything
Lears has quit [Remote host closed the connection]
[Leary] has joined #nixos
lassulus has joined #nixos
<samueldr> the weird pattern I'm using is https://gist.github.com/samueldr/e696330bdc316b4788beaf00cc24419d if I can nerd snipe others :)
<pbb> When I try to build it on my local machine I get this: https://termbin.com/z3a3
<pbb> I am experiencing a very strange thing. I have this derivation: https://termbin.com/gdhe
<pbb> On my server also running NixOS I don't get any output, the command just exits with 0, but there is no result or output path
<{^_^}> [nixpkgs] @globin pushed to master « altcoins.bitcoin-classic: fix build »: https://git.io/fjAzN
<{^_^}> [nixpkgs] @kalbasit merged pull request #67485 → Backport go updates to 19.03 → https://git.io/fjAld
acarrico has joined #nixos
<{^_^}> [nixpkgs] @kalbasit pushed 8 commits to release-19.03: https://git.io/fjAzp
fendor_ has joined #nixos
<{^_^}> [nixpkgs] @borisbabic opened pull request #67508 → python3Packages.browser-cookie3: 0.6.4 -> 0.7.6 → https://git.io/fjAgJ
chris_ has joined #nixos
rsoeldner has joined #nixos
<chris_> Is sendmail not available for Nixos? Is there a particular reason for this perhaps?
<aanderse> chris_: no, not the original sendmail. there are several other implementations, though
<{^_^}> [nixpkgs] @mmahut merged pull request #67489 → exiv2: enabling tests for real → https://git.io/fjA4n
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjAgI
drakonis has joined #nixos
<chris_> aanderse: Any recommendations perhaps? Seems like networking.defaultMailServer might be the way to go?
nschoe has quit [Ping timeout: 264 seconds]
dasj19 has joined #nixos
noudle has joined #nixos
<{^_^}> [nixpkgs] @borisbabic opened pull request #67509 → python3Packages.pre-commit: 1.18.1 -> 1.18.2 → https://git.io/fjAgO
<aanderse> chris_: yeah, ssmtp is reasonable for very simple use cases
<cransom> recommendations for? that option controls ssmtp, which relays mail to some other preconfigured server
<cransom> which may be all you need, but it's not a generic sendmail/smtp server
<aanderse> chris_: postfix is another option if you need more
lally has joined #nixos
<manveru> ,locate bin sendmail
<{^_^}> Found in packages: exim, msmtp, ssmtp, busybox, postfix, nullmailer, system-sendmail
<manveru> even busybox...
domogled has joined #nixos
wfranzini has quit [Remote host closed the connection]
<angerman> why would perl be broken in 19.03? It fails to apply the patch, which is rather confusing.
boxscape has joined #nixos
<chris_> Postfix sounds difficult to configure, apparently sendmail and ssmtp is both deprecated strangely. I guess I'll do a bit more reading.
boxscape has left #nixos [#nixos]
<Athas> I wish opensmtpd (the OpenBSD MTA) was packaged. It's the only mailer I've managed to configure from scratch.
<aanderse> chris_: postfix isn't complex if you aren't doing anything complex
<Athas> It doesn't do a lot, but it does the right thing for simple setups.
<aanderse> sorry, let me qualify that... postfix in nixos isn't complex if you aren't doing anything complex
<Athas> Oh wait, opensmtpd *is* in nixpkgs!
<vika_nezrimaya> aanderse: I think Postfix configuration in NixOS is perfect - it allows for quick user-friendly configuration, but also allows to copy-paste snippets from the internet right into main.cf
<vika_nezrimaya> manveru: it's only able to use virtual users
<vika_nezrimaya> that's what most people want now though
ixxie has joined #nixos
jbgi_ has quit [Ping timeout: 246 seconds]
<manveru> i never used it, so can't say
<vika_nezrimaya> I read the source code of it
<pbb> I'm still using the nixcloud mailserver config. But it comes with all their ACME abstractions and stuff so I want to change it at some point.
<manveru> :)
___laika has joined #nixos
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/e02148563af (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<pbb> no ideas about this fetchGit derivation? does it work for anyone? (https://termbin.com/gdhe)
<cransom> angerman: have a link to the error or how to reproduce?
___laika has quit [Ping timeout: 258 seconds]
<angerman> cransom: so apparently fetching perl-5.28.1 and applying that patch manually works... https://www.irccloud.com/pastebin/yohD1GbL/
<pbb> angerman: are you sure you are on the right channel and everything? I just checked out the current nixos-19.03 channel (3924b344254) and ran "nix-build . -A perl" and it was pulled from the cache just fine
<angerman> pbb: well I'm building it for mingw32, so I'll have to build it from source.
<pbb> I see
<Unode> is there any way to allow unfree packages with nix-build without having to write to ~/.config/...config.nix ?
fendor__ has joined #nixos
boxscape has joined #nixos
<pbb> Unode: set NIXPKGS_ALLOW_UNFREE=1
<Unode> pbb: great thanks!
jb55 has quit [Ping timeout: 260 seconds]
nexgen2 has joined #nixos
fendor_ has quit [Ping timeout: 244 seconds]
noudle has quit []
erasmas has joined #nixos
<angerman> sneaky. we seem to use a different perl source for cross compilers and then just copy that in...
<gchristensen> perl doesn't cross compile
Ariakenom has joined #nixos
<angerman> gchristensen: but binutils depends on it... 😱
<angerman> no, not binutils. openssl
chris_ has quit [Quit: Lost terminal]
stepcut has joined #nixos
<pbb> perl is in nativeBuildInputs for openssl, so you should not need to build perl for the target
<pbb> or am I wrong with that assumption?
<angerman> pbb: well. Look at line L90
<angerman> it uses both, the native (cross compiled) and the one from the buildPackages...
__monty__ has joined #nixos
<pbb> wait, so it has a build dependency on perl to check that it doesn't have a runtime dependency? o.o
<angerman> at least that's where I believe the mingw32 perl dependency comes from.
<pbb> you can just remove that check I guess
<boxscape> there's a few different versions of ghc in nixpkgs (I'm seeing 8.4.4.nix, 8.6.5.nix, etc.) but if I try to install it via nix-shell -p I can only find ghc, haskellPackages.ghc, and haskellPackages.ghc_8_6_5, all of which are 8.6.5. How can I access the other versions?
<kraem> 👋 i'm trying to migrate to qemu/kvm since virtualbox is broken on unstable. i'm getting a permissions error while trying to open an iso (https://bpaste.net/show/nPeE). am i doing it right if i'm running libvirtd as root and virt-manager as my own user or do i need to run it as root as well?
<angerman> boxscape: haskell.compiler.ghcXYZ
<angerman> pbb: I'm tempted to...
<boxscape> angerman ah, thank you
lambda-11235 has joined #nixos
<rsoeldner> Is is possible to describe a "machine configuration" with nix and create a docker image and a virtualbox image ?
jb55 has joined #nixos
stepcut_ has joined #nixos
<pbb> rsoeldner: the answer is yes and no. you can not easily run a full NixOS in docker, because docker can not run systemd for a few reasons
<angerman> pbb: the relevant commit for that line says: Fix cross compile.
<gchristensen> rsoeldner: Nix can produce docker images, and it can produce virtualbox images
<gchristensen> but a NixOS system cannot become a docker image (though it can become a vbox image)
stepcut has quit [Ping timeout: 244 seconds]
<pbb> you could also produce one docker image running your service directly, and one virtualbox image running the same binary inside a nixos installation
<rsoeldner> gchristensen, pbb thanks, is there an example for a vm running nixos ?
bikki[m] has joined #nixos
<vika_nezrimaya> btw NixOS has its own containers which run NixOS system configurations
drakonis has quit [Quit: WeeChat 2.5]
<stepcut_> How do I create a nix-shell where I can use the jsdom package for nodejs? I tried, nix-shell -p 'nodePackages."jsdom-11.12.0"', but I guess that isn't right
<vika_nezrimaya> nix-shell -p "nodejs.withPackages (p: with p; [ jsdom ])" may or may not work
jbgi_ has joined #nixos
<pbb> rsoeldner: do you want to produce an image for VirtualBox running independently on another host? because there is some tooling for nixos tests that runs the VM from your host's nix store via a shared directory
<rsoeldner> pbb, the first use case, generating an image for another host
<vika_nezrimaya> pbb: Docker seems to be able to run systemd, but it requires a privileged container: https://developers.redhat.com/blog/2014/05/05/running-systemd-within-docker-container/
<vika_nezrimaya> it's an old post though
<vika_nezrimaya> not sure if it's still relevant
<pbb> rsoeldner: there is a module for that, which is used to create the virtualbox image for nixos releases (but you can generate it with any system configuration).
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<pbb> rsoeldner: do you need a standalone example? from this code it's pretty hard to see how it would work
ThatDocsLady has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @Infinisil opened pull request #67510 → Crystal package builder → https://git.io/fjA2G
<rsoeldner> pbb, help would be great
logzet has joined #nixos
orivej has joined #nixos
sigmundv_ has quit [Ping timeout: 245 seconds]
stepcut has joined #nixos
<fresheyeball> anyone know how to get gnome to make thumbnails for videos?
<fresheyeball> I have ffmpegthumnailer, gst_plugins_base, gst_plugins_good installed
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #67511 → mesa: add surfaceless egl platform -- #66542 → https://git.io/fjA2c
<fresheyeball> but no dice
stepcut_ has quit [Ping timeout: 245 seconds]
jbgi_ has quit [Ping timeout: 245 seconds]
<pbb> rsoeldner: curl https://termbin.com/vt5p > vm.nix; nix-build vm.nix
<{^_^}> [nixpkgs] @Ericson2314 pushed 152 commits to staging-19.03: https://git.io/fjA2W
<pbb> rsoeldner: this should give you a virtualbox image with a nixos system running a plain nginx server
<rsoeldner> pbb, this is really not obviouse, thank you
<pbb> rsoeldner: it does a lot. it contains a system configuration (even though a small one), evaluates the system configuration to a derivation describing the whole nixos system, and then takes the attribute that discribes how to build a vm image with it
<pbb> if you want to put the system configuration in a seperate file, just add it to the imports
<balsoft> Hey, is anyone using niv? I have a feeling github bans your IP temporarily if you use niv on 5-10 dependencies in five minutes
<laika___> domenkozar[m]: hi, can i request a couple of cachix caches to be deleted via PM?
<colemickens> Did something in `nix-build` change recently?
<colemickens> I keep getting this on my numerous-CPU-core Packet VM: error: all build users are currently in use; consider creating additional users and adding them to the 'nixbld' group
<tilpner> balsoft: You can verify that, by making an unauthorized API request after you believe it has been blocked
<balsoft> http://ix.io/1TxH <-- here's the niv log, if anyone can help
<colemickens> and had never seen it prior to a week or so ago
<balsoft> Is there an example somewhere>
<domenkozar[m]> laika___ sure
<tilpner> balsoft: Or you can find out how many requests niv typically sends for a repo, multiply that by 10 and see if it's over their unauthorized rate limit
<laika___> domenkozar[m]++
jbgi_ has joined #nixos
<{^_^}> domenkozar[m]'s karma got increased to 4
<laika___> domenkozar++
<{^_^}> domenkozar's karma got increased to 25
laika___ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<PyroLagus> seems like you may be able to use an authorized token https://github.com/nmattia/niv/pull/99
<{^_^}> nmattia/niv#99 (by madjar, 9 weeks ago, merged): Use GITHUB_TOKEN for all calls to the github api
jgeerds has quit [Ping timeout: 245 seconds]
laika___ has joined #nixos
laika___ has quit [Client Quit]
<tilpner> balsoft: curl https://api.github.com/rate_limit
<balsoft> Thank you
<balsoft> Yep, zeros all around
<tilpner> balsoft: Without logging in, you are limited to just 60 requests per hour
<tilpner> (With login, you get 5000)
<balsoft> Is there any way to log in with niv?
<tilpner> I don't use niv
<balsoft> Sad
<pbb> angerman: did you get your mingw32 openssl?
<{^_^}> nmattia/niv#62 (by leotaku, 12 weeks ago, open): github rate limit is hit pretty quickly
<tilpner> But I can search GH issues
<balsoft> Sorry, my mistake to ask before looking :)
<{^_^}> [nixpkgs] @jlesquembre opened pull request #67512 → skaffold: 0.35.0 -> 0.36.0 → https://git.io/fjA2a
Myhlamaeus1 has joined #nixos
<tilpner> It's fine
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 248 seconds]
<Unode> I'm still confused about the role of default.nix, shell.nix and other files in a project. Does anyone have a (large) example on a project that contains both?
<Unode> The reason for my confusion is that I'm using buildEnv to make nix-build happy but then if I use the same .nix file with nix-shell I get an empty environment.
<Unode> Using mkDerivation works for nix-shell but not nix-build.
<Unode> ideally the example I'm after actually shows how the two files interact with each other. So far the examples I found end up duplicating most of it.
<Unode> *most of the code/dependencies
<{^_^}> [nixpkgs] @volth opened pull request #67513 → treewide: name -> pname → https://git.io/fjA2S
jbgi_ has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @petabyteboy opened pull request #67514 → riot-desktop: use yarn2nix-moretea → https://git.io/fjA2Q
<balsoft> Also, how do you guys make hydra work with git submodules correctly?
<balsoft> It's a major pain point for us ATM
orivej has quit [Ping timeout: 245 seconds]
vmandela has left #nixos ["Leaving"]
feep_ has joined #nixos
<feep_> yo
feep_ is now known as feep
fresheyeball has quit [Quit: WeeChat 2.4]
<feep> gonna look into updating kmymoney+aqbanking, since any versions older than newest are gonna stop working for german users in half a month.
selfsymmetric-pa has quit [Ping timeout: 244 seconds]
<balsoft> tilpner: Thank you, GITHUB_TOKEN thing linked somewhere in that issue worked
johnw has joined #nixos
<tilpner> balsoft: I forgot, but it does work now
* tilpner useless
johnw has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<tilpner> balsoft: I found an override that patched prefetch-git, but it's commented out
zupo has joined #nixos
<tilpner> Are you sure it wasn't fixed?
<balsoft> Well, we're using an old version
<balsoft> If it works for you I might try and update
<tilpner> How old?
<tilpner> I'm on 2019-02-01
<balsoft> Very old
<balsoft> 2018-something
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<hyperfekt> Anyone know how to add the build time dependencies of the current system as a GC root? nixos-rebuild keeps redownloading my pinned nixpkgs :<
ldeck has joined #nixos
<tilpner> hyperfekt: In your config, or outside of it?
<hyperfekt> tilpner: In my config would be ideal, of course, but I'll take any solution.
<tilpner> hyperfekt: Use system.extraDependencies to add a file with store paths
<exarkun> is nixos-in-place the best option to convert an existing system (debian) to nixos? it looks like it's still on 16.09
<tilpner> hyperfekt: Mine: https://tx0.co/tHn
<tilpner> exarkun: Do you intend to keep anything from that system?
<exarkun> tilpner: no
<exarkun> tilpner: but I don't have physical access / ipmi / netboot
<tilpner> exarkun: Then I recommend using kexec, which has worked much better IME
* exarkun looks it up
orivej has joined #nixos
<tilpner> Do you have one try, or can you repeat on failure?
<exarkun> Retry involves asking someone to file a support ticket with the data center to reimage the machine
<exarkun> possible but very inconvenient
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @valebes opened pull request #67515 → sway: 1.1.1 -> 1.2-rc2 → https://git.io/fjAa0
<tilpner> While kexec has worked wonderfully, you might still do it wrong
<exarkun> but this is also a test run to find out the best/most reliable way to do this
<feep> hm, aqbanking 5.8.1 is "unreleased", or rather it's released but only as a git tag
<exarkun> so failure is tolerable
<tilpner> That includes building an image that doesn't bring network up correctly
<feep> which is kind of awkward because again, the nixpkgs version will stop working in two weeks :/
ldeck_ has joined #nixos
<exarkun> I have two machines to play with. Maybe I'll nixos-in-place one of them and kexec the other...
<tilpner> exarkun: Then do try kexec. If you want to avoid tickets, you could try it on a VM/VPS first
<exarkun> yea probably makes sense to practice in an environment I control
freannrak has joined #nixos
aborsu has joined #nixos
<feep> how do I fetch a git repo? I can't find it in the docs, but older docs call it out as possible
<tilpner> I've used kexec on Hetzner Cloud multiple times. Ping for pastes or help
amb007[m] has left #nixos ["User left"]
johnw has joined #nixos
<feep> nm docs found
<tilpner> feep: That depends. You can use builitns.fetchGit to do it at eval-time, fetchgit for build-time, fetchFrom* for specialised hosts
aborsu has quit [Client Quit]
aborsu has joined #nixos
aborsu has quit [Remote host closed the connection]
Guest62653 has joined #nixos
Guest62653 has quit [K-Lined]
<feep> hm, can I just grab a folder from the nixpkgs distro and convert it to an overlay?
<tilpner> Ehh?
aborsu has joined #nixos
<tilpner> Let's take a step back, what do you want to accomplish?
<freannrak> I'm writing my first derivation after reading the nix-pills and looks like my builder doesn't have permission to write to the store (`mkdir: permission denied`). During the build it's only allowed to write to the $out path?
<feep> tilpner: I need to update aqbanking and kmymoney
jbgi_ has joined #nixos
<__monty__> freannrak: That's right.
ldeck_ has quit [Client Quit]
<tilpner> freannrak: Mostly, yes. The sandbox can prevent file and network access
<feep> aqbanking has an update script that uses tarball releases, which don't include the current release
<__monty__> freannrak: $out will end up in the store.
<feep> so I need to switch to git sourced src
aborsu has quit [Client Quit]
<feep> but I don't wanna switch my entire setup to nixpkgs master
<tilpner> feep: Hold on
<__monty__> feep: It's really easy to write an overlay that points to a default.nix in a nixpkgs checkout.
<feep> __monty__: that sounds promising!
<freannrak> Ok. I've got a git cloned source in `$src` and the build instructions are `make install` which will execute some go code. I've already added go to the path. Should I be copying the whole $src to $out then so that `make install` has permissions to write?
laika___ has joined #nixos
<tilpner> feep: So 5.7.8 is too old, yes?
<feep> definitely
<feep> needs 5.8.1
<tilpner> feep: You can .overrideAttrs to replace an attribute of a derivation, here src
<feep> .... oh! I can just replace src
* feep >.<
<feep> shoulda thought of that, thanks!
sk8forether has joined #nixos
<tilpner> feep: So you would use aqbanking.overrideAttrs (old: { src = fetchurl { ... }; }) instead of aqbanking
<feep> doing
<tilpner> feep: And if that works, consider a PR
<feep> will do!
growpotkin has joined #nixos
<__monty__> feep: http://ix.io/1TxY
<tilpner> That is not quite the same as picking a package from master
<tilpner> Which may be intended here
<feep> p close though, anyway overriding src seems the better approach anyway
<tilpner> But callPackage-ing a .nix file directly will use your dependencies from your current branch
<feep> hey, how do I fetchgit?
jgeerds has joined #nixos
<tilpner> Which will result in you using a probably untested combination of versions, __monty__
<feep> nm, found
<__monty__> tilpner: I guess, but should I care? It'll be tested when it goes to master anyway, no?
<__monty__> Would you suggest testing against everything in master? But that might be in various states of broke and is probably not cached?
<feep> bleh, the source distro needs an additional preprocessing step
<tilpner> __monty__: Not necessarily. But it's something to consider, because it does cause problem to mix and match nixpkgs version
<qubasa> Is fetchzip not broken on master? As far as i can see the 'name' attribute does get ignored which breaks software that has urls not ending with .zip https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchzip/default.nix
<tilpner> __monty__: As long as you're aware that this will not result in the same package as if you were using master, everything is fine
bdesham has left #nixos [#nixos]
<tilpner> qubasa: What about line 18?
ng0 has quit [Quit: Alexa, when is the end of world?]
<qubasa> tiplner: Yes but look into postFetch
<qubasa> tiplner: line 30-31
<qubasa> tilpner: .
ldeck8 has joined #nixos
<tilpner> And those URLs were working recently?
<qubasa> No stable is broken too
<tilpner> Ahh. You mentioned master, which I interpreted to mean that you think it's caused by a recent change
<qubasa> Sorry my wording was misleading I was just wondering why nobody had issues with that :o
<tilpner> I'll give it a try
<feep> bleh, this has a nontrivial build process :-/
<__monty__> tilpner: Thanks for pointing it out. Is there really a pragmatic way to "do the right thing" though? (Not even sure what that'd be, testing master seems semi-pointless, testing a release will always have the same problem of testing against an older nixpkgs than it'll be part of.)
pie_ has quit [Ping timeout: 264 seconds]
jbgi_ has quit [Ping timeout: 268 seconds]
ng0 has joined #nixos
<feep> how do I find the nix prefix for a package?
<feep> or rather, path
<tilpner> qubasa: Yes, can reproduce
<qubasa> tilpner: wtf does nobody fetches zips like that o.O
<tilpner> __monty__: Probably not, because the right thing depends so much on the context. Using callPackage from unstable might be good enough
<__monty__> feep: find(1) HHOS
<tilpner> ~ > EDITOR=echo nix edit -f '<nixpkgs>' hello
<feep> __monty__: I mean in a nix file
<tilpner> /nix/store/r5aj0bgxwq24gav7b1pcj2vrcjmkl2c1-source/pkgs/applications/misc/hello/default.nix
<feep> I need it for an include path
valebes has joined #nixos
<feep> aqbanking's autoconf dance wants to be pointed at the gwenhwyfar m4
grim_reaper[m] has joined #nixos
<tilpner> qubasa: #60157
<__monty__> Hmm, you'd specify it as a buildInput but then I'm lost.
<{^_^}> https://github.com/NixOS/nixpkgs/issues/60157 (by deliciouslytyped, 17 weeks ago, open): fetchurl/fetchzip fails based on file extension?
<{^_^}> [nixpkgs] @geistesk opened pull request #67516 → go-shadowsocks2: init at 0.0.11 → https://git.io/fjAaF
<qubasa> tilpner: Ohh ok seems like it got buried. I will reopen a new one
<tilpner> qubasa: No, one is fine
<tilpner> qubasa: Comment on it, subscribe if you want
<qubasa> alright did it
<qubasa> Mic92: Fetchzip is borken https://github.com/NixOS/nixpkgs/issues/60157
<{^_^}> #60157 (by deliciouslytyped, 17 weeks ago, open): fetchurl/fetchzip fails based on file extension?
<{^_^}> [nix] @grahamc pushed 5 commits to activation: https://git.io/fjAah
jbgi_ has joined #nixos
<{^_^}> [nix] @grahamc pushed 0 commits to activation: https://git.io/fjAVe
phreedom_ has quit [Remote host closed the connection]
ng0 has quit [Write error: Connection reset by peer]
oida has quit [Remote host closed the connection]
Palpares_ has quit [Read error: Connection reset by peer]
cantstanya has quit [Read error: Connection reset by peer]
andreas303 has quit [Read error: Connection reset by peer]
klntsky has quit [Write error: Connection reset by peer]
jb55 has quit [Write error: Connection reset by peer]
alex`` has joined #nixos
phreedom has joined #nixos
Palpares_ has joined #nixos
oida has joined #nixos
klntsky has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
martyet-o has quit [Ping timeout: 248 seconds]
andreas303 has joined #nixos
cantstanya has joined #nixos
martyet-o has joined #nixos
alex`` has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @jonringer opened pull request #67517 → git-up: 1.4.2 -> 1.6.1 → https://git.io/fjAVI
jb55 has joined #nixos
alex`` has joined #nixos
<{^_^}> [nixpkgs] @costrouc opened pull request #67518 → pythonPackages.elpy: 1.28.0 -> 1.29.1 add tests → https://git.io/fjAVL
<{^_^}> [nixpkgs] @primeos opened pull request #67519 → tcpflow: 1.4.6 -> 1.5.2 → https://git.io/fjAVq
ng0 has joined #nixos
<angerman> pbb: how do I add `perl` into an allowed dependency of `openssl` then? Becuase that's what makes the build fail now.
asymptotically has joined #nixos
<angerman> guess I can just nuke the `postFixup` phase.
<angerman> God this is so remarkably broken even on release-19.03
DariusTh` has quit [Ping timeout: 268 seconds]
jbgi_ has quit [Ping timeout: 245 seconds]
pareidolia has quit [Ping timeout: 258 seconds]
pareidolia has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
ng0 has quit [Quit: Alexa, when is the end of world?]
ng0 has joined #nixos
<boxscape> it's been a while since I've had to do this - when i import <nixpkgs>, I can specify overrides for specific packages in the {} after it, right? What's the syntax for doing that?
valebes has quit [Quit: Lost terminal]
chloekek has joined #nixos
ldeck has quit [Read error: Connection reset by peer]
demize has quit [Quit: Do Androids Dream of Electric Sheep?]
chloekek has quit [Ping timeout: 272 seconds]
<Baughn> So, it seems I have got my system in a state where root can't talk to systemd:
<Baughn> $ sudo systemctl status
<{^_^}> [nixpkgs] @jonringer opened pull request #67520 → gnurl: 7.64.0 -> 7.65.0 → https://git.io/fjAV1
<Baughn> `Failed to read server status: Access denied`
demize has joined #nixos
nschoe has joined #nixos
<Baughn> This, of course, is preventing me from running nixos-rebuild. Sigh.
<Baughn> And also rebooting
jbgi_ has joined #nixos
knupfer has joined #nixos
<sphalerite> How do I run an nfs server with zfs on nixos?
<sphalerite> I seem to recall there being some particularities with nfs and zfs…
stepcut_ has joined #nixos
<exarkun> hm
<exarkun> I don't have any weirdness in my config
stepcut has quit [Ping timeout: 248 seconds]
<exarkun> Turn on zfs. Turn on nfs.
wildtrees has joined #nixos
<cransom> same here. i have zfs points mounted, i have them listed in my services.nfs.server.exports
<cransom> i don't remember any pitfalls.
nschoe has quit [Ping timeout: 252 seconds]
<exarkun> I do have the "sharenfs" property off on my zfs filesystems, but that's the default
<Baughn> In principle, the kernel-mode nfs-on-zfs driver has better performance and possibly consistency.
<Baughn> Depending on why you're using nfs instead of sshfs, that may matter.
freannrak has quit [Remote host closed the connection]
<boxscape> (I figured out how to override packages while importing <nixpkgs>)
<boxscape> I can do ghc.withPackages, but haskell.compiler.ghc881.withPackages doesn't seem to exist. Is there an easy way around that?
<jonreeve[m]> Anyone know what $NIX_PATH is supposed to contain? I seem to have erased mine by mistake
jbgi_ has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @obadz merged pull request #67519 → tcpflow: 1.4.6 -> 1.5.2 → https://git.io/fjAVq
<{^_^}> [nixpkgs] @obadz pushed 2 commits to master: https://git.io/fjAVd
<boxscape> jonreeve[m] mine is /home/user/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<yorick> jonreeve[m]: $HOME/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<{^_^}> [nixpkgs] @Ekleog opened pull request #67521 → wasm: alias to ocamlPackages.wasm → https://git.io/fjAVb
DariusTh` has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @obadz merged pull request #66299 → fsharp41: 4.1.7 -> 4.1.34; mono = mono6 → https://git.io/fjQQy
<{^_^}> [nixpkgs] @obadz pushed 5 commits to master: https://git.io/fjAVx
Theuni2 has quit [Quit: Textual IRC Client: www.textualapp.com]
zupo has joined #nixos
jbgi_ has joined #nixos
<rsoeldner> pbb, is there a way to add a root ssh priv. key to the vm build with virtualBoxOVA ?
jtojnar has joined #nixos
<boxscape> hm, so I copied withPackages into a nix file so I can alter it, so this file just contains a set with this one element. Is there some easy way I can use it in nix-shell like I would use with -p ghc.withPackages?
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #67522 → Harmonize Gnome3 Defaults → https://git.io/fjAwJ
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<boxscape> Ah, it looks like what I'm looking for is haskell.packages.ghc881.ghcWithPackages
<evanjs> boxscape: yeah, or hoogleWithPackages if you want docs. Man page entry: https://nixos.org/nixpkgs/manual/#how-to-install-a-compiler-with-libraries
<boxscape> ah, thanks
viric has joined #nixos
<__monty__> *withHoogle, no?
ldeck8 has quit [Ping timeout: 260 seconds]
<evanjs> __monty__: derp, thanks, yeah. ghcWithHoogle
<boxscape> hm well there seems to be a dependency missing for singletons anyway, so I guess I'll have to wait a bit before I can use 8.8.1
selfsymmetric-pa has joined #nixos
<feep> jeez aqbanking needs a lot of tweaking
* feep patches in makefile fix
<{^_^}> [nixpkgs] @vbgl opened pull request #67523 → ocamlPackages.lablgtk: 2.18.6 -> 2.18.8 → https://git.io/fjAwn
<feep> alright! aqbanking builds!
<{^_^}> [nixpkgs] @peti opened pull request #67525 → mailman: add the Postorious web UI → https://git.io/fjAwW
Myhlamaeus2 has joined #nixos
Myhlamaeus1 has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e67da9e4cab (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
npmccallum has joined #nixos
psyanticy has quit [Quit: Connection closed for inactivity]
imalison has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #66942 → ocamlPackages.mtime: 1.1.0 -> 1.2.0 → https://git.io/fjF1i
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.mtime: 1.1.0 -> 1.2.0 »: https://git.io/fjAwR
domogled has quit [Ping timeout: 245 seconds]
diamaths[m] has joined #nixos
<{^_^}> [nixpkgs] @rissson opened pull request #67526 → flashplayer: 32.0.0.223 -> 32.0.0.238 → https://git.io/fjAw0
xkapastel has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @globin pushed to gcc-8 « rubygems.grpc: fix build with gcc8 »: https://git.io/fjAwK
DariusTh` has quit [Ping timeout: 244 seconds]
DariusTh` has joined #nixos
growpotk- has joined #nixos
rsoeldner has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #67502 → hunspellDicts.uk-ua: 4.2.5 -> 4.6.3 → https://git.io/fjAEq
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjAw6
<{^_^}> [nixpkgs] @vbgl opened pull request #67527 → ocamlPackages.ocplib-json-typed: 0.5 -> 0.7.1 → https://git.io/fjAwi
civodul has joined #nixos
endformationage has quit [Read error: Connection reset by peer]
endformationage has joined #nixos
<{^_^}> [nixpkgs] @pacien opened pull request #67528 → riot-desktop: use yarn2nix-moretea → https://git.io/fjAwD
<ldlework> Unfortunately, it looks like the maintainer of Paket2Nix says they wont be working on that project any longer.
<ldlework> No grief to them at all, but it seems like a theme in Nix
<ldlework> Someone will build some nice piece of infrastructure, and then they switch jobs or stack, and then that thing rots to death.
DariusTh` has quit [Ping timeout: 244 seconds]
<ldlework> Not like an overarching theme that defines the project, just something I've run into a couple times now
<gchristensen> definitely true for the less common language ecosystems
<manveru> ldlework: yeah, lacking manpower i guess :|
<ldlework> If you wanna see some beautiful F# though, that Paket2Nix project is really really pretty
DariusTh` has joined #nixos
<manveru> there's just not a lot of people using nix and .net?
<ldlework> ...yet!!
<ldlework> hehe
chloekek has joined #nixos
<manveru> :)
<manveru> chicken&egg and all
<ldlework> I couldn't figure out how to get my "fixed-point" derivation to actually be fixed point so I gave up and went back to Docker
<ldlework> it kills me everytime I have to do that
<{^_^}> [nixpkgs] @worldofpeace closed pull request #67215 → nixos/gnome3: default support for color emoji → https://git.io/fjb50
<manveru> that sounds strange
<ldlework> manveru: i have to download a bunch of dependencies from the internet
<ldlework> and everytime I build that derivation the hash changes
<averell> there's a billion node/react/etc apps out there though, and like <5 node2nix instances in nixpkgs. it's not really a popularity thing sometimes.
<ldlework> send the expressions to a friend, they have to build it once, update the hash, and build it again
<manveru> so you have to write your own fetcher that makes it reproducible?
<ldlework> it's just not workable when I can just ship around a Dockerfile and it always works everywhere
<ldlework> yeah, that's what paket2nix is
<manveru> ah, ok
<ldlework> but I just don't understand the problems involved or how paket works
<manveru> i did something like that for elixir/erlang too
Guest34 has joined #nixos
<ldlework> It would be nice if one of the more free authors of one of those tool explained "How to go about" writing one of those things
<ldlework> What exactly is the conceptual space and practical problems
<manveru> :)
<averell> wow, last commit 2016...
<manveru> i can probably write about that
<ldlework> I imagine that these things are probably not too hard to actually craft software wise
<ldlework> like you're downloading some stuff, maybe running sha256 on something, and generating nix code from templates right?
<ldlework> manveru: that'd be awesome
<manveru> there are two tricky parts: get a hash, and make the downloaded stuff byte-identical
<ldlework> that does sound tricky
<gchristensen> and sometimes, determining the closure of what needs to be fetched *eyes maven*
<manveru> so if you have some kind of lockfile that contains hashes already, that's ideal
<manveru> yeah :P
<ldlework> I have a lockfile but no hashes
<ldlework> just versions
<Guest34> Hi all, I'm trying to write a derivation for trelby (www.trelby.org). So far I have this: https://pastebin.com/E7U4szFJ. I think this should be fairly straightforward, it's a python2.7 package, the zip has a .desktop file all ready to go. Is there a wrapper for this kind of thing that I'm missing?
selfsymmetric-pa has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #67470 → cpython: skip macOS system frameworks → https://git.io/fjAne
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjAwp
selfsymmetric-pa has joined #nixos
selfsymmetric-pa has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #67476 → nixos/update-users-groups.pl: chomp hashedPassword → https://git.io/fjAcZ
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjAwj
<{^_^}> [nixpkgs] @worldofpeace opened pull request #67529 → nixos/fontconfig-penultimate: disable by default → https://git.io/fjAre
selfsymmetric-pa has joined #nixos
<{^_^}> [nixpkgs] @globin pushed to master « yate: 6.0.0-1 -> 6.1.0-1 »: https://git.io/fjArv
<averell> yes, usually people don't pull the release archive, but rather build from source with buildPythonApplication or similar
jbgi_ has quit [Ping timeout: 258 seconds]
<Guest34> perfect, I'll give that a look
zecco has joined #nixos
<manveru> ldlework: and your issue atm is that paket2nix is not reproducible?
<manveru> might be that it's just pulling git repos or something
<zecco> hey when you're building a package, where's the work directory? I'm trying to make a package for zecwallet, and I don't know where the binaries it makes end up, so I can copy them into $out/bin
DariusTh` has quit [Ping timeout: 245 seconds]
<zecco> is the work directory maybe deleted after the build?
<evanjs> zecco: should just be in the current directory. And by default, yes
<evanjs> *current directory in the context of nix-build
<zecco> hmmm, can I make that stick around so I can look at it?
DariusTh` has joined #nixos
<evanjs> For failed builds or?
<averell> or, during build it's somewhere in /tmp, and there are flags to keep it, like -K
<evanjs> ^
<zecco> yeah it seems to build successfully, but I'm cargo-culting this by looking at antoher qt project, which copies the final artifacts to $out/bin. In my case, it doesn't find the executables its supposed to copy
<zecco> I don't know where those are supposed to be in the soure directory after the build, so I'd like to inspect it to see.
<zecco> -K, I'll look that up. Thx!
<averell> you could start the build in a nix-shell then work through the phases interactively, but it's more involved. cheapo way is put some ls -laR in the build and die or something :)
<mightybyte> tilpner: I'm late responding, but not sure what your last message to me is in reference to.
jbgi_ has joined #nixos
___laika has joined #nixos
<tilpner> mightybyte: Sorry about that, I was replying to someone whose nick begins with m1, and it was past midnight and tab completion let me down
<mightybyte> Ahh, ok.
<mightybyte> No worries.
pie_ has joined #nixos
jbgi_ has quit [Client Quit]
<{^_^}> [nixpkgs] @jtojnar merged pull request #67506 → wireshark-cli: remove Qt from build closure → https://git.io/fjAu2
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fjArR
___laika has quit [Ping timeout: 245 seconds]
selfsymmetric-pa has quit [Remote host closed the connection]
selfsymmetric-pa has joined #nixos
selfsymmetric-pa has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @volth opened pull request #67530 → treewide: remove redundant rec → https://git.io/fjArr
<{^_^}> [nixpkgs] @globin pushed to master « xorg.xf86videosis: 0.10.9 -> 0.11.0 »: https://git.io/fjAro
selfsymmetric-pa has joined #nixos
<Guest34> Alright, I've switched over to buildPythonApplication https://pastebin.com/pXNJQytm, however, it now gives me an error that setup.py is not found. Here is the ls of the trelby directory: https://pastebin.com/Riq91PgT. Note: when extracted from the tar.gz the trelby folder is contained
<Guest34> So, there really isn't a setup.py file. I'm wondering if this is the right approach?
<Yaniel> the repo does have a setup.py though
<Guest34> ah
o1lo01ol1o has joined #nixos
<Guest34> Okay, I'll give it another shot, you're right
<{^_^}> [nixpkgs] @petabyteboy closed pull request #67514 → riot-desktop: use yarn2nix-moretea → https://git.io/fjA2Q
<Guest34> Thanks again!
<{^_^}> [nixpkgs] @jonringer opened pull request #67531 → texi2html: 1.82 -> 5.0 → https://git.io/fjArX
dasj19 has quit [Quit: dasj19]
zecco has quit [Remote host closed the connection]
<pie_> i've been staring at some problems for days with no progress
<pie_> anyone know anything about "nixpkgs/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'meta', at /home/paprika/nixos2/nixpkgs/pkgs/build-support/fetchpatch/default.nix:14:1"
<pie_> (nyone know anything about "nixpkgs/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'meta', at /home/paprika/nixos2/nixpkgs/pkgs/build-support/fetchpatch/default.nix:14:1"
<pie_> argh
<pie_> sorry
<pie_> correct paste: "anonymous function at someroot/nixpkgs/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'meta', at /home/paprika/nixos2/nixpkgs/pkgs/build-support/fetchpatch/default.nix:14:1"
<pie_> ah wait, theres more https://bpaste.net/show/sluy
<slabity> Looks like it's calling `fetchurl ({ postFetch = "..."; meta.broken = ... })`
<slabity> Not sure what `fetchurl` expects to take in as an argument though.
<pie_> the thing is im not touching anything that looks remotely relevant to that, to me
<pie_> hold on im trying to isolate what even causes this, again..
<pie_> meanwhile i just realize how some magic i was looking at happens. turns out i probably got confused by probably the one impure part of nixpkgs behaving strangely. figures. https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/impure.nix
<pie_> actually..still not sure why it happens, but its useful to realize the top level default.nix has some default parameters >_>
ixxie has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @jlesquembre opened pull request #67532 → tilt: 0.9.7 -> 0.10.4 → https://git.io/fjArx
<Guest34> Alright, looks like we're almost there. Thanks again for the help everyone. Just one last issue it seems... Everything looks to be working correctly, but when I try to run the wrapped program I get an error: https://pastebin.com/adMEmgW9
jlv has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
__monty__ has quit [Ping timeout: 248 seconds]
mcmx has quit [Remote host closed the connection]
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/e02148563af (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<jlv> I'm getting an error `FileNotFoundError: [Errno 2] No such file or directory: '/homeless-shelter/.s3ql'` while trying to update s3ql to 3.2, from tests. Any idea how to fix this?
<qubasa> Question: I want to upstream a system wide function called fetchXpi which fetches firefox addons where should I put it?
<qubasa> and does such a function need to be written in shell or is python for example ok?
<sphalerite> jlv: `export HOME=/build` before the tests
liberiga has joined #nixos
joelpet[m] has joined #nixos
<jlv> sphalerite: That did it :D Thanks!
<sphalerite> :)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/da1ff985aef (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
reallymemorable has joined #nixos
DariusTh` has quit [Ping timeout: 245 seconds]
ensyde has joined #nixos
<pie_> slabity: yeah i cant tell whats going on, none of my code seems to directly cause that
<pie_> i disabled basically all of my config and it still failed with that
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @manveru opened pull request #67533 → wayback_machine_downloader: init at 2.2.1 → https://git.io/fjAo3
asymptotically has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @petabyteboy opened pull request #67534 → riot-desktop: use yarn2nix-moretea → https://git.io/fjAos
DariusTh` has joined #nixos
<hyperfekt> tilpner: In the snippet for adding sources as a dependency, where does pkgs.sources come from?
Guest34 has quit [Remote host closed the connection]
ng0 has quit [Quit: Alexa, when is the end of world?]
ensyde has quit [Quit: WeeChat 2.4]
<tilpner> hyperfekt: That's an attrset of pinned sources specific to my config
<tilpner> But you can easily use your own sources there
jschievink[m] is now known as jschievink
<{^_^}> [nixpkgs] @markuskowa merged pull request #67457 → singularity: prepatch path to cp in 3.2.1 → https://git.io/fjAOz
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fjAoZ
<pie_> tilpner: is your config up soemwhere btw
<tilpner> Not entirely. Small pieces are extracted into github.com/tilpner/nur-packages
ng0 has joined #nixos
<hyperfekt> tilpner: Oh that's not ideal, that would mean I have to collect everything I fetch from the net in that argument. But I guess if there's not better way...
commander has quit [Remote host closed the connection]
<tilpner> hyperfekt: My pinned sources are a JSON file each, automatically gathered into this sources set. If you just have fetchTarballs scattered all over your config... good luck c.c
zupo_ has joined #nixos
<tilpner> How did you pin nixpkgs exactly?
zupo has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @globin pushed to staging « libdrm: enable omap support »: https://git.io/fjAo4
<hyperfekt> tilpner: I have some distributed throughout because they get like one update every four years and thus not managed as a source (which I have managed via niv). But I can fix that. I feel like this possibly deserves to get solved generally and upstream though, cause anyone who GCs has this problem.
{`-`} has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #67535 → stp: 2.2.0 -> 2.3.3 → https://git.io/fjAoR
o1lo01ol1o has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
jlv has quit [Remote host closed the connection]
lally has quit [Ping timeout: 245 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bfcab980744 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tilpner> hyperfekt: If it's an option for you, I find that acquiring lots of storage and disabling automatic GC helps a lot with making it less painful
<tilpner> You'll still have to GC every few months, but it's not the "ugh, GC deleted my toolchain again, and now I need to spend 10 minutes fetching it. Again!"
<pie_> clever: im so stumped...do you have any pointers? https://paste.lassul.us/Py7W6gWp/+inline
knupfer has quit [Ping timeout: 264 seconds]
imalison has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
alanz has quit [Remote host closed the connection]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DariusTh` has quit [Ping timeout: 244 seconds]
o1lo01ol1o has joined #nixos
reallymemorable has joined #nixos
<{^_^}> [nixpkgs] @pacien closed pull request #67528 → riot-desktop: use yarn2nix-moretea → https://git.io/fjAwD
iggi42 has joined #nixos
<aveltras> anyone using lutris ? how can i get the vulkan libraries installed ?
Ariakenom has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<{^_^}> [nixpkgs] @Ekleog merged pull request #67521 → wasm: alias to ocamlPackages.wasm → https://git.io/fjAVb
<{^_^}> [nixpkgs] @Ekleog pushed 2 commits to master: https://git.io/fjAoi
pbb has joined #nixos
erasmas has quit [Ping timeout: 248 seconds]
jgeerds has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #67504 → tiled: use qt5.mkDerivation → https://git.io/fjAER
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjAoy
<{^_^}> [nixpkgs] @mmahut merged pull request #66794 → mumble_overlay: fixing the library path → https://git.io/fjFtZ
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAoH
orivej has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #67454 → wavpack: CVE-2018-7253 and CVE-2018-7254 → https://git.io/fjAY4
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to staging: https://git.io/fjAoQ
<{^_^}> [nixpkgs] @volth opened pull request #67536 → treewide: remove redundant quotes → https://git.io/fjAo5
lally has joined #nixos
growpotk- has quit [Ping timeout: 268 seconds]
chloekek has quit [Ping timeout: 272 seconds]
<pie_> infinisil: i still dont get how do debug infinite recursions in modules in a reasonable way
civodul has quit [Remote host closed the connection]
<infinisil> pie_: You should probably show the nix files..
<pie_> infinisil: ok you know what, the unfrec is for later because i cant even produce it right now
<infinisil> Maybe it's time to sleep :P
<pie_> yeah
<pie_> but for the other thing i like, disabled basically all of my config and still ran into the error
<pie_> not sure how to mini-...hold on *attempts to write a smaller test case*
lally has quit [Ping timeout: 248 seconds]
knupfer has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #67534 → riot-desktop: use yarn2nix-moretea → https://git.io/fjAos
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjAoh
lally has joined #nixos
eof has quit [Ping timeout: 245 seconds]
knupfer has joined #nixos
<ldlework> Is there a way I can get nix to build a derivation and tell me the output hash
<ldlework> Like I wanna run it over and over just to ensure it always spits out the same thing?
<alexarice[m]> ldlework: you can run it with `--check`
<alexarice[m]> I think that's the flag anyway
<pie_> hm, is it possible to output to a different store?
<ldlework> alexarice[m]: hmm for nix-build?
<pie_> also kind of wonder how --check works
andrewrk has joined #nixos
<andrewrk> I did `nix-shell -p gcc9` but how do I call it? I don't see it in PATH. `gcc --version` says 7.4.0
<ldlework> i don't see any --check flag on nix-build
<ldlework> oh well it's there
fusion809 has joined #nixos
<alexarice[m]> ldlework: you can ctrl-f https://nixos.org/nix/manual/ for it
lally has quit [Ping timeout: 250 seconds]
<boxscape> How can I get haskellPackages.developPackage to use a local version of a package? I tried "overrides = self: super: { pkgs.haskellPackages.haskell-src-exts = ./haskell-src-exts; }", but that doesn't actually seem to change which version it installs
domogled has joined #nixos
<boxscape> (i.e. I tried adding that as an argument to developPackage)
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
<infinisil> boxscape: Should be `developPackage { source-overrides.haskell-src-exts = ./haskell-src-exts; }`
<ldlework> alexarice[m]: hmm everytime I run `nix-build --check paket.nix` it just builds the derivaiton and doesn't tell me anything interesting about whether it matched the previous build
<boxscape> ah, thanks infinisil
<alexarice[m]> ldlework: Can't you look at the store path?
selfsymmetric-pa has quit [Remote host closed the connection]
<alexarice[m]> alexarice: or hash the result or something if you're really skeptical
<pie_> infinisil: here is my repro https://bpaste.net/show/7pDB for https://bpaste.net/show/sJqP
<infinisil> pie_: Oh, that's not meant to be evaluated like that
<infinisil> You should add `-A system` to get the resulting system
<pie_> i swear it worked earlier :V (probably didnt)
<pie_> infinisil: -A makes it dump a whole bunch of stuff to stdout though
<pie_> infinisil: any idea why it fails though?
<ldlework> When you build a fixed-output derivation that uses the `outputHash` attribute, does the hash that you set on that attribute endup being an input to the hash that gets output? I have a derivation that nix-build says produces the same hash, but when I use that fixed-output derivation as a dependency in another of my derivations, it always says the hash is wrong, so I have to update the hash and rebuild and I'm
<ldlework> just confused on this point.
<infinisil> pie_: Hm no idea for now
<pie_> infinisil: why should an --eval fail but a build not
<pie_> or watever the heck -A does
<pie_> i want to violate the no cursing policy right now
<gchristensen> -A selects a specific attribute to evaluate
<infinisil> pie_: Well --strict eval needs to evaluate every nook and cranny, that fails in nixpkgs because there's always something broken
<pie_> so what, i can select that attribute with eval too
<qyliss> yes
<qyliss> i think
<pie_> infinisil: ok i was about to guess it has something to do with --strict, thats starting to make sense
blitzclone[m]1 is now known as blitzclone[m]11
<ldlework> :|
<pie_> does system have all of nixpkgs in it somewhere
<qyliss> nope
<qyliss> unless you put it in
<pie_> well i dont think i did
<qyliss> oh, wait, you mean the system attribute set
<qyliss> as opposed to the output
<qyliss> never mind
<infinisil> ldlework: The outputHash itself is the thing that defines a fixed-output derivation's hash
<ldlework> infinisil: then why when I depend on that fixed-output hash, I get "expected, got" things
<ldlework> and then I have to set the "got" hash to the output derivation's outputHash attribute to get it to work?
<gchristensen> it is not common for people to writetheir own fixed output derivations, what does it do?
<infinisil> Need more context
<infinisil> Or like an example ldlework
<infinisil> I don't think that should happen
<pie_> ok, so these seem to fail consistently unless i messed something up again
<pie_> `nix-instantiate -v -E '(import ./nixpkgs/nixos {})' -A system --eval --strict --show-trace`
<pie_> `nix-instantiate -v -E '(import ./nixpkgs/nixos {}).system' --eval --strict --show-trace`
<qyliss> those should do exactly the same thing
<pie_> not selecting .system somehow resulted in it behaving different and spewing a bunch of derivatoin looking stuff into the terminal
<qyliss> (as should `nix-instantiate -v -A system --eval --strict --show-trace nixpkgs/nixos`)
<pie_> that last one is nicer
<pie_> infinisil: so the question of the failure still remains
<ldlework> infinisil: I'll get an example repo
<pie_> errr
* pie_ runs without strict
<pie_> ok spewing garbage again
<pie_> thats better i guess
<infinisil> Just stop using --strict!
<ldlework> infinisil: gchristensen here is a repo with default.nix which depends on fixed-output derivation of paket.nix, https://github.com/disunity-hq/disinfo/tree/split-nix
<ldlework> from what I can tell, paket.nix is a "reproducable" derivation, and yet
<pie_> i guess strict infinite recurses horribly somewhere in the bootstrap tools
<ldlework> when you try to build default.nix, it'll complain the hash of paket.nix is not matching what it claims
<ldlework> infinisil: then you can update the outputHash attribute with the "got" hash, then commit it
<pie_> infinisil: the reason i started using strict was not selecting .system would just WHNF and not get me anywhere, but i guess i dont need that anymore
<ldlework> when I try to build your commit on my machine, then it'll complain again the hash is not right and i'll have to update the outputHash attribute
<infinisil> ldlework: I mean, Nix will check that the outputHash is correct when it builds it first
<ldlework> infinisil: but if we both run `nix-build --check paket.nix` on our machines, it'll always produce the same build
<ldlework> infinisil: sure, but take in my whole message and you'll see what I mean
<ldlework> sorry for the newlines
<infinisil> Hm
<ldlework> bad habit :(
<qyliss> ldlework: try letting the two machines do their thing with their own hashes, and then running diffoscope on the outputs
<pie_> letssee if it stops spewing garbage at any point...
ris has quit [Ping timeout: 246 seconds]
<gchristensen> qyliss: (can just --check too, no?)
<ldlework> --check on a single machine produces the same store path
<ldlework> like i just did it a bunch of times on my machine
<ldlework> but if I put it into a docker container
<ldlework> and do the same thing
<pie_> that sounds kind of useless
<pie_> :(
<ldlework> different, yet consistent, store path
<ldlework> :(
<gchristensen> it doesn't exit non-zero?
<clever> ldlework: run diff -r on the 2 paths, to see how they are different
<ldlework> ok
<ldlework> all likelyhood i'm just confused about something / doing something wrong
<pie_> ` nix-instantiate -v --eval --show-trace -A system ./nixpkgs/nixos/` does not seem to reasonable terminate, spews output
<gchristensen> or diffoscope at qyliss suggested
<clever> pie_: can you paste some of the repeating output?
<ldlework> btw, I think that --check should actually tell you whether the hashes match and what they are
<hyperfekt> tilpner++
<{^_^}> tilpner's karma got increased to 41
<averell> #66292 <-- trivial PR, disables cuda on non-x86_64 (it only builds there anyway, and fails otherwise; causes no rebuilds otherwise).
<{^_^}> https://github.com/NixOS/nixpkgs/pull/66292 (by averelld, 2 weeks ago, open): opencv: dont try cuda on 32 bit
<alj[m]> Hey everyone!
<alj[m]> How can I overwrite a lib.optionals in some nix file?
<pie_> clever: pretty inscrutable https://bpaste.net/show/AWmw , looks like normal output, but not sure why its dumping it all
<ldlework> Is there a builder helper that just produces a derivation that includes N other packages?
<alj[m]> like I'm talking about the "patches" property/variable of the pinentry package. how do i change that locally
<ldlework> pkgs.dockerTools.buildImages.contents takes only a single derivation
<ldlework> so it'd be cool if easily build a derivation that simply consists of some other ones
<clever> ldlework: buildEnv
<ldlework> mkDerivation { buildInputs = [ ... ] } is the hting I guess?
<ldlework> oh i'll look at that
<clever> pie_: it already finished the eval, its now recursively printing out the entire nix expr, i dont think you want --eval
<clever> ldlework: also, contents can be a list
<ldlework> clever: oh well then
<pie_> clever: oh duh i even read in the man page that --eval pritns it
<pie_> i..need sleep *blames it on needing sleep*
<pie_> *and frustration(
<pie_> clever: i want whatever it was that prevents actual building
<pie_> " --parse Just parse the input files, and print their abstract syntax trees on standard output in ATerm format." whats Aterm, google brings up a bunch of japanese stuff
stepcut_ has quit [Remote host closed the connection]
<ldlework> clever: how do you use the thing output by building a docker image with buildImage
stepcut has joined #nixos
<ldlework> docker import?
<ldlework> 'm guessin so
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<ldlework> clever: one strange thing though is if you do `docker import /nix/store/d745kfzkviff6bqnz7fzvb72lbaavkbd-docker-image-disinfo.tar.gz` the tag and name specified in the derivation don't get used by docker when importing the image
<ldlework> so that seems largely useless
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<ldlework> I also got "Error response from daemon: No command specified." when running the image even though I got ` config.Cmd = [ "/bin/bash" ];` in the expression
<ldlework> hmm
stepcut has joined #nixos
Soo_Slow has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<infinisil> Hey, is it possible to have a unix user different than the postgresql user it matches to?
<infinisil> I think postgresql always alings with unix users
jb55 has quit [Ping timeout: 260 seconds]
philr has joined #nixos
stepcut has joined #nixos
<infinisil> Like when you add a user in postgresql with the same name as the unix user, it lets the unix user authenticate as that postgresql user
stepcut has quit [Remote host closed the connection]
<infinisil> But is this something built into postgresql or something with PAM/
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
jb55 has joined #nixos
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<infinisil> I'm asking because I'm trying to package invidious <https://github.com/omarroth/invidious> which seems to use the database user "kemal" everywhere (which apparently comes from some web framework it uses <https://kemalcr.com/>)
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<hyperfekt> stepcut: You need a bouncer ^^
<infinisil> However, its systemd service uses not the kemal user.. https://github.com/omarroth/invidious/blob/master/invidious.service
stepcut has quit [Remote host closed the connection]
<infinisil> It uses the invidious user, and that's really confusing me, because I think on NixOS at least usually the unix user is the same as the database user
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<ldlework> clever: I just build Example 7.131 from the nixpkgs manual, then imported the tar into docker and ran it like `docker run -it --rm hello` and I just get "Error response from daemon: No command specified." and doing `docker inspect` on the image shows that the image config is empty
<ldlework> Is this stuff broken or am I broken
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<ldlework> I even tried this one:
<ldlework> pkgs.dockerTools.buildLayeredImage {
<ldlework> name = "hello";
fendor_ has joined #nixos
<ldlework> config.Cmd = [ "${pkgs.hello}/bin/hello" ];
liberiga has quit [Ping timeout: 260 seconds]
<ldlework> }
ottidmes has quit [Ping timeout: 244 seconds]
<ldlework> from docker inspect on the imported image, "Cmd": null,
o1lo01ol1o has quit [Remote host closed the connection]
fendor__ has quit [Ping timeout: 248 seconds]
o1lo01ol1o has joined #nixos
<manveru> hmm
<manveru> seems strange
<ldlework> try it
<aanderse> infinisil: yeah actually having Linux user account authentication is new in nixos
<aanderse> you can create any user and provide a password
<infinisil> Ahh yeah I just found the ensurePermissions description which mentions that the same user can log in without a password
<manveru> ldlework: sec
<aanderse> yeah feel free to use regular password auth
<infinisil> aanderse: Do you happen to know where this is made to work?
<infinisil> The password-less thing?
<manveru> ldlework: works for me (tm)
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<ldlework> manveru: how are you loading the result of the build into docker?
<manveru> docker load -i ./result
<ldlework> oh I was using import
<ldlework> i'm an idiot
<aanderse> with mysql it's hard requirement that the mysql name match the Linux account name... that might not be the same with pgsql
<manveru> :D
<aanderse> about to get kids ready for bed, back in ~30 and can look into it some
<manveru> see the "docs"
<craige> A minor thing, but is there anyone lurking who is responsible for planet.nixos.org?
<{^_^}> [nixpkgs] @abbradar pushed to master « tensorflow: fix build »: https://git.io/fjAKj
mbrgm_ has joined #nixos
<ldlework> manveru: docker run $(docker load -q -i $(nix-build --quiet -Q docker.nix) | awk {'print $3'})
<ldlework> teehee
<manveru> --no-out-link for more awesomeness :)
<samueldr> craige[m]: not really, but ask, maybe something can be arranged
<infinisil> aanderse: Ah no problem, I'll just go with the password option
samueldr has left #nixos [#nixos]
samueldr has joined #nixos
<samueldr> craige*
<ldlework> I have a question about this...
mbrgm has quit [Ping timeout: 245 seconds]
mbrgm_ is now known as mbrgm
<ldlework> What's base operating system of this hello image?
<ldlework> Did I just build a container with no OS?
<ldlework> That runs hello directly, and just has exactly the deps it needs?
<ldlework> Or am I just being fancifull
slack1256 has joined #nixos
<manveru> that's basically it, there is no OS
laika___ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ldlework> that blows my damned mind
stepcut has quit []
<manveru> well, i think all docker containers have no kernel of their own
<samueldr> isn't it amazing how nix can just... do it... package all the dependencies required :)
<manveru> no build it with musl and be amazed how tiny it gets :)
<ldlework> manveru: yeah but generally your base layer is this huge thing
<ldlework> gchristensen: I was reading through that, is that what drives the current buildImage function?
<ldlework> what's the difference between buildImage and buildLayeredImage?
<craige> heya samueldr - it;s just that changes to master for the planet.nixos site have not been reflected in the live site. So I'm assuming there's manual part that's missing?
<ldlework> Oh I see
<ldlework> the docs don't actually say how to define multiple layers
<ldlework> is it done automatically based on the logic in that blog post?
<manveru> yes
<ldlework> that's so amazing
<manveru> you can do the same using buildImage and splitting the contents, but that's a ton of manual work :P
<ldlework> gchristensen++
<{^_^}> gchristensen's karma got increased to 144
<ldlework> manveru++
<{^_^}> manveru's karma got increased to 22
<samueldr> craige: :/ I don't know what it means, so maybe open an issue on the nixos-org-configuration, I see you probably knew about it since you added your planet :)
<craige> Yep, I just keep noticing it;s ot live and I'm busy blogging away :-)
<samueldr> ah, master as in the git branch, I thought it could be some planet concept
* craige heads of to raise an issue.
<craige> Thanks samueldr
<hyperfekt> Is there any point to using the NUR for something instead of the source repo if that already has a default.nix?
<ldlework> i'm honestly still reeling ata this
<ldlework> heh
<gchristensen> ldlework: :D
<gchristensen> craige: soyou added your blog, but it hasn't updated?
<craige> Back in March, IIRC. PR was merged into master.
<gchristensen> oops :)
<gchristensen> craige: link to the PR?
<ldlework> It would be nice if some major corporation started taking Nix seriously so that we could have a production-at-scale grade orchestrator
<craige> No sweat, I was just waiting patiently but recently my NixOS blogging has increased, so I thought it would be useful to someone :-)
<ldlework> Even a production-scale-scheduler defined in nixlang would be welcome
<samueldr> ldlework: there are major corporations using Nix and NixOS, though they're not loudmouthed :/
<gchristensen> truth :(