mmlb has quit [Read error: Connection reset by peer]
<fusion809>
LnL: I already ran which sudo and showed its output, which is equivalent to command -v sudo, right? I ran it and it gave the same output too.
mmlb has joined #nixos
<fusion809>
/run/current-system/sw/bin/sudo is the output, in case you missed where I mentioned it earlier.
<LnL>
yeah that's not normal
<fusion809>
What is normal for it?
<srhb>
fusion809: /run/wrappers/bin/sudo
<LnL>
setuid is not allowed in the store, the usable sudo binary is in /run/wrappers/bin
<LnL>
this is what security.sudo.enable, but that's enabled by default
<fusion809>
Ah, the sudo and su symlinks in /run/wrappers/bin are dead
<LnL>
eg. I have bin -> /run/wrappers/wrappers.9pZ7n6SAfZ and wrappers.9pZ7n6SAfZ
<LnL>
can you try /run/wrappers/bin/sudo /run/wrappers/bin/su -
<fusion809>
That actually got me into root.
<LnL>
I think /run/wrappers/bin isn't in your PATH then
freeman42x]NixOS has quit [Ping timeout: 250 seconds]
<fusion809>
Yeah it's not. I'll have to edit ~/.bashrc and ~/.zshrc accordingly.
<LnL>
ah
<LnL>
the system bash/zsh will be configured properly but if you override those somewhere you might run into trouble like this
jluttine has quit [Ping timeout: 240 seconds]
wladmis has joined #nixos
<fusion809>
I ran `rm ~/.bashrc ; bash` to enter a fresh Bash shell and sudo still returned that error, so I do not think my bashrc is to blame here
<fusion809>
fresh and clean^
vidbina has joined #nixos
jluttine has joined #nixos
<LnL>
what about __NIXOS_SET_ENVIRONMENT_DONE= bash -c 'echo $PATH'
<fusion809>
That includes /run/wrappers/bin
tim_nixos has joined #nixos
<LnL>
starting a new shell at this point should work then
<jackdk>
I am spinning my wheels trying to fix #50902, and would appreciate a hand from someone who understands linker paths and cabal. The build log linked in the issue shows undefined symbols for a bunch of openssl stuff, but I'm not sure how to add the correct dep and linker paths/
<kandinski>
Hey folks, can't find this issue I'm having, so I'd like some confirmation before I post it to the tracker. nixos-rebuild switch fails because it can't fin vboxnet0 device, unless a Virtualbox VM is running.
<fusion809>
Thanks LnL and gchristensen for helping with that issue. Now NixOS seems like a pleasant experience.
<{^_^}>
#44344 (by davidak, 16 weeks ago, open): X11 crash at end of nixos-rebuild switch --upgrade
<gchristensen>
all thanks to LnL :)
<kandinski>
I don't have a X11 crash. I just have an "error(s) occurred while switching, or maybe it's justa warning... hmm...
<LnL>
fusion809: gchristensen: the setuid wrappers are a bit confusing, since there are 2 versions of eg. sudo in path (but only one of those works properly)
<LnL>
jackdk: the static libraries are in $out instead of $lib try just pkgs.postgresl (I think lib gets added automatically) or both
<LnL>
without the typo that is
fusion809 has quit [Quit: Konversation terminated!]
<tim_nixos>
Hello people, I would like to run my own compiled version of LLVM to test IR optimization passes, I built LLVM succesfully but when I try to compile something it can not find any libs (e.g. stdio). How do I tell LLVM where my standard libs are?
<tim_nixos>
or is this generally not a good aproach? should I maybe create a nix derivation for that which pulls in standard libs?
romildo has joined #nixos
<elvishjerricco>
tim_nixos: You need to use the cc wrapper. e.g. check out the difference between `clang` and `clang-unwrapped` in pkgs/top-level/all-packages.nix
<elvishjerricco>
tim_nixos: there's a function somewhere in nixpkgs whose precise name escapes me at the moment (something like wrapCC maybe?) that takes a compiler derivation and returns a derivation that builds a wrapper script that pass system libraries to the original compiler, among other things
dbmikus_ has joined #nixos
jbaum98 has quit [Quit: Connection closed for inactivity]
<qyliss^work>
It's wrapCC, yeah
<elvishjerricco>
If you look at the definitions of clang and clang-unwrapped, you'll see an example of how to do it
rprije has quit [Ping timeout: 272 seconds]
<tim_nixos>
elvishjerricco: thanks for the explanation. I did not find a definition of clang-unwrapped unfortunately
<elvishjerricco>
tim_nixos: It's in all-packages.nix I think. It'll point you to another file that defines llvmPackages, which is where it's extracted from
<sgillespie>
unbelievable, it fixed all my warnings; Thanks clever
<tim_nixos>
thanks :) will just search for it in the repo then..
<{^_^}>
[nixpkgs] @dtzWill opened pull request #51153 → yaru: init at 18.10.7 → https://git.io/fpg77
<delroth>
jackdk: on which filesystem did you reproduce the postgresql parallel build issue? hfs+ or apfs or something else?
<clever>
delroth: have you heard of disorderfs?
<qyliss^work>
There's no clang-unwrapped package at the top level
<sgillespie>
But I suppose that seems fairly safe?
pie__ has joined #nixos
* delroth
is kind of annoyed at the fact that we just disable parallel build without understanding the issue, making things slower for everyone and not properly fixing the problems upstream
<clever>
sgillespie: youll want to either delete the corrupt paths (nix-store --delete /nix/store/foo) or repair them (nix-store --repair-path /nix/store/foo), dont use force with delete
pxc has quit [Quit: WeeChat 2.3]
pie_ has quit [Remote host closed the connection]
<qyliss^work>
delroth: you're still welcome to investigate the issue though?
<delroth>
I am investigating it :)
<jackdk>
delroth: I'm debugging on someone else's machine; they said apfs
<qyliss^work>
This way, the issue isn't preventing people using postgres, but can still be investigated
<delroth>
yeah, ideally this would have been caught before being pushed to master
<tim_nixos>
qyliss^work: I already stumbled upon that nix package definition when researching earlier, do I have to create a derivation now and put this in a shell.nix?
<tim_nixos>
qyliss^work: and thanks for your help btw :P
<Growpotkin>
This is actually a good segway into another question; how do y'all usually query for packages?
<infinisil>
jackdk: Yeah, the cache used by the bot is a bit old, I should set up some auto-updating for it
<sgillespie>
FWIW grep also has `--exclude-standard` which respects gitignore
<Growpotkin>
I am always going to the packages webpage which feels ridiculous
tathougies has quit [Quit: Leaving.]
<Growpotkin>
I know there is some nix-env -fjaseipj silliness but I of course never remember the flags or syntax
<simpson>
growpotkin: I usually try names I know from other distros like Debian and Fedora, I grep my local nixpkgs, and I'll ask the bot here if all else fails.
<simpson>
growpotkin: Also, nix-repl is extremely useful.
<Growpotkin>
I want to hook it up to FZF
<Growpotkin>
THE FUTURE of fuzzy query technology!
ottidmes has joined #nixos
<infinisil>
growpotkin: Probably the best solution nowadays is to use `nix search`, but I still just ripgrep through nixpkgs to find stuff, which has the added bonus of finding related modules or docs
<tim_nixos>
growpotkin: that would be nice :D
<ottidmes>
is there a faster way to get from hash to actual file name than: find /nix/store -name 'pd3xx55jjik53gvbyrs4h0him03l3wah-*' -print -quit
<Growpotkin>
whoa I had no idea "nix search" was a thing
<sgillespie>
I copy the output of `nix-env -qaP` to /tmp and then grep/awk it. Feels equally ridiculous
<infinisil>
growpotkin: nix search supports a json output, could pipe that through jq, and then to fzf :)
<Growpotkin>
why is that not plastered at the top of the manual? lol
<qyliss>
tim_nixos: I am at this point too sleepy to have a good answer, but I’m glad I helped and hope somebody else can help you figure it out :)
<Growpotkin>
praise, ty, bless
<qyliss>
I’ve never had much luck with nix search
<qyliss>
I use the repl
<Growpotkin>
oh wow I ran a query like a minute ago and am now realizing that its still searching lol
<Mic92>
I use the zsh completion
<tim_nixos>
qyliss: alright, thanks for the support! have a good night :)
<Growpotkin>
I forget how dense the package base is
<infinisil>
ottidmes: Um, why you only have the hash in the first place? A derivation is uniquely defined by its full name, not only the hash part. Whoever stripped the name from it shouldn't do that
rprije has quit [Ping timeout: 268 seconds]
virus_dave has joined #nixos
wladmis has left #nixos [#nixos]
<ottidmes>
infinisil: it is? I always thought it was just the hash, the name being there for readability sake
<Mic92>
my 48 cores are bored when building rustc
<Mic92>
They could parallalize the build more.
<infinisil>
ottidmes: I mean, it technically is, but there's no real reason to strip the name still
<infinisil>
(I think at least)
<ottidmes>
infinisil: I am just cleaning my config and going trough all my helper functions, and wanted to cover all my bases for my nix-store-path function that returns a valid path or returns 1
<infinisil>
Why would you need a helper function that returns a store path for a hash?
<sgillespie>
What I don't understand is `nix search busybox` and `nix-env -qaP busybox` give 2 totally different results
<infinisil>
ottidmes: As an answer to your actual question: I don't know of an easier way than to just find /nix/store
<sgillespie>
Ah, I guess I just needed to update the cache
<ottidmes>
infinisil: ok, too bad, ah well, at least it works
<infinisil>
Why do you need it??
<infinisil>
I'm seriously wondering
<ottidmes>
infinisil: relax! I am using it for my interactive shell helper functions, any function that accepts a nix path, I put it first through nix-store-path, that tries to convert it to a valid path, and checks for its existance
<infinisil>
Sorry, didn't mean to sound stressed :P
steshaw has joined #nixos
<infinisil>
I still don't get it but anyways
<ottidmes>
infinisil: your instance of me answering that question and double question marks, made me interpret it that way
sgillespie has quit [Quit: leaving]
<ottidmes>
infinisil: but actual use cases, what if I got and old hash of a previous build (running nix-build again would result in other hash because of changes made afterwards) and I want to inspect the contents of said hash in the store
<infinisil>
ottidmes: Well if you got the old hash then you must also have the old hash+name, right?
<gchristensen>
actually the hash part is the address in the binary cache for the narinfo
<ottidmes>
infinisil: not per se, but you are not getting the reason: because I want to make it as easy for myself as possible, thats why, like I said, covering all basis
<{^_^}>
[nixpkgs] @Ekleog pushed commit from @andrew-d to staging-next « libtiff: 2018-11-04 -> 4.0.10 »: https://git.io/fpgFN
<ottidmes>
infinisil: BTW without nix support, this is so much faster than find: local path_name=$(bash -c "echo /nix/store/$1-*"); [[ -e $path_name ]] && echo "$path_name" (i.e. using glob rather than find)
<{^_^}>
[nixpkgs] @endgame opened pull request #51155 → postgresql: Remove static libs using host platform extension → https://git.io/fpgbJ
<infinisil>
> firefox.name
<{^_^}>
"firefox-61.0.2"
<infinisil>
> firefox.name
<{^_^}>
"firefox-63.0.3"
cyounkins has joined #nixos
<infinisil>
The bot will now follow master, updated every minute
<lassulus>
it magically changed?
<lassulus>
ah cool
<infinisil>
(Just restarted it with the changes for that)
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
<{^_^}>
[nixpkgs] @Ekleog pushed 2 commits to release-18.09: https://git.io/fpgbu
mmlb has quit [Read error: Connection reset by peer]
mmlb has joined #nixos
<ottidmes>
infinisil: I assume you load the repl with <nixpkgs> (or the path to your master checkout), could you maybe add a file that basically does: builtins // lib? Or do you disagree?
<infinisil>
ottidmes: Nah, that's one of the thing I've wanted to fix for a while, I could just manually do it for now though
<infinisil>
I have a whole nother repl fit for here I've been writing, will try to incorporate it soon
<ottidmes>
infinisil: ok cool
<infinisil>
It has lib always in scope now too (which includes most builtins)
<infinisil>
> hasPrefix "/" "/foo"
<{^_^}>
error: undefined variable 'hasPrefix' at (string):207:1
<infinisil>
*should*
<infinisil>
> hasPrefix "/" "/foo"
<{^_^}>
true
<infinisil>
There we go
<ottidmes>
yay!
<ottidmes>
infinisil++
<{^_^}>
infinisil's karma got increased to 44
<infinisil>
Unfortunately it doesn't work in definitions, which is one major flaw of the current repl
<infinisil>
> x = hasPrefix "/" "/foo"
<{^_^}>
error: undefined variable 'hasPrefix' at (string):197:6
cyounkins has joined #nixos
<ottidmes>
I did not know that, thats unfortunate :(
<tdeo>
hi, is there a way to set polybar to be built with mpd support?
<elvishjerricco>
Only some users can instruct ofborg to build packages, right?
<elvishjerricco>
Like I can't do it on my own PR?
<samueldr>
exactly, though I think you're known enough to at least be approved for known users https://github.com/NixOS/ofborg
<ottidmes>
tdeo: you plan to install it in your systemPackages? if so, you can do this: environment.systemPackages = with pkgs; [ (polybar.override { mpdSupport = true; }) ]; (or something similar)
<tdeo>
thanks!
<{^_^}>
[nixpkgs] @marsam opened pull request #51157 → gitAndTools.git-reparent: init at 2018-11-27 → https://git.io/fpgNm
<ottidmes>
tdeo: if it is installed via some other module and you want to overwrite polybar everywhere with mpd support, you can do: nixpkgs.overlays = [ (self: super: { polybar = super.polybar.override { mpdSupport = true; }; }) ];
<elvishjerricco>
gchristensen: Can I be made a known user for ofborg?
<gchristensen>
send a PR! :)
<elvishjerricco>
gchristensen: Oh it's just a file in that repo?
<gchristensen>
look at any recent PR :)
<elvishjerricco>
gchristensen: Sweet. What's the difference between known and extra-known?
<gchristensen>
make yourself extra-known. the "known" list is auto-generated
<elvishjerricco>
gchristensen: Okie dokie
pie__ has quit [Ping timeout: 268 seconds]
<qyliss>
delroth++ for figuring out that Postgres parallelism issue
<ottidmes>
teto: I have some potential hacky solutions if you are interested
<ottidmes>
teto: make an overlay pointing haskell.compiler.ghc802 to whatever you want
<teto>
ottidmes: yep I've been blocked for some time on this (first finding out that the error was stemming from stack. Why the hell would they hardcode this ?)
<teto>
ottidmes: hum sounds good
<teto>
haskell ecosystem is so weird
<ottidmes>
teto: or even more hacky, LD_PRELOAD stack with a library that overwrites the necessary glibc functions that are being called with ghc802 and change the behavior there (definite last resort choice though)
<ottidmes>
teto: just thought of another solution, which is probably the least hacky (least potential negative consequences), wrap stack with a different NIX_PATH and another value for nixpkgs= where you then can customized it just for that particular usage
rprije has quit [Ping timeout: 250 seconds]
<teto>
ottidmes: would you have a concrete example of how to override ghc802 ? I can't manage to get it right
<teto>
(I find your first overlay solution the cleanest btw)
rprije has joined #nixos
marusich has joined #nixos
<lovek323>
nixos is running `mysqld`... but I can't work out why
<lovek323>
is there any way of knowing where that's coming from?
<acowley>
Can anyone offer any suggestion as to how one ought to use the pharo derivation? Running it asks for an image file, but I have none. The pharo-launcher derivation crashes on startup (it is unmaintained in nixpkgs). If I try to download Pharo from their web page, I can run their image with a nixpkgs pharo executable... but it just gives me a blank window.
<samueldr>
timclassic: rest assured, your fingers got it right, looks like there was an issue with the boot partition on those images
<lovek323>
lol. yep. thanks. it is run by docker... I am losing my mind :)
acarrico has quit [Ping timeout: 245 seconds]
<gchristensen>
uid 999 seemed suspicious :) good
<ottidmes>
teto: you could also do it like this: haskell = super.lib.recursiveUpdate super.haskell { compiler.ghc802 = super.haskell.compiler.ghc843; };
<teto>
raah "I don't know how to install GHC on your system configuration, please install manually" even though I have --nix
Supersonic has joined #nixos
<ottidmes>
teto: maybe it expects it already being built, try running the expression it is running yourself
<ekleog>
infinisil: from a nix build or from a cargo build? from a cargo build there should be debug symbols by default unless `--release` is passed ; for a nix build I guess it depends on whether you're using buildRustCrate or carnix
<infinisil>
Aha! Just got it
<infinisil>
Just needed noStrip = true; in a nix build
<infinisil>
and nix-index does a debug build by default even in release (specified in its Cargo.toml file)
<clever>
[pid 25444] execve("nix-env", ["nix-env", "-qaP", "--out-path", "--xml", "--arg", "config", "{}", "--file", "nixos-18.09/repo"], 0x7ffc3d2c5078 /* 64 vars */) = -1 ENOENT (No such file or directory)
<clever>
infinisil: i think its failing to run nix-env due to no PATH
hamishmack has joined #nixos
<infinisil>
Yeah I already know :P
<infinisil>
Adding nix to PATH makes it succeed
<clever>
makeWrapper with yep
<infinisil>
Ah right, should probably fix the nix-index build to account for that
mbrgm has quit [Ping timeout: 252 seconds]
<clever>
oh right, patch it to bake a path in, that also works
vk3wtf has quit [Ping timeout: 268 seconds]
mbrgm has joined #nixos
epicmetal has quit [Ping timeout: 246 seconds]
Brejic has quit [Quit: Quit]
<kaychaks[m]>
I'm in macOS. `nix-shell -p haskell.compiler.ghc862` is failing with error `ValueError: unknown locale: UTF-8` (same happening for 861 but 844 is fine). My env vars for `LC_ALL, LANG, LC_CTYPE` are all `en_US.UTF-8` (which is the common sol. I found with some quick Google searches). Any idea ?
<{^_^}>
[nixpkgs] @Infinisil opened pull request #51165 → nix-index: Wrap with nix-env in PATH → https://git.io/fp2vf
<infinisil>
for f in /run/current-system/sw/bin/*; do p=$(dirname $(readlink $f)); echo $p; PATH=$p /nix/store/vwq6y1b8icwrphkdxffhmkkpavdppacz-nix-index-0.1.2/bin/nix-index --nixpkgs nixos-18.09/repo --db nixos-18.09/nix-index; done
ent has joined #nixos
<infinisil>
Failure is fast, so I just had to wait a bit until it stopped on the nix path :P
<clever>
infinisil: strace was likely goinggg to be faster
<clever>
but i find i sometimes jump to stracce too quickly, lol
<infinisil>
If I *knew* about strace it would've been faster
<infinisil>
About -f specifically, and how to find the bad line
<clever>
i just ctrl+f'd for enoent
<clever>
and there was one hit in the gist, about 50% down, all by itself
<infinisil>
I'll remember that
endformationage has quit [Ping timeout: 246 seconds]
markus2341 has quit [Ping timeout: 245 seconds]
<infinisil>
Ahhh darn
<infinisil>
I went through all this trouble in the hopes of being able to automate nix-index updates on my server
<infinisil>
For the ,locate bot function
<infinisil>
But now it turns out that my server doesn't have enough memory to even do a nix-index :/
markus2341 has joined #nixos
<infinisil>
Very much looks like it, I see lots of brk syscalls being made, and it's been stuck on one for a while now
Rusty1 has quit [Quit: Konversation terminated!]
klntsky has quit [Ping timeout: 256 seconds]
<infinisil>
Yup :(
<worldofpeace>
This is devistating for me personally, as I've never bothered using nix-index on my machine for the same reason, and would just pm your bot :D
klntsky has joined #nixos
vk3wtf has joined #nixos
mmlb has quit [Read error: Connection reset by peer]
tomberek has joined #nixos
mmlb has joined #nixos
<tomberek>
anyone familiar with how building the manual creates cross-links to github vice a filepath?
<Ralith>
anyone know how to set up a bluetooth serial port under nixos 18.09? it seems like bluez5 removed all the necessary tools...
vasiliy_san has quit [Quit: Connection closed for inactivity]
technoidX has quit [Ping timeout: 250 seconds]
Ariakenom has quit [Quit: Leaving]
kisik21 has joined #nixos
orivej has joined #nixos
kisik21 has left #nixos [#nixos]
<{^_^}>
[nixpkgs] @kalbasit pushed 3 commits to update/nm-1.12.4: https://git.io/fp2kh
<{^_^}>
[nixpkgs] @kalbasit pushed 0 commits to update/nm-1.12.4: https://git.io/fp2Ie
troydm has quit [Ping timeout: 246 seconds]
lnikkila has joined #nixos
<MasseR>
I remember seeing a configuration value that sets the default shell for nix-shell (wanting to replace bash with zsh in nix-shell environment), but I can't remember what it was
reinhardt has quit [Ping timeout: 268 seconds]
mmlb has quit [Read error: Connection reset by peer]
mmlb has joined #nixos
pkx3 has joined #nixos
pkx3__ has quit [Read error: Connection reset by peer]
reinhardt has joined #nixos
<sphalerite>
MasseR: I don't think there's such a thing, nix-shell will always use bash because the stdenv uses lots of bash-specific features
<sphalerite>
MasseR: you can do stuff like `nix-shell --run 'exec zsh'`
Tucky has joined #nixos
troydm has joined #nixos
<MasseR>
Yeah I'm usually doing 'nix-shell --run zsh'
reinhardt has quit [Ping timeout: 268 seconds]
thedavidmeister has joined #nixos
<thedavidmeister>
hi
<thedavidmeister>
how could i get nodejs to use a specific version in nix-shell?
<adisbladis>
thedavidmeister: There are separate packages for 6, 8 and 10 in unstable at the moment: nodejs-6_x, nodejs-8_x
<adisbladis>
You get the idea I think
<thedavidmeister>
mmm, but i need 8.13.0 exactly
<adisbladis>
thedavidmeister: You can achieve that via an override
<thedavidmeister>
tell me more :)
<ekleog>
either pin nixpkgs to a version that suits you (see nixos wiki research “pinning”) or override (see nixpkgs manual section “overriding”)
<adisbladis>
You need to figure out the sha on your own, the rest should work
reinhardt has joined #nixos
pi3r has joined #nixos
<thedavidmeister>
ah ok amazing
<thedavidmeister>
yeah i foudn the bit in the manual but fighting syntax
<thedavidmeister>
i'll try this
<adisbladis>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<adisbladis>
thedavidmeister: ^
<{^_^}>
[nixpkgs] @srhb merged pull request #51107 → valgrind: Apply upstream patch for Makefile race in coregrind → https://git.io/fpzro
<teto>
ottidmes: not sure if I thanked you properly for your haskell help this morning. So thanks. I spent the rest of the day fighting stack not detecting ghc and other funny things but managed to reach my goal.
<{^_^}>
[nixpkgs] @veprbl closed pull request #32513 → [WIP] initial code drop for Gurobi solver → https://git.io/vbBTE
sigmundv_ has joined #nixos
thc202 has joined #nixos
the-kenny has quit [Read error: Connection reset by peer]
<Taneb>
Is there a way to add stuff to a build that doesn't change the build but can be discovered from the JSON given to the command launched by Hydra's RunCommand plugin?
<srhb>
essentially you have outputs and products to play with, and altering either will change the hash.
arjen-jonathan has quit [Ping timeout: 250 seconds]
<Taneb>
OK
arjen-jonathan has joined #nixos
<srhb>
Thinking about it, you _might_ be able to hack something by changing the _name_ of the job, but encoding meaningful information there sounds really hacky :-P
<Taneb>
Also, is there an easy way to get that JSON for an already-run build so I can experiment?
<srhb>
Taneb: I think you juts curl the build endpoint, requesting JSON.
<moredhel>
hi there, I'm wanting to install a custom haskell package for a project. I'm not 100% sure how to go about this though. I used cabal2nix to generate the dependencies and am now trying to do a nix-build -A project and I am having errors loads of errors pop up.
<moredhel>
I assume cabal2nix is not generating a compatible expression, so I will need to change how it is being called.
<moredhel>
the package in question is 'discord-haskell' which is present on hackage but not in the repos it seems
<Taneb>
srhb: I think what I'll do is add the extra stuff as additional build outputs and just live with the hash changing
<srhb>
moredhel: It's in unstable. :)
<srhb>
Taneb: Sounds good :)
<srhb>
moredhel: It's broken though. If you share your expression, maybe someone can help
<qyliss>
MasseR: I use https://github.com/chisui/zsh-nix-shell. The caveat is that you don’t get access to the Bash functions Nix defines. But usually I only want those when debugging a package, and —pure gets me Bash anyway.
<moredhel>
I put up my modified version where I tried fiddling with the dependencies a little to try and get it to build
mayhewluke has quit [Ping timeout: 246 seconds]
<srhb>
moredhel: That mkDerivation looks wrong. It doesn't know anything about libraryHaskellDepends.
<srhb>
stdenv.mkDerivation, that is..
<moredhel>
yep. I saw what I did wrong. it should be pkgs.haskellPackages.callPackage
<schopp0r>
hm. I am just trying to compile nix again, this time with stuff installed from pkgsrc. for some reason, it requires libeditline ... and pkg-config cannot find that package, even though it is installed /o\
mayhewluke has joined #nixos
<moredhel>
I just ran that and I'm getting dependency conflicts... I updated the gist
<srhb>
moredhel: You'll have to change the deps there. You cannot possibly satisfy both those constraints.
<moredhel>
yeah, it's the same error that is happening on unstable... would it be worth easing up on the restrictions a bit?
<srhb>
moredhel: Yup.
<schopp0r>
ok it works when setting the env-variables manually.
<moredhel>
srhb: thanks, that did the trick. I did just completely remove the dependency restrictions on those three libraries. I assume I should figure out what versions I compiled against and make a PR against the upstream with that? that should then propogate down and fix the nixpkgs build
mbrgm has quit [Ping timeout: 240 seconds]
<srhb>
moredhel: Something like that, yeah. Basically it's often just upper bounds that need a little lifting.
<joehh>
not entirely happy with it as it requires creating the right directories before hand, but otherwise seems to work
<schopp0r>
sphalerite: I have no root access on this machine, so I cannot use /nix as a store directory. I already tried to build nix with nixos, but I never managed to run it on another computer afterwards.
<sphalerite>
schopp0r: if user namespaces are available, nix-user-chroot is a better option
<{^_^}>
[nixpkgs] @markuskowa merged pull request #50503 → modularity: Document the ability to use non-files in imports → https://git.io/fpnAl
<{^_^}>
[nixpkgs] @markuskowa pushed commit from @Baughn to master « modularity: Document the ability to use non-files in imports (#50503) »: https://git.io/fp28q
metastance has quit [Ping timeout: 250 seconds]
<sphalerite>
schopp0r: if you can do `unshare -r` on the machine, user namespaces are available and it's the best way to get nix running there
<schopp0r>
sphalerite: unshare: unshare failed: Operation not permitted
<infinisil>
,locate editline.c
<sphalerite>
schopp0r: well that's not going to be fun then >.<
<{^_^}>
Couldn't find in any packages
<joehh>
makefu: I had this as an activation script to make the relevant directories and set permissions. I'm not currently using it (hence the commment chars), but can't remember if it was due to issues with the script or mounting the efs (and running out of time at the time)
<schopp0r>
sphalerite: I already tried it several days ...
<sphalerite>
schopp0r: if the pkgsrc package for editline isn't the right thing, then you're probably best off grabbing editline from the github repo someone mentioned earlier and buidling that yourself too
<sphalerite>
schopp0r: or you could use proot as an alternative to user namespcaes, although I don't know how to do that and it has a performance impact
<sphalerite>
schopp0r: oh right, actually the easiest option would be if you could get your admin to create /nix and give you ownership. Then you can use nix without any expensive hacks. Is that categorically not an option?
<schopp0r>
sphalerite: that is categorically not an option, I already asked.
<schopp0r>
sphalerite: I try to manually build readline now
<sphalerite>
schopp0r: not readline, editline ;)
<v0|d>
how do I generate the file pkgs/servers/x11/xorg/default.nix
<srhb>
v0|d: What do you mean generate it? It's in nixpkgs.
<srhb>
Oh
<srhb>
I understand now :)
<srhb>
v0|d: I'll guess it's related to generate-expr-from-tarballs.pl
<v0|d>
no params?
<{^_^}>
[nixpkgs] @Ekleog pushed 2 commits to release-18.09: https://git.io/fp28Q
<colemickens>
locallycompact: you can cheat and disable the firewall short-term
<colemickens>
theres an open issue about it
<locallycompact>
how do I do that
<locallycompact>
I have networking.firewall.enable = false; already in my conf
mmercier has joined #nixos
fusion809 has joined #nixos
<colemickens>
oh, it worked for me after that, at least from Google Chrome.
<colemickens>
I can't get Chromecast to work from Chromium in any platform.
fendor has joined #nixos
virus_dave has joined #nixos
<locallycompact>
hrmm
<locallycompact>
I'll try rebooting
slyfox_ has joined #nixos
<locallycompact>
thanks
locallycompact has quit [Remote host closed the connection]
<infinisil>
clever isn't here! Very strange
slyfox has quit [Ping timeout: 268 seconds]
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
<fendor>
When using KDE, the command `ssh-add`, does not work by default, because the agent has not been started yet. On gnome, this worked by default. Do I have to add another service, or do I have to use anotther command?
virus_dave has quit [Quit: virus_dave]
<{^_^}>
[nixpkgs] @peti opened pull request #51177 → pandoc: adapt postInstall hook to embedded-data-files build → https://git.io/fp2uU
thedavidmeister has quit [Ping timeout: 256 seconds]
<srhb>
fendor: I think gnome keyring includes an ssh agent
<srhb>
fendor: You can use openssh's with programs.ssh.startAgent
romanofskiWork has quit [Ping timeout: 250 seconds]
<fendor>
srhb, I added that to the configuration.nix: `programs.ssh.startAgent = true;`
<fendor>
srhb, but ssh-add does still not work
<{^_^}>
[nixpkgs] @Twey opened pull request #51179 → pythonPackages.glom: init at 18.3.1 → https://git.io/fp2ze
<fendor>
srhb, take it back, rebooting the pc fixed it
<fendor>
sorry
pie__ has joined #nixos
acarrico has joined #nixos
philippD has joined #nixos
arjen-jonathan has joined #nixos
virus_dave has joined #nixos
virus_dave has quit [Client Quit]
palo5 is now known as palo
cyounkins has joined #nixos
<srhb>
fendor: I think probably a relogin would have done the trick, but yeah :)
<tilpner>
To anyone searching for "error: writing to file: Connection reset by peer", try clearing ~/.cache/nix/tarballs
cyounkins has quit [Ping timeout: 250 seconds]
cyounkins has joined #nixos
erictapen has joined #nixos
metastance has joined #nixos
drakonis has joined #nixos
bbarker_home has joined #nixos
<bbarker_home>
Would there be any forseeable issues with configuring the root user in configuration.nix (e.g., to add a public ssh key to the root account)?
acarrico has quit [Ping timeout: 250 seconds]
<bbarker_home>
Recently I've lost faith in either myself or passwords/sudo, so I need some other mechanism..
<srhb>
bbarker_home: That is a (the most?) common approach.
<bbarker_home>
ok
<barrucadu>
I set all my ssh keys through configuration.nix
<srhb>
bbarker_home: Or, well, the most is probably configuring a user to be able to log in with ssh, and sudo.
<srhb>
with/without password.
<bbarker_home>
yeah, i may switch to that approach (normal users not having a password)
<{^_^}>
[nixpkgs] @globin pushed commit from @bennofs to master « efivar: fix cross compilation »: https://git.io/fp2oQ
<bbarker_home>
I know it is generally frowned on but I'm actually doing this in a container
<srhb>
bbarker_home: Avoid using activationScripts -- use environment.variables
<bbarker_home>
srhb, ok, thanks. Interestingly, neither activationScripts or environment.variables are mentioned in the nixos manual i think - maybe intentional? ;-)
jperras has joined #nixos
jperras has quit [Client Quit]
fendor has quit [Ping timeout: 250 seconds]
jperras has joined #nixos
<srhb>
bbarker_home: That's not true, the manual has an appendix with every option. :)
<srhb>
You can also see them with man configuration.nix
<tim_nixos>
Hello people, I've bee trying to get my own compiled clang to work for some time now.. I'm having issues with the linker and telling it where the stdlibs are.. some people have pointed me to wrapCC but as far as I understand, this can only be used in nix package definitions, but I'm trying to have all needed information in a nix-shell. When I enter a nix-shell I have tow environment variables which should provide what I need but wh
<tim_nixos>
'clang fibonacci.c -o fib $NIX_CFLAGS_COMPILE $NIX_LDFLAGS' I get not found errors
<avn>
infinisil: both ufraw/nfraw segfaulting right after loading lensfun files. Does it common behaviour, or it happens only on my setup.
<tim_nixos>
clang-7: error: unknown argument: '-rpath ...' and clang-7: error: no such file or directory: ' -isystem ...'
<avn>
(nfraw is newer ufraw fork, which I want to package as well)
<tim_nixos>
does anybody of you know what I'm doing wrong?
vidbina has joined #nixos
<infinisil>
avn: you could try to use an older nixpkgs version, find one where it worked, then you can bisect
<infinisil>
And if it even doesn't work when it initially was introduced, then it's probably an impurity
<avn>
infinisil: yup, although bisecting gimp and gimp's stuff is significant amount of build. I do ofc, but if no one responds
<tim_nixos>
or can anybody point me into the direction of (maybe) helpful documentation?
jperras has quit [Ping timeout: 252 seconds]
__monty__ has quit [Quit: leaving]
jperras has joined #nixos
ng0 has joined #nixos
<infinisil>
avn: you can git bisect skip the commits you want to ignore
<avn>
infinisil: I definelly would like to skip commits, which follow to bootstrap toolchain ;)
<ottidmes>
tim_nixos: the only thing I could suggest, having no experience with this, is to actually first try wrapCC before ruling it out thinking its not necessary
<infinisil>
Apparently just became free and open source and has a long history of positive experiences
<infinisil>
Never used it myself and never will, but it seems like a good fit to package with Nix now :)
<steveeJ>
has anyone has success with the bluejeans-gui app? I can't get the sound to work and can't spot an error message in the log
<steveeJ>
s/has success/had success
<steveeJ>
it seems to be able to connect to pulseaudio as it shows a valid list of sound devices, but there's no I/O
ashkitten has joined #nixos
fendor has quit [Ping timeout: 246 seconds]
mmlb has quit [Ping timeout: 246 seconds]
fendor has joined #nixos
reinhardt has quit [Quit: Leaving]
Lears has joined #nixos
<tim_nixos>
ottidmes: I looked at it but it seems I can only use it when I create a package and I try to avoid that because it seems to me I need to recompile then (which takes about 2 hours on my machine :( ) so I'm looking for a way to get the functionality of wrapCC in a nix-shell
[Leary] has quit [Ping timeout: 246 seconds]
<Taneb>
Is there any way to find the inputs to the hydra jobset from the JSON given by RunCommand?
dbmikus has joined #nixos
<Taneb>
(RunCommand the Hydra plugin)
endformationage has joined #nixos
graphene has quit [Remote host closed the connection]
<bbarker>
Is there any existing work for NixOS on PPC64, or relevant info on what might be needed to make that happen?
lnikkila has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
<gchristensen>
I know some Anonymous Crosscompilers have worked on power8 stuff
goibhniu has quit [Ping timeout: 246 seconds]
<bbarker>
anonymous meaning, unknown to you, but probably some version of gcc? sounds promising, I was thinking of getting a Power9 box. Would it make more sense to just start with nixpkgs on a supported distro?
lnikkila has quit [Client Quit]
lnikkila has joined #nixos
fendor has joined #nixos
<gchristensen>
probably ye
<gchristensen>
I know who they are, and committed the patch on their behalf, but complicated things mean they can't be associated with it
<{^_^}>
[nixpkgs] @domenkozar pushed commit from @jerith666 to release-18.09 « elm: extract makeDotElm and fetchElmDeps »: https://git.io/fp2p8
<dmj`>
gchristensen: using lib.readFile?
<gchristensen>
you pass an array of things you want in "contents", like contents = [ pkga pkgb pkgc ]; etc ... maybe you an tell me more about what you're trying to get done?
<dmj`>
gchristensen: sure, this is more of a test of how to get data into the docker container
<dmj`>
w/o using ADD or COPY...
<gchristensen>
you just add it like you would any other nix expression
<gchristensen>
contents = [ ./my-text-file ]; or even skip that and pass: config.Cmd = [ "${pkgs.hello}/bin/hello" ];
<gchristensen>
contents = [ ./my-text-file ]; or even skip that and pass: config.Cmd = [ "${pkgs.coreutils}/bin/cat" ./my-text-file ];
<dmj`>
isn't ./my-text-file pointing to a file that doesn't exist in the docker container?
<dmj`>
or that's a path that gets expanded on my system
<dmj`>
and nix somehow copies it into the container
<gchristensen>
this isn't just a DSL over a dockerfile, this is Nix building everything, so everything nix usually does will be done here.
mmlb has joined #nixos
<{^_^}>
[nixpkgs] @domenkozar pushed commit from @thoughtpolice to release-18.09 « postgresql: enable systemd service notification on 9.6+ »: https://git.io/fp2hk
hyper_ch2 has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fp2hl
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from Jack Kelly to staging « postgresql: Remove static libs using host platform extension »: https://git.io/fp2hx
<dmj`>
@gchristensen nice, it works
<dmj`>
@gchristensen is there a way I can use tildes in my paths with nix?
<dmj`>
to do relative dirs
<gchristensen>
no, Nix paths are always relative to the directory the .nix file is in
__Sander__ has quit [Quit: Konversation terminated!]
<fendor>
is it normal that localectl can not find any locale?
guaraqe has quit [Remote host closed the connection]
<fendor>
for examples, it cant find any keymaps
<fendor>
may or may not be unrelated, every time I enter an unknown command, the following message is shown and I dont understand why: https://hastebin.com/unuropikac.sql
<ottidmes>
fendor: I has a similar warning, it has to do with conflicting glibc versions of LOCALE_ARCHIVE, which are not always backwards compatible, and we just updated to a version that is not backwards compatible
<fendor>
ottidmes, can i fix that somehow?
<ottidmes>
fendor: in my case I had somehow installed man via nix-env, and that used an older version of glibc, while my system had set LOCALE_ARCHIVE to a value that did not work with it correctly, in my case I just uninstalled it and used my global man
<ottidmes>
fendor: it should be fixable, but it might depend on your situation what you need to do
<ottidmes>
fendor: or maybe in this case just: which perl
capisce has left #nixos [#nixos]
<fendor>
ottidmes, what can I do with that information?
<fendor>
which perl ==> /run/current-system/sw/bin/perl
nika has joined #nixos
<ottidmes>
fendor: so we can rule out any other than global system installation of it
hotfuzz_ has joined #nixos
<clever>
fendor: its likely a different perl, from command-not-found
<fendor>
ok, I dont actually know what to do with that information?
hotfuzz has quit [Ping timeout: 246 seconds]
mayhewluke has quit [Ping timeout: 250 seconds]
<ottidmes>
clever: I just checked, it just used pkgs.perl, so I doubt it
srl295 has joined #nixos
mayhewluke has joined #nixos
<lulia>
I
<lulia>
Is there a solution to easily enter nixos chroot from a livecd (I expect to be able to run nixos-rebuild from there)
<clever>
lulia: nixos-enter
<clever>
lulia: and you only can run `nixos-rebuild build` and `nixos-rebuild boot` inside there
<ottidmes>
fendor: maybe see if you got 2 perl versions when you do: nix-store --query --requisites /run/current-system/sw | grep perl
<lulia>
clever: thanks a lot <3
nikka has joined #nixos
<fendor>
ottidmes, i only get the same version
<fendor>
5.28
Tucky has quit [Quit: WeeChat 2.2]
nika has quit [Ping timeout: 250 seconds]
<lulia>
When running nixos-rebuild I get this error : "error: cloning builder process: Operation not permitted
<lulia>
" what can I do to fix it, please ?
Thra11 has joined #nixos
arjen-jonathan has quit [Ping timeout: 246 seconds]
vidbina has quit [Ping timeout: 250 seconds]
nikka has quit [Ping timeout: 250 seconds]
nikka has joined #nixos
<ottidmes>
fendor: and what about: nix-store --query --requisites /run/current-system/sw | grep glibc
<dmj`>
I noticed Haskell builds when done with nix don't short circuit when a type error occurs, but continue building all modules, this is contrary to how stack and cabal perform
<fendor>
ottidmes, only version 2.27
<dmj`>
Does anybody know why this is
<clever>
dmj`: that might be -j, it will fail later on
<dmj`>
clever: I'm not enabling -j though, I just call nix-build
<ottidmes>
fendor: and what about: readlink -f $(echo "$LOCALE_ARCHIVE")
<clever>
dmj`: nix still uses -j on cabal build
<dmj`>
clever: what...
<{^_^}>
[nixpkgs] @stephengroat opened pull request #51182 → terraform-providers: bump versions and add selvpc → https://git.io/fpaUT
<dmj`>
clever: can this behavior be disabled?
<fendor>
ottidmes, looks fine to me: /nix/store/18lvyggpwnv9i6gn4vdmj89n2frv7l1n-glibc-locales-2.27/lib/locale/locale-archive
<clever>
dmj`: then it will build more slowly
<dmj`>
clever: how much more slowly?
<dmj`>
clever: it should be fine
<dmj`>
clever: I disable core optimizations
<clever>
dmj`: by however many cores you have
jtojnar has joined #nixos
mmercier has quit [Remote host closed the connection]
<gchristensen>
dmj`: how much longer does it build for after the failure? is it building other packages that have not had a type error?
<ottidmes>
fendor: then we need more context, where do you get the error you posted?
fendor has quit [Ping timeout: 250 seconds]
jperras has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<boogiewoogie>
hey, is there a way I can tell the genericBuild's cmake a path to be executed from?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fpaTx
nikka has quit [Ping timeout: 250 seconds]
mmlb has quit [Read error: Connection reset by peer]
mmlb has joined #nixos
<enleth>
Hi there. Second day on NixOS here, standard installation, Plasma 5 desktop on a Thinkpad with integrated graphics, long story short yesterday everything was fine, today all Akonadi helper processes (such as akonadi_imap_resource) are aborting on startup with "Could not initialize GLX", as far as I can tell all other Plasma/KDE applications work fine.
<drakonis>
post configs?
<enleth>
Result: akonadi daemon and database work, but otherwise it's dead with no backend.
<enleth>
On it.
<drakonis>
on a gist or what have you
ng0 has quit [Remote host closed the connection]
sanscoeu_ has joined #nixos
ixxie has joined #nixos
ng0 has joined #nixos
nikka has joined #nixos
mkoenig has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 268 seconds]
nika has quit [Ping timeout: 246 seconds]
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #nixos
nikka has quit [Ping timeout: 246 seconds]
rtjure has joined #nixos
<ixxie>
anybody know how to get a bluetooth speaker like a JBL flip work on NixOS?
sigmundv_ has quit [Ping timeout: 250 seconds]
<ixxie>
tried installing the full pulseaudio package and enabled bluetooth
<enleth>
I've got the whole KDE desktop running fine, and Chrome too
<drakonis>
i ask myself that sometimes
ixxie has quit [Remote host closed the connection]
<enleth>
I'm pretty sure I'd notice Chrome falling back to software rendering, it's unusable without hardware accel
<clever>
ixxie: and you ensured that the daemon was restarted?
<clever>
enleth: this should stress test your hw accel! https://iohk.io/
<drakonis>
hardware.opengl.enable = true; and hardware.opengl.driSupport = true
<drakonis>
weird that its not on by default but
<drakonis>
not pulled in by any DE
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
<enleth>
drakonis: is it going to be useful for anyone if I try to figure out what's going on before I just fix it and forget about the problem?
<enleth>
clever: I don't see an FPS indicator but it's definitely doing 60fps in a maximized window without breaking a sweat
ixxie has joined #nixos
<clever>
enleth: some people have reported the cpu fan ramping up just opening the site
<ixxie>
ah turns out it needed a reboot
mkoenig has joined #nixos
<ixxie>
like gnome needed a restart
<ixxie>
likely*
<clever>
ixxie: pactl exit would also do
sanscoeur has joined #nixos
Ariakenom has quit [Client Quit]
<drakonis>
enleth: its opengl
<clever>
ixxie: also of note, chrome entirely looses capture support if pulse is restarted, then you must restart chrome to get it back
<ixxie>
clever: sound profile is abit weird though.... I think I need pulseaudio-modules-bt
<drakonis>
"Could not initialize GLX"
<ixxie>
clever: I ain't got no chrome
<ixxie>
fff :)
<clever>
ixxie: check the configuration tab of pavucontrol
<ottidmes>
lol, checking the website, I definitely do not have acceleration on, since the FPS is worthless (no suprise using modesetting)
<ixxie>
clever: what is pavucontrol?
Ariakenom has joined #nixos
<drakonis>
ixxie: pulseaudio volume control?
<enleth>
drakonis: I figured as much - but othere stuff *works*, and I absolutely definitely do have working opengl in kwin and Chrome at the same time as akonadi fails to initialize it
<clever>
ixxie: pulse audio volume control
<drakonis>
its good for when you're not running a full DE
<gchristensen>
ixxie: probably just need a2db
<gchristensen>
a2dp*
<bbarker>
what's the correct way to reload all the network configruation (in particular NAT) without rebooting the system in NixOS? I tried nixos-rebuild test and systemctl daemon-reload; rule appears to be added to iptables. So either something else is missing or my rule isn't doing what I think it is
rfold has joined #nixos
<ixxie>
gchristensen: yeah that is what I thought too
<enleth>
drakonis: so it looks like without any graphics driver defined, the intel driver got pulled in anyway, with all the glx libraries and stuff, but not everything links to them consistently?
<clever>
bbarker: the nat is handled by firewall.service, so thats the service you likely want to restart
<ixxie>
gchristensen: but it seems hardware.pulseaudio.extraModules is deprecated
<drakonis>
kvm-intel? that's not the intel driver
<ixxie>
clever: where do I find pavcontrol?
<drakonis>
that's for VMs
<enleth>
drakonis: jeez, yes, I know
<clever>
ixxie: nix-env -iA nixos.pavucontrol
<enleth>
drakonis: I did not state it is
<gchristensen>
ixxie: I didn't need to add any moules for a2dp... nix-shell -p pavucontrol --run pavucontrol
lnikkila has quit [Ping timeout: 240 seconds]
<enleth>
drakonis: I said the intel driver must have gotten installed anyway because *I have working 3D acceleration in some programs*
<enleth>
they start and they render 3D
<drakonis>
see if its not software rendering
<drakonis>
you don't need hardware rendering to draw 3d
<bbarker>
not very clever, I have networking.firewall.enable = false;
<enleth>
drakonis: the "chrome://gpu/" page absolutely positively says that it does use hardware accelerated WebGL right now here. Listen, I'm not trying to argue with you for the sake if arguing, I'm trying to say that something *weird* has emerged here as a result of an incomplete config and understanding things like that often helps find bugs before they surface in a more typical situation, so I can try to *help*
<enleth>
here.
<enleth>
but, sure, I can just fix my config and forget about it, no problem
lulia has quit [Ping timeout: 256 seconds]
monotux has joined #nixos
<enleth>
and let someone else bother being helpful when whatever behavior caused this comes up again somewhere else
ixxie has quit [Quit: Lost terminal]
<drakonis>
i'm just slightly busy right now
ixxie has joined #nixos
<drakonis>
it is definitely not the first time this happened
<{^_^}>
#9415 (by joepie91, 3 years ago, open): libGL not working on non-NixOS (without setting up)
<ixxie>
hmm gchristensen - doesn't seem to work; but there is a note in that section stating 'Using gdm as the display manager can cause failures to connect to A2DP Sink.'
<gchristensen>
ack
<ixxie>
so that is likely my issue
<drakonis>
enleth: you don't have mesa
orivej has quit [Ping timeout: 246 seconds]
<tilpner>
I'm cross-compiling out-of-tree kernel modules, and it wants to have "gcc"
<tilpner>
Right now, I put a writeShellScriptBin "gcc" into nativeBuildInputs that execs $NIX_CC/bin/*-gcc "$@", but that is most likely terribly wrong
<tilpner>
It worked fine for the first module, but before I temporarily™ use it in the second one... what's a better solution to this?
<enleth>
drakonis: I do have *a* mesa derivation in nix store (mesa-noglu-18.1.7), as well as mesa-drivers (mesa-drivers+txc-18.1.7)
<enleth>
stuff that does start and render 3D links to libglvnd, which I assume somehow loads mesa at runtime, I'm not familliar with that library, nixos or not
endformationage has quit [Ping timeout: 250 seconds]
graphene has quit [Remote host closed the connection]
<enleth>
actually, kwin_x11 (which starts and compositest just fine) links to exactly the same GL libraries as e.g. akonadi_sendlater_agent which aborts with the GLX error
graphene has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #51183 → Fix breaking changes to make-derivation → https://git.io/fpam5
<joepie91>
enleth: which Thinkpad are you using?
sanscoeur has quit [Remote host closed the connection]
<joepie91>
ixxie: you may need to set the audio profile a few times before it sticks
<joepie91>
known issue (not specific to NixOS either)
<enleth>
joepie91: T480s 20L7001LPB, integrated graphics only
<enleth>
HD Graphics 620, to be exact
<joepie91>
enleth: one moment, let me grab my own thinkpad and compare...
sanscoeur has joined #nixos
<joepie91>
(I think I have a CPU gen before you, but might still be same GPU)
<joepie91>
yep, 620 too
arjen-jonathan has quit [Ping timeout: 252 seconds]
<enleth>
i7-8550U
<joepie91>
enleth: I don't have any special configuration for Intel graphics and it all works here :/
<joepie91>
as far as I know
<joepie91>
only driSupport32Bit set to true
<joepie91>
enleth: i5-7200U here
<joepie91>
(x270)
<enleth>
should be the same exact thing as far as this is concerned
<joepie91>
yeah
<joepie91>
also running Plasma
<joepie91>
sorry, I have no idea then :/
<enleth>
and there still is the fact that I was able to start Akonadi once and it worked, fetched emails, displayed them in KMail and all that
<enleth>
yesterday
<joepie91>
it sounds like you hit an edge case of some sort
<bbarker>
clever, interesting ... after enabling the firewall, I can no longer access my container internally from the host; previously I was able to do so, e.g. lynx 192.168.100.11:1234 used to work, now it doesn't. Here is my config, if anything looks fishy.
<enleth>
joepie91: I'll keep investigating, but not now, drakonis's habit of assuming to know best what I have or do not have working and installed here got me a bit too irritated to focus on this at the moment
<bbarker>
(but lynx 192.168.100.11:1234 does work internally inside the container)
<drakonis>
enleth: sorry, i'm busy with something else right now
<drakonis>
otherwise i would've been much more helpful
<enleth>
drakonis: that's fine, I don't have a problem with it
ThatDocsLady_ has quit [Ping timeout: 268 seconds]
<enleth>
drakonis: I don't expect you to drop stuff and come running to help, but I was a little put off when you adamantly stated things about what I see here that were simply inconsistent with reality, despite me trying to say that it really *is* something weird going on
<enleth>
no hard feelings, just a bit irritated
<bbarker>
for network interfaces is "ve-+" actually expanded into a list? this seems unlikely, since I have internalInterfaces = ["ve-+"]; which seems like it would be a list of lists, but maybe that's how the nix expression works
<joepie91>
enleth: no worries, I can't help much more now anyway, some health issues keep me from sticking around for too long
<enleth>
drakonis: I'm probably not going to touch it today anyway and I'll stay on the channel, so just message me here with any ideas you get on how to figure out what's going on, I'll try it out when I'm around
<drakonis>
alright
<enleth>
if I do decide to touch it, I'll snapshot the rootfs first
nikka has joined #nixos
<ixxie>
joepie91: hmm... so a completely unreproducible imperative procedure, sounds like a dream!
<enleth>
I have that ZFS set up, I might as well make some proper use of it
<joepie91>
ixxie: yep, bluetooth is a nightmare
sanscoeur has joined #nixos
<enleth>
it Just Works, except when it doesn't
<ixxie>
lol
<enleth>
then it Just Doesn't Work, I guess
<ixxie>
joepie91: do you know if this issue has to do with gnome or is it even more general?
monotux has quit [Quit: prutt]
monotux has joined #nixos
freeman42x]NixOS has joined #nixos
<joepie91>
ixxie: more general, I've heard it reported for pavucontrol from a few people, and have had the same issue with pavucontrol myself
erictapen has quit [Quit: leaving]
<gchristensen>
apparently ZFS 0.8.0 will contain stable encryption support
halfbit has joined #nixos
<gchristensen>
oh, and the reason that is notable is because 0.8.0 is in RC status
<bbarker>
hmm, i'm getting a warning about getting locked out even though I have "extraGroups = [ "wheel" "networkmanager" ];" and a non empty openssh.authorizedKeys.keys for two users
<gchristensen>
what does the error say?
<bbarker>
building the system configuration...
<bbarker>
error:
<bbarker>
Failed assertions:
<bbarker>
- Neither the root account nor any wheel user has a password or SSH authorized key.
<bbarker>
You must set one to prevent being locked out of your system.
<bbarker>
(use '--show-trace' to show detailed location information)
<bbarker>
i've tested the authorized keys and wheel usage already; i just was trimming out passwords
<bbarker>
oh, i bet it is coming from my container config
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @puffnfresh to master « marp: 0.0.13 -> 0.0.14 »: https://git.io/fpacT
<enleth>
gchristensen: unfortunately, trim/discard support is still not coming
<enleth>
so using ZFS on an NVMe pretty much requires doing a send/blkdiscard/zpool create/send from time to time as the thing gets slower with time otherwise
<cransom>
i'm still on btrfs on my ssds/nvme drives because zfsonlinux doesn't have a trim patch landed on stable yet :\
<gchristensen>
this is interesting, I don't understand the ramifications of no trim/discard. also, I think all my deployments of zfs are either on short-lived systems or ones with rotational platters
<gchristensen>
looks like I don't get TRIM by default anyway since I use luks
nikka has quit [Ping timeout: 268 seconds]
lord| has quit [Ping timeout: 260 seconds]
<azazel>
I need for my firefox to load a certificate from a smartcard using opensc-pkcs11.so library, but its path needs to be constant, any idea how to do that? I checked the config options, but there's nothing pertaining to opensc
<magnetophon>
I maintain faust, a compiler that generates cpp files. It has scripts to comile these to a binary using GCC. After an attempted of faust one of these scripts gives me "fatal error: boost/circular_buffer.hpp: No such file or directory", but the wrapper around it sets NIX_CFLAGS_COMPILE to the correct boost path, amongst others. any ideas?
<magnetophon>
sorry for the bad proof-read. I meant to say "after an upgrade of faust".
lord| has joined #nixos
<bbarker>
gchristensen, i'm sorry, it actually was the container user causing the problem... forgot I had a second container user
lord| has quit [Read error: Connection reset by peer]
endformationage has joined #nixos
<ottidmes>
gchristensen: I run my LUKS with --allow-discards, which should enable TRIM, although it has security risks
lord| has joined #nixos
<bbarker>
though it seems like a container shouldn't necessarily need a privileged user thanks to root-login; i suppose I could always add a superfluous user to make it pass the test
<gchristensen>
more to my point of I've been using this machine pretty heavily for a year without trim, so I don't feel so worried about zfs
<ottidmes>
gchristensen: I was about to use ZFS on SSD VPSes, so I am now rethinking it slightly, but I probably will just have to wait and see, I can always reinstall them later if it becomes a problem
<nbathum>
anyone up for reviewing https://nixos.wiki/wiki/Talk:Lvm ? I ran into a few things when following the page that didn't quite line up
<nbathum>
put those into the talk page
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
<pie___>
thx
<bbarker>
clever, it appears that you don't need firewall enabled for NAT - at least, not for containers, but the containers config has its own port forwarding entries
<pie___>
azazel: the irony is i read that the other day and promptly forgot
<azazel>
pie___: you aren't alone, it happens to me too a lot with nixos, information is scattered in many places, like the three manuals, the wiki, the nixpkgs sources, the discourse site, the old mailing list, the old old mailing list and so on...
lord| has quit [Read error: Connection reset by peer]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lord| has joined #nixos
lord| has quit [Read error: Connection reset by peer]
lord| has joined #nixos
lord| has quit [Read error: Connection reset by peer]
<bbarker>
Is it possible, with a declarative container, to start up a new "copy of" that container dynamically? Probably not, I'm guessing it is better to use a separate container config file in this case
cyounkin_ has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
rfold has quit [Quit: leaving]
pie___ has quit [Ping timeout: 256 seconds]
jperras has quit [Ping timeout: 268 seconds]
<kingemp>
tilpner, that just spits out a "/nix/store/...-julia-1.0.1" without actually building it seems
<kingemp>
I tried nix-collect-garbage and verified it is not installed
jperras has joined #nixos
<gchristensen>
nix-build '<nixpkgs>' -A julia_10 --check
Thra11 has quit [Ping timeout: 244 seconds]
<kingemp>
gchristensen, awesome that did the trick! thx
asymmetric has quit [Ping timeout: 246 seconds]
c00w has joined #nixos
jackdk has quit [Remote host closed the connection]
jackdk has joined #nixos
porrifolius has joined #nixos
<porrifolius>
Hi, I'm trying to move from Ubuntu to NixOS, I'm also trying out Xfce is it appeared to be a 'supported' desktop environment on NixOs... I'm having some problems. Not much experience in nixos, xfce, or xmonad so that might be why!
c0bw3b_ has quit [Remote host closed the connection]
<magnetophon>
porrifolius: Feel free to ask! And what does xmonad have to do with it?
<porrifolius>
I've got a message popping up when logging into xfce, via lightdm, saying that the panel is not running, that I can't change settings because it's in kiosk mode...
<porrifolius>
magnetophon: I'm using xmonad as the layout manager in xfce... xfce+xmonad
<magnetophon>
porrifolius: have you tried without xmonad, to narrow down the issue?
ninjin has quit [Remote host closed the connection]
ninjin has joined #nixos
<porrifolius>
I will do so, however I didn't have the panel message problem initially. xmonad was working for multiple logins, then I was trying to 'hide' the panel, some posts I saw called xfce4-panel -q and then re-ran it when they wanted it to 'reappear'
<porrifolius>
magnetophon: I did that in the command line, I could re-run the panel and it would appear, but since then on login I've had this problem.
dbmikus has quit [Ping timeout: 250 seconds]
<porrifolius>
magnetophon: The messages on login suggest that I should just run it and then save session on exit to fix the problem... that doesn't seem to be working though. I'll try now without xmonad.
porrifolius has quit [Quit: Leaving]
<boogiewoogie>
gchristensen: with `the installation` I meant everything that's in the store's out-path of the derivation after installing it -- everything read-only. i'd like one config directory writable, since I don't know how to edit the source code to place it somewhere else (eg in ~/.config like most packages)
<gchristensen>
no, /nix/store can't have anything writable in it
<boogiewoogie>
alright then, good to know. thanks!
<magnetophon>
can I do a rollback on a nixops managed system from within that system? My co-coder removed sshd, I diud a deploy, now we can't reach the machine. But I'm still connected, so I'd just need to do a rollback
<porrifolius>
magnetophon: Hmmmm... how does one _not_ use xmonad? Selecting the plain xfce (out of none+xmonad, xfce, xfce+xmonad) option before logging in still left me with working xmonad keybindings.
<magnetophon>
porrifolius: sorry, idk, never used a hybrid wm/dm
<porrifolius>
magnetophon: In any event, having logged in/out multiple times the panel now seems to be run at login but still pops the message saying that it is in kiosk mode and can't have it settings changed. I'll have a look for an answer.
<Unode>
hi guys, how do you typically build a static binary in nix-shell (non-nixos)? I'm trying to build a static binary with 'nix-shell -p zlibStatic gcc5' but I still get http://dpaste.com/1062V6S
vidbina has quit [Ping timeout: 250 seconds]
<Unode>
sorry `nix-shell --pure -p ...`
<ottidmes>
porrifolius: uninstalling xmonad would definitely do the trick (by changing your configuration.nix and doing nixos-rebuild boot and rebooting, maybe nixos-rebuild switch works too and restarting the display-manager)
<Unode>
ok that was odd. Seems like `nix-shell -p zlibStatic zlib.static gcc5 glibc.static --pure` works. I don't get why both `zlibStatic` and `zlib.static` are needed
porrifolius has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @rht opened pull request #51195 → chromium: Add ungoogled flag to enable ungoogled-chromium patches → https://git.io/fpa68
<gchristensen>
enleth: they're brand new!
jperras has joined #nixos
<enleth>
gchristensen: the way I'm reading this, there's a good chance for a branch that does TRIM, but merging it to master anytime soon is probably still rather unlikely because it would interfere significantly with keeping ZOL in sync with OpenZFS
vk3wtf has quit [Ping timeout: 252 seconds]
<enleth>
so it would take one of the OpenZFS contributors to port/merge it, so that ZOL can inherit it down the line
<enleth>
and it would actually prompt ZOL to port that instead of merging the dweeezil's port, unless maybe they happen to be extremely similar by sheer chance
<porrifolius>
In nixos how do you find out where an app is reading/writing configuration? Trying to resolve a problem with a kiosk-mode panel in xfce and the internet points to /etc/xdg... and /usr/local/etc/xdg... etc. Where would these be in nixos?
<Ralith>
joyent does filesystem development? huh.
<clever>
porrifolius: strace and/or strings
<clever>
porrifolius: it might obey --prefix, which would result in $out/etc/ on nix
<enleth>
Ralith: they develop SmartOS and contribute back to illumos, so it's not a huge stretch that they'd touch ZFS too
<Ralith>
enleth: weird, I'm used to thinking of them as the node guys