<infinisil>
> p (lib.recursiveUpdate { a = { x = 10; }; } { a = { y = 20; }; })
<{^_^}>
"{ a = { x = 10; y = 20; }; }"
<infinisil>
With the module system, mkMerge is the preferred variant
<pie__>
the reason i split it up like that was because i wanted to do a let but not pollute the namespace for the first set
<infinisil>
pie__: And yes it didn't give a warning because using // is very common to actually override things
<pie__>
makes sense i guess
<pie__>
now i feel dumb
<infinisil>
np :2
<infinisil>
:)
<infinisil>
Eh we are all dumb in some ways at some times anyways
<pie__>
yeah but i feel dumb all the time haha. maybe i try to leave my comfort zone too often without much of a clue how :p anyway
<pie__>
so yeah my actual thing i was trying to solve
MP2E has quit [Remote host closed the connection]
<pie__>
you cant do {a = b; (let x=y; in (c=d;e=f;))}
<pie__>
the parens are just so i dont have to multiline it in irc
<{^_^}>
[nixpkgs] @LnL7 pushed to release-18.03 « libgcrypt: disable tests on darwin »: https://git.io/vh13g
<pie__>
you cant put the let at the top level in the set, so what would be a good way to do that?
<infinisil>
> p (mkMerge [ { x = 10; } (let y = 20; in { c = y; e = 30; }) ])
<{^_^}>
undefined variable 'mkMerge' at (string):149:4
<infinisil>
> p (libmkMerge [ { x = 10; } (let y = 20; in { c = y; e = 30; }) ])
<{^_^}>
undefined variable 'libmkMerge' at (string):149:4
<infinisil>
> p (lib.mkMerge [ { x = 10; } (let y = 20; in { c = y; e = 30; }) ])
<{^_^}>
"{ _type = \"merge\"; contents = [ { x = ...; } { c = ...; e = ...; } ]; }"
<infinisil>
this hah
<pie__>
ok so just use mkmerge then
<pie__>
instead of //
<infinisil>
Yeah, with the module system that's the best choice
<pie__>
they are both ugly but fiiiine :P
<infinisil>
Well you can always add more let in's and newlines
<infinisil>
let secondpart = let y = 20; in { c = y; .... }; in lib.mkMerge ...
<pie__>
im an idiot, maybe i should just make another file
<infinisil>
I usually don't care about polluting namespaces, I don't have that much variables. So I just use a single big let in at the beginning for everything
<infinisil>
Yeah or that
<pie__>
a e s t h e t i c s
<pie__>
xD
<infinisil>
Indeed :P
<infinisil>
Alright I'll have to go sleep now though, good night :)
sbdchd has joined #nixos
<pie__>
well that looks like it worked
<pie__>
thanks, good night
<pie__>
whew...
sbdchd has quit [Remote host closed the connection]
iyzsong has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 merged pull request #42077 → nixos/zfs: mount AFTER import → https://git.io/vhXFC
<et4te>
gchristensen: Well, I finally got it to compile after writing a bunch of patches, changing the scripts, adding kernel 4_13. It seems to build okay but the display just flickers when starting sddm for example. Ah well, at least it builds. :D
<gchristensen>
nice!
silver_ has quit [Quit: rakede]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryantrinkle has quit [Ping timeout: 260 seconds]
deepfire` has joined #nixos
hoshineko has quit [Ping timeout: 245 seconds]
hoshineko has joined #nixos
pie_ has joined #nixos
Ariakenom has joined #nixos
deepfire` has quit [Ping timeout: 268 seconds]
deepfire` has joined #nixos
xcmw has joined #nixos
markus1189 has joined #nixos
watt has joined #nixos
watt has quit [Client Quit]
rschm has joined #nixos
markus1199 has quit [Ping timeout: 264 seconds]
sbdchd has quit [Remote host closed the connection]
<rschm>
hi, i do have nix package manager config.nix file runnning on ubuntu. can i just use the same files and folders i defined there on nixos? i am interested in getting a nixos up and running instead of ubuntu.
sbdchd has joined #nixos
<rschm>
thanks for any help explaining what needs to be done to reuse the .nix files.
sbdchd has quit [Remote host closed the connection]
<numkem>
hello, I've made the jump today to install NixOS and so far things have been fairly smooth. But I run into an issue that I'm not sure can be fixed. I have to work with tensorflow in a virtualenv and the wheel contains a prebuilt binary. I understand you can use patchelf to fix this but how can I find the needed files and what kind of fix do I need to apply? Everything I've found on google shows up in nix
hamishmack has joined #nixos
<numkem>
expressions that won't tell me the path
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #41971 → nixos/postgresql: Use listen_addresses, not -i → https://git.io/vh61g
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vh1cD
acarrico has quit [Ping timeout: 256 seconds]
<worldofpeace>
numkem: you want to use `readelf` and `ldd`
Lev50 has quit [Quit: This computer has gone to sleep]
<numkem>
How can i find the files that are elf?
<truthadjustr>
numkem: kindly update the wiki https://nixos.wiki when you figure out how to fix.. thanks. I too, would like to do stuff like that
MP2E has joined #nixos
<worldofpeace>
actually wait, I don't know what I'm talking about. You don't need virtualenv. You should read the python section in the nixpkgs manual I think.
<Baughn>
It isn't impossible, but you'll have to patch the binary manually.
<Baughn>
And if it's the GPU version... might as well be.
<Baughn>
You'll find NixOS much more comfortable if you go all-in.
<numkem>
how would i proceed than? Scrap virtualenv and do... nix containers? I have yet to graps the whole thing but I think I understand the basics
ggp0647 has joined #nixos
<Baughn>
Not containers, no.
<truthadjustr>
actually,.. is why i resort to docker when things get rough in nixos
<numkem>
virtalenv by design does somewhat was a nix package does which is nice, but in the case of development, if i could get a /bin/python out of something I could direct emacs to it and it would work i believe
<numkem>
truthadjustr: but than having to rebuild everytime you make a fix gets tedious... I guess a volume could solve a big part of it
<numkem>
I'll read the doc, maybe there is an eaiser way
<Baughn>
When you put "python35.withPackages (...)" in a shell.nix and run nix-shell, what it does is build a wrapper for python + the named packages.
<Baughn>
Which sets the various path environment variables in a manner very reminiscent of virtualenv.
aw has quit [Remote host closed the connection]
spacefrogg has quit [Remote host closed the connection]
aw has joined #nixos
<Baughn>
This is how basically all runtime dependencies work in NixOS, for everything where they can't just be baked into the binary with absolute paths.
<numkem>
Baughn: just read about nix-shell, seems really powerful
spacefrogg has joined #nixos
woodson has joined #nixos
<Baughn>
numkem: My favorite use of it is to make "portable shell scripts". Using #!/usr/bin/env nix-shell instead of #!/bin/bash, I can get Nix to install any dependencies for the script on-demand.
<numkem>
wonder if I could write an env.py that would do a nix-shell through the shebang so emacs can auto-complete with it
<Baughn>
...but that also works for python scripts and so forth.
<Baughn>
It's nice having it all in one file.
<Baughn>
Hmm. LSP not an option?
<numkem>
LSP?
<Baughn>
Language server protocol
<Baughn>
If you need *that particular* python to be in the PATH for Emacs... guess the simplest way would be to launch Emacs from nix-shell.
<Baughn>
Which is how you'd have to do it if using virtualenv, right?
<numkem>
it's using anaconda in the backend
<numkem>
well virtualenv exposes a bin/python and emacs supports virutalenvwrapper
<Baughn>
Not familiar with anaconda.
<Baughn>
Doesn't seem to exist as a package, either.
<Baughn>
...anyway, gtg. GL.
<numkem>
if nix-shell actually writes something somewhere and I can track it down it would be doable I believe
<numkem>
Baughn: thank you
<Baughn>
nix-shell puts various things in the environment.
<Baughn>
There's certain to be ways to do what you want to do. Multiple. Some better than others.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nuncanada2 has quit [Quit: Leaving]
xcmw has joined #nixos
orivej has joined #nixos
init_6 has quit []
<tom1919>
gchristensen: For packages nix doesn't return a directory of files, it returns a function that returns a derivation (right?). nix-instantiation then executes that to produce files/directories. I was wondering what the equivalent for nixos involves.
andymandias has quit [Ping timeout: 240 seconds]
stepcut has joined #nixos
numkem has quit [Quit: WeeChat 2.0]
andymandias has joined #nixos
<truthadjustr>
how do we install the 'gitter' chat client ?
sbdchd has quit [Remote host closed the connection]
iyzsong has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Ping timeout: 248 seconds]
matthewbauer has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<worldofpeace>
It's not packaged in nixpkgs. though anytime someone wants a package that's not in nixpkgs in irc, I package it...
schoppenhauer has quit [Ping timeout: 256 seconds]
jperras has quit [Quit: WeeChat 2.1]
tzemanovic has quit [Remote host closed the connection]
schoppenhauer has joined #nixos
tzemanovic has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
matthewbauer has quit [Ping timeout: 268 seconds]
tzemanovic has quit [Ping timeout: 264 seconds]
stepcut has quit [Ping timeout: 256 seconds]
vcunat has joined #nixos
dqsii__ has joined #nixos
Ross has quit [Ping timeout: 264 seconds]
Ross has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dqsii__ has quit [Quit: Leaving]
dqsii has joined #nixos
travankor has joined #nixos
tzemanovic has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
dqsii has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
lord| has quit [Read error: Connection reset by peer]
pie_ has quit [Ping timeout: 264 seconds]
lord| has joined #nixos
dje4321_ has joined #nixos
<dje4321_>
im trying to create a package for nixos but i need to write a udev rule. what would be the best way todo this? This is the .nix i have so far https://hastebin.com/ohigefegaj.pl
jasongro` has joined #nixos
daveo has quit [Remote host closed the connection]
johnw has joined #nixos
<dje4321_>
this is the output of the nix-shell command thing
<dje4321_>
mostly made by looking at other modules and figuring it out
gerschtli has quit [Quit: WeeChat 2.0]
gerschtli has joined #nixos
tzemanovic has joined #nixos
tlotze_ has joined #nixos
<tlotze_>
hi, I'm using nixpks on top of another distribution and I've started doing declarative package management using config.nix – it feels much better than installing stuff ad hoc but I'm still missing some things
<tlotze_>
installing packages directly into the environment allowed me to see the currently installed versions using nix-env -q; how do I achieve the same if all nix-env -q gives me is my "myPackages" package that pulls in the real stuff?
<srhb>
tlotze_: I'm afraid you don't really. But exploring the files in the profile you should be able to find every store path that is included, though that includes (transitive) dependencies as well.
tzemanovic has quit [Ping timeout: 248 seconds]
<srhb>
At least in some cases.
<tlotze_>
hm, I was afraid it would take some digging
<tlotze_>
so there isn't even a better way to find out the version of a single package that has been pulled in transitively?
<srhb>
tlotze_: None that I know. fwiw I would just keep myPackages up to date and evaluate any versions from nixpkgs directly.
<srhb>
Rather than considering the installed versions special.
<tlotze_>
ok
<tlotze_>
another thing
<srhb>
tlotze_: Perhaps you could make your life easier by generating a version list automatically to include in your myPackages
<tlotze_>
oh
<srhb>
tlotze_: Like, you could map over every package and create a pseudopackage that is just a text file containing name-version
<tlotze_>
how does that work conceptually? I'm using channels so I could pin channels to a version, but how could I freely pin versions of packages?
<tlotze_>
other that copying their definition, that is
<srhb>
tlotze_: I'm not talking about pinning, I'm just talking about recording the versions in any one generation of myPackages
<tlotze_>
just as documentation, you mean?
<srhb>
essentially let myPkgs = [ your list of packages ]; in myPkgs ++ [ (package that records name-version of all packages in myPkgs) ]
<srhb>
tlotze_: Yeah
<tlotze_>
to be honest, I'm not sure what that "package that records the versions" would b
<tlotze_>
e
<srhb>
tlotze_: A text file, essentially. But perhaps it doesn't help you. Not sure what you're trying to achieve exactly. :)
<tlotze_>
All I want to achieve is if I need to know which version of a package I use (say, because something doesn't work and I want to check whether I'm using a version with a particular bug already solved), and the program doesn't tell me easily itself, I want to find out by asking the package manager.
<tlotze_>
but I think it's ok to do some digging in such cases, at least for now
<tlotze_>
it's not that it couldn't be done, it just feels like it should be easy and I'm missing something
<tlotze_>
but I do understand that with declarative package management, all my installed packages become just dependencies
inquisitiv3 has quit [Ping timeout: 240 seconds]
<tlotze_>
another thing: I'm mixing two channels (unstable and the latest stable release)
<tlotze_>
but I need to manually put the stable channel on NIX_PATH
<tlotze_>
but I wonder, since everybody seems to be talking about mixing channels: how do people solve this right now?
tzemanovic has joined #nixos
aarvar has quit [Ping timeout: 260 seconds]
JasonGrossman has quit [Remote host closed the connection]
JasonGrossman has joined #nixos
rprije has joined #nixos
<tlotze_>
srhb: if I do need to do the digging, this appears to achieve it nicely: ls -lR /nix/store/*-my-packages |grep ' -> ' |sed 's/.* -> [^-]*-//' |sed 's+/.*++' |sort |uniq
<tlotze_>
even better: find /nix/store/*-my-packages -type l -printf '%l\n' |sed 's/[^-]*-//' |sed 's+/.*++' |sort |uniq
winem_ has quit [Remote host closed the connection]
testuser_ has quit [Ping timeout: 260 seconds]
<srhb>
tlotze_: Nice. :)
<srhb>
tlotze_: Fwiw I don't use channels personally, at least not through the regular mechanism
<srhb>
tlotze_: Instead, I import the versions of nixpkgs I want directly
<srhb>
tlotze_: Like import (fetchurl (url-of-tar.gz-)) {}
<tlotze_>
well, I'd like to benefit from version updates in the channels, and I'd like to use current stuff, but once in a while something doesn't work and I need to fall back to an older, stable channel
<srhb>
tlotze_: Right. I find that easier to fix by managing the imports directly and bumping as needed
<JasonGrossman>
woffs: I've been planning to try ZFS encryption. Will test.
<JasonGrossman>
woffs: Thanks for your work.
<tlotze_>
srhb: a current example is to use libreoffice-fresh from 18.03 rather that libreoffice from unstable; it's almost as current, does work, and will probably be updated anyway
<srhb>
tlotze_: Yeah.
<tlotze_>
srhb: thank you for your answers, that was quite insightful
<srhb>
tlotze_: So I'd have pkgs1803, pkgsUnstable and maybe pkgsMaster all defined, then I can switch easily between which is used. of course, you can also easily do this with channels if you want. Not sure how you're achieving it currently.
<srhb>
I assume something like unstable = import <nixpkgs-unstable> {}; with nixpkgs-unstable defined as a channel name tracking the unstable branch..
<tlotze_>
almost
<tlotze_>
in my case, unstable is the default and 18.03 is explicitly listed as stable and imported by that name
<srhb>
Right.
knupfer has joined #nixos
<tlotze_>
I just wish I didn't have to remember putting all channels on NIX_PATH, and I don't want to change nix.sh
<srhb>
Hmm, shouldn't the channels mechanism be doing that for you?
<srhb>
Maybe I don't quite understand how channels work on non-nixos.
<srhb>
I don't know if that is actually still allowed in Nix 2.0, but maybe worth a try.
grumblr has joined #nixos
<srhb>
Or just give up on channels, they're messy anyway. :-P
<tlotze_>
hm
<tlotze_>
I think I'll fool around with my .profile a bit and see what works best or looks cleanest
<srhb>
OK :)
<tlotze_>
didn't realise that channels were on the way out ;o)
<srhb>
tlotze_: fwiw my "update" mechanism consists of running nix-prefetch-git to get a json blob that specifies the things I need to fetch a particular channel
<srhb>
tlotze_: I'm not sure that sentiment is really still accurate.
<srhb>
But I wish it were.
grumble has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
grumblr is now known as grumble
<srhb>
I'll stop the propaganda now. :D Good luck finding a solution that fits you. At least we have flexibility :)
<tlotze_>
that's true
<tlotze_>
thank you again, I need to be on my way in a few minutes anyway...
charleshd has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<hyper_ch>
clever: still can't setup remote server :( kexec works fine but gnutls won't build
tlotze_ has left #nixos [#nixos]
<das-g[m]>
Is there some guide how to set up a local MTA (needed for `caff` from `nixpkgs.gpg-tools`, which uses Perl's `Mail::Mailer`) on NixOS? Can I use the `networking.defaultMailServer.*` options for that?
<rschm>
i am sorry for newbie question. how do we execute the nix-env for the .nixpkgs on nixos? i could do nix-env -iA nixpkgs.env on my ubuntu but that does not seem to work in nixos.
<rschm>
thanks.
<rschm>
for any pointer or any help.
<woffs>
rschm, nixos. if your channel is named nixos
<rschm>
but that does not execute the .nixpkgs config.nix file, right?
<LnL>
rizary: you want modifiedHaskellPackages.mkDerivation, the stdenv doesn't know about cabal so that would require much more work to make a working build
<LnL>
rizary: nix-env -f '<nixpkgs>' -iA hello
<LnL>
rschm: ^
<LnL>
that will work everywhere
michiell2 has joined #nixos
<rschm>
thanks LnL, woffs.
<rschm>
let me try that.
thc202 has joined #nixos
truthadjustr has joined #nixos
<rschm>
you are genius, LnL, woffs. it is executing now. thanks
<obadz>
or if you want to be excentric nix-env -iE '(_: with import <nixpkgs> {}; hello)' :=)
<LnL>
that should be the default instead of namespacing by channel IMHO
<obadz>
expressions should be the default :)
<rizary>
LnL: i got this error
<rizary>
error: anonymous function at /nix/store/44nfqhh6zxgrz97y2fzc4ksnv8v30i50-nixos-17.09.3243.bca2ee28db4/nixos/pkgs/development/haskell-modules/generic-builder.nix:6:1 called without required argument ‘pname’, at /nix/store/44nfqhh6zxgrz97y2fzc4ksnv8v30i50-nixos-17.09.3243.bca2ee28db4/nixos/lib/customisation.nix:74:12
<rschm>
can you explain a bit?
<kreetx>
I have a haskell app which builds on a lockal docker build slave, and now want do deploy this on an ubuntu staging machine. I'm wondering which is better: to convert it to nixos, or just simply copy closure (or sometging similar) to install it. The immediate problem is that although the binary has the correct architecture, then the linker doesn't exist (since its path is /nix/..)
<kreetx>
*local
<rizary>
i'm sorry i know it requires `lib` parameter (looking at github)
<obadz>
rizary: 17.09 is a bit old, maybe bumping version fixes this?
<rizary>
obadz: i have this output under my `nix-channel --list`
<tilpner>
kreetx - If you have the time, you can create a backup. It'll be easy to recreate the machine afterwards
booglewoogle has joined #nixos
wchresta has joined #nixos
truthadjustr has quit [Ping timeout: 256 seconds]
<booglewoogle>
hey, anyone here got a minute to help a nixos and haskell beginner out setting up an environment? pretty much from scratch since i feel pretty lost with what i've gathered
<kreetx>
booglewoogle: where are you now?
<booglewoogle>
got stack installed via configuration.nix and tried to install just ghc with it for starters, which already failed
<kreetx>
ah, and you're on nixos already? not trying to build haskell with nix-the-package-manager?
<kreetx>
booglewoogle: and you're building as for now, so the nixos related things shouldn't matter
<kreetx>
i.e you're not making a module (service) that nixos would run through systemd
truthadjustr has joined #nixos
wchresta has quit [Remote host closed the connection]
<booglewoogle>
okay
wchresta has joined #nixos
<kreetx>
booglewoogle: if you already have your cabal project, then unless it uses other private dependencies you might have, you can continue using your own cabal package
<kreetx>
it should just work
NightTrain has quit [Quit: Lost terminal]
andymandias has quit [Ping timeout: 260 seconds]
iyzsong has joined #nixos
b has joined #nixos
andymandias has joined #nixos
<rschm>
how do i set the priority of the drv given the package name like /nix/store/z0siyymq4ds9r2r2l2x4s5rsks884g8s-baseEnv/share/gitweb/gitweb.cgi?
<rschm>
the message is nix-env --set-flag priority NUMBER INSTALLED_PKGNAME to change priortiy
<rschm>
and i am getting matches no derivations when i do use the pakage.
<rschm>
package name i mean.
<rschm>
thanks.
booglewoogle has quit [Remote host closed the connection]
booglewoogle has joined #nixos
alex`` has quit [Ping timeout: 255 seconds]
andymandias has quit [Quit: ZNC 1.6.5 - http://znc.in]
andymandias has joined #nixos
alex`` has joined #nixos
<gchristensen>
rschm: what command are you running when you get that error, and can you paste (gist, pastebin, etc.) the output of nix-env -q
<rschm>
i did a nix-collect-garbage and rerun nix-env -f '<nixpkgs>' -iA base at the moment.
<rschm>
i will run that once it is done. thanks gchristensen.
<rschm>
it shows git-2.16.4.
<rschm>
i can't copy and paste nixos in my virtualbox.
<gchristensen>
hrm, what is base?
tzemanovic has quit [Remote host closed the connection]
chrisaw has joined #nixos
<rschm>
it is .nixpkgs i took from my ubuntu.
<rschm>
it is defined in config.nix there.
<gchristensen>
do you have git inside of the `base` expression in config.nix
tzemanovic has joined #nixos
<rschm>
oh now i need to do nix-env --set-flag priority 9 git
<rschm>
and that works.
<rschm>
yes.
<rschm>
thanks.
<gchristensen>
you should probably just uninstall git, then :) nix-env --uninstall git-2.16.4
<gchristensen>
and use instead the git from base
<rschm>
yes. i got it now.
<gchristensen>
great!
<rschm>
it was confusing as i thought i need the whole path to what was failing.
<gchristensen>
yeah, set-priority is confusing :(
<gchristensen>
I find a lot of nix-env confusing, actually
tzemanovic has quit [Remote host closed the connection]
<gchristensen>
I like your approach of base in config.ninx
tzemanovic has joined #nixos
<truthadjustr>
hi,.. in case we need to install virtualbox extension, how can be do it in nixos?
<rizary>
LnL: if i have 3 folder let say `android` `frontend` `backend` which is both `frontend` and `backend` use haskell. Then I want to make default.nix which contains all the result of each folder under the root `result`, should I make each `frontend` `backend` its own default.nix contains the `cabal-install` so i can build it with `cabal new-*`
<rizary>
or i can make only default.nix in root using `haskellPackages.mkDerivation` and includes the `android` project?
kiloreux has quit [Ping timeout: 245 seconds]
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #nixos
<tilpner>
truthadjustr - virtualisation.virtualbox.guest.enable and virtualisation.virtualbox.host.enableExtensionPack, depending on what you need
<chrisaw>
Can anyone help me with overriding a python package using an overlay? I have followed https://nixos.org/nixpkgs/manual/#how-to-override-a-python-package-using-overlays and infinisil helpfully gave me some advice but I'm still struggling with it and can't do a nixos-rebuild without patching one of the python dependencies. :(
<nek0>
hi peeps. can somebody guide me through a multi monitor setup with nixos?
logzet has quit [Remote host closed the connection]
logzet has joined #nixos
wchresta has quit [Remote host closed the connection]
<chrisaw>
tilpner: Thanks for the heads up - fixed that. It wasn't the problem - just tried to keep the gist simple and failed!
<Taneb>
I want to write a nix derivation that edits a source file to replace exectuable names with paths to the nix store
<Taneb>
When's the best phase to do that?
pie_ has joined #nixos
<tilpner>
chrisaw - My only guess'd be that you access warrant directly, or access a different warrant
<booglewoogle>
kreetx: got the example from the github working, now trying to make sense of what exactly happened there, haha
<tilpner>
(It's working, but doing the wrong thing)
<tilpner>
chrisaw - Just to make sure, default.nix is a module that you have imported into your NixOS configuration, right?
<chrisaw>
tilpner: the strange thing is - even if I install it using: nix-env -iA nixos.python3Packages.warrant - it still doesn't apply the patch.
<chrisaw>
tilpner: correct
<kreetx>
booglewoogle: haha
<tilpner>
chrisaw - That's expected, nixpkgs.overlays does not affect nix-env by default (though it can be made to do so)
<chrisaw>
tilpner: Ahh ok! That explains that one then.
<tilpner>
(nix-env is weird and should be avoided if possible IMO)
<kreetx>
booglewoogle: as far as my nix-fu has taken me, expressions with certain structure (type) need to be at the correct places, and then everything works, otherwise explodes
<booglewoogle>
for example, how would i go about installing ghc-mod in that environment? if you happen to know
<kreetx>
booglewoogle: if the language were typed, the compiler would tell you, atm the runtime tells you
<tilpner>
chrisaw - And nixos-option nixpkgs.overlays confirms that there are as many overlays as you are trying to set?
<chrisaw>
tilpner: Sorry, you've lost me there. As in - the overlays I'm setting actually exist? If so, yes.
<kreetx>
booglewoogle: do you mean in the context of shell.nix -- i.e at dev time?
<tilpner>
chrisaw - Run "nixos-option nixpkgs.overlays"
<booglewoogle>
i suppose, yeah
<chrisaw>
tilpner: "Value:" - nothing output. Strange because I actually have 3 package overlays for individual packages and the other 2 are working great. Just this one isn't.
<chrisaw>
tilpner: Oh just a sec - verbose tells me it can't parse one.
<truthadjustr>
tilpner: thanks.. how to find possible values for virtualisation.virtualbox.host.enableExtensionPack? tried to google, tried 'true' but it's not accepting
<tilpner>
truthadjustr - true and false, none other should be accepted
<booglewoogle>
i'm just trying to put the pieces of what's happening here at all together. new to both nixos and haskell (or developing at all really)
<chrisaw>
tilpner: Typo in one of them while I was experimenting. Fixed that. Result is now: 3
<booglewoogle>
seems hard to find comprehensive and up-to-date info about this otherwise :p
<chrisaw>
Which is the same amount as I actually have
<tilpner>
chrisaw - Now the nixos-rebuild again, I guess?
<truthadjustr>
tilpner: 'virtualisation.virtualbox.host.enableExtensionPack = true;' is not accepted either
ivanfon[m] has joined #nixos
<tilpner>
Ah, it's recent
<chrisaw>
tilpner: Same error from the pkg: "ModuleNotFoundError: No module named 'pip.req'" - that's beause it needs the pip10 support patch which is what I'm trying to apply. :)
<kreetx>
booglewoogle: (I don't use it myself, don't run nixos as my dev machine, etc, but:) I think you need to find a way to do something in the lines of 'nix-env --install ghc-mod'
<kreetx>
it didn't work for me just now, but somehow the installing of haskell executables needs to be possible
<tilpner>
truthadjustr - It's only available on nixos-unstable
<kreetx>
since it's on hackage, it pretty much needs to be in nix's haskell packages
<kreetx>
booglewoogle: learning haskell and nix together seems quite a combination -- hope you're on a tight deadline also :p
<tilpner>
chrisaw - I'll be gone for ~40min, can try again afterwards
<booglewoogle>
yeah, makes sense. i'll try
<booglewoogle>
kreetx: haha, nah, nothing like that at all, that's just out of private interest
<kreetx>
booglewoogle: either you install ghc-mod -- then it should be something like the command above; or: you have also a dev environment through shell.nix -- then you have to define it there somehow
<booglewoogle>
i've read that nix(os) supplements haskell development really well, and i've chosen to learn haskell as a first language (apart from some rudimentary python)
<kreetx>
I'm not that far yet, so I don't know how any of these are done
<booglewoogle>
okay
<truthadjustr>
tilpner: ok.. how can i install it as a normal user? i don't want to switch my main system to unstable
<booglewoogle>
okay, i've tried to install ghc-mod (haskellPackages.ghc-mod as found in the nixos package search) via my configuration.nix now. getting "error: The option value `environment.systemPackages.[definition 40-entry 45]' in `/etc/nixos/configuration.nix' is not of type `package'."
<booglewoogle>
anyone know what that's about?
<chrisaw>
tilpner: Just found out I can workaround the issue and make home-assistant not require that package in the first plae. Happy with that workaround for now. Thanks for your help! :)
<truthadjustr>
i can't run 'nix-repl' as normal user. Error says: error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<clever>
truthadjustr: either use `NIX_REMOTE=daemon nix-repl` or `nix repl`
<truthadjustr>
clever: tanxs..both alternative works!
chrisaw has quit [Ping timeout: 240 seconds]
<truthadjustr>
i have virtualbox. But the virtualisation.virtualbox.host.enableExtensionPack = true is only available in the unstable channel. How can I have this setting as normal user? I don't want to switch my main system to unstable
<tilpner>
truthadjustr - You can replicate that behaviour manually, by overriding global virtualbox with virtualbox.override { enableExtensionPack = true; }
justanotheruser has quit [Ping timeout: 248 seconds]
roberth has quit [Ping timeout: 245 seconds]
roberth has joined #nixos
thblt has joined #nixos
Ariakenom has quit [Quit: Leaving]
mkoenig has quit [Ping timeout: 240 seconds]
<truthadjustr>
tilpner: in /etc/nixos/configuration.nix ?
rprije has quit [Remote host closed the connection]
juhe has joined #nixos
rprije has joined #nixos
ryantrinkle has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<tilpner>
truthadjustr - I'd use an overlay for that. self: super: { virtualbox = super.virtualbox.override { enableExtensionPack = true; }; }
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<juhe>
Hello, is it possible to use nixops to deploy from x86_64 to arm? Or, slightly differently, is it possible to cross compile nixos stuff on x86_64 for arm?
<clever>
juhe: this is an example i had tested, that deploys to arm, but it needs arm build slaves to build
<tilpner>
clever - A while ago, you wanted to provide your qemu-user thing as a module, but it needed Nix patches. Any progress on getting those merged?
<juhe>
clever: thanks, so I'd need to setup also nix.buildMachines to contain arm builder(s), is that correct?
<clever>
tilpner: the nix patch has been merged into nix master
<clever>
juhe: yep
roberth has quit [Ping timeout: 245 seconds]
<juhe>
clever: ok, thx
<kreetx>
I'm testing this https://stackoverflow.com/questions/43375880/how-to-build-a-docker-container-with-nix to create a docker from macos, but when I run it it says 'standard_init_linux.go:190: exec user process caused "exec format error"'. I'm guessing it's an archetecture mismatch, but can't seem to be able to to build for linux (which is what docker always runs, right?)
<kreetx>
it looks like it builds the docker on the macos, and then running that inside docker fails
MinceR has quit [Ping timeout: 248 seconds]
<kreetx>
I added this "--builders 'ssh://nix-docker-build-slave x86_64-linux'" to the nix-build command to no avail
MinceR has joined #nixos
<clever>
kreetx: if you `import <nixpkgs> {}` it can default to darwin, and then embed darwin binaries into the docker image
<tilpner>
clever - Great, thanks!
igo95862 has joined #nixos
<kreetx>
clever: how could I go around it? Was thinking that perhaps adding the builder would do. Hmm, also wondering how do I know if it's really using the builder?
<LnL>
rizary: don't add cabal-install yourself it's already in the haskell build environment
igo95862 has quit [Quit: igo95862]
sary has joined #nixos
<booglewoogle>
hum. how come i can install 'hdevtools' via the install command ('nix-env -iA nixos.haskellPackages.hdevtools' as given in the nixos package search) no problem, but when I add it to my configuration.nix, it gives me an error ('The option value `environment.systemPackages.[definition 40-entry 45]' in `/etc/nixos/configuration.nix' is not of type `package'.')
<booglewoogle>
what's going on here?
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<LnL>
someyhing you added to systemPackages is not a package
<rizary>
LnL: hmm so in order to use upstream cabal-install, i just need to override it? IIRC if i want to have cabal-install in my nix-shell environment (for example) i have to put it under buildInput
<sphalerite>
booglewoogle: can you maybe show us the contents of your configuration.nix?
<booglewoogle>
okay, got it. i fiddled some more and 'haskell' was the culprit that doesn't belong there. nevermind me.
johanot has joined #nixos
<LnL>
rizary: ah, yes the nix build doesn't interact with cabal-install directly (haskellPackages.mkDerivation { ... }).env gives you a shell environment where you can run cabal build IIRC
<rizary>
i see...
johanot has quit [Client Quit]
<LnL>
also not sure how new-build interacts with the nix infrastructure
johanot has joined #nixos
matthewbauer has joined #nixos
init_6 has joined #nixos
sorixelle has quit [Ping timeout: 245 seconds]
<hoshineko>
how hard is it to make a nix expression for a package that's not in the channels?
<{^_^}>
[nixpkgs] @dje4321 opened pull request #42102 → brightnessctl: init at 0.3.2 → https://git.io/vh16D
<LnL>
extending nixpkgs is really easy, the expression depends on what you're trying to package
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
hiroshi has quit [Ping timeout: 264 seconds]
b has quit [Quit: Lost terminal]
lukelau has left #nixos [#nixos]
<hodapp>
I do it in shell.nix files all the time
sary has quit [Ping timeout: 276 seconds]
<hodapp>
for things like Python packages or builds that are just C/C++ with Makefiles or CMake it's not hard (unless the builds are broken crap, which sometimes they are)
jtojnar has quit [Remote host closed the connection]
<rizary>
so i have try with both `(haskellPackages.mkDerivation {..}).env` and `let pkg = haskellPackages.callPackage ({mkDerivation}: ...) in pkg.env
<rizary>
i'm able to enter into nix-shell, but when i do `cabal --version` it still use my global `cabal-install` version.
<clever>
rizary: nix doesnt provide a cabal binary, only the cabal library
<clever>
rizary: you must use `runhaskell Setup.hs` to access cabal
fendor has joined #nixos
inquisitiv3 has quit [Read error: Connection reset by peer]
<rizary>
clever: that is the case when i already have `.cabal` in my folder, cmiiw?. On another case, how to have the updated `cabal-install` (binary) version (upstream version is 2.3.0.0) in my nix-shell environment?
phdoerfler has quit [Quit: Leaving.]
inquisitiv3 has joined #nixos
sbdchd has quit [Remote host closed the connection]
daveo has joined #nixos
daveo is now known as mconstant
<mconstant>
Has anybody tried using jenkins-x with NixOS/
<mconstant>
?
<mconstant>
think I might be having more luck now
<mconstant>
using nix-shell and bundix while doing `jx import` on a rails project
sbdchd has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<rizary>
hmm okay i think i am missing something. When i do `nix-shell -p haskell.compiler.ghc822` i am able to enter nix-shell and i already have `cabal-install` in it. I can't run `nix-shell -p haskell.packages.ghc822` though
<rizary>
so i check repl, and found that i can't find cabal-install in `pkgs.haskell.compiler.ghc822` but i can find it in `pkgs.haskell.packages.ghc822.cabal-install`
<gchristensen>
the repo is called hydra-provisioner iirc :)
<jcrben>
ah cool, it says at the bottom of that readme that a real-world example is the one I linked above
<rizary>
so i've tried `myEnv = haskellPackages.ghcWithPackages (pkgs: with pkgs; [cabal-install]); in pkgs.stdenv.mkDerivation rec {... buildInputs = [ myEnv ]; }` and i can enter the shell with the given ghc and cabal-install
<rizary>
but still, my `modifiedHaskellPackages.ghcWithPackages` return the same error..
<{^_^}>
[nixpkgs] @pSub pushed commit from @IvanMalison to master « Udiskie appindicator (#42063) »: https://git.io/vh196
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hoshineko has joined #nixos
alunduil has joined #nixos
camsbury has joined #nixos
<rschm>
any pointer to installing nixos on virtualbox? i tried but without much success with the kde gui. it either didn't terminate or i could get it to work with xcfe but without auto scaling. thanks for your help.
<cocreature>
rizary: hm weird, I don’t see anything obviously wrong. might be interesting to try it with 8.4 and see if you hit the same issue
<rschm>
appreciate your help.
<cocreature>
rizary: or maybe try setting isLibrary explicitely to false
nallar has joined #nixos
<cocreature>
rizary: it might also be worth a shot to manually run cabal2nix and comparae the result to hackage-packages.nix
<cocreature>
*the cabal-install derivation in hackage-packages.nix
Ross has quit [Ping timeout: 264 seconds]
nallar is now known as Ross
<rizary>
cocreature: okay will do
<jcrben>
rschm: can't make promises - I gotta head out and run errands in a sec, but I'll keep it in mind. I did get nixos running in virtualbox a few months ago using packer - you could try cloning down https://gitlab.com/jcrben-play-learn/nixos-packer
<jcrben>
can't remember how flaky it was tho
sbdchd has quit [Remote host closed the connection]
<rschm>
appreciate your help still. thanks.
inquisitiv3 has quit [Ping timeout: 260 seconds]
hoshineko has quit [Ping timeout: 260 seconds]
<jcrben>
rschm: also, are you on the latest virtualbox? what's your host os?
<rschm>
all are latest.
<jcrben>
linux? mac? windows?
<rschm>
i tried nixos-graphical-18.03.132628.a381b789984-x86_64-linux and it works great with scaling.
<rschm>
mac
endformationage has joined #nixos
<rschm>
but in vagrant it just doesn't work.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has joined #nixos
aexoxea has quit [Quit: Goodbye!]
hoshineko has joined #nixos
Ross has quit [Ping timeout: 276 seconds]
Ross has joined #nixos
johanot has quit [Remote host closed the connection]
sary has quit [Ping timeout: 245 seconds]
<hoshineko>
hello, there is a package (sxiv) that accepts an optional argument (conf) which is a header file, I am unsure of how to pass this argument
<Sirio>
Hello to everybody :) I have installed NixOS on my laptop. It is revolutionary.
<gchristensen>
Sirio++!
<rizary>
another question, (note: running nixos on hyper-v windows) i have nix-channel `nixos https://nixos.org/channels/nixos-18.03`, so when i want to upgrade my nixos (17.09), i run `sudo nix-channel --update nixos`, but why i'm still download the 17.09 version?
<gchristensen>
rizary: have you run nixos-rebuild switch yet?
<rizary>
try remove `sudo`, it download the 18.03, but when i run `nixos-version` it still the `17.09` version, try running `sudo nixos-rebuild switch` also the same
<Sirio>
Many parts of my nixos system (firefox browser too) is in English. I don't understand how to specify Italian language
sbdchd has quit [Ping timeout: 240 seconds]
<Sirio>
it_IT.utf8 and it layout are ok
<gchristensen>
tilpner: do you know about my search?
<tilpner>
search.nix.gsc.io? I don't really use it
<gchristensen>
yeah
rprije has quit [Remote host closed the connection]
<tilpner>
It looks nice, but it doesn't really improve on a local checkout (It's a lot better than GitHub search though)
rprije has joined #nixos
<gchristensen>
aye. I like it a lot because it searches every nixos organization's repo
<tilpner>
Oh, I didn't even notice that
<gchristensen>
and is always up to date with HEAD
hoshineko has quit [Ping timeout: 256 seconds]
hoshineko has joined #nixos
reinzelmann has quit [Ping timeout: 255 seconds]
reinhardt has joined #nixos
matthewbauer has quit [Read error: Connection reset by peer]
johanot has joined #nixos
hoshineko has quit [Ping timeout: 260 seconds]
matthewbauer has joined #nixos
<{^_^}>
[nixpkgs] @swflint opened pull request #42108 → lice: init at 0.4 → https://git.io/vh1Ak
chrisaw has joined #nixos
<chrisaw>
Hey folks! Does anyone know how I can ignore "incompatibleKernelVersion"? Trying to use an overlay overrideAttrs on zfsUnstable but no luck so far.
<Sirio>
Is there a place to specify the own language for all packages?
aarvar has joined #nixos
xy2_ has quit [Ping timeout: 240 seconds]
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
m0rphism has joined #nixos
pie_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
jD91mZM2 has quit [Ping timeout: 240 seconds]
reinhardt has quit [Quit: Leaving]
xy2_ has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
tzemanovic has joined #nixos
tenten8401 has joined #nixos
<tenten8401>
Anyone know if there's a way to get the latest and greatest Plasma 5.13 without switching my entire system to unstable?
orivej has quit [Ping timeout: 255 seconds]
<tenten8401>
Is there something here like "kde-unstable" on Arch?
<Sirio>
maybe with override that package, but i can't offer better information
matthewbauer has quit [Ping timeout: 256 seconds]
<Sirio>
I have unstable channel on very recent laptop and all good
tzemanovic has quit [Ping timeout: 265 seconds]
<tenten8401>
Does unstable break very often?
<tenten8401>
I'd be fine with the occasional breakage since I can simply rollback
<tenten8401>
but if it's gonna break every time I upgrade I'd rather not
pie_ has joined #nixos
<Sirio>
maybe I have been lucky
halfbit has joined #nixos
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Sirio>
I'm trying nixos since a week....
contrapumpkin has joined #nixos
<tenten8401>
I'll try it anyways, really don't have much to loose with atomic updates
contrapumpkin has quit [Client Quit]
<tenten8401>
What are you using to set it to unstable? Just syncing the unstable channel with a command or are you defining it in configuration.nix somehow?
contrapumpkin has joined #nixos
contrapumpkin has quit [Client Quit]
contrapumpkin has joined #nixos
contrapumpkin has quit [Client Quit]
<Sirio>
when I installed it I've defined unstable on configuration.nix
<tenten8401>
if you don't mind me asking, how are you defining it?
<Sirio>
I have remove channel 18.03 and add unstable for sure, updated it, but this step maybe it doesn't need
<alphor>
is there a statically typed language that works well with nix? Java, kotlin, scala don't seem to have the support.
<alphor>
haskell might be too steep a climb for me, I think.
<tenten8401>
oh do you only need system.stateVersion = unstable?
<tenten8401>
even after setting that it doesn't wanna seem to update
<tenten8401>
I'll push to gitlab real fast 1s
<chrisaw>
tenten8401: What are you running to perform the update?
<tenten8401>
nixos-rebuild switch
<chrisaw>
Add --upgrade
<chrisaw>
Or: nix-channel --update first
<tenten8401>
seems to be doing something, it's just hanging with no input but I'll let it go for a bit
<tenten8401>
nope
<tenten8401>
I have system.stateVersion = 18.09 and defaultChannel = nixos.org/channels/nixos-unstable
<Sirio>
put "https://" too
<tenten8401>
I did
<tenten8401>
still nothing
<Sirio>
when you execute nixos-rebuild switch, nixos uses new configuration.nix, you have to reboot too and to select generation 2 (or the next number from current generation)
<tenten8401>
I have to reboot after setting the channel to unstable?
<Sirio>
if something go wrong: reboot and select previous good generation
<chrisaw>
Nah - I doubt it. Not unless you're changing your kernel.
<tenten8401>
yeah, nothing's wrong
vaninwagen_ has joined #nixos
<tenten8401>
It just won't switch to unstable
<tenten8401>
doing nix-channel --list spits out 18.03 still
<tenten8401>
I had that set but it didn't seem to wanna take effect
<tenten8401>
I didn't reboot though so idk
<tenten8401>
I mean, it works as of now after messing with nix-channel
<gchristensen>
that option is not intended to be used, it is an internal-only option (note it is undocumented in `man configuration.nix`) and it only works at install time, indeed
<gchristensen>
Sirio: how did you come to learn about it?
<Sirio>
I understand. defaultChannel is only and index, but if we don't specify a channel with nix-channel, it doesn't get anything
<Sirio>
*an index
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<tenten8401>
should stateVersion still be 18.09 or unstable?
<gchristensen>
did you read the comment?
<tenten8401>
I'm not sure if "unstable" is considered a NixOS version though
<tenten8401>
and up above I heard I should set it to both unstable and 18.09
<gchristensen>
You should change this only after NixOS release notes say you should.
<gchristensen>
Sirio: you should keep 18.09 as your state version
matthewbauer has quit [Ping timeout: 256 seconds]
<Sirio>
ok
<flyx>
hi folks! I'm trying to setup NixOS on my server. so far, I get a command line „GRUB C“ after installation, which means my GRUB is broken according to the internets. if I boot the install disk again, I see that there are FAT errors on /boot. /boot seems fine right after nixos-install, but it happens every time on reboot. what could cause this?
<pie_>
"Most importantly, for tinc to be able to resolve host-names inside the chroot environment, you must copy /etc/resolv.conf intothe chroot directory."
<pie_>
whats the appropriate way to do that with nix?
<manveru>
is there some cc executable for llvm
<LnL>
clang?
<manveru>
so that wouldn't make the closure much bigger?
<manveru>
thanks :)
rprije has quit [Remote host closed the connection]
vaninwagen_ has quit [Ping timeout: 256 seconds]
rprije has joined #nixos
<gchristensen>
clever: do you run multiple buildkite agents per machine at IOHK?
<hoshineko>
installing glib-networking doesn't work btw
redj has quit [Ping timeout: 268 seconds]
xcmw has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
roberth has quit [Ping timeout: 264 seconds]
hotfuzz has joined #nixos
hotfuzz_ has quit [Ping timeout: 240 seconds]
<sphalerite>
hoshineko: I was so confused at first. Thought that was an error message in my browser, not the actual image.
<hoshineko>
haha
<sphalerite>
like "that's not the image's URL!"
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
<sphalerite>
anyway, it's probably a matter of it not looking in the right places. You could try to run your thing with strace to see where it's looking and what it's failing to find
<sphalerite>
something like strace -fe file -o >(grep ENOENT) your command here
<sphalerite>
There will be a lot of files that are eventually found which won't be relevant, but if you can find anything with glib-networking that could be interesting. If it's a .so path that's missing you might need to wrap your program to set LD_LIBRARY_PATH
<sphalerite>
there's also some sort of gobject-introspection stuff, maybe "typelib" files, where the search path can be controlled with some similar environment variable.
<sphalerite>
I'm not sure about the exact details though, I haven't really used lua stuff at all nor do I know that much about glib* packaging
<sphalerite>
Hope it at least gives you some paths to pursue :)
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
<hoshineko>
well there's a lot of glibc attempts, but no glib-networking
<sphalerite>
oh yeah, you could of course also grep networking rather than ENOENT
<hoshineko>
there's nothing like that in the strace logs
matthewbauer has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @mupfelofen-de opened pull request #42111 → Add mupf to maintainer-list.nix → https://git.io/vhMee
matthewbauer has joined #nixos
<sphalerite>
hoshineko: does setting GI_TYPELIB_PATH=$(nix-build --no-out-link '<nixpkgs>' -A glib-networking) help?
<sphalerite>
err
<sphalerite>
$(nix-build --no-out-link '<nixpkgs>' -A glib-networking)/lib/girepository-1.0
<sphalerite>
hm wait no Gio modules seem to be something separate from GI libraries
<sphalerite>
bleeeeh
<sphalerite>
GIO_EXTRA_MODULES=$(nix-build --no-out-link '<nixpkgs>' -A glib-networking)/lib/gio/modules
<sphalerite>
I think that should work hopefully.
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/vhMem
<hoshineko>
it did
<hoshineko>
ty
<hoshineko>
how do u figure that out tho
emmanuelrosa has joined #nixos
<sphalerite>
I had a look at the files in glib-networking, found that there were "gio modules" in lib/gio/modules
<sphalerite>
the sensible thing to do from there would be to grep for lib/gio/modules in nixpkgs to look for prior path settings, and that would have got me to the solution much quicker
johanot has quit [Ping timeout: 245 seconds]
<sphalerite>
but I grepped for GIO_ in all the existing wrapper scripts I have instead, because that's what I (correctly) suspected the environment variable to look like
<sphalerite>
unfortunately there's no one universal method for solving this sort of issue. But usually strace is useful, as is inspecting the contents of the allegedly missing dependency.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johanot has joined #nixos
matthewbauer has quit [Ping timeout: 256 seconds]
<emmanuelrosa>
I'm writing a NixOS test for mpd and I don't understand why the test fails when I run `nix build -f mpd.nix` yet it works fine when I run the nixos-test-driver script and execute `testScript`. The difference that I see in the log is that when the test fails it's because it doesn't run the `mpc add ...` step. The test is here: https://github.com/emmanuelrosa/nixpkgs/commit/8c55e03e744b9cd5f91b3864fe212a15b6205685 Any ideas?
matthewbauer has joined #nixos
<emmanuelrosa>
Nevermind, found the problem. The service I added to create the test "music library" was starting before mpd, and thus it failed.
<gchristensen>
maybewait for the mkmusic unit
<chrisaw>
Can anyone help me override incompatibleKernelVersion? So far I've got the following as an overlay: zfsUnstable = super.zfsUnstable.overrideAttrs (old { incompatibleKernelVersion = null; });
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
wchresta has quit [Remote host closed the connection]
vaninwagen has quit [Quit: WeeChat 2.1]
wchresta has joined #nixos
acarrico has joined #nixos
matthewbauer has quit [Ping timeout: 256 seconds]
toby1851 has joined #nixos
<chrisaw>
Sadly no luck so far :|
<gchristensen>
chrisaw: I think you would have to edit nixpkgs locally :/
<chrisaw>
gchristensen: Really? I figured I'd be able to override that one variable but a bit mystified because the check for that variable happens outside of the actual package definition.
<gchristensen>
yes
<chrisaw>
I suppose I could fake the kernel version but that's super hacky :|
<gchristensen>
because the check happens before you're able to override the package
jperras has quit [Ping timeout: 240 seconds]
<chrisaw>
gchristensen: Silly question but is there any way to ignore a "break" and do a kind of forced install?
kreetx has quit [Ping timeout: 265 seconds]
amir has joined #nixos
<gchristensen>
in this case, because of the way the error is created, no unfortunately
Lisanna has joined #nixos
booglewoogle has quit [Remote host closed the connection]
jperras has joined #nixos
<chrisaw>
Oh well - that at least answers why I couldn't get such a simple change to work! :D
<Lisanna>
Hey, anyone with a hydra instance available to give me some hints about a problem I'm having? my hydra site is trying to load a bunch of scripts with http:// and I setup the nginx connection to use SSL, and have forceSSL = true set on the virtualhost. Firefox is blocking the mixed http content from loading over the https connection, so the CSS and scripts on my hydra page aren't loading. Disabling that protection in firefox lets the site load fine, but
<Lisanna>
I don't have to do this on hydra.nixos.org. What's up with that?
<chrisaw>
gchristensen: I'll pick this up tomorrow. Pretty late here. Thanks for the help! :)
<Lisanna>
gchristensen thanks, now just have to convert that to nginx equivalents
<Lisanna>
gchristensen got it, thank you!
<LnL>
Lisanna: build the config with nix and copy the relevant parts
<Lisanna>
LnL thanks, I got it working with setting those headers
<sphalerite>
gchristensen: would love to meet up with you btw but the dates you're around don't fit with my availability at all :( another time hopefully!
<sphalerite>
oops was meant for #nixos-chat
<sphalerite>
ah well
vcunat has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 276 seconds]
rprije has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
redj has joined #nixos
rschm has quit []
<PolarIntersect>
Does anyone have ideas on what would be most complicated or how difficult it'd be to fork and replace systemd in nixos? Like, are there systemd-specific things that are going to make this extremely difficult?
<gchristensen>
yes
<PolarIntersect>
hmm... Any specifics?
<gchristensen>
all of nixos
<gchristensen>
you might look at SLNOS, "Suck-less NixOS"
hph^ has joined #nixos
<PolarIntersect>
But, like, does Nix depend on systemd?
<PolarIntersect>
or just NixOS?
<gchristensen>
nix does not
<PolarIntersect>
dope
<PolarIntersect>
That was my main concern :D
<PolarIntersect>
Thank you, gchristensen <3
<gchristensen>
yep!
<andi->
What is your requirement? No references to systemd on the systemd? Just another init system?
<PolarIntersect>
Is SLNOS an actual suckless.org project?
<gchristensen>
no
<PolarIntersect>
ah
<PolarIntersect>
andi-: No systemd processes running at all
Mrmaxmeier has quit [Remote host closed the connection]
<PolarIntersect>
or isntalled
<andi->
that should/could be feasible. The other would require a bit of patching in all the different applications that might have a reference to it (dbus,...)
<srid>
Is it possible to enable services (eg: `services.emacs`) from the `nixpkgs-unstable` channel?
<sphalerite>
PolarIntersect: unlikely to be possible while maintaining binary cache compatibility, since a whole bunch of stuff links to udev and udev is provided by systemd. but I presume that won't be much of a concern for you
hiratara has quit [Ping timeout: 245 seconds]
<manveru>
PolarIntersect: there's also not-os, which uses runit instead
inquisitiv3 has quit [Remote host closed the connection]
rschm_ has joined #nixos
rschm has quit [Ping timeout: 248 seconds]
aarvar has quit [Ping timeout: 264 seconds]
contrapumpkin has joined #nixos
<PolarIntersect>
oya? :D
<PolarIntersect>
Do these leverage the packages from nixos or are they completely separate?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<palo>
I have problems with the kubernetes setup. I used 3 computer 1 master 1 node 1 client, ( I changed the kubeconf parameter for every service ) but when I deploy a service (and pods) I can't access the services but the pods. ( the services are in 10.0.0.0/24 but there is no route for that configured and the pods are in 10.1.0.0/24 there is a route for that. I did not touch any of the IP range stuff.
<PolarIntersect>
sphalerite: I mean, rebuilding the binaries is a potential solution to that.
<palo>
any advice ?
<PolarIntersect>
You deployed a client as a server, or it's just your workstation?
<sphalerite>
PolarIntersect: yep. Not sure replacing systemd with eudev for udev purposes would be accepted in nixpkgs itself though
wchresta has quit [Remote host closed the connection]
<Lisanna>
but I passed a sha256 to builtins.fetchTarball <_<
<ben>
Is there a trick to installing jekyll via nix? I tried "nix run nixpkgs.jekyll --command jekyll new my-jekyll-thing" and it failed with some missing gems.
<camsbury>
ah you manage your emacs modes via nix?
<infinisil>
Yup
<camsbury>
I currently bring my emacs packages in through an `emacs.nix`
<camsbury>
but that is pretty cool
<Lisanna>
okay wtf, I added the pinned nixpkgs as a separate jobset, no IFDs at all, and it's still complaining that it's not allowed to access the URI in restricted mode
<Lisanna>
well how on earth is it going to build anything if it can't access anything?
<infinisil>
Lisanna: it can access stuff in NIX_PATH
<Lisanna>
infinisil how is it going to have any hope of building any of the packages in my channel, since the source code for those packages exist on the net?
<Lisanna>
I can't add the sources for EVERYTHING to my NIX_PATH
<Lisanna>
that's insane
<infinisil>
Restricted mode huh..
<Lisanna>
Yes
<Lisanna>
I have a nixpkgs.nix which just does a builtins.fetchTarball on a nixpkgs nixexprs
<Lisanna>
I import the nixpkgs.nix as a jobset but the evaluation fails
<infinisil>
So your problem is that restrict-eval implied being unable to IFD?
<Lisanna>
oh wait hang on, I might be dumb
<Lisanna>
MIGHT be dumb
<infinisil>
We are all dumb sometimes ;)
<Lisanna>
oh, duh, the nix file needs to be a jobset, not the build product of fetchTarball
<Lisanna>
can I configure a recursive product reference within a jobset?
<Lisanna>
I have { nixpkgs-nixexprs; tarball; } as things in my jobset
<Lisanna>
I want to pass the nixpkgs-nixexprs product as an input to the jobset file itself
<Lisanna>
so, recursive
<infinisil>
Never used jobsets, can't help much with that
alexteves_ has joined #nixos
<infinisil>
Oh come on, what the hell is this
<infinisil>
"The option `system.stateVersion' defined in `/home/infinisil/cfg/config/hardware/pc' has been renamed to `system.nixos.stateVersion'."
<infinisil>
But then I change it and I get this error:
<infinisil>
"error: The unique option `system.nixos.stateVersion' is defined multiple times, in `/home/infinisil/cfg/config/hardware/pc' and `/cfg/external/nixpkgs/nixos/modules/rename.nix'."
<infinisil>
-.-
<Lisanna>
OK seriously wtf
<Lisanna>
why is it trying to access that URI at evaluation time
<Lisanna>
I'm not doing any IFDs
matthewbauer has quit [Read error: Connection reset by peer]
<Lisanna>
infinisil allowed-uris wouldn't help if the entire function is just completely disallowed
<gchristensen>
ah indeed
<Lisanna>
gchristensen yeah but then it's not declarative ):
<infinisil>
Yeah, but is the whole function disallowed?
<infinisil>
Or do the docs have a mistake there?
<infinisil>
Because the man page doesn't imply that
<Lisanna>
I want to control the version of nixpkgs from within my own nix expressions
<gchristensen>
infinisil: it is vague, because "This function is not available if restricted evaluation mode is enabled."
<infinisil>
An easy way to find out is to just test it :)
<Lisanna>
I understand the regular limitations of restricted eval mode, and am glad they exist, but blacklisting an entire builtin seems overly harsh. Why is that function so dangerous?
Fare has joined #nixos
<gchristensen>
Lisanna: it executes code as the user calling it, outside of the sandboxing of Nix
aarvar has joined #nixos
<gchristensen>
so it could trigger nasty problems in curl, git, tar, gzip, all as the user calling it without any protections
<infinisil>
Lisanna: Just test if allowed-uris works with it first
<gchristensen>
^ agreed
<Lisanna>
OK, testing
<Lisanna>
"allowed-uris https://"
<infinisil>
You gotta give it full uris
<infinisil>
It's bare string comparison iirc
xcmw has joined #nixos
<Lisanna>
ugh, yep
<infinisil>
And it wouldn't be much of a restricted mode if you could fetch arbitrary stuff tbh..
<gchristensen>
erm
knupfer has joined #nixos
<infinisil>
and allowed-uris is only useful for preselected stuff
<Lisanna>
illegal configuration line 'allowed-uris https://' in '/etc/nix/nix.conf' at /nix/store/d2iv6qnclrr204vga500qk4plflb88fg-hydra-2017-11-21/libexec/hydra/lib/Hydra/Plugin/GitInput.pm line 188.
<infinisil>
Error in the manual eh
<gchristensen>
Lisanna: how did you set it?
<gchristensen>
Lisanna: it is a nix.conf setting not hydra setting
<Lisanna>
I know
<infinisil>
Yeah I don't think this http:// trick works (anymore at least)
<Lisanna>
then that error showed up in the hydra eval error log
<Lisanna>
that's still not a happy solution <_< 'cause now I have to have information about where nixpkgs comes from in two completely seprate locations. honestly I'd rather just pin it directly in hydra
<infinisil>
Make a git clone?
alexteves_ has quit [Remote host closed the connection]
<infinisil>
Then there ain't no fiddling with nix.conf and no downloads
<gchristensen>
then allow everything
<gchristensen>
the restriction and flexibility is up to you
<gchristensen>
it is a good thing for Hydra to default safe
<Lisanna>
The correct solution I'm looking for is quite simply just a fetchurl with an unpack phase, which would be allowed in restricted eval
<infinisil>
and to update a git repo is about the same effort (or even less) than updating nix.conf along with the url you use
<Lisanna>
I think, at least
<infinisil>
Oh, not sure if that's possible with your set up, nvm
<PolarIntersect>
wat
<infinisil>
I'll just shut up, I've never set up hydra