gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
pie___ has quit [Ping timeout: 250 seconds]
cyounkins has joined #nixos
<infinisil> Hmm I see thanks, I'm not entirely sure what it does though, but anyways :P
<{^_^}> [nixpkgs] @veprbl merged pull request #52531 → openra: 20180923->20181215 → https://git.io/fpjrZ
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/fhUfM
<ottidmes> infinisil: you do understand the intent, right? I mean the examples I gave should speak for themselves.
<infinisil> Yeah
<infinisil> Oh, you know what would be cool, a vim plugin to jump to some file in nix code. So e.g. you can have the cursor under `./foo` in `callPackage ./foo {}` and press a key and it would jump to that file. Probably exists already, it's not really nix specific
<infinisil> Then you just have to know where an attribute is defined and then you can navigate from there
<ottidmes> infinisil: I have updated the gist to include my old shell function, the one I am trying to update now, pkgname, i.e. given /nix/store/58r35bqb4f3lxbnbabq718svq9i2pda3-hello-2.10 or just even hello, give the me the package attribute name defining it, which in the case matches perfectly but in practice this does not have to be the case
<infinisil> Hmm I see
<{^_^}> [nixpkgs] @marsam opened pull request #52747 → guff: init at 0.1.0 → https://git.io/fhUf7
jonaswouters has quit [Quit: Connection closed for inactivity]
nD5Xjz has quit [Ping timeout: 268 seconds]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aleph- has joined #nixos
<ma9e> infinisil: you can do that with "gf" in vim, i use it all the time
<ma9e> gf = global file
ntd has joined #nixos
justanotheruser has joined #nixos
Dedalo has joined #nixos
Dedalo has quit [Client Quit]
ottidmes has quit [Ping timeout: 272 seconds]
Dedalo has joined #nixos
<aleph-> Hey anybody know why I'm getting this error? https://paste.rs/cYr
<aleph-> error: cannot auto-call a function that has an argument without a default value ('stdenv')
<Dandellion[m]> how are you invoking the .nix file?
<aleph-> nix build
<aleph-> That's it.
<Dandellion[m]> When making a package like that (the {}: notation) the .nix needs to be part of the NIXPKGS tree
<aleph-> Ah. So what should I do instead?
<Dandellion[m]> basically, clone nixpkgs, add your .nix in some folder that makes sense for it, and callPackage the nix file in top-level/all-packages.nix
ddellacosta has quit [Remote host closed the connection]
<aleph-> Yeah I ended up just changing it slightly, doing a let pkgs = import <nixpkgs> {}; in pkgs...
<aleph-> Dandellion[m]: Better question, what would be the way to create paths relative to the root of the nix store hash/package store?
<aleph-> Trying to create them in the install phase.
<Dandellion[m]> I'm sorry but I'm extremely new to this as well, so someone else would have to answer this :/
<aleph-> Ah, not a problem.
siers has quit [Ping timeout: 268 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Radivarig has quit [Ping timeout: 250 seconds]
kisonecat has joined #nixos
pie__ has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #52743 → ue4demos: fix download URLs → https://git.io/fhUed
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/fhUJK
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
simukis has quit [Quit: simukis]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhUJD
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
cyounkins has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
kisonecat has quit [Ping timeout: 250 seconds]
ntd has quit [Quit: ntd]
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/fhUU3
<zfnmxt> NixOS noob here: I want to specifiy the BusID for my GPUs in xorg.conf. (The generated xorg.conf lacks these IDs). What's the best way to accomplish that?
<pbb> I'm also a noob, but can you maybe specify it with services.xserver.config?
<zfnmxt> Right, but it seems like that might overwrite the entire config, right?
<zfnmxt> I just want to ammend the generated one :V
<zfnmxt> "extraConfig" also doesn't seem like it'd work...since it's ammending a specific Device section that's already generated.
<zfnmxt> So not really sure what the best way is.
<pbb> have you tried with
<pbb> "";
<pbb> services.xserver.config = ''
<pbb> ...
<pbb> from my experience this amends to the previous definition
<pbb> at least in some places it behaves like that
<pbb> eh, s/""/''/g
<drakonis> you'd have to specify your entire config like that
<pbb> what section do you want to amend to?
<zfnmxt> Is it possible to have NixOS simply not generate the Device sections for my GPUs?
orivej has quit [Ping timeout: 244 seconds]
<pbb> seems like you can configure most sections
<zfnmxt> I just have two GPUs, the generated xorg.conf is like "Section "Device" Identifier "Device-intel[0]" ...EndSection Section "Device" Identifier "Device-nvidia[0]" ... EndSection"
<zfnmxt> To each of those, I want to simply add a "BusID" field, since X won't start without it.
<pbb> okay, are the configs for that maybe set in the hardware-configuration.nix file?
Anton-Latukha has quit [Quit: Leaving.]
<zfnmxt> No clue, hardware-configuration.nix remains a mystery to me :)
<pbb> because without any config those sections would not be generated
<pbb> config.services.xserver.drivers.nvidia.deviceSection = 'BusID...'
<pbb> s/'/"/
<pbb> something like that
<zfnmxt> Is there a man page for the hardware-configuration.nix stuff?
<pbb> I don't think so? it is just a pregenerated file with the necessary config options, so the options set there are the same you can set in other files
<zfnmxt> i.e. where can I look up things like config.services.xserver.drivers.nvidia.deviceSection
<pbb> there is this page:
<pbb> but I looked that part up in the xserver module
<zfnmxt> Ah, I see.
<pbb> so you can see there that it generates a device block for each cfg.drivers, and further up it sets cfg = services.xserver.config
<pbb> ugh
<pbb> I meant cfg = config.services.xserver
<pbb> but you get the point. since all of those modules are also just nix expressions you should be able to read them once you're more familiar with nix
<zfnmxt> Hm, wait. Line 712 says "services.xserver.config"
<zfnmxt> So why isn't it "services.xserver.config.driver.deviceSection"?
<pbb> the options are taken from driver.deviceSection. driver is taken from cfg.drivers (L. 756) and cfg is defined in L. 10
<pbb> services.xserver.config is where the generated config file is saved
<zfnmxt> Ah, I see :D
<pbb> oh, you probably have to omit the "config."
<pbb> that would make it services.xserver.drivers
<pbb> and from there it makes services.xserver.config
<samueldr> the options system's modules can use the options system's options to further configure the system, which is what you're seeing AFAICT :)
<samueldr> the `cfg = config.services.server` is how it resolves the set values without infinite recursion
<samueldr> the `cfg = config.services.xserver`*
<samueldr> the manual's section about the modules is pretty good https://nixos.org/nixos/manual/index.html#sec-writing-modules
<zfnmxt> samueldr: Thanks :D
<zfnmxt> I actually just got it working using "services.xserver.deviceSection"
<zfnmxt> But that's still helpful.
<samueldr> yeah, you can file that in "to read later" :)
<samueldr> I don't know really your level, but when I was starting out with nix, one thing that helped me was reading the (currently numbered) chapters 14 and 15 https://nixos.org/nix/manual/#chap-writing-nix-expressions
<samueldr> though, 15 really is what made things clearer for me with regards to syntax
<zfnmxt> Right, I need to do that still.
<samueldr> 15 is all about the syntax and types
<zfnmxt> I'm really familiar with FP in general, just know nothing about nix specifically + my general Linux knowledge isn't great.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<zfnmxt> Hm, so there is still one issue.
<{^_^}> [nixpkgs] @flokli opened pull request #52748 → gitlab: 11.5.4 -> 11.5.5 (CVE-2018-20229) → https://git.io/fhUUh
<zfnmxt> "deviceSection" only lets you modifiy the first device. I want to also modify the second...
<samueldr> if I understand it right, you have a list of devices somewhere, right?
* samueldr hasn't read all the backlog
acarrico has joined #nixos
<zfnmxt> I'll paste my xorg.conf and then it'll be clear, sec
<samueldr> and the related nix config?
<zfnmxt> Ofc :)
<{^_^}> [nixpkgs] @jtojnar opened pull request #52749 → GTK+ updates → https://git.io/fhUTv
<samueldr> ah, re-read the section, I thought it had been updated since, but maybe it hasn't
<{^_^}> [nixpkgs] @flokli opened pull request #52750 → gitlab: 11.5.4 -> 11.5.5 -> 11.6.0 → https://git.io/fhUTJ
<samueldr> I had to do a... quite ugly workaround for this
<samueldr> (using xinerama didn't work for my uses, but the sections as configured worked)
erictapen has quit [Ping timeout: 246 seconds]
<zfnmxt> No idea why it also places an incorrect BusID inside of the "Device" section for the nvidia card.
<zfnmxt> But basically all I want is for line 86 to be "BusID "PCI:1:0:0""
<zfnmxt> Oh, I see what you did.
<samueldr> changing line 153 from your configuration to that won't work?
<zfnmxt> That's ugly :D
<samueldr> oh right
<zfnmxt> Well, that's the Id of the Intel card.
<samueldr> 2 device sections
<samueldr> right!
<zfnmxt> Right.
<zfnmxt> But, I think I can just do what you did...
<samueldr> ah, so my thought was maybe right
<samueldr> give me a couple secs I'm re-formulating into words
LogicAside has joined #nixos
<samueldr> I'm not sure if there's a way to use that list to set `driver.deviceSection` appropriately
<zfnmxt> samueldr: No, I got it using your hack :D
<zfnmxt> You just specify the whole device inside of "deviceSection"
<zfnmxt> (The whole second device)
<samueldr> :/ seems it's not something one should really play with, but really internal (duh) https://github.com/NixOS/nixpkgs/blob/b9fa31cea0e119ecf1867af4944ddc2f7633aacd/nixos/modules/hardware/video/nvidia.nix#L124
<samueldr> (I was reading and checking lol)
<zfnmxt> And then you get a redundant entry (without the BusID entry) for the second device, but I guess it doesn't matter.
<samueldr> though yeah, it looks like only the nvidia driver has an implementation for it
<zfnmxt> Oh, interesting. I noticed that the optimus_prime configs let you specify both the intel and nvidia ids
<samueldr> (I never had the pleasure to configure an optimus system)
<zfnmxt> But they didn't propagate to the xorg.conf
<samueldr> weird
<zfnmxt> Maybe once I get a bit better I can submit a PR that lets you specify the busIDs for your devices :D
<samueldr> looking at your config, it looks like you were almost there?
<zfnmxt> almost where?
<samueldr> maybe try again nvidia = { optimus_prime = { enable = true; intelBusID ... ; nvidiaBusId ; } ; };
<zfnmxt> Oh, that works
<samueldr> you need the enable AND the pair of bus ID
<zfnmxt> But optimus_prime means Nvidia GPU only.
<samueldr> does it?
<zfnmxt> = killme.jpg level of battery life
<samueldr> >> If enabled, the NVIDIA GPU will be always on and used for all rendering
<samueldr> ah right :)
<samueldr> as I said: never had the "pleasure" :)
<zfnmxt> Haha
<zfnmxt> Well, it's a 1050 Ti at any rate. Nothing to write home about.
<samueldr> is it something that bumblebee can be used for?
<samueldr> I mean, your situation
<zfnmxt> Yes, if you look at my config you'll see bumblebee is enabled :)
<zfnmxt> Not sure if it works, though...
<samueldr> yeah, I just have no experience using all those hybrid shenanigans, my last "hybrid" laptop had a physical switch and required a reboot
<zfnmxt> This is my first laptop with a dGPU, so I'm even newer to it :D
<{^_^}> [nixpkgs] @eadwu opened pull request #52751 → polybar: 3.2.1 -> 3.3.0 → https://git.io/fhUTw
<samueldr> the physical switch made it a "not really hybrid" laptop; it disabled entirely whichever you wasn't using
ryantrinkle has quit [Ping timeout: 244 seconds]
hedning has quit [Ping timeout: 245 seconds]
Mr_Keyser_Soze has joined #nixos
sir_guy_carleton has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyounkins has joined #nixos
cyounkins has quit [Ping timeout: 244 seconds]
drakonis has quit [Remote host closed the connection]
psy3497 has joined #nixos
<psy3497> Anyone knows why there is both users.users and users.extraUsers which is an alias of `users.users`?
<psy3497> Is there a historical reason for that? Is there a preferred choice here?
Dedalo has joined #nixos
Dedalo has quit [Client Quit]
ryantrinkle has joined #nixos
cyounkins has joined #nixos
<Ralith> the preferred choice is usually going to be the thing that isn't an alias
<Ralith> aliases are generally introduced for backwards compatibility with people's configs
<samueldr> yeah, I don't know the reason, but right now it's aliased https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/rename.nix#L234
<psy3497> I see. So users.users is the canonical choice then.
<samueldr> yeah
<psy3497> Thanks :)
<samueldr> I think it might be a good idea to filter out the aliases from the options.html listing
<samueldr> (like we now do for the packages page)
<psy3497> Perhaps so.
<samueldr> ah, though the description is clearer than what it was for the packages :)
<samueldr> an aliased option says its aliased
<samueldr> whereas packages would simply show up multiple times
<psy3497> Indeed!
<psy3497> Gotta shut down be back later!
psy3497 has quit [Quit: WeeChat 1.9.1]
<simpson> > /abs/path + "/" + ./subdir
<{^_^}> /abs/path/var/lib/nixbot/state/nixpkgs/subdir
Mr_Keyser_Soze has quit [Quit: Then he was gone...]
lassulus_ has joined #nixos
<clever> > /abs/path + ("/" + "subdir")
<{^_^}> /abs/path/subdir
<clever> simpson: ./subdir is another absolute path
<clever> and path + "/" is a no-op
<simpson> clever: Yep, I see it now.
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
<clever> after every concat, it will turn it into an absolute path, and strip any redundant elements
jtojnar has quit [Quit: jtojnar]
aleph- has quit [Ping timeout: 250 seconds]
Guanin has quit [Remote host closed the connection]
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
ensyde has quit [Ping timeout: 272 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.2]
cyounkins has quit [Ping timeout: 250 seconds]
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #52753 → uchiwa: 1.3.1 -> 1.5.0 → https://git.io/fhUIu
phreedom has quit [Ping timeout: 256 seconds]
<simpson> I have a bunch of `runCommand` invocations, and then I'm collating them into a `linkFarm`. I'd like to run a final test on the link farm, and I'd like it to behave like a normal checkPhase. Is there a way to do that?
Guest17278 has joined #nixos
aleph- has joined #nixos
<elvishjerricco> simpson: `overrideAttrs` on the linkFarm derivation and set `checkPhase` would probably do it.
Guest17278 has left #nixos ["User left"]
<simpson> elvishjerricco: Thanks, I hate it~ Sounds great, I'll give it a shot.
Guest17278 has joined #nixos
cyounkins has joined #nixos
hydraz has joined #nixos
ddellacosta has joined #nixos
^W has quit [Quit: ZNC 1.7.1 - https://znc.in]
hydraz is now known as ^W
<{^_^}> [nixpkgs] @dtzWill opened pull request #52754 → flatpak: 1.0.5 -> 1.1.2 → https://git.io/fhULI
^W has quit [Quit: The Lounge - https://thelounge.github.io]
^W has joined #nixos
^W has quit [Client Quit]
MinceR has quit [Ping timeout: 272 seconds]
hydraz has joined #nixos
MinceR has joined #nixos
<simpson> elvishjerricco: Hm, doesn't seem to work. I wonder if that's just something that happens with runCommand.
<elvishjerricco> simpson: I'm surprised. There's no reason that would be the case.
<elvishjerricco> Can I see what you tried?
<simpson> The relevant snippet: https://bpaste.net/show/e1b850478e4d
ddellacosta has quit [Remote host closed the connection]
jD91mZM2 has joined #nixos
<simpson> I expected it to run for several minutes, but it didn't. I tried deliberately failing in the checkPhase, but nothing happene.d
<simpson> The whole source is at https://github.com/monte-language/typhon/blob/master/nix-support/mast.nix#L37 if you want to see the context.
<elvishjerricco> simpson: Hm yea, this build succeeds for some reason:
<elvishjerricco> `nix-build -E 'with import <nixpkgs> {}; (runCommand "hi" {} "touch $out").overrideAttrs (old: { doCheck = true; checkPhase = "false"; })'`
<elvishjerricco> Should have failed...
<elvishjerricco> simpson: Ah, it's because `runCommand` sets `buildCommand`
<elvishjerricco> So the stdenv's generic building stuff doesn't happen at all
<simpson> Got it.
gerschtli has quit [Quit: WeeChat 2.2]
<elvishjerricco> simpson: nix-build -E 'with import <nixpkgs> {}; (runCommandCC "foo" {} "touch $out").overrideAttrs (old: { buildCommand = "${old.buildCommand}\nfalse"; })'
gerschtli has joined #nixos
<elvishjerricco> That derivation properly fails
<simpson> Ah, interesting. Appending onto the buildCommand.
palo1 has joined #nixos
<simpson> Yep, that's getting the tests to run. Nice hack, thanks.
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
palo has quit [Ping timeout: 268 seconds]
palo1 is now known as palo
<simpson> elvishjerricco++
<{^_^}> elvishjerricco's karma got increased to 9
Hotkeys has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/913aa6b7c8a (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Dedalo has joined #nixos
hydraz is now known as ^W
endformationage has quit [Ping timeout: 240 seconds]
<jD91mZM2> Why does fuse refuse (sorry, pun not intended until now) to work when gotten from nix-shell? I can use it normally no problem, but then I do `nix-shell -p fuse` and it doesn't work anymore. "Operation not permitted"
immae has quit [Quit: WeeChat 2.3]
<jD91mZM2> More specifically, unmounting doesn't work. Mounting still works fine
abathur has quit [Ping timeout: 250 seconds]
fusion809 has quit [Remote host closed the connection]
immae has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52755 → you-get: 0.4.1181 -> 0.4.1193 → https://git.io/fhUqe
cyounkins has quit [Remote host closed the connection]
vbernat has quit [Remote host closed the connection]
cyounkins has joined #nixos
Radivarig has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
orivej has joined #nixos
phreedom has joined #nixos
periklis has joined #nixos
periklis has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @dotlambda merged pull request #52755 → you-get: 0.4.1181 -> 0.4.1193 → https://git.io/fhUqe
<{^_^}> [nixpkgs] @dotlambda pushed commit from @r-ryantm to master « you-get: 0.4.1181 -> 0.4.1193 (#52755) »: https://git.io/fhUmm
AppAraat has joined #nixos
periklis has joined #nixos
<AppAraat> hello, in nix-2.1.3-x86_64-linux/install I can set custom paths to where I can have my nix store. Will that break anything? I'd prefer my nix store to be in my home dir.
<elvishjerricco> AppAraat: Nix
<elvishjerricco> Nix 2.0 has chroot stores
<elvishjerricco> Only on Linux
<elvishjerricco> Dunno if there's a way to make a chroot store the default though
<AppAraat> I'll take a look at that thx
juhe has joined #nixos
periklis has quit [Ping timeout: 250 seconds]
markus1189 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52756 → libv4l: 1.16.2 -> 1.16.3 → https://git.io/fhUmX
jasongrossman has quit [Ping timeout: 264 seconds]
thc202 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52757 → wavebox: 4.5.5 -> 4.5.9 → https://git.io/fhUYJ
sbdchd has quit [Remote host closed the connection]
freeman42x[nix] has joined #nixos
<{^_^}> [nixpkgs] @ivan opened pull request #52758 → snscrape: init at 0.1.3 → https://git.io/fhUYk
<{^_^}> [nixpkgs] @vdemeester closed pull request #52581 → gitlab-workhorse: migrate to using buildGoPackage → https://git.io/fhvme
freeman42x[nix] has quit [Ping timeout: 250 seconds]
<sphalerite> AppAraat: setting a custom store path will break binary substitution, i.e. you'll have to build everything (including the compiler toolchain and stuff) from source.
<elvishjerricco> sidenote: Last time I tried to bootstrap nixpkgs from source manually, it failed with chgrp errors. That was disappointing
<{^_^}> [nixpkgs] @Izorkin opened pull request #52759 → pythonPackages.pg8000: fix build → https://git.io/fhUYX
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<sphalerite> elvishjerricco: huh? I haven't had that problem
<elvishjerricco> sphalerite: I did `nix build --substituters "" nixpkgs.hello`, and one of the `coreutils` tests failed w.r.t. to chgrp. Never really tried to figure it out beyond confirming that `mutableUsers = false;` did not influence it
juhe has quit [Read error: Connection reset by peer]
juhe has joined #nixos
<elvishjerricco> er, add a `--store $(pwd)/foo`
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @akru opened pull request #52760 → lib/make-ext4-fs: more efficient store maker → https://git.io/fhUOU
<{^_^}> [nixpkgs] @Ma27 merged pull request #52737 → fsarchiver: init at 0.8.5 → https://git.io/fhJpu
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fhUOI
chreekat[m] has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #52759 → pythonPackages.pg8000: fix build → https://git.io/fhUYX
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fhUOW
Makaveli7 has joined #nixos
immae has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 250 seconds]
immae has joined #nixos
Makaveli7 has quit [Remote host closed the connection]
tyang has joined #nixos
ottidmes has joined #nixos
vidbina has joined #nixos
alex`` has joined #nixos
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
orivej has joined #nixos
seanparsons has joined #nixos
thc202 has quit [Ping timeout: 268 seconds]
LysergicDreams has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @vdemeester opened pull request #52761 → minishift: 1.27.0 -> 1.29.0 → https://git.io/fhU30
seanparsons has quit [Client Quit]
LysergicDreams has joined #nixos
lostman has quit [Quit: Connection closed for inactivity]
seanparsons has joined #nixos
<Orbstheorem> So, I just made a new derivation based on an existing configuration (https://tinyurl.com/y7mntotr) I built it using `nix build -f =(echo "with import <nixpkgs/nixos> {}; system") -I nixos-config=Triglav-ccc.nix` and installed it on a new drive using `sudo nixos-install --root /mnt/local/now --system $(readlink -f result)` However, the channel installed on the system is 18.03. How can I configure it to install
<Orbstheorem> version 18.09? do I have to change system.stateVersion?
<ottidmes> ,stateVersion Orbstheorem
<{^_^}> Orbstheorem: Setting stateVersion to the latest release doesn't update anything and can only break your setup at best. If you want to regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually upgraded with the new value
<ottidmes> Orbstheorem: so no, the state version has nothing to do with on what channel your are
JosW has joined #nixos
juhe has quit [Read error: Connection reset by peer]
<ottidmes> Orbstheorem: what does nixpkgs point to when you check the value of NIX_PATH
juhe has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52762 → linuxPackages.sysdig: 0.24.1 -> 0.24.2 → https://git.io/fhU3w
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0e196950134 (from 49 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.django_1_8: 1.8.18 -> 1.8.19 »: https://git.io/fhU3H
<ottidmes> Orbstheorem: but to answer your question, it is probably easiest to make a checkout that points to 18.09, i.e. clone https://github.com/NixOS/nixpkgs and follow the instructions in the README here: https://github.com/NixOS/nixpkgs-channels, and then do `NIX_PATH=nixpkgs=/path/to/your/checkout nix build -f =(echo "with import <nixpkgs/nixos> {}; system") ...`
jasongrossman has joined #nixos
<ottidmes> Orbstheorem: or do whatever you do with nix-channels to make that happen, but that would also update your build system
<{^_^}> [nixpkgs] @bachp opened pull request #52763 → gitlab-runner: 11.5.0 -> 11.6.0 → https://git.io/fhU3j
slyfox has quit [Ping timeout: 250 seconds]
Makaveli7 has joined #nixos
agander has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to release-18.09: https://git.io/fhUsc
Makaveli7 has quit [Quit: Leaving]
orivej has quit [Ping timeout: 246 seconds]
thc202 has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #52758 → snscrape: init at 0.1.3 → https://git.io/fhUYk
<{^_^}> [nixpkgs] @dotlambda pushed commit from @ivan to master « snscrape: init at 0.1.3 (#52758) »: https://git.io/fhUs1
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktop: 1.5.3 -> 1.5.4 »: https://git.io/fhUs5
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
aleph- has quit [Ping timeout: 250 seconds]
Lears has joined #nixos
[Leary] has quit [Ping timeout: 244 seconds]
agander_ has joined #nixos
agander has quit [Ping timeout: 250 seconds]
[Leary] has joined #nixos
agander_ is now known as agander
<obadz> is there a way to download a closure from ofborg's cache?
Lears has quit [Ping timeout: 250 seconds]
sigmundv_ has joined #nixos
<siraben> Anyone able to reproduce a weird package conflict when I install firefox and tor-browser-unwrapped ?
iyzsong has joined #nixos
<ottidmes> siraben: that is not that weird, the tor browser is based on firefox, so there will be collisions between them when installed as part of systemPackages, since they will both supply certain files
<siraben> How do I get Tor Browser to work then?
<siraben> I can't launch it, and launching firefox breaks
<{^_^}> [nixpkgs] @Izorkin opened pull request #52765 → datadog-agent: 6.4.2 -> 6.8.2 → https://git.io/fhUGQ
vidbina has quit [Ping timeout: 252 seconds]
<ottidmes> siraben: good question, most collisions I had were simple documentation or executables, which are simple to resolve, but I doubt you can just give one priority and that it then is resolved. That probably only resolves the collision messages and not the actual problem. One thing I could think of is to run one from nix-env
<siraben> ottidmes: are you able to get it to work?
<ottidmes> siraben: I haven't tried it myself
<siraben> ottidmes: could you try it? Perhaps it's reproducible
<ottidmes> siraben: I do not doubt it, I get how it could be problematic if you install two very similar things in the same global namespace
markus1189 has joined #nixos
freeman42x[nix] has joined #nixos
Ariakenom has joined #nixos
juhe has quit [Read error: Connection reset by peer]
juhe has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #52749 → GTK+ updates → https://git.io/fhUTv
<{^_^}> [nixpkgs] @jtojnar pushed 7 commits to staging: https://git.io/fhUZW
<ottidmes> siraben: I just checked and installing from nix-env works
<ottidmes> siraben: and also, it makes total sense that it breaks your firefox setup, considering this: /nix/store/qnsa6dgpm2n2ynzrlisyx2dba10lwq4c-tor-browser-unwrapped-7.5.6/bin/firefox, it even uses the exact same profile directories and such, so you really should consider tor as a firefox, and running two firefoxes is possible with NixOS, but you cannot have 2 globally installed
juhe has quit [Read error: Connection reset by peer]
juhe has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
Synthetica has joined #nixos
<ottidmes> Synthetica: I just tried installing your nix-linter, but if I use the instructions I get error: cannot auto-call a function that has an argument without a default value ('stdenv')
slyfox has joined #nixos
<Synthetica> ottidmes: Oh, that's strange, I don't think I use stdenv anywhere in the repo...
<ottidmes> Synthetica: it might be my setup, not sure, but I normally only get this when not properly callPackage'd, I just ran sudo cachix use nix-linter, added the config, rebuild switched, and ran: nix-build -A nix-linter
<ottidmes> when I run it with verbose I get: evaluating file '/nix/store/3ca5bpxi3rcb4zmw4ppi3d2jd0rf6vpa-nix-2.1.3/share/nix/corepkgs/derivation.nix'
<ottidmes> Synthetica: I guess I will just clone it and build it from source
<Synthetica> Oh, yeah, I don't think you can install from cachix that way (domenkozar ?)
<Synthetica> The intention is that you clone and then do that, I should probably make that more clear in the readme
agander has quit [Ping timeout: 250 seconds]
<ottidmes> Synthetica: ah, that makes more sense to me, I was already thinking, what kind of magic is going on, does it not need to have the sources which are not in nixpkgs, to determine whether it can get it from cache, but it does, no magic, good to know!
siers has joined #nixos
hotfuzz has joined #nixos
<domenkozar> yeah cachix only takes care of binaries
<domenkozar> there's no overlays support as such :)
boogiewoogie has joined #nixos
orivej has joined #nixos
simukis has joined #nixos
Anton-Latukha has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #52735 → glom: init at 1.31.6 → https://git.io/fhJbQ
<{^_^}> [nixpkgs] @jtojnar pushed 10 commits to master: https://git.io/fhUnV
equivrel has joined #nixos
<{^_^}> [nixpkgs] @joachifm merged pull request #52649 → source-sans-pro: 2.010 -> 2.040 → https://git.io/fhfbV
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fhUnr
agander has joined #nixos
m0rphism has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @timokau opened pull request #52767 → Fix vim-plugin dependencies → https://git.io/fhUnS
pie__ has quit [Ping timeout: 252 seconds]
orivej_ has joined #nixos
orivej has quit [Read error: Connection reset by peer]
erictapen has joined #nixos
orivej_ has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
equivrel has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52768 → stellarium: 0.18.2 -> 0.18.3 → https://git.io/fhUc3
hedning has joined #nixos
sigmundv__ has joined #nixos
siers has quit [Ping timeout: 246 seconds]
<AppAraat> there seems to be two different definitions with the same name: https://bpaste.net/show/43e8fd5f3101 - is this normal?
vidbina has joined #nixos
agander_ has joined #nixos
agander has quit [Ping timeout: 246 seconds]
<AppAraat> here's the meta info in json format: http://ix.io/1wHj
thc202 has quit [Ping timeout: 250 seconds]
<ottidmes> AppAraat: the attribute name has to be unique, but you can indeed have multiple attribute names referring to the same thing, and thus giving multiple hits
<{^_^}> [nixpkgs] @gilligan opened pull request #52769 → skopeo: 0.1.32 -> 0.1.34 → https://git.io/fhUcp
<ottidmes> AppAraat: so, yes, this is normal behavior
Phillemann has joined #nixos
<Phillemann> I need to patch my Kernel and add one line to a .c file. How do I do this?
<Phillemann> I mean, assuming I have a .patch file.
<ottidmes> Phillemann: you need this I guess: https://nixos.org/nixos/options.html#kernelpatches
<{^_^}> [nixpkgs] @zimbatm merged pull request #51541 → fix infinite recursion caused by the unnecessary inspection of options → https://git.io/fpXG7
<{^_^}> [nixpkgs] @zimbatm pushed commit from @msteen to master « fix infinite recursion caused by the unnecessary inspection of options + fix is parent of mount point check (#51541) »: https://git.io/fhUCk
<AppAraat> ottidmes: so in this case one has attribute "nixpkgs.rofi" and the other has "nixpkgs.rofi-unwrapped" ?
<ottidmes> AppAraat: right
<AppAraat> hmm ok, thanks.
<Phillemann> ottidmes: Oh, I just didn't think it'd be _that_ simple. Thanks!
<{^_^}> [nixpkgs] @zimbatm merged pull request #51566 → GCE OSLogin module: init → https://git.io/fpXFo
<{^_^}> [nixpkgs] @zimbatm pushed 8 commits to master: https://git.io/fhUCC
<ottidmes> AppAraat: and thank you! Yesterday I made a complicated solution to figure out the file defining a package, and did not know this information was actually in the meta attrset under the position attribute name. It does not cover all packages my solution does, so fortunately it was not a complete waste
<AppAraat> haha, you're welcome. Had no idea I could be so useful :p
crmlt has joined #nixos
jD91mZM2 has quit [Ping timeout: 240 seconds]
<AppAraat> hmm, does this mean it's trying to compile the derivation locally or is it getting the binaries from the server? http://ix.io/1wHp
agander_ is now known as agander
simukis has quit [Remote host closed the connection]
<AppAraat> I guess I'm going to find out by issuing --prebuilt-only
<AppAraat> hmm nope, still can't allocate memory.
simukis has joined #nixos
saltsa has joined #nixos
Dagger has quit [Excess Flood]
Dagger2 has joined #nixos
<ottidmes> AppAraat: it will explicitly say if it is going to build paths, and it only mentions "these paths will be fetched" including "/nix/store/yiv4mk6mmi20s7v9c2fkj2gapbiw2pgm-rofi-unwrapped-1.5.1", so you just seem to be out of memory
<AppAraat> I'm gonna try setting GC_INITIAL_HEAP_SIZE to 128mb
<AppAraat> ok, 64 then
<AppAraat> 32? :S
<ottidmes> AppAraat: on what device (or should I say apparaat?) are you running this?
<AppAraat> heh, I'm using ~512mb out of 1.95G currently and it's in a VM
<ottidmes> that is weird, 1.5G should be plenty
silver has joined #nixos
<AppAraat> maybe there's no more storage available? http://ix.io/1wHt
<AppAraat> yep, "echo 1 > /proc/sys/vm/overcommit_memory" did the trick! Thanks :)
Myrl-saki is now known as Myrly-kuri
periklis has joined #nixos
Theuni2 has joined #nixos
jD91mZM2 has joined #nixos
<{^_^}> [nixpkgs] @obadz merged pull request #52712 → mono: drop minor versions and upgrade to 5.16.0.220 → https://git.io/fhJaO
<{^_^}> [nixpkgs] @obadz pushed 8 commits to master: https://git.io/fhUWH
bobby_brb3 has left #nixos ["WeeChat 2.3"]
erictapen has quit [Ping timeout: 246 seconds]
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @vbgl merged pull request #52342 → ocamlPackages.csv-lwt: init at 2.2 → https://git.io/fpNgx
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.csv-lwt: init at 2.2 »: https://git.io/fhUlY
kai_w has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 4 commits to master: https://git.io/fhUlu
<{^_^}> [nixpkgs] @jtojnar pushed 435 commits to staging: https://git.io/fhUlr
<ottidmes> any idea why nix-index does not include my overlays, while running the same command as nix-index does, does return things defined in overlays
crmlt has quit [Ping timeout: 268 seconds]
<LnL> nix-index only works for stuff cached by hydra
<ottidmes> LnL: right, makes sense considering it has to know the files in the outputs, my use case just needs the out path -> attr path aspect so it would not need it for that. Guess I could fork nix-index and simplify it to only do that
thc202 has joined #nixos
<kai_w> nixpkgs.pkgsCross.avr.buildPackages.gcc is a drop-in replacement for the old avrgcc right? Or is there any subtlety I should be aware of?
<AppAraat> hmm, I can't seem to run rofi: https://apaste.info/EyXU - this mail thread seems to have a variable for setting the locale (GUIX_LOCPATH): https://lists.gnu.org/archive/html/bug-guix/2017-08/msg00099.html - but I can't seem to find an equivalent.
WilliButz has quit [Remote host closed the connection]
WilliButz has joined #nixos
<ottidmes> AppAraat: probably has to do with glibc locales format change, I will get you the relevant issue with workarounds
<AppAraat> thanks, I'll take a look.
agander has quit [Ping timeout: 272 seconds]
<wedens> is it possible to make indentation in nix-mode in emacs less annoying? it shifts everyting to the first column. e.g. I type `xyz = abcd { <RET>` and cursor is at the beginning of the line
Theuni2 has joined #nixos
__Sander__ has joined #nixos
hedning has quit [Quit: hedning]
immae has quit [Quit: WeeChat 2.3]
Phillemann has left #nixos ["WeeChat 2.3"]
kisonecat has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #52747 → guff: init at 0.1.0 → https://git.io/fhUf7
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhU8u
<{^_^}> [nixpkgs] @Ma27 merged pull request #52744 → osquery: fix build → https://git.io/fhUvm
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fhU89
<siraben> ottidmes: ah I see. Just curious, what browser do you use?
civodul has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/60739e534d9 (from 48 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
immae has joined #nixos
<siraben> Ah. Looks like uninstalling Firefox and installing tor-browser-unwrapped isn't cutting it. I should rebuild and switch
<{^_^}> [nixpkgs] @rasendubi merged pull request #52769 → skopeo: 0.1.32 -> 0.1.34 → https://git.io/fhUcp
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fhU8x
<{^_^}> [nixpkgs] @eadwu opened pull request #52770 → electron: 3.0.5 -> 4.0.0 → https://git.io/fhU8h
<ottidmes> siraben: Firefox for most things (with tree style tabs), Google Chrome for things I want to stay logged into (Gmail, Netflix, Spotify Web, etc.)
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<siraben> ottidmes: tree style tabs?
<{^_^}> [nixpkgs] @rasendubi merged pull request #52768 → stellarium: 0.18.2 -> 0.18.3 → https://git.io/fhUc3
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fhU4e
<siraben> Darn I wish I could get both Tor and Firefox working like in every other distro
Dandellion[m] is now known as Dandellion[m]1
<siraben> <freenode_ott "siraben: https://addons.mozilla."> ottidmes: cool. I use Tridactyl myself
Dandellion[m]1 is now known as Dandellion[m]
<ottidmes> siraben: you probably can, I am just not quite sure how, except for using nix-env to keep one or maybe just not installing one via systemPackages and using the direct store path (or make a small wrapper that only exposes the tor firefox binary as tor-firefox for example)
<siraben> I think then the build for the Tor browser has to be patched
Theuni2 has joined #nixos
<ottidmes> could be, I am not sure how other distros handle it, I do not maintain it, so no idea
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52771 → skrooge: 2.16.2 -> 2.17.0 → https://git.io/fhU4O
b has joined #nixos
dsx has quit [Quit: dsx]
periklis has quit [Remote host closed the connection]
chris| has quit [Remote host closed the connection]
sigmundv_ has quit [Ping timeout: 240 seconds]
kai_w has quit [Quit: Konversation terminated!]
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chris| has joined #nixos
<{^_^}> [nixpkgs] @svanderburg merged pull request #50596 → Mobile updates → https://git.io/fpcz4
<{^_^}> [nixpkgs] @svanderburg pushed 18 commits to master: https://git.io/fhU42
<{^_^}> [nixpkgs] @jtojnar opened pull request #52772 → mesa_noglu: fix build → https://git.io/fhU4Q
xy2_ has joined #nixos
ryantrinkle has quit [Ping timeout: 246 seconds]
iyzsong has quit [Ping timeout: 268 seconds]
erictapen has joined #nixos
<wedens> what's the difference between adding something to `buildInputs` and to PATH in `wrapProgram`?
<siraben> ottidmes: looks like I was installing it song all along
kisonecat has quit [Ping timeout: 250 seconds]
<siraben> Should be tor-browser-bundle-bin
<siraben> Hm but it didn't appear in nix search
<siraben> I had to browse the GitHub repository
<siraben> Never mind it does appear in nix search, should've updated cache
<ottidmes> siraben: it being called -unwrapped was an indicator it was an internal package, but I did not know that tor-browser-bundle-bin was the right one either
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52773 → solarus: 1.5.3 -> 1.6.0 → https://git.io/fhUBO
agander has joined #nixos
<ottidmes> wedens: buildInputs as the name implies are about the build dependencies, PATH is about the runtime dependencies
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52775 → gnused: 4.5 -> 4.7 → https://git.io/fhUBW
<wedens> ottidmes: thanks. I must've misunderstood something
<ottidmes> wedens: its a bit more nuanced than that though, buildInputs bring things into scoped, and Nix is does some smart checking what things are going to end up to also be needed at runtime, and so some buildInputs can end up as runtime dependencies
<wedens> yeah, that's what caused my confusion. I'm making a derivation for a bash script
<wedens> and I was a bit confused why `buildInputs` didn't work, but `makeWrapper` did. makes sesnes, now that I think of it
<ottidmes> wedens: so depending on how you package the bash script, if it uses explicit things like ${pkgs.jq}/bin/jq or just jq (doing ${pkg.jq} also makes it a dependency), it will require PATH for the latter
<samueldr> buildInputs can do more than simply be "build Inputs". Some, like the *hook ones, will modify the build process
justanotheruser has quit [Ping timeout: 272 seconds]
erictapen has quit [Ping timeout: 246 seconds]
erictapen has joined #nixos
<typetetris> Merry Christmas!
ntd has joined #nixos
<{^_^}> [nixpkgs] @jtojnar closed pull request #52775 → gnused: 4.5 -> 4.7 → https://git.io/fhUBW
fusion809 has joined #nixos
genesis has quit [Remote host closed the connection]
lokado has joined #nixos
endformationage has joined #nixos
<Baughn> Soo... I have a kernel param that needs to be applied specifically to first-generation Ryzen CPUs.
<Baughn> Without which, some of them will crash. Because the C6 bug is *still* a problem.
kp__ has quit [Ping timeout: 250 seconds]
<ottidmes> Baughn: Hmm, I had troubles with my first gen Ryzen with that too, I disabled a C state related thing in my BIOS and it went away, but I am not quite sure what the consequences are, probably higher power usage
<Baughn> Higher power usage.
duairc has quit [Read error: Connection reset by peer]
<ottidmes> bit with it enabled, it would crash every other week
<Baughn> Quite.
<ottidmes> so consider me interested if a patch can solve it. I rather build my kernel from source than having the higher power usage, or it is just a kernel param
<Baughn> I'll let you know once I get the kernel to build. :)
<ottidmes> ok, thanks!
Radivarig has quit [Ping timeout: 244 seconds]
<Church-> Hey is there a way for me to create directories inside a nice store path? Like when building a package inside the install phase I need to create a directory tree inside the root of the package path. So create like /srv/ in the path residing at /nix/store/aHsfjejs-source/
<Baughn> Sure? mkdir.
<Baughn> Only while building that particular derivation, of course.
<slabity> Yea, in the install phase you can put `mkdir $out/srv` and you should get what you want
<slabity> Assuming I'm understanding your question correctly
<Church-> Huh guess I'll see if that works, was stupidly trying to mkdir in the $src file tree and that wasn't working.
<Church-> Thanks!
Theuni2 has joined #nixos
vidbina has quit [Ping timeout: 250 seconds]
<Baughn> You'll want to edit the kernel param appropriately. This was on a 6-core ryzen with HT enabled.
_d0t has joined #nixos
<_d0t> hi! Is there an easy way to convert snap packages to nix?
<_d0t> Something like cabal2nix but for snap would be ideal.
pie__ has joined #nixos
<wedens> if I have multiple versions of the same package, how do I manage binaries names? won't they conflict?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52778 → react-native-debugger: 0.8.1 -> 0.8.2 → https://git.io/fhU0H
<wedens> should I just rename them and append e.g. version prefix or can it be managed differently?
endformationage has quit [Ping timeout: 240 seconds]
<AppAraat> ottidmes: I still get the "Failed to set locale" here despite me setting LOCALE_ARCHIVE_2_27 to /nix/store/qhdzv5xc39wjw8n1wdjr37ff6rdl77hh-glibc-locales-2.27 (which is the output of 'nix-build --no-out-link "<nixpkgs>" -A glibcLocales'
<AppAraat> do I have to rebuild the definition?
<ottidmes> Baughn: thanks, I will be trying it on my server! I have a Ryzen 1700, but with HT enabled as well. I just hope it is not that other bug mentioned in the issue you based your fixes on, because on my server is almost always on a low load, so I would expect more crashes than, but definitely worth a short, too bad though that it takes a few weeks to be sure
<ottidmes> AppAraat: changes in env variable should not impact the result of a build, so no, rebuilding would just give you the same out path, could you test the result of: find /nix/store -maxdepth 1 > >(grep 'glibc-locales')
erictapen has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @markuskowa merged pull request #52688 → rtl_433: 18.05 -> 18.12 → https://git.io/fhJCG
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhUEt
<ottidmes> AppAraat: then it seems unrelated to the issue I mentioned
<AppAraat> oh
<AppAraat> is it a bug maybe?
justanotheruser has joined #nixos
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes> AppAraat: seems relevant: https://github.com/rycee/home-manager/issues/354
<{^_^}> home-manager#354 (by JonathanReeve, 17 weeks ago, open): Rofi installed by home-manager can't set locale
<ottidmes> AppAraat: how did you install rofi?
<AppAraat> nix-env -i rofi-unwrapped-1.5.1
<Church-> Wait really? I think it set locale fine on my machine
<Church-> And I installed via home manager
<Church-> Let me check when I get home.
<ottidmes> AppAraat: You generally never want the unwrapped version, try rofi instead
<AppAraat> but there is no normal rofi, when I tried it complained that there was no definition with that name.
erictapen has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #52757 → wavebox: 4.5.5 -> 4.5.9 → https://git.io/fhUYJ
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhUEC
<Myrly-kuri> Hm.
<ottidmes> AppAraat: there sure it, I am using it in my systemPackages, just pkgs.rofi
<Myrly-kuri> > A motivating example is the problem of using "fetchurl" on a dynamically generated tarball whose contents are deterministic, but where the tarball does not have a canonical form.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):214:124
<Myrly-kuri> What does this mean?
<Myrly-kuri> Oh, I think I get it.
<simpson> Myrly-kuri: A tarball is not internally sorted, but the files are simply added on in no particular order. Often the order is still chronological, so it's predictable, but that's not always the case.
_d0t has quit [Ping timeout: 246 seconds]
<simpson> Some services will send you the same files, but not the same tarball.
<ottidmes> Church-: it is not yet clear what the issue is with AppAraat's rofi installation, but I think the issue I linked is again about the different glibc-locales versions, where if you had 2.26 and 2.27 at the same time it caused problems because 2.27 used a backwards incompatible format
<Church-> ottidmes: So checking on nixpkgs, but rofi and rofi-unwrapped point to the same package
<Church-> Rofi-unwrapped-1.5.1
<Church-> Odd
<Myrly-kuri> simpson: Right, thanks.
<Church-> AppAraat: Try this nix-env -iA nixos.rofi
<AppAraat> Church-: error: attribute 'nixos' in selection path 'nixos.rofi' not found
<ottidmes> Church-: or if you do not want to load that huge file
<ottidmes> Church-: rofi-unwrapped = /wheel/fork/nixpkgs/pkgs/applications/misc/rofi/default.nix, rofi = /wheel/fork/nixpkgs/pkgs/applications/misc/rofi/wrapper.nix (on my system)
<AppAraat> I had the json metadata printed a while ago: http://ix.io/1wHj
vidbina has joined #nixos
<samueldr> it may be a case of -i vs. -iA; both `name` whill be rofi-unwrapped https://nix.samueldr.com/explorer/?channel=nixos-18.09&query=%5Erofi-unwrapped
<samueldr> ,-iA
<samueldr> ,-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.
<ottidmes> samueldr: they are named the same, so rofi will report itself as "rofi-unwrapped-1.5.1"
<ottidmes> AppAraat: this works: nix-env -f '<nixpkgs>' -iA rofi
<samueldr> exactly
<samueldr> though for the locales, it may be because channels are not updated in sync for user's and system's
simukis has quit [Quit: simukis]
<ottidmes> samueldr: good point
<samueldr> which makes it better to install in systemPackages, there it'll be synced for sure
<AppAraat> sounds like it just re-installed the same thing
<samueldr> (here it's possible the unwrapped vs. not-unwrapped was a red herring)
<ottidmes> at which point I always think, why are we still bothering with nix channels (the command, not the actual channels)! to me it seems they only complicate things.
<samueldr> (but both unwrapped and not-unwrapped will have the "name" attribute set to rofi-unwrapped :/)
<samueldr> ottidmes: write a better implementation + RFC of the concept then :)
<Church-> ottidmes: Huh
ntd has quit [Quit: ntd]
<slabity> ottidmes: Can you elaborate?
<AppAraat> yeah that confused me too, same name points to different things (or do different things point to the same name?) oh well :S
erictapen has quit [Ping timeout: 250 seconds]
<samueldr> I think it's why we are "still bothering"; there is work towards a replacement (IIRC), but (1) channels aren't intrinsically bad, just a bit surprising in some points [imho] (2) ensuring a replacement is actually better is hard work
<samueldr> yeah "same names different things" is the "surprising" part
<Myrly-kuri> Are we talking about `-f channel:`?
<Myrly-kuri> Or?
<samueldr> no
<samueldr> nix-channel and thair representation in the system
<ottidmes> slabity: I always see questions pop up about nix channels that always have to do with things like root and user not using the same channels and other issues, while I just made my system so that everything refers to the same channel, and if I want others, like unstable for some packages, I can always do that with a pinned nixpkgs in my overlay
<Myrly-kuri> Ah, I use a local git checkout. What's wrong with nix-channel?
<samueldr> it's all due to how channels are per-user, except that root's channels are also present by default in a user's channels; additionally, the system's built using root's channels
<Myrly-kuri> Oh.
<samueldr> Myrly-kuri: I think (opinion) it's all part of how they work at more than only one level; e.g. most package managers have only "one set" of repos. the system's
<AppAraat> so uh, what name should I specify in order to install the non-broken rofi?
<samueldr> AppAraat: you're using nixos, right?
<AppAraat> no, Ubuntu 15.04
<samueldr> ah!
<AppAraat> *16.04
<Myrly-kuri> I was going to remark "holy rcap, that's old"
<samueldr> then it's all different
<slabity> ottidmes: Makes sense.
<samueldr> Myrly-kuri: 2016 was two years ago!
<AppAraat> Myrly-kuri: it's still old :p
<ottidmes> slabity: its more flexible, because you just manage your own checkout so its transparant nixpkgs is just a git checkout, and I have never run into any issue with my channels. So all those issues with nix-channel, they seem like unnecessary to me
<AppAraat> it's just that 18.04 is having rather interesting issue with not being able to kill PulseAudio, so I'm kinda stuck on 16.04 for now. But that's a different story :p
<samueldr> AppAraat: I have no (known) solution, but here's the issue that tracked the issue #38991
<{^_^}> https://github.com/NixOS/nixpkgs/issues/38991 (by peti, 36 weeks ago, closed): glibc 2.27 breaks locale support
<Myrly-kuri> Oh yeah, yesternight I implemented nix-env -iA for emacs.
Ariakenom has joined #nixos
<Myrly-kuri> It's not terribly useful, but it could help with things you don't want to globally install.
<samueldr> the overarching issue is how your system has glibc locales for whichever glibc ubuntu 16.04 ships with, and expects them in that format :/
<AppAraat> samueldr: yeah I did set the $LOCALE_ARCHIVE_2_27 variable to be /nix/store/qhdzv5xc39wjw8n1wdjr37ff6rdl77hh-glibc-locales-2.27 but that didn't work either.
<AppAraat> oh I see
<samueldr> as I said, I have no solution (haven't had to deal with that [yet?])
ryantrinkle has joined #nixos
<AppAraat> I guess I'll install the PPA then (https://launchpad.net/~jasonpleau/+archive/ubuntu/rofi). I was a bit hesitant to do so (as one should be when installing PPAs), primarily because of the unfortunate association with that name: https://www.justice.gov/usao-ri/pr/jason-pleau-sentenced-life-federal-prison-murder-and-robbery-david-main
<samueldr> here nix makes it easy to be faced with the issue, but any kind of package manager on top of another system could have the same issue; so it's not a nix issue (just saying in case); it's all made more annoying in how there's no good solution AFAIK :/
<ottidmes> AppAraat: you being on Ubuntu explains why the store did not contain a reference to 2.26
<AppAraat> admittedly I'm not sure what the locale means in this case, but solving this would require to replace the entire glibc of Ubuntu, right?
<Baughn> Mmyeah.
<samueldr> "locale" here is the concept of being able to load language files, which is used even for the "default english"
<Baughn> glibc assumes there's only one instance of itself on the system. That breaks in any situation in which there's, well, not.
<AppAraat> samueldr: language files in order to being able to present an application in a different language for example?
<samueldr> right
<AppAraat> Baughn: is this only a glibc thing or is clang for example also like this ?
<ottidmes> samueldr: BTW if I were to make a RFC for it, it would probably be to just do away with nix-channels, not replace it with some other tool, why hide the fact its a git repo, and the interactively ask when running the installer where nixpkgs is located and have some default location for people that do not care, and maybe ask what channel to use with a short description saying for when you would want to use one
<ottidmes> over the other
<Baughn> AppAraat: I've never seen anything like that for another core library.
<AppAraat> heh, doesn't sound like a good design choice of glibc then.
<samueldr> ottidmes: channels aren't "a git repo". nixpkgs being in a git repository is only an implementation detail of how the big nix expression that is nixpkgs and nixos is made
<samueldr> though yeah, seeing them as you explained is a reasonable lossy representation of channels for most use cases :/
<Baughn> I have a fever dream of writing a Nix-to-Rust compiler, and attendant interpreter, because it's already taking nearly a minute to evaluate my system expression.
<samueldr> Baughn: I dare you to do it :)
<Baughn> It isn't that complicated a language ... ...but...
<ottidmes> samueldr: sure, channels are a pointing to specific commits of the nixpkgs git repo, but I hope you get my point, hiding this implementation detail seems to do more harm than good if you look at the issues raised on this channel
<Baughn> Maybe if I just wrote the interpreter. There should be opportunities for parallelization.
<ldlework> Baughn: wow, I have a pretty big system configuration and it builds in about 6 seconds. Is your configuration available to look over?
<ldlework> cool
<ottidmes> ldlework: mine takes 15 seconds :S
<samueldr> ottidmes: they're not only pointing to specific commits; there are a couple things done when they are prepared and released by hydra, among others pre-baking some values in it like a monotonically increasing version number
Synthetica has quit [Quit: Connection closed for inactivity]
<Church-> Baughn: Hehehehe working on a port of nice to Rust
<Church-> Slowly
<Baughn> nice?
<Baughn> As in /bin/nice?
<ldlework> lol
<Baughn> ➜ nixos git:(master) ✗ time nix build -f machines.nix all --show-trace
<Baughn> [13 built, 0.0 MiB DL]
<Baughn> nix build -f machines.nix all --show-trace 75.15s user 1.26s system 271% cpu 28.145 total
<ldlework> :O
<Baughn> 95% of that happens before any derivations get built at all.
<Church-> Geez
<Church-> Wait there's no parallelization?
<Church-> Wat
<Baughn> Ther eis.
<Baughn> See "271% cpu"
<ottidmes> samueldr: I know... but for the conversation I was having those are irrelevent details
<silver_hook> Are ADB and Fastboot packaged for NixOS?
<silver_hook> I’m planning to flash my Android phone and it seems I need them: https://wiki.lineageos.org/adb_fastboot_guide.html
<silver_hook> But the closest I can find is adb-sync …
<silver_hook> samueldr: Ah, cool. And that includes Fastboot?
<samueldr> I'm 99% confident it also installs fastboot, silver_hook
<silver_hook> samueldr: Neat, thanks :)
<silver_hook> Why is it hidden in the options instead of a package though?
<samueldr> silver_hook: you may need to add extraGroups = [ "adbusers" ]; to your user
<samueldr> silver_hook: because it needs to install udev rules
<slabity> silver_hook: There is a package. It's just easier to add it to your system config
<slabity> For the udev rule reason
sigmundv__ has quit [Ping timeout: 272 seconds]
<silver_hook> slabity: That makes sense from the technical PoV, yeah …but it’s not easy to find for the end-user :/
immae has quit [Ping timeout: 240 seconds]
<silver_hook> Thank you both! I’ll look into this.
<slabity> silver_hook: You can use nix-locate to find packages easier
<samueldr> silver_hook: if you were searching using the web interface, I think it's because of how it's part of `androidenv`
<slabity> ,locate adb
<{^_^}> Found in packages: axis2, oh-my-zsh, androidndk, metasploit, metasploit, bashCompletion, python27Packages.pwntools, python27Packages.pwntools
<samueldr> silver_hook: it seems like it doesn't recurse in it currently
<samueldr> ,locate
<{^_^}> Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended).
agander_ has joined #nixos
<samueldr> use `,locate bin` to search for binaries
<slabity> You can run it locally using nix-index and nix-locate
<samueldr> since the other will search anywhere
<samueldr> ,locate bin adb
<silver_hook> Cool, thanks
<{^_^}> Found in packages: adbfs-rootless
<slabity> Oh I did not know you can search by filetype
<samueldr> BUT, the same caveat applies, there's situations where the software won't be found
<samueldr> like here the `androidenv` thing :/
<samueldr> (when packages are put into an attrset like that, the different tools need to know about it to recurse into it when making their indexes)
agander has quit [Ping timeout: 250 seconds]
<ottidmes> Baughn: makes me think, what if Nix was ported to Truffle/Graal and have a specialized JIT just for Nix
<samueldr> silver_hook: another useful thing to know: if it deals with hardware, look into options first
<obadz> 33
<simpson> ottidmes: Then eventually we'll all owe Oracle licensing fees.
<samueldr> silver_hook: since installing only the software can't manipulate rules and the system, only make files available
<ottidmes> simpson: I thought they were open sourced?
<ottidmes> simpson: and free for commercial use
<simpson> ottidmes: Maybe. For now, the core is open, for sure. I don't trust 'em. The API's in Java and I don't trust them to let folks use Java either.
<simpson> There is RPython, which is a community-maintained JIT toolkit, that is pretty mature. Also there is HolyJIT, which is still very young but shows promise.
agander_ is now known as agander
<ottidmes> simpson: I dislike Oracle as well (bad experiences with them), but the tech is still very nice, and if care is taken not to create lock in of the specific implementation, I do not see a problem
kisonecat has joined #nixos
<simpson> The tech isn't *that* nice. It competes with RPython in terms of performance and readability IMO.
betaboon has joined #nixos
<betaboon> happy nixmas :D
vidbina has quit [Ping timeout: 260 seconds]
justanotheruser has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/fhUzq
balsoft has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52780 → python37Packages.shippai: 0.2.4 -> 0.3.0 → https://git.io/fhUzc
balsoft has quit [Read error: Connection reset by peer]
<ottidmes> simpson: considering that the time spend in Nix is generally short, it would not be a good fit for Truffle anyway
marsam has joined #nixos
<simpson> ottidmes: Yep. This is the paradox of interpreters: Sometimes the fastest thing one can do is no transformations.
kisonecat has quit [Ping timeout: 250 seconds]
waif has joined #nixos
<ottidmes> simpson: I think it was APL, but I read about such examples a long time ago, where the interpreter was able to beat the compiled version, which is not that strange (could just be a bad compiler), but still counter intuitive
marsam has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52781 → qjackctl: 0.5.3 -> 0.5.5 → https://git.io/fhUzM
AppAraat has left #nixos ["WeeChat 2.3"]
<simpson> ottidmes: We only know intuitively that a compiler removes interpretative overhead; nothing is said about whether an interpreter can pay off its own overhead, if it's equipped with a compiler and the ability to look at itself.
<ottidmes> simpson: indeed
aleph- has joined #nixos
juhe has quit [Remote host closed the connection]
endformationage has joined #nixos
aleph- has quit [Ping timeout: 272 seconds]
lokado has quit [Quit: Connection closed for inactivity]
sbdchd has joined #nixos
xy2_ has quit [Ping timeout: 268 seconds]
kisonecat has joined #nixos
<Church-> So seems I can't mkdir -p $out/Path/Here/ in the install phase
<{^_^}> [nixpkgs] @7c6f434c merged pull request #52762 → linuxPackages.sysdig: 0.24.1 -> 0.24.2 → https://git.io/fhU3w
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fhUgZ
<Church-> Just returns that the path doesn't exist
<{^_^}> [nix-pills] @workflow opened pull request #99 → Fix reference to outdated coreutils version → https://git.io/fhUgc
<silver_hook> Bah, pycurl install breaks. How can I figure out what pulls it in?
<{^_^}> [nix-pills] @workflow opened pull request #100 → Fix Typo → https://git.io/fhUga
<silver_hook> I think I found it.
jevonearth has left #nixos [#nixos]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/24cdaa7b488 (from 57 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
sbdchd has quit []
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52782 → python37Packages.zc_lockfile: 1.3.0 -> 1.4 → https://git.io/fhUgA
kisonecat has quit [Ping timeout: 268 seconds]
periklis has joined #nixos
<ottidmes> Church-: is this during nix-shell or nix-build? what is the output of echo "'$out'"? could you use some paste service (like GitHub's gists) to post it?
sir_guy_carleton has joined #nixos
<Church-> ottidmes: Nice build
<Church-> And yep, just out shopping. Back in a bit
<{^_^}> [nix-pills] @kalbasit merged pull request #100 → Fix Typo → https://git.io/fhUga
<{^_^}> [nix-pills] @kalbasit pushed 2 commits to master: https://git.io/fhU24
aleph- has joined #nixos
<aleph-> ottidmes: So it wasn't a mkdir error, seems to be a cp error. Here's the default.nix and the error log
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
kisonecat has joined #nixos
<ottidmes> aleph-: from looking at the code, this line is failing: cp -R $src $out/srv/lobster.rs/http/
<aleph-> Yep, that's the one.
<aleph-> Just not sure why, $out is the dir for the package. And I created the path branching off that earlier
jasongrossman has quit [Read error: Connection reset by peer]
<ottidmes> you made a typo
<ottidmes> mkdir -p $out/srv/lobste.rs/http
<ottidmes> $out/srv/lobster.rs/http/
<aleph-> Oh god damnit
<ottidmes> lobster.rs
<ottidmes> aleph-: always use a editor that highlights what you select, easy way to spot such typos ;)
<aleph-> Yeah, I have highlighting on too >_>
<aleph-> ottidmes: So I'm getting another error after that.
goibhniu has joined #nixos
<aleph-> /nix/store/l3nz0167a4xhb78ldcjns5p4dwvlm1cw-stdenv/setup: line 1230: /nix/store/28hw8ps4dwjds2djmin88s7m2qad1mml-lobsters/srv/lobste.rs/http/config/unicorn.conf.rb: No such file or directory
periklis has quit [Ping timeout: 250 seconds]
<aleph-> Maybe just cd to the dir and then create the file via heredoc
<ottidmes> aleph-: cat > $out//srv/lobste.rs/http/config/unicorn.conf.rb (what about the double slash?)
<aleph-> Yeah I removed the double slash
kisonecat has quit [Ping timeout: 246 seconds]
<aleph-> Think I found it, another typo
<aleph-> Ugh. >_>
<aleph-> Okay cool, just need to import rails
<aleph-> ottidmes: Is rails imported via pkgs.ruby?
<aleph-> Okay, think that's solved.
yayforj has joined #nixos
<aleph-> Okay so this is my current and final issue on this I believe. https://paste.rs/QZC
<ottidmes> aleph-: probably have to set your $HOME to some tmp dir in the build
<aleph-> Gotcha, should I just set it to the nix store path?
<aleph-> Ie. $HOME=$out
<samueldr> aleph-: you might want to check into using bundix https://github.com/manveru/bundix
<ottidmes> aleph-: depends, is it something you want to keep
<samueldr> using the "Basic Usage" section of its README I generally have what I need
<aleph-> samueldr: Yeah I saw bundix, was debating on it. Trying to keep this as a single step however.
<aleph-> ottidmes: So define keep, I guess? Need them to stay in the dir
<ottidmes> aleph-: samueldr actually uses Ruby, unlike me, so he probably knows best
<samueldr> bundler won't have network access unless you make a fixed-output derivation once in the build
<aleph-> Ah. So is there any way to include bundix in the nix-build without having to run it before hand?
<samueldr> I think there is now
<aleph-> That was the one thing making me not want to use.
<aleph-> Oh? Awesome
<samueldr> I need to re-check something, but I believe if gemset.nix is not given, it will do something?
<aleph-> Kk, I hope so. This 8 month journey can finally end!
<samueldr> hm, can't seem to figure out why I thought gemset.nix could be omitted
<samueldr> (quickly)
<fusion809> I wouldn't suppose someone would know a way to determine the sha256 of a package's source without trying to build it? I would like a way to update sha256 via an easily automated method when I bump the version of Vim in my nixpkgs fork.
<samueldr> fusion809: nix-prefetch-* tools may help
<Ralith> rycee: after updating home-manager, none of my user services (redshift, pasystray, blueman-applet, ...) are starting
<vaibhavsagar> I'm trying to build a project that does tests using the local network in its checkPhase
<vaibhavsagar> is there a way to make this happen or am I doomed?
<Ralith> and yes I do have `systemd.user.startServices = true;`
<samueldr> oh, sorry aleph-, I misremembered: when not given, it will assume gemset.nix is in gemdir :/
<Ralith> systemctl --user gives `Failed to list units: Process org.freedesktop.systemd1 exited with status 1`
<fusion809> samueldr: thanks mate! I honestly thought the answer would be along the lines of, "You've just got to deal with the unfortunate reality of your situation!"
<aleph-> Gotcha. samueldr yeah I just realized I can't run bundix -l given that I grab the repo via fetchGit in the default.nix
<Ralith> even my compositor is gone :/
<samueldr> aleph-: :/ while I use ruby, I haven't mastered its ecosystem in nixpkgs yet
<{^_^}> [nixpkgs] @tex opened pull request #52783 → SweetHome3d 5.4 -> 6.0 → https://git.io/fhUat
<samueldr> (didn't get to really deploy things yet, only develop misc. limited hacks and scripts)
<aleph-> samueldr: Yeah this is trying to deploy a running service. So I can finally replace ansible with nix and nixos
yayforj has quit [Ping timeout: 246 seconds]
<Ralith> also, current news contains instructions to set a `services.dbus.packages` option that doesn't exist?
<samueldr> aleph-: maybe there's a way with IFD
yayforj has joined #nixos
<aleph-> IFD?
<aleph-> About ready to just jank up a tiny CI system via shell scripts
<samueldr> ,IFD
<{^_^}> import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is a problem because it requires evaluating some, building some, and then evaluating the build result.
<samueldr> within nixpkgs we don't do IFD, don't remember the reason off the top of my head
<samueldr> but within your own stuff I believe you're free to do it
* aleph- googles
<aleph-> samueldr: Is there a doc on this?
<aleph-> That is like exactly what I need.
<samueldr> not sure, it's not "a thing", but a concept on how nix isn't forbidden from importing from the store, AFAIK
<ottidmes> fusion809: I used this for such purposes in the past: nix-prefetch-url '<nixpkgs>' --attr pkg.src
<samueldr> so if you have something producing a store path, you could realistically import from it, it would build it first (AFAIUI)
<samueldr> so you could (maybe?) have a first derivation generating the gemset.nix, and using IFD somehow use it
<{^_^}> [nixpkgs] @marsam opened pull request #52784 → diskus: enable build on darwin → https://git.io/fhUaC
<samueldr> (I never had a use case for IFD yet, so I don't have hands-on experience yet)
<fusion809> ottidmes: where pkg.src is the name of the package, right? And that updates the checksums in the *.nix file belonging to the package?
<aleph-> samueldr: So what sections of the manuals should I read to understand this more?
<aleph-> I'm not that up on the nix language sadly. So I get it but not how
<ottidmes> fusion809: pkg is for example git, so git.src, and no this would only report the sha, you would still need to update the nix file
<aleph-> how to do it.*
<samueldr> aleph-: hm, looks like there's no manual section about it
<aleph-> Nope
<samueldr> aleph-: only the section about the option allowing you to disable it
<aleph-> Think I found a blog post on it.
<ottidmes> fusion809: but it should be relatively easy to make it automatic with some shell code
<fusion809> ottidmes: that doesn't work for the packages I've added to my nixpkgs fork, even though they are mentioned in pkgs/top-level/all-packages.nix
<samueldr> aleph-: though it's not "something" other than the fact that it will use `import` on something built using nix, instead of a path already available
<fusion809> Like openra-ra2, openra-kknd, etc
<fusion809> It does for those that were in there before I forked it.
<samueldr> if you were to `import "${(fetchFromGitHub {...})}/some_file.nix"` AFAIUI it's IFD
<ottidmes> fusion809: does nixpkgs in NIX_PATH point to your checkout?
<fusion809> Na, it points to my system channel (/nix/var/nix/profiles/per-user/fusion809/channels/nixpkgs)
<fusion809> Should, I add $NIXPKGS (that path to nixpkgs fork) to it?
<fusion809> Adding it, like NIX_PATH=$NIX_PATH:$NIXPKGS has not fixed this issue.
<ottidmes> fusion809: well it depends on what you want, if you want your system to be build based on your checkout, it really should point to your checkout, but if you do not, you could also just do this: nix-prefetch-url /path/to/checkout --attr pkg.src
<fusion809> Yep, that's what I'm using, I've been running: nix-prefetch-url $NIXPKGS --attr openra-ura.src, for example ($NIXPKGS is my own variable that points to /path/to/nixpkgs)
<ottidmes> fusion809: and it still does not find it?
<aleph-> samueldr: Yeah there's like nothing on how to use this anywhere. >_>
<fusion809> ottidmes: If it helps my fork is at https://github.com/fusion809/nixpkgs, and yeah it doesn't. Maybe it'd be wise to chat privately, as this is crowding this channel a little.
jD91mZM2 has quit [Quit: WeeChat 2.2]
balsoft has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52785 → python37Packages.nvchecker: 1.2.7 -> 1.3 → https://git.io/fhUa9
yayforj has quit [Quit: WeeChat 2.2]
<samueldr> aleph-: tried a little, but as of right now bundix can't play well due to its use of `nix-prefetch-url` :/
<samueldr> (I think)
<Church-> Bollocks
<Church-> Well thanks samueldr
<samueldr> not impossible, but more than a 15 minutes task right now :)
<Church-> samueldr: Looking at just doing this via nix she'll for now.
<Church-> Ah neat.
<Church-> samueldr: I'll ping you after Christmas then.
<Church-> Enjoy the holidays
<samueldr> basically, if bundix knew not to use nix-prefetch-url, in some way, it may be possible
<samueldr> you too!
<Church-> Hmm, what would it have to use?
<samueldr> (nix-prefetch-url apparently wants to write to /nix/var which it obviously can't during the build)
<samueldr> something like `nix-hash --type sha256 --flat --base32 <(curl --silent "$@")` probably could work
<samueldr> as long as it computes the hashes like nix wants them, and as long as it doesn't write to the store
<Church-> Yeah looking through bundix's source rn
<samueldr> Church-: here's what I had https://gist.github.com/f82d2b131145ae5922556a4bf7246a1d
<samueldr> if I could have made bundix use the hacked-up script it would probably work
<samueldr> right now it generates a gemset file, but without source hashes
<samueldr> which won't work
<Church-> samueldr: Okay wait, so if we build a custom fork of bundix and sub that line in here: https://github.com/manveru/bundix/blob/master/lib/bundix.rb
<samueldr> but since gemset.ifd.nix is also a fixed-output derivation, if bundix's output is stable (and I think it is) it would work I believe
<samueldr> as long as none of your dependencies use git, it would work
<samueldr> (I think)
<samueldr> otherwise the same would need to be done for nix-prefetch-*others*
<Church-> Hmm... I don't believe they use git
<{^_^}> [nixpkgs] @romildo opened pull request #52786 → matcha: 2018-11-12 -> 2018-12-24 → https://git.io/fhUVm
<samueldr> do you kinda see the idea behind all that?
<Church-> Yeah this is gonna be fun to go over later. Mostly Greek to me. :)
<Church-> I sorta get it
goibhniu has quit [Ping timeout: 268 seconds]
<samueldr> read on fixed-output derivations, THAT is documented
<Church-> Will do
<samueldr> (and is interesting)
<Church-> Wait, is nix-prefetch-url a bin file set in my path?
<Church-> Because here's something you can try as a stupid thought.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52787 → python37Packages.pytesseract: 0.2.5 -> 0.2.6 → https://git.io/fhUVG
kisonecat has joined #nixos
<Church-> samueldr: unset PATH first then construct the path with the new binary in it
<Church-> Like the generic builder in 8.2 https://nixos.org/nixos/nix-pills/generic-builders.html
<Church-> Wait that might not work in the installPhase. Bollocks
rfold has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
<Ankhers> Is there a specification somewhere that shows how the nix remote builder works? Specifically what the request looks like?
zukaboo has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #52789 → zafiro-icons: 0.7.7 -> 0.7.8 → https://git.io/fhUVa
<zukaboo> I'm quite pleased how easy it is to make a pkg
* zukaboo remembers how it was in gentoo
ixxie has joined #nixos
<zukaboo> Just 28 lines of readable declarative code and here we go.
* zukaboo wishes running binaries would be just as simple
kisonecat has quit [Ping timeout: 240 seconds]
<Baughn> Something in my UI is writing out ~2MB of data to disk every couple of seconds.
<Baughn> What's the best way to figure out what? I tried fatrace, but it gives no output on ZFS.
<manveru> iotop?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52790 → python37Packages.shellingham: 1.2.7 -> 1.2.8 → https://git.io/fhUVH
<Baughn> ..d'oh.
<Baughn> And hmm, it looks like it's actually the unifi controller daemon. ...whyyy
Theuni2 has joined #nixos
Synthetica has joined #nixos
simukis has joined #nixos
balsoft has quit [Quit: Konversation terminated!]
<Baughn> Resolved by setting a higher txg_timeout. I'm not sure the default should be 5.
zukaboo has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52791 → python37Packages.peewee: 3.7.1 -> 3.8.0 → https://git.io/fhUwT
justanotheruser has joined #nixos
balsoft has joined #nixos
kisonecat has joined #nixos
cyphase has quit [Ping timeout: 246 seconds]
dsx has joined #nixos
tzemanovic has joined #nixos
duairc has joined #nixos
<duairc> I'm new to NixOS, but I've installed NixOS on a kimsufi box, and with kimsufi you need to configure IPv6 manually
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @romildo opened pull request #52792 → terminology: 1.3.0 -> 1.3.2 → https://git.io/fhUwV
<duairc> I've tried to do that, but what seems to be happening is that the routes and gateway gets added, but the address (in networking.interfaces.eth0.ipv6.addresses) doesn't get added to the network card
kisonecat has quit [Ping timeout: 246 seconds]
balsoft has quit [Ping timeout: 272 seconds]
abathur has joined #nixos
<duairc> If I add it manually (ip -6 addr add xxxx:xxxx::1/128 dev eth0) it works, but isn't persistent
therp has joined #nixos
therp has left #nixos [#nixos]
<orbekk> duairc: sounds like the nic is partially automanaged. if the nic is managed by dhcpcd, maybe you can add the extra address in networking.dhcpcd.runHook instead?
lord| has quit [Read error: Connection reset by peer]
vidbina has joined #nixos
lord| has joined #nixos
<duairc> orbekk: Yes, I'm using DHCP for IPv4... for now, just because the first time I tried to configure it manually I must have messed something up and lost all connectivity and had to reboot
<duairc> So I figured I'd just take it one step at a time and get IPv6 working first
<duairc> But you're saying that the fact that I'm using DHCP for IPv4 means I can't manually configure IPv6?
shabius has quit [Quit: Leaving]
balsoft has joined #nixos
<orbekk> duairc: sorry, I don't actually know specifically, but I suspect dhcpcd (or something else) is taking some control. usually the way I debug these things on nixos is to look at the generated config
orivej has joined #nixos
<duairc> orbekk: Where would I find that?
<orbekk> in /etc and systemctl configs
<orbekk> e.g., systemctl cat dhcpcd
clefru has joined #nixos
shabius has joined #nixos
agander has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dywedir merged pull request #52784 → diskus: enable build on darwin → https://git.io/fhUaC
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fhUwd
rfold has quit [Quit: leaving]
vidbina has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @dywedir merged pull request #52781 → qjackctl: 0.5.3 -> 0.5.5 → https://git.io/fhUzM
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fhUrI
shabius has quit [Quit: Leaving]
pie___ has joined #nixos
<pie___> there was some stuff somewhere on how to make ones own package sets?
<pie___> like language packages or whatever. gonna try to make a bit of progress today on something for WINE
shabius has joined #nixos
tzemanovic has quit [Remote host closed the connection]
balsoft has quit [Ping timeout: 246 seconds]
cyphase has joined #nixos
<duairc> For what it's worth I expicitly set networking.interfaces.eth0.useDHCP = false and switched to manual addresses for IPv4 and IPv6, and it's the same problem with both
<duairc> i.e., the routes are being added, but not the addresses
tzemanovic has joined #nixos
tzemanovic has quit [Read error: Connection reset by peer]
kisonecat has joined #nixos
kisonecat has quit [Ping timeout: 245 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52793 → python37Packages.EasyProcess: 0.2.3 -> 0.2.5 → https://git.io/fhUoE
clefru has quit [Quit: Leaving]
freepotion has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
freepotion has quit [Client Quit]
Radivarig has joined #nixos
alex`` has quit [Ping timeout: 250 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/8b145277bf4 (from 63 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
vidbina has joined #nixos
<{^_^}> [nixpkgs] @basvandijk opened pull request #52794 → opencv4: opencv_contrib: 4.0.0 -> 4.0.1 → https://git.io/fhUo7
Anton-Latukha has quit [Ping timeout: 272 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
Anton-Latukha has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #52640 → boohu: 0.11.1 -> 0.12.0 → https://git.io/fhfMI
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhUoj
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52795 → python37Packages.dpkt: 1.9.1 -> 1.9.2 → https://git.io/fhUKe
immae has joined #nixos
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fhUKc
<{^_^}> [nixpkgs] @basvandijk merged pull request #52794 → opencv4: opencv_contrib: 4.0.0 -> 4.0.1 → https://git.io/fhUo7
mmlb has quit [Ping timeout: 246 seconds]
b has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #52785 → python37Packages.nvchecker: 1.2.7 -> 1.3 → https://git.io/fhUa9
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhUK7
b has joined #nixos
pie___ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52798 → neovim-remote: 2.1.1 -> 2.1.3 → https://git.io/fhUKA
oida has quit [Quit: byez]
Ariakenom has quit [Ping timeout: 252 seconds]
freeman42x[nix] has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #52711 → licenses: update SPDX IDs → https://git.io/fhJ2r
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « licenses: update SPDX IDs (#52711) »: https://git.io/fhU6J
ryantrinkle has quit [Ping timeout: 250 seconds]
pilcrow has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @basvandijk opened pull request #52799 → graphite-web: use django-2.0 → https://git.io/fhU6Z
Guanin has joined #nixos
<Guanin> Hi, is there a way to compare strings in the nix lang? I want to have a conditional like `if config.networking.hostName == "foo" then ...`
<pilcrow> What's a safe, sensible location for users.[username].passwordFile ? ~/.password with root ownership? somewhere under /nix?
<Guanin> pilcrow, secret management is an ongoing discussion, as you can see here: https://github.com/NixOS/nix/issues/8
<{^_^}> nix#8 (by edolstra, 6 years ago, open): Support private files in the Nix store
<clever> > "foo" == "foo"
<{^_^}> true
<clever> Guanin: same way you would in nearly every language
<Guanin> clever, thanks, I guess syntax highlighting fooled me to not trying it
<clever> > if true then 1 else 2
<{^_^}> 1
ntd has joined #nixos
justanotheruser has quit [Ping timeout: 268 seconds]