<etherdaemon>
just wondering if anyone knows how to do nested interpolation in nix?
<Ralith>
argh
<Ralith>
something just keeps corrupting my fontconfig cache and breaking terminus
<Ralith>
like multiple times an hour
<Ralith>
wtf
<gchristensen>
etherdaemon: can you provide an examplee?
<etherdaemon>
sure - basically I'm trying to pass in a path - but in order to do that for this particular attribute it must be a string - so I have "${./<relative_path_to_file>/<need to interpolate another variable>.file}"
<Ralith>
I could do a weird dance where I call the expression twice, once to get nixpkgs and again with the overridden version, but that hardly accomplishes the goal of making this graceful
<clever>
Ralith: it should accept a config argument at the top level
phreedom has quit [Ping timeout: 255 seconds]
<Ralith>
clever: yeah, that's what I started with, was hoping for something a bit tidier :/ oh well
phreedom has joined #nixos
<Ralith>
still nice to have the magic callPackage
<etherdaemon>
gchristensen that worked - thank you!
<Ralith>
I wonder how difficult it would be to move nix from xz to zstd
etherdaemon has quit [Quit: Page closed]
<dtz>
not very-- you can specify compression method used for binary stores as a parameter
<mightybyte>
Woah...
<mightybyte>
error: infinite recursion encountered, at undefined position
<dtz>
possibly a few one-off spots in nix or hydra, not sure
<Ralith>
the actual thing I'm trying to accomplish at the end of the day here is move a project that depends on llvm to libc++, and llvm does sanitizer shenanigans when you build with sanitizers, and no way am I making my team give up sanitizer use
<Ralith>
probably I should have built a minimal testcase at some point but oh well
<Ralith>
still would have required 2/3 of the big builds :P
jnoah has joined #nixos
acarrico has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #39782 → inetutils: use platforms.unix per feedback that works w/Darwin too. → https://git.io/vp0BO
<boomshroom>
`building gcc-7.3.0 (buildPhase): NULL);` That doesn't seem right.
<boomshroom>
NVM, it moved on.
<jnoah>
how can one install nix(pkgs?) as a user without sudo on a linux machine?
<boomshroom>
jnoah: if /nix doesn't exist or you don't have permission to create it, namespacing, chroot, or a nonstandard store prefix.
<boomshroom>
jnoah: All three options have major drawbacks.
<clever>
jnoah: if you can get the admin to create an empty /nix and give you ownership, you can then install it without needing sudo or root
<{^_^}>
→ 07c02542 by @grahamc: xmlformat: init at 1.04
<{^_^}>
→ 8cb0252b by @grahamc: Merge pull request #39785 from grahamc/xmlformat-init
<lejonet>
colemickens: I think that is due to there not really being a defined line where they have some type of "handover" :P
<niorrr>
o shit -- maybe it was a jbuilder problem?
<niorrr>
nope
<colemickens>
Hm, okay. I was hoping for an example of something distinctly possible is Disnix. I'll keep poking around :)
<colemickens>
I suspect though that since NixOps more or less meets my needs, that I ought to just stick with it anywaya.
<lejonet>
I haven't been able to find such a line atleast (but I've only read and poked about disnix, never really used it, while I'm actively using nixops)
<{^_^}>
[nixpkgs] @grahamc pushed to release-18.03 « xmlformat: init at 1.04 »: https://git.io/vp00G
<niorrr>
ok so --
<niorrr>
i was suggested earlier to use nix-shell to set up an environment where libraries are present
<niorrr>
which nearly worked
<niorrr>
but i was talking with a friend who uses haskell and apparently it works fine for him to install libraries with nix-env -i
<niorrr>
this doesn't really add up to me, shouldnt he need to use nix-shell?
<colemickens>
Are there any docs on like "quickstart to packaging for NixOS"? I remember there were scripts that would consume an NPM dependency and then making the apporpriate changes in a nixpkgs tree.... is there a similar tool for binaries available via `pip` ?
<Xal>
pypi2nix
<colemickens>
thx
<gchristensen>
colemickens: nice to see you 'round
<Xal>
for most pypi packages, it's enough to do pypi2nix -V 3 -e packageName
<colemickens>
gchristensen: likewise! hope to around a bit more often for a bit, if things going according to plan.
<ryantm>
or more clearly: repology.org thinks only 25% of our packages are outdated.
blonkhart has quit [Quit: WeeChat 1.9.1]
<boomshroom>
ryantm: Interesting website. Not surprised in the slightest to see the AUR with the most packages. If something is available for WINDOWS, it's probably on the AUR!
doyougnu1 has quit [Ping timeout: 248 seconds]
<boomshroom>
Oh no! It looks like Cups is outdated on stable and unstable.
<infinisil>
boomshroom: I'm not sure what to think of those numbers
<infinisil>
Because if we were to include all packages in nixpkgs we'd have also all haskell ones, node ones, and more, which I don't think are counted currently
<ryantm>
Right, we aren't counting them yet, but there is a PR for it.
<samueldr>
yeah, we should probably look into making a *full* list for repology, must break the machine :)
<drakonis>
AUR has package duplication fyi
<drakonis>
lots of git packages
aarvar has joined #nixos
<ryantm>
Probably the fairest way to compare is the non-unique package numbers.
<ryantm>
Though that would hide the usefulness of things like packaging all the Haskell stuff, etc.
<boomshroom>
drakonis: It looks like the website recognizes the same package with multiple versions and has tags for legacy and prerelease packages.
<drakonis>
nice
<samueldr>
hmm, can't seem to do bind mounts using nixos options...
<drakonis>
AUR has a ton of unique packages btw
<drakonis>
24k unique packages
<samueldr>
(got kicked into the recovery shell unceremoniously by a failing mount, even with neededForBoot = false :/)
<drakonis>
above debian even
<samueldr>
there's close to no (zero) friction to contribute to the AUR, so it helps!
<drakonis>
now, i don't know how it picks up whether a package is unique or not
<drakonis>
yes
<samueldr>
this is not necessarily a bad thing
<drakonis>
it isn't always a bad thing
<drakonis>
but in arch's case its a mixed bag
<samueldr>
I was a arch user before I was touched by the light
<drakonis>
i'm ambivalent to arch tbh
<drakonis>
too many myths
<drakonis>
the wiki is really good though
<samueldr>
(if there are people wanting help we'd move to #nixos-chat)
<drakonis>
well, we haven't had anyone ask for help in half an hour so
<samueldr>
curious about the myths, I had been a user for close to ten years
<drakonis>
lots of "arch is minimalism!" or "arch will make you learn unix!"
<samueldr>
yeah, I was only posting this to make sure people wouldn't be scared to cut us off!
<boomshroom>
samueldr: Same. the AUR was by far my favourite part of ArchLinux. The ease with which I could write Nix expressions made it less painful to move away from it. Oh ya, and the Wiki is great for users of any distro!
<semilattice>
Is there a an easy way to "pin" a nixos generation so it won't ever get garbage collected? I'd like to play around with having a few very different setups. I suppose in theory I could just make a gc root to the bootloader entry but that seems like a hack
<drakonis>
AUR's major weakpoint is that there's zero oversight, so anyone can sneak in an update to a big package and nuke some folks
jameshjacksonjr[ has joined #nixos
<drakonis>
boomshroom, come over to #nixos-chat my man
<boomshroom>
semilattice: The only way I can think of off the top of my head is building the generation to a separate profile. Since it'd always be the latest generation of that profile, it shouldn't be GCed.
<semilattice>
Hm... yeah I think that's actually pretty close to the intended use
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #39788 → Aarch32 for master → https://git.io/vp0ga
<{^_^}>
[nixpkgs] @matthewbauer pushed 4 commits to master: https://git.io/vp0go
<{^_^}>
→ f3062702 by @matthewbauer: netbsd.games: cleanup
<{^_^}>
→ 1c86f0cc by @matthewbauer: netbsd: cleanup bootstrapping
<{^_^}>
→ 5c1b3d93 by @matthewbauer: netbsd.games: disable some broken linux games
<niorrr>
am i supposed to have /home/nonrootuser/.nix-defexpr/channels in my NIX_PATH ?
<infinisil>
niorrr: Yea, it's a new thing
<infinisil>
Oh wait
<boomshroom>
niorrr: I don't think so. I think that's just a list of channels to update. Running nix-channel --update reads that file and creates profiles in /nix/var/nix/profiles/per-user/user/.
<niorrr>
there are spots in the wiki which act like its there automatically so i was a bit confused
<niorrr>
or the manual i forget
<boomshroom>
Huh.
<infinisil>
Feel free to add it yourself
<boomshroom>
I wouldn't have noticed since I'm the only user on my nixos machine so I just use the root channel and update it with nixos-rebuild.
<niorrr>
nix seems a bit suited to single users
<niorrr>
would you say its common to be root at all times?
<boomshroom>
niorrr: Absolutely not! The only reason I use the root channel is because it's too much hassle to maintain 2 separate channels and have nixpkgs aliased to nixos.
<boomshroom>
niorrr: Being able to do things without root is one of the major selling points.
<infinisil>
boomshroom: I have abandoned channels entirely
<{^_^}>
→ b9acfb4e by @Ericson2314: treewide: isArm -> isAarch32
<boomshroom>
infinisil: How do you set what version to update the system from?
<{^_^}>
→ 57723e94 by @Ericson2314: Merge remote-tracking branch 'upstream/master' into aarch32
<{^_^}>
→ af55a0c3 by @Ericson2314: Merge pull request #39788 from obsidiansystems/aarch32-for-master
<niorrr>
if you want to maintain a local nixpkgs clone, do you do this through channels?
<infinisil>
boomshroom: git checkout
<infinisil>
niorrr: Nah just git clone and set NIX_PATH to include `nixpkgs=/path/to/nixpkgs`
<boomshroom>
infinisil: Makes sense. I just prefer nixos-rebuild switch --upgrade.
<samueldr>
I have to confess... I never used channels with nixos
<samueldr>
simply because I want to use the same checkout on all my computers, even if there is activity on the channels
<infinisil>
I need a couple custom commits on top of the default nixpkgs channel
<samueldr>
(and also, revert the channel to a known chosen point if needed)
<infinisil>
Ah yeah that's a very good thing too for me, I have the same nixpkgs on all 3 machines for all users
semilattice has quit [Remote host closed the connection]
<niorrr>
ah
<samueldr>
I have my main workstation, work laptop, tests laptop and multimedia cheapy-laptop which I want to synchronize so they can use the cache from my host system to a maximum
<niorrr>
last time i tried doing that and i had a ton of very strange errors that went away when i went back to using default channel @_@
<samueldr>
(I use --build-host so there's almost no downloads once one has downloaded stuff)
<niorrr>
also why are there a few util functions defined in pkgs.
<boomshroom>
samueldr: Distributed builds are delicious.
<niorrr>
it makes it very hard to figure out where they're defined and what they do
<niorrr>
like what the hell is pkgs.recurseIntoAttrs and where is it defined
<samueldr>
(that's a neat trick I learned from here to find out where something is defined)
<niorrr>
my nix-repl just says <<lambda>>
<samueldr>
oh, use nix 2.0's `nix repl`
<niorrr>
@_@
<samueldr>
well, that's what I juste used :)
<niorrr>
i didn't even know that `nix` was a standalone command
<drakonis>
its a recent thing
<niorrr>
i want to love nix but the rabbit hole just gets deeper and deeper and deeper
<drakonis>
subject to change
<samueldr>
the rabbit hole ends niorrr! then you dig some more :)
<samueldr>
(for fun mostly!)
<drakonis>
well, someone gotta do the heavy lifting eyyyy
<niorrr>
i dont think its returning on investment, especially considering i spent all day trying to get ocaml working and ive given up
<drakonis>
ocaml has issues?
<drakonis>
ah right
<drakonis>
did you try nix-shell?
<samueldr>
I was lucky enough that what I needed worked right, otherwise I undestand how frustrating it can be :/
<niorrr>
i was using nix shell which almost worked
<niorrr>
but lwt_ppx wasnt set up on stable correctly afaict
<niorrr>
but it was there on unstable, so i tried making a channel and switching
<drakonis>
i know that the user experience isnt there yet
<niorrr>
and then it gave me some issues because it was trying to use incompatible versions of ocaml together
<drakonis>
there's some really nice criticism levied at nixos
<drakonis>
nix is ahead of the curve, but the folks that know their stuff haven't walked in the shoes of mortals
<niorrr>
also for some reason ocamlPackages_4_04+ isn't exported even though its definitely defined in top-level/ocaml-packages.nix
<niorrr>
i wonder if thats intentional
<drakonis>
yes these don't show up
aither has quit [Ping timeout: 256 seconds]
niorrr has quit [Quit: WeeChat 2.0]
snajpa has quit [Ping timeout: 248 seconds]
snajpa has joined #nixos
niorrr has joined #nixos
<niorrr>
bleh bleh bleh
<drakonis>
we need more humans in the community
<drakonis>
can't just have the know-it-alls
<niorrr>
if you add nix.nixPath = [ ... ] to your configuration.nix, it replaces the whole path instead of appending
<niorrr>
i guess that makes sense,,,
<boomshroom>
drakonis: Do you know any other community that complains that its members are too smart?
<drakonis>
hmm
<drakonis>
maybe the jackasses over lesswrong?
<drakonis>
an target of mockery and derision
aither has joined #nixos
<infinisil>
niorrr: You can use `nix.nixPath = options.nix.nixPath.default ++ [ ... ];` to append
rosa has joined #nixos
<infinisil>
niorrr: you need to add "options" to the argument list at the top for that
<drakonis>
what we need are people that can help us improve the user experience with everything that entails
spear2 has joined #nixos
<drakonis>
its still not there yet
<infinisil>
We need somebody who can finish the nix 2.0 interface
<infinisil>
Multiple people preferably
jackdk has quit [Ping timeout: 240 seconds]
<drakonis>
can nix 2.0 have additional functionality added through plugins?
<infinisil>
No
<drakonis>
new commands and such
<infinisil>
Nope
<drakonis>
rip
<drakonis>
gotta have that at some point
<infinisil>
Nix 2.0 needs man pages for the new nix commands first
jackdk has joined #nixos
<infinisil>
I shouldn't really complain, because I won't be the one who does the work
rosa has quit [Client Quit]
<samueldr>
uh, nix 2.0 has a plugin thing
* samueldr
looks up the manual
<samueldr>
plugin-files
<samueldr>
A list of plugin files to be loaded by Nix. Each of these files will be dlopened by Nix, allowing them to affect execution through static initialization. In particular, these plugins may construct static instances of RegisterPrimOp to add new primops or constants to the expression language, RegisterStoreImplementation to add new store implementations, RegisterCommand to add new subcommands to the nix command, and RegisterSetting to add new nix
<samueldr>
config settings. See the constructors for those types for more details.
<samueldr>
so, yes, drakonis, it should be possible to add functionality to nix 2.0 through plugins
rosa has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #39790 → GNUs on Darwin → https://git.io/vp0ac
<infinisil>
Whoa
<infinisil>
I stand corrected
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #39782 → inetutils: use platforms.unix per feedback that works w/Darwin too. → https://git.io/vp0BO
<samueldr>
*I* read the release notes :)
<boomshroom>
samueldr: First thing I'd do is make a help command that does the same thing as the --help flag.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
boomshroom: I double dog dare ya, do it :)
<boomshroom>
samueldr: It's so disorienting to add -- before help but not any other command.
Ross has quit [Ping timeout: 240 seconds]
<samueldr>
well, it's not `nix build help`, but `nix build --help` :/
<infinisil>
Tbh even with your description I have still zero clue on how I would add such a plugin
<boomshroom>
samueldr: But it's still nix build, nix log, nix run, but not nix help?
Ross has joined #nixos
<drakonis>
well then
<drakonis>
that'll be good
<samueldr>
tbh, that's all that's documented in the manual, it must probably require knowledge about how dlopen'd plugins are made
<drakonis>
there's a lot to be gotten from that
<boomshroom>
I'd also rather do nix help build than nix build --help.
<infinisil>
I think zsh can do multi-word aliases
<boomshroom>
infinisil: I wonder if fish can do the same thing. If so, that'd probably be easier.
<infinisil>
Well I may be mistaken again, I can't find where I read that zsh supports multi-word aliasse
<drakonis>
there's a lot of mileage to be acquired from having nix plugins now
<boomshroom>
Another plugin I wouldn't mind would be nix test to build a package, run its tests, don't link the output, and display nix log if anything failed.
<boomshroom>
Oh, and a way to install to nix-env through nix 2.
<drakonis>
yes
<drakonis>
also how do you install plugins into nix 2?
<drakonis>
also an important plugin
<drakonis>
home management
colemickens has quit [Ping timeout: 260 seconds]
rosa has quit [Quit: rosa]
<infinisil>
drakonis: home-manager?
<drakonis>
yeh
<infinisil>
I think it would be pretty hard to implement this as such a plugin
<boomshroom>
drakonis: To prove that I can use multiple languages to manage NixOS. Once Guix is working, then we can get something like a Haskell DSL that can also work.
<az`>
I use guix - it's beautiful, and it has very helpful community...
<drakonis>
hmm, i see
<ryantm>
drakonis: isn't there tons of reasons why everyone should want guix to work?
<drakonis>
guix on nix though?
<az`>
scheme
<drakonis>
they have a differently named store btw
<drakonis>
same format though
<iqubic>
guix on nix seems to be a stupid thing to want.
<niorrr>
maybe i should be launching emacs from within nix-shell
<niorrr>
i dont know anymore
<ryantm>
What does "on nix" mean?
<drakonis>
hmm, they have an interesting stuff
<boomshroom>
iqubic: It'
<drakonis>
some fairly interesting stuff right there, also musl
<iqubic>
It's basically like saying "I love nix, but I want to use guile as the DSL instead."
<boomshroom>
infinisil: Nix actually seems similar to elm in that they're both full programming languages intended to used in a space that usually uses declarative languages. This works because functional languages are closely related to declarative.
<infinisil>
drakonis: That is indeed nice and nix could very well use such a command
<drakonis>
there's 12 or so lang2nix packages that could be rolled into a single import command
<drakonis>
could be nice for eliminating the need for maintaining the package attributes
<infinisil>
Yeah, but python3 and python2 packages are built by hydra, also haskellPackages and others
<drakonis>
hmm, i didn't know
<drakonis>
well, keep those around but have the ability to import those packages
<boomshroom>
Or even better: `nix import crate xargo`
rosa has quit [Quit: rosa]
<drakonis>
yes import crate is better
<drakonis>
there seems to be an central repository
<infinisil>
A big advantage of having every single package in nixpkgs like with Haskell is that everything uses the same dependency, will reduce closure size
<drakonis>
well its alright
<boomshroom>
But that will only work when Cargo.lock files get pushed to crates.io. They recently made it optional, but it's not good enough yet to use directly for nix.
<infinisil>
Eventually we'll probably also have all rust crates in nixpkgs like with Haskell
<drakonis>
but being able to import and install language packages without depending on nixpkgs is useful
<{^_^}>
→ 0c3efb9b by @Ericson2314: openssl: Support iOS cross compilation (in theory)
<{^_^}>
→ 9a845de8 by @Ericson2314: lib/systems: Update iOS examples
<{^_^}>
→ d350a444 by @Ericson2314: Merge pull request #39794 from obsidiansystems/ios-examples
trillpoli[m] has joined #nixos
sir_guy_carleton has quit [Quit: Leaving]
<boomshroom>
Hmm... Guix transitively depends on scheme-bytestructures, but I can't see to find how to build that.
MercurialAlchemi has joined #nixos
ryantrinkle has quit [Ping timeout: 268 seconds]
wchresta has joined #nixos
ilyaigpetrov has joined #nixos
<rszibele[m]>
Anyone else have a Vega64? Which kernel do you use? I've been using linuxPackages_4_15, which has been working really well, but it now seems to be missing on nixos-unstable: error: attribute 'linuxPackages_4_15' missing, at /etc/nixos/configuration.nix:17:25
<rszibele[m]>
(use '--show-trace' to show detailed location information)
<teto1>
is it possible to specify the kernel with nixops ? I set boot.kernelPackages = pkgs.linuxPackages_mptcp; in the logical config but it doesn't seem to have any effect.
tertle||eltret has quit [Quit: Connection closed for inactivity]
spear2 has quit [Remote host closed the connection]
<{^_^}>
→ 70b16579 by @xeji: Merge pull request #39768 from r-ryantm/auto-update/goxel
guillaume has joined #nixos
<guillaume>
Hi. My computer rebooted during a `nixos-rebuild switch`. Is this a new feature which reboot if there is a fundamental change (such as kernel version) or did I missed something obvious? (nixos-unstable)
MP2E has quit [Remote host closed the connection]
<tilpner>
Huh. Did you change anything, or was it just a channel update?
<guillaume>
the locale part is clearly the same as mine (well, en_US.UTF-8 instead, but yes)
olto has joined #nixos
<guillaume>
tilpner: I'l do another switch with redirection to get the full log. BRB.
<tilpner>
Good idea
guillaume has quit [Quit: Lost terminal]
colemickens has quit [Quit: Page closed]
logzet has joined #nixos
guillaume has joined #nixos
<guillaume>
tilpner: Well, it is funny, because now it did not reboot, instead I landed on tty1 without any keyboard (exactly as the bug describe)
__Sander__ has joined #nixos
<guillaume>
tilpner: bug #39791 updated with my observations.
<tilpner>
guillaume - Thanks. Can you try nixos-rebuild boot, then rebooting? That should get you over the faulty activation
<lejonet>
Anyone that has tried adding extraConfig to a kernel package for a machine deployed by nixops and managed to get it to pick up the change? I'm trying to add https://paste.pound-python.org/show/k5Sw7Dr9y2dJvIUc7FQu/ and I have boot.kernelPackages = pkgs.linuxPackages_copperhead_lts; set but adding that pkgs override changes nothing...
<guillaume>
tilpner: actually, I was able to boot to the new entry, however it leads to a system with broken locales.
<lejonet>
logically it should compile the kernel, with the extraConfig, and then deploy it, but that doesn't seem to happen, regardless of where I set the override
orivej has quit [Ping timeout: 265 seconds]
az` has quit [Ping timeout: 240 seconds]
zarel has joined #nixos
<steveeJ>
copumpkin: are you still pursuing the abstraction of services? I'd be highly interested in working on that too
<steveeJ>
copumpkin: I think it could be extremely useful to generate service declarations to be used with tools such as docker-compose or kubectl
<zarel>
hello folks
<{^_^}>
[nixpkgs] @tilpner opened pull request #39801 → goxel: don't save imgui.ini to working directory → https://git.io/vp0M4
<{^_^}>
[nixpkgs] @vcunat pushed 10 commits to release-18.03: https://git.io/vp0M0
<{^_^}>
→ d6cfc781 by @shlevy: libgpg-error: 1.27 -> 1.28
<{^_^}>
→ a0bd25dd by @abbradar: libgpg-error: fix on ARM
<{^_^}>
→ 2f680ffb by @primeos: gpgme: 1.10.0 -> 1.11.1
<tilpner>
guillaume - That's, uhm, progress? At least the issue carries a sign-post saying "Look for changes to locale things"
<guillaume>
tilpner: sorry I cannot do more (for now ;)
zarel has quit [Ping timeout: 248 seconds]
Ariakenom has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @lheckemann to release-18.03 « nixos-install manual: remove --chroot option »: https://git.io/vp0Dw
<foobarok>
Hey, guys! I want to create a new package (nixpkgs), but I get an error in the build phase. Can anyone advise how I can track down and fix it? I can build this software for Debian, for example. Since cmake is used, I cannot check the makefiles directly.
<Taneb>
I'm having a weird issue with cabal2nix (version 2.9). cabal2nix cabal://clash-prelude works fine, but doing it from a local copy or via git doesn't
s33se has joined #nixos
<joko>
foobarok: well, don't you have any logs to show?
xy2_ has joined #nixos
<joko>
Anyone using pcmanfm or thunar with cifs shares? I am wondering how to make this work. I thought that just adding gvfs would make it work, but nothing so far: pcmanfm says "operation not supported" if I type "smb://myshare"
iyzsong has quit [Ping timeout: 256 seconds]
alex`` has joined #nixos
<stammon>
Hi there. Has anyone by chance ever got eclim working on nixos?
fendor has joined #nixos
iyzsong has joined #nixos
unkn has joined #nixos
<fendor>
hi, I opened an issue about stack, and I received the answer that it seems to be an issue with NixOs, or rather not an issue at all. Can someone look over my issue and tell me, if he is right? https://github.com/commercialhaskell/stack/issues/3961
foobarok_ has joined #nixos
foobarok has quit [Quit: Page closed]
iyzsong has quit [Ping timeout: 264 seconds]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<foobarok_>
[ 30%] Building CXX object FeLib/CMakeFiles/FeLib.dir/Source/whandler.cpp.o
<mojjo>
hi! does anyone have experience with nixos + jupyter notebook? I installed it via `nix-env -iA nixos.python36Packages.notebook` but I keep getting the error: `...python3-3.6.4/bin/python3.6m: No module named ipykernel_launcher`.. when starting the jupyter kernel.. any suggestions?
lord| has quit [Ping timeout: 240 seconds]
<lassulus>
mojjo: can you try running it inside this nix-shell? nix-shell -p 'python3Packages.python.withPackages (p: [ p.notebook ])'
<{^_^}>
→ 8ab8d9cb by @grahamc: Add user channels to the default nix path
<{^_^}>
→ 5d03cce7 by @grahamc: Merge pull request #38351 from grahamc/user-channels
<Taneb>
How often does the haskellPackages list in stable update?
<srhb>
Taneb: Easiest way to check is probably git log --grep "package set update" pkgs/development/haskell-modules/hackage-packages.nix
mojjo has quit [Ping timeout: 240 seconds]
lord| has joined #nixos
daveo has joined #nixos
<Taneb>
srhb: ah, master updates a lot but 18.03 a lot less (as I'd expect if I put a moment of thought into it)
<srhb>
Myeah, I don't know quite what to expect to be honest.
<Taneb>
I have the issue that the version of cabal2nix on 18.03 doesn't seem to work for a bunch of packages when not using the cabal:// scheme (including cabal2nix itself, I think)
<srhb>
Taneb: Known bug? Perhaps we should bump it in the overrides.
<Taneb>
srhb: it's been fixed as of cabal2nix-2.9.2
<nick_l>
joehh: something that always works is copying the module and renaming it to myvsftpd.
<nick_l>
joehh: that's the only solution if you cannot override the package expression being used.
<nick_l>
joehh: or rather a simple method, not the only one.
<ThatPako>
trying to figure out why I'm on an old version of pandoc-types. Is 1.17.3.1 just the latest one available? Or do I have to upgrade?
<nick_l>
joehh: via overrideAttrs you can do quite a lot.
psychic1 has joined #nixos
Ariakenom has quit [Quit: Leaving]
<psychic1>
Can anyone help me understand how to set in NIX_PATH both `nixpkgs` and `nixpkgs-overlays`?
<psychic1>
I didn't find a mention of this on the nix manual.
<psychic1>
I tried separating the with a semicolon but it did not work
<psychic1>
the=them
<srhb>
ThatPako: That is the version in 18.03, yes
<srhb>
psychic1: It's a colon.
<psychic1>
Ah!
<psychic1>
You're right, my bad!
<psychic1>
Thanks!
<ThatPako>
srhb: seems like that's missing some crucial stuff (semigroup instances for Pandoc and Meta). Is moving to unstable "stable enough" or am I stuck with that version?
<nick_l>
joehh: it would be pretty freaking awesome if this would work.
<srhb>
ThatPako: I don't feel comfortable defining "stable enough" for you :-)
<ThatPako>
I'm coming from arch so as long as it's as stable as arch with the AUR I'm fine :p
<srhb>
ThatPako: You don't need to switch over your entire system just to have access to it though. You could just add it for your project or whatever.
<ThatPako>
srhb: I can use the unstable channel selectively for a single project? wow
<srhb>
{ pkgs ? import (fetchTarbal) {} } can fetch any revision you want.
<srhb>
Feeding it url and revision and such to lock it down
<ThatPako>
hm...
<ThatPako>
won't that download the entirety of nixpkgs again just for that project?
<srhb>
Whatever is needed for it, yes. Otherwise you can make overrides feeding your nixpkgs just the changes you care about
<srhb>
That looks like
<srhb>
let overlays = [ (self: super: ... my overlays ... ) ]; in { pkgs ? import <nixpkgs> { inherit overlays; }:
<ThatPako>
that sounds like an interesting approach
<srhb>
Works very well. :)
<srhb>
I have to go to work now, good luck.
lord| has quit [Quit: WeeChat 2.1]
<psychic1>
Guys, a small question: I'm setting up my nix configuration within a non-nixos distribution. What I'm aiming for is to have a pinned nixpkgs with overlays.
<psychic1>
I currently achieved this, but I had to set NIX_PKGS to point at my nixpkgs and my overlays
<psychic1>
Is there an alternative way where I don't have to set an environment variable? But instead point the commands at the pinned nixpkgs with my overlays?
<psychic1>
It seems like every comand does it differently, nix-build, nix-env, nix-shell etc. am I missing something?
<psychic1>
Also, is it possible to have a nixpkgs that already contains the overlays? Like take a pinned nixpkgs, combine it with overlays to have a new nixpkgs, where you only have to specify it? (without specifying any overlays, since it already has them embedded)
<ThatPako>
how does one override a haskell package with overlays?
<tilpner>
psychic1 - nix-build and nix-shell use NIX_PATH, and you can make nix-env use NIX_PATH to
<psychic1>
tilpner: Yes, I'm already using NIX_PATH so I understand that. But I would like, if possible, to remove being dependent on an env var being set, I guess I can use the -I flag for every command?
<tilpner>
psychic1 - I'm not aware of a way to go completely without NIX_PATH. You need it to find <nixpkgs>
<psychic1>
I understand. Thanks for the link but I already went over it :)
<psychic1>
I guess I'll settle for environment variable or symlinks to the standard locations.
Freneticks has quit [Quit: Leaving]
<nick_l>
What happened to goPackages.gohai? 5089f8808e27e67636df1719be2a17f947e0579b introduced it.
<sphalerite>
MichaelRaskin: found https://matrix.org/docs/projects/client/mm.html the other day, looks like a client that might be more to your liking. In case you didn't already know about it :)
<nick_l>
I would like to make gohai available as a systemPackage, but when I search for it via ag nothing is returned in master anymore.
<MichaelRaskin>
sphalerite: thanks for mentioning, I have indeed seen it (I have skimmed the entire Try Matrix page), but it doesn't pay attention to backlog, and backlog is the only reason to prefer Matrix over XMPP/Bitlbee mix for me.
<sphalerite>
ah ok
<MichaelRaskin>
And I am data-flow-control absolutist, not minimalism absolutist, to be honest
<sphalerite>
does MAM still not work?
<MichaelRaskin>
This is a nickname for one of server-side-history XEPs?
<sphalerite>
yeah
<sphalerite>
message archive management, I think it was
<MichaelRaskin>
I think last time I tried to setup a full blown chain of support with carbons and server-side logs and log fetching, I found no idea what combination of server, Android client, pipe-controllable Linux client, and a desktop client — X11 or Windows — to recommend to others — I would need
fendor has quit [Remote host closed the connection]
<sphalerite>
nick_l: https://github.com/NixOS/nixpkgs/pull/16017 seems to have removed go-packages.nix. You can probably extract gohai from the removed file and add it back as a separate package, like one of the many commits in that PR
<MichaelRaskin>
Apparently, Matrix bridges are rising faster than XMPP bridges ever did, so I am trying to make Matrix work
<sphalerite>
MichaelRaskin: yeah I don't really know any satisfactory desktop clients. Conversations is great for android, but for desktop there's… gajim I guess, and I'm not a big fan. It's a bit of a mess.
<sphalerite>
Or it was, last time I checked. To be fair, that's over a year ago now I think
<MichaelRaskin>
Well, Miranda or Pidgin or Psi… question of taste, too
<sphalerite>
none of those supported MAM last I checked
<MichaelRaskin>
So I want to see if Matrix with quasi-mandatory backlog management support is something to welcome as a first-class thing on my system
<MichaelRaskin>
Also, if it manages logs _well_, Skype bridge and Telegram bridge could be set up…
justanotheruser has joined #nixos
jperras has joined #nixos
shapr has quit [Ping timeout: 276 seconds]
<sphalerite>
yeah, I think the biggest problem with XMPP is that it's so many little bits and an XMPP client ≠ a useful XMPP client for typical modern IM use
<MichaelRaskin>
Well, I have fully unified 95% of my XMPP use and of my IRC use
<MichaelRaskin>
But my XMPP setup leads to some messages only available in the Conversations logs, but not in my main mcabber logs
clever has quit [Ping timeout: 248 seconds]
<ThatPako>
Anything regarding my haskellPackages overlay thing?
<{^_^}>
→ e6f9103a by R. RyanTM: eclib: 20171002 -> 20171219
<{^_^}>
→ f06e7354 by @7c6f434c: Merge pull request #39779 from r-ryantm/auto-update/eclib
<sphalerite>
ThatPako: you're replacing the entirety of haskellPackages with a set containing just those things that you put there
<ThatPako>
oof
<sphalerite>
you'll need something like haskellPackages = super.haskellPackages // { … }
MercurialAlchemi has quit [Ping timeout: 264 seconds]
blankhart has quit [Ping timeout: 260 seconds]
<ThatPako>
sphalerite: after running `cabal run` it still complains about pandoc 2.2 not being available (only 2.0.6, which is the one in 18.03)
<sphalerite>
Hm, odd. Maybe if you add inherit (self.haskellPackages) pandoc; in the top level of the overlay? (just a blind guess and it probably won't help though)
orivej has joined #nixos
<ThatPako>
for some reason running `nix-shell` after editing the file it won't fetch the new pandoc version :/
<ryantm>
Is perl-packages.nix automatically generated?
<jtojnar>
ryantm: are you running the builds for nixpkgs-update in a sandbox?
<{^_^}>
→ acdbf504 by R. RyanTM: ipmiutil: 3.0.9 -> 3.1.0
<{^_^}>
→ f33aeab0 by @7c6f434c: Merge pull request #39761 from r-ryantm/auto-update/ipmiutil
Henson has joined #nixos
<Henson>
hi everyone, I'm new to Nix and am using the package manager to build a Python application. I had difficulty getting the python27Packages.Nuitka package to work, but figure out how to get it to work by altering the nuitka wrapper script. Is this something I should notify somebody about?
<{^_^}>
→ 913ec873 by @WilliButz: prometheus-nginx-exporter: 20161107 -> 0.1.0
<{^_^}>
→ de60146f by @WilliButz: nixos/promtheus-nginx-exporter: update module
blankhart has joined #nixos
MercurialAlchemi has joined #nixos
tilpner has quit [Quit: :wq]
obadz has joined #nixos
tilpner has joined #nixos
<[Leary]>
Is there some way to load up in nix repl the value of pkgs that gets passed in when my system is built? It'd be nice to be able to inspect and play with its contents.
<steveeJ>
datakurre: hey, I've just stumbled upon your k8s sandbox repo (https://github.com/datakurre/nixops-kubernetes-sandbox) and I'm wondering if "kubectl get nodes" should display all nodes after deployment, when run from the master
<clever>
[Leary]: nix repl '<nixpkgs/nixos>' and then config._modules.args.pkgs
<nick_l>
Henson: I would find it useful if you would send it to the mailing list, but you can also report an issue.
<nick_l>
Henson: but I have no interest in that specific package myself.
<Henson>
nick_l: to the nix-devel mailing list? Would the mailing list be a better first choice than reporting an issue?
<steveeJ>
clever: sorry to bother you but I forgot to bookmark the links you sent me last time. please link me to the code snippet again where you use an ipxe boot for automatically installing a machine with nixos
jluttine has quit [Quit: WeeChat 2.0]
joehh has joined #nixos
erasmas has joined #nixos
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #39813 → bluez: add tools to output that we were building anyway → https://git.io/vpEL4
joehh has quit [Ping timeout: 255 seconds]
jluttine has joined #nixos
MercurialAlchemi has quit [Ping timeout: 256 seconds]
<goibhniu>
Hi, I'm trying to review https://github.com/NixOS/nixpkgs/pull/39389, a kernel module for a satellite tv card, and I believe there's a problem with module dependencies. `modprobe videobuf2-dvb` shows "videobuf2_dvb: Unknown symbol dvb_create_media_graph (err 0)" in dmesg.
<goibhniu>
Is there a way to figure out which module has that symbol? I tried running `nm` on various modules, but haven't found anything yet.
ryantrinkle has joined #nixos
aarvar has quit [Ping timeout: 248 seconds]
<Dezgeg>
usually the kernel build system should run depmod to figure out the dependencies
obadz- has joined #nixos
<tilpner>
Does anyone have *.local mDNS resolution working?
<goibhniu>
hrm, can I use depmod to determine what has that symbol?
<Dezgeg>
depmod --verbose sounds like it
obadz has quit [Ping timeout: 248 seconds]
obadz- is now known as obadz
<goibhniu>
thanks!
MercurialAlchemi has joined #nixos
mmlb has quit [Ping timeout: 256 seconds]
mmlb has joined #nixos
nschoe has joined #nixos
<goibhniu>
excellent, it looks like I want to load a module called dvb-core. I see there's a dvb-core.ko, which is from the package I'm testing (/nix/store/7ibbyaav87abxqwg61wxvdr06khflv3m-tbs-2018.04.18-4.14.35/lib/modules/4.14.35/kernel/drivers/media/dvb-core/dvb-core.ko) and a dvb-core.ko.xz from the kernel(/nix/store/qjvh2krn14g5nva4adrhp1y98y3pzi9i-linux-4.14.35/lib/modules/4.14.35/kernel/drivers/media/dvb-core/dvb-core.ko.xz)
<goibhniu>
modinfo points at the kernel version (with .xz)
<goibhniu>
could that be the problem?
<[Leary]>
I do so far as I know, tilpner, though I only use it to ssh between my desktop and my laptop. I fired up my laptop to check, and avahi-browse lists both machines, each of which I can see mac addresses for with getent hosts.
<nschoe>
Hi all, I'm trying to make a simple shell.nix file to use "gst_all_1.gstreamer", but I want this taken from my "unstable" channel. I suppose I mus tchange the first line "with import <nixpkgs> {};" but what should I import instead?
<goibhniu>
maybe I can just xz compress it, and it will take priority over the kernel one
<Dezgeg>
I doubt that helps
<goibhniu>
ah, thanks ... that would have taken ages to build and check :D ... any idea what I can do?
<fadenb>
I just did a nix-channel --update and a nixos-rebuild switch. Now my mongodb segfaults at start :/
<[Leary]>
tilpner: Whatever's default on my desktop; I don't have any networking options set other than a few firewall things. On my laptop I just have networking.wireless.enable = true and set names/keys under wireless.networks. I don't think that uses nm, just wpa_supplicant or whatever.
<fadenb>
Anyone else experienced something like that?
silk_labo_ has joined #nixos
mekeor has joined #nixos
<clever>
[Leary]: what does `systemctl status wpa_supplicant` say?
<Dezgeg>
I guess somehow this package needs to tell depmod that its version of dvb-core takes precedence of the kernel one
<{^_^}>
[nixpkgs] @matthewbauer pushed to staging « unix-tools: install man pages »: https://git.io/vpEZk
<clever>
Dezgeg: i'm guessing meta.priority so the nix buildEnv of modules overwrites correctly before the depmod runs?
<Dezgeg>
that doesn't affect the database which depmod / modprobe uses, I think
<clever>
Dezgeg: if there is only one dvb-core.ko at the time depmod is ran, it wont see the kernel version
<tilpner>
samueldr - That's puzzling. I have all those set to true too :/
<[Leary]>
clever: loaded; enabled; active; etc.
<clever>
[Leary]: what about its log output?
<goibhniu>
I guess I should give it a shot anyway
Intensity has quit [Ping timeout: 260 seconds]
<samueldr>
tilpner: I sometimes have/had troubles where I needed to restart nscd for resolution to work
<samueldr>
never tracked down why exactly
<tilpner>
I'll try that, but I even rebooted to be sure
<tilpner>
Oh
<alaricsp>
Hello folks! I'm on nixos 17.09, which seems to ship zfs 0.7.6. For reasons too tedious to explain, I need to be on zfs 0.6.* in my kernel - is there a way to make nixos do this, or do I need to just roll back to an older nixos?
swflint has quit [Ping timeout: 268 seconds]
AluisioASG has quit [Ping timeout: 256 seconds]
norfumpit has quit [Ping timeout: 268 seconds]
<[Leary]>
clever: Nothing interesting? Successfully initialised; associated with router; key negotionation completed; connection completed, all that good WPA stuff.
silk_labo_ has quit [Ping timeout: 268 seconds]
wangoe has joined #nixos
halfbit has joined #nixos
hyper_ch2 has quit [Ping timeout: 260 seconds]
nick_l has quit [Ping timeout: 260 seconds]
vcunat has joined #nixos
thblt has quit [Remote host closed the connection]
thblt has joined #nixos
mekeor has left #nixos ["digital revolution = cryptoanarchism + cybercommunism"]
ndrei- has joined #nixos
semilattice has quit [Remote host closed the connection]
ndrei- has quit [Remote host closed the connection]
<clever>
Myrl-saki: thats just a dumb list of derivations and will fail the same way
<clever>
Myrl-saki: you need to create a new derivation with mkDerivation or runCommand, which depends on gcc (mkDerivation already does by default), and add things to its buildInputs
<tmplt>
I request some help with a C++ library (geant4). When linking to two specific so-files, there are undefined references to expf@GLIBC_2.27 and logf@GLIBC_2.27. I tried fixing it by overriding the derivation and specify `NIX_CFLAGS_COMPILE = "-lm";` and rebuilding, but it didn't work. Am I going about this the wrong way?
<WilliamHamilton>
I get the error `Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'`
<{^_^}>
[nixpkgs] @xeji pushed commit from @bgamari to release-18.03 « notmuch: 0.26.1 -> 0.26.2 »: https://git.io/vpERP
jtojnar has quit [Remote host closed the connection]
<lejonet>
WilliamHamilton: I'm not sure how fonts are handled in nixos, but there might be some env var that steam-run adheres to and you just have to create a wrapper that sets that
<{^_^}>
→ 187e2237 by @peterhoeg: unifi-testing: init at 5.8.14
<{^_^}>
→ ace51a4f by @peterhoeg: unifi-lts: 5.6.36 -> 5.6.37
<{^_^}>
→ 9e37f7ed by @peterhoeg: unifi-stable: 5.7.20 -> 5.7.23
jperras has quit [Quit: WeeChat 2.1]
<copumpkin>
steveeJ: not actively, but I did kinda like the approach I described in that one PR about docker
Lisanna has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
asuryawanshi has joined #nixos
<Lisanna>
Hey, I have an app that wants to directly invoke gcc, but I know that you can't just use 'gcc' from nixpkgs out of the box. What should I do?
<{^_^}>
→ 6dbc010a by @matthiasbeyer: bat: init at 0.2.0
<{^_^}>
→ ec95624d by @xeji: Merge pull request #39748 from matthiasbeyer/add-bat
<colemickens>
(I'm currently struggling as it bundles it's own pip/wheel that are a bit oo old to install azure-cli currently.)
<s33se>
package buildbot is broken on aarch64 because some tests are aborted with TimeoutErrors
<s33se>
with docheck=false you can work around that problem
<s33se>
is that a good strategy?
hgost has left #nixos [#nixos]
logzet has quit [Remote host closed the connection]
<lejonet>
Lisanna: if its during installation, just adding gcc to buildInputs or so should work, if its while its running, I dunno what standard practice is, but ensuring that it has gcc in its path and it should just work
rauno has quit [Ping timeout: 260 seconds]
<Lisanna>
lejonet no, it's during runtime.
<lejonet>
Lisanna: Using wrapProgram to give it a wrapper with a path that includes gcc and you should be fine
Rusty1_ has joined #nixos
<Lisanna>
am I wrong in thinking that I can't just invoke "gcc" directly? I'm pretty sure I remember reading in here that that doesn't work - you need to do a nix-shell or something to get a script to source to get that to work.
<lejonet>
Well, if you want all that goes with it, like includes and such, you probably need to do a bit more, nix-shell -p stdenv iirc is what you need for getting a "build-essential" equivalence
wchresta has quit [Ping timeout: 255 seconds]
ThatPako has quit [Quit: Lost terminal]
knupfer has joined #nixos
<lejonet>
so maybe a wrapper that invokes nix-shell -p stdenv and then runs the program would be it
<lejonet>
There is also a section called "USE AS A #!-INTERPRENTER" in nix-shells manpage, that is probably a good thing to read through if you want to experiment with that
wchresta has joined #nixos
<lejonet>
and I guess you could do #! /usr/bin/env nix-shell #! nix-shell -i bash -p stdenv and then write the wrapper script that then invokes the application, and then it should have the env it needs to compile stuff with gcc
obadz- has joined #nixos
unkn has joined #nixos
obadz has quit [Ping timeout: 240 seconds]
obadz- is now known as obadz
rauno has joined #nixos
<lejonet>
Hmm, if a package does a pkgs.writeText to a file, could I do a writeText to the same file, to overwrite it?
<clever>
lejonet: nope
<lejonet>
clever: damn, thought so, but still :(
<clever>
lejonet: each call to writeText returns a unique storepath, based on the contents
<clever>
lejonet: and then you have to pass that path to whatever you want reading it
<lejonet>
clever: :( libvirtd service hardcodes "libvirtd" as the group for the sockets, and I want to use a LDAP group for it instead
<clever>
where exactly is it hard-coded?
asuryawanshi has quit [Remote host closed the connection]
<nschoe>
Anybody on where the gstreamer opus plugins should come from?
<lejonet>
so now to figure out if I can tell libvirt where the qemu binary is without having to resort to "violence" (it seems to have some standard value it uses when doing a migration, because I know that the running of VMs with qemu should work)
<clever>
gst_all_1.gst-plugins-bad.out 23,088 x /nix/store/43szlakcix305r4rwr45v0sxpfb939a9-gst-plugins-bad-1.10.4/lib/gstreamer-1.0/libgstopusparse.so
<clever>
nschoe: it appears to be in plugins-bad
shiver has quit [Ping timeout: 240 seconds]
<nschoe>
clever, oh? Could you tell me how you found this? I have just spent almsot 2 hours on this problem, trying not to come here asking ^^
shiver has joined #nixos
<clever>
nschoe: [clever@amd-nixos:~]$ nix-locate opus | grep gstream
<nschoe>
ah! I did not know about this, thanks.
<clever>
nschoe: its part of the nix-index package
<teto1>
lejonet probably you can do sthg like libvirt.qemu = your_qemu_package
<nschoe>
clever, although this is not the plugin file for the opus plugin. I've just confirmed with the folks on #gstreamer.
<nschoe>
clever, when I install this plugins-bad (as well as all other plugins I could find btw :P), `gst-inspect-1.0 opus` returns me with no results, meaning it doesn't find the opus plugin :/
<clever>
nschoe: but it can find opusparse ?
<lejonet>
teto1: well, this seems to be related to migration only, it seems to do some checks (probably capability checks) on the target host before hand, and that seems to use another path to qemu than the one it uses to run machines that are there already
<teto1>
lejonet nixops has a PR pending to deploy on remote libvirt so probably some people there have experienced this
<lejonet>
teto1: oh, neat, I thought it already could do that
<clever>
nschoe: ah, then nixpkgs may not have enabled opus
wangoe has quit [Quit: WeeChat 1.9.1]
<nschoe>
clever, this is what I am trying to confirm, and maybe see how I can change this.
zybell has quit [Remote host closed the connection]
dbmikus has joined #nixos
zybell has joined #nixos
<lejonet>
teto1: yep, the actual running of machines uses "/run/libvirt/niux-emulators/qemu-kvm" instead of /usr/bin/qemu-system-x86_64, so must be migration related only
<Zgrokl>
lejonet, i just want my keyboard to be able to modify the nix install script
<Zgrokl>
i can't add my ip
<Zgrokl>
loadkeys ch doesn't work
<Zgrokl>
i need to be able to [{}]
<lejonet>
Zgrokl: you trying to install nixos?
<Zgrokl>
lejonet, yes
<tilpner>
If you have the graphical ISO, you want setxkbmap
<Zgrokl>
only terminal
<lejonet>
Zgrokl: the annoying part is that the names you use with loadkeys usually differ greatly from what you'd use with setxkbmap, so you'll have to find the more exact name for your layout
<Zgrokl>
lejonet, how ? is there a list
<lejonet>
i.e. to set swedish keyboard in X, I'd just do setxkbmap sv, but for console I need loadkeys sv-latin1
ixxie has joined #nixos
<lejonet>
Zgrokl: hmm, traditionally its in /usr/share/keymaps, but in nixos its somewhere in /nix/store
<lejonet>
most likely you'll find what you need at /nix/store/<hash>-kbd-env/share/keymaps
bjornfor[m] has left #nixos ["User left"]
<lejonet>
(where <hash> is unique, find /nix/store -name '*-kbd-env*' should help you identify the path)
<lejonet>
I can't find anything that seems to be related to a 'ch' keymap on one of my systems, what keyboard layout is that?
<Zgrokl>
Switzerland
<Zgrokl>
i gave up sorry
<tilpner>
Try de_CH-latin1
<lejonet>
thought so, hmm, there should be one for it
<tilpner>
Or fr_CH / fr_CH-latin1
robstr has quit [Quit: WeeChat 1.9.1]
<{^_^}>
[nixpkgs] @zimbatm opened pull request #39823 → fetchs3: allow to name the derivation output → https://git.io/vpEM8
<lejonet>
oh right, swiss-german... didn't even think about looking for that
test has joined #nixos
test is now known as Guest75988
<flokli>
nschoe: I'd say, file a PR adding libopus ;-)
orivej has joined #nixos
<nschoe>
flokli, okay, was not too sure about what the policy was. Thanks, will do this.
<zybell>
lejonet:on the commandline you can simply set the hash to * and use a command like echo if there is only one you can replace echo with the command you really want to run.
<lejonet>
zybell: very true, I was just trying to be generic in the case he finds more than one (like I did on my system)
<flokli>
nschoe: thanks :-)
<nschoe>
flokli, you don't happen to be knowledgeable in gstreamer by chance? ^^ Because now that I fixed the problem for opus, I have the same problem for 'nice' -_-
sie has joined #nixos
sie is now known as Guest92000
<flokli>
nschoe: um, not really. I'd peek at configure output to find out what else got disabled, and cross-check with other distros build recipies
sebastianWth has joined #nixos
Guest75988 has quit [Ping timeout: 260 seconds]
<sebastianWth>
Hello.
<nschoe>
flokli, erf okay. How can I "peek at configure output"
<flokli>
nschoe: I'd expect opus to have been disabled, as libopus wasn't found during configure phase. You should have seen something about that while building it
<nschoe>
flokli, okay but there is no easy or nix-ish way of capturing the output, right? It's plain buffer redirect and grepping?
doyougnu1 has quit [Ping timeout: 256 seconds]
<Zgrokl>
is nix main channel is considered stable ? or are there stable channel for server ?
<flokli>
nschoe: you can use `nix-store --read-log $drv` too
jperras has joined #nixos
<lejonet>
Zgrokl: there is "-small" channels that iirc is targeted at headless/server systems, i.e. 18.03-small
<lejonet>
but named releases (17.09, 18.03 etc) iirc are considered the "stable channels" and then there is nixos-unstable/nixos-unstable-small for the unstable channels
<{^_^}>
[nixpkgs] @nschoe opened pull request #39824 → Add libopus as dependency for the gstreamer base plugins → https://git.io/vpEDV
<nschoe>
flokli, ah, thanks!
<Zgrokl>
lejonet, docs say : "-small are identical to large channels, but contain fewer binaries. This means they update faster, but require more to be built from source."
maingo has joined #nixos
<lejonet>
Zgrokl: that its for headless/servers is what I've been recommended, dunno if that is the "official" label tho
AluisioASG has quit [Ping timeout: 255 seconds]
norfumpit has quit [Ping timeout: 256 seconds]
swflint has quit [Ping timeout: 256 seconds]
<ixxie>
Say I am writing some python scripts to collect statistics or do a simulation; now I wanna write up a default.nix for these scripts, and the results of the computation will be saved in the store
<ixxie>
are there any tips / workflows / patterns I could leverage to suit this usecase?
swflint has joined #nixos
AluisioASG has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
norfumpit has joined #nixos
<ixxie>
in principle one could use Nix to version the resulting data sets, and of course improve reproducibility by pinning
<halfbit>
why did nix choose to put the hash as the first part of the directory name anyways
<halfbit>
in nix store
<ixxie>
halfbit: if I had to guess it improves the speed by which you can query it?
jbetz_ is now known as jbetz
<halfbit>
I guess if the only thing you care about is finding stuff by hash id
<ixxie>
halfbit: I didn't mean a user
<ixxie>
I meant any other program that needs to query the store
<ixxie>
which I imagine a bunch of stuff in the Nix ecosystem does
<nschoe>
Hi again, sorry to bother ; I added a package (gst-plugin-bad in my case) to my buildInputs in my shell.nix, once I'm "in it" with `nix-shell`, how / where can I see the output of the configure step fro this package?
<nschoe>
I'm looking for some errors during the configure phase, and I was told it was in configure.ac or confi.log file, but I don't know where to find them. Any help?
<flokli>
nschoe: simply find the name of the derivation you're building, should look something like this: /nix/store/ia3asmc2hslw791rmyi2n99h80wgpf5b-gst-plugins-bad-0.10.23
<flokli>
so you can either rebuild locally with "nix-build -A gst-plugins-bad --check", or get logs from hydra.nixos.org
jrolfs__ has quit [Ping timeout: 276 seconds]
<nschoe>
flokli, yes I've just rebuilt indeed, and then run your command on ./result
<nschoe>
flokli, what's the --check? It is not in the man page
<flokli>
nschoe: it always rebuilds, regardless of cache state
<nschoe>
ok good to know
<flokli>
s/cache state/whether it's already in your nix store/
<nschoe>
flokli, so, *everything* that i need is in there? Because the folks at #gstreamer told me the configuer phase output is written to configure.ac / config.log, it has something to do with meson, etc.
<steveeJ>
cstrahan: I'm running the kubernetes test against your PR at the moment. there are uncountable errors within the log lines and I'm not too familiar with kubernetes
<nschoe>
"nix log" is the nix v2 version of "nix-store --read-log"?
<LnL>
yeah, basically
<nschoe>
ok
<flokli>
nschoe: yeah, i know, I'm just one of those dinosaurs that didn't yet migrate their brain to using 'nix' binary :-D
orivej has quit [Ping timeout: 268 seconds]
<MichaelRaskin>
Well, it misses critical functionality
<LnL>
same, also the new cli isn't stable yet so it might still change
puckipedia has quit [Quit: *eh*]
jrolfs__ has joined #nixos
<dmj`>
which pkg is g++ in
<clever>
stdenv.cc.cc
<LnL>
gcc or more generally CXX/c++ is in stdenv.cc
<nschoe>
flokli, I have tried it, but so far I'm lost: I don't see a way to install from the unstable channel. So I postponed my switch to "nix" too ^^
stephenjudkins has joined #nixos
<nschoe>
Is there an updated version of the docs, which explains how to use `nix` instead of `nix-env` and such?
<gchristensen>
`nix` doesn't have a nix-env equivalent yet
<GiGa>
If my local git fork of Nixpkgs is a long way behind the Nixos one, could someone remind me how to pull in the head version for the original please?
<dmj`>
clever: are you sure, on Darwin it’s not at least
<gchristensen>
"[`Nix`]...is EXPERIMENTAL and subject to change."
<GiGa>
simpson: OK, noted,
<gchristensen>
-- `nix --help` -- it doesn't have thee full feature set yet
<GiGa>
I think that's all I needed anyway
<LnL>
dmj`: darwin uses clang by default, why do you need gcc?
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<gleber_>
I am trying to create a derivation which needs to impurely take authentication details from outside (the builder used in that derivation needs to do a bunch of magic around it). Using `impureEnvVars` and/or `builtins.getEnv` does not work. With or without `NIX_REMOTE` set. Any ideas where should I look next?
<gleber_>
Curious... Using just `builtins.getEnv` without `impureEnvVars` makes it work o_0
<clever>
gleber_: builtins.getEnv is still "pure"
<LnL>
getEnv is evaluation time, impureEnvVars is build time
<clever>
gleber_: the value it gets is put into the .drv file, and when the value changes, it triggers a rebuild
<LnL>
those don't really have anything to do with eachother
<clever>
gleber_: builtins.getEnv also saves the auth details into /nix/store as world-readable files
jacob_ has quit [Quit: Lost terminal]
<gleber_>
clever LnL: When I was doing `FOO = getEnv "FOO"; impureEnvVars = ["FOO"];` the builder wouldn't see these
<nschoe>
Did anybody have some issue with libsoup, it outputs "< HTTP/1.1 6 TLS/SSL support not available; install glib-networking" when I try to use a secure websocket connection.
<gleber_>
Yeah, now they got into the store
<gleber_>
clever: LnL: now I need to figure out how to make impureEnvVars work so they do not get into the store
<clever>
gleber_: but if you instead only do impureEnvVars = ["FOO"]; on a fixed-output derivation, and set FOO at build time, it should get in
<gleber_>
clever: I believe I tried exactly that and it doesn't work :(
<LnL>
gleber_: impureEnvVars never gets in the store, builtins.getEnv does
<{^_^}>
→ 5fb82670 by Tobias Mayer: cquery: 2018-03-31 -> 2018-05-01
<{^_^}>
→ 5a990f56 by @Mic92: Merge pull request #39825 from tobimpub/cquery-update
<gleber_>
LnL: should setting `NIX_REMOTE=''` disable use of a deamon for a given `nix-build` invocation? I seem to have tried that but it seem to have not worked :(
<clever>
gleber_: if you lack write access to the store, nix1 will fail, and nix2 will auto-detect and switch to the daemon
<LnL>
not if you don't have permissions, try NIX_REMOTE=local
<gleber_>
LnL: should setting `NIX_REMOTE=''` disable use of a deamon for a given `nix-build` invocation? I seem to have tried that but it seem to have not worked :(
<clever>
gleber_: you lack permission to do builds
<clever>
so you need the daemon to do the work on your behalf
<clever>
gleber_: what are these auth details going to be used for?
<clever>
git?, http basic auth?
<gleber_>
damn... This is getting crazy hard :( My goal is to download Factorio mods from the official server, which happen to require authentication to do downloads
<LnL>
yeah and NIX_REMOTE= means auto, that will try to do the right thing depending on the permissions
<clever>
gleber_: updated the gist, you can see it ran as my user
isidore has joined #nixos
Lisanna has quit [Quit: Lisanna]
sanscoeu_ has quit [Remote host closed the connection]
kreisys has quit [Read error: Connection reset by peer]
sanscoeur has joined #nixos
Guest97517 has left #nixos ["Leaving"]
GiGa has quit [Quit: Leaving]
<gleber_>
clever: nice! Will it be ran as myself (not as a deamon) when the unsafe flag is used?
<clever>
it always runs as the user doing the nix eval, never the daemon
<gleber_>
Right
<{^_^}>
[nixpkgs] @thoughtpolice pushed 3 commits to master: https://git.io/vpEpD
<{^_^}>
→ ed5cbbbc by @thoughtpolice: foundationdb: install the java client library
<{^_^}>
→ 55eec811 by @thoughtpolice: nixos: add TLS support to FoundationDB module, and tweak setup a bit
<{^_^}>
→ 5a24d99f by @thoughtpolice: foundationdb: split into multiple, major-versioned packages to make upgrades user-controllable
<clever>
and its safe in a multi-user context, since it runs as your own user, the nix it spits out is evaluated, and then its pure and the daemon doesnt care or know
<gleber_>
At work we have a nixops deployment, where some secret files are necessary. I wonder if this mechanism can make the whole ordeal cleaner.
<elvishjerricco>
Is there a significant difference between autossh and just an ordinary systemd service that launches SSH and always restarts?
<clever>
gleber_: runtime or buildtime secrets?
<rycee>
ixxie: Yeah, #9250 does seem a bit stalled. It really needs thorough reviewing and I've been meaning to do so but time is short :-( It would have been great for other's to also put a bit of time into it, though.
drakonis has quit [Read error: Connection reset by peer]
<gleber_>
clever: both IIRC, need to refresh it in my head
boxofrox has joined #nixos
drakonis has joined #nixos
daveo has quit [Ping timeout: 248 seconds]
<boxofrox>
Anyone having trouble running apache in 18.03? The prestart script is failing on "user root.<mygroup> not found" when it tries to run `chown root.${mainCfg.group} {$mainCfg.stateDir}`. I'm pretty sure that period should be a colon for proper chown syntax.
<{^_^}>
[nixpkgs] @dtzWill merged pull request #39407 → nixos/nix-daemon: optionally (on by default) check nix.conf can be read → https://git.io/vpZGQ
<{^_^}>
→ 2fcf50a3 by @sephalon: luafilesystem: 1.6.3 -> 1.7.0
<{^_^}>
→ af7da1c8 by @xeji: Merge pull request #39711 from sephalon/luafilesystem
olto has quit [Ping timeout: 240 seconds]
stephenjudkins has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 248 seconds]
hamishmack has joined #nixos
<romildo>
I need help making spamassassin work in NixOS unstable. I have enabled spamd on configuration.nix, but the services sa-update and spamd are just failing. Any clues are welcome. Here is the status of them: https://paste.pound-python.org/show/DpduJVbpgTxShHW1TTCh/
colemickens has joined #nixos
<colemickens>
Should I still use pypi2nix if I'm trying to package it for nixos/nixpkgs? Or is there a different way I should go?
<colemickens>
pypi2nix seems awfully complicated, especially since it bundles its own pip/wheel and brings in its own overlays by default.
<colemickens>
(the thing I'm trying to package seems to only be packag-able with wheel 0.31.0 as far as I can guess)
isidore has quit [Quit: WeeChat 2.1]
krey has quit [Ping timeout: 240 seconds]
<nur0n0>
colemickens: when I've used pypi2nix (for two packages) it has always 'just worked' fwiw
<colemickens>
Yeah, I think this is due to `azure-cli` having some weirdness due to changes in wheel recently. And it looks like they adapted their packages to possibly only work with wheel 0.31.0
xy2_ has quit [Ping timeout: 265 seconds]
dbmikus_ has quit [Ping timeout: 240 seconds]
<colemickens>
so I updated my local nixpkgs to use wheel 0.31.0... but pypi2nix bundles its own
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #39837 → lib/systems: Fix eval for iphone32* examples → https://git.io/vpufe
rotaerk has joined #nixos
emph^ has quit []
dbe_ has quit [Ping timeout: 268 seconds]
lord| has joined #nixos
nhh^ has joined #nixos
<ajmccluskey>
I just upgraded to 18.03 from 17.09 and I don't seem to be getting any binary cache hits when I install packages.
<ajmccluskey>
Does anyone know why that might be?
nhh^ has quit [Read error: Connection reset by peer]
<ajmccluskey>
`nix-env -qaPs firefox` shows all three status flags as `---`
<ajmccluskey>
Firefox is still installed from my previous install
Durbley has joined #nixos
sigmundv__ has quit [Ping timeout: 240 seconds]
<ajmccluskey>
It also might be relevant that I'm installing as my user, with packages specified in `~/nixpkgs/config.nix`
<ajmccluskey>
...and I just realised I have to run off for a couple of hours and should have waited to ask :). if you mention me I'll see your replies when I return.
<{^_^}>
[nixpkgs] @xeji merged pull request #39826 → buildbot: disable tests because of TimeoutErrors → https://git.io/vpEyp
<{^_^}>
[nixpkgs] @xeji pushed commit from @seese to master « buildbot: disable tests on aarch64 because of TimeoutErrors (#39826) »: https://git.io/vpufp
<ben__>
Anyway, I'm trying to install Nixos as per instructions in the nix manual, but when running nixos-install, i get "writing to file: no space left on device"
ryantrinkle has joined #nixos
<samueldr>
a common cause is forgetting to mount the partitions
<ben__>
System is Lenovo T440, created two partitions: Ext4 on /dev/sda1 and Swap on /dev/sda2
<samueldr>
(so, installing to the live system [in a ramdisk])
rotaerk has joined #nixos
rihards has quit [Quit: rihards]
<ben__>
I tried to follow the instructions to the letter. Using minimal installation iso on a flash drive. System is BIOS, not uefi.
colemickens has quit [Ping timeout: 260 seconds]
<samueldr>
the partition scheme should work for legacy-boot, have you verified (using `mount`) whether the partition is mounted to /mnt/ as expected?
<ben__>
Last line is: "/dev/sda1 on /mnt type ext4 (rw,relatime,data=ordered)"
<Myrl-saki>
Errr
<Myrl-saki>
Is it possible for `nix-build` to get further than `nix build`?
<Myrl-saki>
Because I think that just happened to me.
sigmundv__ has joined #nixos
aarvar has joined #nixos
<ben__>
Oh, but df says /dev/sda1 has 0 bytes available. How can that be, I just created that partition, and the only thing i ran was nix-generate-config & the other described install steps.
rotaerk has quit [Ping timeout: 265 seconds]
<samueldr>
ben__: `df -h /mnt` the partition isn't full?
<samueldr>
ah, just seen you've realized it's full, maybe you swapped around swap and main partition sizes?
<Durbley>
When I read a description of what Nix does it sounds obvious and non-revolutionary. But, I don't have much experience with regular package managers beyond just installing something I need. What does Nix do that other package managers don't?
jperras has joined #nixos
c0ffee152 has quit [Ping timeout: 268 seconds]
jtojnar has quit [Remote host closed the connection]
spear2 has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<Myrl-saki>
Durbley: I guess "scripting" is first class in Nix.
spear2 has quit [Remote host closed the connection]
jtojnar has joined #nixos
spear2 has joined #nixos
<Myrl-saki>
Durbley: The whole package repository is just one huge set defined in the Nix language.
goibhniu has joined #nixos
<MichaelRaskin>
The real question is what Nix doesn't do. It doesn't allow to change a previously installed file in place.
alexteves has quit [Ping timeout: 240 seconds]
<Durbley>
okay, I'll phrase it another way. when I read what nix is supposed to do it just seems to me to be the definition of what a package manager is. "reproducible builds", for example. what about other package managers isn't reproducible? why?
<MichaelRaskin>
There is path-dependence, because when you change package-managed files in-place, the order of changes matters
<{^_^}>
→ db4f96b3 by @Ericson2314: lib/systems: Fix eval for iphone32* examples
<{^_^}>
→ 5b8c550a by @Ericson2314: Merge pull request #39837 from obsidiansystems/ios-examples
sigmundv__ has quit [Ping timeout: 240 seconds]
Durbley has quit [Read error: Connection reset by peer]
jperras has quit [Ping timeout: 264 seconds]
xcmw has joined #nixos
jason has joined #nixos
simukis has quit [Ping timeout: 264 seconds]
jason is now known as Guest69677
Synthetica has quit [Quit: Connection closed for inactivity]
<elvishjerricco>
Anyone here using autossh? Since updating to 18.03, it gets killed whenever my network disconnects rather than retrying until it's able to connect.
blankhart has joined #nixos
erasmas has quit [Quit: leaving]
joehh has quit [Ping timeout: 248 seconds]
sebastianWth has quit [Quit: Leaving...]
<Guest69677>
nick jason
<Guest69677>
Whoops!
Guest69677 is now known as stumble
Durbley has joined #nixos
<{^_^}>
[nixpkgs] @grahamc merged pull request #39786 → nixpkgs doc: add format Make target → https://git.io/vp0zW