gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
jasongrossman has joined #nixos
<worldofpeace> infinisil: here makes sense but I see stuff around that doesn't https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/ruby-modules
<{^_^}> [nixpkgs] @oxij opened pull request #41087 → tor-browser: 52.7.3esr-7.5-1 -> 52.8.0esr-7.5-1, 52.7.0esr-8.0-1 -> 52.8.0esr-8.0-1 → https://git.io/vhqv2
<clever> eacameron: the above expression is cross-compiling libc and gcc...
<eacameron> clever: Impressive
<infinisil> worldofpeace: Sure, that's fine, you can also mention that you're not sure where to put it in the PR
joelpet has joined #nixos
joelpet has quit [Changing host]
joelpet has joined #nixos
<worldofpeace> infinisil: thx
<ghostyy> is there a packaged tcl interpreter for nixos?
<ghostyy> oh, its just called tcl...
asuryawanshi has joined #nixos
i0-dfn has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<infinisil> > pkgs.tcl.meta.description
<{^_^}> "The Tcl scription language"
<clever> scription?
<infinisil> Hah
<infinisil> > pkgs.tcl.meta.longDescription
<ghostyy> lol
<{^_^}> attribute 'longDescription' missing, at (string):41:1
<ghostyy> i was wondering about that...
newhoggy has quit [Remote host closed the connection]
<clever> eacameron: linux cant cross-compile from mac, it uses gcc, but darwin has clang
<eacameron> clever: I don't quite understand. Are you saying Linux can't target mac but mac can target linux because of clang?
<clever> eacameron: the linux kernel expressions in nixpkgs try to run gcc
<clever> eacameron: but darwin nixpkgs has clang by default
<eacameron> clever: That makes sense, the cross compilation system swaps out the c compiler at the very bottom and everything else follows?
<eacameron> Well...I'm sure lots more has to happen
Peaker has quit [Ping timeout: 252 seconds]
<Myrl-saki> clever: On that topic, I decided to go path of least resistance and named our C compiler wrapper cc. Seems to work for most packages.
<Myrl-saki> (GCC wrapper with even more flags than the current GCC.)
newhoggy has joined #nixos
<Myrl-saki> Maybe I should have used gcc-unwrapped, but I like the flags that come with the wrapped GCC.
<worldofpeace> Is there a rule of thumb for cc'ing people to review your pr in nix?
Guanin has quit [Ping timeout: 245 seconds]
Khetzal has quit [Ping timeout: 245 seconds]
<krey> in the default nixPath nixpkgs is /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<krey> is this supposed to be a real path?
<Myrl-saki> krey: What would you consider a real path?
newhoggy has quit [Ping timeout: 245 seconds]
<krey> Myrl-saki: you know, like a directory, living on my file system
<Myrl-saki> krey: Yeah, it is.
<Myrl-saki> krey: But once again, it's just a symlink to /nix/store.
<jasongrossman> worldofpeace: I don't think there is.
blankhart has quit [Ping timeout: 260 seconds]
<Myrl-saki> krey: /nix/var/nix/profiles/per-user/root/channels/nixos -> /nix/store/...
<krey> Myrl-saki: I thought that my channels are just local copies of nixpkgs
<Myrl-saki> krey: They are. They're local copies of nixpkgs, which are saved to the /nix/store.
<{^_^}> [nixpkgs] @oxij opened pull request #41088 → Merge master into staging → https://git.io/vhqfq
das_j has joined #nixos
newhoggy has joined #nixos
<das_j> Hey everyone, I have a package build that is currently running make -j1. How can I increase the number of jobs? It's taking really long this way
<das_j> nix.BuildCores doesn't solve it
<Myrl-saki> das_j: --cores
<Myrl-saki> Also, nix.buildCores, IIRC.
<clever> das_j: you also have to set enableParallelBuilding = true; on the derivation
<Myrl-saki> Let me check my configuration.nix.
<Myrl-saki> # nix.buildCores = lib.mkDefault 4;
<Myrl-saki> Don't know why I had that disabled.
* Myrl-saki shrug
<infinisil> > option "nix.buildCores"
<{^_^}> "This option defines the maximum number of concurrent tasks during\none build. It affects, e.g., -j option for make. The default is 1.\nThe special value 0 means that the builder should use all\navail...
<angerman> eacameron, clever: building haskell on x86_64 Linux for deployment, can be done with docker and nix.
<Myrl-saki> Is that an actual Nix function??
<Myrl-saki> infinisil:
<krey> Myrl-saki: but the nixpkgs repo doesn't contain a nixpkgs folder
<das_j> Myrl-saki: --cores actually solved it
<{^_^}> [nix] @grahamc closed pull request #1455 → Create a profile suitable for multi-user installs (for master) → https://git.io/vQi6H
<infinisil> Myrl-saki: Nah
<Myrl-saki> infinisil: Oh. :(
<krey> Myrl-saki: it's added after the fact somehow
<das_j> infinisil: I tried setting it to 0 and 8, but neither helped
<infinisil> das_j: Did you rebuild?
<clever> angerman: but that requires installing docker, while https://github.com/cleverca22/not-os/blob/master/linux-build-slave.nix can give a linux build slave with just a single nix-build command
<infinisil> das_j: It would only apply after the rebuild succeeded
<clever> das_j: did you also set enableParallelBuilding?
<das_j> infinisil: Of course, I forgot about that :/
<krey> oh, nixpkgs just links to .
<das_j> Yes, parallel building is enabled
<krey> but why?
<krey> is it for backward compatibility?
<{^_^}> [nixpkgs] @worldofpeace opened pull request #41089 → solargraph: init at 0.21.1 → https://git.io/vhqfc
<angerman> clever: Right. I don’t know the performance difference between QEMU and docker. I did go down the docker route on macOS once though: https://medium.com/@zw3rk/provisioning-a-nixos-server-from-macos-d36055afc4ad
<clever> angerman: i think gchristensen mentioned yesterday that qemu uses hyperkit when you tell it to use kvm
<clever> id have to check the qemu source to confirm things
<gchristensen> I didn't say that
<das_j> Thank you, infinisil! One proper rebuild fixed it
<angerman> clever: ohh, that would be neat!
<gchristensen> clever: I have my own hyperkit-based macos builder
<clever> gchristensen: ah
<clever> now i want to read the qemu source, lol
<drakonis> angerman, qemu is virtual machines
<drakonis> ah
<drakonis> I AM
<drakonis> bad
logzet has joined #nixos
<drakonis> QEMU should have very little performance hit with proper hardware
<drakonis> docker runs on namespaces and cgroups, which is hardware independent
<gchristensen> docker on mac runs with namespaces and cgroups inside a vm
<drakonis> right
<drakonis> so there's a heavy performance hit there
<drakonis> hmm
<drakonis> a recent macbook should come with a cpu with intel's virtualization extensions
<clever> gchristensen: it looks like qemu can only ever get kvm support via opening /dev/kvm
<drakonis> shouldn't be that bad of a hit
sary has quit [Quit: Lost terminal]
<maurer> Virtualizing is always a hit, even with everything properly configured for the hardware
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<drakonis> on the other hand
<clever> and kvm is configured within kvm_accel_class_init
<drakonis> the lack of kvm on macbook hurts
<drakonis> because xhyve is godawful
<gchristensen> (hyperkit is baseed on xhyve or whatever)
<drakonis> yes
<drakonis> xhyve is based on bhyve
<maurer> So, docker daemons on Mac are normally VMWare based I thought?
<drakonis> bhyve is really really bad
<maurer> Or are we shipping our own daemon?
<clever> which manages instances of AccelClass*
<gchristensen> maurer: they're hyperkit based
<gchristensen> maurer: docker daemonss on macs are running inside a hyperkit vm
<drakonis> its a just enough vm module
<maurer> Ah, OK, nevermind, hyperkit is newer than my OSX knowledge
woodson has quit [Ping timeout: 252 seconds]
<gchristensen> before that, I think the docker on mac was vbox based
<gchristensen> since vmware cost money
<drakonis> vmware costs a pretty penny
<gchristensen> worksnice though
<maurer> err, yeah, sorry, I meant virtualbox
<das_j> Useless fact: if you ever need it, you can execute make with infinite jobs by specifying anything but a number for the amount of jobs
<maurer> It's usually pretty bad
silver_ has joined #nixos
<gchristensen> sounds like a totally on purpose discovery das_j :)
travankor has joined #nixos
athan has quit [Quit: Lost terminal]
<das_j> gchristensen: I'm currently reading a paper about the jobserver...
<Dezgeg> so you didn't find it out the hard way?
<das_j> I wish
<Dezgeg> I hear it's hilarious
<das_j> You can troll your coworkers by specifying l instead of 1
silver has quit [Ping timeout: 240 seconds]
logzet has quit [Ping timeout: 245 seconds]
woodson has joined #nixos
logzet has joined #nixos
jtojnar has joined #nixos
newhoggy has quit [Remote host closed the connection]
<jtojnar> is it possible to convince builtins.fetchGit to have name like regular fetchgit?
<jtojnar> I tried `src = { __toString = builtins.fetchGit /media/projects/foo; name = "source";};`
<jtojnar> but makeDerivation complains "attempt to call something which is not a function but a set,"
<clever> jtojnar: what about just src = builtins.fetchGit /media/projects/foo;
<jtojnar> clever: "attribute 'name' missing"
<clever> jtojnar: can you gist the whole nix expression?
<gchristensen> clever: can fetchGit not take a `name`?
Sonarpulse has joined #nixos
<clever> gchristensen: i dont think it can, and the name is already source
<infinisil> jtojnar: Your error doesn't come from the derivation missing a name?
<infinisil> Because that's what It looks like
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> jtojnar: how about outPath = builtins.fetchGit ...; name = "..."; type = "derivation" }
<clever> nix-repl> "${builtins.fetchGit ./iohk/cardano-develop}"
<clever> "/nix/store/0s7gcniafv8i90p1ph26h7jqh1ycs4ll-source"
<clever> it already has a working outPath on it
<clever> { outPath = "/nix/store/0s7gcniafv8i90p1ph26h7jqh1ycs4ll-source"; rev = "2982847b329505b41d3a038e1ff626a8b874920e"; revCount = 14130; shortRev = "2982847"; }
krey has quit [Quit: Lost terminal]
<jtojnar> clever: (builtins.fetchGit /home/jtojnar/gnome-shell).name
<clever> jtojnar: why are you trying to access its .name?, it doesnt have one
<jtojnar> clever: I want to use it in sourceRoot
<clever> jtojnar: the stdenv will auto-detect the sourceRoot for you
<jtojnar> clever: yes, but I want to use a subdirectory
<clever> just src = builtins.fetchGit /media/projects/foo is enough to set the sourceRoot
<clever> ah, then you want to append to sourceRoot, one min
das_j has quit [Quit: WeeChat 2.0]
<clever> the unpackPhase sets the sourceRoot to the source/ i'm guessing
<clever> so you can postUnpack = ''sourceRoot="$sourceRoot/foo"'';
<jtojnar> yep
<clever> 8077 postUnpack = "sourceRoot+=/cborg; echo source root reset to $sourceRoot";
<clever> and exactly that is all over the source stack2nix generates
<jtojnar> I wanted to make it pure nix
<clever> it cant be, because it depends on whatever directory the unpackPhase created
<clever> and if its a tar file, nix cant know the dir within the tar
<{^_^}> [nixpkgs] @grahamc merged pull request #36344 → lib/options: teach showOptions about funny option names → https://git.io/vAQHM
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/vhqfA
<{^_^}> → 059a71a6 by @grahamc: lib/options: teach showOptions about funny option names
<{^_^}> → 951e9099 by @grahamc: Merge pull request #36344 from grahamc/fancy-option-names
<jtojnar> the gchristensen's solution works great for my purpose
<jtojnar> thanks y'all
<gchristensen> cool!
stepcut has quit [Remote host closed the connection]
<ldlework> "the gchristensen"
<ldlework> indeed.
<gchristensen> ldlework: I've always wanted a solution named after me
stepcut has joined #nixos
<ldlework> dreams coming true in #nixos today
<Myrl-saki> gchristensen: Probably doesn't warrant a patch, but couldn't henp but notice (concatStringsSep ".") (...)
<Myrl-saki> help*
justanotheruser has quit [Ping timeout: 260 seconds]
<{^_^}> [nix] @dtzWill opened pull request #2182 → libstore/download: remove unused function "getTime()" → https://git.io/vhqJU
martingale has quit [Read error: Connection reset by peer]
<gchristensen> Myrl-saki: vs?
<Myrl-saki> gchristensen: concatStringSep "." (...)
<gchristensen> oh, sure
stepcut has quit [Ping timeout: 260 seconds]
martingale has joined #nixos
<{^_^}> [nix] @shlevy pushed commit from @dtzWill to master « libstore/download: remove unused function "getTime()" »: https://git.io/vhqJY
<{^_^}> [nix] @shlevy merged pull request #2182 → libstore/download: remove unused function "getTime()" → https://git.io/vhqJU
<gchristensen> Myrl-saki: ehh good catch, but oh well :)
olto has quit [Ping timeout: 264 seconds]
<Myrl-saki> gchristensen: Hehe. :P
mbrgm has quit [Ping timeout: 260 seconds]
olto has joined #nixos
mbrgm has joined #nixos
newhoggy has joined #nixos
jasongro` has joined #nixos
jtojnar has quit [Quit: jtojnar]
jasongro` has quit [Remote host closed the connection]
jtojnar has joined #nixos
jasongro` has joined #nixos
<{^_^}> [nixpkgs] @ttuegel pushed to staging « qtwebengine: fix build failure due to -Wformat-security »: https://git.io/vhqJo
jasongro` has quit [Remote host closed the connection]
jasongro` has joined #nixos
jasongro` has quit [Remote host closed the connection]
justanotheruser has joined #nixos
newhoggy has quit [Remote host closed the connection]
jasongro` has joined #nixos
jasongrossman has quit [Ping timeout: 264 seconds]
silver_ has quit [Read error: Connection reset by peer]
blonkhart has quit [Ping timeout: 276 seconds]
sary has joined #nixos
blonkhart has joined #nixos
<ldlework> What hosting provider do people recommend for NixOps? AWS basically?
<clever> yeah
<Myrl-saki> VirtualBox, because I don't have money for that. :(
<ldlework> I need a bouncer.
<ldlework> I hear the process for deploying to DO is super slow.
<Myrl-saki> OTOH, I wish I'd known about NixOps back then.
<Myrl-saki> Too many times where I ran a "full" NixOS install.
<ldlework> ?
fragamus has joined #nixos
<Myrl-saki> ldlework: I did my management remotely back then. Only this year did I know you could manage locally with NixOps.
<ldlework> clever: do you know of somewhere I can read about setting up some virutalization on NixOS so that I can practice with NixOps.
<Myrl-saki> By remotely, I mean SSHing to the server, firing up Vi to the configuration.nix, doing nixos-rebuild... yeah.
<Myrl-saki> 0/10, would not recommend.
<clever> ldlework: ive only used nixops with the none and aws backends
<clever> ldlework: none involves managing systems that already run nixos, and nixops doesnt care where the machine exists
marusich has joined #nixos
Sonarpulse has quit [Ping timeout: 252 seconds]
<ldlework> I see.
justanotheruser has quit [Ping timeout: 245 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
asuryawanshi has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
sbdchd has joined #nixos
justanotheruser has joined #nixos
blankhart has joined #nixos
justanotheruser has quit [Ping timeout: 248 seconds]
blonkhart has quit [Ping timeout: 260 seconds]
woodson has quit [Ping timeout: 256 seconds]
woodson has joined #nixos
lassulus_ has joined #nixos
camsbury has joined #nixos
<{^_^}> [nixpkgs] @lopsided98 opened pull request #41091 → uboot: add support for the Raspberry Pi Zero W → https://git.io/vhqTB
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ is now known as lassulus
justanotheruser has joined #nixos
camsbury has quit [Read error: Connection reset by peer]
camsbury has joined #nixos
camsbury has quit [Read error: Connection reset by peer]
nuncanada has quit [Ping timeout: 240 seconds]
<ldlework> clever: I tried AWS but it didn't work out so well. Any idea what I did wrong? https://gist.github.com/dustinlacewell/3bd406f351386982cbdc3c20438ed6a8
<ldlework> I have my access key in ~/.aws/credentials under [nixops]
<noefk> in nixops with the none backend I have trouble getting the nodes.*.config.networking.publicIPv4 attributes - works great in AWS, is it supposed to work?
<ldlework> noefk: maybe you can spot why I can't get going too
justanotheruser has quit [Ping timeout: 245 seconds]
<clever> ldlework: what is the error?
nur0n0 has joined #nixos
<ldlework> there's no error
<ldlework> I showed the output in the gist
<clever> everything looks normal to me
<ldlework> all it did was create a keypair thing
<noefk> idlework: looks fine to me
<ldlework> it didn't create an actual host
<ldlework> with an ip and stuff
<clever> ah
<clever> let me look over it closer
<ldlework> noefk: heh you just reminded me of Westworld "Doesn't look like anything to me."
<noefk> :)
<ldlework> These reproducable delights will have reproducable ends.
<clever> ldlework: change the name of your key
<clever> ldlework: its colliding with the ec2 host
<noefk> I have my own frustrations with nixops
<ldlework> oh I see
bbarker has quit [Quit: Leaving]
iyzsong has joined #nixos
blankhart has quit [Ping timeout: 245 seconds]
<ldlework> Cannot delete this deployment because it still has resources.
<ldlework> ah destroy
<{^_^}> [nixpkgs] @peterhoeg closed pull request #41017 → [WIP] nixos: make several modules not run as root → https://git.io/vhkX7
<ldlework> yay it is working
<clever> nice
<ldlework> I wonder what the NixOps vs Cloudformation coverage differentials are.
<ldlework> Probably substantial
justanotheruser has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ldlework> Waiting for SSH for days.
<ldlework> Wonder if something went wrong.
stepcut has joined #nixos
<clever> ldlework: that can happen if you didnt allow port 22 in the firewall
<ldlework> uh oh
fragamus has joined #nixos
<ldlework> Shutting down for days. XD
hamishmack has joined #nixos
stepcut has quit [Remote host closed the connection]
<ldlework> clever: do people use nixops to build docker containers, create nixos hosts on cloud services, and deploy nixos docker containers to nixos ec2 instances?
stepcut has joined #nixos
<ldlework> Maybe that's what Disnix is for
<clever> ldlework: i would just skip docker entirely
<clever> ldlework: https://xkcd.com/1988/
<ldlework> I like Docker.
<ldlework> clever: I did services.openssh.enable = true;
<ldlework> is that not enough?
<worldofpeace> Anyone know how I can substitute the path of an exectable in the nix store into some source code?
<ldlework> worldofpeace: the substitute and substituteInPlace commands in builder stdenv?
<clever> ldlework: the aws firewall
<ldlework> clever: like, edit the VPC default security group?
<clever> ldlework: it can be configured from nixops, check the nixops manual
<clever> i cant find a simple example
stepcut has quit [Ping timeout: 260 seconds]
<noefk> $ nixops show-option --debug -d devo lpc-dbs-02 networking.interfaces
<noefk> { }
<noefk> why does this come back blank? :(
<drakonis> GOOD NEWS EVERYONE
<drakonis> systemd ate docker
<nur0n0> are you talking about nspawn?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drakonis> no
<drakonis> nspawn is when systemd ate containers
<drakonis> look up portablectl on systemd
<nur0n0> nothing comes up, only a branch on poettering's github
<ldlework> clever: it would be cool if you could somehow use nixops to nixos-install a laptop from usbkey or something.
<clever> ldlework: once you do install to the laptop, you can just set the targetenv to none, and give nixops an IP
<clever> ldlework: ive done exactly that with 2 netbooks and a router
<samueldr> eh, as they say, it brings nothing new except pull together existing stuff into a neater package
<ldlework> well what's the point at that point?
<clever> ldlework: with things like my justdoit script, you can automate it further
<clever> ldlework: you just pick networkboot from f12, and type justdoit
stepcut has joined #nixos
<drakonis> it is useful
stepcut has quit [Remote host closed the connection]
<drakonis> nonetheless
<nur0n0> seems like it could have some interesting use cases though
<nur0n0> like it would inspire some JustWorks services
<ldlework> I think maybe znc ssl support is broken.
<nur0n0> actually, it seems like a better compromise between self-contained binaries and containers than docker. nice
reachingfourpeas has joined #nixos
asuryawanshi has joined #nixos
<ldlework> actually I can't get znc to work at all wtf
<{^_^}> [nixpkgs] @peterhoeg pushed to master « ids: assing openvpn »: https://github.com/NixOS/nixpkgs/compare/951e9099c045...30c3487e0451
<clever> ldlework: is it giving an error?
johnw has joined #nixos
<ldlework> just ambiguous: irc: reading data on socket: error 104 Connection reset by peer
<ldlework> I have services.znc.openFirewall = true;
Myrl-saki has quit [Quit: WeeChat 1.6]
<ldlework> when I enable local->znc ssl I get TLS Handshake Failed irc: error: Error in the pull function.
<ldlework> I have all traffic allowed to the machine in AWS security group.
Myrl-saki has joined #nixos
<reachingfourpeas> Hi, newbie here. Can I get some help with an error message?
<reachingfourpeas> system: "x86_64-linux", multi-user?: no, version: nix-env (Nix) 2.0.2, channels(username): "nixpkgs-18.09pre140731.c29d2fde74d", nixpkgs: /home/username/.nix-defexpr/channels/nixpkgs
<reachingfourpeas> that's the output of the nix-shell command in the channel header
sanscoeur has quit [Remote host closed the connection]
<reachingfourpeas> Here's the output of nix-shell:
<clever> ldlework: and if you try wireshark on that port?
<reachingfourpeas> error: while evaluating the attribute 'shell' at /home/username/clash-playground/release.nix:94:14:
<reachingfourpeas> while evaluating anonymous function at /home/username/clash-playground/nix/nixpkgs.nix:1:1, called from /home/username/clash-playground/release.nix:13:13:
<reachingfourpeas> while evaluating anonymous function at /home/username/clash-playground/nix/fetchnix.nix:7:1, called from /home/username/clash-playground/nix/nixpkgs.nix:8:9:
<reachingfourpeas> while evaluating 'ifThenElse' at /home/username/clash-playground/nix/fetchnix.nix:14:16, called from /home/username/clash-playground/nix/fetchnix.nix:18:1:
<reachingfourpeas> store path mismatch in file downloaded from 'https://github.com/nixos/nixpkgs/archive/4d4340805b301c083c5a49b77eb2a1a391b36548.tar.gz'
sbdchd has quit [Remote host closed the connection]
<reachingfourpeas> Some background: I'm new to Haskell, starting to learn so I can explore Clash for FPGA synthesis. I was suggested to use the clash-playground via Nix, and I ran into this error
iqubic has joined #nixos
<clever> reachingfourpeas: run `nix-prefetch-url --unpack` on that URL, then use that as the unpacked hash
<ldlework> clever: apparently I need to tell weechat about the znc fingerprint, https://wiki.znc.in/Weechat#Getting_the_SSL_fingerprint
<ldlework> Is there anyway to even do that via nixops?
<clever> ldlework: dont think so
lord| has quit [Ping timeout: 268 seconds]
<ldlework> I'd have to somehow set it up so I can ssh in
<ldlework> nixops should provide an escape hatch and drop you in ssh with the keys
<clever> ldlework: nixops ssh
<ldlework> niceee
lord| has joined #nixos
<ldlework> clever: once I'm on the machine how would I figure out where the znc package is storing its configuration
<clever> ldlework: ps aux | grep znc
<clever> then look at its args and the /proc/PID/cwd for its pid
<ldlework> yeah nice
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
johnw has quit [Ping timeout: 252 seconds]
<reachingfourpeas> clever: sorry, but can you clarify what you mean by using the output of `nix-prefetch-url` as the hash?
sir_guy_carleton has joined #nixos
<sir_guy_carleton> hello
<reachingfourpeas> clever: Is the calculated hash the output on the second line after the store path
<reachingfourpeas> ?
<clever> reachingfourpeas: yeah
<reachingfourpeas> clever: so then how do I use that. Again, I'm totally new to Nix
<clever> reachingfourpeas: you need to modify the nixpkgs-src.json, put it into the unpacked hash field
<clever> reachingfourpeas: it sounds like the author of clash-playground didnt test things properly on nix2
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
schoppenhauer has quit [Ping timeout: 240 seconds]
schoppenhauer has joined #nixos
<ldlework> clever: lol the .pem file is empty
* ldlework scratches his head.
<clever> ldlework: sounds like a znc bug then
travankor has quit [Quit: travankor]
furon has quit [Quit: Connection closed for inactivity]
darkmeson[m]1 is now known as darkmeson
maingo has quit [Quit: Connection closed for inactivity]
<ldlework> May 26 03:51:42 wharf kernel: refused connection: IN=eth0 OUT= MAC=02:e1:59:71:4b:e8:02:1c:df:7c:32:0d:08:00 SRC=5.188.9.9 DST=172.31.27.63 LEN=40 TOS=0x08 PREC=0x20 TTL=228>
<ldlework> nm
<ldlework> clever: aha
<ldlework> I see how the nixpkg creates the pem
<ldlework> when I do that on the system
<ldlework> znc --makepem --datadir $PWD
<ldlework> [ .. ] Writing Pem file [/var/lib/znc/znc.pem]...
<ldlework> Segmentation fault
<clever> heh
<clever> gdb time
<ldlework> I've never done that
<clever> gdb --args znc --makepem --datadir $PWD
<clever> then run, and bt
spear2 has quit [Quit: Leaving]
<ldlework> nix-env -i gdb ->
<ldlework> installing 'gdb-8.1'
<ldlework> error: Resource temporarily unavailable
<clever> dmesg, df, df -i
<ldlework> OK I'm in gdb, did run, then bt after it crashed
<ldlework> I guess this is some kind of stacktrace
<ldlework> #0 is malloc
<clever> can you pastebin it?
<ldlework> no idea what I'm looking at
<ldlework> sure
<clever> ldlework: how much ram on this machine?, any swap?
<clever> ldlework: what does dmesg say?
Neo-- has quit [Remote host closed the connection]
Neo-- has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
Ross has quit [Ping timeout: 268 seconds]
MP2E has joined #nixos
Ross has joined #nixos
<ldlework> clever: dmesg doesn't say anything when the segfault happens
<ldlework> oh maybe this
<ldlework> [ 773.971372] znc[2039]: segfault at 10 ip 00007faed56273b8 sp 00007ffd15fd2dd0 error 4 in libc-2.26.so[7faed55a9000+1a9000]
<ldlework> 799M free memory, zero swap
sir_guy_carleton has joined #nixos
<clever> ldlework: how much ram available?, free -m
<ldlework> clever: ~800M
stepcut has joined #nixos
<{^_^}> [nixpkgs] @lopsided98 opened pull request #41093 → spl, zfs: 0.7.8 -> 0.7.9, unstable to latest → https://git.io/vhqI6
<clever> ldlework: not sure then
johnw has joined #nixos
drakonis is now known as Drakonis_
<ldlework> clever: using nixops can I just use a local pem file and write it to the remote host in the right spot?
<clever> ldlework: nixops scp --to
sanscoeur has joined #nixos
Drakonis_ is now known as drakonis
johnw has quit [Ping timeout: 256 seconds]
sanscoeur has quit [Ping timeout: 268 seconds]
<ldlework> this is madness
<ldlework> disabling ssl from my laptop to the znc, and znc to freenode, still can't connect
newhoggy has joined #nixos
<clever> ldlework: anything in the znc logs or journal?
<ldlework> how do I access znc logs?
<ldlework> nothing in journal when the connection fails
<clever> lsof -p <PID>
<clever> see if it has any log files open
<reachingfourpeas> clever: Your advice worked. It also turned out that a bunch of dependencies were broken (not sure of the Nix terminology) so I ran `nix-shell --repair` and it ended up rebuilding everything from GHC up to the package I ultimately wanted to use
<sir_guy_carleton> where do you pass compile flags in nixos? in nixpkgs or in systemPackages?
<ldlework> I just don't get it
<ldlework> I have it running in the foreground
<ldlework> It doesn't say anything when I attempt to connect
<ldlework> clever: how do I tell if znc is listening on the port?
<ldlework> Is there a way I can like check the port from the outside?
stepcut has quit [Remote host closed the connection]
<ldlework> I can't even connect to znc locally from the host using weechat
Rusty1_ has quit [Quit: Konversation terminated!]
iyzsong has quit [Read error: Connection reset by peer]
<ldlework> clever: when I netstat it, all I get is
<ldlework> tcp6 0 0 [::]:commplex-main [::]:* LISTEN 2857/znc
Supersonic has quit [Changing host]
Supersonic has joined #nixos
<clever> ldlework: use -n on netstat
<ldlework> clever: I just generated the config on the server using the interactive znc config thing
<ldlework> and now it works
<ldlework> I think maybe something is screwy with how nix generates the config
drakonis has quit [Remote host closed the connection]
<ldlework> I think the way that Nix generates the password is wrong?
<ldlework> pass is a sha256 hashed valued when I do it interactively
newhoggy has quit [Remote host closed the connection]
woodson has quit [Ping timeout: 245 seconds]
<ldlework> but the nixpkg wants a "<Pass></Pass>" block generated from znc --makepass
<colemickens> How can I get NixOS to "re-do" the efibootmgr bits on an already installed/booted system?
<clever> colemickens: one sec
<colemickens> Strangely, despite the system being booted `sudo efibootmgr` lists no entries, and I had to manually do the boot the first time.
<clever> colemickens: its in the nixos-rebuild man page, --install-bootloader
<colemickens> <3
<colemickens> So I think the entry for systemd-boot was never installed properly, and I need it now to get back to my Arch sytsem.
drakonis has joined #nixos
newhoggy has joined #nixos
<colemickens> Anyway, explanation not needed, clever for the save again. Thank you!
onon has joined #nixos
jD91mZM2 has joined #nixos
* clever heads off to bed
* jD91mZM2 just woke up
<jD91mZM2> timezones suck
<sir_guy_carleton> so i want to add clipboard support for vim
<jD91mZM2> "+y <movement>
<jD91mZM2> assuming xclip is installed
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
newhoggy has quit [Remote host closed the connection]
<sir_guy_carleton> hmm, i didn't install that; i'll try installing it
<sir_guy_carleton> hmm, doesn't work
<jD91mZM2> I don't know, this might be NeoVim specific, but does :CheckHealth exist?
<sir_guy_carleton> vim still has -clipboard -xterm-clipboard in the version section
<jD91mZM2> Oh, and this is inside X right? Not a tty
<sir_guy_carleton> yeah, using a window manager/desktop environment
<jD91mZM2> Does :CheckHealth exist? What does it say in "Clipboard (optional)"?
endformationage has quit [Quit: WeeChat 1.9.1]
<sir_guy_carleton> no; but :version indicates that it wasn't configured without clipboard
<jD91mZM2> Can you reach xterm from the terminal? Is it in $PATH?
<jD91mZM2> xclip*
<sir_guy_carleton> i'm thinking that i need to send the configure flag "--enable-clipboard=yes" to the vim nix expression
<sir_guy_carleton> yeah i can reach it
sanscoeur has joined #nixos
<sir_guy_carleton> xlcip that is
<sir_guy_carleton> xclip
iyzsong has joined #nixos
<jD91mZM2> I'll try installing normal vim and see if I can access my clipboard
<jD91mZM2> You're right, I can't. Seems to be a nixpkgs thing then, like you suspected
sanscoeur has quit [Ping timeout: 252 seconds]
worldofpeace has quit [Ping timeout: 260 seconds]
simukis has joined #nixos
simukis has quit [Remote host closed the connection]
simukis has joined #nixos
<sir_guy_carleton> i think it could be added in "configureFlags"
<jD91mZM2> Sounds good!
<sir_guy_carleton> but i'm how i can alter it at configuration.nix, if i'm even able to do so.
<jD91mZM2> You can do that with an override, although I'd prefer if you send a PR to nixpkgs so others having the same issue gets the fix too :)
<jD91mZM2> overlay*
worldofpeace has joined #nixos
<jD91mZM2> sir_guy_carleton: nixpkgs.overlays = [(super: self: { vim = super.vim.overrideAttrs(old: { configureFlags = ["--clipboard"] ++ old.configureFlags }); })]
worldofpeace has quit [Read error: Connection reset by peer]
darkmeson is now known as meson
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
<sir_guy_carleton> jD91mZM2: i'm get a syntax error here
<sir_guy_carleton> and now i'm getting a infinite recursion error
worldofpeace has joined #nixos
simukis_ has joined #nixos
simukis has quit [Ping timeout: 240 seconds]
simukis_ is now known as simukis
<jD91mZM2> sir_guy_carleton: Okay that's odd
<jD91mZM2> sir_guy_carleton: Try renaming the thing to vim-clipboard or something
jasongro` has quit [Remote host closed the connection]
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @adisbladis pushed 4 commits to master: https://git.io/vhqtr
<{^_^}> → b44eec37 by @adisbladis: firefox-beta-bin: 61.0b6 -> 61.0b8
<{^_^}> → e0997ff7 by @adisbladis: firefox-devedition-bin: 61.0b6 -> 61.0b8
<{^_^}> → 480b9524 by @adisbladis: nodejs-6_x: 6.14.1 -> 6.14.2
jasongrossman has quit [Remote host closed the connection]
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @adisbladis pushed 4 commits to release-18.03: https://git.io/vhqt9
<{^_^}> → c25b6aed by @adisbladis: nodejs-8_x: 8.11.1 -> 8.11.2
<{^_^}> → 75af0553 by @adisbladis: nodejs-6_x: 6.14.1 -> 6.14.2
<{^_^}> → 0da331b3 by @adisbladis: firefox-devedition-bin: 61.0b6 -> 61.0b8
drakonis has quit [Remote host closed the connection]
simukis has quit [Ping timeout: 252 seconds]
robstr has joined #nixos
Khetzal has joined #nixos
semilattice has joined #nixos
seafood has quit [Quit: seafood]
Guest36547 is now known as BombStrike
BombStrike is now known as Guest34599
sanscoeur has joined #nixos
Guest34599 is now known as BombStrike
darkmeson[m] is now known as darkmeson
meson is now known as darkestmeson
sanscoeur has quit [Ping timeout: 252 seconds]
michas_ has joined #nixos
<iqubic> If I'm using Nix 2.0, then is "nix search home-manager" a valid command?
<iqubic> Or is there even a way to search for a package from the command line with nix?
<etu> I'm using nix search
<etu> It's very nice
<etu> :)
<iqubic> And it works for you?
<etu> yes
<iqubic> Interesting.
<iqubic> Well, I don't have "nix search" working.
<iqubic> And I know why that is.
<iqubic> It's because I manually downgraded my nix version by placing "nix.package = pkgs.nix1" into my configuration.nix.
jD91mZM2 has quit [Ping timeout: 240 seconds]
<iqubic> Have the issues with nix 2.0 using way too much memory during a build been fixed yet?
colmeka[m] has joined #nixos
jD91mZM2 has joined #nixos
<jD91mZM2> iqubic: What happens if you pass -u to clear cache?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/30c3487e045 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<iqubic> Not sure, I haven't tried nix 2.0 in a while.
<iqubic> Alright, I just removed the "nix.pkg = pkgs.nix1;" from my configuration.nix, but the rebuild used the prior version of nix. Now I have nothing I need to update. How shall I go about testing nix 2.0?
coot has joined #nixos
leothrix has quit [Quit: ZNC 1.7.0 - https://znc.in]
leothrix has joined #nixos
pie_ has quit [Ping timeout: 245 seconds]
reachingfourpeas has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #41094 → xidlehook: 0.4.6 -> 0.4.7 → https://git.io/vhqm0
pie_ has joined #nixos
slyfox has joined #nixos
slyfox has quit [Client Quit]
GiGa|Laptop has joined #nixos
<{^_^}> [nixpkgs] @bkchr opened pull request #41095 → Qt 5.11 → https://git.io/vhqmg
slyfox has joined #nixos
ilyaigpetrov has joined #nixos
joehh has joined #nixos
sanscoeur has joined #nixos
joehh has quit [Ping timeout: 260 seconds]
ixxie has joined #nixos
joehh has joined #nixos
<jasongrossman> iqubic: Install a game.
sanscoeur has quit [Ping timeout: 264 seconds]
jasongro` has joined #nixos
newhoggy has joined #nixos
asuryawanshi has quit [Ping timeout: 245 seconds]
sigmundv has joined #nixos
marusich has quit [Quit: Leaving]
<GiGa|Laptop> Morning all
myshoe has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
newhoggy_ has joined #nixos
newhogg__ has joined #nixos
newhoggy has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
newhoggy_ has quit [Ping timeout: 240 seconds]
joehh has quit [Ping timeout: 245 seconds]
knupfer has joined #nixos
<jasongrossman> Hi GiGa|Laptop
<GiGa|Laptop> Hi jasongrossman, how're you? I'm off to a castle today
jD91mZM2 has quit [Quit: WeeChat 2.0]
Mateon3 has joined #nixos
knupfer has quit [Remote host closed the connection]
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
fadenb has left #nixos ["User left"]
newhogg__ has quit [Remote host closed the connection]
seafood has joined #nixos
newhoggy has joined #nixos
<Myrl-saki> Uhh
<Myrl-saki> How do I run isGhcjs from my default.nix?
newhoggy has quit [Remote host closed the connection]
<Myrl-saki> I'll just pass isGhcjs as an argument, easier that way. <.<
newhoggy has joined #nixos
sanscoeur has joined #nixos
sigmundv has quit [Ping timeout: 245 seconds]
mahalel_ has joined #nixos
GiGa|Laptop has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @joachifm merged pull request #41087 → tor-browser: 52.7.3esr-7.5-1 -> 52.8.0esr-7.5-1, 52.7.0esr-8.0-1 -> 52.8.0esr-8.0-1 → https://git.io/vhqv2
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/vhqOl
<{^_^}> → d3b0cb37 by SLNOS: tor-browser: 52.7.3esr-7.5-1 -> 52.8.0esr-7.5-1, 52.7.0esr-8.0-1 -> 52.8.0esr-8.0-1
<{^_^}> → 3d1cee05 by @joachifm: Merge pull request #41087 from oxij/pkgs/tor-browsers
<{^_^}> [nixpkgs] @bachp opened pull request #41096 → gitlab-runner: 10.7.0 -> 10.8.0 → https://git.io/vhqO8
mahalel_ has left #nixos [#nixos]
seafood has quit [Quit: seafood]
phreedom has quit [Ping timeout: 250 seconds]
sanscoeur has quit [Ping timeout: 256 seconds]
taktoa has quit [Remote host closed the connection]
newhoggy has quit [Remote host closed the connection]
rihards has joined #nixos
seafood has joined #nixos
<ldlework> Anyone know how to get headphones in a headphone jack to work?
ixxie has quit [Ping timeout: 260 seconds]
iMatejC has quit [Remote host closed the connection]
iMatejC has joined #nixos
orbekk has quit [Quit: WeeChat 2.0]
orbekk has joined #nixos
phreedom has joined #nixos
<ldlework> nm
<Myrl-saki> Help. Nix died.
<Myrl-saki> nix/store/sd3b3c0z7sr5yk7w66av2167knr96gbl-reflex-bulma-0.1.0/lib/ghc-8.0.2/x86_64-linux-ghc-8.0.2/libHSreflex-bulma-0.1.0-tNz5osh2Hp2hMBWLNfBk3-ghc8.0.2.so: undefined reference to `reflexzmbu
<Myrl-saki> lmazm0zi1zi0zmtNzz5osh2Hp2hMBWLNfBk3_ReflexziBulmaziInternal_a_info'
<Myrl-saki> This is so... wow.
<Myrl-saki> I have a feeling that this is a result of ELF pruning.
semilattice has quit [Remote host closed the connection]
<jasongrossman> ldlework: There must be hardware interactions, because headphones work fine on a vanilla NixOS on my Macbook. (My built-in speakers, OTOH, don't work realiably.)
<jasongrossman> ldlework: I assume when you say "in a headphone jack" you mean you're plugging the headphones in using a jack. Do NOT try to get your headphones actually INSIDE the jack.
<ldlework> jasongrossman: I just didn't have them plugged in all the way lol
<ldlework> new laptop, the port is fresh and sturdy
<Myrl-saki> Well
<Myrl-saki> This was a new bug
<Myrl-saki> I did not declare Reflex.Bulma.Internal in my other modules.
newhoggy has joined #nixos
<jasongrossman> ldlework: :-)
simukis has joined #nixos
simukis has quit [Read error: Connection reset by peer]
simukis has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asuryawanshi has joined #nixos
ldlework has quit [Quit: WeeChat 2.0]
taktoa has joined #nixos
simukis has quit [Quit: simukis]
hamishmack has joined #nixos
knupfer has joined #nixos
<{^_^}> [nixpkgs] @voobscout closed pull request #40719 → coreutils: fix tests failing on f2fs → https://git.io/vpx4Y
newhoggy has quit [Remote host closed the connection]
sanscoeur has joined #nixos
thblt has quit [Ping timeout: 248 seconds]
chimay has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
sanscoeur has quit [Ping timeout: 240 seconds]
alex`` has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to master « python-osc: 0.159.0-4 -> 0.162.0-55 »: https://git.io/vhqsY
johanot has joined #nixos
ldlework has joined #nixos
juhe has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #41073 → kubernetes: 1.9.7 -> 1.10.3 → https://git.io/vhLPN
<{^_^}> [nixpkgs] @srhb pushed 7 commits to master: https://git.io/vhqs8
<{^_^}> → 996849ab by @cstrahan: kubernetes: update to 1.10
<{^_^}> → 3e3917bb by @johanot: kubernetes: 1.10.0 -> 1.10.3
<{^_^}> → 55fa98dd by @azazel75: Kuberbetes DNS addon 1.14.4 -> 1.14.10
NightTrain has quit [Quit: Lost terminal]
<juhe> Hello, is it possible to create symlink to a file via configuration somehow? Specifically, I need to symlink diodmount to mount.diod so I can use diod type in fileSystems. I can hack it with security.wrappers, though it's not nice. Does anybody know better solution?
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktopPackages.preview: 1.2.22 -> 1.2.23 »: https://git.io/vhqsu
b has joined #nixos
knupfer has quit [Quit: knupfer]
<sphalerite> juhe: I'd probably create a simple wrapper package containing just the symlink. Something like (pkgs.runCommandNoCC "mount.diod" {} "mkdir -p $out/bin ; ln -s ${pkgs.diod}/bin/diodmount $out/bin/mount.diod") and stick that in systemPackages
<juhe> sphalerite: hm, thanks, I'll try that!
<juhe> sphalerite: works great, thank you!
<sphalerite> \o/
<ldlework> In NixOS is there any way to write a file outside the store at all? With NixOps?
<ldlework> There's no way to use Nixlang to describe how to provision remote data?
<ldlework> A program uses /var/lib/foo as a datastore, there's no way to put something there?
<ldlework> I have to use bash to script `nixops scp`?
MP2E has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @romildo opened pull request #41097 → tint2: 16.2 -> 16.4 → https://git.io/vhqs7
<sphalerite> no, you can't do that in the nix language. That doesn't mean it's impossible to do.
<ldlework> like with an override or something?
thc202 has joined #nixos
<sphalerite> you could make a systemd service to create the directory, for instance: systemd.services.create-var-lib-foo = {serviceConfig.type = "oneshot"; wantedBy = ["multi-user.target"]; script = "${coreutils}/bin/mkdir -p /var/lib/foo";};
<sphalerite> no, you use the hooks that nixos gives you :)
<ldlework> hooks?
<ldlework> preStart?
<ldlework> how do I add some preStart to the znc service already defined?
<ldlework> or will the strings be merged
<sphalerite> systemd.services.znc.preStart = "foo";
<ldlework> if I just declare systemd.services.znc.preStart = ''some bash'';
johanot has quit [Ping timeout: 260 seconds]
<ldlework> I see, that wont overwrite the existing thing, it'll get added
<ldlework> interesting
<sphalerite> yeah that should work I think. You may want to use lib.mkBefore or lib.mkAfter to ensure the right ordering.
newhoggy has joined #nixos
<ldlework> can you show me an example of that?
<sphalerite> systemd.services.znc.preStart = lib.mkBefore "hello"; # run hello before the predefined stuff
<ldlework> Thanks!
aarvar has quit [Ping timeout: 240 seconds]
smallville7123 has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
newhoggy has quit [Remote host closed the connection]
johanot has joined #nixos
ldlework has quit [Quit: WeeChat 2.0]
newhoggy has joined #nixos
periklis has joined #nixos
newhoggy has quit [Ping timeout: 240 seconds]
juhe has quit [Quit: Leaving.]
ldlework has joined #nixos
joehh has joined #nixos
smallville7123 has quit [Quit: rosa]
sanscoeur has joined #nixos
sanscoeur has quit [Ping timeout: 265 seconds]
newhoggy has joined #nixos
periklis has quit [Ping timeout: 245 seconds]
chimay has quit [Ping timeout: 260 seconds]
smallville7123 has joined #nixos
chimay has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/5f2da7f837e (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
johanot has quit [Quit: Leaving.]
johanot has joined #nixos
ldlework has quit [Quit: ZNC 1.6.5 - http://znc.in]
Acou_Bass has joined #nixos
Acou_Bass has quit [Read error: Connection reset by peer]
ldlework has joined #nixos
Acou_Bass has joined #nixos
b has quit [Ping timeout: 248 seconds]
<ldlework> why doesn't
<ldlework> services.znc.confOptions.networks."${network}" = {
<ldlework> work
<ldlework> nm
ldlework has quit [Client Quit]
ldlework has joined #nixos
jD91mZM2 has joined #nixos
Piece_Maker has joined #nixos
Acou_Bass has quit [Ping timeout: 256 seconds]
Piece_Maker is now known as Acou_Bass
<ldlework> How do I figure out where the systemd unit definitions are?
ldlework has quit [Client Quit]
<Myrl-saki> Uhh
<Myrl-saki> How do I have an overlay when I already have a nixpkgs?
newhoggy has quit [Remote host closed the connection]
<Myrl-saki> `(import <nixpkgs> {})` How would I add an overlay *without* putting it in the {}
newhoggy has joined #nixos
<sphalerite> by putting it in ~/.config/nixpkgs/overlays
<Myrl-saki> sphalerite: It's a custom overlay for a package.
<Myrl-saki> Apparently, one way is to reimport it using `import pkgs.path`
<sphalerite> yes, although that won't affect pkgs.
<{^_^}> [nixpkgs] @mkaito opened pull request #41098 → oauth2_proxy: Handle attributes being derivations → https://git.io/vhqZw
<Myrl-saki> sphalerite: Oh, I don't mean the global pkgs.
<sphalerite> righ
<sphalerite> Hm, ssh has support for multiple "streams" within a single session right? I want to write a script that does multiple things on a remote host via SSH but only needs to authenticate once
<sphalerite> (and these multiple things need to be connected to different local commands, so I can't just do ssh foo 'a; b; c'
<Myrl-saki> a &; b &; c
<Myrl-saki> :D
newhoggy has quit [Ping timeout: 264 seconds]
<Myrl-saki> Not sure if that works, tbh
<sphalerite> that doesn't help pipe in different local commands to a and b.
<sphalerite> It would work as you'd expect though, except that putting both & and ; is a syntax error (you'd want a & b & c )
<Myrl-saki> Yay
<Dezgeg> I believe you specify the ControlPath or something
<sphalerite> ooh that looks like exactly what I want. Thanks!
Acou_Bass has quit [Ping timeout: 252 seconds]
<Myrl-saki> Well
<Myrl-saki> Nginx is better than I expected.
* Myrl-saki shrugs
ldlework has joined #nixos
<jasongrossman> In what way?
<Myrl-saki> Usability.
<Myrl-saki> I've always been cautious of using... behemoth softwares.
<jasongrossman> OK cool.
<sphalerite> well considering that apache is what it replaces… :p
<Myrl-saki> sphalerite: I always just went for $HASKELL_LIBRARY for anything.
<Myrl-saki> sphalerite: Then after getting exposed to nginx for a non-Haskell thing.
<Myrl-saki> twas okay
<Myrl-saki> sphalerite: And now I'm using nginx for the front end of my Haksell thing.
<sphalerite> Is there a way to get the registration info for a path's closure imperatively?
<symphorien> what does mean registration info ?
<Myrl-saki> Okay, I take that back. Who can help me with nginx? lmao
<Myrl-saki> Basically
<sphalerite> I want to do something like make-system-tarball, but instead just copy the stuff over to a target host via SSH without the overhead of a big tarball each time
<Myrl-saki> localhost/static/foo -> /nix/store/something/static/foo
<Myrl-saki> I want to make it /nix/store/something/foo
<sphalerite> symphorien: the thing that goes in /nix-path-registration in system tarballs
<mkaito> what tools exist to debug nix expressions aside from builtins.trace? there's no debugger, not even sure one can write unit tests, and trace is the closest thing to printf debugging. how do people dig into errors? --show-trace I've found less than useful too.
<Myrl-saki> I used the root directive, which clearly wasn't the right thing.
<symphorien> hum I don't even know what this is
<sphalerite> mkaito: the REPL. That's about it AFAIK.
<sphalerite> it's an unfortunate situation.
thblt has joined #nixos
<Myrl-saki> Oh, apparently I want to use alias, not root.
<symphorien> mkaito: https://github.com/NixOS/nixpkgs/blob/master/lib/debug.nix has better functions than trace
<mkaito> Nix is awesome, except for the part where there's almost no documentation and any debugging is black magic. hah!
<jasongrossman> sphalerite: Right, apache is not good. I've been using lighttpd.
<Myrl-saki> Yay, works.
<sphalerite> mkaito: oh there's also the various kinds of debug output that you get by spamming -v
<mkaito> if those are anything like --show-trace, I kind of doubt that'd be useful :P
Turion has joined #nixos
sanscoeur has joined #nixos
<sphalerite> symphorien: it's a serialisation of the nix database info for the paths in the tarball, which can be loaded into a fresh database using nix-store --load-db
ldlework has quit [Quit: ZNC 1.6.5 - http://znc.in]
<symphorien> oh I see thanks
<sphalerite> There's nix-store --dump-db, but I don't want to dump the entire databse, only the closure of the paths I'm copying :/
Acou_Bass has joined #nixos
<Dezgeg> I would just nix-build -E an inline expresson using pkgs.pathInfo
ldlework has joined #nixos
<Dezgeg> er, that wasn't the name, whatever it is
ldlework has quit [Client Quit]
<Dezgeg> pkgs.closureInfo
ldlework has joined #nixos
<Myrl-saki> Shi/join #nginx
<Myrl-saki> Whoops
sanscoeur has quit [Ping timeout: 264 seconds]
<sphalerite> Dezgeg: aah that looks like what I want, thanks!
wangoe has quit [Quit: WeeChat 1.4]
ldlework has quit [Client Quit]
ldlework has joined #nixos
Acou_Bass has quit [Read error: Connection reset by peer]
Acou_Bass has joined #nixos
jasongrossman has quit [Remote host closed the connection]
jasongro` has quit [Remote host closed the connection]
<sphalerite> Myrl-saki: lol nice
alex`` has quit [Ping timeout: 260 seconds]
<jD91mZM2> Why doesn't `man memset` and other C stuff work on NixOS btw?
<jD91mZM2> Is the glibc package not including the man pages? If so, why not?
alex`` has joined #nixos
rihards has quit [Quit: rihards]
<sphalerite> jD91mZM2: nix-env -iA nixos.man-pages
<sphalerite> err, manpages
jasongrossman has joined #nixos
jasongrossman has quit [Remote host closed the connection]
<Myrl-saki> Anyone else geting
<Myrl-saki> builder for '/nix/store/mr9516zcczsc9p42hmd48hjp25v2x7lk-shell.drv' failed to produce output path '/nix/store/s6ygzcvzjc5q947mzc7pb1amd3zcdhsw-shell'
<Myrl-saki> I just use nix-build $(nix-instantiate ...)
<Myrl-saki> and it works
<jD91mZM2> sphalerite: Ooooo nice, thanks! (although ew no ad hoc installs :P)
seafood has quit [Quit: seafood]
averell has quit [Quit: .]
<sphalerite> Myrl-saki: typically shell derivations aren't meant to be built
obadz- has joined #nixos
<Myrl-saki> sphalerite: That's my point. How am I getting shell derivatiosn?
<sphalerite> what are you instantiating?
<Myrl-saki> cgit.
obadz has quit [Ping timeout: 248 seconds]
obadz- is now known as obadz
<Myrl-saki> FWIW
<Myrl-saki> `nix-build nixpkgs.cgit` seems to work.
<Myrl-saki> So does
<Myrl-saki> myrl@myrl:~$ nix-build '<nixpkgs>' -A cgit
<Myrl-saki> It's just the `nix-build -p cgit` that doesn't.
averell has joined #nixos
Turion has quit [Quit: Leaving.]
<Myrl-saki> Also, I mean `nix build nixpkgs.cgit`
coot has quit [Quit: coot]
<sphalerite> weird. It should print the .drv file that it tried to build on failure, right? Maybe compare that with nix-instantiate '<nixpkgs>' -A cgit?
<Myrl-saki> sphalerite: It tried to build '/nix/store/mr9516zcczsc9p42hmd48hjp25v2x7lk-shell.drv'
<Myrl-saki> I think that's actually the last thing it tries to build.
<sphalerite> huh.
<Myrl-saki> Yep.
<Myrl-saki> I don't get how I'm getting shell.drv from `nix-build -p cgit`
<Dezgeg> nix-build -p? is that a real flag?
<sphalerite> oh wait you're doing nix-build -p cgit?
<Myrl-saki> shell.drv doesn't appear at all for anything. else.
<Myrl-saki> sphalerite: Yeah.
<Myrl-saki> Uhhh, am I stupid?
<sphalerite> yeah that won't work, I'm guessing that's using the -p flag for nix-shell
<sphalerite> didn't realise it would do that rather than just breaking more obviously :p
<Myrl-saki> OHH
<sphalerite> you want nix-build '<nixpkgs>' -A cgit or nix build nixpkgs.cgit
<Myrl-saki> I think I know why it works lmao
<Myrl-saki> So if I nix-shell cgit, then nix-build cgit...
<Myrl-saki> Hmmm, that doesn't work either.
cinimod_ has joined #nixos
<Myrl-saki> I wonder why I sometimes have success using nix-build -p foo
* Myrl-saki shrugs
<Myrl-saki> Thanks. Can't believe I've been doing that for literally months before realizing what's wrong. Huh.
<sphalerite> lol
<cinimod_> I don't think my `patched-matrix-sundials` is picking up the jailbroken `diagrams-rasterific`
tzemanovic has joined #nixos
abcrawf has quit [Remote host closed the connection]
<cinimod_> What do I have to do to get my patched packages to pick up the jailbroken versions?
phdoerfler has joined #nixos
seanparsons has quit [Ping timeout: 256 seconds]
<phdoerfler> hi! What video chat programs are available for nixos?
tzemanovic has quit [Read error: No route to host]
tzemanov_ has joined #nixos
<sphalerite> phdoerfler: personally I use jitsi meet in firefox
abcrawf has joined #nixos
smallville7123 has quit [Remote host closed the connection]
<sphalerite> Dezgeg: SSH's ControlPath is amazing, thanks so much!
<phdoerfler> sphalerite: ok I'll give this a shot
<phdoerfler> we tried hangouts in the browser but for some reason the other person (who is on nixos) can't hear me
Neo-- has quit [Ping timeout: 264 seconds]
<phdoerfler> my mic is working and I tried 3 different devices and the speakers in hangouts of the nixos person are also working (they play the test sound in hangouts just fine) and I am at the end of my wisdom here ^^
<phdoerfler> so maybe jitsi will work
phdoerfler1 has joined #nixos
seanparsons has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/5f2da7f837e (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
sigmundv has joined #nixos
phdoerfler1 has quit [Quit: Leaving.]
<nyanloutre[m]> Peter Hoeg: Hello, I did a correction you suggested on a pull request : https://github.com/NixOS/nixpkgs/pull/41057
sanscoeur has joined #nixos
<mpickering> cinimod_: pkgs.haskellPackages is the problem
<mpickering> turn patched-hmatrix-sundials into a function which takes a package set as an argument and pass in "super"
<cinimod_> mpickering: I think I fixed it like this
<cinimod_> `patched-hmatrix-sundials = myHaskellPackages.hmatrix-sundials.overrideAttrs...`
<cinimod_> But now I have a different problem
<cinimod_> mpickering: thanks btw
sanscoeur has quit [Ping timeout: 245 seconds]
<cinimod_> I have tried putting sundials pretty much everywhere in my shell.nix file
<cinimod_> And sundials certainly exists
<cinimod_> Oh is this one of those MACos things
<cinimod_> ?
seanparsons has quit [Ping timeout: 245 seconds]
<mpickering> I don't know how Setup searches for C libraries really
<mpickering> What is failing to build exactly?
<cinimod_> `hmatrix-sundials` fails to build
<mpickering> does it work before you patched it?
<mpickering> The postgresql server doesn't work for me. After I have enabled it, when switching, the error is - FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
<cinimod_> > does it work before you patched it?
<{^_^}> error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):42:1
<cinimod_> No
acarrico has quit [Ping timeout: 248 seconds]
<cinimod_> But if I build hmatrix-sundials using `stack --nix` then it does build
johanot has quit [Quit: Leaving.]
muffins_Madcat has joined #nixos
<muffins_Madcat> hello nixers!
<mpickering> so where is hmatrix-sundials defined?
Rusty1_ has joined #nixos
<muffins_Madcat> i got a few questions about how y'all do video chats/conferences, like what do y'all prefer to use
<mpickering> I rebooted and now it works *shrugs*
johnw has joined #nixos
<cinimod_> mpickering or do you mean something else?
MarcWago has joined #nixos
<mpickering> It's a hackage package?
<cinimod_> Oh sorry - yes
<epta> how to install 'ghcid' haskell package using nix? `nix-env -qaP '*' | grep -i ghcid` returns nothing for me
<epta> however nixpkgs-unstable channel is added
<mpickering> cinimod_: There is no pkgconfig-depends field in the cabal file
muffins_Madcat has quit [Remote host closed the connection]
muffins_Madcat has joined #nixos
<cinimod_> But it does install if you use `stack --nix install`
<mpickering> Probably a system impurity?
<mpickering> I don't see hmatrix-sundials in the hackage-packages.nix file so do you define that locally?
<cinimod_> That's in a moderately up to date copy of nixpkgs
<mpickering> What is sundials_arkode compared to sundials
<mpickering> all the dylibs are in the "sundials" package
<cinimod_> I think so
<cinimod_> I just noticed that the equivalent for gsl (rather than sundials) has ` }) {inherit (pkgs) gsl;};`
nuncanada has joined #nixos
<cinimod_> I don't think that is relevant
johnw has quit [Ping timeout: 240 seconds]
<cinimod_> But it does have ` libraryPkgconfigDepends = [ gsl ];`
<cinimod_> So do I need ` libraryPkgconfigDepends = [ sundials ];`?
<mpickering> I would guess so
<mpickering> worth a try anyway
<cinimod_> Can I add it to my shell.nix somehow?
<cinimod_> Or shall I modify `package-packages.nix`?
<mpickering> addPkgConfigDepend
<cinimod_> Thanks :)
muffins_Madcat has quit [Remote host closed the connection]
muffins_Madcat has joined #nixos
aexoxea has joined #nixos
<epta> speaking about my ghcid question - it seems that nix-env is unaware of all the haskell packages, that's why there is no ghcid
<epta> how to add them?
<cinimod_> error: undefined variable ‘addPkgconfigDepend` ?
phdoerfler has quit [Ping timeout: 260 seconds]
<mpickering> "haskellPackages.ghcid"
jperras has joined #nixos
<mpickering> "pkgs.haskell.lib.addPkgConfigDepend"
<cinimod_> pkgs.haskellLib.addPkgconfigDepend
<cinimod_> But that didn't work anyway :(
<epta> >> nix-env -i haskellPackages.ghcid
<epta> error: selector 'haskellPackages.ghcid' matches no derivations
muffins_Madcat_ has joined #nixos
muffins_Madcat has quit [Ping timeout: 265 seconds]
<cinimod_> Grrr - I am making a dogs dinner of this
<symphorien> !-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<symphorien> epta: ^
muffins_Madcat_ has quit [Remote host closed the connection]
<cinimod_> > turn patched-hmatrix-sundials into a function which takes a package set as an argument and pass in "super"
<{^_^}> error: syntax error, unexpected IN, expecting ')', at (string):41:97
MarcWago has quit [Remote host closed the connection]
muffins_Madcat_ has joined #nixos
<cinimod_> I have to give up for now
tzemanov_ has quit [Remote host closed the connection]
<cinimod_> I have visitors in an hour and I need to tidy the house
<epta> symphorien: {^_^}: thanks!
Acou_Bass has quit [Ping timeout: 268 seconds]
muffins__Madcat_ has joined #nixos
iyzsong has quit [Ping timeout: 260 seconds]
muffins_Madcat_ has quit [Read error: Connection reset by peer]
ThatDocsLady_ has joined #nixos
muffins_Madcat_ has joined #nixos
nuncanada has quit [Quit: Leaving]
muffins__Madcat_ has quit [Ping timeout: 245 seconds]
iyzsong has joined #nixos
muffins_Madcat_ has quit [Remote host closed the connection]
seanparsons has joined #nixos
muffins_Madcat_ has joined #nixos
<sphalerite> Is there a way I can set a channel to a specific version of nixpkgs?
<sphalerite> channel in the nix-channel sense
<jD91mZM2> sphalerite: Have you tried setting it to the github tarball for that commit/tag?
<tazjin> sphalerite: there are multiple ways of pinning package sets, I like doing it fully inside of the nix config and ignoring `nix-channel`
<sphalerite> I think there's a bit of metadata included in nixexprs.tar.xz I think
<sphalerite> tazjin: I know, but this is specifically for nix-channel :/
muffins__Madcat_ has joined #nixos
<tazjin> then probably what jD91mZM2 said, `nix-channel --add <some-git-commit-tarball-url> nixos` for example
civodul has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41097 → tint2: 16.2 -> 16.4 → https://git.io/vhqs7
<{^_^}> [nixpkgs] @xeji pushed commit from @romildo to master « tint2: 16.2 -> 16.4 (#41097) »: https://git.io/vhqCj
seafood has joined #nixos
muffins_Madcat_ has quit [Ping timeout: 248 seconds]
muffins__Madcat_ has quit [Remote host closed the connection]
muffins__Madcat_ has joined #nixos
greymalkin has quit [Ping timeout: 240 seconds]
sanscoeur has joined #nixos
<nh2[m]> if two modules assign an option of type list, the lists are usually concatenated. Can I use one of the mkForce* style modifiers to ensure the concatenation doesn't happen?
stepcut has joined #nixos
<mpickering> anyone have an example of deploying a web server with a postgresql db to the same server using nixops?
karlguy has joined #nixos
<nh2[m]> in my case I want to do that to totally override `networking.nameservers`, no matter what other modules set in there.
* nh2[m] sent a long message: nh2[m]_2018-05-26_13:30:21.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/qLcehqMqlCKFbsxPeeJcVEVh>
<srhb> nh2[m]: iirc the merging takes place only of values with the same priority
<srhb> nh2[m]: Meaning two mkForces (same priority) would merge, but values with lower priority would be discarded.
<nh2[m]> srhb: ah, thanks, I'll try that out then!
<srhb> That's just off the top of my head though, been a while since I dove into the module code.
sanscoeur has quit [Ping timeout: 240 seconds]
Acou_Bass has joined #nixos
muffins__Madcat_ has quit [Ping timeout: 240 seconds]
muffins_Madcat has joined #nixos
fendor has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41037 → tex-gyre: ~2.003 → 2.501 → https://git.io/vhI29
<{^_^}> [nixpkgs] @xeji pushed commit from @jtojnar to master « tex-gyre: ~2.003 → 2.501 (#41037) »: https://git.io/vhqWX
<{^_^}> [nixpkgs] @xeji merged pull request #41096 → gitlab-runner: 10.7.0 -> 10.8.0 → https://git.io/vhqO8
<{^_^}> [nixpkgs] @xeji pushed commit from @bachp to master « gitlab-runner: 10.7.0 -> 10.8.0 (#41096) »: https://git.io/vhqWD
<Myrl-saki> Ugh
muffins_Madcat has quit [Remote host closed the connection]
<Myrl-saki> clever: I lost my nix under debian hacky fun. :(
<{^_^}> [nixpkgs] @xeji merged pull request #41051 → slack: 3.1.0 -> 3.2.0-beta2 → https://git.io/vhINk
<{^_^}> [nixpkgs] @xeji pushed commit from @benley to master « slack: 3.1.0 -> 3.2.0-beta2 (#41051) »: https://git.io/vhqWQ
<Myrl-saki> sad day
<Myrl-saki> really sad day
MinceR has quit [Ping timeout: 255 seconds]
<sphalerite> Myrl-saki: how? Why?
MinceR has joined #nixos
ThatDocsLady_ has quit [Quit: Leaving]
seafood has quit [Quit: seafood]
gspia has quit [Ping timeout: 255 seconds]
krey has joined #nixos
aexoxea has quit [Quit: Goodbye!]
johnw has joined #nixos
Lears has quit [Remote host closed the connection]
Lears has joined #nixos
andrewmiller1 has joined #nixos
newhoggy has joined #nixos
Piece_Maker has joined #nixos
Acou_Bass has quit [Ping timeout: 260 seconds]
Piece_Maker is now known as Acou_Bass
Acou_Bass has quit [Client Quit]
johnw has quit [Ping timeout: 248 seconds]
<andrewmiller1> is there a way to set stdenv = stdenv_32bit for one bash command?
Acou_Bass has joined #nixos
johnw has joined #nixos
<sphalerite> andrewmiller1: maybe passing `--argstr system i686-linux` to your nix command will do what you want?
<elvishjerricco> How can `builtins.tryEval "${foo}"` possibly throw?
<{^_^}> [nixpkgs] @xeji merged pull request #40965 → jgmenu: 0.8.2 -> 0.9 → https://git.io/vhUk5
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « jgmenu: 0.8.2 -> 0.9 (#40965) »: https://git.io/vhqlB
<sphalerite> elvishjerricco: I think tryEval only catches throws, not errors
<elvishjerricco> sphalerite: Oh
<elvishjerricco> that's frustrating
johnw has quit [Ping timeout: 264 seconds]
<elvishjerricco> Is there something for errors?
<sphalerite> I don't think so
<elvishjerricco> :/
stepcut has quit [Remote host closed the connection]
<sphalerite> yeah it sucks…
gspia has joined #nixos
__monty__ has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
stepcut has joined #nixos
ennui has joined #nixos
<ennui> how can i get 'nix build' to show the resulting output path?
<sphalerite> I don't think you can unfortunately. (nix build && readlink result) is your best bet I think
<elvishjerricco> ennui: You can't
acarrico has joined #nixos
<ennui> thanks a lot, i was sure there whould be an issue, but couldn't find it
stepcut has quit [Remote host closed the connection]
<ryantm> You can still use nix-build
<elvishjerricco> sphalerite: Do you know the reasoning behind being unable to catch non-throws with tryEval?
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #40963 → pan: 0.144 -> 0.145 → https://git.io/vhUf3
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « pan: 0.144 -> 0.145 (#40963) »: https://git.io/vhqld
<sphalerite> not sure there is one.
acarrico has quit [Ping timeout: 240 seconds]
stepcut has joined #nixos
jbgi has joined #nixos
johanot has joined #nixos
<MarcWeber> I tried setting seutid on a shell script chowning as root -> but running does not change uid. Does anybody know why? Is my understanding of setuid wrong?
<MarcWeber> Or do I need wrapper executables?
fendor has quit [Ping timeout: 245 seconds]
<symphorien> setuid does not work on scripts with shebang, I think
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<jasongrossman> Yeah, there are general limits on setuid - enforced by the kernel, I guess? A web search should find you much more about this.
<sphalerite> yep
<jbgi> what is status of linux_latest in stable channels? Is it allowed to be updated to a newer version of the kernel after the nixos stable release?
<sphalerite> jbgi: yes. Kernels that are neither the default version nor _latest are even removed
<jasongrossman> jbgi: A newer version, yes. Or do you mean a newer major version or something?
<sphalerite> when their upstream support ends
<jbgi> jasongrossman: yes, updated to a newer major version. The issue is that currently linux_lastest in 18.03 point to an unmaintained kernel (5.15).
<jbgi> *4.15
<jasongrossman> I doubt that there's a policy about it. You'd have to ask who's updating them.
sanscoeur has joined #nixos
jasongrossman is now known as JasonGrossman
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
<MarcWeber> ls
sanscoeur has quit [Ping timeout: 265 seconds]
newhoggy has quit [Remote host closed the connection]
thblt has quit [Remote host closed the connection]
coot has joined #nixos
thblt has joined #nixos
acarrico has joined #nixos
sigmundv has quit [Ping timeout: 260 seconds]
<jbgi> opened https://github.com/NixOS/nixpkgs/issues/41100 to discuss linux_latest update policy
jtojnar has quit [Read error: Connection reset by peer]
jtojnar_ has joined #nixos
jtojnar_ is now known as jtojnar
johanot has quit [Quit: Leaving.]
ixxie has joined #nixos
andrewmiller1 has quit [Ping timeout: 260 seconds]
<gchristensen> interestin, jbgi
asuryawanshi has quit [Ping timeout: 252 seconds]
stepcut has quit [Remote host closed the connection]
srl295 has joined #nixos
lostman has joined #nixos
<Myrl-saki> [2/41/290 copied (69.8/1008.9 MiB)] copying path '/nix/store/ilha1h5gr3hc9nhbjig05n9iz1iv7wgd-network-2.6.3.2' to 'ssh://me@adrianpar.vin'
<Myrl-saki> 1000 MiB
<Myrl-saki> On my 1 Mbps connection.
<ixxie> Are there any terminal-based IRC clients that have a NixOS module?
<sphalerite> Myrl-saki: hf
<Myrl-saki> Prelude> 1008.9*8/60/60
<Myrl-saki> 2.242
<Myrl-saki> 2 hours. Very nice.
<infinisil> > 1008.9 * 8 / 60 / 60
<{^_^}> value is a float while an integer was expected, at (string):41:1
<Myrl-saki> lmao
<Myrl-saki> > 1009 * 8 / 60 / 60
<{^_^}> 2
<Myrl-saki> Uhhh... I'm surprised Nix has division support.
<lostman> I'm trying to build a tiny docker image with nix that includes some derivations. However, for some reason gcc is included in the image. I tracked down the derivation that causes that but I'm not sure why nix pulls it in. gcc is only required to build the derivation. Any ideas how can I investigate this?
<infinisil> Huh, but why that error
<sphalerite> Myrl-saki: units\n 1008.9MiB/1Mbps\n hour\n => 2.3509074
<Myrl-saki> How long before someone makes an IEEE-754 Nix extension?
<Myrl-saki> s/extension/library/
<sphalerite> lostman: you can use nix why-depends to track it down
<Myrl-saki> > 0.5 + 0.5
<{^_^}> 1
<Myrl-saki> huh
<infinisil> Nix 2.0 has floating point numbers :2
<Myrl-saki> Wtf. This is actually kind of funny.
<Myrl-saki> infinisil: Nix doesn't allow division of floats.
TrentP has quit [Quit: ZNC - http://znc.in]
<infinisil> > 2.0 / 3
<{^_^}> 0.666667
TrentP has joined #nixos
<Myrl-saki> HUH
<lostman> sphalerite: let me have a look at the docs
<infinisil> I don't understand the error either
<Myrl-saki> > 1008.9 * 8 / 60.0 / 60.0
<{^_^}> 2.242
<ixxie> gchristensen: are you still happy with Kitty?
<Myrl-saki> > 1 == (0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1)
<{^_^}> false
<Myrl-saki> Glad to know we have actual IEEE-754 support. :D
<infinisil> Let's go to #bottest to test it
<Myrl-saki> infwhat if i dun wanna uwu
<Myrl-saki> [1/67/290 copied (98.6/1180.5 MiB)] copying path '/nix/store/pfq1hgazvxjdqh6dlcbh0jid9z8y1zjm-async-2.1.1.1-doc' to 'ssh://me@adrianpar.vin'
<Myrl-saki> it's... i's continually increasing.
<Myrl-saki> I'll just nix-build it..
<{^_^}> [nixpkgs] @dezgeg pushed to staging « mesa: Enable virgl driver »: https://git.io/vhqBu
<jD91mZM2> > 0.1 + 0.2
<{^_^}> 0.3
<jD91mZM2> oh no
<jD91mZM2> its too smart
<Myrl-saki> lmao
<sphalerite> Myrl-saki: that won't change it, just report the progress more strangely :p
<infinisil> But what is this:
<infinisil> > (1.0 * 1) / 1
<{^_^}> value is a float while an integer was expected, at (string):41:1
smallville7123 has joined #nixos
<infinisil> > 1.0 / 1
<{^_^}> 1
<infinisil> ???
<Myrl-saki> sphalerite: I mean copy the drv then nix-build it.
<{^_^}> [nixpkgs] @adisbladis merged pull request #41056 → nanomsg: 1.1.2 -> 1.1.3 → https://git.io/vhLJL
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/vhqBa
<{^_^}> → 10c973ef by R. RyanTM: nanomsg: 1.1.2 -> 1.1.3
<{^_^}> → c6677c40 by @adisbladis: Merge pull request #41056 from r-ryantm/auto-update/nanomsg
<Myrl-saki> infinisil: It can type-infer direct neighbors.
<sphalerite> Myrl-saki: `nix build --store ssh-ng://me@adrianpar.vin` :)
<Myrl-saki> huh
<Myrl-saki> Let me try.
<infinisil> Myrl-saki: How does that explain it?
<jD91mZM2> > 1.0 * 1
<{^_^}> 1
<Myrl-saki> (1.0 * 1) / 2 # 1 is "inferred" to be a float, (1.0 * 1) is of unnknown type, therefore 2 is an int.
<jD91mZM2> > 1.1 - 1.0
<{^_^}> 0.1
<jD91mZM2> > 1.1 - 0.1
<{^_^}> 1
<jD91mZM2> ok so it never prints .0
<jD91mZM2> I thought we could figure out the types that way
Maxdaman1us has joined #nixos
<ixxie> so, as mentioned in https://gist.github.com/edolstra/29ce9d8ea399b703a7023073b0dbc00d - we don't exactly have optimal facilities for managing plugins in Nixpkgs
<ixxie> but I wonder if anybody can point me to some workarounds?
<ixxie> I suppose stuff like pythonWithPackages could be a model?
Maxdamantus has quit [Ping timeout: 264 seconds]
<infinisil> Myrl-saki: So in other words, the few types nix actually has have pretty bad inference rules
<clacke[m]> I'm trying to set up a substituter
<clacke[m]> I have generated the private key on the server, fed it to nix-serve.
<clacke[m]> and I'm relying on the server locally, and I've fed the public key into nix.conf
<Myrl-saki> infinisil: I'm guessing so. I'm just looking at the patterns, not at the actual code or anything formal.
<clacke[m]> But I get `warning: substituter 'https://hydra.fractalide.com' does not have a valid signature for path '/nix/store/wzgr69i39bv4cdcb7jdydnijzhr8nvmj-typed-racket-more'
<clacke[m]> `.
jtojnar has quit [Quit: jtojnar]
<clacke[m]> So it's at least talking to the server, so it knows it has `typed-racket-more`.
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to release-18.03 « signal-desktop-beta: Mark as broken (really outdated) »: https://git.io/vhqBD
jbgi has quit [Quit: WeeChat 2.1]
<clacke[m]> Where can i sniff to find out if the package on the server carries any signature, and what signature?
<sphalerite> clacke[m]: nix path-info --sigs
camsbury has joined #nixos
<sphalerite> I'm trying to get a script working that will replace ubuntu on a scaleway server iwth nixos. It's working mostly, but I want to preserve the original SSH host keys, and ubuntu's sshd seems to default to sending ecdsa-sha2-nistp256 keys while nixos prefers ed25519, so after the OS replacement the client thinks something bad is going on. I've tried adding `HostKeyAlgorithms ecdsa-sha2-nistp256` to the
<sphalerite> sshd_config, but that hasn't helped, now it doesn't offer *any* host key algorithms to the client. Any ideas?
freeman42x]NixOS has joined #nixos
<infinisil> I recently added services.openssh.kexAlgorithms to add additional supported algs to the server
<lostman> sphalerite: trying to use why-depends... seems a bit tricky. tried why-depends mypkg pkgs.gcc7 but that says mypkg doesn't depend on gcc7. how can I just list all dependencies?
<sphalerite> infinisil: not key exchange, host key
<infinisil> Oh
sanscoeur has joined #nixos
<sphalerite> lostman: try with pkgs.gcc7.cc, or just the store path to the gcc that's appearing there unexpectedly
<{^_^}> [nixpkgs] @zimbatm merged pull request #41089 → solargraph: init at 0.21.1 → https://git.io/vhqfc
<{^_^}> [nixpkgs] @zimbatm pushed commit from @worldofpeace to master « solargraph: init at 0.21.1 (#41089) »: https://git.io/vhqRm
camsbury has quit [Quit: WeeChat 2.0]
leat has quit [Ping timeout: 245 seconds]
acarrico has quit [Ping timeout: 252 seconds]
sanscoeur has quit [Ping timeout: 264 seconds]
camsbury has joined #nixos
<camsbury> hey guys
<camsbury> switched to xmonad from kde, and now a bunch of stuff that it was managing is no longer working, surprise
<camsbury> :D
<camsbury> current issue is accessing upower
<camsbury> it says the service isn't found when I try to run `upower`
<camsbury> and in my config I have `services.upower.enable = true;`
<jD91mZM2> `systemctl status upower`
<camsbury> ah crap I think I see what's wrong
<camsbury> one sec
<sphalerite> infinisil: oooh maybe the negotiated key exchange algorithm doesn't support the key type
* infinisil pretending to understand all the openssh crypto settings
<infinisil> Ah yes of course that might be it!
camsbury has quit [Client Quit]
clacke has joined #nixos
<clacke> Hi all nixers
<clacke> I'm trying to set up a substituter
camsbury has joined #nixos
<clacke> Server runs hydra
<camsbury> okay looks like I just made a silly mistake, sorry about that
<clacke> So I messed with nix-serve but actually the service serving the nars is hydra.
<lostman> sphalerite: thanks! that helped. turns out libclang is pulling in gcc! not sure why exactly. I understand gcc-lib but gcc itself? :(
<clacke> Anyone know how to give hydra my private key?
johnw has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #2181 → Install Nix behind MITM proxy → https://git.io/vhty1
<{^_^}> [nix] @edolstra pushed 4 commits to master: https://git.io/vhqR2
<{^_^}> → c4b9486f by @8D068C0F-6B2E-4F92-A891-5E539CE4B721: install-multi-user: don't force NIX_SSL_CERT_FILE
<clacke> Or should I make the front-end proxy serve the nars from nix-serve instead?
<{^_^}> → e6466c20 by @8D068C0F-6B2E-4F92-A891-5E539CE4B721: Document NIX_SSL_CERT_FILE for installation
<{^_^}> → cad903b6 by @8D068C0F-6B2E-4F92-A891-5E539CE4B721: multi-user profile: borrow single user profiles' NIX_SSL_CERT_FILE finding logic
<sphalerite> lostman: why-depends should show you which file the reference is in, but I can't explain why the reference actually exists :/
<bgamari> Does anyone have any ideas regarding: https://github.com/NixOS/nixpkgs/issues/40835
<bgamari> whoops
Xal has quit [Ping timeout: 252 seconds]
<bgamari> ignore that
camsbury has quit [Client Quit]
<jD91mZM2> Being sphalerite and having questions must be almost like being a stackoverflow developer searching for answers on stackoverflow.
<sphalerite> lol
<lostman> sphalerite: why-depends shows me this: lib/libclang.so.6.0: …inux-gnu/gcc/......../nix/store/bm7pb1s7rx1ad80706b5xqrznq7fgpgx-gcc-7.3.0./opt/rh/devtoolset-6/…
Xal has joined #nixos
<Dezgeg> is that just the libstdc++?
<Dezgeg> or the gcc proper?
<lostman> and when I ldd libclang.so.6.0 I get this: libstdc++.so.6 => /nix/store/4zd34747fz0ggzzasy4icgn3lmy89pra-gcc-7.3.0-lib. so /nix/store/...-gcc-7.3.0-lib makes sense but when I copy the closure I also get /nix/store/...gcc-7.3.0 which doesn't seem necessary
leat has joined #nixos
stepcut has joined #nixos
<clacke> Also does anyone know why #freenode_#nixos:matrix.org is silent? I can see my clacke[m] user here, but on Matrix side there hasn't been any traffic for over a month.
<srk> Dezgeg: hey, thanks for the arm mirror! :)
<sphalerit> clacke: works for me
<srk> trying to get xorg & etnaviv running after few days of compiling
<sphalerite> (sphalerit is my matrix one)
<Dezgeg> I tried etnaviv once, iirc it needs packaging the xf86 driver to work
<{^_^}> [nixpkgs] @dezgeg merged pull request #41088 → Merge master into staging → https://git.io/vhqfq
<{^_^}> [nixpkgs] @dezgeg pushed 126 commits to staging: https://git.io/vhqRQ
<{^_^}> → 8f3a541a by @samueldr: nixos/grub: Updates `splashImage` description to match reality.
iyzsong has quit [Ping timeout: 256 seconds]
<srk> right
<{^_^}> → 0ccfe14e by @samueldr: nixos/grub: Implements use of file format for splashImage.
<{^_^}> → 1edc7ae6 by @worldofpeace: xbmcPlugins.osmc-skin: init at 17.0.4
<jD91mZM2> Oh, speaking of mirrors, does NixOS have an easy way to setup a mirror? And can those mirrors be verified for integrity?
<srk> yes!
<sphalerite> jD91mZM2: nix copy!
<rotaerk> is there a quicker way to build a haskell project besides running nix-build every time? for instance if I'm inside a nix-shell
<sphalerite> although actually no, it's not really mirroring
<srk> with cabal
<rotaerk> ah cabal build
<srk> yes, or cabal new-build
<srk> or stack build
<Dezgeg> but vc4 gpu acceleration with mesa works totally out-of-the-box
<srk> anything that can do partial rebuilds
<rotaerk> k thanks
<srk> Dezgeg: wow
<jD91mZM2> sphalerite: Yeah nix copy is just for copying cache to another machine right?
<srk> Dezgeg: gonna try packaging xf86-video-armada I guess
<Dezgeg> and nouveau on the jetson tk1 with some patches to wayland (dunno if they're needed these days tho)
<srk> then xf86-video-armada-novena and cnfigs..
<Dezgeg> yeah, I suppose
<sphalerite> jD91mZM2: no, you can copy to various things, including flat-file binary caches (that can hten be served by a dumb HTTP server), S3, or chroot stores
fragamus has joined #nixos
<sphalerite> copying to the nix store on another host is just one of the many things you can do with nix copy :D
coot has quit [Quit: coot]
<Dezgeg> I wonder if the xf86-video-armada works on wandboard as well
<jD91mZM2> sphalerite: Right, but there's no easily self-hosted hydra equivalent?
<Dezgeg> since armada is marvell-specific I think
<sphalerite> jD91mZM2: no. You can self-host hydra though :)
<Dezgeg> oh, the README clams i.MX support
<sphalerite> (just not easily)
<Dezgeg> it's just misnamed then I guess
<srk> gentoo overlay for novena uses https://github.com/xobs/xserver-xorg-video-armada /o\
<jD91mZM2> sphalerite: Can you verify it for integrity later?
<sphalerite> jD91mZM2: yes, signing is supported
<Dezgeg> I would use whatever has the latest commits
<Dezgeg> probably
<jD91mZM2> sphalerite: Wait, who would sign what?
<srk> wohoo
<sphalerite> jD91mZM2: see nix-store --generate-binary-cache-key, nix sign-paths, nix path-info --sigs, and the `trusted-public-keys` setting (copying will be refused unless you're a trusted-user or the paths being copied are signed by a trusted key)
<srk> gonna be fun
<sphalerite> jD91mZM2: the secret-key-files setting in nix.conf makes a machine sign all the things built on it with that key, or you can use nix sign-paths to sign stuff explicitly
<srk> like you can see that pretty fullhd ips display while it's in u-boot and then it goes dark
<srk> and you have compile for days to see it again :D
<rotaerk> hmm I should probably actually learn cabal
<rotaerk> it's just been this thing that I occasionally deal with superficially, thus far
<srk> cabal's getting lot better
<Dezgeg> hmm, I think at least wandboard had non-accelerated graphics support?
<rotaerk> is new-build supposed to be good enough to make nix redundant?
<srk> I might even ditch stack
<Dezgeg> on the hdmi port
<srk> new-build can't integrate with nix iirc
<srk> (yet)
<Dezgeg> but maybe that's different on whatever board you have
<rotaerk> I don't use stack, because it seems redundant with nix
<jD91mZM2> sphalerite: Are we talking about signed mirror -> client transaction or verifying that the mirror actually is producing the correct binaries?
<srk> but you only need simple shell.nix with cabal/ghc
<srk> rest is handled by cabal
<bgamari> srk, do you have any ideas regarding what new-build/nix integration would look like?
<rotaerk> interesting
<srk> many ways to build haskell tho
<srk> bgamari: like it says it uses nix-style isolation. nix integration could just provide ghc I guess
<srk> I'm not an expert tho, only started playing with that recently as I wanted to try backpack
<sphalerite> jD91mZM2: we're talking about signing "this output path was produced by this derivation"
<sphalerite> jD91mZM2: so you can build and sign it on some machine that you trust, copy it to an untrusted mirror, and be able to tell if it's been tampered with
smallville7123 has quit [Quit: rosa]
<bgamari> srk, I was thinking perhaps you wanted to have new-build use packages built by nix
<srk> possibly, I don't know
<bgamari> srk, or perhaps even have new-build produce derivations
<srk> for development I don't really care, for deployment I want everything handled by nix
<srk> that would be cool for sure
<srk> nice thing is that you can go like dhall2cabal -> cabal2nix ..
<bgamari> right
<jD91mZM2> sphalerite: Oh okay, thanks for clarifying
<srk> bgamari: what I really like about nixos that I only have to publish stuff on hackage and it propagates to nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41101 → riot-web: 0.15.3 -> 0.15.4 → https://git.io/vhq0u
<{^_^}> [nixpkgs] @dezgeg pushed 28 commits to staging: https://git.io/vhq02
<{^_^}> → 10c973ef by R. RyanTM: nanomsg: 1.1.2 -> 1.1.3
<{^_^}> → 059a71a6 by @grahamc: lib/options: teach showOptions about funny option names
<{^_^}> → 996849ab by @cstrahan: kubernetes: update to 1.10
<clacke> sphalerit: You can use #freenode_#nixos:matrix.org? That's odd. So maybe some issue with my home server then.
<clacke> Hm, ok, I didn't see the sphalerit message on matrix either.
<clacke> So weird, other matrix.org channels work, including other freenode ones
<clacke> > the secret-key-files setting in nix.conf makes a machine sign all the things built on it with that key, or you can use nix sign-paths to sign stuff explicitly
<{^_^}> error: syntax error, unexpected IN, expecting ')', at (string):41:30
<clacke> thank you sphalerite that's what I needed to know
<sphalerite> \o/ coincidental help
drakonis has joined #nixos
acarrico has joined #nixos
Guanin has joined #nixos
maingo has joined #nixos
<jcrben> when I try to install https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/aescrypt/default.nix on macOS I get: /nix/store/r8bx3qf1bpncb14i9gzma4vr089pc3pv-bash-4.4-p19/bin/bash: gcc: command not found
contrapumpkin has joined #nixos
<jcrben> the nixpkgs manual says that stdenv includes "GNU C Compiler" - what am I missing? does this package need to be patched for darwin?
<{^_^}> [nixpkgs] @manveru opened pull request #41102 → Crystal: 0.24.1 -> 0.24.2 → https://git.io/vhqEc
<clacke> jcrben: The manual needs to be patched.
<clacke> stdenv on darwin uses clang
<symphorien> I'd like to use the proot version built by hydra on a machine without nix
<symphorien> can I download it with traditionnal tools (wget, tar...) from the binary cache ?
<clacke> build your package with gccStdenv instead
sanscoeur has joined #nixos
<LnL> jcrben: the build system probably hardcodes gcc instead of using cc / $CC
<clacke> (or fix the package to detect the compiler)
<LnL> only a few special edgecases that actually need gcc
<LnL> jcrben: try adding makeFlags = [ "CC=cc" ];
<jcrben> looking at the upstream package
sanscoeur has quit [Ping timeout: 260 seconds]
johnw has quit [Ping timeout: 248 seconds]
<LnL> yeah, that should be CC := gcc
<LnL> then users can override it like the darwin stdenv
<jcrben> LnL: and that happens automatically under the hood right? looks like the latest version (https://github.com/paulej/AESCrypt) has diverged significantly from the release and is now using CMake anyhow
<jcrben> latest version isn't an actual release tho, just a development version. guess I'd have to email a patch
<sphalerite> oh jeez, "nix daemon out of memory" on my 16GB laptop…
Ariakenom has quit [Ping timeout: 252 seconds]
<symphorien> is the nar format nix-specific ?
<Dezgeg> it is
Ariakenom has joined #nixos
<{^_^}> [nix] @grahamc opened pull request #2183 → Omnibus backport: #2178: doc fix for --check, #2181: MITM HTTPS proxy fix at install time → https://git.io/vhquG
<clacke> Is there a way to make nix regenerate all its packages after I have given it secret keys?
<LnL> jcrben: yeah, the build environment contains CC=clang environment variables and make/cmake will use those unless explicitly overriden like this example
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to master: https://git.io/vhqu8
<{^_^}> → e49af777 by @NeQuissimus: linux: 4.4.132 -> 4.4.133
<{^_^}> → 64c4ea02 by @NeQuissimus: linux: 4.9.102 -> 4.9.103
<{^_^}> → b4e2fb57 by @NeQuissimus: linux: 4.14.43 -> 4.14.44
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.4.132 -> 4.4.133 »: https://git.io/vhquB
woodson has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.9.102 -> 4.9.103 »: https://git.io/vhquu
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.14.43 -> 4.14.44 »: https://git.io/vhqua
Ariakenom has quit [Ping timeout: 252 seconds]
<sphalerite> clacke: no, but you can sign all the paths, if you don't have anything you don't trust in your nix store, using nix sign-paths --all
* sphalerite would quite like if nix generated a key and signed everything by default
<clacke> sphalerite: thx!
<clacke> Oh yes, I think it's a big surprise that it doesn't have a key generated on install.
<gchristensen> interesting, clacke
freusque has joined #nixos
<freusque> hello! For you haskell users out here, what's your standard response when a package doesn't build?
<freusque> usually, due to bounds not being met
<infinisil> freusque: Use stack :P
<freusque> ok, one vote for stack, anyone else ? :-)
<gchristensen> I recommend going for a walk outside
<freusque> one vote for stack and one vote for anger management techniques
novum has quit [Quit: Lost terminal]
<clacke> nix sign-paths --all went ridiculously fast
<clacke> I wonder if it did anything
<clacke> but I guess just signing checksums can go pretty fast
<gchristensen> I think so
joehh has quit [Ping timeout: 264 seconds]
<sphalerite> clacke: yeah, and it doesn't compute the checksums either, just grabs them from the database
acarrico has quit [Ping timeout: 240 seconds]
novum has joined #nixos
<elvishjerricco> freusque: Usually the package isn't on Stackage, or else the bounds in nixpkgs would have been right. So stack doesn't help much. You probably either need to bump it or just use doJailbreak
novum has quit [Client Quit]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thblt has quit [Remote host closed the connection]
<freusque> I guess someone was an ac/dc fan
<freusque> when they named that. I'll look it up, thank you
clacke has quit [Ping timeout: 260 seconds]
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
seanparsons has joined #nixos
smallville7123 has joined #nixos
Ariakenom has joined #nixos
<jD91mZM2> Does nix have anything like `guix import`?
<drakonis> well, sort of
xy2_ has quit [Ping timeout: 248 seconds]
<jD91mZM2> I mean I guess that's what all the _2nix things are for?
<drakonis> yes
<drakonis> it is all over the place though
<drakonis> nix 2.0 has plugin support, which would effectively allow it to have a guix import equivalent
<drakonis> built into nix itself
<jD91mZM2> That's awesome!
<jD91mZM2> Speaking of nix 2.0... What's `nix edit` for? At least without specifying -f it feels pretty useless
andymandias has quit [Ping timeout: 256 seconds]
<gchristensen> what is guix import?
<LnL> various generators
<gchristensen> oh cool
<freusque> jD91mZM2: it's really cool when you have your own package set in scope
<freusque> nix edit -f '<mypkgs>' -A mypackage
<freusque> ah sorry, I didn't read through you whole message.
<freusque> >:)
<jD91mZM2> freusque: It would be useful for me if my EDITOR variable wasn't overriden by /etc/zshenv constantly :P
<tilpner> It's also useful in combination with EDITOR=echo and EDITOR=cat
<freusque> yeah I do the echo and cat thing too hehe
<tilpner> Though I dislike that it doesn't fallback to unsafeGetAttrPos :/
johnw has joined #nixos
blankhart has joined #nixos
<Guest64915> hi all. On latest 18.03 I'm having a strange X startup issue after boot.
sanscoeur has joined #nixos
<Guest64915> the system boots but X doesn't. Only after login on console X starts (immediately after login)
<Guest64915> any clue why this would be happening?
Guest64915 is now known as Unode
<jD91mZM2> /var/log/X.0.log
<jD91mZM2> give it to me
<Unode> :D
<Unode> one moment
<Unode> erm... there is none
<Unode> odd...
<jD91mZM2> Oh, that's odd
<jD91mZM2> Did you enable a display manager and stuff in the nix config?
<Unode> yes, this has worked before. I think the most recent change (after which things started behaving oddly) was to increase the number of processes in ulimit
reinzelmann has joined #nixos
<jD91mZM2> `journalctl -xe display-manager`?
<Unode> Failed to add match 'display-manager': Invalid argument
<Unode> but I am on X right now
fendor has joined #nixos
<Unode> "/nix/store/8awzj47bshg0zgs4dc4f5030qvfzjg4m-xorg-server-1.19.6/bin/X -config /nix/store/ia7i64vnbi3a0dhnq2g0lvp8lcl2qkc9-xserver.conf -xkbdir /nix/store/y4lyjcjv2xmgnpd5frzky9sq0mfmvbya-xkeyboard-config-2.22/etc/X11/xkb -logfile /dev/null -verbose 3 -nolisten tcp -terminate -nolisten tcp -auth /var/run/sddm/{96f7de55-a13e-47f6-bed1-2f476771470c} -background none -noreset -displayfd 17 -seat seat0 vt7" to be
<Unode> precise
<elvishjerricco> Don't you use -u to specify a unit with journalctl?
<Unode> ok -u seems to help
<Unode> checking...
sanscoeur has quit [Ping timeout: 260 seconds]
<jD91mZM2> Do you get to your display manager at all or does it start directly into X?
nkaretnikov has joined #nixos
<Unode> At the moment: I get linux login prompt, no X. I then login on the prompt and X starts.
<Unode> What's even weirder is that I don't actually need to login successfully
<jD91mZM2> oh god
<nkaretnikov> could someone direct me to a sample ghcjs project that uses nix? things i've seen so far are either deprecated or huge.
<jD91mZM2> Unode: So no display manager like LightDM or whatever?
<jD91mZM2> It just starts directly?
<Unode> for instance now I saw a message saying "nixos-help" for NixOS manual. and I simply wrote that as login. No password. And X started right after
<Unode> jD91mZM2: after this I get the usualy login screen in X
<Unode> usual*
clacke has joined #nixos
<krey> tilpner: o/, are you around?
<tilpner> Sort of
<jD91mZM2> Unode: Oh wow okay that is odd. What happens if you revert to a previous config?
<clacke> Hmm nope I'm still getting `warning: substituter 'https://hydra.fractalide.com' does not have a valid signature for path ...`
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/dfa11da7d6e (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<jD91mZM2> Unode: Oh, unstable or stable?
<krey> tilpner: I wrote a script that kinda does what we were discussing, an alternative to nix-channel
* jD91mZM2 has to go, sorry :(
jD91mZM2 has quit [Quit: WeeChat 2.0]
<Unode> jD91mZM2: I updated to day in hope that the problem would go away. Need to try a few older configs
<Unode> stable
<krey> tilpner: would you mind taking a look?
<krey> tilpner: would be curious to hear your thoughts
<clacke> Even after running nix sign-path --all -k /path/to/key
<tilpner> krey - Sure, but it can't satisfy your initial requirement of being "standard"
xy2_ has joined #nixos
<krey> tilpner: not yet ;)
endformationage has joined #nixos
<tilpner> krey - I also sometimes want to only update one pin, instead of all of them
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41104 → picard-tools: 2.18.4 -> 2.18.5 → https://git.io/vhqgS
<tilpner> krey - It's interesting that you re-use /nix/var/nix/profiles/per-user/root/channels, but that allows nixos-rebuild and nix-channel to update your allegedly pinned sources :/
<tilpner> Which you may consider a feature if you want
<tilpner> Also needs support for non-GitHub git repos
<krey> tilpner: fair point about updating a single channel at a time
ggp0647 has joined #nixos
<krey> tilpner: and yeah, I just gave up on nix-channel
<tilpner> Ironic how your nix-pinning script explicitly forces non-pinned python3 on the user
<krey> tilpner: well, I need something to handle the json
yurb has joined #nixos
<krey> tilpner: but yeah, maybe it should be pinned, haha
<ryantm> Is leaveDotGit in the fetchGit okay to use? Or, are we trying to get rid of it?
<gchristensen> ideally you don't want it
<gchristensen> your hash will become out of date with leaveDotGit
<krey> tilpner: so is this kinda similar to what you have?
<tilpner> krey - Does "import json" not work on older python3 versions?
novum has joined #nixos
<krey> tilpner: no it works. I jus meant that it would've been nicer not to have a python dependency
<krey> tilpner: I tried to do it in bash/nix, but it wasn't going very well
<ryantm> gchristensen: How does it get out of date? Does it get out of date the minute someone makes a new commit to the git repo?
<gchristensen> hmm I'm not sure exactly
<tilpner> krey - It is similar, but my source descriptions are scripts, and I have a separate json file for every pin
<gchristensen> but if the repository repacks, or creates new branches / tags / etc. it may be out of date
<ryantm> I'm trying to help with https://github.com/NixOS/nixpkgs/pull/40978/files and the Makefile depends on `git log` output https://github.com/iNavFlight/inav/blob/master/Makefile#L159
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a43a4eb8ca8 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<ryantm> This leaveDotGit issue is still open https://github.com/NixOS/nixpkgs/issues/8567
<krey> tilpner: cool, good to know that I didn't do anything crazy :)
<krey> tilpner: thanks for taking a look!
<gchristensen> ryantm: me, I'd patch out REVISION = ...
<gchristensen> ryantm: the patch would be -REVISION = $(shell git log -1 --format="%h")
<gchristensen> +REVISION := $(shell git log -1 --format="%h"), then you can specify REVISION=... in the env vars and it won't call git
<tilpner> krey - I used git ls-remote to resolve a branch name to a commit, which means I didn't need json parsing
novum has quit [Client Quit]
<Unode> and seems like the latest stable commit starts X normally... weird it failed the first time. All good now
<ryantm> gchristensen: If you use `leaveDotGit` it calls something called make_deterministic_repo https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchgit/nix-prefetch-git#L305 but judging by that issue, it probably doesn't completely work
<krey> tilpner: ohh, very cool
<krey> tilpner: what language(s) did you use?
<tilpner> It's a five-minute shell script
<tilpner> Not intended to be used by anyone but me c.c
<jcrben> LnL and clarke: I patched aescrypt to not hardcode gcc (https://github.com/jcrben/nixpkgs/tree/aescrypt-on-darwin) but then I ran into Undefined symbols for architecture x86_64: "_iconv" - seems similar to the issues discussed in https://github.com/NixOS/nixpkgs/pull/2532
<krey> tilpner: can I take a look?
<krey> tilpner: for educational purposes...
<jcrben> LnL: same message as https://github.com/NixOS/nixpkgs/issues/2486 - wondering if you've seen this before as I know you're pretty familiar with darwin
<sphalerite> hm, I started diffoscope this morning at 09:16 UTC. It's now 17:54 UTC and it's still eating 100% of one core. I feel like something might not be going right here..?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41105 → php: 7.2.5 -> 7.2.6 → https://git.io/vhq2z
<Dezgeg> it's reaallly slow
<gchristensen> yeah super slow
<tilpner> krey - tx0.co/tarball and tx0.co/github , then e.g. tx0.co/Z
<nkaretnikov> i'm attempting to update cabal2nix to the latest version on darwin. the nix manual says that i need to do `nix-channel --update nixpkgs && nix-env -u '*'`, but it does nothing visible on my system. `nix-channel --list` is also empty. do i need to subscribe to unstable first?
<LnL> jcrben: yeah, libiconv
<gchristensen> sphalerite: when diagnosing diff issues I'll generally `split -n<bignumber>` the file, then sha1sum each, find the different ones, and diffoscope on those
<tilpner> krey - Could be prettier by setting PATH from the parent script
<jcrben> LnL: looking at https://github.com/NixOS/nixpkgs/issues/18461 - not really sure what the takeaway is tho
tzemanovic has joined #nixos
<Dezgeg> or just to diff -r on the directory tree to find which files are the ones that differ, then diffoscope on those files
<nkaretnikov> okay, trying `nix-channel --add https://nixos.org/channels/nixpkgs-unstable`. let's see if it makes a difference.
<krey> tilpner: very cool, thanks for sharing
smallville7123 has quit [Quit: rosa]
<nkaretnikov> yep, it seems to be working
smallville7123 has joined #nixos
<LnL> jcrben: add buildInputs = [ libiconv ];
<boxofrox> srhb: oh, just saw your pastebin about feeding the config.php.mysqlnd into the nixpkgs import. your way also works. I hadn't considered it because setting config.php.mysqlnd in my /etc/nixos/configuration.nix was generating errors for a containerized php+mysqlnd and the override was the only syntax I could figure out that worked. thanks for the knowledge. will keep it in mind for later.
<LnL> jcrben: oh
<sphalerite> gchristensen: Dezgeg good to know :D
clacke[m] has left #nixos ["User left"]
<nkaretnikov> in which repo do i need to open an issue wrt the nix manual? should it be done in `nix`?
<sphalerite> oddly enough, diffoscope on the nix-store --export of the paths I'm comparing took much less time
tzemanovic has quit [Ping timeout: 256 seconds]
<sphalerite> nkaretnikov: yes, if it's the nix manual and not the nixpkgs or the nixos manual
<nkaretnikov> sphalerite: ok
<yurb> Hi all. I'm new to nix, just installed it on Fedora. I'm trying to install this package: https://nixos.org/nixos/packages.html#supercollider_scel
<gchristensen> love seeing nix doc patches!
<jcrben> I see some packages use darwin.cctools so I guess I'll try wiring that up
johnw has quit [Ping timeout: 260 seconds]
<LnL> jcrben: what about this, but I thought this wasn't necessary anymore
<LnL> jcrben: NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
<clacke> Wow. When I try to join #freenode_#nixos:matrix.org I am now noticing that I'm actually redirected to #nixos:pierrebeaucamp.com . I wonder how that happened.
<yurb> When I run 'nix-env -iA nixos.supercollider_scel' I'm getting the following error: 'error: attribute 'nixos' in selection path 'nixos.supercollider_scel' not found'
<gchristensen> clacke: man, I've tried to fix the NixOS on Matrix situation a few times but the tools just don't exist.
<gchristensen> yurb: you'll need to do nixpkgs.... instead of nixos...
<yurb> gchristensen: oh, so there are two repositories?
<clacke> Hey sphalerit could you tell me the real hash-like name of the real #nixos room that you're in?
<sphalerite> clacke: the room has many addresses, #nixos:pierrebeaucamp.com is one of them
<jcrben> LnL: worked :) - I'll make a PR
<clacke> ok
<gchristensen> yurb: the "nixos." prefix and "nixpkgs." prefix refers to the "channel" by which you have the Nixpkgs package set setup locally
<jcrben> LnL: also send an email to paul about fixing it upstream
<clacke> I'll poke my homeserver admin
<sphalerit> !AinLFXQRxTuqNpXyXk:matrix.org
<sphalerite> clacke: ^
<jcrben> (I will send that email)
<gchristensen> yurb: or NixOS, it defaults to "nixos." off NixOS, it defaults to "nixpkgs"
<gchristensen> yurb: I feel the difference is a bit vestigial at this point
Guest84464 has quit []
MatrixTraveler[m has joined #nixos
<yurb> okay, thanks for explaining:) Now, if there is a 'supercollider_scel' package listed in nixos, it can be missing in nixpgks?
<clacke> sphalerite: thx!
kaychaks has joined #nixos
<gchristensen> yurb: it should be there for nixpkgs too
<clacke> Ok, that takes me to my same echo chamber. So this needs to be kicked on my matrix instance.
<gchristensen> yurb: but when you're on https://nixos.org/nixos/packages.html#supercollider_scel and it says nix-env -iA nixos.supercollider_scel, do nix-env -iA nixpkgs.supercollider_scel
smallville7123 has quit [Quit: rosa]
<yurb> gchristensen: just did it! Seems to work. Thanks a lot:) I'm really excited about the distro-agnostic source-based packaging systems.
<LnL> jcrben: cool, ping me if you want me to look at it
<gchristensen> yurb: awesome! welcome aboard!
<nkaretnikov> https://github.com/NixOS/nix/issues/2184 any objections to this? (that's a one line change to the manual) if not, i might create a patch now.
<yurb> thanks:)
<gchristensen> nkaretnikov: ack this is a much more complicated problem
<gchristensen> nkaretnikov: and I don't know how to solve it
<infinisil> nix#2184
<{^_^}> https://github.com/NixOS/nix/issues/2184 (by nkaretnikov, open): manual: subscribe to a channel before updating
<nkaretnikov> gchristensen: huh, could you elaborate?
<gchristensen> yurb: your user on macos is by default subscribed to your root user's channel. try: sudo HOME=~root/ nix-channel --list
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41107 → ponyc: 0.21.3 -> 0.22.1 → https://git.io/vhqan
joehh has joined #nixos
<gchristensen> but on macos, `sudo` doesn't update the HOME variable to be ~root (`sudo env | grep HOME` will still point to your user's home)
<gchristensen> thusly, `sudo nix-channel --update` doesn't do The Right Thing, and is confusing for macos users
<gchristensen> A question becomes, should we even have a "default" profile on macOS, owned by root? I don't know
<nkaretnikov> gchristensen: okay, then i'll wait for me input on the issue
<nkaretnikov> not that it's a dealbreaker. just might be confusing for newbies.
<gchristensen> it is definitely confusing for newbies ... and oldies ...
<nkaretnikov> lol
<gchristensen> it is weird, because the default channel is important for questions like "who installs the nix-daemon?"
vaninwagen has joined #nixos
<yurb> I have another question... The supercollider_scel package should contain some emacs lisp files, how can I make emacs find them?
<sphalerite> if you install it in your user profile, just add ~/.nix-profile/share/emacs/whateveritis to your emacs search path (sorry I can't remember the exact path and name of the variable)
<yurb> sphalerite: thanks a lot! same applies to mu I guess.
<gchristensen> sphalerite++
<{^_^}> sphalerite's karma got increased to 4
<sphalerite> zomg where can I spend it
<{^_^}> [nix] @dtzWill opened pull request #2185 → nix-daemon: remove unused "pendingMsgs" variable → https://git.io/vhqaH
<clacke> I have done `nix-store --delete /nix/store/ajsdölfkjslajff-foo` on my hydra
<sphalerite> :D
<clacke> But my local machine still says 'https://hydra.fractalide.com' does not have a valid signature for path
<clacke> where does my machine remember that it fetched something from hydra?
<sphalerite> there's a local cache of what's available in the binary cache
<sphalerite> ~/.cache/nix/binary-cache-v5.sqlite
<nkaretnikov> so do i need to do anything special when running cabal2nix if my project uses ghcjs? i've tried the compiler option with the ghcjs argument, but it doesn't seem to make a difference. or do i just need to pass --argstr compiler ghcjs when running nix-shell? even if it works, how would folks install via nix-env if the default.nix file has nothing ghcjs-specific.
drakonis has quit [Remote host closed the connection]
<gchristensen> 25 points gets you a sticker, 100 points gets you a t-shirt, 1000 verified points gets you a free trip to nixcon *restrictions apply, must be verifiable points, given by grateful people, in channels I'm in
<clacke> I nuked my ~/.cache/nix
<clacke> What's the system cache?
<sphalerite> /root/.cache/nix
<sphalerite> oh and /nix/var/nix/binary-cache-v3.sqlite ? I think? Not sure if that is used or not…
<{^_^}> [nixpkgs] @ryantm opened pull request #41108 → prefix haskell packages with "haskell-" → https://git.io/vhqaN
coot has joined #nixos
<clacke> Ok, I only looked in /nix/var and saw no cache, and then /var/cache which had nothing related to nix
<clacke> oh right
<clacke> directly in /nix/var/nix
<clacke> thanks again
<gchristensen> sphalerite: ^ seriously
<sphalerite> mine hasn't been touched since february, so I think this might be only for nix 1.x which you're probably not using :)
<clacke> nuked /nix/var/nix/*sqlite* /root/.cache/nix /home/clacke/.cache/nix and it still remembers :-D
<sphalerite> clacke: maybe it is still there after all :p
<clacke> it doesn't even talk to the server
<infinisil> {^_^}++
<{^_^}> {^_^}'s karma got increased to 132
<clacke> yeah server saved 0 bytes deleting this time
<infinisil> gchristensen: *cough* ^^
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #41081 → llvm 6: Master version of #39743 → https://git.io/vht86
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to master: https://git.io/vhqVU
<{^_^}> → 158e5507 by @Ralith: llvm and clang 6: factor out compiler-rt, fix libstdcxxStdenv sanitizer headers
<{^_^}> → ee06f735 by @Ralith: tests.cc-wrapper: verify building with sanitizers
<{^_^}> → 713d580d by @Ericson2314: Merge pull request #41081 from obsidiansystems/compiler-rt-master
<clacke> there are 2 hard problems in compsci as they say
<sphalerite> clacke: huh.
<gchristensen> infinisil: {^_^} already has a t-shirt!
<clacke> this has been a practical demonstration :-)
<sphalerite> clacke: naming, cache invalidation and off-by-ones?
lord| has quit [Ping timeout: 260 seconds]
<clacke> exactly!
<gchristensen> infinisil: 132 points gets a fresh deployment though, so
<clacke> updatedb; locate binary-cache
<sphalerite> can I get a fresh deployment if I get 132 points?
<nkaretnikov> hm, but i'm able to download https://registry.npmjs.org/uws/-/uws-0.14.5.tgz via a browser, why does it fail with nix?
<sphalerite> nkaretnikov: does this occur consistently?
<nkaretnikov> sphalerite: yes, i tried a couple of times just now
<sphalerite> :/
sanscoeur has joined #nixos
<nkaretnikov> i'd appreciate if someone could reproduce at least. i created a hello world haskell project with cabal2nix, then ran `nix-shell --argstr compiler ghcjs`as mentioned in the puffnfresh's twit.
xy2_ has quit [Ping timeout: 240 seconds]
{^_^} has quit [Remote host closed the connection]
<sphalerite> oh boy. Running out of memory makes you really appreciate how slow block storage actually is.
{^_^} has joined #nixos
{^_^} has quit [Changing host]
{^_^} has joined #nixos
<gchristensen> how ya doin', {^_^}
<sphalerite> ♥ haskell
<sphalerite> gchristensen: you should totally give it a vanity IP address :D
<gchristensen> haha why yes I should
<gchristensen> samueldr: I just merged a PR and the github to irc thing didn't pick it up
sanscoeur has quit [Ping timeout: 256 seconds]
<samueldr> any log outout in the github to irc thing?
<tazjin> I'm trying to use `build.googleComputeImage` atm - it seems to launch qemu during its build to create the VM image, but that very quickly fails with `no space left on device` and the build exits
<gchristensen> samueldr: literally none
<tazjin> I'm not sure what device is running out of space here, it's not the host, so I checked if maybe it uses tmpfs, but that's not the case either
<sphalerite> tazjin: it'll be within the VM probably
<sphalerite> raaaaaaaagh so many OOMs trying to build pandoc on 2GB
<tazjin> sphalerite: it would seem like it, not quite sure what to do about it yet so I guess I'll dig into that code
<gchristensen> sphalerite: man, haskell requires 1tb right out of the gate /simplified
<sphalerite> gchristensen: not on ARMv7, there's not enough address space there ;)
<nkaretnikov> oh, it could be just me using a proxy. perhaps there are some rules that look for ip-addresses and user-agents, i dunno. now it fails somewhere else :(
<samueldr> gchristensen: have you previously stopped the service or was it running since day one?
saltsa has quit [Quit: leaving]
<gchristensen> samueldr: interesting question
<sphalerite> clacke: any luck with invalidating the cache?
<gchristensen> samueldr: last time I restarted it was April 22
<sphalerite> You may also need to restart the nix daemon after removing the database file
<samueldr> in theory, nothing I changed should cause it to... do nothing, but I may be wrong!
<gchristensen> :D
<samueldr> (I'm starting up the rabbitmq test environment to verify on my end)
<nkaretnikov> can i do something besides cloning the nixpkgs tree and forcing it to use that?
xy2_ has joined #nixos
<clacke> I realized that the daemon might be holding a reference (and a grudge), so I restarted it. No luck.
<clacke> I'll just make some changes to the package at the core of it all, so that all hashes change. :-)
astsmtl has quit [Ping timeout: 252 seconds]
<nkaretnikov> trying with --pure, hoping it'll make a difference
<nkaretnikov> nah, same issue :(
qqlq has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/661751dad31 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<nkaretnikov> i don't understand why it fails. the .cabal file has a dependency on semigroups >= 0.11 && < 0.19 and `nix-env -f '<nixpkgs>' -qaP -A haskellPackages | grep semigroups` lists 0.18.4
<nkaretnikov> trying with -j1 now... :/
stepcut has quit [Remote host closed the connection]
johnw has joined #nixos
<gchristensen> samueldr: I dunno :/
tertle||eltret has joined #nixos
<samueldr> I haven't left enough information about my dev setup hah, I'm looking up the bits I forgot to have it work locally
<nkaretnikov> ugh, still failing
muzzy has joined #nixos
muffins_Madcat has joined #nixos
<samueldr> ah, good, gchristensen when you say no output, do you mean there isn't even "connecting..." "connected" "Waiting for events..." at start?
<nkaretnikov> also, how come i get warnings like this? the ghc is supposed to be much newer
not_a_bot has joined #nixos
dottedmag has quit [Quit: QUIT]
not_a_bot is now known as Guest48325
alex`` has quit [Quit: WeeChat 2.1]
palo_ has joined #nixos
palo_ has quit [Changing host]
palo_ has joined #nixos
lord| has joined #nixos
alex`` has joined #nixos
<Guest48325> In my config.nix I have a few different buildEnvs I use to manager packages, using `pkgs.name` to add a package to the list.
<Guest48325> How do I add a local custom derivation to that list of pkgs
palo has quit [Ping timeout: 260 seconds]
<nkaretnikov> collected some garbage just in case, trying again
ixxie has quit [Ping timeout: 245 seconds]
chimay has quit [Ping timeout: 240 seconds]
fendor has quit [Remote host closed the connection]
MP2E has joined #nixos
muffins_Madcat has quit [Read error: Connection reset by peer]
muffins_Madcat has joined #nixos
<yurb> supercollider coredumps:( is there a way to ask nix to build it from source instead of using a prebuilt binary?
<infinisil> yurb: You'd get the exact same result, but you can do that with --check
<nkaretnikov> argh! it seems to be what gchristensen told me about (thanks!): did nix-channel --update as root and now nix-shell picks different versions :(
ixxie has joined #nixos
<yurb> thanks infinisil
johnw has quit [Ping timeout: 240 seconds]
muffins_Madcat_ has joined #nixos
qqlq has quit [Remote host closed the connection]
simukis has joined #nixos
simukis has quit [Client Quit]
muffins_Madcat has quit [Ping timeout: 240 seconds]
simukis has joined #nixos
reinzelmann has quit [Quit: Leaving]
sanscoeur has joined #nixos
johnw has joined #nixos
worldofpeace has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 260 seconds]
johnw has quit [Ping timeout: 240 seconds]
lielazive has joined #nixos
<sphalerite> Is there a simple way to undo a nix-channel --rollback? Or do I need to use nix-env -p?
blankhart has quit [Read error: Connection reset by peer]
acarrico has joined #nixos
blankhart has joined #nixos
<infinisil> nix reflog
<infinisil> Oh wait
<infinisil> Not git
goaway has joined #nixos
<lielazive> Is there a NixOS package for Gala WM? I like the idea of NixOS, but I'd like it to be very pretty like ElementaryOS :D
astsmtl has joined #nixos
astsmtl has quit [Changing host]
astsmtl has joined #nixos
<sphalerite> lielazive: as far as I can see, no
ixxie has quit [Ping timeout: 248 seconds]
cheater has quit [Ping timeout: 240 seconds]
shabius has quit [Ping timeout: 245 seconds]
drakonis has joined #nixos
cheater has joined #nixos
<sphalerite> git clone https://github.com/lheckemann/nixos-scaleway && cd nixos-scaleway && nix build -f ./deploy.nix && server_id=$(scw run --commercial-type=C1 -d ubuntu-zesty) && ./result root@$server_id.pub.cloud.scaleway.com
<sphalerite> ^ scaleway ARM server in 5 minutes :D
<sphalerite> (running nixos)
pie__ has joined #nixos
<sphalerite> caveat: the machine you run this on needs to be ARMv7 too. But that's just a minor detail, right? :D
<nkaretnikov> okay, i got to the ghcjs-boot. now it complains about missing gcc. what's the proper input list to specify it?
<nkaretnikov> so far, i've tried buildDepends and executableHaskellDepends
layus has quit [Quit: ZNC 1.6.5 - http://znc.in]
spear2 has joined #nixos
vaninwagen has quit [Quit: WeeChat 2.1]
pie_ has quit [Ping timeout: 245 seconds]
layus has joined #nixos
shabius has joined #nixos
stepcut has joined #nixos
johnw has joined #nixos
muffins_Madcat has joined #nixos
muzzy has quit [Ping timeout: 268 seconds]
tzemanovic has joined #nixos
muffins_Madcat_ has quit [Ping timeout: 260 seconds]
initiumdoeslinux has joined #nixos
stepcut has quit [Remote host closed the connection]
<initiumdoeslinux> Hi, I'm trying to run nix-build on a stack2nix generated package definition, but I get this error: https://lpaste.net/7602893292824428544 What does this mean?
tzemanovic has quit [Ping timeout: 256 seconds]
xy2_ has quit [Read error: Connection reset by peer]
<clever> initiumdoeslinux: did you tell nix-build which package to build?
stepcut has joined #nixos
freusque has quit [Quit: WeeChat 2.0]
logzet has quit [Ping timeout: 245 seconds]
muffins_Madcat_ has joined #nixos
<initiumdoeslinux> @clever Will it not build the ones in ./default.nix? Or do I have to call it like so: nix-build lens
logzet has joined #nixos
<clever> initiumdoeslinux: if you dont give a specific attribute, it will try to build every single one
<clever> initiumdoeslinux: and stack2nix generates one for every single package in stackage
<nkaretnikov> here's the gcc error ^
<clever> initiumdoeslinux: so you need to do `nix-build -A yourproject`
johnw has quit [Ping timeout: 240 seconds]
xy2_ has joined #nixos
muffins_Madcat has quit [Ping timeout: 240 seconds]
blankhart has quit [Ping timeout: 276 seconds]
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
blankhart has joined #nixos
<initiumdoeslinux> clever: Oh! I see. Why does stack2nix define an attribute for every single package in stackage?
simukis has quit [Quit: simukis]
<clever> initiumdoeslinux: that was a recent change, prior, to that it only defined attributes for your entire dependency tree
camsbury has joined #nixos
simukis has joined #nixos
<initiumdoeslinux> clever: are you aware of the reason? 40k lines for a project dependency definition is a lot
<clever> initiumdoeslinux: i think it was just a side-effect of some recent refactoring, and it wasnt that big of an issue at the time
muffins_Madcat_ has quit [Ping timeout: 252 seconds]
<initiumdoeslinux> clever: alright, at least I dont have to melt my laptop compiling packages :) Thanks!
simukis has quit [Client Quit]
<jcrben> nkaretnikov gchristensen that discussion around https://github.com/NixOS/nix/issues/2184 could really use a writeup in the wiki or something - still not really clear on what's going on
<initiumdoeslinux> lol, nvm. that command is also melting my laptop :)
simukis has joined #nixos
srdqty has joined #nixos
<clever> initiumdoeslinux: which process is consuming cpu?
<initiumdoeslinux> ghc
<spear2> initiumdoeslinux: how old laptop?
<clever> initiumdoeslinux: if you check `ls -ltrhd /tmp/nix-build*` what is it building?
<initiumdoeslinux> I was under the impression that the packages would ship as binaries
<spear2> initiumdoeslinux: i'm not sure how to pass flags to ghc in this case, but --jobs=1 usually makes ghc go single threaded, if you are overheating
<clever> initiumdoeslinux: stack2nix overrides the versions of everything, so it wont get any help from cache.nixos.org
<initiumdoeslinux> `drwx------ 12 nixbld13 nixbld 384B May 26 22:19 /tmp/nix-build-Cabal-2.0.1.1.drv-0`
robstr has quit [Quit: WeeChat 1.9.1]
<initiumdoeslinux> oh, what a bummer. that was the reason I wanted to use nix
<clever> initiumdoeslinux: if you want help from the cache, you need to apply minimal overrides to haskellPackages
<clever> initiumdoeslinux: https://github.com/cleverca22/arcstats/blob/master/default.nix is a very simple example, it builds arcstats with the stock lens+data-default, and a slightly modified datadog package
<manveru> anyone wanna merge this quick version bump for crystal? https://github.com/NixOS/nixpkgs/pull/41102
<clever> initiumdoeslinux: https://github.com/cleverca22/machotool/blob/master/default.nix is another simple example, this one overrides macho and creates machotool, so i can now `nix-build -A machotool` and freely modify the source of the macho library (it had many bugs)
<initiumdoeslinux> clever: how will this play out with stack? will `stack-repl` use these or try to build everything itself?
<clever> initiumdoeslinux: stack will never use anything made by either stack2nix or the 2 examples above
<clever> initiumdoeslinux: stack will always try to rebuild everything on its own
<initiumdoeslinux> so I can strictly use nix for the building phase?
newhoggy has joined #nixos
<clever> initiumdoeslinux: let me paste an example of how to repl and build with the machotool example above
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
<initiumdoeslinux> sure, I would really appreciate that
<initiumdoeslinux> I am really interested in seeing how I can reduce the amount of compiling I currently have to do
<clever> initiumdoeslinux: on line 1 i ask for an env suitable for building machotool, which will build everything it depends on using nix, then drop me into a shell
<clever> initiumdoeslinux: on lines 3 and 6, i then run the configure and repl commands, which gets me into ghci
<clever> initiumdoeslinux: those commands can be used with both stack2nix, and the simpler machotool examples
<clever> but stack2nix will involve more rebuilding the first time its ran
<initiumdoeslinux> Wow! That is neat :)
<clever> and nix-build will just build the project
<clever> another handy thing, you can do `ghcid -c "runhaskell Setup.hs repl"`
<initiumdoeslinux> Does it work with the first example as well? Or do you need an attribute to get into the env?
<clever> and then ghcid will :r the project every time you save any file, and show the errors
<initiumdoeslinux> Oh, nice :)
<clever> arcstats bypasses all of the haskell support in nixpkgs, so you get a usable shell without .env
<clever> arcstats doesnt even have a cabal file, i generally avoid cabal when i can
<clever> but machotool does have a cabal file, so it can make use of the haskell support in nixpkgs
newhoggy has quit [Ping timeout: 245 seconds]
sanscoeur has joined #nixos
<initiumdoeslinux> alright, thanks a lot for helping me get started
<yurb> I have built supercollider manually from the source tarball and it doesn't crash. How can I debug the crash in the nixpkgs version?
<yurb> (to possibly fix it in nixpkgs?)
<manveru> grahamc: thanks
cnidario has joined #nixos
<symphorien> yurb: to build it the way nixpkgs does, run nix-shell --pure instead of nix-build
<symphorien> in the resulting shell, run $genericBuild
<symphorien> hum without $
<sphalerite> On my netboot machines, I want wake-on-lan to be enabled whenever possible. However, services.wakeonlan seems to want specific interface names, which I don't know for the general case. Is there a way around this or do I need to write a script for it myself?
<clever> sphalerite: it looks like it has to run ethtool on every interface at shutdown
sanscoeur has quit [Ping timeout: 264 seconds]
<sphalerite> clever: so basically make my own script that will go through /sys/class/net and try it on all of them?
<NYXT> Is there a way to have NixOS put all header files installed into the GCC search path rather than only when I enter a nix-shell with those libraries specified?
<clever> sphalerite: or turn off predictable interface names and just hard-code eth0
<sphalerite> some of the machines may have more than one network interface
<clever> sphalerite: i think it is ran in a context without `set -e`, so you could just list every interface that exists on every machine, maybe
<sphalerite> unrelated, earlyoom is really handy.
<sphalerite> clever: but I don't know all of those :p I think I'll go with the /sys/class/net way
<clever> sphalerite: or make a proper look and set its script in powerManagement.powerDownCommands
<clever> s/look/loop/
<sphalerite> yeah
<yurb> symphorien: I ran nix-shell --pure -p supercollider, then in the shell I ran genericBuild and nothing happens (sorry I'm very new to nix)
<clever> yurb: you need to use -A supercollider
<clever> -p gives you an env with the (broken) supercollider already in $PATH
<clever> -A gives you an env with the source, that is suitable for building it
<ldlework> Does anyone have a snippet that will basically recursively visit a folder of files and do something with each of them? I have a folder of files, and I'd like to generate a systemd preStart script that write all those files to disk using the contents from the source files.
<joepie91> ldlework: fwiw, the concept you're looking for is 'walk'
<joepie91> might help as a search term
<clever> ldlework: "cp -r ${./source} /destination"
<ldlework> clever: that wont work for nixops
<initiumdoeslinux> clever: any idea of why this happens? https://gist.github.com/eHammarstrom/cdec160d06c42893238c5f366cf31a72
<clever> ldlework: the ${./source} will cause nix to copy the entire source into the nix store, and then deploy it to the remote machine
<clever> ldlework: and if that is in a prestart script, it will copy to /destination on the remote machine, during prestart
<yurb> clever: and in what directory should I run the command? It seems to be looking for a default.nix, should I the nixpkgs and run it in the supercollider directory?
<ldlework> clever: I need to do it in the form of "cat >${path_of_current_file} <<EOL ${contents_of_current_file} EOL
<clever> yurb: you can also `nix-shell '<nixpkgs>' -A supercollider --pure` to tell it to find the default.nix in NIX_PATH
<ldlework> I realize the contents of all the files will end up being in that preStart script
<symphorien> yurb: either do this at the root of your checkout, or nix-shell --pure "<nixpkgs>" -A supercollider
<ldlework> But it is the only way to provision files in nixops
<clever> ldlework: why do the contents have to be in the prestart script?
<ldlework> clever: there's no other place they can be
<clever> ldlework: nix can copy it to the remote machine for you if you just "cp ${./source} destination"
<ldlework> what
<clever> ldlework: thats how dependencies work in nix
<ldlework> so I can do znc.nix with a znc.conf next to it, and inside znc.nix in the preStart for systemd.services.znc.preStart to cp ${./znc.conf} /var/lib/znc/configs
<ldlework> ?
<ldlework> seems doubtful
<clever> ldlework: yes, thats exactly how you can do it
<ldlework> that's nuts
<ldlework> clever: thanks again
<clever> ldlework: just beware that nix will rename the file to /nix/store/hash-znc.conf, and then cp will preserve that name, and create /var/lib/znc/configs/hash-znc.conf on you
<ldlework> clever: you can only do this in script-y places right?
<clever> ldlework: so you want to tell cp the full path
<ldlework> like, there's no module option that will just let you specify files and destinations to copy remote files to?
<clever> ldlework: you can do it in any string in nix, you just need to be aware of when that string is being executed
<ldlework> like if I just wanna copy a bunch of crap to /var/lib/znc/moddata without going through systemd?
<symphorien> ldlework: activationCommands
<clever> ldlework: you need to use either systemd or an activation script to run the string at bootup
<symphorien> or activationScripts
<ldlework> I see.
<clever> and activationScripts are more fragile, one error in your script and the machine wont even boot
<ldlework> Ouch.
goaway has quit [Read error: Connection reset by peer]
<clever> i helped one guy that tried to do network in his activation script, and it worked during `nixos-rebuild switch`, and he had since done garbage collection
<sphalerite> yeah activationScripts are to be avoided.
<clever> months later, after forgeting he made such a change, he had a power outage and had to reboot
<clever> due to the error, it aborted in the middle of the activation scripts, and now systemd isnt in $PATH
<clever> and confusing errors spew forth
<sphalerite> the option should probably be marked as internal.
drakonis has quit [Read error: Connection reset by peer]
<ldlework> a well formalized nixpkg options thing, that took in paths/destinations and then produced a sturdy activationscript for copying files to a host would be good.
<sphalerite> or, you know, you could just use a systemd service.
<sphalerite> Or maybe systemd-tmpfiles even
<clever> ldlework: any time you do ${./foo} in a string in nix, nix will copy the path to /nix/store, and substitute in that store path
<ldlework> It seems very strange to use a systemd service who's only function is copying some files when it starts...
<clever> ldlework: and it automatically becomes a dependency, so if your string winds up in a script, nix will copy those files before your script, at all times
<sphalerite> ldlework: what's conceptually wrong with it? It even allows you to declare how other services depend on it.
nur0n0 has joined #nixos
clacke has quit [Quit: Page closed]
joehh has quit [Ping timeout: 252 seconds]
<yurb> Okay, so I've rebuilt supercollider from nix-shell and the crash is reproducible. So it seems to be related to some versions of libraries, probably the jack library (I see an assertion failing right before the crash). What approach should I take to attempt to fix it?
<clever> yurb: if you build it from the same copy of nixpkgs, then it will have the same versions of everything
<symphorien> did you look at the output of ldd ?
krey has quit [Ping timeout: 252 seconds]
dottedmag has quit [Quit: QUIT]
Cypi has joined #nixos
<yurb> clever: yes, I first installed supercollider with nix-env and the crash was there. When compiling manually (outside nix), it doesn't crash.
<Cypi> Hi, I encountered this issue https://github.com/NixOS/nixpkgs/issues/33274 while upgrading teamspeak-client. I am not knowledgeable to understand what the suggested fixes were, what should I do?
krey has joined #nixos
<clever> yurb: what about editing the source, then building it with both nix-shell and nix-build (using an override), and comparing the output, add print statements near the point of failure and compare values
tomberek has joined #nixos
<yurb> clever: I'm afraid my current knowledge of nix is too limited to understand your suggestion:( Can you clarify what is override? Also, by point of failure you mean when the crash happens in the supercollider source?
<clever> yurb: yeah
tzemanovic has joined #nixos
<symphorien> Cypi: is it installed with nix-env ?
<Cypi> Yes it is
<sphalerite> meh, the wake-on-lan isn't working, even though ethtool doesn't complain
<symphorien> qt is still impure with nix, so make sure all qt-related package use the same qt version
<symphorien> ie: uninstall and reinstall them all
<Cypi> I don't know how to distinguish a qt-related package from a non-qt-related package
<tomberek> anyone know if you can instantiate a systemd service file directly on non-NixOS? Even just building it so it can be linked to, but uses all the proper /nix/store paths inside.
Ariakenom has quit [Read error: Connection reset by peer]
<infinisil> tomberek: Yeah hold on
<Cypi> Also, does that concern solely what I installed with nix-env, or also everything in my system-wide configuration.nix?
simukis has quit [Quit: simukis]
<symphorien> your systemwide configuration is built from a single revision of nixpkgs so a single qt version; those one should be in sync
simukis has joined #nixos
<sphalerite> tomberek: nix build -f '<nixpkgs/nixos>' 'config.system.build.units."nix-daemon.service".unit' should work if you have a /etc/nixos/configuration.nix
<sphalerite> tomberek: if not, pass `--arg configuration path/to/configuration.nix`
<infinisil> Damnit I'm too slow
<clever> Cypi, symphorien: that sounds like it might be https://github.com/NixOS/nixpkgs/issues/30775 again
<tomberek> infinisil: sphalerite (how did you find that answer?) (teach a man to fish.. etc)
<Cypi> I'm trying to upgrade everything remotely related to any kind of UI in my nix-env, I'll tell you if it's enough
<sphalerite> tomberek: it doesn't seem to generate the [Install] section though, I think nixos handles dependencies itself by creating .wants directories or something
tzemanovic has quit [Ping timeout: 252 seconds]
<sphalerite> tomberek: nix repl '<nixpkgs/nixos>', then explored the attrs in config.system.build
<hodapp> add qt5 to buildInputs, get "error: cannot coerce a set to a string, at /nix/store/wp7dj4zm44gb84ppg0dhx3mbqcj2qns0-nixos-18.03.132083.06c576b0525/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11"
<clever> hodapp: qt5 is a set
<clever> hodapp: you have to pick an attribute inside qt5
<hodapp> oh
simukis has quit [Client Quit]
<infinisil> sphalerite: tomberek: So I think config.systemd.units."nix-daemon.service".unit might work too
simukis has joined #nixos
<Cypi> symphorien: same thing. (Also, since I _just_ upgraded teamspeak, shouldn't the Qt version at least be compatible with it?)
<tomberek> infinisil: sphalerite: i'm just getting a "don't know what to do with argument"
<sphalerite> tomberek: what command are you running?
<tomberek> nix build -f '<nixpkgs/nixos>' 'config.system.build.units."nix-daemon.service".unit'
johnw has joined #nixos
<clever> [root@amd-nixos:~]# nix build -f '<nixpkgs/nixos>' '(config.system.build.units."nix-daemon.service".unit)'
<clever> error: undefined variable 'config' at (string):1:2
<symphorien> Cypi: a possible scenario is: 1/ you install vlc with qt v5.9 2/ you upgrade you channel 3/ you install teamspeak with the version of the new channel: v5.10 4/ crash
<infinisil> --arg/-A?
<clever> `nix build` uses some weird algos to decide if your refering to a file or a nix expression
<clever> the ( forces it to be an expression
<infinisil> Oh :/
initiumdoeslinux has quit []
<sphalerite> clever: take the (s off
<sphalerite> oh right
<sphalerite> hm
<clever> [root@amd-nixos:~]# nix build -f '<nixpkgs/nixos>' 'config.system.build.units."nix-daemon.service".unit'
fragamus has joined #nixos
<clever> error: don't know what to do with argument 'config.system.build.units."nix-daemon.service".unit'
<clever> sphalerite: it doesnt work either way
<sphalerite> that's silly.
<infinisil> nix-build ftw
<sphalerite> Well, the long way it is. nix build '(with import <nixpkgs/nixos> {}; config.system.build.units."nix-daemon.service".unit)'
<clever> [root@amd-nixos:~]# nix build '(import <nixpkgs/nixos> {}).config.system.build.units."nix-daemon.service".unit'
<clever> this successfully creates a result symlink
<infinisil> More reasons to not like Nix 2.0-style commands :/
<clever> and result/nix-daemon.service now exists
<clever> infinisil: yeah, i find them a bit clunky still
<tilpner> infinisil - nix edit and nix repl are okay though
<sphalerite> infinisil: don't complain, improve!
<clever> tilpner: i find the tab completion in `nix repl` to be worse then `nix-repl`
<tomberek> that depends on nixos-config being set and probably builds an entire nixos configuration
<infinisil> sphalerite: It's C++..
<infinisil> I don't C++ though!
<clever> tilpner: nix build '(import <nixpkgs/nixos> { configuration = ./configuration.nix; }).config.system.build.units."nix-daemon.service".unit'
<tilpner> clever - Didn't notice anything like that
<infinisil> clever: Maybe check again, I think it's been improved
<clever> tomberek: with the above, it now expects you to have a configuration.nix file in the current dir
<tilpner> clever - I agree about nix build though, it's been worse to use than nix-build
drakonis has joined #nixos
<sphalerite> infinisil: you don't have to write C++, you can also just write up a wonderful alternative of how the UI should work and if it's good I'm sure someone else will be willing to implement it :)
<infinisil> sphalerite: That would be something yeah
don_quijote[m] has joined #nixos
<tomberek> (side conversation), nixpkgs is the de-facto standard library for Nix, and has many useful function all over the place, but discoverability is poor.
<sphalerite> "Note: this program is EXPERIMENTAL and subject to change." :)
<infinisil> sphalerite: Then it shouldn't be 2.0
blankhart has quit [Ping timeout: 260 seconds]
<nur0n0> maybe some sort of wiki to compile UI deficiencies would be helpful?
<sphalerite> infinisil: There is no reason for it not to be.
fragamus has quit [Max SendQ exceeded]
<hodapp> tomberek: yes, I rather consistently have problems figuring out effective ways to accomplish commonplace things in it
<sphalerite> infinisil: nix-build and friends are still the stable CLI, they grew a bunch of features with the 2.0 release like alternate stores.
<infinisil> Hmm I guess
<sphalerite> Who knows, maybe a completed new UI will warrant a 3.0.
dbe has quit [Ping timeout: 252 seconds]
<sphalerite> none of wakelan, wol and pythonPackages.wakeonlan seem to allow specifying which interface to send wake-on-lan packets on, which is unfortunate because they choose the wrong one for me. Does anyone know a tool that does allow specifying this, or sends the packet on all interfaces?
<clever> sphalerite: let me check my old notes...
<clever> 404, notes not found
<tomberek> sphalerite: infinisil: okay, i got my own services working now with a super minimal dummy-nixos configuration.nix
<sphalerite> tomberek: \o/
lord| has quit [Ping timeout: 260 seconds]
<WilliamHamilton> what's the equivalent of cabal2nix for the python world? I found some alternative but I'm confused by their usage: for example, what's the equivalent of the .cabal file to pass to it?
<WilliamHamilton> I'd like to use https://pypi.org/project/remt/#description (an application)
lord| has joined #nixos
<tomberek> WilliamHamilton: buildPythonPackage is pretty good
<drakonis> pypi2nix
<WilliamHamilton> tomberek: should I write a .nix file or can I invoke this command from the shell?
<WilliamHamilton> drakonis: installing
<tomberek> WilliamHamilton: that is for use inside a nix expression, see pkgs/top-level/python-packages.nix for examples
<tomberek> sphalerite: infinisil: how would you do the same thing as calling that "nix build" but having it all be done in a nix-expression?
<sphalerite> tomberek: the thing in the parens is the nix expression :)
<tomberek> copy
<tomberek> i guess that was a dumb question
<WilliamHamilton> drakonis: in the --help of pypi2nix it's written that I should use "requirements.txt" generated by pip freeze. However, if I try `pip freeze` it complains about an old version of pip (9.0.1). What should I do?
<ben> do yall know why i need to compile nvidia-settings locally rather than getting a build from a binary cache?
<drakonis> WilliamHamilton, you should direct it to others in this channel
<infinisil> ben: Sounds like that would be unfree software, which can't be provided for download
<drakonis> you compile the nvidia module yourself
sanscoeur has joined #nixos
johnw has quit [Ping timeout: 245 seconds]
johnw has joined #nixos
sanscoeur has quit [Ping timeout: 248 seconds]
<tomberek> is is correct to say that while evaluating a nix expression it does the equivalent of nix-instantiate?
<clever> tomberek: yeah
<clever> tomberek: previously, nix-build was a perl script that did nix-instantiate and nix-store -r
<clever> it has since been replaced with a c++ binary that directly links to the nix libs and calls those internally
aarvar has joined #nixos
camsbury has quit [Quit: WeeChat 2.0]
<tomberek> clever: and then using a nix expression inside a "let ... in.." construct is the same as nix-instantiate --eval?
<clever> tomberek: depends on what is in scope
<clever> nix-repl and/or `nix repl` can also be used to test things more easily
<tomberek> yeah, my primary use is inside a nix expression that will be a declarative hydra build. I just want to have the right mental model as I test things and interactively set everything up.
Guanin has quit [Ping timeout: 260 seconds]
<sphalerite> clever: managed to get it working by setting the broadcast address to a narrower one, reachable via the interface
<clever> sphalerite: oh, and something else about wake-on-lan, it will activate if the card sees the magic bytes, in any packet that reaches it
<clever> sphalerite: so you can either target its mac (hard with it not answering to ARP) or target the mac level broadcast addr
<sphalerite> yeah
<clever> i have made it work before by port-forwarding a port to 192.168.2.255 on the router, and then sending the magic packet from outside
<ldlework> I just tried 'nix-env -i discord' since there is a `discord` package in nixpkgs but it can't be found that way. When I can I 'nix-env -i something' and when can't I? And in the cases I can't, how do I get foo installed? I can't seem to internalize the underlying pattern here.
<clever> ldlework: nix-build '<nixpkgs>' -A discord
<ldlework> yes, but what is the underlying pattern here
hiratara has quit [Ping timeout: 256 seconds]
<ldlework> why can somethings be 'nix-env -i foo' installed?
<ldlework> and other things not? How do I tell?
<clever> ldlework: the first problem is that -i wont show unfree packages if you havent turned on unfree
<clever> ldlework: and the 2nd problem is that `nix-env -iA nixos.discord` wont show the unfree warnings
<ldlework> Interesting.
<ldlework> does nix-build actually install it ?
<clever> it puts it in /nix/store and creates a result symlink pointing to it
<clever> but it wont be in $PATH by default
<drakonis> why do we hide nonfree software?
hiratara has joined #nixos
<ldlework> clever: you mean until I restart the terminal?
<clever> nix-build will never add it to PATH
<ldlework> I see. Why did you suggest it then? Not a challenge, I'm curious.
johnw has quit [Quit: ZNC - http://znc.in]
<clever> ldlework: nix-env doesnt show the unfree errors due to a bug, but nix-build does
johnw has joined #nixos
<ldlework> I see.
<ldlework> clever: nix-env is not affected by the fact that I have nixpkgs.allowUnfree in my configuration.nix right?
<clever> ldlework: configuration.nix has no effect on nix-env and nix-build
<clever> you must also set it in config.nix
<ldlework> config.nix! I've been avoiding knowing what that is. Until now! Thanks.
myshoe has quit [Quit: Lost terminal]
freeman42x[nix] has joined #nixos
<benley> how am I supposed to get into a system to fix it when systemd aborts into "emergency mode", but the root account is locked?
<benley> "Cannot open access to console, the root account is locked. See sulogin(8) man page for more details."
<clever> benley: change the kernel cmdline to `init=/bin/sh` in the bootloader, and when it claims it doesnt exist, tell it to continue
<benley> oh that trick actually still works? wow
<benley> I thought surely in today's age of fifty layers of initramfs I would be totally lost
<clever> benley: and also, $PATH and /bin will be empty so you need to manually `export PATH=/nix/var/nix/profiles/system/sw/bin/`
johnw has quit [Ping timeout: 264 seconds]
<ldlework> What's the thing to source if you want newly installed packages available in an existing terminal?/
<sphalerite> they should be available already
tzemanovic has joined #nixos
<benley> clever: this is great, thank you
<yurb> how can I list all dependencies (including versions) instealled using nix-env -i?
<mpickering> Does nixops not build projects in a sandbox? It seems like there are impurities
<clever> mpickering: it just builds it with nix, so it depends on your systems nix.conf config
coot has quit [Quit: coot]
<mpickering> OH, I think what is happening is that the "src" of the derivation is ./. so the dist folder is being copied when the build happens...
<clever> mpickering: yeah, thats common
<clever> mpickering: either clean up all your dist directories, or use builtins.filterSource to exclude dist
<mpickering> sure sure, I can fix it now but it was just confusing what was going on
<mpickering> thanks
<sphalerit> yurb: nix-store -qR ~/.nix-profile
tzemanovic has quit [Ping timeout: 252 seconds]
Guest45151 has quit [Ping timeout: 240 seconds]
<yurb> thanks
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
sie has joined #nixos
sie is now known as Guest99575
dottedmag has quit [Client Quit]
<yurb> How can I produce a build that would not strip debugging information?
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
__monty__ has quit [Quit: leaving]
Maxdaman1us is now known as Maxdamantus
fragamus has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/661751dad31 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<sphalerite> yurb: set dontStrip = true; in the derivation
<nkaretnikov> fwiw, i've found an issue that describes similar problem: https://github.com/NixOS/nixpkgs/issues/40788 going to try the workaround from it
Guest48325 has quit [Quit: Page closed]
civodul has quit [Ping timeout: 245 seconds]
<yurb> whew, the crash was happening when supercollider tried talking to system (non-nix) jackd
<yurb> when I got rid of the system jackd, the crash disappeared
<sphalerite> ffs now I can't upgrade my user env on my main laptop because the nix daemon runs out of memory… on 16GB…
hiratara has quit [Quit: ZNC - http://znc.in]
hiratara has joined #nixos
simukis has quit [Quit: simukis]
cnidario has quit [Remote host closed the connection]
dottedmag has quit [Quit: QUIT]
cnidario has joined #nixos
sanscoeur has joined #nixos
cinimod_ has quit [Quit: Connection closed for inactivity]
cnidario has quit [Read error: Connection reset by peer]
<averell> /j #mpv
<averell> erm
<{^_^}> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/cbfcc93ee06 (from 3 days ago, history: https://channels.nix.gsc.io/nixos-17.09)
sanscoeur has quit [Ping timeout: 268 seconds]
spear2 has quit [Quit: Leaving]
roconnor has joined #nixos
<clever> averell: nix-env -iA nixos.mpv
roconnor_ has joined #nixos
roconnor has quit [Ping timeout: 252 seconds]
datakurre has quit [Ping timeout: 276 seconds]
datakurre has joined #nixos
liff has quit [Ping timeout: 265 seconds]
ent has quit [Ping timeout: 276 seconds]
ent has joined #nixos
liff has joined #nixos
freeman42x[nix] has quit [Ping timeout: 245 seconds]
Acou_Bass has quit [Ping timeout: 245 seconds]
Tethys has joined #nixos
palo_ has quit [Ping timeout: 240 seconds]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
tzemanovic has joined #nixos
roconnor_ has quit [Ping timeout: 256 seconds]
sanscoeur has joined #nixos
lord| has quit [Ping timeout: 252 seconds]
foldingcookie has joined #nixos
<foldingcookie> how does one specify to patch a package in /etc/nixos/configuration.nix?
<foldingcookie> I have as much as `pkgs.foobar.overrideDerivation (oldAttrs: { patches = [ "/path/foobar.patch" ]; });` but I'm not sure how to replace the original pkgs.foobar with it
Acou_Bass has joined #nixos
sanscoeur has quit [Ping timeout: 252 seconds]
sbdchd has joined #nixos
<foldingcookie> it appears I need to wrap that with parentheses and put it in environment.systemPackages?
smallville7123 has joined #nixos
<elvishjerricco> foldingcookie: You should use an overlay
<elvishjerricco> Put something like that in configuration.nix
lord| has joined #nixos
<elvishjerricco> I made a couple tweaks. Namely I made sure to keep any old patches, and I used `overrideAttrs` instead of `overrideDerivation`
<elvishjerricco> IIUC, `overrideAttrs` directly overrides the arguments to mkDerivation, but `overrideDerivation` overrides something much lower level so it's not usually suitable
<elvishjerricco> Though they often work for the same things
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/5f2da7f837e (from 18 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<nkaretnikov> elvishjerricco: thanks for responding to the comment, i'm going to look into it now
Acou_Bass has quit [Ping timeout: 240 seconds]
asuryawanshi has joined #nixos
<nkaretnikov> i really like grahamc obsession with bots, the borg one made me smile :)
Acou_Bass has joined #nixos
furon has joined #nixos