<samueldr>
> The letters NG, shown enclosed in a square, which are an acronym for the words No Good.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):36:15
<infinisil>
Heh
<ghostyy>
hi, can any of you watch live youtube streams with mpv on nixos?
<ghostyy>
i havent been able to for months but my friend on arch doesnt have any problems
<ghostyy>
it plays a second or two, then pauses for 30 seconds, then plays some more
<infinisil>
ghostyy: Works for me
<infinisil>
Oh hold on haven't tested that
<ghostyy>
really...
<ghostyy>
ah
<ghostyy>
if it works please tell about version numbers and such
<infinisil>
Huh
<infinisil>
Wow
<infinisil>
It's just like you're saying, doesn't work
<infinisil>
In the logs with -v I see [vo/opengl/x11] Enabling screensaver.
<infinisil>
When it stops, and "Disabling" when it starts working again
<samueldr>
infinisil: probably a side-effect of pausing
<ghostyy>
thats very strange...
lopsided98 has quit [Quit: Disconnected]
stumble has joined #nixos
<samueldr>
(I get it when I pause manually)
<infinisil>
Ah yeah
taktoa has quit [Remote host closed the connection]
Cale has quit [Remote host closed the connection]
<infinisil>
Hmm..
<infinisil>
It works for twitch streams I know that
ericsagnes has joined #nixos
<infinisil>
It sure is rather quiet on IRC at European nighttime!
jperras has joined #nixos
<gchristensen>
it is America/New_York night time too :)
<infinisil>
9pm?
<infinisil>
And yeah the manual is building now, thanks samueldr and gchristensen, I wouldn't have thought of home-manager
<infinisil>
I wish to just have a single nixpkgs update without breaking anything, maybe I should update all things with it to have a higher chance of that
<gchristensen>
almost my bed time :o
camsbury has joined #nixos
acarrico has quit [Ping timeout: 260 seconds]
<samueldr>
it *is* generally quieter early night time
silver_ has quit [Read error: Connection reset by peer]
foldingcookie has joined #nixos
<foldingcookie>
I'm trying to use unstable packages, but I can't seem to get youtube-dl to update (I have 2018.02.22) with any combination of `nix-env -u`, `nix-channel --update`, and `nixos-rebuild --switch`... how do I debug this? nix-channel --list shows "nixos https://nixos.org/channels/nixos-unstable" as root, and nothing as my user
<infinisil>
foldingcookie: Have you tried `sudo nixos-rebuild switch --upgrade`?
<foldingcookie>
no, I didn't know that was a thing
<foldingcookie>
no change, it didn't seem to do much
markus1199 has joined #nixos
<infinisil>
You probably installed it with nix-env then
<foldingcookie>
I think so
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
Assuming you have updated the channel (sudo nix-channel --update), you should be able to just reinstall youtube-dl (nix-env -iA nixos.youtube-dl) to get the latest version
Supersonic112 is now known as Supersonic
<foldingcookie>
why does that work, if nix-env -u doesn't?
<foldingcookie>
(it does seem to be doing something, so presumably it's installing the newest version)
<infinisil>
I think nix-env -u does some version string comparison thing
<foldingcookie>
hm... still says 2018.02.22 in --version
markus1189 has quit [Ping timeout: 240 seconds]
<infinisil>
Which probably fails with youtube-dl's weird versioning
<foldingcookie>
despite "copying path '/nix/store/gid4kxc5bizjci1hvdrymxzyk90684qc-youtube-dl-2018.05.01' from 'https://cache.nixos.org'..."
<foldingcookie>
should I *have* anything in root's nix-env?
<infinisil>
You don't need to
<infinisil>
I prefer not to
<foldingcookie>
I'm not really sure I understand the interaction between users' and root's nix-env and the "system" nix
<infinisil>
What I prefer even more is to not use nix-env at all
<foldingcookie>
is there a guide to this stuff?
mbrgm has joined #nixos
<foldingcookie>
it's nice to not need root to configure packages that root/system-services won't run
<infinisil>
I can't link you to a guide, but here it is in a sentence: user's nix-env overrides root's nix-env overrides systemPackages, other than that there's no interaction
<foldingcookie>
why is root's nix-env even part of a user's environment?
<infinisil>
Because that's how other distro's work, you install stuff for all users through root
<foldingcookie>
I thought the system nix stuff (/etc/nixos/configuration.nix and so on) was how you installed stuff for all users
<infinisil>
Yeah you can do that too, but if all you need is a package you can use sudo nix-env
<infinisil>
Which has the added disadvantage of not being stateless
<foldingcookie>
I'm less interested in "can do X" than I am in getting a coherent picture of how things are intended to work
<foldingcookie>
or is there one of those? :x
<infinisil>
Hmm..
<foldingcookie>
thanks for the help btw
<foldingcookie>
I've read chunks of the manual, of course
<infinisil>
Hmm.. I guess it's kinda still intended to use configuration.nix only for system/global stuff, but nix-env for users, but since pretty much everybody has a single-user system, those don't differ much
<foldingcookie>
yeah, it just seems weird that root's nix-env isn't private
<infinisil>
Also, people want configuration.nix style settings for their $HOME which nixos doesn't provide at all
<infinisil>
,home-manager foldingcookie
<{^_^}>
foldingcookie: home-manager allows you to manage your per-user configuration similarly to NixOS' configuration.nix: https://nixos.wiki/wiki/Home_Manager
<infinisil>
That's why this exists
<foldingcookie>
that would be nice
<foldingcookie>
"this"?
<infinisil>
home-manager
<foldingcookie>
mm
<infinisil>
Have been using HM (home-manager) for a while and it works pretty well :)
<foldingcookie>
it does packages and dotfiles?
<infinisil>
packages, dotfiles and systemd user services
xcmw has joined #nixos
<foldingcookie>
hrm
<infinisil>
,nix-env-r
<{^_^}>
A simple way to install all your packages declaratively is to use `nix-env -ir default.nix` with the file of the form `with import <nixpkgs> {}; { inherit hello; }` to install hello. Note that with the -r switch this removes all your previously installed packages
<infinisil>
There's also this if you want a simple declarative way of doing user packages
<codygman___>
I'm installing nixos on a new computer that already has an efi partition. I should be fine just mounting it to /mnt/boot and letting the nix installer write to it right? Doesn't it just add to it?
<stumble>
codygman___: Yes. Although sometimes people say you shoud first of all decide what size EFI partition you want, in case you want to add other OSs' boot stuff to it later.
camsbury has quit [Quit: Leaving...]
<fiji>
adisbladis[m]: So for ubuntu I'd just use systemd?
<adisbladis>
fiji: Yes
<fiji>
adisbladis[m]: One last question, is there an easy way to get the path of dockerd from a specific profile
<stumble>
codygman___: Personally, I only run NixOS, using systemd-boot, and it only takes less than 100Mb. But often people say to make sure you have at least 250MB to allow for contingencies.
<codygman___>
stumble: Thanks for the confirmation. Oh? I've never heard of that.
klntsky has quit [Read error: Connection reset by peer]
oida has quit [Write error: Connection reset by peer]
phreedom has quit [Write error: Connection reset by peer]
phreedom has joined #nixos
<stumble>
Well if you're sure you won't mind repartitioning if you ever want to run something with more complicated boot requirements, then no need to worry.
jackdk has joined #nixos
<stumble>
I have a 1GB boot partition, and 90% of it is wasted.
oida has joined #nixos
<infinisil>
Dare I get myself into trouble trying to resize my ESP I got from Windows
karlguy has joined #nixos
<infinisil>
It's only 100MB big..
klntsky has joined #nixos
<stumble>
infinisil: Are you asking for advice? Is it not working the way it is?
MP2E has joined #nixos
<infinisil>
Nah, just rambling, i don't even wanna attempt to resize it
nuncanada has quit [Quit: Leaving]
codygman___ has quit [Ping timeout: 260 seconds]
<adisbladis>
fiji: I guess you could log in as the user and check the path? It's probably better not to though..
<adisbladis>
Honestly, if I was on Ubuntu I'd probably let ubuntu manage docker
<dhess>
hi all, I screwed up and let a certificate expire, now I'm having trouble doing NixOps deployments against my Hydra cache. I need to deploy the new cert, but I've got a chicken-and-egg problem here.
<dhess>
is there any way to get NixOps to ignore SSL certificate issues?
<dhess>
and/or to pass that through to the various Nix utilities that it runs?
Taneb has quit [Quit: I seem to have stopped.]
b has quit [Ping timeout: 240 seconds]
jperras has quit [Quit: WeeChat 2.1]
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @teto opened pull request #40470 → [RFC] pythonPackages.libnl: init at 3.3.0 → https://git.io/vp9Mr
justanotheruser has quit [Ping timeout: 250 seconds]
<Yaniel>
green as in ublock origin does not show any remote content
<PolarIntersect>
Here's the bpaste version
<PolarIntersect>
ooh
<jD91mZM2>
PolarIntersect: Ok so it looks like google-chrome depends on chromium which would explain why it's getting installed. But I don't know why it's not installing itself
<PolarIntersect>
Maybe the name of the executable changed?
<jD91mZM2>
Maybe you're overriding your $PATH somewhere?
iqubic has joined #nixos
<jD91mZM2>
google-chrome-stable IIRC
<PolarIntersect>
Everywhere that I override PATH includes the other PATH
<Yaniel>
people have this weird obsession with CDNs so you have to allow executing opaque scripts from N arbitrary locations for some sites to load in the first place
<PolarIntersect>
If it didn't, I wouldn't have chromium
<PolarIntersect>
SLiM doesn't even exec .profile, so I guess I can't override my PATH... but that's a whole diff issue *cry*
<PolarIntersect>
Yaniel: "weird obsession with CDNs" can also be called "security" :)
<Yaniel>
when you need 5 3rd party services to show a text file you are doing it wrong
Have-Quick has quit [Quit: Have-Quick]
<Yaniel>
even from a security perspective
MercurialAlchemi has joined #nixos
<jD91mZM2>
That sucks, yeah. Luckily you can source your .profile from your .xprofile as a workaround for now... except if you're using ZSH which is brutally overriding your PATH anyway later
<PolarIntersect>
Yeah, but CDNs are still good
<Yaniel>
they are a good hammer, yes
<PolarIntersect>
jD91mZM2: No it's not. I have my own configuration, which you can surely look at. I don't use OhMyZSH which is gross
<stumble>
Yaniel: I agree.
<jD91mZM2>
PolarIntersect: Did you set programs.zsh.enable?
<jD91mZM2>
Because that creates /etc/zshenv :(
<PolarIntersect>
jD91mZM2: But, yeah, SLiM doesn't source .xprofile, .profile, .zprofile, .bash_profile, or anything... It's been a nightmare trying to figure that one out :)
<Yaniel>
good thing there's still things like 0x0.st
<PolarIntersect>
omg thanks for that Yaniel
<PolarIntersect>
sprunge.us is broken for like 2 years now and I've been wanting a replacement
<jD91mZM2>
Aannnyway, PolarIntersect, what's the output of `nix-build "<nixpkgs>" -A google-chrome --no-out-link`?
<Yaniel>
the only problem with 0x0.st is that a lot of url detectors fail on it :D
<PolarIntersect>
error: Package ‘google-chrome-66.0.3359.139’ in /nix/store/3x89azpqb51bmk1jjdqk6ilnca4ihq0v-nixos-18.03/nixos/pkgs/applications/networking/browsers/google-chrome/default.nix:136 has an unfree license (‘unfree’), refusing to evaluate.
<PolarIntersect>
Not sure how to allow it w/ that command
<jD91mZM2>
export NIXPKGS_ALLOW_UNFREE=1 or something hold on
<tilpner>
After that, go to localhost:631 and configure CUPS
<iqubic>
I'll try that. Thanks.
<stumble>
That address gives information about loading some drivers.
<stumble>
Which you may or may not need.
<adisbladis>
Gutenprint will generally get you really far in my experience
<adisbladis>
Most printers I happen to use on occasion are supported
spear2 has joined #nixos
spear22 has joined #nixos
asuryawanshi has quit [Ping timeout: 256 seconds]
<iqubic>
So I'm at the cups localhost place, and I'm trying to add a printer. How do I do that? I just click "add printer"?
phdoerfler has quit [Quit: Leaving.]
<iqubic>
Can I just tell cups to scan for nearby printers?
<adisbladis>
iqubic: DEs will do that generally
<adisbladis>
Maybe you can find some other UI if you are not on a DE
<iqubic>
Yeah, but I'm using i3...
<iqubic>
Isn't the cups thing at localhost:631 good enough?
<tilpner>
It is
<iqubic>
Can I tell that to search for nearby printers?
wingstaker99 has joined #nixos
<stumble>
Sorry - don't know - but at least it's now a CUPS problem rather than a NixOS problem, so there should be plenty of help on the web somewhere.
<tilpner>
Yes, check under Administration > Printers
<stumble>
tilpner++
<{^_^}>
tilpner's karma got increased to 3
<iqubic>
Alright, so I have gone there.
<iqubic>
The find new printer button didn't work.
<iqubic>
Took me to a blank page saying "No Printers found."
<hyper_ch>
(aren't printers usually quite big so you should be able to spot them easily?)
<iqubic>
hyper_ch: Ha Ha Ha.
<hyper_ch>
but I do have a love/hate relationship with cups also
<tilpner>
My printer was discovered immediately from "Add Printer", but that's not too hard if your printer is connected via USB
<sphalerite>
iqubic: I don't know for sure, but maybe it announces itself via broadcast packets and those are getting firewalled off
<iqubic>
I only have a Hate relationship. I have never once gotten a printer to work properly via cups.
<iqubic>
I'm using the Brother HL-L6200DW printer.
<iqubic>
And it isn't working right now.
<iqubic>
So I feel really stupid right now.
sary has joined #nixos
MercurialAlchemi has quit [Ping timeout: 256 seconds]
wangoe has joined #nixos
MercurialAlchemi has joined #nixos
Have-Quick has quit [Quit: Have-Quick]
<avn>
configure cups via web looks completely non-declarative
smallville7123 has quit [Quit: rosa]
<iqubic>
It is. That's not really an issue for me right now. What I need is just a system that will work.
udono has joined #nixos
<iqubic>
Is there a cups driver for my Brother HL-L6200DW printer out there? Is it easy to port that to NixOS?
<avn>
I still curious, how to save/replicate cups configuration on nixos. I tried to copy .ppd file in activation script, but it looks ugly.
<iqubic>
Or should I just reboot my machine and use my Windows OS (I dual boot) in order to do my printing?
<avn>
iqubic: I solved it by network/postscript-capable printer ;)
<avn>
so all setup is just redirector to ipp;//printer
smallville7123 has quit [Client Quit]
<iqubic>
Nice. Does that help me with my issue?
<iqubic>
Is there a cups support place I can go to get help. Like an IRC channel or something?
<tilpner>
On FreeNode, you can use "/msg alis search <topic>" to search for channels
<tilpner>
* /msg alis list <topic>
<iqubic>
I'm not sure that worked for me.
<iqubic>
Nope.
<iqubic>
Neither on of those worked.
<elvishjerricco>
Huh. My darwin machine has auto gc set up. I ran a darwin build on my linux machine with my mac as a remote builder, and the GC ran during some part of that, causing the build to fail since a dependency had been deleted. I would have thought that wasn't possible.
<tilpner>
They do here
<iqubic>
Well that's odd.
<tilpner>
(The second one)
<iqubic>
Yeah, I'm getting no response from that. I need to learn how to use ERC.
<iqubic>
Is alis the right thing to message?
kreetx_ has joined #nixos
<tilpner>
Yes
<sphalerite>
elvishjerricco: the gc was on the mac?
<iqubic>
Well I'm getting no responses here.
<elvishjerricco>
sphalerite: yea
<sphalerite>
elvishjerricco: hm right. It shouldn't happen but I can see why it would — because the darwin machine isn't the one coordinating the build
<clever>
sphalerite: i think ive seen some bugs where the darwin garbage collector cant see all in-use files
<sphalerite>
elvishjerricco: if you build it on the darwin machine using --store ssh-ng://user@host instead of --buildres, it will probably not gc it away
<sphalerite>
clever: but it would also make sense that since the darwin machine has no "big-picture" view of what's getting built, only what it's building right now, that would happen
jensens has joined #nixos
<elvishjerricco>
sphalerite: Ok, I can see how that would happen. i.e. if the path was deleted in the middle of the remaining paths still being copied over
<clever>
sphalerite: yeah, but the master would just re-upload things when it starts the next build
<sphalerite>
oh yeah, hm
<sphalerite>
--store is a better option for remote builds when the builder and the requester aren't both building anyway, because it doesn't copy deps to from the requester (using less space on it) and doesn't require a trusted-user on the builder
<clever>
oh, wow, nice
<sphalerite>
it's not as nicely integrated though, you have to nix copy the results over manually afterwards
MercurialAlchemi has quit [Ping timeout: 256 seconds]
<clever>
and they might get GC'd during that last step?
<sphalerite>
yeah
MercurialAlchemi has joined #nixos
hamishmack has joined #nixos
MichaelRaskin has quit [Quit: MichaelRaskin]
Ariakenom has joined #nixos
<iqubic>
tilpner: Turns out I was not at all familiar with the way erc works. I got responses from my earlier /msg
<clever>
sphalerite: it might help if the -o option made an indirect root on the remote machine
<lewo>
Does "squash and merge" github button let you to edit the commit message? It seems so, but I'm not really sure...
stumble- has joined #nixos
<dhess>
clever: question for you -- the TLS cert I use for my Hydra binary cache expired. I need to deploy a new cert but I've got this chicken-and-egg problem. Do you know of a way to tell NixOps to ignore certificate problems? Or to override the cert bundle it uses? I've tried setting NIX_SSL_CERT_FILE but either NixOps or the remote builder is ignoring it and still trying to validate the Hydra TLS cert with the expired cert bundle
stumble has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<clever>
dhess: you need to manually replace the /etc/nix/nix.conf symlink with a file having the same contents, then edit that file to remove the hydra
<clever>
dhess: and next time it does a nixops deploy or reboot, it will revert the file back to its proper version
<dhess>
clever: ahh so just don't use the Hydra for one deployment
<clever>
yeah
<dhess>
I tried doing what you describe with the cert bundle in /etc/ssl/certs, but that didn't work
<dhess>
let me try your idea
<dhess>
clever: do I need to do this on the deployment host or on the remote builder? or both?
stumble- has quit [Client Quit]
<clever>
probably both
<dhess>
it's never quite clear to me who's doing the downloading when I do a NixOps deploy
<dhess>
ok thanks, let me try that
stumble has joined #nixos
<elvishjerricco>
aw, the single line output in `nix build` doesn't seem to work with `--store ssh-ng://`
<clever>
dhess: nixops downloads everything to the deployment host, then re-uploads the build deps to a build slave
<sphalerite>
yeah there are some bugs with the output on that
<clever>
sphalerite: ive also wanted that single-line output with nix-shell
<elvishjerricco>
clever: I'm hoping for `nix shell` :P
<sphalerite>
yeah
<sphalerite>
also for nixos-rebuild
<elvishjerricco>
nixos-rebuild, nixops, and darwin-rebuild, yea
<clever>
sphalerite: nixos-rebuild internally uses nix-env, so that needs to be fixed first
<sphalerite>
well you could always just have it build the system, then use nix-env --set
<elvishjerricco>
I thought that's what it already did
phreedom has quit [Remote host closed the connection]
phreedom_ has joined #nixos
<kreetx>
hi -- is there a good way to use nixops on macos to deploy on virtualbox? I have a simple LAMP server configuration, but on macos it tries to build it on the host and this doesn't work
<clever>
kreetx: previously, nixops would auto-configure the virtualbox as a buildslave and just work
<kreetx>
I've found a number of github issues related to this and am just thinking if there is some recommended way
<clever>
but now that darwin is using a multi-user setup, it doesnt have permission to do that
<clever>
so it just fails
<kreetx>
ah
<clever>
you need to manually configure /etc/nix/machines with the sshkey and user/host of a linux build slave (which can be in virtualbox, if you remember to turn it on for builds)
<dhess>
hmm strange, --option substituters works with the x86_64-linux hosts, but not with my aarch64-linux host
<sphalerite>
dhess: does the aarch64 machine maybe have extra-substituters set?
MinceR has joined #nixos
<robstr>
Morning, is there something special to curl on nixos ? When calling my endpoint, curl -v reports status 200 but no content, when using wget it is working ...
smichel has joined #nixos
<sphalerite>
robstr: curl behaves a bit differently
<dhess>
sphalerite: I don't think so, let me check
<sphalerite>
dhess: if so, add --option extra-substituters '' as well
<dhess>
sphalerite: nope, just substituters
<dhess>
I'm actually having the same issue on my nix-darwin machine now as well
crooksey has joined #nixos
<LnL>
what's the problem?
<LnL>
robstr: maybe it's a redirect? try curl -L
johanot has joined #nixos
<robstr>
LnL: nothing
<dhess>
LnL: I screwed up and let a cert expire on my Hydra binary cache. I was able to use --option substituters with NixOps to ignore the binary cache until I could deploy the new cert. But on my Mac, nix-env seems to be ignoring that option
<dhess>
it's not specific to nix-darwin I don't think
<dhess>
or I dunno, maybe it is if nix-daemon is ignoring it for some reason
<kreetx>
clever: is there a good tutorial on how to do this? I've found related issues and gists, but I don't fully understand what they do/how they work..
<sphalerite>
LnL: if it were a redirect it'd be 3xx not 200
<kreetx>
I guess I should read up on multi-user nix, then on remote building, and then try to put it all together
<clever>
kreetx: yeah, it should all be in the nix manual
<robstr>
maybe `Transfer-Encoding: chuncked` is the problem ?
<dhess>
LnL: how can I restart nix-daemon on nix-darwin without running 'darwin-rebuild' ? Can I HUP it?
<sphalerite>
clever: would you happen to know how to apply https://www.coreboot.org/Initramfs for 32-bit ARM with a zImage rather than an uncompressed vmlinux?
<clever>
sphalerite: ive not tried forcing such a thing on the kernel after its built, but i do know that linux has a compile-time option to embed an initrd into it
nD5Xjz has quit [Ping timeout: 264 seconds]
<clever>
nix just makes it tricky to use that
<sphalerite>
yeah, I want to use the plain nixos kernel
<clever>
you might be able to modify the linux derivation to also include an uncompressed vmlinux in its output
<sphalerite>
not too keen on having to build the kernel at all for this, the feedback loop is way too slow
<clever>
sphalerite: oh, and reading the wiki closer, it only works on a kernel that already has an initrd baked into it at compile time
<clever>
sphalerite: it just replaces the initrd section in the ELF layout
<sphalerite>
I read "remove any previous .init.ramfs section" as "remove it if present"
<clever>
i suspect the kernel has to be built in the right mode to even look for that section
<ij>
It seems that docker containers bound to 0.0.0.0:port are not being firewalled despite firewall.allowedTCPPorts not containing the said port.
<ij>
I did not expect that at all.
<kreetx>
on my macos I have channels/ and channels_root under ~/.nix-defexpr, and since yesterday after starting to use the unstable channlel I get a warning of "name collision in input Nix expressions" when doing nix-env -q <something>. I guess this is related to having two channels used where one is overriding the other? I did the channel switch as non-root (I think) -- should I have done it as root on macos?
<kreetx>
i.e related to the multi-user setup it's using
mojjo has joined #nixos
smallville7123 has joined #nixos
<mojjo>
hi! I have some problems with VirtualBox on nixos. I'm getting "The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing". Any hints for me?
<clever>
kreetx: your supposed to manage the channel as root when using a multi-user setup
applePrincess_ has quit [Remote host closed the connection]
<kreetx>
mojjo: maybe unrelated but on my ubuntu desktop machine I needed to enable something from bios to make virtualbox work. I forgot to write notes on this, so I don't remember what it was..
<kreetx>
I think it was some virtualization extension, or maybe some cpu execution restriction unlifting..
<kreetx>
but keep in mind: this might be unrelated :)
<clever>
kreetx: its probably accelerated vm extensions in the cpu
mojjo has quit [Ping timeout: 256 seconds]
<kreetx>
yes, I think that was it!
<clever>
kreetx: in theory, a bootloader based malware could put your entire OS into a vm, without it noticing, and then do naughty things in the background
<kreetx>
I managed to remove the user's channel and change the root's channel, but nix-channel --update now gets an error with SSL certificates when trying to download the expressions
vcunat has quit [Ping timeout: 276 seconds]
<kreetx>
my case is this: updated the channel in root, but doing sudo nix-channel --update complains about the ssl cert. Ok, but maybe the update is supposed to be run as regular user so I do that. Now the .nix-defexpr/channel/manifest.nix gets some content again, and I start getting the "warning: name collision in input Nix expressions" warning again..
mojjo has joined #nixos
<mojjo>
regarding the VirtualBox problem... I checked my BIOS and all virtualization options are enabled..
johann__ has quit [Quit: Leaving.]
Twey has joined #nixos
Twey has quit [Changing host]
Twey has joined #nixos
<Myrl-saki>
Is there a systemd attribute that will only perform once?
<lassulus>
mojjo: is your user in the group vboxusers?
freeman42x]NixOS has joined #nixos
<mojjo>
lassulus: yes
simukis has joined #nixos
<mojjo>
oh, wait.. it's listed in the nixos config, but does not show up on the `groups` command
spear22 has quit [Quit: Leaving]
spear2 has quit [Quit: Leaving]
<stumble>
mojjo: Have you nixos-rebuilded and rebooted since adding it?
<mojjo>
LnL: did so.. I look like the vboxusers group does not exist (whe trying `usermod -a -G vboxusers me`)
<lassulus>
do you have: virtualisation.virtualbox.host.enable = true; in your configuration?
<mojjo>
I was just checking this... I guess this was the problem..
mojjo has quit [Remote host closed the connection]
mojjo has joined #nixos
<mojjo>
lassulus: works.. ;-) I mingled guest with host..
<lassulus>
\(• ◡ •)/
johann__ has joined #nixos
<stumble>
\o/
<Boomerang>
Hello, I'm having some issues using a custom binary cache. In "/etc/nix/nix.conf" I used to have the lines "binary-caches = http://hydra:8080http://cache.nixos.org" and it worked fine. I have now upgraded to nix 2.0 and this binary-cache setup doesn't seem to work anymore. Any idea how to get it to work? :-)
<{^_^}>
[nixpkgs] @adisbladis pushed 2 commits to release-18.03: https://git.io/vpHOB
<{^_^}>
→ 10294017 by @samueldr: dbeaver: 5.0.4 -> 5.0.5
<{^_^}>
→ a2b8e0c2 by @adisbladis: Merge pull request #40467 from samueldr/dbeaver/18.03/5.0.5
<kreetx>
nixops now tells me "unable to build all machine configurations", but even running with --show-trace I don't get a clue of what goes wrong..
<kreetx>
I can ssh into the nixos on vbox and indeed the apache and mysql are not running there
<__monty__>
Writing my first nix expression. It's for a program with optional dependencies and I'm not sure how to go about it. For most of them it's no big deal because the program just figures out at runtime whether they're available or not. One of them though can be fulfilled by a bunch of different programs. How can I add an argument that allows a list of options?
<aminechikhaoui>
kreetx: it should tell you which derivation it wasn't able to build no ?
Neo-- has quit [Ping timeout: 250 seconds]
<kreetx>
aminechikhaoui: I found it was the same error which I got earlier, but now it doesn't state the error explicitly, just says which file and which line
<kreetx>
and the thing that went wrong was assert stdenv.isLinux, which my macos obviously is not :)
<kreetx>
so I can go back to looking into build slaves again.. :)
<aminechikhaoui>
oh you're using nixops from macOS
<kreetx>
yep
<aminechikhaoui>
does that even work ?
<kreetx>
trying to build a lamp on virtualbox
<kreetx>
using virtualbox yes
<kreetx>
the package manager also works, but I'm using nixops atm and it's more about developing & building on linux
<kreetx>
and since I'm on darwin, but the build target is linux, then it errors out since it wants to build on my host (macos) and then deploy to nixos (linux)
<aminechikhaoui>
yeah that's why I can't expect it to work
lonokhov has joined #nixos
humanoyd has joined #nixos
<aminechikhaoui>
unless you somehow manage to build stuff outside of your darwin machine e.g via --option builders
<aminechikhaoui>
but not sure really, there might be some other tricks
<kreetx>
yes, that's what I'm going to do
<Profpatsch>
mudri[m]: Ralith The type system I’ve been working on is just an embedded thing inside of nix, not a static checker like what Théophane was working on.
<Profpatsch>
And, to be fair, it already exists in the module system, just not easily usable.
<kreetx>
no, I think external building is the solution, and it will work even if the builder is another (or perhaps even the same?) vbox machine
<kreetx>
aminechikhaoui: I think it was clever who pointed to the fact that on macos we've started using multi-user mode and this is why this doesn't work
<kreetx>
I'm saying this because git blame for the line you point to is 5 years old
Ariakenom has joined #nixos
<aminechikhaoui>
kreetx: yeah it might not work, just remembered seeing that in the codebase before
<Myrl-saki>
I just learned the reason why we suddenly have aarch64 support. :P
<clever>
?
<Myrl-saki>
Works On Arm.
<Myrl-saki>
Or am I wrong?
<clever>
ah
<clever>
they also have an irc channel, #worksonarm
<Myrl-saki>
Yeah, was looking at their issues list and I saw NixOS.
magneticduck has joined #nixos
<clever>
first i'm hearing of that, but their channel has come up in past conversations
griff_ has joined #nixos
<magneticduck>
I'm building a C++ application by invoking CMake in a nix-shell with sufficient dependencies, and g++ is erroring when it encounters an `#include <bfd.h>`
unkn has joined #nixos
<magneticduck>
bfd is just a binutils thing, I'm confused why this isn't in the include path
alex`` has joined #nixos
<magneticduck>
how do I get bfd.h?
<justanotheruser>
Is there some built in authentication (db, api, etc) management in nixops? I'm not seeing anything other than ssh being taken care of.
<alanz>
I am trying to build a docker image with a haskell exe in it, but I want a simple path to the exe, rather than the /nix/store/... one. What is the easiest way to do that?
<alanz>
context: pachyderm job, need to put a command into an external json pipeline spec
<goibhniu>
alanz, how about /run/current-system/sw/bin?
<alanz>
it is not a nixos docker image, an ubuntu one
<goibhniu>
are you installing haskell into a user profile?
<andreabedini>
hello folks, I have been using nix on macos in the last few weeks and loving it. A bit of a steep curve but I see the value
<andreabedini>
now, I need a newer version of a python package (nixpkgs.python.pkgs.docker), happy to contribute a patch/pr, is it a matter of just bumping up the version and hash?
<sphalerite>
often, yes
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<andreabedini>
I'll give it a go sphalerite
deepfire` has quit [Ping timeout: 240 seconds]
griff_ has quit [Quit: griff_]
vcunat has joined #nixos
<andreabedini>
isn't there some sort of automated way of importing updates from pypi (in case of python modules)
<gchristensen>
plagued again by "SQUASHFS error: squashfs_read_data failed to read block 0x126be48f" and "SQUASHFS error: xz decompression failed, data probably corrupt"
vaninwagen has quit [Ping timeout: 248 seconds]
wangoe has quit [Quit: WeeChat 1.9.1]
johann__ has joined #nixos
xcmw has joined #nixos
Zgrl__afk has quit [Quit: Leaving]
Twey has quit [Quit: WeeChat 1.7]
selaux has joined #nixos
Twey has joined #nixos
iqubic has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
shikiryogy has quit [Quit: Leaving]
toby1851 has quit [Remote host closed the connection]
Neo-- has joined #nixos
toby1851 has joined #nixos
<sphalerite>
I think microsoft are stealing version numbers from nixos
kahiru has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @arcadio opened pull request #40501 → nixos: stumpwm: switch from package marked as broken to working quick… → https://git.io/vpHPn
johann__ has quit [Quit: Leaving.]
dbmikus has joined #nixos
smallville7123 has quit [Quit: rosa]
smallville7123 has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
smallville7123 has quit [Client Quit]
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/vpHDo
<{^_^}>
→ 49a69778 by @jbgi: azure-agent: add option to control auto mount
<{^_^}>
→ 73699a03 by @jbgi: azure-agent: add bash to service path.
smallville7123 has joined #nixos
ben has quit [Ping timeout: 240 seconds]
fgaz has quit [Ping timeout: 276 seconds]
smallville7123 has quit [Quit: rosa]
cybrian has joined #nixos
deepfire` has quit [Ping timeout: 240 seconds]
nuncanada has joined #nixos
<swflint>
Is there a way to get info pages and manual automatically installed with packages?
Ariakenom has quit [Ping timeout: 246 seconds]
smallville7123 has joined #nixos
endformationage has joined #nixos
nuncanada has quit [Ping timeout: 240 seconds]
<andi->
swflint: environment.extraOutputsToInstall could be what you are looking for
deepfire` has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
nico202 has joined #nixos
Sonarpulse has joined #nixos
asuryawanshi has joined #nixos
<nico202>
do any of you uses tmux+tmuxp+nix-shell? I want to launch a nix-shell and load in it a tmuxp session but can't find a good way
<swflint>
andi-: thanks, I'll try that.
smallville7123 has quit [Client Quit]
jnoah has quit [Ping timeout: 276 seconds]
<sphalerite>
nico202: just put shell-command: nix-shell <args> in the panes?
<{^_^}>
[nixpkgs] @Ericson2314 pushed 76 commits to staging: https://git.io/vpH7R
<{^_^}>
→ b53182b4 by @bkchr: plasma5: 5.12.4 -> 5.12.5
<{^_^}>
→ ec00b6fb by @xeji: nixos/mesos-slave: start after docker
<{^_^}>
→ 0d2a4ed4 by @xeji: nixos/tests/mesos: wait for all services and ports
smallville7123 has joined #nixos
fgaz has joined #nixos
fgaz is now known as Guest70486
jnoah has joined #nixos
<nico202>
sphalerite: the problem was that tmux/tmuxp would need to be installed on the host. But I just tried and it's possible to nest nix-shells.. when did it became possible? I remember times where this was not working
<clever>
nico202: you can also export PATH=$(nix-build '<nixpkgs>' -A tmux)/bin:$PATH
<clever>
then tmux will be the first thing in PATH
<sphalerite>
nico202: oh right I misunderstood what you wanted to do. Yeah, nix-shell has been nestable since a fix a while back that changed it to always use bashInteractive rather than bash
<sphalerite>
Although nesting them may still result in undesired behaviour.
Ariakenom has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @mmlb opened pull request #40506 → flent: init at 1.2.2 → https://git.io/vpHh0
Ariakenom has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
humanoyd has quit [Quit: WeeChat 2.1]
asuryawanshi has quit [Remote host closed the connection]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asuryawanshi has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #40505 → gnu-config: Update, allowing hacks to be removed → https://git.io/vpHAG
<{^_^}>
[nixpkgs] @Ericson2314 pushed 4 commits to staging-18.03: https://git.io/vpHjw
<{^_^}>
→ eebd455d by @Ericson2314: linux stdenv: Update gnu-config on all non-x86
<{^_^}>
→ 29db8170 by @Ericson2314: gnu-config: Update to support ARM and 4 quardruples
<{^_^}>
→ f472dd76 by @Ericson2314: Revert "Revert "gcc, binutils: Get rid of 32-bit ARM configure flag exception""
jtojnar has quit [Quit: jtojnar]
griff_ has quit [Quit: griff_]
smallville7123 has joined #nixos
leat has quit [Ping timeout: 248 seconds]
chessai has joined #nixos
smichel has quit [Quit: smichel]
smichel has joined #nixos
xcmw has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
lonokhov has quit [Quit: WeeChat 2.0]
nkaufmann has quit [Ping timeout: 260 seconds]
smallville7123 has quit [Quit: rosa]
camsbury has joined #nixos
smallville7123 has joined #nixos
crooksey has quit [Ping timeout: 260 seconds]
leat has joined #nixos
sigmundv_ has quit [Ping timeout: 260 seconds]
slyfox has quit [Ping timeout: 250 seconds]
slyfox_ has joined #nixos
Baughn has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
smallville7123 has quit [Quit: rosa]
Baughn has joined #nixos
amir has quit [Ping timeout: 265 seconds]
winem_ has quit [Ping timeout: 264 seconds]
asuryawanshi has quit [Ping timeout: 264 seconds]
johann__ has joined #nixos
TonyTheLion has joined #nixos
uptime has left #nixos [#nixos]
ihar has joined #nixos
Neo-- has quit [Ping timeout: 256 seconds]
coot has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @xeji merged pull request #40501 → nixos: stumpwm: switch from package marked as broken to working quick… → https://git.io/vpHPn
<{^_^}>
[nixpkgs] @xeji pushed commit from @arcadio to master « nixos: stumpwm: switch from package marked as broken to working quicklisp package (#40501) »: https://git.io/vpQks
griff_ has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
selaux has quit [Remote host closed the connection]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darlan has joined #nixos
maingo has joined #nixos
knupfer has joined #nixos
darlan has quit [Client Quit]
jensens has quit [Ping timeout: 240 seconds]
Boomerang has quit [Ping timeout: 248 seconds]
shiver has quit [Ping timeout: 256 seconds]
shiver has joined #nixos
shiver has quit [Changing host]
shiver has joined #nixos
xy2_ has quit [Ping timeout: 260 seconds]
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
GaryKibbe has joined #nixos
<GaryKibbe>
Anyone know who to make a package overlay for a out of nixpkgs python library?
foldingcookie has quit [Ping timeout: 246 seconds]
xcmw has joined #nixos
<Twey>
GaryKibbe: It's usually not worth making an overlay for just one package
coot has joined #nixos
<tilpner>
What's the conventional value for version if upstream didn't have a release yet?
<GaryKibbe>
Twey: Ok, so what should I use to accomplish that?
<Twey>
tilpner: The ISO date
<kreetx>
if one is were to use nixops but want to build remotely (perhaps even on the machine deployed to), where should he look? I see remote building in the package manager's manual but not in nixops
thekolb has joined #nixos
<Twey>
GaryKibbe: You can just write an expression
<thekolb>
Is there really no rlang in rPackages?
<Twey>
GaryKibbe: And build it with `nix-build .` or install it with `nix-env -f. -i` or include it as a dependency in your project's shell.nix
<thekolb>
nvm, there is. Why can’t it be found....
<tilpner>
Twey - And prefix -unstable to name?
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #40509 → gcc: Simplify this old Hurd condition → https://git.io/vpQqR
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tilpner>
*suffix
<thekolb>
I have this (let buildInputs = with rPackages; [ R dplyr readr ggplot2 bit64 mgcv rlang ]; in) and it says error: undefined variable rlang ?
<GaryKibbe>
Twey: Thanks!
<waleee>
thekolb: isnt rlang implied by the 'R' already?
<Twey>
tilpner: No, don't think so
xy2_ has joined #nixos
<tilpner>
Hmm, there's a bunch of -unstables with ISO dates :/
<Twey>
tilpner: That's usually just to distinguish when there's also a stable version
<tilpner>
There's not. I'll remove it
<{^_^}>
[nixpkgs] @tilpner opened pull request #40510 → gomuks: init at 2018-05-14 → https://git.io/vpQm3
<tilpner>
Are special privileges still needed to command ofborg, or can anyone do that now?
nico202 has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #40509 → gcc: Simplify this old Hurd condition → https://git.io/vpQqR
asuryawanshi has quit [Remote host closed the connection]
<kreetx>
is there still a need for nix-darwin? I think I installed the package management part to my macos throught the script the manual offers to run -- would nix-darwin do something more for me? I'm already running the multi-user setup
asuryawanshi has joined #nixos
alexteves has joined #nixos
<Twey>
GaryKibbe: Yup, you could do something like that for Firefox
reinzelmann has joined #nixos
viric has quit [Ping timeout: 265 seconds]
<LnL>
kreetx: it does more than just manage the nix-daemon
<LnL>
kreetx: but for example, how would you upgrade nix now?
ajp has joined #nixos
johann__ has joined #nixos
smichel has left #nixos ["Good Bye"]
asuryawanshi has quit [Remote host closed the connection]
toby1851 has quit [Ping timeout: 260 seconds]
jbboehr has joined #nixos
johann__ has quit [Ping timeout: 255 seconds]
<kreetx>
LnL: (sorry for the late answer) I don't know about updating, I guess you mean the daemon?
<cizra>
Agh.. Why doth Nix say sets for things that are associative arrays/dictionaries/maps?
<boomshroom>
cizra: Good question. Sets usually don't contain any information other than what elements are present and have no metadata for each element.
amir_ has joined #nixos
dbmikus_ has joined #nixos
asuryawanshi has joined #nixos
dbmikus has quit [Ping timeout: 260 seconds]
nico202 has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
amir has quit [Ping timeout: 265 seconds]
unkn has quit [Quit: moo]
asuryawanshi has joined #nixos
balsoft has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<Unode>
is there any website that allows searching which derivations provide a binary? (looking if there's any that provides h5c++)
<boomshroom>
Unode: Not a website, but the NixOS command-not-found service does just that.
<Unode>
boomshroom: not currently on nixos :)
<LnL>
yeah, and nix-index
Izorkin has joined #nixos
<Unode>
nix-index I might be able to use. trying.
<boomshroom>
Unode: I typed `h5c++` into the terminal and got "The program `h5c++` is currently not installed. You can install it by typing:"
<boomshroom>
" nix-env -iA nixos.hdf5-cpp"
<Unode>
boomshroom: awesome. Thanks!
<Unode>
I was searching for h5 and variations of it and wasn't hitting the right package.
<boomshroom>
Welp, trying to run nix-index made it crash: `error: cannot coerce a function to a string, at /nix/store/9v6w1lszdfl0xkifyqxb2w6yzy0hqp67-nixos-18.09pre139651.6db7f92cc2a/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11`
<Unode>
Also, I'm trying to compile some external package for R but when looking for openssl it fails. Tried "nix-shell -p openssl openssl.dev" but headers aren't included. Is there some way to have it inside a nix shell?
<Unode>
boomshroom: nix-index seems to be taking quite a bit of memory here.
<boomshroom>
Unode: That sound better than just crashing.
<LnL>
looks like an evaluation issue on 18.03
<Unode>
boomshroom: I just typed "nix-index" and it's generating the index since then.
<__monty__>
I'm having some trouble cargo installing cargo-tree. This is in a nix-shell -p rustup openssl curl cmake libnghttp2 libidn2 libps: http://ix.io/1ak8
<infinisil>
Unode: You want the mkDerivation just for having these couple packages in an env?
<Unode>
infinisil: yes
<infinisil>
Unode: If so, you can use `pkgs.buildEnv { name = "r"; paths = [ pkgs.R pkgs.rPackages... ]; }`
<cizra>
the-kenny-w: hey, you're listed as the mainainer for Dwarf Fortress - can I get some consultation there?
<{^_^}>
[nixpkgs] @Synthetica9 opened pull request #40519 → gcc,gcc8: {revert gcc to gcc7, mark gcc8 as broken} on Darwin → https://git.io/vpQB1
<sphalerite>
cizra: make sure to ask your actual question, not just to ask it. Other people may be able to help too.
<sphalerite>
not just to ask if you can ask*
<infinisil>
,ask
<{^_^}>
Don't ask if anyone uses software xyz, just ask your specific question. This helps solve your problem quicker, and allows people who haven't used xyz but may still be able to help you to do so.
<cizra>
sphalerite: Here comes: What's the intended way to run dfhack?
orivej has joined #nixos
alexteves_ has joined #nixos
datakurre has quit [Ping timeout: 246 seconds]
<boomshroom>
__monty__: It looks like it's having trouble finding libcurl.
ent has quit [Ping timeout: 250 seconds]
Dezgeg has quit [Ping timeout: 246 seconds]
liff has quit [Ping timeout: 256 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<__monty__>
boomshroom: I thougt it was having trouble finding the others to link with libcurl?
<boomshroom>
__monty__: That is a concern, but the fact that it's looking at /usr/lib/libcurl.so is worrying. If you're using Nix, /usr/lib shouldn't even exist.
<__monty__>
boomshroom: You think it's looking at my system installed curl? This is a nix-shell on an arch box.
xy2_ has quit [Ping timeout: 260 seconds]
<boomshroom>
__monty__: If it was looking at the nix curl, it would be something like `/nix/store/ix1dv27c1i4cqlgmbb8y20gk4sds8pzb-curl-7.59.0/lib/libcurl.so`
<Unode>
custom overriding function for some reason
<boomshroom>
__monty__: Trying to install cargo-tree on my NixOS machine with a user rustup installed, libbacktrace failed to build due to lacking /usr/bin/file.
hotfuzz has joined #nixos
<__monty__>
Is there an easy fix with --pure or something? Or will I need to dig into the rust infrastructure for nix? I'm using rustup because I need nightly.
Dezgeg has joined #nixos
<infinisil>
Unode: Hah
<boomshroom>
__monty__: Using rust nightly on NixOS is a pain since it was removed from nixpkgs.
asuryawanshi has quit [Ping timeout: 264 seconds]
<boomshroom>
__monty__: I would suggest using --pure and seeing if it helps.
<__monty__>
Not on nixos but I guess it still applies.
liff has joined #nixos
<boomshroom>
__monty__: The fact that you're not on nixos means it's much simpler since you can use rustup and cargo the way it was intended.
civodul has joined #nixos
hotfuzz_ has quit [Ping timeout: 256 seconds]
<kreetx>
could one think that nix-darwin converts macos to be a bit like nixos? I.e to configure the entire machine with nix, instead of just being a package manager. (And of course not the entire machine, since macos continues to be present..)
<boomshroom>
kreetx: If I'm not mistaken, darwin is open source. ;)
<infinisil>
Rust "nightly" in nixpkgs wouldn't make sense anyways, it would be outdated almost every day
<__monty__>
boomshroom: I was trying to avoid resorting to the system package manager.
<sphalerite>
kreetx: it goes somewhat in that direction, but doesn't cover as much ground as nixos
<__monty__>
infinisil: I'll go that route.
<sphalerite>
AFAIK.
<sphalerite>
I've never actually used it myself, hah.
coot has joined #nixos
nico202 has quit [Ping timeout: 260 seconds]
<kreetx>
yeah, it looks like that anyway. Since I'm running ubuntu I can't be sure either since the nixos' I use are deployed to by nixops
<Unode>
hum.. however if I use this super approach I run into "infinite recursion encountered, at undefined position"
<LnL>
kreetx: yeah, exactly
<boomshroom>
infinisil: One of the problems with nixpkgs-mozilla is that it doesn't provide a rustPlatform. 90% of the time when I use nightly, it's not because I want the latest and greatest, but because I'm doing dangerous things that stable just refuses to do.
<boomshroom>
infinisil: It lets you build rust packages within Nix easily. nixpkgs has rustPlatform which builds crates with the default stable compiler and makeRustPlatform that takes a rust compiler and produces a rustPlatform that can build crates.
<Unode>
question: "packageOverrides = super: let self = super.pkgs; in {" before I had "packageOverrides = pkgs: in {" . Does this mean that "self" in the first version is equivalent to "pkgs.pkgs" in the second?
<ij>
tilpner, thanks
<Unode>
x: is just a lambda right? there's nothing special about the 'x' name, or is there?
xcmw has joined #nixos
<infinisil>
Unode: Yes and yes
<infinisil>
But pkgs.pkgs == pkgs
<infinisil>
So I'm not quite sure what's up with this let self = super.pkgs convention
<Unode>
infinisil: not quite it seems. I was using that but ran into infinite recursion.
<infinisil>
Because then self == super
<sphalerite>
I've got a server here where `sensors` from lm_sensors only reports temperatures for the RAM modules. Any ideas what might be missing for the CPU temps to appear?
<sphalerite>
Unode: this is why you should use an overlay :)
<infinisil>
Unode: I just recommend using overlays instead
<Unode>
sphalerite: :S not yet familiarized with them.
<Unode>
it's on my todo... but being pushed down every day
asuryawanshi has joined #nixos
<sphalerite>
Unode: not a big difference from packageOverrides, you just use self: super: {<same stuff you'd put inside packageOverrides>}
<sphalerite>
and stick that in a file in ~/.config/nixpkgs/overlays/
broccoli has joined #nixos
<Unode>
sphalerite: and how do you refer to them?
<Unode>
I assume they aren't just magically picked up
<sphalerite>
Unode: nixpkgs loads all the overlays in ~/.config/nixpkgs/overlays
<Unode>
oh
pxc has joined #nixos
<pxc>
hey, all! what's the fix for precompiled applications on NixOS which now crash on startup for want of libGL.so after the libglvnd change?
<pxc>
I switched to nixos-unstable on my laptop today and now the zoom.us client is broken
kreetx has quit [Ping timeout: 256 seconds]
xy2_ has joined #nixos
nico202 has joined #nixos
<sphalerite>
pxc: as a hack you can probably use LD_PRELOAD. Not sure of the proper solution though.
<sphalerite>
cizra: that sounds like they should maybe be put together using symlinkJoin or buildEnv
nico202 has quit [Ping timeout: 248 seconds]
<pxc>
sphalerite: alright. I'll give that a try when I get home.
<pxc>
sphalerite: what's the difference/advantage of symlinkJoin?
<sphalerite>
pxc: symlinkJoin is simpler, doesn't handle collisions AFAIK (last package on the list takes priority), doesn't allow linking specific subtrees or specific outputs
<Unode>
infinisil: oh so all files in the doc folder are compiled into the manual?
<infinisil>
Ah, well you can define new commands yourself if you have something useful
<infinisil>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<infinisil>
Unode: Indeed
<Unode>
,, Unode
<Unode>
guess not :P
<{^_^}>
[nixpkgs] @wfranzini opened pull request #40521 → minor improvement to nix installation instructions → https://git.io/vpQzx
<Unode>
, Unode
<infinisil>
Unode: Feel free to spam the bot in #bottest :)
hotfuzz_ has joined #nixos
<Unode>
infinisil: :)
<infinisil>
(Especially for the nix eval)
nico202 has joined #nixos
hotfuzz has quit [Ping timeout: 276 seconds]
<boomshroom>
infinisil: The NixOS bot supports evaluating nix expressions? What happens if you try to evaluate a derivation?
<infinisil>
Only evaluation, no building (as of yet)
<infinisil>
It only shows like <derivation ... > because it gets passed through the _show function first btw
<infinisil>
> :v _show
<{^_^}>
_show = x: if lib.isDerivation x then "«derivation ${x.drvPath}»" else x
<Dezgeg>
> builtins.readFile "${hello}/bin/hello"
<{^_^}>
cannot read '/nix/store/6mab2znnw7j96k3vsdw9vyckady29r46-hello-2.10/bin/hello', since path '/nix/store/3d4x54v34cmm67395ssh0p56pqfy0zqv-hello-2.10.drv' is not valid, at (string):36:1
<ami-q>
EC2 noob here. I've created a nixos instance, and I'm try to ssh in with ssh -i <keyfile.pem> root@ec2-whatever
<infinisil>
,nixeval
<{^_^}>
I can evaluate nix if you prefix your expression with "> ". Use it here only for short demos or helping others with the syntax. If you wanna spam me, do it in #bottest!
<ami-q>
my problem is it wants a password, which I don't know. I thought iwth the pem I wouldn't need one.
<ami-q>
is there a default root password on these nixos AMIs?
<boomshroom>
> let succ = x: x+1; seq = f: x: { head = x; tail = seq (f x); }; in seq 0 succ
<{^_^}>
{ head = <CODE>; tail = <CODE>; }
<boomshroom>
> let succ = x: x+1; seq = f: x: { head = x; tail = seq (f x); }; in (seq 0 succ).tail.tail.head
<{^_^}>
value is a function while a set was expected, at (string):36:68
<infinisil>
boomshroom: *cough* #bottest
<sphalerite>
ami-q: I think it is supposed to use the keys, it should work as you wrote AFAIK
<ami-q>
ok, maybe I'll try again with another pem or something
<{^_^}>
[nixpkgs] @Ma27 opened pull request #40522 → nexus: fix setup and nixos test → https://git.io/vpQ2b
<{^_^}>
[nixpkgs] @arcadio opened pull request #40523 → minimap2: init at 2.10 → https://git.io/vpQ2h
<joepie91>
infinisil: does that use hnix or does it just shell out to standard nix somewhere?
<infinisil>
Just nix-instantiate for now, but I might try to use hnix instead soon
<infinisil>
Last time I checked hnix it was not ready at all, but johnw has improved it a lot since then, so I should give it a try again
<boomshroom>
What would a Nix eDSL look like for Haskell?
<infinisil>
Hard to say, the `with;` statements are going to be hard
joebobjoe has joined #nixos
<adelbertc>
also hard would be the string context stuff
<boomshroom>
infinisil: Monads? ;) Use a get function rather than normal bindings?
nico202 has quit [Ping timeout: 256 seconds]
<infinisil>
Yeah, every variable would have to be a string though
<infinisil>
Not sure if monads are needed for it though
broccoli has joined #nixos
<ami-q>
phew, created a new .pem file and new instance, now can connect. not sure what happened the first time...
johann__ has joined #nixos
Guest69026 has quit [Quit: Lost terminal]
thblt has quit [Ping timeout: 276 seconds]
johann__ has quit [Ping timeout: 260 seconds]
vaninwagen has quit [Quit: WeeChat 2.1]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<Unode>
if a derivation fails with "variable $src or $srcs should point to the source", is there any way to simply use the src from the original package? I'm using the 'let' example in https://nixos.org/nixpkgs/manual/#r-packages with nix-build
<Unode>
the 2nd example I mean
<Ralith>
how do I gracefully drop and recreate a binary cache?
<Unode>
ok seems like using pkgs.rWrapper.override from the first example seems to workaround the issue.
broccoli has quit [Ping timeout: 240 seconds]
GaryKibbe has left #nixos [#nixos]
<Ralith>
why does `nix-store --realise` fail to access a private S3 bucket binary cache?
<Ralith>
seems like `nix-shell` has the same problem
warbo has joined #nixos
balsoft has quit [Quit: balsoft]
warbo has left #nixos [#nixos]
tmaekawa has joined #nixos
romildo has joined #nixos
romildo has left #nixos [#nixos]
tmaekawa has quit [Client Quit]
broccoli has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
karlguy has joined #nixos
<joebobjoe>
hi. I am a new nix mac user and am trying to figure out why some gpg functionality isn't working. how do I find a config.log from the compile of the package?
broccoli has quit [Ping timeout: 240 seconds]
simukis has quit [Ping timeout: 248 seconds]
<joebobjoe>
oops, just realized there is a nix-darwin
<LnL>
this channel is fine for things that are not super darwin specific
oknicedoit has joined #nixos
<joebobjoe>
ok. how do I find out how a package was configured?
<oknicedoit>
i have major problem, i want to create nixpkgs, that nixpkg want to write to its nix store directory, i want to force them to use $HOME, but I don't know how
<LnL>
using HOME after the build is fine, that's how most things do it
<joebobjoe>
LnL: that seems to work
<joebobjoe>
what did you do?
<elvishjerricco>
LnL, joebobjoe: The problem is that he only has a channel in his root user
<oknicedoit>
how I may use it after the build?
<LnL>
so?
<elvishjerricco>
LnL: A lot of the docs on Nix expect you to have a nixpkgs channel in your user
<joebobjoe>
elvishjerricco: I just installed nix using the default install script from the website
<LnL>
nix <cmd> channel.package should work for both root and user packages
<LnL>
*channels
<elvishjerricco>
Still, I think it's frustrating that Nix doesn't come with the channels that the docs expect anymore
jtojnar has quit [Quit: jtojnar]
hiratara has quit [Ping timeout: 276 seconds]
<oknicedoit>
Honestly, i'm a little bit disappointed. I was very excited about nixos, but now I see some problems that do not even exist in other distros, and look unsolvable here
hiratara has joined #nixos
<boomshroom>
oknicedoit: Those are the prices we pay. What we get in return can seem magical at times and would not be possible on any other distro.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
oknicedoit: Wait I'm confused what your actual goal is
<infinisil>
What does "I want to create nixpkgs" mean?
<infinisil>
Oh probably just a package, nixpkgs is something different
<infinisil>
oknicedoit: There are the occasional badly programmed packages that try to store its state in its installation directory, and if packagers encounter this they have to fix it themselves by patching it
<joebobjoe>
updated docs should be a priority
<infinisil>
oknicedoit: That's not a fault of nix, but rather of the package not being flexible enough. 99% of packages don't make that mistake
<infinisil>
Storing state where its installed is no good
asuryawanshi has quit [Ping timeout: 256 seconds]
<oknicedoit>
ok, and what is the difference between package and nixpkg? I may patch it, but how can I set -DLOCAL_STATE_DIR to home dir? or waht should i do in that case?
<boomshroom>
oknicedoit: nixpkgs is the entire package repository. A package is, well, a single package.
<joebobjoe>
wh does clicking on the expression link on https://nixos.org/nixos/packages.html for a package link to a specific line in the .nix file on github? rather than just the file?
<Ralith>
whatever it's doing, `nix-store` and `nix-shell` are *not* doing, which is causing problems
hiratara has joined #nixos
<adelbertc>
hm weird, i had to setup netrc for doing that with a different backend (i assume youre speaking in the context of uploading artifacts to a cache)
aminb has quit [Quit: WeeChat 2.1]
<adelbertc>
"setup" being create a netrc and point to it in nix.conf
<Ralith>
nix 2.0 is able to propagate credentials from the user's environment instead of requiring you to manually configure the daemon
<Ralith>
but it does not seem to do so consistently or reliably
aminb has joined #nixos
<Ralith>
(or it's somehow running the download as the user, which would also be fine if it was consistent/reliable)
jperras has joined #nixos
Karl has joined #nixos
<Karl>
Hi, the way the manual says "How to override a Python package using overlays?" only does python2 packages. How can that be python3?
xcmw has joined #nixos
dbmikus has quit [Ping timeout: 248 seconds]
xy2_ has quit [Ping timeout: 265 seconds]
johann__ has joined #nixos
johann__ has quit [Ping timeout: 248 seconds]
hamishmack has joined #nixos
Have-Quick has joined #nixos
sanscoeur has quit [Ping timeout: 248 seconds]
Intensitea has quit [Ping timeout: 260 seconds]
Have-Quick has quit [Client Quit]
Have-Quick has joined #nixos
Lisanna has joined #nixos
chessai has joined #nixos
Karl has quit [Ping timeout: 260 seconds]
alex`` has quit [Quit: WeeChat 2.1]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #34805 → lib: make use of visible variable in doRename → https://git.io/vALyd
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpQ9F
<{^_^}>
→ a7ed44cc by @rycee: lib: make use of visible variable in doRename
<{^_^}>
→ 165c151f by @matthewbauer: Merge pull request #34805 from rycee/fix/dorename
<{^_^}>
[nixpkgs] @xeji pushed commit from @romildo to master « terminology: 1.2.0 -> 1.2.1 (#40524) »: https://git.io/vpQQi
joebobjoe has joined #nixos
joebobjoe has quit [Client Quit]
<tertle||eltret>
im booting up nixos for first time in months, anything I should do to prevent haywire?
TonyTheL1on has joined #nixos
<boomshroom>
tertle||eltret: Not that I can think of, other than just a standard update. Since Linux updates aren't incremental like Windows, it's not nearly as big a hassle.
TonyTheLion has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 264 seconds]
LysergicDreams has quit [Ping timeout: 268 seconds]
<tertle||eltret>
this command right nixos-rebuild switch --upgrade ?
<boomshroom>
tertle||eltret: As root or with sudo, yes.
<tertle||eltret>
i liek this distro because it works and its fun but its not obtuse like gentoo and arch
<boomshroom>
tertle||eltret: As someone who's used NixOS full time for... nearly a year? I'd have to disagree and say it has a lot in common with Arch and Gentoo.
<tertle||eltret>
full time?
deepfire` has quit [Ping timeout: 240 seconds]
<tertle||eltret>
so its your workhorse
<stumble>
boomshroom doesn't even sleep.
<tertle||eltret>
lol
<boomshroom>
tertle||eltret: My primary desktop and gaming/dev machine.
<tertle||eltret>
man I wish my NOC would switch to linux
<stumble>
tertle||eltret: You might wat to check whether you're on a stable channel or the unstable channel. If you're on stable then the upgrade should be minor. If unstable then it might not be.
<gchristensen>
Dezgeg: 'round?
<tertle||eltret>
but they wont, they are invested in MS Office
<boomshroom>
stumble: Wow, I wasn't expecting recognition like that. P.S. I do sleep.
<stumble>
:-)
<stumble>
tertle||eltret: sudo nix-channel -list
camsbury has quit [Remote host closed the connection]
thekolb has left #nixos [#nixos]
<stumble>
If you see something with a version number, that's a stable channel.
<tertle||eltret>
im pretty sure im on stable cuz this was a premade vbox image
slyfox_ has quit [Ping timeout: 256 seconds]
<tertle||eltret>
please dont scoff at me
<Dezgeg>
yah
<boomshroom>
More recently, I've started dual booting on my laptop, but I still tend to use macOS more often there. In my defense, I'm mainly using nix on mac aswell.