<Infinisi1>
Who would've thought, stringly typed stuff making hard-to-read runtime errors
<samueldr>
me
<Infinisi1>
Well same, but I'm annoyed over it
<samueldr>
I know the feeling
<Infinisi1>
Okay now I should actually sleep, I can't think clearly anymore
Supersonic112 has quit [(Disconnected by services)]
<samueldr>
'night
<Infinisi1>
I updated the gist (https://git.io/v5j8X) <-- Havvy if you wanna have a try
Supersonic112_ has joined #nixos
koserge has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #29625: glibc: Grab the right linux headers when build != host (master...linuxHeadersCross) https://git.io/v5jBC
NixOS_GitHub has left #nixos []
Supersonic112_ is now known as Supersonic112
<Havvy>
Infinisi1: What are you trying to do?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/v5jBB
<NixOS_GitHub>
nixpkgs/master 8bfb247 John Ericson: glibc: Grab the right linux headers when build != host...
<NixOS_GitHub>
nixpkgs/master df0c265 John Ericson: Merge pull request #29625 from obsidiansystems/linuxHeadersCross...
NixOS_GitHub has left #nixos []
<samueldr>
[20:32:50] <Infinisil> I actually wanted to 'prove' how easy it would be to override the source of a package to a fork instead and build that
<samueldr>
I have no idea otherwise
<Havvy>
Infinisi1: Eh, doing other things more useful at the moment.
mbrgm has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
eacameron has quit [(Remote host closed the connection)]
ryanartecona has joined #nixos
jellowj has quit [(Ping timeout: 248 seconds)]
<azdle>
I'm trying to figure out an issue w/ firefox. It seems to not have permissions to do *anything*. I get this error when I try to download something: https://i.imgur.com/oqOx9N1.jpg
pknopf has joined #nixos
<azdle>
I also can't install extensions, which fails with another error about not being able to modify files.
<pknopf>
I have a few questions, if someone could help. I'd look through the documentation, but it wasn't clear.
<pknopf>
The nixstore is read only, but what about the booted rootfs?
<pknopf>
What happens if I "echo test > /test.txt"?
<pknopf>
Does it get preserved?
<samueldr>
on an installed nixos, it would, I believe
<pknopf>
I'm thinking of potentially using NixOS as my main development environment. I have multiple machines, from for gaming, some dev, some leisure. Can I create common profiles to inherit from?
<pknopf>
A default profile with my common stuff, an intel profile for intel drivers/configuration that inherits from default, and etc. Think of inheritance in OOP.
<pknopf>
I'd like to be able to change profiles, reboot my machine, to switch between gaming/development/etc.
<azdle>
pknopf, AFAIK (I'm still new to this) you can do something like that. Not inheratance exactly, but you can use multiple config files, one for each "topic", where you can combine them differently on each machine.
<azdle>
Not sure about an easy way to change 'profiles' on a single machine and reboot.
<azdle>
Anyone have any thoughts on what is causing the permissions with firefox I mentioned above?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aszlig pushed 1 new commit to master: https://git.io/v5j0K
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/v5j11
<NixOS_GitHub>
nixpkgs/release-17.09 4a17dea Linus Heckemann: impressive: fixes and improvements...
NixOS_GitHub has left #nixos []
takle has quit [(Ping timeout: 240 seconds)]
rauno has joined #nixos
<rauno>
Hi
jensens has joined #nixos
<ij>
tere
<ij>
There was a reason why «nix-env -i package» takes forever and I had to specify that it doesn't have to do a deep search or something. May anyone remind me how, exactly?
<nixy>
I believe the reason is that with `-i` it has to evaluate all of nixpkgs to find the package that matches the symbolic name
<nixy>
When you use `-iA` with attribute names it can do the lookup near instantly if I understand things right
ertes-w has joined #nixos
pie_ has joined #nixos
<sphalerite>
Thanks Mic92 :)
mkoenig has quit [(Ping timeout: 240 seconds)]
<ij>
nixy, I don't get why this makes sense though.
<nixy>
Paragraph after the first code example kind of explains it
<nixy>
Since there can be more than one package with the same symbolic name it has to evaluate everything to ensure there are no conflicts (i think)
phreedom has quit [(Remote host closed the connection)]
kuznero has joined #nixos
__Sander__ has joined #nixos
<kuznero>
Hi All
<nixy>
Heya
mortum5 has joined #nixos
FRidh has joined #nixos
takle has joined #nixos
<kuznero>
My `nix-build docker.nix` fails with "Unpacking base image... /tmp/nix-build-docker-image-monitor.tar.gz.drv-0/.attr-0: line 24: image/repositories: No such file or directory" Will somebody be able to help figure out what is wrong with it?
<kuznero>
I am running 17.09 (it works in 17.03). Also just pulling a base image is working fine, but something breaks further down...
<ij>
nixy, So maybe the "pkgs" set is created by gathering up all directory names in the repo?
<lewo`>
kuznero: I zqs not able to reproduce your issue and it seems your image is old. Could you use a newer alpine image ?
<lewo`>
s/zqs/was/
<kuznero>
lewo`, I will try it right now.
<lewo`>
kuznero: Moreover, I tryied with the same alpine tag than you and it worked. But the sha of the image is not the same than you. so, it seems they upgraded their image. And maybe they added the repositorie file!
<kuznero>
lewo`, same again, doing `nix-build -E 'with import <nixpkgs> {}; pkgs.dockerTools.pullImage { imageName = "alpine"; imageTag = "3.6"; sha256 = "120lvxx285f0xmrsq4v3p2ny6ln32nm35n78rz21p3ybqr454grg";}'` worked great, but when `nix-build docker.nix` it fails to unpack base image...
<lewo`>
kuznero: I think the image you are using is the old one. Since it is in your cache, the new one is not pulled. To force this, you have to force the rebuild by passing the --check arguement to your nix-build command.
<lewo`>
kuznero: Can you run the same nix-build command with --check argument ?
<kuznero>
lewo`, doing it...
aloiscochard has joined #nixos
<kuznero>
lewo`, strange that one fails without even starting - 4th line is "error: some outputs of ‘/nix/store/vrgdk6avzw8aqi80pd7a4rgl8ay9hdzv-docker-image-monitor.tar.gz.drv’ are not valid, so checking is not possible"
thc202 has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<kuznero>
lewo`, I mean it does not even get to the point when it pull an image. I also tried calling `sudo nix-collect-garbage -d` and after that trying again - same effect
erictapen has joined #nixos
<kuznero>
Interesting thing is that it actually works in 17.03
<lewo`>
kuznero: this doesn't work for me : nix-build -E 'with import <nixpkgs> {}; pkgs.dockerTools.pullImage { imageName = "alpine"; imageTag = "3.6"; sha256 = "120lvxx285f0xmrsq4v3p2ny6ln32nm35n78rz21p3ybqr454grg";}'.
<lewo`>
kuznero: could you run ix-build -E 'with import
<NixOS_GitHub>
[nixpkgs] edwtjo opened pull request #29634: jetbrains-jdk (master...jbjdk) https://git.io/v5jHB
NixOS_GitHub has left #nixos []
pie_ has joined #nixos
stepcut has joined #nixos
sigmundv has joined #nixos
stepcut has quit [(Ping timeout: 248 seconds)]
uralbash has joined #nixos
<rycee>
ixxie: Yeah, what's up?
Itkovian has joined #nixos
leat has joined #nixos
<ixxie>
hey rycee - something weird is happening with my home manager dotfile building; multi-term is getting a 'output path '/nix/store/<hash>-multi-term.el has sha256 hash <hash-a> when <hash-b> was expected.'
mortum5 has quit [(Read error: Connection reset by peer)]
<ixxie>
the weird part is that the very same files work just fine in the office centos machine but fail to build on the home nixos machine
mortum5 has joined #nixos
pie_ has quit [(Ping timeout: 252 seconds)]
<rycee>
ixxie: You have multi-term in programs.emacs.extraPackages?
<ixxie>
rycee: that build command doesn't run standalone; what should I do in addition?
<rycee>
nix-build '<nixpkgs>' -A emacsPackagesNg.multi-term
hamishmack has quit [(Quit: hamishmack)]
zzamboni has quit [(Quit: Leaving.)]
<ixxie>
yeah same error
<rycee>
Ok, and what does `nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion` say?
hamishmack has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
<ixxie>
17.03.1811.8ed299faac
<ixxie>
that checks the exact commit my channel is on?
<rycee>
Ya. So you are still on an older version.
<ixxie>
hmmm
<ixxie>
nix-channel --update wasnt enough it seems
zzamboni has joined #nixos
<rycee>
Should be enough I think. Did you run it as root?
<ixxie>
no
<ixxie>
I was careful to do all this stuff as user
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
pie_ has quit [(Remote host closed the connection)]
jtojnar has quit [(Quit: jtojnar)]
pie_ has joined #nixos
longrin has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<ixxie>
rycee - when I do a nix-channel --update it is download 18.03pre116054.a75265924f
<ixxie>
downloading*
<ixxie>
which is the right one right?
<ixxie>
it unpacks and gives no error and yet the instantiate doesn't move beyond 17.03
<rycee>
I'm guessing that since NIX_PATH points to /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs it'll not look for the channel in your home directory.
pie_ has quit [(Ping timeout: 240 seconds)]
MrCoffee has joined #nixos
<ixxie>
wait,- is NIX_PATH global?
<rycee>
Ya, it'll be set by /etc/profile
<ixxie>
so its not per user
<ixxie>
is there some per-user analogue to that?
tmaekawa has joined #nixos
zzamboni has joined #nixos
<rycee>
I'm not sure what is the recommended way to have per-user channels under NixOS. Sourcing ~/.nix-profile/etc/profile.d/nix.sh doesn't work since it appears to put the nixpkgs entry at the end of NIX_PATH.
erictapen has quit [(Ping timeout: 248 seconds)]
<ixxie>
then how does Nix distinguish between different users' channels?
<sphalerite>
clever: any reason your qemu-user package isn't in nixpkgs?
zzamboni has quit [(Ping timeout: 248 seconds)]
erictapen has joined #nixos
MP2E has quit [(Quit: sleep)]
zzamboni has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
zzamboni1 has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
pie_ has joined #nixos
phinxy has quit [(Quit: Leaving)]
zzamboni1 has quit [(Client Quit)]
zzamboni has joined #nixos
<mpickering>
Is there a way to query *why* a certain derivation is being built?
Lisanna has quit [(Ping timeout: 240 seconds)]
<mpickering>
Somewhere I am using the wrong package set but can't find where
Lisanna has joined #nixos
pie_ has quit [(Ping timeout: 252 seconds)]
jellowj has joined #nixos
kuznero has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to master: https://git.io/vdevA
<NixOS_GitHub>
nixpkgs/master b0deb1e Thomas Tuegel: dropbox: 34.4.22 -> 35.4.20
NixOS_GitHub has left #nixos []
<pmeunier>
Hi! Is there a way to automatically garbage-collect old generations? I have the automatic GC enabled, but that's not enough. My disk got full, and I only noticed this after 50 generations.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 2 new commits to release-17.03: https://git.io/vdefT
<NixOS_GitHub>
nixpkgs/release-17.03 0b1a5f2 Peter Hoeg: dropbox: 34.4.20 -> 34.4.22...
<NixOS_GitHub>
nixpkgs/release-17.03 b7e4857 Thomas Tuegel: dropbox: 34.4.22 -> 35.4.20...
NixOS_GitHub has left #nixos []
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to release-17.09: https://git.io/vdeft
<NixOS_GitHub>
nixpkgs/release-17.09 811f153 Thomas Tuegel: dropbox: 34.4.22 -> 35.4.20...
<hyper_ch>
pmeunier: well, seems you need to run nix-env --delete-generations xxx$
<hyper_ch>
unfortunately there doesn't seem to be a way to keep the last xx generations but only keep generations newer than xx days
<pmeunier>
hyper_ch: sure, but I wanted it done automatically in /etc/nixos/configuration.nix sometimes. Maybe a systemd timer would do, but I was wondering about existing things in nixpkgs
<hyper_ch>
pmeunier: run cron
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #29587: elvish: 0.9 -> 0.10 and fix darwin build (master...elvish-darwin) https://git.io/v5pwL
NixOS_GitHub has left #nixos []
<hyper_ch>
I'd really love a feature delete generations except the last 20 generations....
erictapen has quit [(Ping timeout: 240 seconds)]
<bennofs>
doesn't nix-collect-garbage have an argument for thatß
<hyper_ch>
30d --> delete older than 30 days
<bennofs>
hmm right
<hyper_ch>
still don't really get what nix-env --delete-generations and nix-collect-garbate do differently
<BlessJah>
nixos-17.03-small is finally advancing!
<hyper_ch>
not using unstable? :)
<ij>
1. Can nix do partial builds of a haskell project while developing or that works only with cabal within nix-shell? 2. Is there any use for stack when using nix?
arianvp2 has quit [(Quit: arianvp2)]
<gchristensen>
etu: systemd-boot does clean entries for me
eacameron has quit [(Ping timeout: 260 seconds)]
<BlessJah>
hyper_ch: mix of 17.03 for system and 17.03-small for personal profiles
<BlessJah>
hyper_ch: 17.03-small was stuck or downgraded to 17.03.1817.694529e45d over week ago, it just moved today
goibhniu has quit [(Ping timeout: 252 seconds)]
<hyper_ch>
only one week no updates? oO
<BlessJah>
Keep in mind we're talking about 17.03-small. Regular 17.03 was updated every other day.
<etu>
gchristensen: Then I assume that you invoke it in some way? Because garbagae collecting generations doesn't clean boot entries for me
<gchristensen>
etu: ah, nixos-rebuild switch is where the cleanup happenss
<hyper_ch>
unstable is downloading lots of packages and stuff... I wonder what's going on :)
ShalokShalom_ has joined #nixos
<BlessJah>
gchristensen: Reward for good work is more work ;) You've helped when I noticed some channel downgrades (script failed to prevent some race condition between subsequent commits)
<gchristensen>
haha, isn't that the truth!
jellowj has joined #nixos
arianvp2 has joined #nixos
arianvp2 has quit [(Client Quit)]
ShalokShalom has quit [(Ping timeout: 240 seconds)]
corpix has quit [(Read error: Connection reset by peer)]
<zzamboni>
Hi everyone, one question, and apologies if this is due to a misunderstanding of how channels work: I just saw that https://github.com/NixOS/nixpkgs/pull/29587 has been merged. When/how will I be able to see the update on my machine? I have https://nixos.org/channels/nixpkgs-unstable as a channel, but even after running 'nix-channel —update', nix-env -qa does not see the package. Do I have to do something else, or just wait for the cha
<zzamboni>
nge to propagate?
mattcode has joined #nixos
<nixy>
Just gotta wait
<disasm>
zzamboni: you need to wait for the channel to advance, or clone it down and run -I nixpkgs=/path/to/nixpkgs (but that may result in a lot of compiling)
<Unode>
Suggestion is to put the buttons on the top of the page instead of bottom. When paging through the buttons keep moving up and down depending on how much content is shown on page. It's annoying.
<ij>
What is the "hello" of "nix-env -iA hello"? How is the set that the hello is a part of created? From the directory names that have a default.nix in them?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] michalrus opened pull request #29640: Use patchelfUnstable in chromium/plugins.nix (master...chromium-patchelfUnstable) https://git.io/vdetp
NixOS_GitHub has left #nixos []
<gchristensen>
ij: in pkgs/top-level/all-packages.nix is hello = callPackage ../applications/misc/hello { };
jellowj has joined #nixos
aexoxea has joined #nixos
pxc has quit [(Ping timeout: 248 seconds)]
arianvp2 has quit [(Quit: arianvp2)]
<ij>
and all-packages.nix is imported somewhere from nixpkgs/default.nix or its imports?
hamishmack has quit [(Quit: hamishmack)]
hamishmack has joined #nixos
Myrl-saki has quit [(Ping timeout: 255 seconds)]
<gchristensen>
ij: yeah, it is a bit complex from nixpkgs/default.nix -> all-packages.nix but yes :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vdemm
<NixOS_GitHub>
nixpkgs/master 53337c0 Aleksey Kladov: jetbrains.jdk: init at 152b970.2
<NixOS_GitHub>
nixpkgs/master 85cd648 Edward Tjörnhammar: jetbrains.jdk: style fixes, platform restriction
<NixOS_GitHub>
nixpkgs/master 182dd6a Tim Steinbach: Merge pull request #29634 from edwtjo/jbjdk...
NixOS_GitHub has left #nixos []
<ij>
Amazing! I also found how the haskell package's via haskell-modules/' callPackage work, roughly.
<ij>
I found a file that builds a container by importing just nixos/modules/profiles/minimal.nix and nixos/lib/eval-config.nix. It has a lot of packages inside, how does it generate the list
<ij>
s/$/?
jtojnar has joined #nixos
jtojnar_ has quit [(Ping timeout: 264 seconds)]
lsix has joined #nixos
jellowj has joined #nixos
<gchristensen>
what do you mean, generate the list?
<ij>
Probably via eval-config's input "baseModules ? import ../modules/module-list.nix".
<gchristensen>
I don't know what list you're referring to
<ij>
List of things that will be added to the resulting container tarball.
<Mic92>
ij: you can print the dependency closure of this tarball. The following will print the closure of your system: nix-store -q --tree /nix/var/nix/profiles/system
<gchristensen>
in case we have people connected to Puerto Rico: Puerto Rico is 100% without Electricity. The Emergency Management Antenna and the NOAA NWS National Hurricane Center have collapsed. Some cell towers have fallen and many radio stations are off the air. If anyone knows of any person who needs help, they can call (787) 777-0940 WIPR radio, they are receiving emergency calls.
<hyper_ch>
if it's without electricity, how can you be connected?
<gchristensen>
please don't troll about this, hyper_ch
<hyper_ch>
it's no trolling... I'm curious
<Mic92>
hyper_ch: generators?
<gchristensen>
hyper_ch: perhaps you, a person not in P.R., knows somebody in P.R., and you know they need help, you can call. or: if you know someone in P.R. who is connected to the rest of the world, please relay the message to them.
<hyper_ch>
I don't know anyone there
<hyper_ch>
well, nobody personally.... IIRC Ricky Martin is from P.R. but that's about all I know about it
<Infinisil>
There is a package named 'gle' at nix top-level, but it's something different..
fleaz has joined #nixos
Fendor has joined #nixos
FRidh has quit [(Ping timeout: 240 seconds)]
Infinisil has quit [(Quit: leaving)]
erictapen has joined #nixos
<Unode>
Is there any recommended way to have zlib available inside a nix-shell? I'm trying to compile a third party package and it keeps failing on missing zlib.h and -lz
<sphalerite>
Unode: nix-shell -p zlib ?
uralbash has joined #nixos
<sphalerite>
Unode: or add it to the buildInputs of the derivation that you're shelling into
<Unode>
sphalerite: tried that as well as zlib.dev but it still fails to find it.
<sphalerite>
Unode: what exactly does your nix-shell invocation look like?
<Unode>
sphalerite: I'm not using a derivation. Simply opening a nix-shell and running the ./configure && make in it
jtojnar has quit [(Ping timeout: 240 seconds)]
<Unode>
sphalerite: at this point, literally nix-shell -p zlib
<Unode>
was planning to play with --pure but I'm still puzzled as why simply -p zlib doesn't work.
uralbash has left #nixos []
<sphalerite>
Uh then surely it shouldn't be finding a compiler which would then be unable to find it?
jtojnar has joined #nixos
<sphalerite>
try nix-shell -p zlib gcc
<sphalerite>
If it's using pkg-config to find it you'll also need that
Fare has joined #nixos
<Unode>
sphalerite: sorry the delay, the configure script find the right compiler. At least one inside nix.
<Unode>
let me try your suggestion and then paste some output
elurin has quit [(Remote host closed the connection)]
<sphalerite>
no, it's very unlikely to be the right compiler
<sphalerite>
you shouldn't have a compiler installed, instead getting it through nix-shell
<Unode>
I have a nix compiler in my ~/.nix-profile (not running NixOS here)
jtojnar has quit [(Ping timeout: 248 seconds)]
stepcut has joined #nixos
<sphalerite>
yes. You shouldn't have one installed, instead getting it through nix-shell
<sphalerite>
otherwise it won't be aware of dependencies
<sphalerite>
(where "installed" = "in your profile")
<woffs>
sphalerite, is that magic eplained somewhere?
<Unode>
sphalerite: ok your suggestion actually got across
<Unode>
interesting though. I though that simply having a gcc in path would make this work. Guess I was wrong.
<woffs>
explained, I mean
<Fare>
Hi. How does nix decide what is package name and what is version? If I have gerbil-v0.12-DEV-... it thinks that's all the package name.
<sphalerite>
woffs: that… is a good question. I certainly didn't find that knowledge in docs :/
revtintin has joined #nixos
<bfrog>
when is the new nix cli program coming?
<bfrog>
I like... want to give nix a try again at that point I think
jellowj has joined #nixos
Infinisil has joined #nixos
<Unode>
sphalerite: thanks for the pointer. That was helpful
iyzsong has quit [(Ping timeout: 240 seconds)]
<Unode>
On another note, is there any way (via config) to have nix-shell default to the nixos channel instead of nixpkgs ?
<sphalerite>
bfrog: you can use it now, it's under the name nixUnstable in nixpkgs
<sphalerite>
bfrog: as for a stable release, I'm not sure anybody knows yet
<bfrog>
nifty
<sphalerite>
Unode: you have a nixos channel?
<bfrog>
I wish nixops supported linode :(
<Unode>
sphalerite: yes
<bfrog>
looks like someone started it a long time ago
cyberwolf[m] has left #nixos ["User left"]
<bfrog>
I get its not the most popular "cloud" provider but yeah, for the money hard to beat
Neo-- has quit [(Remote host closed the connection)]
<Unode>
sphalerite: should be mostly the same but since they compile from source nixpkgs changes a bit too often and I get rebuilds all the time
Neo-- has joined #nixos
<Unode>
however it's convenient for fixes when they come out.
<sphalerite>
Unode: ah right. I'm not sure it's possible to get it to use something other than <nixpkgs>, so your best bet is to set NIX_PATH in one way or another
<sphalerite>
something like aliasing it to nix-shell -I nixpkgs=path/to/nixos-17.09
<Unode>
sphalerite: I see. Thanks I'll look into that. The alias is what I was planning to use if all else failed :)
<sphalerite>
or changing the env var if you don't mind it affecting stuff other than nix-shell
<Infinisil>
pipes.sh randomly clears/semi-clears the screen, which shouldn't happen
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #29644: mba6x_bl: update to b96aafd (master...patch-3) https://git.io/vdeVm
NixOS_GitHub has left #nixos []
<Infinisil>
Also some other terminal problems such as the bottom irssi bar not extending to the full length
<Infinisil>
It happens with bash/zsh and konsole/alacritty/gnome-terminal
<Infinisil>
I can't think of what this could be caused by otherwise
erasmas has joined #nixos
elurin has joined #nixos
<sphalerite>
Is there a way to watch the build of a derivation when the tool that triggered the build has been called with -Q? bunzip2 doesn't like the incomplete bzip2 file in /nix/var/log/nix/drvs
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.9)]
dannyg has quit [(Quit: dannyg)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to release-17.09: https://git.io/vdewG
<disasm>
those certs are all throw-away, they aren't used anywhere
ryanarte_ has quit [(Quit: ryanarte_)]
dmi3y has quit [(Quit: dmi3y)]
<kuznero>
disasm, excellent! Thanks! I am planning on presenting Nix* ecosystem in my org in a couple of week and these slides will be very much helpful. I hope author wouldn't mind... I will probably need to ask him
<kuznero>
disasm, and the github link - this looks like an example of 3-noded kube, right?
__Sander__ has quit [(Quit: Konversation terminated!)]
dmi3y has quit [(Quit: dmi3y)]
<kuznero>
disasm: thanks a lot! this is a great start for me.
<kuznero>
disasm: sorry, just realized that you are the author of these slides.
serhart has joined #nixos
<disasm>
That would be me :)
TMVector has joined #nixos
<disasm>
and yes, you may use/change the slides in any way you want to convince others to use nix :)
<cransom>
if they are not convinced, we will consider it a personal slight from you against the community and you will be ostracized.
goibhniu has quit [(Ping timeout: 240 seconds)]
<disasm>
lol :)
<kuznero>
disasm: that's the plan :)
<kuznero>
thanks
<kuznero>
cransom: then I will have to ask for your help before getting into this meeting :) such that you will at least know that I am well equipped :D
grumble has quit [(Read error: Connection reset by peer)]
jellowj has quit [(Ping timeout: 240 seconds)]
nix-gsc-io`bot has joined #nixos
<kuznero>
cransom: they are somewhat interested in changing stuff for better, but jumping from Windows to Linux is not possible for all in that org. I will have to try to appeal to as bigger amount of people as possible
<kuznero>
disasm: I recently went through this article... it sounds a bit too deep for that purpose. My original thinking was to try to show that dependency hell (COM hell) problem dissolves with Nix and play from that book. Then move slowly into NixOS that is built atop Nix with some interesting features as a result. Then move to nixops with a couple of examples of deploying to public clouds (DO,Azure,AWS,etc.)
jellowj has joined #nixos
<kuznero>
Plus, developer setup becomes rather attractive (but that is more difficult as most are using Visual Studio)
pie_ has quit [(Ping timeout: 240 seconds)]
lush has joined #nixos
<disasm>
cool, let us know how it goes!
<disasm>
Are you going to be at NixCon?
<lush>
heyyo! Is there someone that is willing to help me build a custom package? Shouldn't be very hard I guess
<kuznero>
disasm: I really wanted to go but I really doubt I will be allowed unfortunately
<disasm>
lush: whatcha need help with?
<lush>
disasm: I want to install "ddnet" (see ddnet.tw)
<lush>
It's a patched version of the game teeworlds that is available in the repos
<lush>
so I think it should be enough to edit the teeworlds file a little bit
<disasm>
lush: so the build systems are actually different for those two
ryanarte_ has joined #nixos
<disasm>
so what I would do is run `git grep` in nixpkgs for cmake and copy something similar
<disasm>
it also looks like you'll need lua for an input
<disasm>
maybe start with the same inputs as teeworld and just add cmake as an input
<disasm>
and kill the installPhase part
Itkovian has quit [(Ping timeout: 255 seconds)]
<disasm>
and the buildPhase part
<disasm>
that's how I'd get started with it. If you get stuck, gist what you got and someone can help you out.
FRidh has quit [(Quit: Konversation terminated!)]
m0rphism has joined #nixos
<lush>
I don't really know how to write those files yet tbh, but I'll try. Thank you :)
ryanarte_ has quit [(Client Quit)]
<disasm>
you'll also need ddnet = callPackage ../games/ddnet {}; added into pkgs/top-level/all-packages.nix
revtintin has joined #nixos
ryanarte_ has joined #nixos
Neo-- has joined #nixos
lush_ has joined #nixos
silver_hook has quit [(Remote host closed the connection)]
lush has quit [(Ping timeout: 240 seconds)]
silver_hook has joined #nixos
silver_hook has quit [(Client Quit)]
silver_hook has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
<lush_>
disasm: it tells me "cannot auto call a function that has an argument... (fetchurl)"
<disasm>
lush: lush_ so, first I'd use fetchFromGitHub instead of fetchurl, second, you need that part added to top-level I mentioned above and then in the root of nixpkgs, call nix-build -A ddnet
<disasm>
you could also run this in that directory: nix-build -K -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'
stanibanani has joined #nixos
<lush_>
but I've got the source as .tar.gz from their homepage
cfricke has quit [(Quit: WeeChat 1.9)]
lush_ has quit [(Quit: Konversation terminated!)]
sary has joined #nixos
glenn has joined #nixos
silver_hook has quit [(Ping timeout: 252 seconds)]
<catern>
do other packages link against "curl" or "curlFull"?
<ryantm>
I have a NixOS VM that has two static IP addresses, and when I use NixOps to change the configuration to remove the one that is not set as deployment.TargetHost, the process gets interrupted:
<swflint>
Yeah, I see that. Maybe I should try to work on it.
<Mic92>
deep rapid hole
<Mic92>
wpa_supplicant has way too much options
<ryantm>
Mic92: Oops, I just had something wrong in my network configuration. False alarm.
mudri has joined #nixos
jellowj has joined #nixos
pie_ has joined #nixos
<kuznero>
bachp: I meant does nixpkgs contains swarm related options...?
<bachp>
kuznero: Sorry I missunderstud. I'm not aware of any.
<kuznero>
My assumption that there are no additional options for swarm specifically, so my plan then was to make sure that after nixops uploads all closures to remote machines it could run a bunch of scripts - 1) to init swarm manager, and 2) to join from workers
<viaken>
Does anyone have Xmonad running successfully? I've tried a few example configs for older NixOS releases and can't seem to get it to work.
<disasm>
kuznero: I'd use python fabric for that personally.
sziszi has quit [(Ping timeout: 252 seconds)]
sary has quit [(Ping timeout: 240 seconds)]
sary has joined #nixos
jensens has quit [(Ping timeout: 240 seconds)]
<CrazedProgrammer>
is there any way I can load a string from a file in nix? i know i can use `import` to load a nix expression but i'd like to avoid having to wrap the file in ''s
<tilpner>
CrazedProgrammer - builtins.readFile
dmi3y has joined #nixos
<CrazedProgrammer>
thanks! :)
dywedir has quit [(Remote host closed the connection)]
ryanarte_ has joined #nixos
<swflint>
So, is there a way to set an option’s type to be one of a list of strings or null?
<bachp>
swflint: Maybe `types.nullOr (types.listOf types.str)`. But I haven't tested
bennofs has quit [(Read error: Connection reset by peer)]
mattcode has quit [(Read error: Connection reset by peer)]
<kuznero>
disasm: sounds like an option for such task. Basically I need to init manager (which will produce a TOKEN) and join workers with that token. Do you think that is possible with fabric?
<tilpner>
swflint - Do you want null and an empty list to behave differently?
<rnhmjoj[m]>
anyone here using luks?
<kuznero>
disasm: and if so can fabric part be integrated into logical nix expression for nixops?
<kuznero>
disasm: and as far as I understand you don't need such cluster manual configuration with kubernetes, right?
sigmundv has joined #nixos
<rnhmjoj[m]>
i noticed something strange: if I set `fileSystems.<name>.encrypted.enable = true;` nix fails to build the systemd with a type error: null while string is expected.
dmi3y has quit [(Quit: dmi3y)]
ona has joined #nixos
griff_ has joined #nixos
<Infinisil>
rnhmjoj[m]: add --show-trace
<Infinisil>
this should give you some information to find the issue
<Infinisil>
I'm pretty sure you should use nixos-generate-config though, which should put the encrypted fs into hardware-configuration.nix, with the correct settings
<Infinisil>
I am using luks, although in an unconventional setup, so that I can't use nixos-generate-config for that
<rnhmjoj[m]>
I did use nixos-generate-config but it missed something
kuznero has quit [(Remote host closed the connection)]
<Infinisil>
rnhmjoj[m]: I just use boot.initrd.luks.devices = { root = { device = "/dev/..."; keyFile = "..."; }; }; maybe try this
<Infinisil>
rnhmjoj[m]: Ohh, and seeing the options of the encrypted option, try setting encrypted.label
<rnhmjoj[m]>
that's what it generates and seems to work. anyway I found in the manual that there is another interface to set this up `fileSystem.<name>.encrypted` whihc doesn't seem to work
Wizek has quit [(Ping timeout: 252 seconds)]
terrorjack has quit [(Ping timeout: 252 seconds)]
rodarmor has quit [(Ping timeout: 252 seconds)]
moredhel has quit [(Ping timeout: 252 seconds)]
rjsalts has quit [(Ping timeout: 252 seconds)]
civodul` has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
nand0p has quit [(Ping timeout: 252 seconds)]
spacefrogg has quit [(Ping timeout: 252 seconds)]
fingerzam has quit [(Ping timeout: 252 seconds)]
jasom has quit [(Ping timeout: 252 seconds)]
h30 has quit [(Ping timeout: 252 seconds)]
symphorien has quit [(Ping timeout: 252 seconds)]
civodul has quit [(Ping timeout: 252 seconds)]
SOO7 has quit [(Ping timeout: 252 seconds)]
swflint has quit [(Ping timeout: 252 seconds)]
cocreature has quit [(Ping timeout: 252 seconds)]
ericnoan has quit [(Ping timeout: 260 seconds)]
siel has quit [(Ping timeout: 252 seconds)]
indika has quit [(Ping timeout: 252 seconds)]
gleber_ has quit [(Ping timeout: 252 seconds)]
aniketd[m] has quit [(Ping timeout: 252 seconds)]
h30 has joined #nixos
dejanr has quit [(Ping timeout: 240 seconds)]
fingerzam has joined #nixos
kanshazan has quit [(Ping timeout: 260 seconds)]
nand0p has joined #nixos
cybrian has quit [(Ping timeout: 260 seconds)]
bigvalen has quit [(Ping timeout: 260 seconds)]
adamCS has quit [(Ping timeout: 260 seconds)]
adamCS has joined #nixos
hiratara has quit [(Ping timeout: 240 seconds)]
cybrian has joined #nixos
ericnoan has joined #nixos
indika has joined #nixos
bigvalen has joined #nixos
dejanr has joined #nixos
SOO7 has joined #nixos
cocreature has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
swflint has joined #nixos
rjsalts has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] disassembler opened pull request #29650: opencascade: remove 6.5.5 and 6.6.0 (master...opencascade) https://git.io/vdv4l
NixOS_GitHub has left #nixos []
spacefrogg has joined #nixos
siel has joined #nixos
sellout-1 has quit [(Ping timeout: 240 seconds)]
<rnhmjoj[m]>
Infinisil: thank you. it was indeed encrypted.label. it defaults to null, that's what caused the type error.
hiratara has joined #nixos
<Infinisil>
This should really be an assertion so you don't get this cryptic (heh) error
<rnhmjoj[m]>
definitely, i will make a PR when I have time
<Infinisil>
I could do it now
sellout- has joined #nixos
<rnhmjoj[m]>
I wonder if encrypted.label is needed at all, can't we use `fileSystems.<name>.label` directly?
<Infinisil>
It's the luks label
<rnhmjoj[m]>
or at least use that instead of null
<Infinisil>
luks puts the decrypted devices at /dev/mapper/<label>
<Infinisil>
which you can then use like a regular device
moredhel has joined #nixos
jasom has joined #nixos
terrorjack has joined #nixos
Wizek has joined #nixos
rodarmor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 2 new commits to master: https://git.io/vdvBm
<NixOS_GitHub>
nixpkgs/master 351f5fc Michael Weiss: fuse3: init at 3.1.1...
<NixOS_GitHub>
nixpkgs/master 137142a Michael Weiss: sshfs-fuse: 2.10 -> 3.2.0
NixOS_GitHub has left #nixos []
symphorien has joined #nixos
<rnhmjoj[m]>
so setting `<name>.label` to the luks label is incorrect?
<SusWombat>
Hey :) Can i use the nix package manager on a "old" ubuntu lts versiobn to get up2date packages?
civodul` has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<Infinisil>
rnhmjoj[m]: Yeah, but do you have any labels for those is what I'm wondering
<Infinisil>
SusWombat: Can't think of a reason this wouldn't work :)
<rnhmjoj[m]>
yes, I do
<SusWombat>
Infinisil: Ah cool thank you that would be a really coll thing
<SusWombat>
cool*
<SusWombat>
is it hard to uninstall nix and all the packages i installed through it once i dont need it anymore?
<rnhmjoj[m]>
are you planing to remove it right after or asking just in case?
glenn has quit [(Remote host closed the connection)]
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #29469: dmd & ldc: Fix bootstrap dmd to build with sandboxing of nixUnstable and fix dmd to build on Darwin; Disable check phases of dmd and ldc because of sandboxing problem (master...fix-dmd) https://git.io/v55xk
NixOS_GitHub has left #nixos []
sellout- has quit [(Ping timeout: 240 seconds)]
stepcut has quit [(Remote host closed the connection)]
<disasm>
anyone know what magic creates the [nix-shell] above my prompt with prezto? Trying to help a friend that uses zsh but not prezto reproduce that.
hiratara has joined #nixos
mattox has joined #nixos
<SusWombat>
The thing is im on a laptop for 1-2 weeks which runs ubuntu 14.04 lts. And this way i could use up2date packages without needing to upgrade or switch distro
<SusWombat>
can the packages from the official repos conflict with nix ones?
nh2 has quit [(Ping timeout: 248 seconds)]
<rnhmjoj[m]>
SusWombat: they shouldn't. nix install everything inside is own directory. I have never installed nix on another distro though
<NixOS_GitHub>
[nixpkgs] Infinisil opened pull request #29651: encrypted devices: add label set assertion (master...encrypted-label-assertion) https://git.io/vdvuZ
NixOS_GitHub has left #nixos []
<Infinisil>
SusWombat: ^^
<SusWombat>
Infinisil: ?
<Infinisil>
Oh I mean rnhmjoj[m]
<Infinisil>
sry
<SusWombat>
ah
<urbain1>
Hi! I use mopidy-mopify on Nixos, and the version of the program in the unstable channel is quite old so there are a few bugs. I was wondering whether there was any way to manually install/specify a more recent version of that package? (Sorry if the answer to my question is trivial, I am quite new to Nix.) Is any else in the same situation? Thank you!
urbain1 is now known as numerobis
leat has quit [(Ping timeout: 248 seconds)]
sellout- has quit [(Ping timeout: 240 seconds)]
<mattox>
@urbain1, if there is a package already installed, then usually it's not so hard.
<mattox>
Are you able to find the nixpkg repository on github?
<rnhmjoj[m]>
Infinisil: can I ask you some more question about luks?
<Infinisil>
rnhmjoj[m]: Sure
<mattox>
Find the package that contained the old version and make a copy, updating it for the new version.
<mattox>
Probably you need to set the version number and update the md5sum.
<Infinisil>
numerobis: mattox: You can override it instead, no need to copy the file or so
MrCoffee has joined #nixos
<disasm>
SusWombat: I do that all the time on machines I don't want to touch the production packages on.
<rnhmjoj[m]>
Infinisil: thanks. are you using grub? uefi?
<SusWombat>
disasm: ah great to hear
<disasm>
SusWombat: everything installed via nix is installed with it's own *hash* in /nix/store/<hash>-package-version and the nix utilities magically add that to your path
<disasm>
SusWombat: although, I have to warn you, using nix can be very addictive, you may end up installing nixos on your laptop after you try it!
<mattox>
Infinisil: that would make things easier!
<disasm>
there's just something about never having to worry about conflicting dependencies :)
sellout- has joined #nixos
<mattox>
As for me, I am trying to get clang++ to work. The compiler compiles, but it cannot find standard libraries like iostream.
<rnhmjoj[m]>
> nix can be very addictive
<rnhmjoj[m]>
very true
<mattox>
g++ works fine though.
<SusWombat>
disasm: I wouldnt mind that :) Not on that laptop tho maybe ill try it as soon as i have a non ancient machine
<SusWombat>
again
mudri has quit [(Ping timeout: 248 seconds)]
<Infinisil>
rnhmjoj[m]: I'm using UEFI and grub
<disasm>
SusWombat: yeah, I have nixos on two macbooks and my desktop/server in the office here :) not to mention all the stuff in the cloud I use nixops with.
<SusWombat>
^^
<SusWombat>
disasm: I borrowed a ancient laptop since my pc died so i dont want to mess to much with the system. Thats the reason right now to try nix
<rnhmjoj[m]>
Infinisil: the thing is have a bios only system and i'm seeing this error https://github.com/NixOS/nixpkgs/issues/11521. the fix is to mount the efi boot partition but I don't have one!
<Infinisil>
rnhmjoj[m]: Create one?
<disasm>
SusWombat: nice! hope you like it :)
nh2 has joined #nixos
<rnhmjoj[m]>
out of curiosity I tried changing the grub version from 2 to 1 and it segfaults during the install
numerobis has quit [(Ping timeout: 240 seconds)]
<Infinisil>
No idea about that
<Infinisil>
Never used grub1 or BIOS
sary has quit [(Remote host closed the connection)]
<SusWombat>
disasm: so besides /nix and ~/.nix-defexpr and ~/.nix-profile nothing on my system is changed by nix right?
sary has joined #nixos
gleber_ has joined #nixos
<disasm>
right
<disasm>
with a single user install, if you're doing multi-user there's a daemon and it's a little more complex
<disasm>
but linux still defaults to single user install
<rnhmjoj[m]>
Infinisil: grub actually made the /mnt/boot directory and wrote to it.
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 4 new commits to master: https://git.io/vdvzb
<NixOS_GitHub>
nixpkgs/master 54282b9 John Ericson: gcc: Change default of `crossStageStatic` param to false...
<NixOS_GitHub>
nixpkgs/master 88a0e55 John Ericson: wrapCC: Alias now does the right thing for cross...
<NixOS_GitHub>
nixpkgs/master b9bf90c John Ericson: all-packages: Remove gccCrossStageFinal; any gcc will not work
NixOS_GitHub has left #nixos []
<SusWombat>
disasm: sry one more question. where would i store the configs for the packages installed by nix
mudri has joined #nixos
<disasm>
SusWombat: so... with nix not on nixos, that's typically going to be specified as an argument to the binary, since you won't have any service scripts for starting things with locations for data set in them.
<disasm>
or env vars you set
<SusWombat>
disasm: so i would start mpd with for example mpd -c "~/myMpd.conf" (pseudo syntax ofc) ?
silver_hook has quit [(Ping timeout: 246 seconds)]
<disasm>
SusWombat: probly want a --no-daemon on that, but yeah
takle has quit [(Ping timeout: 260 seconds)]
<SusWombat>
disasm: ah nice thanks.
<SusWombat>
Im really fascinated by nix right now :D
<Infinisil>
rnhmjoj[m]: /boot can be any filesystem, only /boot/efi needs to be on the Efi system partition and vfat
glenn has joined #nixos
erictapen has joined #nixos
<disasm>
Mic92: k, think the latest push does the trick. it builds now with nix-build -A topydo. Not sure if we need to note that change in release notes from python36Packages.topydo.
<SusWombat>
disasm: is nix-env slow by default or is my hardware just not good enough for it?
<SusWombat>
doesnt do anything since i told it to install a package like a minute ago
<tilpner>
It actually is slow by default, searching packages by name instead of looking up by path
<Mic92>
SusWombat: nix-env -iA
<tilpner>
(Use -iA instead of -i)
<SusWombat>
what does A do?
<Mic92>
install by attribute
<tilpner>
Looks up the package by path instead of checking every package for a matching name
<disasm>
specifies to install by attribute name
<disasm>
so you'll do -iA nixpkgs.mpd for example
<SusWombat>
error: attribute ‘emacs’ in selection path ‘emacs’ not found :/
<SusWombat>
aaah
<SusWombat>
sex
<SusWombat>
sec*
<SusWombat>
error: attribute ‘nixos’ in selection path ‘nixos.emacs’ not found :/
<disasm>
mattox: if you figure that out let me know what you did... I have about 10 packages that are failing with 17.09 release that all give the same error :(
* disasm
doesn't know enough about clang/nix integration to figure that one out
predator117 has quit [(Ping timeout: 240 seconds)]
<SusWombat>
btw is it even ok that i ask about only the package manager in the "os" channel?
<SusWombat>
Hope i dont "spam" the wrong channel
eqyiel has joined #nixos
<Infinisil>
SusWombat: Try just redoing the build
<SusWombat>
yeah worked on second tr
<Infinisil>
I get that error sometimes when my network is unreliable
<SusWombat>
try*
<disasm>
yup, this is the place
siel has quit [(Remote host closed the connection)]
* disasm
hopes this is the last time he has to build qt doing a nox-review command
siel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] siddharthist opened pull request #29653: Coq: Homotopy Type Theory (master...hott) https://git.io/vdv2o
NixOS_GitHub has left #nixos []
<SusWombat>
Is there a way to do a faster search for packages?
<rnhmjoj[m]>
SusWombat: there is nox, which is a bit more user friendly
<SusWombat>
hm ok
<Infinisil>
I mostly just use ripgrep in a nixpkgs checkout
<MP2E>
haha. I use ripgrep in a nixpkgs checkout too :v
<disasm>
tilpner: woah, I didn't realize my zsh tab completion did that!
<disasm>
and I must be old school, I still just use git grep :)
<disasm>
or find ./ -name
<disasm>
but usually I'm trying to find the location of a package rather than the package name :)
<Infinisil>
disasm: I use `rg '<packageName> = '` which spews out the line where it's defined, often with callPackage, which then shows me the location
<Infinisil>
I wish nixpkgs used SCID
<tilpner>
Severe combined immunodeficiency?
<Infinisil>
Heh no, SourceCode in Database
<Infinisil>
Because representing source code as text is logically stupid
<tilpner>
What popular systems do that successfully?
<Infinisil>
none :P
<Biappi>
i don't think that's the job of a distro/package manager tho. a version control, maybe
<mattox>
disasm: Thanks.
<Infinisil>
Yeah more of the language itself
stepcut has joined #nixos
erasmas has quit [(Quit: leaving)]
<ryantm>
With Chef, when you try to converge a machine, you get a kind of diff of what will change on the machine. With nixops, or just NixOS reconfiguration, there isn't something like that by default. Any suggestions for mitigating that downside?
<Infinisil>
ryantm: nixos-rebuild dry-build shows you what derivations need to be rebuilt, which is the most similar thing I can think of
<SusWombat>
if i install a window manager via nix the display manager wouldnt be able to tell it exists right?
eqyiel has quit [(Remote host closed the connection)]
<ryantm>
Infinisil: Yeah, that at least gives you some general idea. If there was a good way to diff an tree of the top level derivation of the deployed OS and the new deploy, that might work.
takle has joined #nixos
justanotheruser has joined #nixos
takle has quit [(Ping timeout: 248 seconds)]
<Infinisil>
SusWombat: Probably not, nix-env installs stuff into the user env, which is not on the display managers path because the display manager is what logs in the user
<SusWombat>
yeah
<SusWombat>
i guess i would need to disable the display manager :/
justanotheruser has quit [(Ping timeout: 264 seconds)]