rly has quit [(Ping timeout: 256 seconds)]
<sphalerite> clever: I'm not simpson :p
goibhniu has quit [(Ping timeout: 260 seconds)]
<clever> *doh*
<simpson> clever: Mm, thank you.
filterfish has quit [(Read error: No route to host)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<Fare> what's the right way to dual-boot between nixos and ubuntu?
filterfish has joined #nixos
plumps has quit [(Quit: Textual IRC Client: www.textualapp.com)]
<clever> Fare: paste the ubuntu bootloader config into configuration.nix like this: http://pastebin.com/wjiDZxVN
yodeler has quit [(Remote host closed the connection)]
filterfish has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
<Fare> clever: thanks
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
wkennington has quit [(Remote host closed the connection)]
yodeler has joined #nixos
<sheenobu> hrm i can't figure out xrandr screen offset...
i_rony has quit [(Ping timeout: 260 seconds)]
RchrdB has joined #nixos
markus1189 has joined #nixos
markus1199 has quit [(Ping timeout: 250 seconds)]
astsmtl has quit [(Ping timeout: 250 seconds)]
iyzsong has joined #nixos
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
rardiol has joined #nixos
ebzzry has joined #nixos
ilja_kuklic has quit [(Ping timeout: 244 seconds)]
<Leo`> Hey. As far as I understand it, Grub can now handle a /boot stored on an encrypted partition, right?
<Leo`> (The underlying question being: I think that I don't need a separate /boot partition anymore when doing full-disk encryption. but I guess I still need a /boot/efi partition?)
<Leo`> (I guess that defeats the purpose of having an encrypted /boot... Maybe I should stick with legacy-mode boot...)
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #20711: less: 483 -> 481: Use recommended upstream version since less-483.tar.gz has disappeared (release-16.09...cp_fix_less) https://git.io/v1U2G
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-16.09: https://git.io/v1TuD
<NixOS_GitHub> nixpkgs/release-16.09 ef7cc9a Sebastian Hagen: less: 483 -> 481: Use recommended upstream version since less-483.tar.gz has disappeared...
ebzzry has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v1Tzc
<NixOS_GitHub> nixpkgs/master fdbf7dc Joachim Fasting: gradm: fix using gradm while the RBAC system is active...
NEo4v8 has joined #nixos
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
wak-work has quit [(Ping timeout: 258 seconds)]
frankpf has quit [(Ping timeout: 260 seconds)]
wak-work has joined #nixos
mguentner has quit [(Ping timeout: 260 seconds)]
filterfish_ has quit [(Ping timeout: 250 seconds)]
thc202 has quit [(Ping timeout: 250 seconds)]
mguentner has joined #nixos
aj__ has joined #nixos
mbrgm has quit [(Ping timeout: 245 seconds)]
mbrgm has joined #nixos
derjohn_mobi has quit [(Ping timeout: 252 seconds)]
abrar_ has quit [(Quit: WeeChat 1.6)]
abrar has joined #nixos
ebzzry has joined #nixos
<simpson> I continue to get incorrect MACs occasionally when trying to transfer lots of data over SSH. Both the server and client are still NixOS. Any new information on this?
athan has joined #nixos
angerman has joined #nixos
AllanEspinosa has joined #nixos
hexagoxel has quit [(Ping timeout: 264 seconds)]
hexagoxel has joined #nixos
eacameron has joined #nixos
Lowl3v3l has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
filterfish has joined #nixos
ebzzry has joined #nixos
jgertm has joined #nixos
<NixOS_GitHub> [nixpkgs] elitak opened pull request #20724: f3: newer git rev, build extra binaries (master...f3) https://git.io/v1TaG
wkennington has joined #nixos
abrar has quit [(Quit: WeeChat 1.6)]
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
<NixOS_GitHub> [nixpkgs] garbas pushed 1 new commit to master: https://git.io/v1TaX
<NixOS_GitHub> nixpkgs/master b09435e Rok Garbas: pythonPackages.magic-wormhole: enable tests
justanotheruser has quit [(Ping timeout: 250 seconds)]
mguentner has quit [(Quit: WeeChat 1.6)]
justanotheruser has joined #nixos
<simpson> garbas: Nice.
mguentner has joined #nixos
abrar has joined #nixos
PragCyph1 has joined #nixos
PragCyphr has quit [(Ping timeout: 250 seconds)]
matthewbauer has joined #nixos
athan has quit [(Ping timeout: 268 seconds)]
justanotheruser has quit [(Ping timeout: 260 seconds)]
justan0theruser has joined #nixos
mizu_no_oto has joined #nixos
systemfault has quit [(Quit: Bye!)]
ugjka has joined #nixos
NEo4v8 has quit [(Ping timeout: 245 seconds)]
lverns has joined #nixos
Fare has quit [(Ping timeout: 260 seconds)]
johnsonav has quit [(Ping timeout: 240 seconds)]
systmkor has quit [(Ping timeout: 250 seconds)]
pikajude has quit [(Ping timeout: 250 seconds)]
systmkor has joined #nixos
johnw_ has joined #nixos
pikajude has joined #nixos
andrewrk has quit [(Ping timeout: 244 seconds)]
jeaye has quit [(Ping timeout: 244 seconds)]
johnw has quit [(Ping timeout: 252 seconds)]
ronny has quit [(Ping timeout: 260 seconds)]
andrewrk has joined #nixos
jeaye has joined #nixos
<spacekitteh> anyone have any idea how i'd go about fixing this? https://github.com/NixOS/nixpkgs/issues/20725
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
proteus-guy has joined #nixos
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
lverns has quit [(Ping timeout: 258 seconds)]
phreedom has joined #nixos
phanimahesh has joined #nixos
ronny has joined #nixos
jacob_ has joined #nixos
jacob_ is now known as Guest6254
zeus_ has joined #nixos
ak5 has joined #nixos
<ak5> why is cache.nixos.org blocked in china? wtf?
<ak5> oh is that an alias for cloudfront or something
<ak5> gah so annoying
rardiol has quit [(Ping timeout: 268 seconds)]
herzmeister has quit [(Ping timeout: 258 seconds)]
herzmeister has joined #nixos
yodeler has quit [(Remote host closed the connection)]
<simpson> So, the Graphite Web service is pretty much busted for me. Does anybody else use this service?
NEo4v8 has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
<iMatejC> Dezgeg: hej, I have A20 olinuxino lime2 emmc edition and trying to boot nixos image sd-image-armv7l-linux.img aaaand systemd has realized that time can change every second (looping at boot with approx 1s interval "systemd[1]: Time has been changed") so I did a bit of research https://github.com/martinezjavier/linux/commit/0081beaab7812b5b5d0ab625d32742f1d6bb4bc5 is there a posibility that you can somehow
<iMatejC> disable that flag (my guess is that is on by default or something) and build me an image? :P I do not have any ARM device with nix at the moment, do you have any more options than me?
zeus_ has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
NEo4v8 has quit [(Ping timeout: 245 seconds)]
zeus_ has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
phanimahesh has quit [(Ping timeout: 246 seconds)]
zeus_ has quit [(Ping timeout: 256 seconds)]
griff_ has joined #nixos
griff_ has quit [(Ping timeout: 248 seconds)]
eacameron has quit [(Remote host closed the connection)]
RchrdB has quit [(Ping timeout: 260 seconds)]
justan0theruser has quit [(Ping timeout: 245 seconds)]
FRidh has joined #nixos
justan0theruser has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
pikajude has quit [(Quit: Quit)]
pikajude has joined #nixos
takle has quit [(Remote host closed the connection)]
AllanEspinosa has quit [(Ping timeout: 265 seconds)]
i_rony has joined #nixos
NEo4v8 has joined #nixos
FRidh has quit [(Remote host closed the connection)]
matthewbauer has quit [(Ping timeout: 248 seconds)]
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/v1TiA
<NixOS_GitHub> nixpkgs/master 231cd27 Frederik Rietdijk: nvidia-x11: 367.57 -> 375.20
k2s has joined #nixos
k2s has quit [(Client Quit)]
wkennington has quit [(Remote host closed the connection)]
ambro718 has joined #nixos
Guest6254 has quit [(Quit: Lost terminal)]
ilja_kuklic has joined #nixos
george_ has joined #nixos
<george_> hello
<george_> i'd like to port AUR(archlinux) package to nix
george__ has joined #nixos
<george__> that's what i have now
<george__> how to proceed?
<MichaelRaskin> It doesn't come with a Makefile, right?
NEo4v8 has quit [(Ping timeout: 258 seconds)]
<george__> MichaelRaskin: yup, it doesn't
<MichaelRaskin> Then you just write installPhase = '' ''; and then fill in the installation process inside
ebzzry has quit [(Ping timeout: 252 seconds)]
amarsman has quit [(Quit: amarsman)]
<MichaelRaskin> Hm, I think you need unzip in your nativeBuildInputs
<MichaelRaskin> So that the unpacking can happen
<MichaelRaskin> (it should be just fine automatically)
<NixOS_GitHub> [nixpkgs] rycee pushed 5 new commits to master: https://git.io/v1TXZ
<NixOS_GitHub> nixpkgs/master e700ff6 Robert Helgesson: perl-bignum: 0.43 -> 0.44...
<NixOS_GitHub> nixpkgs/master ba095fe Robert Helgesson: perl-Data-Validate-IP: 0.26 -> 0.27
<NixOS_GitHub> nixpkgs/master 0637d94 Robert Helgesson: perl-Digest-JHash: 0.09 -> 0.10
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to release-16.09: https://git.io/v1TX2
<NixOS_GitHub> nixpkgs/release-16.09 066166b Robert Helgesson: perl-bignum: 0.43 -> 0.44...
<george__> hm, odd
ebzzry has joined #nixos
<george__> i've created broken nix pkg to test how installation goes, exported NIXPKGS, executed `nix-env -f $NIXPKGS -i terminus-font-ttf` and it gives me error: selector ‘terminus-font-ttf’ matches no derivations
<george_> ahh, i haven't added it to all-packages.
<MichaelRaskin> First. you want -iA
<MichaelRaskin> And yes, all-packages.nix
<NixOS_GitHub> [nixpkgs] spacekitteh opened pull request #20727: [wip] nodejs: building and paxmarking mksnapshot in preBuild (master...patch-18) https://git.io/v1T1o
<MichaelRaskin> Or nixpkgs/maintainers/scripts/nix-call-package
pi3r has joined #nixos
arjen-jonathan has joined #nixos
<george__> MichaelRaskin: how to use nativeBuildInputs? can't find it in https://nixos.org/nixpkgs/manual/#chap-quick-start
<MichaelRaskin> Well, it is mostly the same as buildInputs. The difference is that for cross-builds buildInputs are in the output arch (think libraries) and nativeBuildInputs are in the builder arch (think build tools)
<MichaelRaskin> If you don't do cross-compilation, there is no difference
sid_cypher has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] romildo opened pull request #20728: efl: 1.18.2 -> 1.18.3 (master...upd.efl) https://git.io/v1TMf
<spacekitteh> is there a proper way to call "make" in a custom buildPhase?
<spacekitteh> analogous to gentoo's emake
MichaelRaskin has quit [(Remote host closed the connection)]
<qknight> i want to add a deprecation warning to rustUnstable, that i renamed it to rustNightly. how to do this properly?
takle has joined #nixos
jgertm_ has joined #nixos
<sphalerite> qknight: by the looks of it, other packages use builtins.trace to just print out a message about it
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1TDv
<NixOS_GitHub> nixpkgs/master 8ebfce0 Vladimír Čunát: display-managers module: improve variable quoting...
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-16.09: https://git.io/v1TDf
<NixOS_GitHub> nixpkgs/release-16.09 ece0cea Vladimír Čunát: display-managers module: improve variable quoting...
RayNbow` has quit [(Ping timeout: 256 seconds)]
Ivanych has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/v1TDE
<NixOS_GitHub> nixpkgs/staging 925b335 Vladimír Čunát: Merge branch 'master' into staging
<NixOS_GitHub> nixpkgs/staging 7a88f31 Vladimír Čunát: guile: doCheck = false on i686-linux...
petar has quit [(Remote host closed the connection)]
Shou has joined #nixos
petar has joined #nixos
ebzzry has quit [(Ping timeout: 258 seconds)]
arjen-jonathan has quit [(Ping timeout: 256 seconds)]
ebzzry has joined #nixos
pi3r has quit [(Ping timeout: 244 seconds)]
<fpletz> garbas: do you have any plans for lunch? getting ready for the meetup right now and will be there soonish
Ivanych has joined #nixos
petar has quit [(Quit: Lost terminal)]
petar has joined #nixos
ixxie has joined #nixos
edvorg has joined #nixos
<joepie91> so the documentation for NixOS claims that `imports` is to be a list of paths
<joepie91> but... I've passed it a list of *loaded modules*, and this seems to work fine?
<joepie91> is there something I'm missing here or is this simply an undocumented feature?
<joepie91> (I can't seem to figure out where the module loading logic is)
[0x4A6F] has quit [(Ping timeout: 245 seconds)]
Shou has quit [(Ping timeout: 248 seconds)]
[0x4A6F] has joined #nixos
<sphalerite> joepie91: nixpkgs/lib/modules.nix:90 seems to do it, and yes it seems to handle loaded modules as well.
<sphalerite> the closeModules function, that is. Might have moved somewhere else since 16.09
cfricke has joined #nixos
edvorg has quit [(Ping timeout: 240 seconds)]
<joepie91> sphalerite: ah! thanks :)
NEo4v8 has joined #nixos
NEo4v8 has quit [(Ping timeout: 252 seconds)]
jgertm_ has quit [(Ping timeout: 260 seconds)]
<garbas> fpletz: no plans, i suppose we can order lunch to office?
<garbas> fpletz: since it is cold outside :P
aj__ has quit [(Ping timeout: 250 seconds)]
Shou has joined #nixos
george_ has quit [(Quit: leaving)]
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v1TS0
<NixOS_GitHub> nixpkgs/staging 97853c0 Vladimír Čunát: stdenv moveToOutput: move even broken symlinks...
george_ has joined #nixos
<george_> where nix unpacks package durin unpack phase? is there a variable i could use within install phase?
<jophish> hi all
<jophish> NIX_GHC_LIBDIR seems to point to a nonexistent location :)
<jophish> pointing to /nix/store/8fa86kcna40r2dbrwvrdm3i64iw19jfw-ghc-8.0.1-with-packages/lib/ghc-8.0.1-with-packages instead of /nix/store/8fa86kcna40r2dbrwvrdm3i64iw19jfw-ghc-8.0.1-with-packages/lib/ghc-8.0.1
<clever> george_: $sourceRoot i believe
emery has joined #nixos
amarsman has joined #nixos
jgertm_ has joined #nixos
pi3r has joined #nixos
ixxie has quit [(Remote host closed the connection)]
<emery> domenkozar: hello, I am interested in making a nixos browser kiosk and I heard you have done something like this?
ixxie has joined #nixos
<ixxie> any gnome users in tha house?
ebzzry has quit [(Ping timeout: 260 seconds)]
MichaelRaskin has joined #nixos
emery is now known as ehmry
pi3r has quit [(Ping timeout: 256 seconds)]
aj__ has joined #nixos
filterfish_ has quit [(Ping timeout: 260 seconds)]
thc202 has joined #nixos
ebzzry has joined #nixos
pstn_ has joined #nixos
arjen-jonathan has joined #nixos
pstn_ has quit [(Ping timeout: 245 seconds)]
jacob_ has joined #nixos
<NixOS_GitHub> [nixpkgs] expipiplus1 opened pull request #20731: ghcWithPackages: fix env NIX_GHC_LIBDIR value (master...fix-ghc-env) https://git.io/v1T9F
jacob_ is now known as Guest65623
saintromuald has quit [(Quit: Konversation terminated!)]
<jophish> all fixed :)
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish_ has joined #nixos
<joepie91> ixxie: XFCE, does that count? ;)
<ixxie> heh
filterfish has quit [(Ping timeout: 268 seconds)]
Lowl3v3l_ has joined #nixos
Lowl3v3l has quit [(Ping timeout: 250 seconds)]
NEo4v8 has joined #nixos
schneefux has quit [(Read error: Connection reset by peer)]
cfricke has quit [(Ping timeout: 250 seconds)]
schneefux has joined #nixos
arjen-jonathan has quit [(Ping timeout: 252 seconds)]
pstn_ has joined #nixos
ebzzry has quit [(Ping timeout: 245 seconds)]
Lowl3v3l__ has joined #nixos
Lowl3v3l_ has quit [(Ping timeout: 256 seconds)]
<george_> trying to create nix pkg which will install custom ttf fonts, there is no makefile, just ttf file, where should i copy them?
<MichaelRaskin> $out/share/fonts/truetype maybe
<george_> MichaelRaskin: thanks!
george__ has quit [(Quit: Page closed)]
aj__ has quit [(Ping timeout: 260 seconds)]
<george_> MichaelRaskin: how to deal with COPYING file? AUR pkg copies it to special dir, which dir is correct one for nixos?
pi3r has joined #nixos
jgertm_ has quit [(Ping timeout: 256 seconds)]
<MichaelRaskin> Frankly, we have less consistency there than I would prefer
<MichaelRaskin> When I write installPhase manually, I put it into "$out/share/doc/${name}"
<george_> MichaelRaskin: okay, thank you.
amarsman has quit [(Quit: amarsman)]
Lowl3v3l_ has joined #nixos
Lowl3v3l__ has quit [(Ping timeout: 265 seconds)]
amarsman has joined #nixos
RchrdB has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
ToxicFrog has joined #nixos
filterfish_ has joined #nixos
masia[m] has joined #nixos
<masia[m]> Hi! when I run this: %load_ext ipython_unittest in Jupyter I receive an error: No module named 'ipython_unittest'. How can I solve this problem?
Lowl3v3l__ has joined #nixos
<ToxicFrog> This may be a dumb question, but is it possible for me to write a standalone Nix package definition? Adding something to the nixpkgs index is well documented, but is there a good way to write a local package definition (which probably depends on e.g. internal git repos, and thus isn't suitable for contribution to nixpkgs) and then depend on it from configuration.nix?
Lowl3v3l_ has quit [(Ping timeout: 258 seconds)]
<MichaelRaskin> You can import NixPkgs as a parameter and pass it to your expression from configuration
<ixxie> in which ways can I declare a gnome extension (such as https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/gnome-3/extensions/workspace-grid.nix) in my nixos configuration
ixxie_ has joined #nixos
ixxie__ has joined #nixos
<ixxie__> I found something about services.xserver.desktopManager.gnome3.sessionPath but I cannot figure out how to use it
<NixOS_GitHub> [nixpkgs] montag451 opened pull request #20732: epiphany: enable the playing of HTML5 videos (master...epiphany-html5-video) https://git.io/v1T7t
<ixxie__> I am also not entirely sure that is the best way to do it
ixxie has quit [(Ping timeout: 260 seconds)]
amarsman has quit [(Quit: amarsman)]
ixxie_ has quit [(Ping timeout: 252 seconds)]
<masia[m]> when I run this: %load_ext ipython_unittest in Jupyter I receive an error: No module named 'ipython_unittest'. How can I solve this problem? Which package do I need to make it run?
arjen-jonathan has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v1T7V
<NixOS_GitHub> nixpkgs/master 2bf9413 Pascal Bach: gitlab-runner: 1.7.1 -> 1.8.0 (#20719)
amarsman has joined #nixos
<george_> i've installed `pass` software and copied .gnupg folder from my old system to nixos one but still getting gpg: decryption failed: No secret key
<george_> should i copy something else to make gpg work with old secret key in .gnupg?
FRidh has joined #nixos
<FRidh> masia[m]: you would need to package https://pypi.python.org/pypi/ipython_unittest
<george_> `gpg --homedir .gnupg/ --list-keys` gives nothing on nixos
<george_> but on my orignal system it lists correct keys
<george_> not sure what's going on here, .gnupg dir is same on nixos and original system
<masia[m]> there is no package ipython_unittest in nixos
arjen-jonathan has quit [(Ping timeout: 248 seconds)]
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #20672: pari/gp: 2.7.6 -> 2.9.0 (master...pari) https://git.io/v1fvL
<ToxicFrog> MichaelRaskin: that looks like what I'm looking for, thank you!
<zimbatm> does anyone know why dictionaries in the nix language are called "set"?
<zimbatm> it's something I've been wondering about for a while now
<zimbatm> some times they are called "attribute set" or "attrset"
<zimbatm> other languages would call them maps, dicts, hash or object
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #20366: apache-httpd (master...submit/apache-port-to-listen) https://git.io/vXKDG
<zimbatm> or tables in lua
<MichaelRaskin> Their official name is attribute set
<MichaelRaskin> And initially the names were more constrained, more than would fit a dict
<MichaelRaskin> Then some changes happenned over time…
<masia[m]> which package instead of ipython_unittest can I use in nixos?
<zimbatm> yeah attribute set makes more sense
<zimbatm> they are not maps because maps can have arbitrary keys as long as they are hashable
<MichaelRaskin> Well, by now we have arbitrary string keys…
<zimbatm> you mean everything is castable to a string?
<zimbatm> actually, what were the restrictions before, only a-z0-9 ?
<MichaelRaskin> The keys in attribute sets _are_ strings
<zimbatm> yes
<MichaelRaskin> Initially they had to be identifier-valid strings
<zimbatm> ok
<clever> zimbatm: the keys can contain . and /, but then the key has to be quoted, foo."bar.baz/your.going.to.hate.me" = ":P";
<MichaelRaskin> And our identifiers couldn't even have «-»
<MichaelRaskin> Back in a day
<zimbatm> in some places we still reference them as "set", like in `builtins.typeOf {}`
ehmry has quit [(Quit: WeeChat 1.6)]
<zimbatm> nix has come a long way :)
<zimbatm> do you think that urls are useful to have as expressions in the language?
<zimbatm> at the end they're just strings with a more complicated parser
<MichaelRaskin> Personally I think that special-casing paths is worth it, but special-casing URLs is not.
cfricke has joined #nixos
<MichaelRaskin> But that is after the experience with evolving NixPkgs traditions on URLs
<zimbatm> and most of them end-up being changed to a string litteral because of the $version injection
<MichaelRaskin> Yep
edvorg has joined #nixos
<zimbatm> I think I agree with you, paths play a fundamental role in the language
<MichaelRaskin> On the other hand, having URL in the parser is not a user problem if you avoid using them, so that's not a thing I am willing to campaign for.
<MichaelRaskin> Also "/etc/passwd" and /etc/passwd do behave differently now
<zimbatm> it might be a security risk because URL parsing is complex
<MichaelRaskin> With the URLs I don't know is there any significant difference in the resulting behaviour
<zimbatm> I think if I built a nix-expr linter it would tell the user to avoid url litterals
<MichaelRaskin> I am not sure I am willing to consider anything going on the user-side of Nix evaluation as security risk
<MichaelRaskin> I mean, if you are evaluating this stuff, you are very likely going to run the code it will download!
Shou has quit [(Ping timeout: 244 seconds)]
<zimbatm> fair enough :)
<MichaelRaskin> I agree that daemon correctness requirements can be a meaningful security question
<zimbatm> but it makes sense that URL are part of the language. Historically I mean, both the path and URL would seem important to me
<zimbatm> yeah
<MichaelRaskin> Yes, URLs are a very understandable choice, sure
<zimbatm> are we running coverity or any analysis tools on the C++ code yet?
<MichaelRaskin> Dunno
<zimbatm> it could be fun to apply AFL on the nixexpr parser
<MichaelRaskin> If you want to do that, please start with derivation .drv parser
<MichaelRaskin> Because this is what daemon receives from unprivileged users
<zimbatm> good idea, adding to my backlog
<MichaelRaskin> Actually, running the entire Nix toolchain under valgrind could also be interesting
<MichaelRaskin> But it looks like Nix uses reasonably safe smart pointers
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #19806: opa: update (master...opa-4310) https://git.io/vPbNW
kier has quit [(Ping timeout: 260 seconds)]
<zimbatm> I don't trust C++ :)
<zimbatm> better to run all the tools against it to make sure it's safe
<MichaelRaskin> That's true, the point is that at least Nix is careful C++
<george_> i'm trying to migrate gpg setup from my old pc to new one with nixos, i've copied .gnupg folder to nixos it pikedup public keys just fine but `gpg --list-secret-keys` returns nothing
<george_> what's wrong?
<zimbatm> george_: is it possible the gpg versions are different?
<zimbatm> gpg on nixos is the old 1.something version
<MichaelRaskin> Fun situation: I know how to extend NixOS xserver module to make Nvidia Optimus Prime work with nouveau, I do use NixOS xserver module to generate xorg.conf, but I don't use NixOS and I will not use the improved config (because of various tradeoff stuff)
<zimbatm> gpg2 is the new version
<MichaelRaskin> Also, it is not something that can be easily tested in a VM (obviously)
<george_> zimbatm: gpg versions are same
Shou has joined #nixos
<george_> zimbatm: wait, --version says 2.1.15
<zimbatm> MichaelRaskin: what brought you to working on it?
<george_> same as on non nixos box
<zimbatm> george_: maybe the private keys haven't been copied?
<MichaelRaskin> I got a used Thinkpad (turns out I cannot use W540 because of touchpad and I don't want to fight W520 Intel Video version, so W530 was the only option in the lineup)
<MichaelRaskin> And Lenovo does everything wrong
<MichaelRaskin> Just not so wrong to be impossible to work around, but still a bit wrong
<MichaelRaskin> So they have VGA on the side and miniDP on the side, these are wired only to NVidia
lverns has joined #nixos
<zimbatm> heh, list me one laptop model that got everything right
<george_> zimbatm: hm, i've just copied entire .gnupg directory
<MichaelRaskin> Asus ZenBook,
<MichaelRaskin> they only messed up HDD vendor choice in my model, but I don't care much about that part
<MichaelRaskin> But as-new I liked everything
<zimbatm> does it support 16GB of ram?
aj__ has joined #nixos
<MichaelRaskin> If Asus produced a Zenbook MB in an N 15.6 body with the spare space filled by batteries, Thinkpad would not be even condered
<MichaelRaskin> ZenBook only supports 12GiB
<MichaelRaskin> My version at least
<MichaelRaskin> (three years old or so)
jgertm_ has joined #nixos
<zimbatm> george_: workaround idea: export --armor the private keys from the old computer and re-import them
ixxie__ has quit [(Ping timeout: 245 seconds)]
<zimbatm> I think my next laptop will be a System76-one
<MichaelRaskin> I agree, my ZenBook has some official spec limitations that I find annoying, and crap HDD choice (ended up just putting in a better one myself), but what Asus does, they do right
<zimbatm> at least I know it works at least on one linux distribution
<MichaelRaskin> Erm, I think they have all the bad stuff from thinkpads
<MichaelRaskin> And just ship the workarounds
<zimbatm> what bad stuff? I'm using a X1 right now and it's alright
<zimbatm> but I like the trackpoint so you might questions my taste :p
<zimbatm> brb
<MichaelRaskin> I prefer good touchpads — and I am OK with both W530 and ZenBook touchpads
<MichaelRaskin> I don't like joysticks.
<MichaelRaskin> Re: X1: what is your situation with the video outputs and video cards?
<ak5> where are the canonical nixos docs?
<MichaelRaskin> NixOS.org has Nix manual, NixPkgs manual and NixOS manual
sdothum has joined #nixos
<taktoa> zimbatm: I have the system 76 galago ultrapro
<taktoa> good stuff
<taktoa> except it's plastic
<ak5> thanks
<taktoa> I wanted to get a new laptop, but I literally couldn't find one with a faster processor for *any price*
<taktoa> (current processor is a Core i7-4750HQ, and the 128 MiB L4 cache is quite a boon for my workloads, e.g.: compiling)
george_ has quit [(Quit: leaving)]
<MichaelRaskin> It is a 15''?
xadi has joined #nixos
<zimbatm> MichaelRaskin: it's a intel video card. the display port doesn't seem to work but the HDMI one is fine
<MichaelRaskin> Well, already suboptimal
Shou has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> W530 seems to only connect a VGA-via-dock to Intel's card
<MichaelRaskin> So no of the outer ports on the notebook body
<zimbatm> I haven't really investigated it, it might just be a driver issue
<MichaelRaskin> Well, in my case I ran a two-screen X and checked that it is really as bad as expected: NVidia card sees the outputs just fine
<zimbatm> I think the System76 Onyx is alloy design, probably still has a lot of plastic though
<MichaelRaskin> But in the Optimus mode NVidia doesn't see the laptop LCD screen
<zimbatm> i'll let you know if i get it working :p
<MichaelRaskin> And the point of getting a non-Asus thing was the battery, so NVidia-only mode is not an option
<MichaelRaskin> So I have learned configuring both Prime and Bumblebee
<MichaelRaskin> Bumblebee is better for my set of desires
<MichaelRaskin> (I can have one X session with NVidia's outputs and arbitrary number of Intel-only X sessions)
<MichaelRaskin> Two X sessions with Prime → a hung video output state
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to staging: https://git.io/v1TFn
<NixOS_GitHub> nixpkgs/staging 94fe387 Franz Pletz: nghttp2: 1.14.1 -> 1.16.1
<NixOS_GitHub> nixpkgs/staging 9007303 Franz Pletz: curl: add upstream patch to fix HTTP2 performance issues...
thc202 has quit [(Ping timeout: 260 seconds)]
ugjka is now known as UgJkA
thc202 has joined #nixos
<jgertm_> im attempting to run intero for haskell development in emacs. it fails with this error: /nix/store/526zk5ixdxbkcf1zja33y469f2ijdvp1-ghc-8.0.1/lib/ghc-8.0.1/settings: openFile: does not exist (No such file or directory). how do i fix it?
<taktoa> MichaelRaskin: it's a 14.1"
<taktoa> 1080p
<MichaelRaskin> Oh. Then it should be even harder to get a faster CPU in that size
jgertm has quit [(Killed (orwell.freenode.net (Nickname regained by services)))]
jgertm_ is now known as jgertm
lverns has quit [(Ping timeout: 252 seconds)]
lverns has joined #nixos
amarsman has quit [(Quit: amarsman)]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v1TFF
<NixOS_GitHub> nixpkgs/master f6bbc6c Tim Steinbach: linux: 4.9-rc5 -> 4.9-rc6
<NixOS_GitHub> nixpkgs/master 01172c2 Jörg Thalheim: Merge pull request #20591 from NeQuissimus/linux_4_9_rc6...
cfricke has quit [(Ping timeout: 252 seconds)]
rardiol has joined #nixos
Shou has joined #nixos
edvorg has quit [(Ping timeout: 265 seconds)]
c_ has joined #nixos
iyzsong has quit [(Quit: bye.)]
c_ is now known as Guest2999
<NixOS_GitHub> [nixpkgs] vbgl closed pull request #20404: ocamlPackages.alcotest: 0.4.5 -> 0.7.2 (master...alcotest-0.7.0) https://git.io/vXiRt
lverns has quit [(Ping timeout: 256 seconds)]
NEo4v8 has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub> [nixpkgs] 2chilled opened pull request #20733: pyload: add send2trash as dep (master...master) https://git.io/v1TbF
ixxie has joined #nixos
jgertm has quit [(Ping timeout: 252 seconds)]
amarsman has joined #nixos
jgertm has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm opened pull request #20734: gosu: init at 1.10 (master...gosu-1.10) https://git.io/v1TNG
angerman has quit [(Quit: Gone)]
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/v1TNM
<NixOS_GitHub> nixpkgs/master 57d3827 Robert Helgesson: perl-IO-Socket-SSL: 2.037 -> 2.039
bennofs1 has joined #nixos
FRidh has quit [(Remote host closed the connection)]
<sphalerite> Is there a command-line tool similar to the options list webpage?
<sphalerite> Sort of like nixos-option with searching rather than just querying the tree
<lassulus> man configuration.nix ?
kier has joined #nixos
<clever> sphalerite: and also "nixos-help" (it opens a web-browser on a local file)
cfricke has joined #nixos
bennofs1 has quit [(Quit: WeeChat 1.6)]
rardiol has quit [(Ping timeout: 248 seconds)]
Fare has joined #nixos
bennofs1 has joined #nixos
lverns has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm opened pull request #20736: su-exec: init at 0.2 (master...su-exec-0.2) https://git.io/v1Tx9
pi3r has quit [(Ping timeout: 260 seconds)]
Fare has quit [(Ping timeout: 258 seconds)]
<MichaelRaskin> zimbatm: you were talking about ideal Nix linter deprecating bare URLs, and here you are using them in su-exec homepage
RchrdB has quit [(Ping timeout: 256 seconds)]
jgertm has quit [(Ping timeout: 268 seconds)]
<MichaelRaskin> Thanks
<MichaelRaskin> On a more serious note, apparently Travis failure on macOS is a real one: -Werror + clang
<bennofs1> How do I add a package for a kernel module to nixos?
<zimbatm> :p
pstn_ has quit [(Ping timeout: 260 seconds)]
<bennofs1> Does anyone know some examples of kernel-module packages in nixpkgs?
<zimbatm> in theory the syntax highlighter could catch malformed urls
<MichaelRaskin> kernelPackages in NixPkgs seems to be the entire attrset of such stuff
<MichaelRaskin> bbswitch seems to be a small just-a-module example
<bennofs1> nice, thank you. boot.extraModulePackages seems to be what's needed to add it to a system derivation
<MichaelRaskin> Yes
<clever> bennofs1: this is something i used a few weeks ago, boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
<clever> bennofs1: this will add a driver that was already in nixpkgs to my system, and always use the whatever the current kernel is
frankpf has joined #nixos
takle has quit [(Ping timeout: 256 seconds)]
<bennofs1> Does anyone here use an rts2557 cardreader on nixpkgs (it is included in some thinkpad models)
<bennofs1> eh I mean rts5227
<MichaelRaskin> zimbatm: maybe set meta.platforms to linux for now?
<zimbatm> yeah
takle has joined #nixos
amarsman has quit [(Quit: amarsman)]
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/v1TpK
<NixOS_GitHub> nixpkgs/master 956e3de José Romildo Malaquias: efl: 1.18.2 -> 1.18.3 (#20728)
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/v1TpX
<NixOS_GitHub> nixpkgs/master 3ae052b Svend Sorensen: librecad: 2.0.10 -> 2.1.3 (#20720)
bennofs1 has quit [(Quit: WeeChat 1.6)]
<zimbatm> gosu and su-exec are functionally equivalent so I might drop gosu actually
rardiol has joined #nixos
civodul has joined #nixos
scadu has joined #nixos
takle has quit [(Ping timeout: 256 seconds)]
bennofs1 has joined #nixos
takle has joined #nixos
stepcut has quit [(Remote host closed the connection)]
scadu has quit [(Disconnected by services)]
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/v1Thp
<NixOS_GitHub> nixpkgs/master e24df8e Tim Steinbach: rkt: 1.19.0 -> 1.20.0 (#20697)
<NixOS_GitHub> [nixpkgs] zimbatm closed pull request #20734: gosu: init at 1.10 (master...gosu-1.10) https://git.io/v1TNG
amarsman has joined #nixos
datakurre has quit [(Ping timeout: 245 seconds)]
jluttine has quit [(Ping timeout: 265 seconds)]
datakurre has joined #nixos
systemfault has joined #nixos
saltsa has quit [(Ping timeout: 256 seconds)]
saltsa has joined #nixos
MichaelRaskin has quit [(Remote host closed the connection)]
viric_ has joined #nixos
bennofs1 has quit [(Ping timeout: 246 seconds)]
viric has quit [(Ping timeout: 260 seconds)]
<sphalerite> lassulus clever: Thanks for the pointers, it's a good start. Not as nicely searchable as the page though, where it displays a list of matching options without me having to jump through them
frankpf has quit [(Ping timeout: 258 seconds)]
<viric_> Dezgeg: I have seccomp, but I have systemd complaints (and slowdown on login)
<viric_> damn it, running journalctl -r I get:
<viric_> -- Logs begin at dg 2015-12-13 21:57:30 CET, end at dt 2016-11-22 06:52:37 CET. --
<viric_> Dezgeg: dmesg says:
<viric_> [218003.709824] systemd[11453]: systemd-logind.service: Failed at step SECCOMP spawning /nix/store/ggk0bdz6w6qrrhfrl5l5id4hqxpgb56w-systemd-231/lib/systemd/systemd-logind: Invalid argument
agjacome has joined #nixos
jluttine has joined #nixos
<viric_> I can't start systemd-journald
<viric_> Active: failed (Result: start-limit-hit) since ds 2016-11-26 19:01:12 CET; 2s ago
<viric_> [243505.649308] systemd[1]: systemd-journald.service: Main process exited, code=exited, status=228/SECCOMP
rardiol has quit [(Ping timeout: 268 seconds)]
<viric_> what is this about seccomp?
stepcut has joined #nixos
<viric_> (Same for systemd-logind)
arjen-jonathan has joined #nixos
Fare has joined #nixos
<clever> Dezgeg: how recently have you played with an rpi, i'm having trouble getting it to boot now
lverns has quit [(Ping timeout: 246 seconds)]
bennofs1 has joined #nixos
lverns has joined #nixos
Guest2999 has quit [(Ping timeout: 245 seconds)]
yodeler has joined #nixos
bennofs1 has quit [(Ping timeout: 256 seconds)]
Guest2999 has joined #nixos
rardiol has joined #nixos
zraexy has joined #nixos
<Dezgeg> it's a while since I nixos-rebuild'd since it always takes so long to get a v6 build
<clever> Dezgeg: i'm starting small, with just bootcode.bin, start.elf, fixup.dat, and kernel.img, and it doesnt get past the rainbow screen
<clever> Dezgeg: even if i use the kernel.img from the rpi github
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v1kf6
<NixOS_GitHub> nixpkgs/master 2d679db Tuomas Tynkkynen: ntp: Don't use seccomp on non-x86...
<Dezgeg> I guess it can't be a nixos problem if it doesn't get even that far
johnw_ is now known as johnw
johnw has quit [(Changing host)]
johnw has joined #nixos
<clever> yeah
<clever> Dezgeg: do you happen to know if start.elf has any serial debug?
<Dezgeg> dunno... I'd assume it's hidden behind some config.txt option if it has
herzmeister has quit [(Quit: Leaving)]
ilja_kuklic has quit [(Ping timeout: 250 seconds)]
Fare has quit [(Ping timeout: 246 seconds)]
lverns has quit [(Ping timeout: 252 seconds)]
zraexy has quit [(Ping timeout: 260 seconds)]
bennofs1 has joined #nixos
herzmeister has joined #nixos
<clever> Dezgeg: if i'm reading this right, the boot rom in the die can dhcp and fetch bootcode.bin, without any sd card.....
<Dezgeg> in rpi3, yes
<clever> they should clearly document when that was added
<clever> and i do have a 3 i can mess with
takle has quit [(Ping timeout: 248 seconds)]
<stepcut> I just attempted to build nixos for the rpi3
<stepcut> After a bit of copying some random bits into /boot I got it to boot. But after a minute or show, the screen goes blank except an _ in the upper left corner
<stepcut> not sure why
<clever> stepcut: could be power saving, can you plug in a keyboard and hit the any key?
<stepcut> I have a keyboard, and it happens in the middle of me doing stuff
<stepcut> One time it actually dropped into some debug mode and I could run journalctl -xb -- the last thing in the log was a complaint about not being able to run plymouth
<stepcut> so I tried adding, boot.plymouth.enable = false; to configuration.nix, but nothing changed
<stepcut> There could be lots of things wrong.. I kind of rolled my own build -- who knows what I screwed up
<stepcut> I did initially have problems getting past the rainbow screen. So I copied some random things like the .dtb from the working raspbian /boot into the nixos /boot and it started working. Not really sure which bit of desperate hacks fixed things though
takle has joined #nixos
<stepcut> I gotta run -- but I will be back tomorrow. I am quite interested in getting a good build of nixos for the RPi3. (I built everything using the RPi2 platform settings. I assume that means I would have code that is compatible with 2 or 3, but potentially slower than building with RPi3 specific CPU optimizations?)
stepcut has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] sh01 opened pull request #20740: rogue: Add alternative source archive URLs. (master...rogue_mirror) https://git.io/v1kUa
<clever> Dezgeg: i just found a rather scary option in start.elf, program_bootrom
<Dezgeg> heh, I suppose all socs have some such things you could screw up nowadays
<clever> Dezgeg: but i dont see the usb stuff the docs mentioned, and they do say to switch to the next branch
<Dezgeg> iMatejC: that flag only affects some samsung RTC driver so I doubt it will have any effect on an allwinner
<Dezgeg> iMatejC: but you could probably try some extreme hack like this to see if it goes away: sed -i sun7i-a20-olinuxino-lime2.dtb -e 's/sun7i-a20-rtc/XXX7i-a20-rtc/'
<clever> Dezgeg: bingo, i checked out the next branch of firmware, and now i have even more entries for program_ being found within "strings start.elf"
<iMatejC> Dezgeg: tnx
<kier> does nix/nixos have any capability to patch executables that are downloaded at runtime rather than built during the derivation, other that running patchelf on them manually?
<kier> e.g. games downloaded through steam
Guest2999 has quit [(Ping timeout: 245 seconds)]
<Ralith> the approach used for steam is to assemble a fake runtime environment that looks like ubuntu, so no patching is necessary
<kmicu> Sounds like a perfect job for ‘buildFHSUserEnv’ http://nixos.org/nixpkgs/manual/#sec-fhs-environments
<Ralith> i.e. that, yes
<kier> interesting, thanks
cfricke has quit [(Quit: WeeChat 1.6)]
nh2_ has joined #nixos
griff_ has joined #nixos
schneefux has quit [(Quit: ZNC 1.6.3 - http://znc.in)]
nh2_ has quit [(Quit: Leaving.)]
rardiol has quit [(Remote host closed the connection)]
amarsman has quit [(Quit: amarsman)]
spacekit1eh has joined #nixos
spacekitteh has quit [(Ping timeout: 250 seconds)]
Shou has quit [(Ping timeout: 256 seconds)]
rardiol has joined #nixos
luxor has joined #nixos
luxor has quit [(Client Quit)]
schneefux has joined #nixos
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #20742: wallabag: 2.1.3 -> 2.1.4 (master...wallabag) https://git.io/v1kkm
<simpson> Okay, I've tried pretty much everything. Does *anybody* have a working Graphite Web service on master/unstable?
arjen-jonathan has quit [(Ping timeout: 256 seconds)]
Shou has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/v1kk2
<NixOS_GitHub> nixpkgs/master be34ee4 Robert Helgesson: cpulimit: 2.3 -> 2.4
lverns has joined #nixos
george_ has joined #nixos
<george_> hello
<george_> how to test my package using sandbox?
<george_> i don't understand that
RchrdB has joined #nixos
<george_> where should i set this to true?
<kmicu> In configuration.nix.
<kmicu> (Assuming you are on a NixOS machine and the question is not about a standalone Nix on non–NixOS distro.)
<george_> kmicu: do you mean that i should add 'nix.useSandbox = true;' at the top level and then i should try to build my pkg using `nix-build -A my_pkg`?
<kmicu> Yes, but in between you need to execute ‘nixos-rebuild switch’ to apply changes https://nixos.org/nixos/manual/index.html#sec-changing-config
<george_> okay, let me try
<rardiol> Is a difference in formatting in a .nix file (say, some reordering and extra spaces in buildInputs) supposed to trigger nix to consider it a different derivation and rebuild?
jdreaver has quit [(Remote host closed the connection)]
<kmicu> george_: (Also you need to use ‘sudo nix-build …’, b/c regular users cannot create sandboxes.)
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/v1kkS
<NixOS_GitHub> nixpkgs/master c272c66 Peter Simons: ghc: add release candidate 1 for 8.0.2
<clever> rardiol: nope, only spaces inside strings cause a rebuild
<clever> rardiol: or changing the order of elements in a list
<clever> and more major stuff
<george_> kmicu: hm, build didn't happen, seems like it was cached and nix-build just returned /nix/store/blabla string
<samueldr> I was pleasantly surprised (but not really surprised) when I had a rebuild "doing nothing" since all the inputs were basically equivalent to a former generation
<kmicu> george_: you could e.g. change the ‘name’ in .nix file to trigger a rebuild.
<rardiol> clever: weird. I updated a nix file in a local copy of nixpkgs, built the package, then reformatted the nix file a bit, uploaded it to github for a PR, then I used nix-shell to get the updated package, but nix-shell rebuilt it. Can I find out what I changed that triggered a rebuild somehow?
<rardiol> wait, changing order triggers rebuilds? why?
<george_> kmicu: it did work but i don't see any difference between sandboxed and not sandboxed build, also i can run build command with regular user
<clever> rardiol: it doesnt apply any sorting to the buildInputs, and it casts the list down to a string
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/v1kkj
<NixOS_GitHub> nixpkgs/master e934ffb Michael Raskin: utf8proc: 1.3 -> 2.0.2
<NixOS_GitHub> nixpkgs/master b7eb924 Michael Raskin: julia-git: 0.5.0-dev-2016-06-10 -> 0.6.0-dev-2016-11-25
<rardiol> clever: I see, mystery explained then. thanks
<clever> rardiol: so it basicaly turns into "foo bar" vs "bar foo" and nix doesnt know they are similar (and the order can still affect the build)
<clever> rardiol: if 2 build inputs both provide foo in /bin, then the order will start to matter
george_ has quit [(Quit: leaving)]
<NixOS_GitHub> [nixpkgs] Okasu opened pull request #20743: terminus-font-ttf: init at 4.40.1 (master...terminus-font-ttf) https://git.io/v1kIU
<kmicu> rardiol: formatting changes should have no effect, but reordering build inputs can trigger a rebuild.
bennofs1 has quit [(Ping timeout: 260 seconds)]
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
<simpson> Okay. I concede. I have been beaten by Graphite. What should I set up if I want to monitor a nixops fleet and have a dashboard?
alx741_ has joined #nixos
alx741 has quit [(Ping timeout: 240 seconds)]
MarkusBarthlen has joined #nixos
<NixOS_GitHub> [nixpkgs] kampka opened pull request #20744: autorandr: 59f6aec0b -> 53d29f9 (master...python-autorandr) https://git.io/v1kIx
alx741_ has quit [(Client Quit)]
alx741 has joined #nixos
<NixOS_GitHub> [nixpkgs] rardiol opened pull request #20745: Allegro5 (master...allegro5) https://git.io/v1kIj
ixxie has quit [(Ping timeout: 256 seconds)]
Guest65623 has quit [(Quit: Lost terminal)]
stepcut has joined #nixos
xadi has quit [(Read error: Connection reset by peer)]
xadi has joined #nixos
jgertm has joined #nixos
Kingsquee has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/v1kt0
<NixOS_GitHub> nixpkgs/master e3d0fd8 Michael Raskin: julia-git: pin LLVM 3.9, seems to work fine
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/v1ktg
<NixOS_GitHub> nixpkgs/master cc77360 Tim Steinbach: linux: 4.4.34 -> 4.4.35
<NixOS_GitHub> nixpkgs/master b47307b Tim Steinbach: linux: 4.8.10 -> 4.8.11
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to release-16.09: https://git.io/v1kta
<NixOS_GitHub> nixpkgs/release-16.09 c9dafb1 Tim Steinbach: linux: 4.4.34 -> 4.4.35...
<NixOS_GitHub> nixpkgs/release-16.09 5db1d94 Tim Steinbach: linux: 4.8.10 -> 4.8.11...
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/v1kt1
<NixOS_GitHub> nixpkgs/master db7e616 Michael Raskin: julia-git: add macOS frameworks, hopefully that's useful
itorres has quit [(Ping timeout: 250 seconds)]
eacameron has joined #nixos
amarsman has joined #nixos
griff_ has quit [(Quit: griff_)]
Dezgeg has quit [(Ping timeout: 260 seconds)]
JonReed has joined #nixos
griff_ has joined #nixos
hiratara has quit [(Ping timeout: 240 seconds)]
athan has joined #nixos
hiratara has joined #nixos
<JonReed> Is there a way to give nix-env `default.nix` file and make it install package similar way it does with other packages (same effect as "nix-env -iA nixos.randompackage", except from randompackage.nix file that is in some random directory)
<JonReed> I've just quickly added a package and I don't want to git clone whole nixpkgs just to test it
<simpson> JonReed: Yes, $ nix-env -iA somePackage -f default.nix
<athan> Hey everyone, how do I bootstrap the right CA certs for installing nix? http://lpaste.net/346049
<simpson> JonReed: Oh. Interesting. I'm sure that there's a clever one-liner but I can't think of it right now.
<Leo`> What's the proper way of installing a custom keyboard layout in NixOS? I need to add a file to /usr/share/X11/xkb/symbols and modify /usr/share/X11/xkb/rules/evdev.xml.
<JonReed> simpson: Thx. Isn't there some cheatsheet for commands like this?
<JonReed> I couldn't find how to do it anywhere
<athan> JonReed: man page? :)
<JonReed> Well that's more like a reference book than a cheetsheet
<simpson> Well, you want callPackage from nixpkgs, so you want something like: (import <nixpkgs> {}).callPackage ./default.nix {}
<athan> it's only 800 lines lon
<simpson> JonReed: The thing that you want is *not* common; most people contributing to nixpkgs plan to use the normal git workflow, so they make a clone.
<simpson> JonReed: Consider: How were you planning on submitting your change?
<JonReed> simpson: Yeah
<JonReed> simpson: I guess you're right, there is no real point of doing it quickly like this
<simpson> JonReed: Anyway, hopefully my one-liner is a good jumping-off point with nix-build or nix-env. You can also use $(nix-repl '<nixpkgs>') which IMO is the most useful of them all.
<athan> nobody knows how to get the right CAs? :(
itorres has joined #nixos
<simpson> athan: Can't reproduce, sorry.
<athan> simpson: :U noooo
[0x4A6F]1 has joined #nixos
<athan> however, I can't `nix -i` until I have the CA certs in my system! chicken-and-the-egg
<athan> This is the result of me compiling the source for nix on my system, and issuing `make install` by the way
<athan> (I'm on ARMv7, a target the install script doesn't support)
danielrf has quit [(Ping timeout: 256 seconds)]
frankpf has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<Sonarpulse> pierron: thanks so much!
eacameron has joined #nixos
<shlevy> athan: You should be able to download the .nar files directly
<shlevy> athan: Or disable substitutes and do all the fetchurls manually
<athan> hm, okay
zeus_ has joined #nixos
eacameron has quit [(Remote host closed the connection)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
eacameron has joined #nixos
[0x4A6F]1 has quit [(Ping timeout: 256 seconds)]
<athan> shlevy: Would you imagine doing that for the `cacerts` package, then you'd have the CA certs you'd need, right?
MarceColl has joined #nixos
<shlevy> Yep
<athan> hmm okay
<athan> where would I download nars from?
<shlevy> nix-env -i nss-cacert --option build-use-substitutes false
<shlevy> And post the failing log here
Itkovian has joined #nixos
<MarceColl> hello! how ready is nixos to use for everyday use?
eacameron has quit [(Ping timeout: 260 seconds)]
<athan> shlevy: Thank you http://lpaste.net/346613
<simpson> MarceColl: Yes.
hiratara has quit [(Quit: ZNC - http://znc.in)]
<shlevy> athan: Ah, in a tmp dir: https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-17.03pre96205.8f63cc6/nixexprs.tar.xz | xz -d | tar x ; nix-env -i nss-cacert -f nixpkgs-17.03pre96205.8f63cc6
hiratara has joined #nixos
<shlevy> erm
<shlevy> there was supposed to be a curl before that url
Fare has joined #nixos
<JonReed> Is there a way to specify which build script to use inside source that was fetch from github?
<athan> and the `tar x`?
<athan> :P
<athan> er wait
<shlevy> athan: That's proper tar syntax
<athan> gah that's magic okay
<athan> thanks :)
<shlevy> tar is horrible :D
<simpson> How is Prometheus configured? I've got this NixOS configuration: https://bpaste.net/show/5703f5c4f56a
<simpson> But it gives me an error I've never seen before: error: The option `services.prometheus.scrapeConfigs.[definition 1-entry 1].job_name' is used but not defined.
<JonReed> E.g., there is no make or anything and just build.sh, so default builder does not work. there's buildCommand but it seems that must be some shorter way to do it
<shlevy> JonReed: buildPhase = "./build.sh"
<JonReed> shlevy: That's much better. Thanks.
<athan> would it be possible to hi-jack the linux distro I'm on to a NixOS build with nix?
<athan> well, I know there's a process given a stage3 or whichever
<Ralith> you can install NixOS in-place, yes
<simpson> Did I misunderstand how `services.prometheus.scrapeConfigs.*.job_name` from configuration.nix works?
<athan> ahh sweet, thanks Ralith
<Ralith> easiest way is to just boot NixOS install media and nuke everything but /home
<Ralith> you can do it without install media but it's tricky and not really documented
<athan> Ralith: That's not possible in my case :\
<athan> I'm on a raspberry pi
<athan> I know there's an image for it though, I just thought it would be easier to self host
<Ralith> that may be difficult for other reasons
Itkovian has quit [(Quit: Textual IRC Client signing off)]
<clever> athan: i have used nix-build to convert 2 of my gentoo machines directly to nixos, without any repartitioning or formating
amarsman has quit [(Read error: Connection reset by peer)]
<athan> that's awesome
<clever> athan: but it had some minor boot issues that i solved with rm -rf /etc, which is harder to do without grub
<athan> hmm yeah I have a weird partition setup too
<clever> athan: if you have a 2nd uSD card in a usb reader on the pi, it would go much smoother
<athan> hmm really?
<clever> then you are free to partition it correctly
<athan> ahh I see
<athan> because you can't really copy to your own /boot partition..?
<athan> (unless it was a live usb or whatever)
<clever> its more about having to delete the partitions, and you cant do that when they are mounted
<athan> ahh yeah
<clever> athan: to start with, do you have nix on the rpi yet?
<athan> yep, built from source
<athan> I'm getting my ca-certs now
<athan> (thanks to shlevy!)
<clever> athan: and have you done a nixos install before on other hardware?
<simpson> Okay, maybe a simpler question: How do I write a submodule into my NixOS configuration? I've read types.submodule but I'm clearly not grokking it; I thought that I could use an attrset.
<gchristensen> simpson: like a nixos/module/** thing?
<simpson> gchristensen: Like, I want to configure Prometheus, which has submodules for its configuration.
<simpson> So I typed up https://bpaste.net/show/5703f5c4f56a and got "error: The option `services.prometheus.scrapeConfigs.[definition 1-entry 1].job_name' is used but not defined."
<athan> clever: It's been a long time :\
<athan> thanks clever :)
<clever> athan: this is a guide on how to get (and use) nixos-install inside the rescue shell of a cloud hoster
<clever> athan: so you can boot the cloud system into not-nixos, and then install nixos to the box
xadi has quit [(Ping timeout: 256 seconds)]
Itkovian has joined #nixos
eacameron has joined #nixos
goibhniu has joined #nixos
Itkovian has quit [(Client Quit)]
eacameron has quit [(Ping timeout: 268 seconds)]
Itkovian has joined #nixos
Itkovian has quit [(Client Quit)]
eacameron has joined #nixos
glines has joined #nixos
frankpf has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
eacameron has quit [(Ping timeout: 256 seconds)]
Itkovian has quit [(Client Quit)]
ebzzry has joined #nixos
<simpson> benley, fpletz: Hi! PR history indicates that you know things about NixOS and Prometheus. Any idea what I'm doing wrong with https://bpaste.net/show/5703f5c4f56a ?
<benley> simpson: what kind of error are you getting?
<simpson> error: The option `services.prometheus.scrapeConfigs.[definition 1-entry 1].job_name' is used but not defined.
<griff_> clever: I am still having problems with getting a Hydra instance setup do you have time to help some more?
<clever> griff_: sure
<fpletz> simpson: hrm, looks right to at first glance, one sec
<simpson> fpletz: Yeah, I agree. Thanks for taking a look.
<griff_> clever: I have tried to test with your setup http://hydra.earthtools.ca/jobset/nixexpr/nixexpr#tabs-configuration but that triggers a build of everything from gcc to glibc and bash. It is as if it doesn’t know how to take stuff from hydra.nixos.org and cache.nixos.org
<benley> simpson: that's odd - glancing at the prometheus.io docs that looks like it should be correct at least
<simpson> Yep. :c
<griff_> clever: My entire setup is here https://github.com/griff/thonix-nixos I use Vagrant to run a test nixos machine
* benley reads through the prometheus nixos service def
Ivanych has quit [(Ping timeout: 268 seconds)]
<clever> griff_: in my case, the host is normal nixos, and cache.nixos.org was already in /etc/nix/nix.conf
<fpletz> yeah, I just compared it to a config I'm using in production and it still looks correct :/
<clever> griff_: so it just grabs stuff from there
lverns has quit [(Ping timeout: 265 seconds)]
<clever> griff_: https://hydra.nixos.org is no longer a binary cache, so that wont work, and cache.nixos.org is already in the cache list by default
<clever> griff_: and the option your setting appends, so cache.nixos.org is probably in there twice, check the resulting /etc/nix/nix.conf file
<fpletz> simpson: but the error makes no sense somehow… the the prometheus module afaik does not directly access job_name but transforms it to json for the prometheus config
<glines> I'm trying to run this stupid graphical installer for an arduino board, but I get the following error: open("/lib64/ld-linux-x86-64.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
<benley> fpletz/simpson: yeah I'm still confused by that error too
<glines> with an strace
athan has quit [(Read error: Connection reset by peer)]
<benley> is it complaining that you're setting an option that isn't expected?
<glines> it's apparently a statically linked binary not dynamic, so what do I do to work around this issue? it's not a patchelf fix...
<benley> it really looks like it should work
<simpson> If I comment out the contents of the attrset, so that I have `scrapeConfigs = [{}];`, it still complains.
<simpson> So maybe something about the defaults in the service module is to blame?
eacameron has joined #nixos
<benley> huh.
<simpson> Yeah.
<simpson> Today's just not my day, apparently.
<benley> I don't see anything referring to job_name other than the declaration of the option's existence
* benley scratches head
<clever> simpson: https://gist.github.com/cleverca22/db7be5bfadd47a10de9b45a229ad25a0 a serice i wrote a few months ago
<clever> simpson: for each entry in the set of sub-options, config (line 19-21) acts like a set of defaults, but it can compute on a per-entry basis
<clever> simpson: which allows the .name option to default to the KEY in services.tgtd.targets.KEY = { .... };
<simpson> clever: Interesting. How can that help me here? I'm not seeing it.
<clever> simpson: not sure what your problem is yet, but another example probably cant hurt
ilja_kuklic has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
<simpson> clever: My problem is that I'm trying to configure Prometheus according to its NixOS configuration options, but seemingly-valid configuration is causing errors when I go to apply it and I don't understand why.
<benley> people are actually using that prometheus module, right?
<clever> simpson: ah
<benley> I wrote it originally but I don't actually use it :-P
<simpson> I'm not sure! I just know that the Graphite Web module stopped working and this has become my least-painful option.
<benley> I'm surprised there isn't a thing in there to provide the entire prometheus config file as a string (or preexisting file)
<griff_> clever: I started out with not having specified any build cache urls but that didn’t work. I will try it again.
<clever> griff_: double check the resulting /etc/nix/nix.conf after you rebuild to confirm what it has generated
smc9115 has joined #nixos
<simpson> It's true that I'm on nixpkgs master; is there perhaps some recent work there that would cause this? I didn't see anything terrible with git-blame...
<JonReed> So, I ended up using nix-repl instead, but going back to another option which is using one-liner "nix-env -iA somePackage -f default.nix ". How can I do callPackage with it?
<clever> JonReed: nix-build -E 'with import <nixpkgs>{}; callPackage ./default.nix {}'
<clever> JonReed: nix-env may also accept -E and -i together
<JonReed> clever: Would it add binaries to $PATH?
<clever> JonReed: nix-build only creates a symlink called result in the current dir
amarsman has joined #nixos
<fpletz> simpson: I'm getting another error with your config
<fpletz> simpson: error: The option `services.prometheus.scrapeConfigs.[definition 1-entry 1].static_configs.[definition 1-entry 1].labels' is used but not defined.
<simpson> fpletz: Sweet, I'm not crazy!
<simpson> It does seem to be a touch non-deterministic.
<fpletz> defining labels for fixes it for me
ebzzry has quit [(Ping timeout: 245 seconds)]
<JonReed> Hm, `nix-env -iE 'with import <nixpkgs> {}; callPackage ./default.nix {}` complains about "attempt to call something which is not a function but a set, at undefined position". It should work, because in nix-repl `d = callPackage = ./default.nix {}; :b d` builds fine.
<JonReed> This is weird
<clever> JonReed: you can also run nix-env -i /nix/store/foo-bar/ on things already built
smc9115 has quit [(Remote host closed the connection)]
<simpson> fpletz: Yeah, `labels = {};` and suddenly it works: https://graphs.matador.cloud/config
<simpson> benley, fpletz: Thank you so much for the help. Now I just have to remember how to use Borgmon.
<benley> hahaha
<benley> good luck!
<fpletz> if prometheus works without defining any labels we should fix that
<JonReed> clever: That's a really good thing to know. Thanks.
ebzzry has joined #nixos
<benley> fpletz: yeah, prometheus should be fine without any explicit labels in a scrape_config
<benley> I think
<fpletz> benley: just verified on simpson's prometheus instance
<fpletz> I'll push a fix
<fpletz> simpson: thanks :)
<benley> cool, thanks
goibhniu has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
athan has joined #nixos
<ToxicFrog> Hrm.
<ToxicFrog> I'm trying to install binutils to get `nm`
ambro718 has quit [(Ping timeout: 252 seconds)]
<ToxicFrog> I try to install it and it says that addr2line from binutils conflicts with addr2line from binutils-dev
<ToxicFrog> According to the manual, this should just be a matter of doing something like:
<ToxicFrog> # nix-env --set-flag priority 5 binutils
<ToxicFrog> Bug:
<ToxicFrog> error: selector ‘binutils’ matches no derivations
<ToxicFrog> *but:
ebzzry has quit [(Ping timeout: 240 seconds)]
<clever> ToxicFrog: 99% of the time, you dont want to install binutils and similar packages, you want to use nix-shell
ilja_kuklic has quit [(Ping timeout: 250 seconds)]
<ToxicFrog> clever: I will try that, thank you.
athan has quit [(Remote host closed the connection)]
athan has joined #nixos
<griff_> clever: I just removed hydra.nixos.org from my config so /etc/nix/nix.conf looks like http://pastebin.com/zvENSQ9M but it still builds everything
<ToxicFrog> (I'm trying to figure out why doomrl doesn't run. Trying to run it gives me "no such file or directory: ./doomrl", which invariably means a dynamic linking failure; but trying to run `ldd` on it to see what libs it wants gives the same error!)