<alphor>
I think additive works fine actually, I don't want to replace the existing dependencies, just add more. I'll try that instead of overriding.
<alphor>
Thanks!
hakujin1 has joined #nixos
galaxite has quit [Ping timeout: 240 seconds]
jasongrossman has joined #nixos
<jasongrossman>
Hi all. Can someone tell me the current status of stumpwm on NixOS? I've just had to reinstall NixOS from scratch (strange that I should have had to, I know, but rebuild-switch was broken), and I'm having trouble installing stumpwm.
hakujin1 has quit [Ping timeout: 265 seconds]
<Drakonis>
looks fine to me
<Drakonis>
did you not use the service?
hakujin1 has joined #nixos
<jasongrossman>
Drakonis: I did. It won't build in 18.03.
<jasongrossman>
Drakonis: Nor in unstable at the moment.
<Drakonis>
hmm how odd
<jasongrossman>
Drakonis: I had it working in unstable previously, but I had to do something non-declarative to get it to work, and now I've lost that. :-(
<Drakonis>
it installed here btw
<jasongrossman>
Drakonis: huh.
<Drakonis>
take a lesson from this, keep your nix files somewhere
<jasongrossman>
Drakonis: Just by setting windowManager.default and windowManager.stumpwm.enable?
<Drakonis>
it is available as a lisp package
<jasongrossman>
I've tried lisp-stumpwm, both declaratively and imperatively and both in stable and unstable (which have different versions).
<Drakonis>
i did a dry run
<jasongrossman>
Most interesting thing is that lisp-stumpwm won't install from configuration.nix, but nix-env -i lisp-stumpwm works.
<Drakonis>
it created it correctly
<Drakonis>
install succeeded lol
<jasongrossman>
I've remembered the problem with configuration.nix: it has to be called lispPackages.stumpwm.
n0qqe has joined #nixos
hakujin1 has quit [Ping timeout: 276 seconds]
<jasongrossman>
So that gets me the package. But if I set it as windowManager.default then nixos-rebuild tries to build it and fails.
noqqe has quit [Ping timeout: 240 seconds]
n0qqe is now known as noqqe
puffnfresh[m] has quit [Quit: issued !quit command]
<Drakonis>
hmm, i don't run WMs
<Drakonis>
so i can't answer this part
<Drakonis>
i'll do an dry run with stumpwm to check
<Drakonis>
have you tried only firefox instead of firefox-bin?
<witchof0x20>
I have, but I can try it with hardware.opengl.driSupport32Bit = true
<clever>
driSupport32Bit doesnt need a restart
<Drakonis>
its a library thing
<Drakonis>
clever, what's the proper workflow for doing branches for submission?
<witchof0x20>
just switched to firefox, and the issue persists
hakujin1 has joined #nixos
<clever>
Drakonis: i try to make a new local branch forked from master, push that to my fork, and then file a PR against master
<Drakonis>
also relevant, how do i split commits
<Drakonis>
i have two packages to update
<Drakonis>
i am terrible at git and i should perhaps google this
<Drakonis>
look it up on the internet
<clever>
if you pipe `git show <hash> | git apply` you can take a commit from another branch and apply it to the current one
hakujin1 has quit [Ping timeout: 256 seconds]
<witchof0x20>
webgl issues solved. I had a firefox version installed to my user environment that wasn't working with GL. running `nix-env --uninstall firefox` and using the system firefox fixed it
<witchof0x20>
Thanks for the assistance!
<Drakonis>
no problem
hakujin1 has joined #nixos
MP2E has quit [Remote host closed the connection]
<Drakonis>
i have to say that flatpak works now
kyren_ has joined #nixos
init_6 has quit [Ping timeout: 240 seconds]
hakujin1 has quit [Ping timeout: 276 seconds]
kyren has quit [Ping timeout: 260 seconds]
<Drakonis>
i'm already starting to appreciate nixos again
jmeredith has quit [Quit: Connection closed for inactivity]
<judson>
Well, hm. After rebuilding the whole kernel and deploying to servers from nixpkgs:master, simp_le 0.9.0 is still failing to renew my cert.
<mdash>
judson: hmm, i thought acme was preferred these days?
<clever>
enableACME in nginx just works for me
vmandela has joined #nixos
hakujin1 has joined #nixos
<samueldr>
judson: just ralized I had a terminal open to fix my issue and test
<samueldr>
and it updated once I freed some inodes
* samueldr
needs to dig into why it's an issue
<samueldr>
(unrelated to nixos, it's a proxmox container running nixos)
v0|d has quit [Remote host closed the connection]
pie___ has quit [Remote host closed the connection]
pie___ has joined #nixos
hakujin1 has quit [Ping timeout: 260 seconds]
<maerwald>
installing python36Packages.neovim has no effect, vim still cannot see the package
<maerwald>
using pip to install manually is even more broken
<Drakonis>
i'm curious aboutuse nix-shell
lpsmith- is now known as lpsmith
<Drakonis>
woops
<Drakonis>
do use nix shell for that
<maerwald>
was that a question?
<Drakonis>
no, it was an answer
<Drakonis>
you need to use nix-shell with python packages
<samueldr>
Drakonis: that's not helpful for their editor
<Drakonis>
i am however curious about something else
<maerwald>
I already have a perfect vim configuration with vim-plug that can simply be cloned, why would I duplicate that effort into a non-vim environment, which might arbitrarily break?
<maerwald>
and it's portable across distros
<clever>
as long as nix is present, i can run nix-build or nix-env to install a config similar to what i linked
<clever>
and then it can be even more reproducible
<samueldr>
clever: would it be possible to use vim_configurable to piggy-back on its environment, but not use it for the configuration files?
<clever>
vim_configurable still obeys ~/.vimrc
<maerwald>
I just want the python plugin to work, nothing else
<samueldr>
so using it only to build the environment for those plugins should be workable I guess?
<clever>
samueldr: probably
vmandela has quit [Ping timeout: 264 seconds]
Fare has quit [Ping timeout: 268 seconds]
vmandela has joined #nixos
primeos has quit [Ping timeout: 240 seconds]
<maerwald>
aha
<maerwald>
so I guess I'll just give up
primeos has joined #nixos
<ldlework>
clever: would a solution to some of this be nice tools for querying the path location of things?
abueide has quit [Remote host closed the connection]
<ldlework>
so you could tell a third-party application where to find python by referring to the package name
<ldlework>
like $(nix-info -i python3)
<ldlework>
something i dunno
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<clever>
ldlework: its best to bake those paths into a config file, since running a tool like that will be slow and randomly upgrade things
<dmc>
maerwald, that's the spirit
<ldlework>
clever: sure but it would be an escape hatch
<ldlework>
and wouldn't cause any decoherence in the store
<Drakonis>
wwoah nelly i got a home manager config now
<mdash>
maerwald: why wouldn't you use nix for everything, really :)
<ldlework>
Drakonis: nice
<dmc>
vim-plug is great
<Drakonis>
what are the things i can move into it?
<mdash>
maerwald: more generally, "installing" stuff is only rarely useful in nixos
<Drakonis>
only things local to the user right? can't move desktop environments or any of that?
<maerwald>
mdash: why would I reproduce my configuration in a non-vim config format?
<maerwald>
then I have to maintain two configurations
<maerwald>
I don't like configuration complexity.
<Drakonis>
looks workable but not there just yet
primeos has quit [Ping timeout: 248 seconds]
<dmc>
I mean, if you can't get the Python Neovim client to work, doesn't really matter what your Vim config is
primeos has joined #nixos
<dmc>
maybe you even want to just try it with Neovim
<dmc>
it/your vimrc
<maerwald>
I don't use neovim
<dmc>
right
init_6 has joined #nixos
<dmc>
emphasis on "try" :p
<Drakonis>
just moved most of my stuff in
<Drakonis>
fabulous.
<maerwald>
importing the neovim python client in neovim works, probably because of UpdateRemotePlugins
<maerwald>
not because of nix
<maerwald>
I suspect it never actually worked
<maerwald>
and no one noticed
<dmc>
you have roxma/vim-hug-neovim-rpc as well?
<Drakonis>
nice, time to send it up
<maerwald>
yes
<dmc>
maerwald, you're setting up Deoplete?
<maerwald>
yes
<dmc>
I'm trying to make do with ALE, but if I end up setting up Deoplete and ..find anything.. will ping ya ┐(ツ)┌
<FRidh>
It's the Qt plugins. An earlier solution did not have this specific problem as it was using symlink trees, but there was something else with that solution.
<joepie91>
so... known impurity?
<FRidh>
yes
<joepie91>
blargh.
<joepie91>
any solutions in sight?
<FRidh>
trade-off
<joepie91>
FRidh: also, have a link to more info about this issue?
<FRidh>
i recall ttuegel once wrote more about it, let's see if I can find it
<joepie91>
thanks
jlund has quit []
<joepie91>
and to think I was just restarting to resolve a bug in Atom...
<joepie91>
yay, after a rebuild/update, I have my kwin back
<joepie91>
still interested in more info about the issue though :P
<butchery>
Trying to upgrade 17.03 => 18.03, getting a syntax error in fetchpatch/default.nix, any obvious clues?
Lisanna has quit [Remote host closed the connection]
<butchery>
nvm, dropped back to 17.03 channel and did update first
<butchery>
my bad
<ben>
What's the best way to pin my nixos config to a specific nixpkgs revision? Do I need a wrapper script around nixos-rebuild or can I do it in .nix?
<clever>
ben: using nix.nixPath in configuration.nix, you can control the default value of $NIX_PATH
<clever>
ben: just keep in mind that it only effects the NIX_PATH after nixos-rebuild has finished, not the current nixos-rebuild
<ben>
That's also gonna take effect in the subsequent build, right?
<ben>
right
<ben>
hmm that seems fragile
<clever>
there is a trick i have seen somebody do before, let me find it
<ben>
a wrapper script wouldn't be the worst
<ben>
(and then just like... a nixpkgs git submodule in my config repo I guess)
<ben>
hmm, that seems spookier than using -I every time
<clever>
it will basically make nixos remember the last -I
<jasongrossman>
clever: I've failed to diagnose the problem that was stopping nixos-rebuild from working, but I think I've worked around it by making a fresh root directory using the installer.
<joepie91>
FRidh: thanks
<jasongrossman>
clever: Backing off to 18.03 and 17.09 didn't help.
<jasongrossman>
clever: The workaround is the sort of thing I'm used to having to do with other operating systems anyway, so it doesn't feel like a disaster!
<typetetris>
Hi there I want to mention `systemctl` in my sudoers config in `/etc/nixos/configuration.nix` and tried "${pkgs.systemd-237}/bin/systemctl" but I get `attribute systemd-237` missing on `nixos-rebuild switch`, what do I need to change, to make it work?
<typetetris>
hmm `nix-repl '<nixos>'` complains about some path not being writable, `nix repl '<nixos>'` works. So just use the later one?
<symphorien>
,nix-repl
<{^_^}>
To use nix-repl with Nix 2.0, either use the new `nix repl` or `NIX_REMOTE=daemon nix-repl`. Just using `nix-repl` gives an error because it is linked to Nix 1.x which requires NIX_REMOTE to be set correctly, while Nix 2.0 doesn't (and unfortunately it wasn't kept for backwards compatibility)
<LnL>
2.0 is smarter about knowing when to use the daemon
<typetetris>
Thanks
<maerwald>
why is pip broken in nix?
silver has joined #nixos
<symphorien>
Virtual environments are fine in my experience
<maerwald>
so you run vim inside a virtual environment every time?
<maerwald>
also, doesn't answer the question :)
<symphorien>
Well I don't use pip without virtualenvs so...
<maerwald>
great
<symphorien>
Also I usually use nix-shell instead of virtualenvs
<maerwald>
so you run vim inside nix-shells only?
<symphorien>
What are you trying to do ?
<maerwald>
install a python module so vim can see it
<symphorien>
The idea is: nix prevents interference between two installed programs. So installing a plugin/module/library will usually no work. What you should do is install vimWithYourPlugin instead of just vim
<maerwald>
I don't want nix to mess with my vim configuration, nor do I want to reconfigure a huge plugin system that works well with vim-plug in nix-lang
<LnL>
vim uses python from PATH by default AFAIK
<symphorien>
Then you can install (python.withPackages(ps: with ps; [ numpy ])) instead of python
<symphorien>
numpy is an examm'e
<symphorien>
*example
<LnL>
so I think installing a python interpreter using withPackages would work
<{^_^}>
[nixpkgs] @Ma27 opened pull request #44498 → lib/trivial: remove deprecation warning for `lib.nixpkgsVersion`. → https://git.io/fNXRm
rprije has quit [Ping timeout: 256 seconds]
<siriobalmelli>
... when I add 'nonlibc' to the 'buildInputs' of another derivation and then run 'nix-shell' ... I can see nonlibc being built before the shell is started - but it's missing from my PKG_CONFIG_PATH
<ldlework>
infinisil: you should add the shell script example
<infinisil>
A wiki page for such small examples might be nice
<ldlework>
lmao i've only said that like 20 times
<infinisil>
Oh right that was you xD
<bobvanderlinden>
I'm trying to cross-build a sdimage for RaspberryPi3 and while doing so I ran into a problem with building freetype, for which I probably need some help. I think it wants the native compiler to be set (x86_64-linux) so that it can build internal tooling in the arch of the build system that is used further along the build process. How can I refer to the native CC when doing a cross-build?
hakujin1 has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<bobvanderlinden>
basically, to reproduce the error I used: `nix-build . -A pkgsCross.aarch64-multiplatform.freetype` on a recent nixpkgs
<Enzime>
is there any way to see what packages in nixpkgs have been built and are stored on the cache server?
<infinisil>
ldlework: heh, may i suggest some cleanups then: remove unneeded config and lib argument, fix indentation on the '' part, assign envirnment.systemPackages directly (not through config)
neeasade has quit [Ping timeout: 240 seconds]
<infinisil>
(Am on phone rn, can't edit myself)
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
troydm has joined #nixos
hakujin1 has joined #nixos
<ldlework>
infinisil: not sure what you mean about indentation on the '' part
<joko>
Hello, is anyone using pcmanfm? If so, how are you dealing with MIME types? Dolphin finds the file associations, but pcmanfm does not
<ldlework>
i fixed everything else though
<infinisil>
ldlework: see any example of these in nixpkgs
<ldlework>
infinisil: does nix not add the whitespace before the lines
<TheBrayn>
I installed openssl globally but it doesn't seem to be available for my user when compiling things
<infinisil>
,library TheBrayn
<{^_^}>
TheBrayn: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
hakujin1 has quit [Ping timeout: 260 seconds]
<ldlework>
OK fixed
<infinisil>
ldlework: nice, thanks :)
<TheBrayn>
where does the default.nix file for my user go?
<TheBrayn>
and why does nix-shell -p openssl open up bash instead of zsh?
<symphorien>
you can do nix-shell -p openssl --run "exec zsh"
<infinisil>
TheBrayn: what default.nix do you mean? And bash is just the default, you could just start zsh in the shell however, which will clear env vars though (but direnv can solve that problem)
<infinisil>
Theres the options page I guess, which would be easy if you already knew systemd
<ldlework>
infinisil: now I need an example of wrapping an existing package's binary. For example I need the kitty program to actually run "optirun kitty" so that I get GPU acceleration.
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fNXE2
derchris has joined #nixos
<infinisil>
ldlework: neat! What's the chmod for though?
<ldlework>
infinisil: it was only readable by root
<infinisil>
ldlework: i see, would be nicer to use preStart for that (touch /tmp/log && chmod
<infinisil>
Tbh, I usually think that to create examples/tutorials for others, you need to have a good understanding of it first, because otherwise bad examples could be passed along, to be seen by many others. But since nobody else is doing it I think it's fine :P. And we're here to help with it too
* infinisil
gives some love to ldlework
<ldlework>
I'm not making examples for the sake of it. These are patterns I want to use. That I opt to commit it to the wiki seems incidental to me :)
<infinisil>
Yeah, but it will still be seen by a lot of people
<infinisil>
ldlework: Since there's a wiki entry for ,timer now, you can change it to point to that :)
<ldlework>
i don't know how to operate the bot
<ldlework>
symphorien: would you mind?
<infinisil>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<symphorien>
ldlework: sure, let me reread man tmpfiles.d
<ldlework>
Now I just need an example of wrapping a binary with an overlay. The example I have, is making it so running 'kitty' actually runs 'optirun kitty'
<ldlework>
A section on overlay tricks would be neat
Tritlo has joined #nixos
<{^_^}>
[nixpkgs] @sorki opened pull request #44504 → logrotate: make mailutils overridable → https://git.io/fNXus
<infinisil>
I'll argue that the example in the wiki should be dead simple, this umask/chmod thing might just confuse people and makes them add it to their timer even if they don't need it
<symphorien>
systemd includes a utility to manage somes (empty) files declaratively
<infinisil>
That's why I just used a simple `echo hi` in my original example
<ldlework>
ok fine
<symphorien>
makes sesn
<symphorien>
*sense
<ldlework>
fixed
<ldlework>
ok now we just need the wrapper example :)
<cocreature>
I haven’t read all of the backlog so sorry if this wis already mentioned but I’ve used symlinkJoin for usecases where I wanted to wrap a binary while also keeping things like desktop files, man pages, …
<ldlework>
infinisil: do you think that this is a good one too? nixpkgs.config.packageOverrides = pkgs: { unstable = import <nixos-unstable> {}; };
<infinisil>
ldlework: Okay I'll write one
<infinisil>
ldlework: Overlays are preferred nowadays
<ldlework>
i wonder what the overlay version of this is
<ldlework>
infinisil: extensive, i'll have to study these
phry has joined #nixos
<ldlework>
well done
<infinisil>
Thanks, may need some cleaning up, I didn't explain makeWrapper vs wrapProgram vs writeScriptBin at all
<ldlework>
yes but that is the style choice
johnw has joined #nixos
<ldlework>
it is a tutorial or a reference
<ldlework>
though perhaps a tiny small explication might help
<{^_^}>
[nixpkgs] @bignaux opened pull request #44505 → [WIP] gscrabble : init at 0.1.2 → https://git.io/fNXzP
<genesis>
^ if gnome3 people can tell me why this theme has disappear.
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
<infinisil>
genesis: I can't find it ever being there, was it under a different name?
<genesis>
no, i copy paste and fix little thing
<infinisil>
Huh? So it didn't disappear, it just wasn't there?
<phry>
is there a way to build a path relative to the current folder, with a variable part? I'm always getting paths relative to the nix store, not relative to the original folder.
<phry>
(what I'm trying to do is include all .nix files in the current folder, there may be an easier way to do that alltogether?)
<phry>
my current attempt is: map ( v: "${./.}/${v}" ) (builtins.attrNames (lib.filterAttrs ( n: v: v == "regular" && n != "default.nix" ) (builtins.readDir ./. )))
<genesis>
my derivation works, i think i could propose it anyway, even if it's not tagged 3.16 ?
<infinisil>
Sorry I don't know much about gnome stuff
<ToxicFrog>
It would be really nice if, say, each top-level directory in nixpkgs had a default.nix that all-packages.nix loaded, rather than all-packages.nix being a monolithic 700KB 22kLOC disaster.
<ldlework>
lol
<ldlework>
i really wonder what is gonna be done about nixpkgs
<ToxicFrog>
It would also be nice if retroarch/libretro's nixpkg were at all documented
Anton-Latukha has quit [Quit: Leaving.]
<{^_^}>
[nixpkgs] @pSub pushed 7 commits to add-missing-licenses: https://git.io/fNXgB
<infinisil>
ToxicFrog: Yeah I thought about doing something like that before
<ToxicFrog>
This is documented nowhere at all and demonstrated in nixpkgs somewhere near the bottom of all-packages.nix rather than someplace sensible like in /pkgs/misc/emulators/retroarch
jasongrossman has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @ryantm merged pull request #44468 → Use LLVM 6 with llvm-hs, don't run tests on Darwin. → https://git.io/fNXUy
<{^_^}>
[nixpkgs] @ryantm pushed commit from @TravisWhitaker to master « haskellPackages.llvm-hs: Use LLVM 6 with llvm-hs, don't run tests on Darwin. »: https://git.io/fNX2B
<{^_^}>
[nixpkgs] @pSub pushed 16 commits to add-missing-licenses: https://git.io/fNX20
<{^_^}>
[nixpkgs] @xeji pushed commit from @vincentbernat to master « haproxy: 1.8.9 -> 1.8.13 (#44487) »: https://git.io/fNX2z
<noqqe>
im gonna give a short intro talk about nixos in our hackerspace in nuremberg in 2 weeks
<noqqe>
any hints/tips what to mention?
<noqqe>
whats the best selling points in talk feedback you got from your audience about nixos?
<{^_^}>
[nixpkgs] @timokau opened pull request #44506 → Sage new deps → https://git.io/fNX2V
<jD91mZM2>
I personally really like that you can share the config to a new system to get it almost identical to the config you took
<jD91mZM2>
Like if I want to move computer right now I might need to worry about browser cookies and all that user stuff, but no lightdm setup again
<jD91mZM2>
Setting up NixOS to me is like setting up Arch but you're guaranteed to only need to do it once
<noqqe>
id like to quote you on that :)
<jD91mZM2>
"<insert quote>" - jD... uhh... 19... some guy
<jD91mZM2>
(Joke about my username)
<infinisil>
What the hell is that user name anyways?!
<jD91mZM2>
You know how kids sometimes think they will never move on from their favorite hobby? My hobby was making stop motion animation with legos. So LEGOlord208. Decided to change it to something that looks and pretty much is random
<mikky>
so, I'm trying to figure out how crypttab works at NixOS. Is there some kind of official support? The use case is a non-root storage with ZFS on top of it. It's a non-essential filesystem so it should not be a part of pre-boot process and should not halt boot if it fails.
gurmble has joined #nixos
<mikky>
there isn't much docs on LUKS and everything I found so far deals with FDE or at least encrypted root
<{^_^}>
[nixpkgs] @xeji merged pull request #44489 → haproxy: use getaddrinfo() on Linux → https://git.io/fNXCY
<{^_^}>
[nixpkgs] @xeji pushed commit from @vincentbernat to master « haproxy: use getaddrinfo() on Linux (#44489) »: https://git.io/fNXwi
<nand0p>
is someone working on "Shouldn't this be a direct path via ${kdeWhatever}/bin/kbuildsycoca5? " is the fix for now is to rebuild at the commit before 8b3fb83160c68209e07914ac2201eb6fce9d727b or is there another workaround?
<samueldr>
still needs to be fixed, causes garbage errors, but doesn't actually break the build
<nand0p>
:(
<samueldr>
nand0p: turn that frown upside down :)
<nand0p>
:)
<samueldr>
it says "warning: error(s) occured while switching to the new configuration"
<samueldr>
but as you can see, it's that benign error and it still switched
<samueldr>
so it's probably not worth the revert, especially since we'll have the fix PR soon ;)
<nand0p>
excellent. thank you
<samueldr>
(that warning message could be a bit more descriptive and explain how the system **was** switched, but to check and understand if the errors are problems or not
<samueldr>
though, for this it would need a bit more of a framework to also print *who* broke
lord| has quit [Ping timeout: 265 seconds]
<samueldr>
(and what)
<samueldr>
in a not-bash pseudo code try { activationScript } catch (error) { stderr.print activationScript.name + " couldn't complete..." }
lord| has joined #nixos
<infinisil>
samueldr: That doesn't sound too complicated to implement *checks out code*
<azazel>
it's possible to set a locale while packaging? I'm packaging a python app and its test runner (pytest) crashes because of a nasty bug of chaset codec error, that i'm unable to debug
<azazel>
/nix/store/8wfgl06xbcsxs6pmwr3n04kyhnvsh31d-python3-3.6.6/lib/python3.6/encodings/ascii.py:26: in decode
<azazel>
E UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 208: ordinal not in range(128)
<azazel>
it reads files using the dumbest codec possible :-(
<clever>
azazel: ive found that one of the python functions for recursively reading a directory tends to throw exceptions if any non-utf8 filenames exist in its path
<clever>
and ive got got old files made by another os, that upset it
<azazel>
ah but python3.6 interpreting any string as ascii now makes it so '70... it's because locale isn't set and ascii is the default
<azazel>
clever: anyway, how have you resolved it
<clever>
azazel: find all non-utf8 filenames and move them out of the searchpath of that program, lol
<azazel>
doh
<azazel>
i think that in my case it's more about the contents of a file, but I don't know which one
<clever>
azazel: all i could do to find my issue was to strace the program and look over the logs closely
<azazel>
in fact the error is subsequent to an open()
<clever>
the more anoying part, is that it catches the exception at a bit of a bad place, assumes it was network trouble, and reconnects to the server
<clever>
and then it rescans all directories, and fails once more
<clever>
so its just constantly reconnecting
<azazel>
yeah, it's annoying
koselig has quit [Quit: Leaving]
Drakonis has quit [Remote host closed the connection]
<azazel>
so it seems that if I force pytest to ignore the config files that mostly contain fancy options for the coverage report it runs as expected... well, I don't need a coverage report when I build the derivation, I suppose I found my solution
<azazel>
clever: a variable? I tried to set LANG=en_US.utf-8 in the derivation, and the python process sees it , tested with python -m locale, but then the same process crashesh telling that it is unable to "set" that locale
<judson>
Bah, simp_le still doesn't do what I need. Maybe my NixOps configs are busted.
<azazel>
I'm not a real expert on locales
neeasade has joined #nixos
<clever>
azazel: and if you add this to the buildInputs glibcLocales
<azazel>
clever: now I have several other issues because my tests think to have access to /tmp but it isn't available... how should i deal with it? create a "tmp" dir in the $out and then delete it after the tests end?
<clever>
azazel: you should already have a $NIX_BUILD_TOP and the various temp vars should be pointing within it
<clever>
judson: all you have to do is set enableACME = true;
Fare has joined #nixos
<jonreeve>
Thanks!
<jonreeve>
And does anyone know how to get .desktop files to display? I installed a bunch of GUI programs, but I don't see them in my KDE launcher menu
<clever>
jonreeve: have you logged out and back in since installing them?
<jonreeve>
I don't know if I installed them correctly—I just put the names of packages in my configuration and rebuilt
<jonreeve>
Yep, rebooted too
<clever>
jonreeve: does `ls /run/current-system/sw/share/applications` show the desktop files?
<jonreeve>
I'm not currently in nix, I'll have to get back to you on that one
<{^_^}>
jonreeve: 4 minutes, 21 seconds ago <infinisil> See #42910 which makes it update the menu automatically
<samueldr>
[15:17:26] <clever> jonreeve: does `ls /run/current-system/sw/share/applications` show the desktop files?
<infinisil>
Whoops, I need to reverse the order too, some stuff to fix
<{^_^}>
infinisil: 26 seconds ago <jD91mZM2> ooo this is cool
<jD91mZM2>
o_O
<jonreeve>
Yep, all the desktop files are there
<mikky>
Makes sense. So the prefered approach is to do prorgram....enable. How can I figure out which program needs to be enabled and which can just be installed as package?
<mikky>
btw, clever, thanks for that kexec image, it worked
<infinisil>
Heh, it's always nice to find random stuff that's better after updating
<mikky>
symphorien: neat
<mikky>
clever: just a small hiccup with unaccesible efivars after kexec but I worked around that
<mikky>
symphorien: is there a cli variant to that, preferably offline?
<jD91mZM2>
Anybody else using KeePassXC unstable? Does it ignore the Qt theme for you too?
<symphorien>
man configuration.nix iirc
<jD91mZM2>
Also nixos-option is useful
<clever>
mikky: you can usually set the installAsRemovable option for grub, and then it will boot
<{^_^}>
[nixpkgs] @oxij opened pull request #44517 → stdenv: simplify a bit using shadowing → https://git.io/fNXXz
<lluchs>
I'm trying to package a KDE application that uses QStandardPaths to find its data folder (usually in /usr/share). What's the best way of pointing it in the right location on nixos?
<mikky>
symphorien: never mind, found nixos-option :)
iqubic has joined #nixos
<lluchs>
I've seen some existing packages patching the source code, but that seems pretty fragile.
<jonreeve>
Dumb question, but which is better, nix-home, or home-manager? Or something else?
<iqubic>
jonreeve: Why not try both an see whay you like?
<infinisil>
jonreeve: I've never met anybody use nix-home, but there's lots of people using home-manager here, and it seems well maintained
<mikky>
clever: I'm chainloadig it from refind for now. I have a quite strong distaste for Grub2
<clever>
mikky: ah, if you have control over another bootloader, it doesnt matter as much
<infinisil>
jonreeve: Apart from that, I think home-manager also has more features
<mikky>
for now I have but I may lose the need for refind if NixOS becomes my go-to OS
<mikky>
can't use systemd-boot however so I guess I'll be stuck with grub2
<iqubic>
why can't you use systemd-boot?
<samueldr>
mikky: I have to say nothing stops you from keeping refind around, and use systemd-boot or grub2 from nixos as an abstracted implementation detail
<samueldr>
(my computers all boot to rEFInd and chainloads to the nixos-controlled grub for instance)
jD91mZM2 has quit [Quit: WeeChat 2.0]
<{^_^}>
[nix-pills] @Anton-Latukha opened pull request #73 → Pill 07: readable code form, fix to shell variable quoting → https://git.io/fNXXN
<mikky>
can't use systemd-boot because of FDE and separate /boot.
<clever>
mikky: as long as /boot is fat32, efisystem, and mounted correctly, systemd-boot should just work
<mikky>
clever: it's not
<mikky>
I have good reasons not to use FAT unless absolutely necessary (enter EFI)
__monty__ has joined #nixos
<clever>
mikky: nixos also lets you use fat for /boot/EFI/ and then anything not encrypted for /boot/
<clever>
boot.loader.efi.efiSysMountPoint = "/boot/EFI/"; allows that
<mikky>
clever: kernel and ramdisk, which pretty much defeats the purpose of having /boot and avoiding FAT
<clever>
yep
<selfsymmetric-mu>
I have compton enabled but my screen still flickers. Anybody have any configuration tips?
<infinisil>
selfsymmetric-mu: Mess a bit with compton's settings
<infinisil>
backend maybe
<infinisil>
And similar important ones
<{^_^}>
[nixpkgs] @oxij opened pull request #44520 → appimagekit: init at 20180727 → https://git.io/fNX1H
justan0theruser is now known as justanotheruser
<selfsymmetric-mu>
aha! Apparently I wasn't _actually_ using compton. I needed to disable XFCE compositing with `xfconf-query -c xfwm4 -p /general/use_compositing -s false`
hakujin1 has joined #nixos
<selfsymmetric-mu>
Now I have to figure out how to get that into my configuration.nix
<selfsymmetric-mu>
As far as I know there's no XFCE option to do it. I need to run that command somehow _after_ XFCE starts but _before_ compton is enabled.
FRidh has quit [Quit: Konversation terminated!]
<clever>
selfsymmetric-mu: see if you cant find a way to edit the config in $HOME without xfce running?
<elvishjerricco>
clever: xfce's config files are... rather cumbersome
<clever>
what happens if you run xfconf-query as the right user, without any X running?
<selfsymmetric-mu>
I can't even find this in the xfce settings...
<clever>
just try manually running it from a text console at first
galaxite has quit [Remote host closed the connection]
<petersjt014[m]>
I'm trying to build on aarch64 and I'm getting an error that says something like `/nix/store/1894k...-stdenv-linux/setup: line 1290: $'\r': command not found`. any ideas?
galaxite has joined #nixos
alex`` has joined #nixos
<petersjt014[m]>
I'm pretty sure it's from someone who edited a file on windows/dos
<{^_^}>
[nixpkgs] @Ma27 opened pull request #44522 → citrix_receiver: allow custom certs and hooks for the installation → https://git.io/fNXyu
Drakonis has joined #nixos
<petersjt014[m]>
but I don't know exactly where I'd go to fixit since the store is read-only
<clever>
double-check the installPhase you pasted into that file, is it free of \r's?
<petersjt014[m]>
it seems to be free of ^Ms in vim, and I curled it from the url--shouldntve touched a windows machine
<clever>
petersjt014[m]: and if you run the `file` program on that file?
<petersjt014[m]>
the whole configuration.nix?
<clever>
yeah
<petersjt014[m]>
once sec, gotta install it
<petersjt014[m]>
which is a pain w my current setup
<symphorien>
Check the vim status line doesn't say [dos]
<symphorien>
If you have vim then you also have xxd to check easily
<petersjt014[m]>
`[readonly][dos]`
<petersjt014[m]>
ayup
<clever>
petersjt014[m]: try `:set ffs=unix` i think
<clever>
or maybe its `:set ff=unix`
<petersjt014[m]>
I think that did it
<clever>
the ^M should now be visible
<petersjt014[m]>
still gonna go install dos2unix later
<clever>
and then you can just backspace it out
<petersjt014[m]>
`pattern not found`
<petersjt014[m]>
>__<
<clever>
try just looking near the installPhase
<petersjt014[m]>
>__<
<petersjt014[m]>
I have it right here and dont see it
<petersjt014[m]>
one sec while I go install dos2unix just to be sure
kisik21 has joined #nixos
<kisik21>
Hi there. How to make Noto Color Emoji font show sanely in apps? I have emojis show vastly different size from normal characters and in b/w. Screenshots pending...
rardiol has quit [Read error: Connection reset by peer]
mayhewluke has joined #nixos
<samueldr>
kisik21: you're on 18.03 or unstable?
<kisik21>
18.03
<kisik21>
is the fix in unstable?
<samueldr>
there are changes
<samueldr>
I'm using both and on both I don't see similar results
<kisik21>
well, I seem to have found a way to rip Noto Color Emoji outta fontconfig, need to test... wait 2 minutes, if I will not return, means I broke my fonts lol
<samueldr>
so, short story, only nixos-* channels are tested for nixos
<kisik21>
I want to set up a test VM that would update and reboot with each nixpkgs-unstable upgrade that did not ascend to nixos-unstable
<mikky>
I love zsh and I very much prefere the grml config. So I installed the grml-zsh-config package and now I'm trying to figure out how to activate it. I went with environment.etc."grml".source = "${pkgs.grml-zsh-config}/etc/zsh/zshrc"; and environment.etc."grml".target = "zshrc.local";
<kisik21>
Would be interesting to see how quickly it will break
<mikky>
it works but is this the right approach?
<samueldr>
kisik21: you'd have to wait for nixos-unstable to update to know if it passed, since nixpkgs-unstable will most likely update before (IIRC)
<kisik21>
Can't I watch for failed nixos testsuite automatically?
<samueldr>
mikky: could be, there's no mention of grml in <nixpkgs> except the package
<samueldr>
kisik21: the failures could very well be failures affecting nixpkgs :/
<samueldr>
not sure if there are any way though
<samueldr>
it would be an interesting excercise
<kisik21>
Ok, waiting for NixOS to download and recompile everything... Oh fsck Xonotic... I hope I haven't cleaned the store lately because downloading almost 2 gigs of sources on my PC is a pain
cryptopsy has joined #nixos
<samueldr>
do you play often enough that installing it through systemPackages is worthwhile?
<samueldr>
(though I see how useful it is that it's already ready to play)
<cryptopsy>
how do i install nixos to a folder from another distro and start compiling pkgs with it like through a chroot to it?
<kisik21>
Well, I could install it imperatively per-user, but I don't like clogging my imperative user env
<kisik21>
and I don't like imperative user env
<kisik21>
It is really convenient
<kisik21>
but my env is polluted by a bunch of packages for scripts I haven't packaged
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tnks>
hmm... all the code and documentation I read seems that you only get one shot to apply all the overlays when importing a Nixpkgs path.
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #44516 → cc-wrapper: propagate man and info to propagated-build-inputs → https://git.io/fNXXn
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/fNXHc
hakujin1 has joined #nixos
mahalel_ has quit [Remote host closed the connection]
<infinisil>
tnks: you can reimport it with different overlays
<cryptopsy>
does nixos install grub?
<cryptopsy>
does nixos-install install grub?
<cryptopsy>
i just want to see how it works i dont want to install it to my mbr
<kisik21>
cryptopsy: By default yes, but you can pass --no-install-bootloader to prevent it from doing so
<kisik21>
and by the way - it will be really hard to boot NixOS without its own GRUB config
justanotheruser has quit [Quit: WeeChat 2.0]
<cryptopsy>
i dont want to boot it
hakujin1 has quit [Ping timeout: 256 seconds]
justanotheruser has joined #nixos
<cryptopsy>
i want to CHROOT or similar emulation of its functionality
<kisik21>
Oh, if you want to chroot to NixOS, you can use nixos-enter
<kisik21>
usual chroot will not work
<tnks>
infinisil: yeah, but when I do nixpkgs.path, I go to the original path, right? I lose any overlays on that instance, I believe.
<cryptopsy>
is there a guide describe this fully?
<tnks>
so if someone programmatically passes in a nixpkgs instance, I think it's of less value to me.
<kisik21>
well, there's manual!
<kisik21>
And there are man pages
<cryptopsy>
?
<kisik21>
man nixos-enter
<cryptopsy>
i am not in nixos
<cryptopsy>
how can i man it?
<cryptopsy>
i am in my working gentoo system, which i dont want to have it fucked up by nixos installation process
<kisik21>
lol, then try to install NixOS on a VM
<cryptopsy>
i was told it can install to a folder, and theni understand i can chroot by nixos-enter
<genesis>
i was a 15 years old gentoo user until last week, now i've switched to nixos ;)
<ldlework>
infinisil: symlinkJoin makes a derivation right, so I have to assign its result to environment.systemPackages?
<cryptopsy>
what will nixos-install --no-bootloader --no-root-passwd --root "$ROOT" do, will it place files in /etc ?
<kisik21>
Well, you can. Boot a NixOS installer flash drive, mount your partition to /mnt then pass --root /mnt/nixos-chroot to nixos-install
<kisik21>
cryptopsy: it will do much more than that
<cryptopsy>
see, that's bad
<cryptopsy>
that's why i need a guide
<kisik21>
I'd recommend a command line like this...
<cryptopsy>
i am only playing with nixos now, not going to install it and nuke my working system
<cryptopsy>
i was told i can just run it from a folder
<kisik21>
You can install NixOS in an arbitrary folder to not nuke your working system. But you'll still need an installer flash drive because your Gentoo is incapable of bootstrapping a NixOS chroot.
<cryptopsy>
can't it bootstrap itself?
<kisik21>
We don't have stage3 tarballs, sorry ^^
mahalel_ has joined #nixos
<cryptopsy>
what's needed to bootstrap it, just a toolchain?
<Drakonis>
ah gentooers
<genesis>
why don't use nix ?
<kisik21>
You'll need Nix and some packages installed via Nox.
<ldlework>
i think this is the normal kitty binary wrapper
Fare has joined #nixos
<infinisil>
ldlework: Hmm, okay rename the symlinkJoin derivation from "kitty" to "kitty-wrapper"
<infinisil>
Then nixos-rebuild switch
<infinisil>
Then `realpath $(which kitty)`
<ldlework>
infinisil: btw when i switch I get
<ldlework>
collision between `/nix/store/4b0kq3p928r99ppp4j0k3r9akm82zkyj-bumblebee-3.2.1/sbin/bumblebeed' and `/nix/store/i8flz1v4ns0gn8sp62gidykhfvmn4bil-kitty-wrapper/sbin/bumblebeed'
<infinisil>
You probably installed bumblebee somewhere else, the symlinkJoin adds it too. You don't need the bumblebee in symlinkJoin
<infinisil>
ldlework: Yeah, so your kitty binary isn't the wrapper, you have it installed somewhere else too. Maybe you can find out with `which kitty`
<ldlework>
infinisil: renaissance
<ldlework>
oops
<{^_^}>
[nixpkgs] @samueldr opened pull request #44526 → nixos/activation: Identifies the snippet that failed → https://git.io/fNXQg
<ldlework>
which kitty: /nix/store/82s8ikb95gr0324g1svbjlnhdhp00avd-kitty-0.8.0/bin/kitty
<{^_^}>
[nixpkgs] @svanderburg pushed to master « nixos/disnix: undo dysnomia rename to fix disnix and retain compatibility with previous release »: https://git.io/fNXQX
techieAgnostic has joined #nixos
<techieAgnostic>
howdy
neeasade has left #nixos ["Using Circe, the loveliest of all IRC clients"]
<ldlework>
infinisil: it seems that bumblebee not being mentioned in the wrapper makes it less composable
<infinisil>
ldlework: Um, which kitty is a direct path?
<infinisil>
Then this means you're in a nix-shell or so
<ldlework>
well i'm not..
<infinisil>
ldlework: bumblebee in the symlinkJoin does absolutely nothing
<infinisil>
ldlework: What's $PATH?
<ldlework>
ok
<infinisil>
(well it doesn't do nothing, but nothing one would want)
<ldlework>
a bunch of my store paths are on the path
<ldlework>
which seems strange
Drakonis has quit [Remote host closed the connection]
<infinisil>
Huh???
<infinisil>
Your $PATH should look about like this: /home/infinisil/bin:/run/wrappers/bin:/home/infinisil/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/etc/profiles/per-user/infinisil/bin:/home/infinisil/.config/zsh/plugins/pass
<infinisil>
No direct store paths
<infinisil>
No idea what you did to get those there
<techieAgnostic>
is there anything else to set for encrypted drives other than boot.initrd.luks.devices.{name,device,preLVM}?
<techieAgnostic>
i keep getting an error on install about my fileSystem option not pointing to the right thing
<aszlig>
techieAgnostic: does your filesystem have a label and did you use that in fileSystems?
rprije has joined #nixos
<techieAgnostic>
ive left fileSystems as what it generated in hardware-configuration.nix
<aszlig>
techieAgnostic: how do they look like?
<techieAgnostic>
looks like it only generated boot and swap, nothing for root
<aszlig>
ah
<mayhewluke>
How does one handle Android development on NixOS? I'm trying to get React Native to going on Android and I don't see any docs on how to get all the dependencies `react-native-cli` needs for `run-android`.
<aszlig>
so you're using an LVM, right?
<techieAgnostic>
yip
Drakonis has joined #nixos
<aszlig>
techieAgnostic: did you run nixos-generate-config after the whole LVM setup?
<ldlework>
infinisil: are those the packages I've installed with nix-env maybe?
<techieAgnostic>
yup, and after this happened i re-ran it to make sure
<aszlig>
techieAgnostic: what's the fs-type, label and/or UUID of your root fs?
<infinisil>
ldlework: nix-env installs in ~/.nix-profile
<infinisil>
So nope
<Drakonis>
hmm, nothing that restarting some software did not fix
<Drakonis>
couldn't fix
kisik21 has left #nixos [#nixos]
<samueldr>
direct paths in PATH would happen inside a nix-shell
<samueldr>
any trickery with nix-shell shebang on something building your session?
<techieAgnostic>
aszlig: hmm, sda2 goes into a crypt called enc-pv, which goes into vg/swap and vg/root, root should be ext4 afaik
<techieAgnostic>
yeah it is
<aszlig>
techieAgnostic: what does dumpe2fs -h tell?
<techieAgnostic>
bad magic number trying to open dev/sda2, then says its a crypto_LUKS file system
<aszlig>
techieAgnostic: it shouldn't be /dev/sda2
<techieAgnostic>
oh?
<aszlig>
techieAgnostic: it should be something like /dev/mapper/vg/root
<techieAgnostic>
oh sorry, thought you meant the luks partition
<techieAgnostic>
Yeah my root is /dev/vg/root
<aszlig>
what does dumpe2fs tell you about that? like uuid or label
<p_l>
What would be the quickest way to adding new packages locally or *totally* overriding existing ones? Overlays?
<techieAgnostic>
yeah it has a uuid
<techieAgnostic>
same one im using in my boot.initrd.luks.devices.device setting
galaxite has quit [Ping timeout: 265 seconds]
oldandwise has quit [Quit: leaving]
<techieAgnostic>
oh wow nevermind
<techieAgnostic>
i might be dumb
<techieAgnostic>
i dont think i mounted root
<techieAgnostic>
woow
<techieAgnostic>
sorry guys
ericsagnes has quit [Ping timeout: 276 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
<aszlig>
techieAgnostic: no problem =)
<aszlig>
techieAgnostic: sometimes things like that can happen to everyone