<rgrinberg>
also, when i search for packages i get this warning: warning: name collision in input Nix expressions, skipping ‘/Users/rgrinberg/.nix-defexpr/channels_root/nixpkgs’
<rgrinberg>
i wonder if that's related in any way
<Unode>
that's likely because there's 2 nixpkgs channels on your system
<Unode>
possibly one from the root/store level and another from your user.
<rgrinberg>
Unode: yeah, that seems to be the case...
<Unode>
you can add it under a different name to avoid the collision
<Unode>
just call it something else other than nixpkgs
<yorick>
can someone try to build speexdsp on nixos-unstable?
<Unode>
you can then install from that channel with nix-env -iA channel.package
<rgrinberg>
Unode: hmm, and yet i still only have the old versions of ocaml availble :/
radivarig has joined #nixos
sellout- has joined #nixos
sellout- has quit [(Read error: Connection reset by peer)]
sellout- has joined #nixos
<Unode>
rgrinberg: back there on that warning, nix told you about a path. Check on the same path but under the new channel name. See if the content includes the ocaml version you want.
<Unode>
It might just be that the channel you cloned doesn't have the version you think it does.
<rgrinberg>
i think i did that. i searched with -qaP and i saw only old versions available in both channels
<rgrinberg>
i.e. the channel i added and the one from sudo
<yorick>
okay, so nix-repl :r doesn't work as well as I thought
<clever>
ryantm: rgrinberg: also, "sudo nix-channel --list" doesnt work on a mac, you must "sudo -i" then "nix-channel --list"
<clever>
ryantm: gchristensen recently modified the nix installer to do multi-user on darwin by default, because the OS is far more predictable then generic-linux
dbmikus has joined #nixos
dbmikus has quit [(Client Quit)]
_ris has quit [(Ping timeout: 246 seconds)]
onethirtyfive has left #nixos []
ktf_ has joined #nixos
ktf_ has quit [(Ping timeout: 264 seconds)]
justanotheruser has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
<Unode>
clever: if I can pick your brain for 2 seconds, do you see anyhing wrong with http://dpaste.com/0MHG1PR
<Unode>
I added that at some point to skip tests on that package. Today a package failed complaining it couldn't find libunistring. Commenting those lines seems to be doing progress.
<Unode>
*failed compiling
<clever>
only weird part, is that your storing a modified findutils inside libunistring
<clever>
rather then a modified libunistring
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v5Niy
<NixOS_GitHub>
nixpkgs/master 1ee60e9 Joachim Fasting: tor: 0.3.0.10 -> 0.3.1.7
NixOS_GitHub has left #nixos []
<Unode>
clever: hehe that might be the issue. Bad copy paste most likely
<Unode>
yup that makes sense
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
<Unode>
clever: thanks! always helpful as ever :)
<clever>
yep
<Unode>
might also explain why in the past unistring tests were still running "despite override"
<rnhmjoj[m]>
i made a fix for a package in issue #28643 and was merged into master. should i make another PR against the 17.09 branch or is someone going to cherry-pick it?
<fearlessKim[m]>
To use one's overlays while 'sudo nixos-rebuiliding', would that be enough to do 'sudo nixos-rebuid NIX_OVERLAY=~/.config/nixpkgs/overlays/' ?
Wizek_ has quit [(Ping timeout: 255 seconds)]
stepcut has quit [(Remote host closed the connection)]
takle has quit [(Remote host closed the connection)]
stepcut has joined #nixos
mkoenig has quit [(Remote host closed the connection)]
koserge has quit [(Ping timeout: 252 seconds)]
orivej has quit [(Ping timeout: 246 seconds)]
stepcut has quit [(Remote host closed the connection)]
<U007D>
hi, all. I'm trying to install NixOS; I've created a 512MB EFI partition (type 0xef00), and a Linux filesystem partition on a pure GPT disk. My system is UEFI. After following the directions in the NixOS Manual, `nixos-install` finishes with a grub bootloader error:
<U007D>
warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible... installation of GRUB on /dev/nvme0n1 failed
<yrashk>
does anybody know how to enable gnome infrastructure (I have gtk apps that heavily rely on gnome, gsettings, etc.) without enabling desktopManager.gnome? (the latter conflicts with my synaptics and libinput settings)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] teto opened pull request #29558: fcitx: fix keyboard not found (master...fctix_xkeyboard) https://git.io/v5NNE
NixOS_GitHub has left #nixos []
pxc has quit [(Ping timeout: 248 seconds)]
hotfuzz has joined #nixos
hotfuzz_ has quit [(Ping timeout: 255 seconds)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
arximboldi has joined #nixos
arximboldi has quit [(Remote host closed the connection)]
zzamboni has joined #nixos
zzamboni1 has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
zzamboni1 has quit [(Remote host closed the connection)]
zzamboni has joined #nixos
ixxie has joined #nixos
<ixxie>
Morning
zzamboni has quit [(Quit: Leaving.)]
<ixxie>
domenkozar - you in the house?
<hyper_ch>
no
Mateon3 has joined #nixos
civodul has joined #nixos
<ixxie>
hyper_ch: you know Domen's schedule? xD
<hyper_ch>
it was just a yes/no/maybe/abort/42 question... so I had a 20% chance to pick the right answer ;)
Mateon3 is now known as Mateon1
<ixxie>
hyper_ch: assuming uniform distribution
* ixxie
is a probability geek
<hyper_ch>
no need to overcomplicate things
<hyper_ch>
also I could just have picked 42 all the times
<hyper_ch>
you can't argue against 42
<ixxie>
you can with 23
<ixxie>
23 > 42
<ixxie>
clearly
<hyper_ch>
well, the only answers that come close to 42 are 47 and 73
<ixxie>
and I can guarantee you I am not the only Nixer that believes this is so
<ixxie>
hyper_ch: I can also guarantee you I am not the only Nixer to think so because there are FNORDs in the manuals and ddate is packaged
zzamboni has joined #nixos
<hyper_ch>
well, 42 is never wrong as an answer and because of that I'm hesitant to pick it
<hyper_ch>
it just takes the thrill away to know whether I guessed correctly
ktf_ has joined #nixos
Neo--- has quit [(Remote host closed the connection)]
ertes has quit [(Ping timeout: 240 seconds)]
Neo--- has joined #nixos
odi has quit [(Ping timeout: 240 seconds)]
<voice_ftp_>
How can I start nix-shell with all build dependencies of the specified package?
sauyon has joined #nixos
mattcode has joined #nixos
odi has joined #nixos
leat has quit [(Quit: WeeChat 1.9)]
<voice_ftp_>
I've tried `nix-shell $nixpkgs/pkgs/$blabla/default.nix`, but it does not work (error: cannot auto-call a function that has an argument without a default value (‘fetchurl’))
<sauyon>
is there an easy way to call a command in a nix expression
<hyper_ch>
hmm, I have a github repo with a few shell scripts and a nix-expression in it... actually I have multiple such repos... now I've been wondering whether I should move the nix-expressions all to a seperate repo... any ideas?
endformationage has quit [(Quit: WeeChat 1.9)]
<ixxie>
hyper_ch: so basically create your own little nixpkgs
<hyper_ch>
not sure what you mean
FRidh has joined #nixos
<ixxie>
hyper_ch: if you put all the nix expressions separately from the scripts you are essentially structuring it like nixpkgs does
<ixxie>
there's a repo of nix expressions which summon code from other repos
<hyper_ch>
the reason is with the other repos it always rqeuires two commits
<hyper_ch>
first commit to get code up-to-date
<hyper_ch>
actually 3 commits
newhoggy_ has joined #nixos
<hyper_ch>
first to get code up-to-date
<hyper_ch>
then next commit updating the commit version
<hyper_ch>
and then third commit to update the sha for that commit
zzamboni has quit [(Quit: Leaving.)]
<ixxie>
I have been toying with the idea of updating sha hashes by a script that spits out a JSON which is then imported to the expression
<ixxie>
I think somebody made a tool for this even
<ixxie>
not sure
zzamboni has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
<FRidh>
ixxie: with some larger sets of packages we do that, but not with individual packages. There were some PR's for it, but I don't think it got merged.
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v5AeD
<NixOS_GitHub>
nixpkgs/master bc850cf Tuomas Tynkkynen: qt4: Add aarch64 patch
NixOS_GitHub has left #nixos []
zzamboni has quit [(Ping timeout: 240 seconds)]
nh2 has joined #nixos
<domenkozar>
Geraldus: I use HIE
mudri has quit [(Ping timeout: 240 seconds)]
<domenkozar>
with atom
<Geraldus>
domenkozar: Hmm... Does ATOM extension also depends on Node?
a6a3uh has joined #nixos
takle has quit [(Remote host closed the connection)]
mudri has joined #nixos
koserge has joined #nixos
elurin has joined #nixos
Neo--- has quit [(Ping timeout: 264 seconds)]
sauyon has quit [(Ping timeout: 240 seconds)]
hio has joined #nixos
<hio>
I will never learn the nix language, just fyi
<hio>
the justifications for inventing a new language are ridiculous, you could easily offer a C api that allows only certain kinds of operations and it would have the same effect
<makefu>
hio: nix provides lazy evaluation, show me how you want to do this with a c api
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edwtjo pushed 2 new commits to master: https://git.io/v5AJ3
<NixOS_GitHub>
nixpkgs/master d623220 Edward Tjörnhammar: CODEOWNERS: jetbrains
<NixOS_GitHub>
nixpkgs/master add7faf Edward Tjörnhammar: jetbrains: update.pl, make sure hashes are in base32
NixOS_GitHub has left #nixos []
woggin has joined #nixos
woggin has quit [(Client Quit)]
thc202 has joined #nixos
goibhniu has joined #nixos
woggin has joined #nixos
a6a3uh has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<fearlessKim[m]>
what's the policy for backporting a package from master to nixpkgs-unstable ? I really miss the secretstorage python package (I use keyring+secretstorage to access login/passwords in most apps)
phreedom has joined #nixos
<mbrock>
hio: would you like to write and maintain Nixpkgs in C?
<bachp>
fearlessKim: AFIK unstable gets updated to master once the hydra builds complete. Not sure about the details tough.
<mbrock>
hio: btw, how would you explain the justifications for inventing a new language, and where did you learn about them?
erictapen has joined #nixos
<FRidh>
fearlessKim[m]: nixpkgs-unstable is a channel that is based on master master. It just takes some time for the channel is updated.
<fearlessKim[m]>
Pascal Bach: thanks. I have trouble finding a page with hydra status. I would like to see how far in queue the derivation is
<__Sander__>
I'm not even sure about how "free" android is these days
<__Sander__>
I have the feeling that it has become a lot more restrictive
pxc has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
Myrl-saki has joined #nixos
phreedom has joined #nixos
<hyper_ch>
domenkozar: your thoughts?
<__Sander__>
hmm "You may not use this SDK to develop applications for other platforms (including non-compatible implementations of Android) or to develop another SDK"
<__Sander__>
don't know if creating a Nixpkgs-based Android SDK is another SDK
<hyper_ch>
IMHO it's not
<hyper_ch>
it's still the same software
<domenkozar>
hyper_ch: I prefer to have nix with the source
<domenkozar>
but I guess "it depends"
<hyper_ch>
domenkozar: the reason why I'm pondering is because I need to make 3 commits
<hyper_ch>
(1) commit altered source (2) change nix file for new commit in step 1 created (3) nix-update and get new sha-256 that matches the new commit
<mbrock>
__Sander__: sounds like it should definitely be marked as non-free, right?
<hyper_ch>
well, it make sme look 3 times more productive though (based on commit numbers)
<__Sander__>
mbrock: yes
<__Sander__>
it is not free anymore
<__Sander__>
earlier, you had no such obligation
<__Sander__>
the sdk was fine, and the base components were free
<__Sander__>
only some google-specific APIs weren't
<__Sander__>
but now it is an issue
taktoa has joined #nixos
<mbrock>
__Sander__: hmm, I wonder if you can just patch out the EULA in a source build
<mbrock>
it might be a similar situation as the Caddy web server, which has a EULA on its binaries but is fully open source so you're free to remove it
<__Sander__>
yeah, maybe if you cherry pick the free components and build them yourself you can avoid it
<__Sander__>
but
<__Sander__>
that will be quite a challenge
<__Sander__>
to package and test it all
eacameron has joined #nixos
phreedom has quit [(Remote host closed the connection)]
<fearlessKim[m]>
I would like to setup 2 Virtual machines with custom kernels & interconnect them + give them an internet connection. Is that a valid usecase for disnix ?
a6a3uh has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
phreedom has joined #nixos
<Mic92>
fearlessKim[m]: either that or you use nixops
arximboldi has joined #nixos
<fearlessKim[m]>
yeah nixops description seems to fit better even if I have yet to distinguish between the 2 services
<fearlessKim[m]>
joepie91: I have yet to finish the part on disnix but it seems nixops is more than enough for some prototyping. Thanks for the great link
Alling has joined #nixos
a6a3uh has joined #nixos
<fearlessKim[m]>
and nixops supports libvirtd \o/
jensens has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
a6a3uh has quit [(Client Quit)]
zzamboni has joined #nixos
SOO7 has quit [(Ping timeout: 252 seconds)]
phreedom has quit [(Remote host closed the connection)]
Wizek_ has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
Alling has quit [(Quit: Page closed)]
zzamboni has joined #nixos
etu has joined #nixos
a6a3uh has joined #nixos
jensens has quit [(Ping timeout: 248 seconds)]
zzamboni has quit [(Ping timeout: 248 seconds)]
SOO7 has joined #nixos
zzamboni has joined #nixos
a6a3uh has quit [(Ping timeout: 252 seconds)]
ebzzry has joined #nixos
Guest83091 has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
<niksnut>
__Sander__: sad news about the Android SDK
<niksnut>
Google (like Apple) seems to become more and more hostile to FOSS
<__Sander__>
yes
<__Sander__>
apple was always very restrictive
<__Sander__>
they have become slightly less restrictive now
<__Sander__>
but it's still bad
<__Sander__>
with android it's a different story
<__Sander__>
when I just packaged the android sdk
<__Sander__>
you could do whatever you want
<__Sander__>
it was mostly free
<__Sander__>
aside from some google-specific APIs
<__Sander__>
now the EULA imposes many kinds of annoying restrictions
zzamboni has quit [(Ping timeout: 240 seconds)]
Geraldus has quit [(Remote host closed the connection)]
zzamboni has joined #nixos
<gchristensen>
:(
jtojnar has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
jtojnar has left #nixos []
ebzzry_ has joined #nixos
ebzzry has quit [(Read error: Connection reset by peer)]
ebzzry_ is now known as ebzzry
hotfuzz has quit [(Ping timeout: 255 seconds)]
Guest83091 has quit [(Quit: WeeChat 1.7)]
zzamboni has joined #nixos
<zzamboni>
Hi everyone
<zzamboni>
Continuing with my exploration of Nix, I have started installing a bunch of packages on my Mac using Nix and uninstalling them from Homebrew
<zzamboni>
Question: is there an easy way to see a description of a package? I found "nix-env -qa —meta —xml package" which shows an XML construct which includes the description, but I was wondering if there's some easier way
<goibhniu>
zzamboni: doesn't --description work?
<VLetrmx>
niksnut, Yes Google are just as bad, for example they have private forks of numerous components such as jgit, where they don't push their contributions back into the open. It is shameful.
<zzamboni>
goibhniu: Duh :) Of course it works, somehow I missed that in the documentation - thanks!
<goibhniu>
zzamboni: cool, glad to hear you exploration is going well :D
chakerbenhamed has joined #nixos
<zzamboni>
I'm still not too familiar with the concept of channels - so far I'm using the default setup
<zzamboni>
are there any channels that I should add to find frequently-used stuff?
nh2 has quit [(Ping timeout: 240 seconds)]
* goibhniu
doesn't know the deal with the darwin channels
pie_ has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
TweyII has joined #nixos
<edwtjo>
__Sander__: what about ReplicantSDK? it would be better than nothing
k2s has joined #nixos
<TweyII>
So I've been running an old generation of NixOS for a while because newer ones hang on boot. But it seems like something upgraded my Nix, and now I get: error: current Nix store schema is version 10, but I only support 7
jellowj has joined #nixos
<TweyII>
The Web suggests that I dump-db from my newer Nix, but it doesn't seem to help: /nix/store/1rq68c42mp7wa0y8jxj0l581vckiz143-nix-1.12pre5350_7689181e/bin/nix-store --dump-db > /tmp/db.dump just says error: cannot open connection to remote store ‘daemon’: current Nix store schema is version 10, but I only support 7
<mguex>
TweyII: your system nix is 1.11, while the db is already @ the scheme 1.12 uses
zzamboni has joined #nixos
<mguex>
if you don't have a backup of your /nix/var directory there is not much you can do afaik. I ran into this problem a few times myself.
<mguex>
TweyII: yeah, that's the one your user env exposes
<mguex>
but the system, like the one systemd starts is different I guess
<ocharles>
Hmm, I have something quite odd. I have a file, `cabal2nix.nix`, generated - unsurprisingly - with `cabal2nix`. It looks like `{mkDerivation, foo, bar}: ...`. I now have `default.nix` which contains `import ./cabal2nix.nix`. Using this `default.nix` works fine when passed to haskellPackages.overrides
<ocharles>
However, if I change `default.nix` to `args: import ./cabal2nix.nix args`, I get `anonymous function at /nix/store/dv6ppq8d08czzbg53nss4rah2g1nmsww-api/cabal2nix.nix:1:1 called without required argument ‘mkDerivation’`
<mguex>
TweyII: ^
<ocharles>
What's going on there?
jellowj has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] roberth closed pull request #29421: arelle: enable only on python 3.4 DON'T MERGE (master...master-arelle) https://git.io/v573d
<chakerbenhamed>
Hey, I am generating a list of set using mapAttrs' it's generate something in the form of { foo_x = "bar-a"; foo_y = "bar-b"; }, Right now I wanna repeat that 3 times so it can generate something in the form of { foo_x_1 = "bar-a"; foo_x_2 = "bar-a"; foo_x_3 = "bar-a"; foo_y_1 = "bar-b"; foo_y_2 = "bar-b"; foo_y_3 = "bar-b";}. I tried using map on top of mapAttrs map (i: mapAttrs' (name: value: nameValuePair
<chakerbenhamed>
("foo_" + name+"${i}" ) ("bar-" + value)) { x = "a"; y = "b"; }) [ 1 2 3 ] but it didn
<chakerbenhamed>
didn't work
<ocharles>
`{mkDerivation, ...}@args: import ./cabal2nix.nix args` gets further, but just complains about a different missing attribute
<TweyII>
mguex: Can I maybe tell nix not to use the daemon? So I can dump the DB?
<NixOS_GitHub>
nixpkgs/release-17.09 4a524b5 Joachim Fasting: tor: 0.3.0.10 -> 0.3.1.7...
NixOS_GitHub has left #nixos []
<ixxie>
FRidh: do you recon it would be particularly challenging? I am thinking of giving it a shot but I never packaged anything but my own scripts
Infinisil has joined #nixos
tmaekawa has quit [(Ping timeout: 240 seconds)]
Infinisil has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/v5ABY
<NixOS_GitHub>
nixpkgs/master 5c18c55 Robin Gloster: dmtcp: fix buffer overflow due to too long ld-linux.so path...
NixOS_GitHub has left #nixos []
<FRidh>
ixxie: not really. Just use buildPythonPackage for jupyterhub, and node2nix for the proxy.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/v5AB0
<NixOS_GitHub>
nixpkgs/release-17.09 fb16e57 Robin Gloster: dmtcp: fix buffer overflow due to too long ld-linux.so path...
NixOS_GitHub has left #nixos []
<gchristensen>
wow, nice globin
tmaekawa has joined #nixos
<ixxie>
ill give it a shot FRidh
griff_ has quit [(Ping timeout: 260 seconds)]
<globin>
gchristensen: well very special case for NixOS
griff_ has joined #nixos
<gchristensen>
no kidding :)
<globin>
gchristensen: also cannot imagine a way of exploiting that
<ixxie>
rycee: you here by any chance?
<gchristensen>
globin: I'd be impressed if someone did :)
<globin>
gchristensen: (unless you bundle a ld-linux.so and control the whole path and built the dmtcp executable to that ld-linux.so, which would generally mean you've got too many privileges anyway %))
eacameron has joined #nixos
ShalokShalom_ has joined #nixos
<ixxie>
anybody know how to get the home manager to work for the non-graphical emacs
eacameron has quit [(Ping timeout: 248 seconds)]
tmaekawa has quit [(Ping timeout: 248 seconds)]
<ixxie>
or lets put it this way, is there emacsWithPackages for non-graphical emacs?
ShalokShalom has quit [(Ping timeout: 255 seconds)]
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
<robert`>
Hi there! A little question came up the other day. I am managing my servers with nixops, which gives me declarative deployments. I know that with the same configuration I will get the same server state. My problem right now is, ok: but what exactly is my current server state? I have my configuration checked in in a git repo, but commits don't necessarily match up with deployments. So I have this server and I have my config, how do I
<robert`>
know what version of the config matches up with the current server state? In particular I have a nixpkgs-overlay in my config directory where I have a derivation for gonimo our web-based baby monitor. How can I find out, which git commit of the gonimo repo is currently running on my server? Many thanks in advance!
<clever>
robert`: find the storepath of gonimo that is actively running (ps aux), then find its .drv file in the store of the deployer that ran nixops
<clever>
robert`: in that drv file should be the path to its src drv, which will contain directions on how the src was downloaded
<clever>
robert`: nix-store --query can also help
erictapen has quit [(Ping timeout: 248 seconds)]
<rycee>
ixxie: No, at the moment it doesn't support emacs without X. Should be simple to change. I'll have a look at it.
<ixxie>
rycee: I figured out I can just run emacs -nw for the terminal version
spear2 has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<ixxie>
so its not that important honestly
<rycee>
ixxie: Ah, right. I thought you didn't want the X dependencies.
<ixxie>
rycee: I don't but I can live with them for now
<ixxie>
its not worth the effort at this moment ^^
voice_ftp_ has quit [(Quit: Leaving)]
voiceftp has joined #nixos
<rycee>
Cool. I'll have a look at it when I can.
<ixxie>
rycee: how are git aliases entered?
<ixxie>
is it like aliases = { a = "add"; p = "push";};
Shados has quit [(Quit: No Ping reply in 180 seconds.)]
voiceftp has quit [(Quit: Leaving)]
voiceftp has joined #nixos
Shados has joined #nixos
griff_ has joined #nixos
rburkholder has joined #nixos
michiell has joined #nixos
stepcut has joined #nixos
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
sellout- has joined #nixos
Fare has joined #nixos
sellout-1 has joined #nixos
spear2 has quit [(Remote host closed the connection)]
takle has joined #nixos
sellout- has quit [(Ping timeout: 246 seconds)]
zzamboni has quit [(Quit: Leaving.)]
stepcut has quit [(Remote host closed the connection)]
mkoenig has joined #nixos
stepcut has joined #nixos
zzamboni has joined #nixos
griff_ has quit [(Ping timeout: 240 seconds)]
griff_ has joined #nixos
sellout-1 has quit [(Quit: Leaving.)]
Fare has quit [(Ping timeout: 246 seconds)]
<robert`>
clever: Thank you that were some clever hints. I did not manage yet to track it down to the actual source (possibly because I tried to be clever with my nix deployment setup), but at least I have a starting point now. Thank you!
<ij>
Is it possible to generate the inputs of a derivation in my default.nix?
pxc has joined #nixos
sellout- has joined #nixos
TweyII has joined #nixos
<TweyII>
mguex: It booted! All is good
<TweyII>
(well, I had to disable bumblebee, but other than that)
<mguex>
TweyII: wb :)
newhoggy has joined #nixos
pie_ has quit [(Ping timeout: 240 seconds)]
<TweyII>
Thanks!
<mguex>
TweyII: what did you do exactly? this might be a good article for the wiki
<TweyII>
mguex: Disable daemon, then follow the usual schema update procedure (dump, load) dumping from the new nix in /nix/store
<TweyII>
Then re-enable the daemon
<mguex>
k :)
<TweyII>
Now I'm suffering the slight embarrassment at work that I'm using the nixpkgs-mozilla overlay for Rust, but I'm getting error: imported archive of ‘/nix/store/y54pp8hil2fbv3q9wdyfh2vlgafska83-channel-rust-nightly.toml’ lacks a signature when I try to build my env
<TweyII>
mguex: Even though I rebuilt, and nix-channel only has unstable in it, I notice that I still have /nix/store/rdp6gya3x2pswiil4izcwbn1svi9w8jd-nix-1.11.6/bin/nix-daemon in my systemd config
<TweyII>
Oh wait, no, it's now /nix/store/q4v6p3r5bhddhl9rhyc9c80v3zi5babg-nix-1.11.15/bin/nix-daemon
<TweyII>
Ohhh, this is all because I went rogue and installed nixUnstable for the shiny CLI tool the other day
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/v5AiB
<NixOS_GitHub>
nixpkgs/master 33e34aa Peter Simons: haskell-generic-builder: rename withBenchmarkDepends argument to doBenchmark...
NixOS_GitHub has left #nixos []
reinzelmann has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to release-17.09: https://git.io/v5Aia
<NixOS_GitHub>
nixpkgs/release-17.09 db849d3 Peter Simons: haskell-generic-builder: rename withBenchmarkDepends argument to doBenchmark...
NixOS_GitHub has left #nixos []
<mguex>
TweyII: if you really want to use nixUnstable this is nix.package = pkgs.nixUnstable; in your configuration.nix but I'd wait until it is stable
<mguex>
try to downgrade to nix 1.11 again
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/v5Aih
<NixOS_GitHub>
nixpkgs/master 8231045 Peter Simons: LTS Haskell 9.5
<NixOS_GitHub>
nixpkgs/master eab41cb Peter Simons: hackage-packages.nix: automatic Haskell package set update...
NixOS_GitHub has left #nixos []
takle has quit [(Remote host closed the connection)]
eacameron has joined #nixos
takle has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
roni has joined #nixos
justanotheruser has quit [(Ping timeout: 255 seconds)]
<roni>
can anyone explain why <nixpkgs> comes from root's channels, but nix-env uses my non-root user's channels? if i want to keep all sources of packages up-to-date, do i need to do both `nix-channel --update` and also `sudo nix-channel --update`?
<roni>
or would there be any major problem setting NIX_PATH to point to my non-root user's channels instead? (there would no longer be one "central" channel for packages, i suppose, but i could keep everything up to date with a single command)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/v5AXw
<NixOS_GitHub>
nixpkgs/master a8b6995 Peter Simons: haskell.lib: add doBenchmark helper function
<NixOS_GitHub>
nixpkgs/master 2439a83 Peter Simons: haskell.lib: strip trailing whitespace
NixOS_GitHub has left #nixos []
roni has quit [(Disconnected by services)]
roni_ has joined #nixos
roni_ is now known as roni
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
<tnks>
roni: I don't use NixOS (yet), but Nix itself is unopinionated about what you set NIX_PATH to.
ona has quit [(Quit: ...)]
<tnks>
I set NIX_PATH to alternate nixpkgs checkouts all the time at work.
<makefu>
roni: you can do this without any issues.
<fearlessKim[m]>
roni_: yeah you can do whatever you want, I have nixpkgs set in NIX_PATH to local repo too. (just need to be careful with nix-env that ignore it by default)
pxc has quit [(Ping timeout: 240 seconds)]
jellowj has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
hio has quit [(Ping timeout: 248 seconds)]
<TweyII>
mguex: Yeah, I did
jellowj has joined #nixos
<TweyII>
mguex: I just did a ‘nix-env -i nixUnstable’ in my environment, secure in the knowledge that Nix wouldn't let my user environment do any damage to the system environment ;)
<gchristensen>
TweyII++
<TweyII>
mguex: But nix-env -e nixUnstable undid it
<TweyII>
Or rather, nix-env -e nix; nix-env -i nix
<TweyII>
Though I guess I don't actually need a nix in my user env
<taaperotassu>
Damn so updating my configuration.nix without adding boot.loader.grub.enableCryptodisk = true; doesnt work .. I thought it would only need password for choosing to boot nixos.. but now grub also needs to have password.
zzamboni has quit [(Remote host closed the connection)]
<TweyII>
taaperotassu: I just use boot.initrd.luks.devices and I have the setup it sounds like you want
newhoggy has joined #nixos
zzamboni has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
<Ankhers>
I am going through a guide to get xmonad + xmobar setup. The guide suggests adding some things to my .xsession file. Is that still the suggested way of doing things, or is there a more NixOS-y way of doing things? (Specifically I need to start trayer). https://wiki.haskell.org/Xmonad/Config_archive/John_Goerzen's_Configuration is the guide I am going through.
Arcaelyx has joined #nixos
<taaperotassu>
TweyII how did u do that?
<taaperotassu>
or like if u use that .. can u update normally withut getting dtree errors? TweyII
<taaperotassu>
after quick google https://pastebin.com/0pJnjvEE Wondering why the name is root? also if not using lvm then the syntax would be?
griff_ has quit [(Ping timeout: 248 seconds)]
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
rauno has quit [(Ping timeout: 255 seconds)]
<TweyII>
taaperotassu: You want to use LVM — otherwise you have to enter a separate passphrase for each partition
<TweyII>
taaperotassu: You can use any name you like — that's the name that appears in /dev/mapper, e.g. /dev/mapper/root
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
<taaperotassu>
okay
<taaperotassu>
but I think that LVM will just over complicate.. I am trying to get dualboot to work.
<taaperotassu>
thought also that I have boot as own partition.. and nixos installation on its own.. so thats why boot also needs to be encrypted?
zzamboni has quit [(Ping timeout: 240 seconds)]
ebzzry has quit [(Ping timeout: 260 seconds)]
iyzsong has quit [(Ping timeout: 240 seconds)]
<taaperotassu>
Why with lvm it will overcome this problem?
<TweyII>
taaperotassu: /boot should be unencrypted. LVM allows you to put multiple logical partitions inside one physical (LUKS) partition, so you only have to open the volume once.
<TweyII>
Rather than having to separately unlock /, /home, /var, swap, &c.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #27797: Convert libs to a fixed-point (master...fixed-lib) https://git.io/v78r8
NixOS_GitHub has left #nixos []
c_wraith has joined #nixos
<chakerbenhamed>
Hey is there a function that flaten a list of set into a set?
<taaperotassu>
Right now I am having https://github.com/NixOS/nixpkgs/issues/21830 this issue.. and boot.grub.enableCryptodisk = true; having this forces grub to ask me password TweyII
robert` has quit [(Ping timeout: 240 seconds)]
<taaperotassu>
my Nixos /home /var etc are all in same partition thought.
<disasm>
which is pretty much what tilpner said does: concatSets = builtins.foldl' (a: b: a // b) {};
<tilpner>
Oh, didn't know about concatSets
<disasm>
yeah, I came across it last night helping someone figure out why non-existent drivers for X didn't throw an error on rebuild :)
<tnks>
I have a script that calls a Nix expression using nix-build. And we have a situation where sharing source code is tricky at work (for reasons that are partially political).
<tnks>
I know nix-env can install with /nix/store paths, which is nice.
<chakerbenhamed>
It didn't work as I want. Bascilly the list of set that I have is in the form of [ { worker-bar = { description = "bar-1"; }; worker-foo = { description = "foo-1"; }; } { worker-bar = { description = "bar-2"; }; worker-foo = { description = "foo-2"; }; } ]
<tnks>
but is there a way to also get that to work with nix-build?
<tnks>
(it saves me having to refactor this script too heavily).
<tnks>
(if I can change more the Nix expression than the script).
ryanartecona has joined #nixos
<disasm>
tnks: I'm not sure what you're asking. nix-build installs in to the store if that's what your asking.
<roni>
tnks: makefu: fearlessKim[m]: thanks for your thoughts!
<tnks>
disasm: I think I'm asking something that's not possible or recommended, which is one reason the question sounds funny.
<roni>
fearlessKim[m]: i thought about setting it to a local repo but i'm not developing new packages for nix a lot, i mainly want to keep a private "custom packages" repo going, based off the same channels i get packages via nix-env from
<chakerbenhamed>
disasm: tilpner Sorry It acctually works
<chakerbenhamed>
I had a typo
<chakerbenhamed>
Thanks a lot
<tnks>
disasm: nix-build normally take a Nix expression that yeilds a derivation as input. I'm wondering if it can also take in the /nix/store path for something that's already built and just grab it from a private cache.
<tnks>
disasm: but I can use nix-env for that, I think.
<disasm>
ah, I see now...
<fearlessKim[m]>
roni maybe you can use nix "overlays"
<tnks>
disasm: cool, now that you understand the question... do you think it's possible?
<roni>
Ankhers: i use xmonad with xmobar and trayer - i have a .xinitrc file that starts things, and i tell my configuration.nix to `sh ~/.xinitrc` as part of the displaymanager settings
<TweyII>
taaperotassu: Yeah, if you encrypt GRUB you'll need to enter a passphrase to decrypt it
<disasm>
I don't think it is, but I'm no expert myself :)
<TweyII>
taaperotassu: Although it seems that you can then set it up to decrypt your other partitions for you
<roni>
Ankhers: would be nixosier to just put the commands directly in there but i've been taking baby steps :)
<roni>
fearlessKim[m]: i have looked at overlays a bit and i don't fully get them yet
<fearlessKim[m]>
TweyII: I installed once nixUnstable and I quickly rolled back, be careful
<roni>
fearlessKim[m]: right now i'm just trying to create a derivation that lets me wrap chromium with some extra flags
<disasm>
tnks: so basically you have something in /nix/store built already that you don't have access to the source derivation and you want it to use that, and if it doesn't exist, fetch from binary cache
<fearlessKim[m]>
roni: overlays are just perfect for that
ryanarte_ has joined #nixos
<roni>
fearlessKim[m]: can you maybe point me to an example? would love to try different ways to do this to get my head around it
<disasm>
clever Infinisil gchristensen ^^^ any thoughts, is what tnks wants to do possible?
<TweyII>
fearlessKim[m]: Too late ;)
<TweyII>
fearlessKim[m]: But it's okay, I recovered with mguex' help
<fearlessKim[m]>
so you would do "chromium-custom = super.chromium.override...." for instance
griff_ has joined #nixos
<fearlessKim[m]>
or just chromium = super.chromium.over...
<bebarker>
So it seems like shellHook does not apply to nix-env. I like to have my "user" environment defined based on a nix expression so far - sometimes I do need environment variables set. What is the nix way to do this?
ryanartecona has quit [(Ping timeout: 240 seconds)]
zoya-kosova[m] has joined #nixos
<roni>
bebarker: you might be able to use nix-shell for that but i'm not sure
<roni>
fearlessKim[m]: supposing i *just* want to use wrapProgram to add a flag to ${super.chromium}/bin/chromium
<roni>
do you think i'd override chromium and change the postInstall step or something?
sellout- has quit [(Ping timeout: 240 seconds)]
ona has joined #nixos
eacameron has quit [(Remote host closed the connection)]
sellout- has joined #nixos
<fearlessKim[m]>
I thought you were thinking of a compilation flag, you meant that you want to run "chromium --someflag" instead ?
<roni>
oh, yes, sorry if i was unclear
<fearlessKim[m]>
roni: never did that but wrapProgram looks good
<roni>
i figured out how to do this generally with wrapProgram but i am not sure how to create a derivation that has the current chromium's version number, but also wraps its binary that way - hopefully that makes sense?
<roni>
ok cool
<roni>
i will experiment
<taaperotassu>
TweyII: Strange that I need to encrypt my grub as otherwise I get load of errors when I wanna change my settings.
leat has quit [(Quit: WeeChat 1.9)]
<fearlessKim[m]>
roni: if you find out, feel free to share, I might be interested :)
eacameron has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
seppellll has quit [(Remote host closed the connection)]
<TweyII>
taaperotassu: Just looks like a grub bug
<TweyII>
taaperotassu: Apparently it's fixed in newer versions?
jellowj has quit [(Ping timeout: 248 seconds)]
eacameron has quit [(Ping timeout: 246 seconds)]
<taaperotassu>
I did not my nixos installation yesterday TweyII .. probably need to change nixos channel to fresher the
<WilliButz>
hey there, is there a builtin function to read a file to a string without newline being appended to the outputstring? I'm currently using '${replaceStrings [ "\n" ] [ "" ] (readFile somefile)}' (note that my file only consists of one line)
justbeingglad1 has joined #nixos
justbeingglad1 has left #nixos []
<tilpner>
Are you sure that happens? readFile doesn't append a newline here
<catern>
WilliButz: your file contains a newline
<catern>
if it's a single line, it probably has a newline at the end :)
<catern>
you could dump it as hex or something to see for sure (or use hexl-mode)
<catern>
if you want it to be without a newline at the end, you can create the file with "print $string > file"
<WilliButz>
oh alright, but I made sure that I don't write a newline to the file with printf. I'll check where the newline comes from. thanks :)
<roni>
fearlessKim[m]: will do, thanks again :)
slabity has joined #nixos
chakerbenhamed has quit [(Quit: WeeChat 0.4.2)]
<nixer>
Is there a lot of interest of adding typing to nix lang? I just found this project: https://github.com/regnat/tix
<TweyII>
nixer: It's widely considered Something We Ought To Do™
<TweyII>
nixer: But Tweag is funding it, so it'll probably get done
Wizek_ has joined #nixos
<nixer>
Cool, I'd love to help out as well.
<TweyII>
nixer: AFAIK it's a one-person project, so you might want to hit up regnat
<roni>
fearlessKim[m]: turns out the chromium nix expression takes a commandLineArgs argument
<roni>
but i am not sure when/how i would fill something in there
<roni>
in an overlay?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #29568: cc-wrapper: Clean up dynamic linking with x86 multilib (staging...cc-wrapper-32) https://git.io/v5Ajj
NixOS_GitHub has left #nixos []
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<roni>
i see that chromiumBeta and chromiumDev work similarly in the top-level/all-packages.nix expression
<roni>
can you tell me where the `config` argument in that file comes from?
<roni>
my config/nixpkgs/config.nix?
<tilpner>
You can pass a config argument in while importing nixpkgs, otherwise it's read from NIXPKGS_CONFIG, ~/.config/nixpkgs/config.nix and ~/.nixpks/config.nix
<roni>
i am guessing the .dev output contains the headers/libraries
<roni>
but i haven't figured out a way to tell this sort of thing for sure short of (1) looking at a particular nix expr and (2) trying it out in a nix-shell :(
<slabity>
roni: Do you happen to know where they get installed? I assume ~/.nix-profile
<roni>
actually, i don't think those headers/libraries will become "visible" that way - you are supposed to set up a dev environment for nix-shell (via buildInputs) if you want to use those files
ryanartecona has quit [(Quit: ryanartecona)]
<roni>
otherwise you would end up wrecking your pure environments etc.
<roni>
doesn't have to be just nix-shell - any derivation that declares libxml2.dev in its buildInputs can use it, of course
newhoggy has joined #nixos
<michiell>
I'm having some issues with acme not being able to renew my certs, and in the logs I see that an error+json file is sent. Does anybody know if that response is logged anywhere?
<slabity>
roni: Is there a simple guide on setting up a dev environment? Is it just creating a default.nix for the package you're building?
sellout-1 has joined #nixos
jb55 has joined #nixos
sellout- has quit [(Ping timeout: 248 seconds)]
<roni>
slabity: i'm still working on learning this myself, so the best i can do is show you one of my examples
<disasm>
slabity: yeah, for building stuff, you need to use nix-shell if your manually compiling stuff
<roni>
the main thing i do differently is to include python27Full, and virtualenv, set up a virtualenv inside the nix-shell, and install deps from a requirements.txt file
<roni>
that lets me interoperate with non-nix devs
<disasm>
roni: yeah, I'm gonna write some documentation on that some day soon (probly after release)
<slabity>
disasm: So I make a file like yours as a default.nix?
sellout-1 has quit [(Ping timeout: 248 seconds)]
<roni>
i also have my shell set up to display the `name` property in the shell prompt whenever IN_NIX_SHELL is true - handy way to see at a glance which nix-shell env i'm in
<disasm>
roni: yup, and put all the libraries you need in buildInputs
<roni>
disasm: sounds great
JagaJaga has quit [(Read error: Connection reset by peer)]
<roni>
disasm: yes, i include system deps there that the python deps in my requirements.txt will need, but i don't bother including the python deps themselves since the workflow requires pip installing anyway
JagaJaga has joined #nixos
<roni>
slabity: hopefully this all is making some sense to you :)
<disasm>
err s/roni/slabity
griff_ has quit [(Quit: griff_)]
<disasm>
roni: ooh, I got one better for ya... one sec
<disasm>
the code sucks, but the nix part is solid :)
<disasm>
roni: that uses pypi2nix for python reqs
<roni>
holy crap
stepcut has quit [(Remote host closed the connection)]
<roni>
neat, so you can convert a requirements.txt file to something that looks like this, or what?
sellout- has quit [(Ping timeout: 240 seconds)]
<roni>
oh
<roni>
this is the output from pypi2nix
<disasm>
pypi2nix -V 3.6 -r requirements.txt
sellout- has joined #nixos
<roni>
damn, very cool
<disasm>
well, requirements.nix is the output
<disasm>
I use a custom default.nix
<disasm>
that you can see in there
<roni>
this is very cool
<roni>
i feel like i can learn a ton just from reading the generated nix :-D
<disasm>
but yeah, then when you go to prod, you just take that same requirements.nix and use those as buildINputs with your src for your project defined
<roni>
right
<roni>
cool
python476 has joined #nixos
<roni>
thanks disasm!
<roni>
now we need something similar for R packages :-P
jellowj has joined #nixos
<roni>
but i'm mostly j/k, i'm quite comfortable with my ad-hoc mixed-impure way of handling language-specific ecosystems like PyPI and CRAN
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
__Sander__ has quit [(Quit: Konversation terminated!)]
marusich has joined #nixos
Neo-- has joined #nixos
<benley>
hyper_ch: a handful of packages on PyPI were found to be malicious (typosquatting on popular package names)
sellout- has quit [(Quit: Leaving.)]
<benley>
pypi was not compromised, it was just malicious uploaders.
<hyper_ch>
was not compromised / distributed malicious packages
nixer has joined #nixos
<hyper_ch>
seems my defintion of compromised is different than yours
<pstn>
How do I tell nixos-rebuild to build the system from a locally checked out version of nixpkgs?
<hyper_ch>
hi pstn
<pstn>
hello there :-)
Neo-- has quit [(Ping timeout: 252 seconds)]
<hyper_ch>
you use nixos also? Intersting :)
<hyper_ch>
but can't help you with your question
<simpson>
pstn: NIX_PATH is what I've usually done.
<pstn>
simpson: Thanks, that makes sense. I thought I remembered a switch somewhere that is undocumented.
orivej has joined #nixos
sellout- has joined #nixos
<simpson>
pstn: I just go with the big simple solution. No kill like overkill and all that.
a6a3uh has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
slabity has joined #nixos
MinceR has quit [(Ping timeout: 240 seconds)]
<slabity>
disasm: So I make a small default.nix like your example. I included `libxml2.dev` as a builtInput, but I still can't get the headers or library
<roni>
slabity: when you say you still can't get the headers, what do you mean exactly?
<slabity>
Weird... Let me try rebooting
slabity_ has joined #nixos
<slabity_>
"Package libxml++-2.6 was not found in the pkg-config search path"
<slabity_>
This is fixed when I run `nix-env -iA nixos.libxmlxx`, but not `nix-shell -p libxmlxx`
JagaJaga has quit [(Read error: Connection reset by peer)]
slabity has quit [(Ping timeout: 260 seconds)]
slabity_ is now known as slabity
JagaJaga has joined #nixos
jb55 has quit [(Ping timeout: 260 seconds)]
<taaperotassu>
I had boot.loader.grub.enableCryptodisk = true; in my configurations.nix .. so I tried uncomment and boot.loader.grub.enableCryptodisk = false; but its still prompting me for password when it opens grub.. or the boot partitions.
oida has joined #nixos
<roni>
slabity: i solve that pkg_config thing by adding lines to the shellHook
<roni>
i don't know if it's the nixiest way, but it works
oida_ has quit [(Ping timeout: 255 seconds)]
<roni>
(could probably do that better with a loop or even a function i define in some common package but i'm still not all the up abstraction mountain :-P)
griff_ has quit [(Quit: griff_)]
<slabity>
Huh. That seemed to have worked. Thanks roni!
<roni>
slabity: i have a feeling it is supposed to happen automatically, but either my understanding is wrong or else it just isn't in nix yet
<roni>
slabity: so in the meantime, that's how i make it go :)
<slabity>
disasm: I don't suppose you know of the 'nix way' of doing that, do you?
<disasm>
sorry, on a call
mudri has joined #nixos
ertes has joined #nixos
chakerbenhamed has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
<chakerbenhamed>
Hey is there someone from NixCon orgs that I can talk with?
<domenkozar>
chakerbenhamed: ping _c_
<chakerbenhamed>
Thanks domenkozar
michiell has quit [(Ping timeout: 240 seconds)]
<taaperotassu>
I thought nixos should pick the change..so no harms should be made if boot.loader.grub.enableCryptodisk = true; is not reversible?
sellout- has quit [(Quit: Leaving.)]
JagaJaga has quit [(Read error: Connection reset by peer)]
JagaJaga has joined #nixos
HurricaneHarry has left #nixos ["http://quassel-irc.org - Chat comfortabel. Waar dan ook."]
JagaJaga has quit [(Read error: Connection reset by peer)]
JagaJaga has joined #nixos
nixer has quit [(Quit: Page closed)]
endformationage has joined #nixos
stepcut has joined #nixos
michiell has joined #nixos
kuznero has joined #nixos
<kuznero>
Hi All!
<yorick>
taaperotassu: well, you still have to encrypt your drive manually
<taaperotassu>
$ mount /dev/disk/by-label/nixos /mnt
<taaperotassu>
$ mkdir /mnt/boot
<hyper_ch>
why format? wtf?
<taaperotassu>
$ mount /dev/sda3 /mnt/boot
rtjure has joined #nixos
<taaperotassu>
just those were the steps I did
<hyper_ch>
so you're still in the live system?
<taaperotassu>
yeh
<kuznero>
Can somebody please explain what is nix-repl?
<hyper_ch>
still got your configuration nix or hardware nix=
<taaperotassu>
trying to figure out the best way to get my nixos and harware nix
<taaperotassu>
I think I just reboot and go out from the live system
<acowley>
Is there a way to use easily the cc-wrapper tooling to wrap a compiler-like tool? In this case, the rc executable from rtags.
<taaperotassu>
normal gui way should be easier
<roni>
kuznero: it's a shell that evaluates nix expressions interactively so you can try things out, etc.
<hyper_ch>
taaperotassu: the encrytped data is gone
Neo-- has joined #nixos
<hyper_ch>
you did run luksformat
<hyper_ch>
well, still there but technically not possible to recover
<hyper_ch>
well, technically possible... practically not possible
<kuznero>
roni: I see, how useful is it when developing new nix-derivations?
<taaperotassu>
encrypted data is gone?
<taaperotassu>
yeh if I do it again then they would be
<taaperotassu>
but those were the commands I used back then
<taaperotassu>
when I installed nixos
<roni>
kuznero: i'm not sure, i think it's useful for seeing the state of things as you build up values, including derivations
<kuznero>
roni: thanks
<hyper_ch>
taaperotassu: I have no idea when you did what thing and where you are now
<roni>
kuznero: i am not very good at creating my own nix expressions yet, so i haven't gotten a good chance to see how useful it is for that
<kuznero>
roni: same here, trying to explore...
sellout- has joined #nixos
<hyper_ch>
taaperotassu: so you boot the live system
<hyper_ch>
from usb or something?
<roni>
kuznero: have you read the nix pill series?
<kuznero>
roni: yep, some time ago. I had an idea of trying to setup Hydra locally or on NixOps provisioned VirtualBox servers and try creating projects/derivations that are built with that Hydra.
<kuznero>
roni: to challenge it a bit ;)
<roni>
kuznero: ah, nice. well you've already gone beyond my experience :)
<hyper_ch>
taaperotassu: mount it: mount /dev/mapper/crypt_root /mnt
<taaperotassu>
ok
<hyper_ch>
you do have a /boot partition right?
<taaperotassu>
yeh
<taaperotassu>
I think so
<hyper_ch>
well, in that hardware configuration that you sent, there is none
<taaperotassu>
gosh :D
<hyper_ch>
so, do you have one?
<taaperotassu>
I did the sda3 partition so I thought it would have gone there
<taaperotassu>
I should have
<hyper_ch>
so sda3 should be boot?
<taaperotassu>
yup
<hyper_ch>
(and is this a ssd?)
<tnks>
The more I think about it, the more I think it would be useful to reference something in a nix expression by it's nix-store path, trusting it to be fetched pre-built from a Nix cache like Hydra.
<taaperotassu>
yes it is
<hyper_ch>
mount /dev/sda3 /mnt/boot
<tnks>
but I have a work-around using `nix-store --realize` from a shell script.
<taaperotassu>
ok
<hyper_ch>
taaperotassu: did it get mounted?
<taaperotassu>
yeh
<hyper_ch>
what's the uuid of /dev/sda3 and what filesystem?
<taaperotassu>
how can I see dat?
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
<hyper_ch>
ls -al /dev/disk/by-uuid
<hyper_ch>
that should gvie the uuid
<hyper_ch>
as for filesystem... no idea
<hyper_ch>
ah, df -T
apeyroux has quit [(Quit: leaving)]
<hyper_ch>
that should show the filesystem
<taaperotassu>
4c7c188c-f0
<hyper_ch>
so, I need UUID of sda4 and the filesystem
<hyper_ch>
you sure that's the UUID?
<taaperotassu>
its ext4
<taaperotassu>
thats part of it
<taaperotassu>
its quite long
<hyper_ch>
pastebin it all
kuznero has quit [(Ping timeout: 260 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
<taaperotassu>
erm any easy way for that..than manually writing it down?
<hyper_ch>
taaperotassu: ls -al /dev/disk/by-uuid | pastesl
<hyper_ch>
taaperotassu: ls -al /dev/disk/by-uuid | /tmp/pastesl
mudri has quit [(Ping timeout: 260 seconds)]
<taaperotassu>
so pastesl command not found
<hyper_ch>
taaperotassu: I posted corrected command just below
<taaperotassu>
sorry my bad
<hyper_ch>
it's my pastebin script for my pastebin... so I have it in $PATH and don't need to use the absolute path to it ;)
<taaperotassu>
/tmp/pastesl: line 1 : 404 command not found
<hyper_ch>
no bash? :(
<pmeunier>
Hi! I'm serving files from my nix store using nixops + nginx. But since all files have the same modification date, clients can't detect that they've change when I redeploy with different files. Any idea how to fix this?
<hyper_ch>
taaperotassu: I need the UUID of /dev/sda3
ryanartecona has joined #nixos
<taaperotassu>
I wrote bash
<taaperotassu>
unless nixos live system has no bash?
<hyper_ch>
taaperotassu: I need the UUID of /dev/sda3
<taaperotassu>
still the command not found
<taaperotassu>
k
<hyper_ch>
no bash in live system
<taaperotassu>
damn
<hyper_ch>
taaperotassu: I need the UUID of /dev/sda3
<taaperotassu>
cant I see the UUID from my normal boot?
<taaperotassu>
oh yeah I could nix -env i bash
<hyper_ch>
that would work I guess
<disasm>
slabity: pass pkgconfig as a buildInput
<taaperotassu>
nix-env -i bash .. erm does nothing...
<hyper_ch>
taaperotassu: well, then just type it all
<hyper_ch>
taaperotassu: got both backups and new files?
tmaekawa has quit [(Quit: tmaekawa)]
<taaperotassu>
yeh but writing manually is verry slow
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] disassembler opened pull request #29570: libxmlxx: move glibmm to propagatedBuildInputs (master...libxmlxx) https://git.io/v5xlh
NixOS_GitHub has left #nixos []
eacameron has quit [(Remote host closed the connection)]
k2s has joined #nixos
<taaperotassu>
but why cant I just boot and copy paste to my hardware config? does changing nixos configuration from live system has such huge differences?
<hyper_ch>
taaperotassu: now we're reinstall the system
<taaperotassu>
I think I should do it later tonight :D .. also copying from own github repo.. should be good when installing
kuznero has joined #nixos
<taaperotassu>
the UUID part I thought it would have automatically put it there. :D but thanks for the help.. I should rewind earlier steps to understand better
<hyper_ch>
you could also import user passwords and stuff from other places....
<kuznero>
domenkozar: basically in the end it is saying: "Unpacking base image..." and "/tmp/nix-build-docker-image-monitor.tar.gz.drv-0/.attr-0: line 24: image/repositories: No such file or directory". Should I add this to github issue or it is me doing something wrong?
kus_ubuntui686 has joined #nixos
kus_ubuntui686 has quit [(Max SendQ exceeded)]
kanshazan has joined #nixos
kanshazan has quit [(Client Quit)]
<taaperotassu>
Thanks hyper_ch
<hyper_ch>
taaperotassu: no worries... people helped me in here so often
<hyper_ch>
some I consider my personal support ;)
<hyper_ch>
(also switch to nixos-unstable....)
<hyper_ch>
makefu: online?
Infinisi1 has quit [(Ping timeout: 240 seconds)]
<woffs>
How can I hide e.g. /nix/store/*wireguard*.conf and /nix/store/*wpa_supplicant.conf from unprivileged users' eyes?
griff_ has joined #nixos
<disasm>
woffs: you can't *yet*
newhoggy has joined #nixos
<woffs>
So I cannot set up a multi user system outside of my home
<hyper_ch>
woffs: don't let unprivileged users touch your computer ;)
<pingveno>
I'm trying to use the mozilla-overlay repository to install Firefox Developer Edition. `nix-env -iA nixos.firefox-dev-bin` does not match any packages. Any ideas on what to use?
newhoggy has quit [(Ping timeout: 260 seconds)]
<hyper_ch>
who has a strong wiki-fu?
jensens has joined #nixos
<woffs>
so nixos is currently aimed at (a) personal computers and (b) servers without user shell accounts
<hyper_ch>
woffs: I don't let anyone touch my notebook
<hyper_ch>
regardless of the distro I use
slabity has quit [(Quit: Page closed)]
<woffs>
no problem with notebook. I think of servers or company workstations
<hyper_ch>
well, no idea :)
<woffs>
thanks, anyway :-)
<hyper_ch>
taaperotassu: not feeling ready for nixos-unstable yet? :)
<Fare>
Sonarpulse, I changed two things, gambit and nixos, and I don't think gambit is the culprit.
<Sonarpulse>
Fare what's the symptom?
<Sonarpulse>
What were you on before?
<Fare>
gsc can't find -lssl
<Fare>
I was on 17.03, now on 17.09
MP2E has joined #nixos
<Fare>
maybe also the problem is that I don't somehow lock the CC used by gambit to be the one used by gambit, so it might instead be using the one from $PATH ?
<Fare>
not just CC, but the binutils toolchain, etc.
<Sonarpulse>
Fare: is there another on the path?
<Sonarpulse>
that seems odd
<Sonarpulse>
Fare: this is your own derivation, or one I can try in nixpkgs?
<Fare>
my derivation.
<Sonarpulse>
set | grep nativePkgs ?
griff_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v5xaV
<Fare>
gambit and gerbil are defined in https://github.com/fare-patches/nixpkgs (desperately waiting for a release before to upstream to new nixpkgs), but the way I use them for interactive development is: eval $(nix-shell '<nixpkgs>' --pure --attr gerbil --command 'echo "export NIX_LDFLAGS=\"$NIX_LDFLAGS\" NIX_CFLAGS_COMPILE=\"$NIX_CFLAGS_COMPILE\""')
<LnL>
Fare: I have a a nix expression for most of my projects that I use for interactive developemnt
<Sonarpulse>
Fare: if you open an issue
<Fare>
LnL: do you include emacs & all your interactive tools in it, or something?
<Sonarpulse>
clammoring for a ccWithPackages
<Sonarpulse>
and tag me
<Fare>
Sonarpulse, I don't understand the issue enough to open it.
<Sonarpulse>
I'll appreciate it
stepcut has quit [(Remote host closed the connection)]
<Fare>
or what you mean by ccWithPackages
<Sonarpulse>
Fare just be like " I want a function to give me a cc pre-wrapped with all the -I and -L flags I need
<Sonarpulse>
so no env var impurity woahs
eacameron has quit [(Read error: Connection reset by peer)]
<disasm>
Fare: as for emacs and other interactive tools, I install those globally, and don't use --pure with nix shell unless it's something I'm specifically testing that needs a pure shell.
eacameron has joined #nixos
<LnL>
Fare: depends in the project, usually I can configure things so completion, etc. can find things without running in a nix-shell
<dylanjust[m]>
Is there any interest around getting Nixops to deploy to vmware vsphere?
<LnL>
but I don't use emacs and compile stuff from inside of my editor
Neo-- has joined #nixos
<gchristensen>
can I do something like nix-shell -p fizzbuzz '<mycustompkgs>', where fizzbuzz comes from mycustompugs?
<gchristensen>
can I do something like nix-shell -p fizzbuzz '<mycustompkgs>', where fizzbuzz comes from mycustompkgs*?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5xKj
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/v5xi4
<NixOS_GitHub>
nixpkgs/staging 0a2c39e Franz Pletz: p11_kit: don't build documentation...
NixOS_GitHub has left #nixos []
<roni>
`ls -l $(which gcc)` will show you the symlink for gcc and what it points to
<roni>
that in turn tells you which derivation contains the gcc binary
<roni>
in case that helps in general
griff_ has joined #nixos
sigmundv has joined #nixos
<gchristensen>
this is awesome. I added `custompkgs = import <custompkgs> { inherit pkgs; };` to packageOverrides and now nix-shell -p custompkgs.fizzbuzz works, but nix-env -iA custompkgs.fizzbuzz doesn't
<gchristensen>
LnL: what does your $NIX_PATH contain?
acarrico has joined #nixos
<roni>
try `nix-env -f <custompkgs> -iA fizzbuzz`
<LnL>
^
<LnL>
custompkgs won't work unless it's ~/.nix-defexpr/custompkgs
ona has joined #nixos
<tilpner>
gchristensen - Put "import <custompkgs> {}" into ~/.nix-defexpr/custompkgs/default.nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 61 new commits to release-17.09: https://git.io/v5xib
<NixOS_GitHub>
nixpkgs/release-17.09 f3c517d Rodney Lorrimar: nixos/gogs: Fix module when no passwords provided...
<roni>
gchristensen is in "anger"; i'm somewhere between bargaining and acceptance :-P
<gchristensen>
roni: sorry, I've hundreds of commits and PRs to nixos, this is all fresh grief trying to make it work for my coworkers.
<LnL>
every nix file you put in there will be used as an overlay
<roni>
gchristensen: no i didn't mean anything by it, i was just trying to be funny :)
<grantwu>
I'm at the point where I just try to remove as many Nix things and install from apt c.c
<gchristensen>
yeah but then what, LnL? the docs cover installation quite well but how to _use_ them is ??
<roni>
overlays are quite new iiuc, so i assume the docs/blog posts still have to catch up
<gchristensen>
yeah
<LnL>
ah
pxc has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
<gchristensen>
ah ha! ~/.config/nixpkgs/overlays/custompkgs.nix self: super: { custompkgs = import <custompkgs> { pkgs = self; }; } this does the business
<roni>
gchristensen: LnL: does that basically *add* custompkgs to nixpkgs somehow? like, what is the plain meaning of declaring custompkgs like that inside an overlay?
<Lisanna>
is there a way to check if an attribute is defined in a set?
<gchristensen>
I have /Users/graham/.config/nixpkgs/overlays/custompkgs.nix open in my editor which creates a lockfile: .#custompkgs.nix -> graham@Cubert.4482 and nix tries to import it
<roni>
gchristensen: oh my
<LnL>
urgh
<roni>
out-of-band signalling
<LnL>
I would have expected it to only look at *.nix files
<roni>
but the lockfile says .nix :)
pxc has joined #nixos
<gchristensen>
it also tries to look at directories :) and I guess symlinks
<gchristensen>
$ nix-env --upgrade
<gchristensen>
error: attempt to call something which is not a function but a set, at /nix/store/qvqdgbf9sq7jnzpjffvka4bscs1bgh80-nixpkgs-17.09pre110905.0eb4f6fd25/nixpkgs/pkgs/development/tools/haskell/lambdabot/default.nix:12:78
<gchristensen>
I'm _SO_ spoiled on NixOS
<disasm>
this is odd, I passed a cmakeFlag for $out/something and it created a '$out' directory in the store path
<disasm>
well in $out store path
<disasm>
I guess I just change it to /something
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to release-17.03: https://git.io/v5x1r
<NixOS_GitHub>
nixpkgs/release-17.03 1e30a7c Johannes Frankenau: borgbackup: 1.0.10 -> 1.0.11...
<gchristensen>
is there a fn to see if a string contains another string?
zzamboni has quit [(Quit: Leaving.)]
<gchristensen>
makefu: always do :)
<pxc>
so I gave a talk at my workplace today (mostly about Nix) called 'Functional Software Management' (generalized from 'functional package management' to try to capture how Nix tooling applies its FP paradigm to not only packages, but configuration and infrastructure)
<pxc>
anyone wanna see the slides?
sigmundv has quit [(Ping timeout: 240 seconds)]
<LnL>
gchristensen: there's builtins.match, don't remember when that was introduced
<pxc>
they're pretty abstract but I think I got a few people interested in the approach Nix and Guix share
<nixo[m]>
Why not, thanks
<nixo[m]>
> so I gave a talk at my workplace today (mostly about Nix) called 'Functional Software Management' (generalized from 'functional package management' to try to capture how Nix tooling applies its FP paradigm to not only packages, but configuration and infrastructure)
python476 has quit [(Ping timeout: 248 seconds)]
<gchristensen>
are there docs on .match lnl? I don't see any ... hmm
<Mic92>
sometimes I wish to have a laywer to consult about some licenses issues/questions we have in nixpkgs from time to time (like the android sdk)
<makefu>
gchristensen: just wanted to say the reference for the nixpkgs functions look fantastic. It will be super convenient especially for newcomers. grep'ing lib/ for some function was the most unpleasent experience when i started with NixOS
nh2 has quit [(Ping timeout: 252 seconds)]
griff_ has quit [(Quit: griff_)]
<LnL>
not just newcomers, I always forget the argument order of certain functions
<makefu>
Mic92: we could probably ask the EFF for help with these things.
<grahamc>
<3 thank you makefu!
<shlevy>
fpletz: around?
newhoggy has joined #nixos
nh2 has joined #nixos
<shlevy>
Anyone here using kanboard on NixOS?
python47` has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
Myrl-saki has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Remote host closed the connection)]
rsynnest_ has joined #nixos
<nh2>
what's a good way to upgrade nix on nixos 17.03?
predator117 has quit [(Ping timeout: 240 seconds)]
<pxc>
if you just want to use it at the CLI you can just install it with nix-env or put it in your systemPackages
<pxc>
if you want it to replace Nix for nixos-rebuild you can do an override like 'nix = nixUnstable;'
jellowj has joined #nixos
<nh2>
pxc: isn't nixUnstable 1.12 though? I want to stay at 1.11, just one of the later bugfix releases
<nh2>
hmm the file you linked has 1.11.14 though, I wonder why I don't have it, is my nixpkgs commit too old?
<pxc>
if you're on your own checkout, maybe
<pxc>
and yeah, nixUnstable is 1.12
<nh2>
it seems so, I'll check that
<nh2>
pxc: in any case thanks already for making me aware of this!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #29580: stdenv: Provide a way for full `set -x` debugging (master...stdenv-super-debug) https://git.io/v5xp4
NixOS_GitHub has left #nixos []
eikke has joined #nixos
erictapen has joined #nixos
<eikke>
Having trouble with a derivation I'm trying to write: I have 'pkgconfig' in nativeBuildInputs and 'c-ares' and 'zlib' in 'buildInputs'. When running the build, pkg-config says zlib isn't found. However, when I run 'nix-shell -p pkgconfig zlib c-ares', 'pkg-config --exists zlib' returns 0 and PKG_CONFIG_PATH contains 2 values (one for zlib, one for c-ares). Finally, when running 'nix-build -K', and inspecting the 'env-vars' file, the value for PKG_CONFIG_
newhoggy has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] eqyiel opened pull request #29581: nixos/nfs: allow setting the path to krb5.keytab (master...fix-rpc-gssd) https://git.io/v5xpQ
<Sonarpulse>
grahamc: yeah that ought to be easy enough
<nh2>
eikke: your message was cut off after "the value for PKG_CONFIG_" for me
hc has joined #nixos
hc_ has quit [(Ping timeout: 240 seconds)]
DeaDSouL has joined #nixos
<eikke>
nh2: ... the value for PKG_CONFIG_PATH only points to c-ares, not to zlib
<nh2>
hmm
<eikke>
the odd thing is, if I remove c-ares from buildInputs, then indeed both aren't found during build
<nh2>
eikke: I mean one difference I can spot vs the linked `gpac` is that that one has it in `nativeBuildInputs`; I guess it shouldn't make a difference but maybe worth to try if it changes things
<nh2>
(I mean it has zlib there)
<eikke>
tried that as well, doeesn't change. Also, I'm surprised having zlib in nativeBuildInputs and not in buildInputs?
<nh2>
eikke: not sure what `gpac` does with it, maybe it links statically?
<nh2>
eikke: try depending on zlib.dev or something
<kuznero>
Is there documentation on available options when working with EC2 nixops or should I lookup source code?
newhoggy_ has joined #nixos
<eikke>
nh2: then why is it correctly added to PKG_CONFIG_PATH when running 'nix-shell -p pkgconfig -p zlib'? :-/
hc has quit [(Ping timeout: 240 seconds)]
_ris has quit [(Ping timeout: 240 seconds)]
<nh2>
kuznero: the nixops manual has a section about it, does it not cover something you need?
hc has joined #nixos
<nh2>
eikke: IIRC nix-shell and nix-build can do very different things, e.g. for Haskell they are also pretty different
<kuznero>
nh2: I am following main example with a proxy and 2 backends. But it complains with "error: no AMI defined for EC2 machine ‘backend1’"
<eikke>
also, zlib has no attribute 'dev'
<kuznero>
nh2: which lead me thinking that I am missing AMI option in physical setup nix file...
newhoggy_ has quit [(Remote host closed the connection)]
newhoggy has quit [(Ping timeout: 252 seconds)]
<kuznero>
nh2: oh, I am running from 17.09 channel (still beta)
<nh2>
eikke: you cannot run `nix-shell -p zlib.dev`? For me that works
<eikke>
nh2: works for me as well, but not having 'zlib.dev' in 'buildInputs' or whatever
<nh2>
kuznero: can you paste the `deployment.ec2.*` somewhere (strip confidential values as needed)
<kuznero>
nh2: sure, I am using aliases, so it is not critical with confidential files... just a moment
<eikke>
nh2: the odd thing is c-ares' pkgconfig path is nicely added to the env, but zlib's isnt
pie_ has quit [(Ping timeout: 240 seconds)]
<clever>
eikke: pkgconfig has a setup hook, that will add the buildInputs to the pkgconfig search path
<clever>
eikke: the setup hooks dont work if you manualy install pkgconfig with nix-env or systemPackages
<nh2>
eikke: hmm so using `locate zlib.pc` I can find only `/nix/store/...-zlib-1.2.11-dev/lib/pkgconfig/zlib.pc` having a pkgconfig file, so it must be something with the .dev output thing