<dhess`>
Say I have a package that builds some firmware for the kernel. How do I install it so that the kernel will find it?
Mateon3 has joined #nixos
<dhess`>
It appears there's a symlink in /run/current-system/firmware, but how do I find where it points in a derivation?
Mateon1 has quit [(Ping timeout: 255 seconds)]
Mateon3 is now known as Mateon1
<dhess`>
hmm looks like I need to define hardware.firmware in the config
takle has quit [(Ping timeout: 272 seconds)]
<dhess`>
and it'll get copied?
takle has joined #nixos
<dhess`>
ok seems like pkgs/os-specific/linux/firmware/broadcom-bt-firmware is an example to follow.
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
ertes has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
pseudo-sue has joined #nixos
s33se has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
sellout- has joined #nixos
s33se_ has quit [(Ping timeout: 260 seconds)]
mizu_no_oto has joined #nixos
takle has joined #nixos
acarrico has quit [(Quit: Leaving.)]
pseudo-sue has quit [(Ping timeout: 260 seconds)]
sellout-1 has joined #nixos
mbrgm has quit [(Ping timeout: 260 seconds)]
sellout- has quit [(Ping timeout: 272 seconds)]
takle has quit [(Ping timeout: 255 seconds)]
derjohn_mob has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
nekroze has joined #nixos
takle has joined #nixos
acarrico has joined #nixos
<nekroze>
I am using `services.kubernetes` with two machines, one a master, the other a node. If I run the kuberentes dashboard on the node machine and try to access the ui from the api it fails to get access to that port, but it works if I run the master as a node and shut down the node only machine. There seems to be something wrong with the inter node routing. Has anyone else experienced this kind of thing?
johnsonav has quit [(Remote host closed the connection)]
derjohn_mob has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
justbeingglad has joined #nixos
justbeingglad has left #nixos []
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
takle has quit [(Ping timeout: 260 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
roconnor has joined #nixos
takle has joined #nixos
hexagoxel has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
hexagoxel has joined #nixos
takle has joined #nixos
Sonarpulse has joined #nixos
Sonarpulse has quit [(Client Quit)]
Sonarpulse has joined #nixos
Rajsun has quit [(Quit: Leaving)]
<nekroze>
\q
nekroze has quit [(Quit: leaving)]
takle has quit [(Ping timeout: 272 seconds)]
takle has joined #nixos
Sonarpulse has quit [(Changing host)]
Sonarpulse has joined #nixos
indi_ has joined #nixos
takle has quit [(Ping timeout: 272 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
jgertm has joined #nixos
LysergicDreams has quit [(Quit: leaving)]
roconnor has quit [(Quit: Konversation terminated!)]
takle has joined #nixos
takle_ has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle_ has quit [(Ping timeout: 260 seconds)]
<amosbird>
hi, how can I pip install a addtional python module inside nix-shell?
<dash>
amosbird: you wouldn't, you'd start a new nix-shell with that module
alx741_ has joined #nixos
<amosbird>
dash: well, that module is not in nix-pkg
<NixOS_GitHub>
[nixpkgs] asppsa opened pull request #26390: emscripten: add binaryen support (master...emscripten-binaryen) https://git.io/vHais
NixOS_GitHub has left #nixos []
marsel has joined #nixos
nate_ has joined #nixos
<nate_>
Hello! I am running nixos 17.01 and my configuration broke when i upgraded from an nvidia tesla m2050 to a gtx 1050 ti. With the tesla, I had blacklisted nouveau with
takle has quit [(Remote host closed the connection)]
indi_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vHa9b
<NixOS_GitHub>
nixpkgs/master 5b747cc Peter Hoeg: paperkey: 1.3 -> 1.4
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vHaHm
<NixOS_GitHub>
nixpkgs/master 1890b1f Peter Hoeg: wp-cli: 1.1.0 -> 1.2.0
NixOS_GitHub has left #nixos []
pdobrogost has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
engblom has quit [(Remote host closed the connection)]
<jophish>
I have a corrupted path, but nix isn't letting me delete it!
<jophish>
even though it has no roots
ambro718 has joined #nixos
<clever>
jophish: there are invisible roots, under /proc
<clever>
jophish: what is the path?
mkoenig has quit [(Remote host closed the connection)]
nixnewb has quit [(Quit: Page closed)]
takle has joined #nixos
oida_ has joined #nixos
MP2E has quit [(Quit: sleep)]
oida has quit [(Ping timeout: 240 seconds)]
thc202 has joined #nixos
jensbin has joined #nixos
indi_ has quit [(Remote host closed the connection)]
<danbst>
unlmtd: will nix*os inherit all the nixos bugs?
<danbst>
unlmtd, clever: looks like there exist nixos-the-core and nixos-the-service-collection. Interesting, would it be great for all the nix*os to perform this split?
pbogdan has joined #nixos
<clever>
danbst: there is an open issue about bringing the jobs attrset back, so you can describe generic services that dont depend on systemd
<jophish>
clever: just some src
<jophish>
I've deleted it
<clever>
jophish: ah, an old nix-shell can possibly do that
<clever>
as will sudo nix-store --delete
indi_ has joined #nixos
Itkovian has joined #nixos
ambro718 has quit [(Ping timeout: 240 seconds)]
indi_ has quit [()]
davidak1 has joined #nixos
dgpratt has joined #nixos
davidak has quit [(Read error: Connection reset by peer)]
<jophish>
clever: hmm, I have nix-store --verify running at the moment
<jophish>
perhaps that was it
<jophish>
this is on our hydra, so a nix-shell is unlikely!
davidak has joined #nixos
davidak1 has quit [(Ping timeout: 260 seconds)]
ThatDocsLady has joined #nixos
mudri has joined #nixos
<unlmtd>
danbst: I think of nix as a system builder/orchestrator. there's no reason we couldnt use it, or a fork/derivative, to build *everything*
ThatDocsLady has quit [(Client Quit)]
<unlmtd>
of course, some are worth it more than others. I wouldnt see much point in trying to build windows with it, but someone might have the time to waste.
<clever>
jophish: ah, and hydra uses visible roots, so that shouldnt be to blame either
<unlmtd>
I think someone uses nix to build iOS apps, so it should build android apps too, and then android itself
<unlmtd>
I dont think a single nixpkgs repo is gonna work
<unlmtd>
but it might be fun to try
davidak has quit [(Ping timeout: 255 seconds)]
davidak1 has joined #nixos
<clever>
does sound fun
<unlmtd>
there are already nixpkgs forks
ThatDocsLady has joined #nixos
<unlmtd>
if I configure the gitDaemon.basePath, nix doesnt create the directories
<unlmtd>
is that normal behavior?
<unlmtd>
normal/wanted
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
pie__ has quit [(Remote host closed the connection)]
pie__ has joined #nixos
pseudo-sue has joined #nixos
pseudo-sue has quit [(Ping timeout: 246 seconds)]
DutchWolfie has joined #nixos
DutchWolfie has quit [(Changing host)]
DutchWolfie has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
<jophish>
It's a little annoying that hydra seems to have a bias towards alphabetically earlier names of machines
<mbrgm>
is there a way to disable hydra email notifications?
<jophish>
'ed' and 'faye' are always busy, but 'jet' and 'spike' aren't
<jophish>
I chose the wrong machine...
<jophish>
clever: what was that command you had for checking for secret roots, grep -r just seems to hang in /proc
<clever>
jophish: a lot of /proc files are special, you need to strace nix-store --query --roots, as root
<clever>
jophish: strace with -s 5000 and then grep its output (beware, its on stderr) with "grep -C hash"
<jophish>
where 'rs' is a file containing the closure of roots
<clever>
ah yeah
<clever>
is process 21274 still alive?
<jophish>
clever: there are 4 temproots, all of the processes are still alive
<jophish>
three are nix-daemon, and one is nix-store
civodul has joined #nixos
<jophish>
ah, two were from my --verify
<jophish>
two are left, I suppose this'll go away when I next reboot
<jophish>
I'll do that this evening
<jophish>
Thanks for the useful advice clever!
<jophish>
btw, I'm still hoping to put not-os on the FPGA soon
<clever>
nice
<jophish>
other work commitments have taken priority for the time being, but I should be able to look at this in July (assuming nothing else comes up)
<clever>
jophish: if a temproot exists for a pid that does not, id call that a bug, and you should be able to safely rm -rf the temproot
Jackneilll has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
xificurC has joined #nixos
<jophish>
Hmm, why is /nix/var/nix/gcroots/hydra on a read only FS?
<jophish>
oh, could it be because I'm not hydra
<gleber_>
Does the stdenv/generic/default-builder.sh perform automagical substitutions of shebang lines?
<clever>
gleber_: its done by the patchSheBangs function, that runs during the fixup phase
<gleber_>
fixup phase is after build, right? I want something like that before building
<clever>
fixup is after install
<clever>
but you can manualy run the patchSheBangs function on any directory
<xificurC>
I have a default.nix file for a package that only requires stdenv. It starts with { stdenv } : and calls stdenv.mkDerivation. How can I "call" this from a toplevel default.nix that unites the packages into one? I tried as-table = ./as-table { inherit stdenv; }; but that errors out saying I'm trying to call a path as a function
<gleber_>
clever: is it customary to do it manually in e.g. postUnpack?
<xificurC>
but ./as-table has a default.nix that starts with { stdenv } :
<clever>
gleber_: i would do it in preConfigure or postPatch
<clever>
xificurC: callPackage ./as-table {};
<gleber_>
clever: hm... actually in this case the binary references in shebang is built during buildPhase itself :/
<xificurC>
clever: thanks :)
<clever>
gleber_: is it being ran during buildPhase as well?
<gleber_>
I believe so, but I need to double check
<gleber_>
Unfortunately it takes a loooong itme :(
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #26393: pass: add plugins to support importing and updating (master...f/pass) https://git.io/vHapY
NixOS_GitHub has left #nixos []
mkoenig has joined #nixos
Guest63670 has joined #nixos
<neoo>
hey guys, for full disclaimer, nixos noob here :) I want to bring into configuration a single unstable unfree package - i can set unfree for stable channel but can't get it to work for unstable. Anyone knows how to mark unfree = true for all channels or for a specific channel? https://paste.ofcode.org/Yw7Trt7i9Q2aLvJ9RicCns
<ij>
http://sprunge.us/HJXi <-- I made a haskell package with cabal2nix --shell and my source requires git to compile in the version info. I added the git there myself, but it still can't find it.
dihuteno has joined #nixos
<dihuteno>
if I need to toggle between two configuration files for a systemd service, what's the right way to handle that?
<dihuteno>
commenting and uncommenting parts of my .nix files and rebuilding isn't really a solution
<NixOS_GitHub>
nixpkgs/master bd762fa Frederik Rietdijk: Merge pull request #26394 from fadenb/emby...
NixOS_GitHub has left #nixos []
ixxie has joined #nixos
kezepema has joined #nixos
<dihuteno>
clever: so just define the two configurations in separate files and switch between them by changing the import?
<pbogdan>
ij: not 100% sure but I would try adding git to buildTools or buildDepends
darlan has joined #nixos
<clever>
dihuteno: yeah
<kezepema>
Hi, I'm on NixOs 17.03. Just installed it on an old netbook. I would like to close the lid but keep the machine working instead of suspending or poweroff. I know there is "HandleLidSwitch=ignore;" on some Linux distribution. How to include this setting in configuration.nix?
<clever>
gchristensen: i'm guessing its a haskell thing
<gchristensen>
ah
jensens has joined #nixos
arianvp2 has joined #nixos
Ivanych has quit [(Quit: Leaving.)]
cpennington has joined #nixos
mudri has quit [(Ping timeout: 260 seconds)]
goibhniu has joined #nixos
goibhniu has quit [(Changing host)]
goibhniu has joined #nixos
Ivanych has joined #nixos
joehh has joined #nixos
dalaing_ has quit [(Remote host closed the connection)]
ilyaigpetrov has joined #nixos
mudri has joined #nixos
ertes has quit [(Ping timeout: 255 seconds)]
<sphalerite>
gchristensen: I was hoping to use a similar approach to the other stuff I use, i.e. wrapping
<sphalerite>
the issue being of course that the shell — even for a specific user — is basically a system-wide setting
ertes has joined #nixos
simukis has joined #nixos
<makefu>
sphalerite: there is a merged PR which provides a way to install packages per-user. you can use a wrapped version of zsh/bash to acchieve what you are looking for
<sphalerite>
makefu: but I want to be able to manage it as my user without needing to run anything as root
<sphalerite>
that is, without touching the system config
<sphalerite>
If that was all I wanted I could simply specify users.users.linus.shell as the wrapped one
<dihuteno>
as in what goes inside the pkgs.sshd.override clause?
<clever>
dihuteno: thats part of the nixos module, not the package, so it has to go into services.openssh
<dihuteno>
clever: is there an example of how to override something similar?
mudri has quit [(Ping timeout: 246 seconds)]
jmaki is now known as jimki
<clever>
dihuteno: what exactly are you trying to do?
orivej has joined #nixos
<dihuteno>
I want to be able to override the way the config file is generated, let's say because what I want can't be achieved by setting extraConfig like you normally would
<clever>
dihuteno: i think you can do services.openssh.extraConfig = lib.mkForce ''.....''; to do that
<NixOS_GitHub>
nixpkgs/master 870ad77 Joachim F: Merge pull request #26395 from fadenb/sonarr...
NixOS_GitHub has left #nixos []
<dihuteno>
clever: that does exactly what I need it to do
<dihuteno>
thanks
ToxicFrog has quit [(Quit: WeeChat 1.7.1)]
M1000teslas[m] has quit [(Quit: Bridged client killed)]
k2s has joined #nixos
takle has joined #nixos
simendsjo has joined #nixos
takle_ has quit [(Ping timeout: 255 seconds)]
<copumpkin>
been getting a ton of dependency failed notifications from hydra
<copumpkin>
did someone break master?
bfrog has joined #nixos
bfrog has quit [(Client Quit)]
mythmon- has quit [(Quit: Bridged client killed)]
<FRidh>
copumpkin: or did hydra's mailing suddenly start working again :)
* copumpkin
shrugs :)
mudri has joined #nixos
<LnL>
I think master is fine
<LnL>
but I didn't get any emails when master broke a couple of days ago
barcabuona has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
<clever>
i got an email today about multi-mc failing due to a dep
kezepema has quit [(Quit: Page closed)]
pseudo-sue has joined #nixos
<sphalerite>
makefu: ~/.nixpkgs has no influence on my shell
k2s has quit [(Ping timeout: 240 seconds)]
<makefu>
you could
<gleber_>
how to make "nix-build --run-env" spawn zsh instead of bash?
Rotaerk has quit [(Quit: Leaving)]
<sphalerite>
gleber_: you should be using nix-shell, and you can use nix-shell --run zsh
<gleber_>
sphalerite: I need nix-build --run-env to debug a failing build. Can I do the same with nix-shell?
<makefu>
sphalerite: set shell to /home/<user>/.nix-profile/bin/<shell> though, not sure if this is feasible for your. maybe i also do not really understand what you are trying to achieve with locally managing the shell for each user without touching the global config
<sphalerite>
gleber_: "The command nix-build --run-env has been renamed to nix-shell." in version 1.6 according to the nix manual
<sphalerite>
makefu: reason why is for consistency with everything else
<makefu>
then setting it globally would be the most consistent way, no?
<sphalerite>
but yes, setting the shell to ~/.nix-profile/bin/xyz seems like a reasonable solution, thanks
<makefu>
cool :)
<sphalerite>
no, because I configure everything else using nix expressions I install in my user environment
<xificurC>
if I installed something with `nix-env -iA attribute.path` how can I wipe it from the nix store completely? I want to force the build process
<sphalerite>
xificurC: you can force the build process using nix-build --check without deleting hte existing copy
<sphalerite>
xificurC: otherwise you'd have to remove all the profile generations that refer to the store path, then use nix-store --delete to remove the store path
<sphalerite>
But if all you want to do is force the build process, use --check :)
<xificurC>
sphalerite: is there a similar flag for nix-env? I am creating a channel and I want to force the equivalent of `nix-env -iA mychannel.package`
<sphalerite>
yes, --check should work for nix-env too I think
<xificurC>
sphalerite: unknown flag --check :(
<sphalerite>
oh ok
<sphalerite>
In that case I'd try to find where the downloaded copy of the channel lives and use nix-build on that
<sphalerite>
nix-build path/to/stuff -A package --check
<clever>
sphalerite: '<nixpkgs>' will resolve to the path of nixpkgs
<xificurC>
I guess I didn't express myself clearly at the beginning
<xificurC>
I already managed to "install" a package from my channel with `nix-env -iA ...`
<xificurC>
now I added a binary cache and wanted to see if it works
<xificurC>
if I rerun `nix-env -iA ...` that's a noop. So I cannot see if the binary cache is working
<sphalerite>
clever: yeah, but xificurC is talking about making their own channel
<clever>
xificurC: nix-store -r /nix/store/foo will work on any path in a binary cache
<makefu>
you can remove it from your env (nix-env -e <pkg>) and remove it from the nix store
<clever>
xificurC: try it on a path your cache has that you dont
<sphalerite>
xificurC: nix-build /nix/var/nix/profiles/per-user/<username>/channels -A package
<sphalerite>
I think
<sphalerite>
+ --check
<xificurC>
now I got 3 answers and my head is about to explode :)
<xificurC>
sphalerite: yours says error opening file - no such file or directory
* sphalerite
can't wait until nix 1.19/2.0 is properly out and in NixOS so that this stuff is more consistent
saintaquinas[m] has left #nixos ["Kicked by @appservice-irc:matrix.org"]
<jophish>
How can I get hydra to more evenly distribute jobs on machines
<jophish>
At the moment it seems to prefer alphabetically first machines
<domenkozar>
jophish: I think you'll have to change the heuristic
<jophish>
domenkozar: in dispatch.cc I think
<jophish>
It doesn't seem to be taking account of the machine load
<domenkozar>
in doDispatch
<domenkozar>
jophish: does it have that information?
<xificurC>
clever: I didn't exactly understand your explanation so I tried to remove it from the nix store manually which resulted in breaking the whole thing :)
<domenkozar>
well remote builds did take load into account, iirc
<clever>
xificurC: yeah, you must always use nix-store --delete to remove things from the store
<jophish>
domenkozar: I think I'll insert a shuffle before that sort
cm2 has joined #nixos
<xificurC>
no biggie, my store is pretty small. clever how can I wipe the whole store and start from scratch?
<domenkozar>
jophish: sounds like you need a debug print before/after
<domenkozar>
to tweak the algo
<domenkozar>
before/after sorting*
<cm2>
hi - i use nix on debian and mostly it works great.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gebner pushed 2 new commits to master: https://git.io/vHVmz
<NixOS_GitHub>
nixpkgs/master b9fd51a Gabriel Ebner: binaryen: 32 -> 33
<NixOS_GitHub>
nixpkgs/master 6971bdb Gabriel Ebner: emscripten, emscriptenfastcomp: 1.37.10 -> 1.37.13
NixOS_GitHub has left #nixos []
<jophish>
domenkozar: the "load" in that file just seems to be the current jobs
<cm2>
but on emacs the cursor theme of the "host" is not respected.
<cm2>
so i end up with different cursors (ie. mouse pointers) when i hover over emacs
<domenkozar>
jophish: well that should do the job for you, is the intention to get faster build times?
<cm2>
any ideas?
<jophish>
domenkozar: the builds take place on the developer machines
<jophish>
it's unfair for all jobs to take place on my machine :)
<cm2>
i tried .Xresources/.Xdefaults, installing cursor themes, setting the gtk-cursor-theme etc ... to no avail
<domenkozar>
jophish: so you're saying if you have 5 machines and one job now and then, you want to have randomness first pick?
<jophish>
domenkozar: well, first pick doesn't really matter
<jophish>
but I don't think that currentjobs is being taken into account correctly
<jophish>
domenkozar: ah I see
<jophish>
speedfactor is 8
<jophish>
but at most 4 jobs
<domenkozar>
yeah I always set it to 1
<jophish>
so those floats always compare equally, because it's rounded
<jophish>
domenkozar: yeah, we have several "classes" of machine
<gleber_>
I get a build error when I do "nix-build -A erlangR16 /path/to/custom/nixpkgs" and I try to reproduce a build problem with "nix-shell --pure -A erlangR16 /path/to/custom/nixpkgs; source $stdenv/setup; genericBuild". But it looks like that it does something different and the error does not happen :/
<jophish>
I'm going to remove that "round"
<gleber_>
Any ideas how to reliabily reproduce a failing nix-build from nix-shell?
<clever>
gleber_: nix-shell launches a new shell, so the ; at the end wont do waht you want
<clever>
gleber_: the shell made by nix-shell also sources setup for you, so thats not required
<gleber_>
clever: yes, I do it one by one, not in one line
<jophish>
I'll open an issue too
<gleber_>
clever: good to know about the sourcing, thanks
<clever>
gleber_: what is the error its giving?
<gleber_>
clever: /nix/store/wb34dgkpmnssjkq7yj4qbjqxpnapq0lw-bash-4.4-p12/bin/bash: /tmp/nix-build-erlang-16B03-1.drv-0/otp_src_R16B03-1/make/emd2exml: /usr/bin/env: bad interpreter: No such file or directory
<gleber_>
but this error happens only with nix-build, not with nix-shell + genericBuild
<clever>
gleber_: nix builds are sandboxes, so they dont have a /usr/bin/env
<jophish>
domenkozar: I'm sure I've seen CURRENT_LOAD being used before
<jophish>
but I can't remember whetre
<jophish>
but I can't remember where
<clever>
gleber_: but even with nix-shell --pure, you still have a /usr/bin/env
<gleber_>
oh!
<gleber_>
is there a magical way to enter the same sandboxed shell?
<domenkozar>
jophish: I think that's remote builds logic in Nix itself
<clever>
gleber_: not really, but you could temporarily delete /usr/bin/env from the host, thats not likely to cause too many problems
<LnL>
lol
pseudo-sue has quit [(Quit: leaving)]
<pbogdan>
cm2: what does "echo $XCURSOR_PATH" say in your shell?
<LnL>
gleber_: pretty sure you can use patchShebangs to fix references to /usr/bin/env
<domenkozar>
jophish: ah, it just moved logic to another file
<clever>
gleber_: yeah, patchSheBangs will fix the problem, once you know which file, oh, its make/emd2exml, so just postPatch = "patchSheBangs make"; i think?
<cm2>
pbogdan: hi. thanks for replying. checking ...
<gleber_>
clever, LnL: tricky part is that "escript" from that shebang is part of the same package. Will patchSheBangs handle this?
<gleber_>
ah, silly me
<gleber_>
nvm
<clever>
gleber_: as long as the file exists during the patchphase, it should work
<gleber_>
it should work
<LnL>
gleber_: it looks at PATH
<cm2>
pbogdan: it's not defined
deba5e12 has joined #nixos
<pbogdan>
cm2: try setting "Xcursor.theme: YourTheme" in ~/.Xdefaults and launching emacs with "xrdb -merge ~/.Xdefaults && XCURSOR_PATH=/home/youruser/.icons:/home/youruser/.nix-profile/share/icons:/nix/var/nix/profiles/default/share/icons:/run/current-system/sw/share/icons emacs" and see if that helps
<cm2>
pbogdan: ok thanks!
python476 has joined #nixos
<cm2>
pbogdan: YES!
ThatDocsLady has quit [(Ping timeout: 246 seconds)]
<cm2>
all i had to do was set xcursor_path
barcabuona has quit [(Quit: WeeChat 1.8)]
<cm2>
thanks so much!!
<jophish>
domenkozar: thanks!
<jophish>
although not a helpful commit message
<domenkozar>
jophish: yes, one side effect of the roundf is that same machine will be reused until speedfactor is reached
<domenkozar>
so it might have a consequence of less S3 downloads
<pbogdan>
cm2: you are welcome :)
<jophish>
domenkozar: yeah, that's a good point
<cm2>
pbogdan: you made my day (and a monday at that!). all the best!!!!
<gleber_>
clever: thanks for your help, i'll debug deeper later today, off for now
<kojiro>
My main user account has a weird PATH. For example, it has the bash from build-sandbox-paths in /etc/nix/nix.conf in it. This means I get a hobbled bash sometimes.
<kojiro>
I don't know how it got set up this way - I created another user account and it did not have these paths in PATH
<jophish>
kojiro: you're not on OS X are you?
<kojiro>
jophish: no
<BlessJah>
wknapik: nokia 5? 5.2" i "pure Android™"
<jophish>
ok, OS X fucks with the path in stupid ways :)
<BlessJah>
dang, wrong window
nschoe has quit [(Quit: Program. Terminated.)]
<kojiro>
jophish: I did copy some dotfiles from a macos installation
<kojiro>
I have been over those dotfiles a few times now, but I'll take any hints you want to throw my way
<jophish>
kojiro: the issue I'm thinking of comes from system files, so it's unlikely that you copied it
<clever>
gleber_: is escript in $PATH at that time?
pie__ has quit [(Changing host)]
pie__ has joined #nixos
* pie__
rolls around
kojiro has quit [(Ping timeout: 240 seconds)]
<pie__>
is there a way to make kde alt-tab on the desktop the mouse is on only?
Sonarpulse has quit [(Ping timeout: 246 seconds)]
erasmas has joined #nixos
kojiro has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vberger opened pull request #26403: drbd: Fix incorrect substitution in derivation (master...drbd-fix) https://git.io/vHVGp
NixOS_GitHub has left #nixos []
<kojiro>
machine locked up -_-
<pie__>
stop
<pie__>
hammertime
<kojiro>
How do I search for the name for a service? I would guess I want services.mbpfan.enable = true; - is there a place I can look up that that is the correct name?
<evangeline>
error: syntax error, unexpected '=', expecting $end, at (string):1:37
<clever>
evangeline: that isnt inside an attrset or let block, so its not valid
<evangeline>
clever: ah yes, this doesn't produce the error: nix-instantiate -E 'with import <nixpkgs>{}; let bundlerEnv = callPackage ./pkgs/development/ruby-modules/bundler-env { }; in { }'
<clever>
but that just tells nix-instantiate to eval the {} at the end and create its .drv file
jensens has quit [(Ping timeout: 255 seconds)]
bennofs has joined #nixos
<evangeline>
clever: I would like to call the bundlerEnv inside the { } block...
<clever>
you can paste code into that {} that will call it
<Filystyn>
ok It does not work for me i basically do nix-shell -p SDL2_mixer and than I get can't find SDL2/SDL_mixer.h on object creating
<Filystyn>
it does not see the header
<Filystyn>
I don't even get to linking part
<clever>
Filystyn: you need to add gcc to the -p list as well
<clever>
installing gcc breaks a lot of the features nix adds to help you
ambro718 has joined #nixos
<Filystyn>
it sees gcc without listing it
<clever>
but if you do list it, it will just work
<Filystyn>
yes
<Filystyn>
it worked lol
<Filystyn>
;-)
<clever>
because installing things doesnt run the setup-hook
<Filystyn>
ok
<clever>
and gcc has a setup-hook that will add everything in $buildInputs to the -I path
<Filystyn>
big thx
<evangeline>
clever: ok, I've build the .drv now. Where can I find the pp-aterm program to pretty print it, it doesn't seem to be in the nixos packages.
<clever>
evangeline: it was removed several months ago
<evangeline>
clever: any other program to pretty print derivations?
<clever>
evangeline: i believe the only option right now is to manualy read the file, its just text
<evangeline>
clever: one more thing, is there any way to rebuild certain (or all) dependencies when running nix-build ?
<clever>
evangeline: --check can force a given derivation to rebuild, but the entire goal of nix is to track what can affect the build, and automaticaly rebuild when that has changed
DutchWolfie has quit [(Quit: Konversation terminated!)]
k0001 has quit [(Remote host closed the connection)]
arianvp2 has quit [(Client Quit)]
k0001 has joined #nixos
ryanartecona has joined #nixos
jgertm has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] KentJames opened pull request #26405: Disable simplejson test on Darwin otherwise build fails. (master...master) https://git.io/vHVKK
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
hotfuzz has joined #nixos
hotfuzz_ has quit [(Ping timeout: 258 seconds)]
python47` has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vmandela opened pull request #26406: git-series: install man page (master...git-series-man) https://git.io/vHV6H
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #26405: Disable simplejson test on Darwin otherwise build fails. (master...master) https://git.io/vHVKK
NixOS_GitHub has left #nixos []
python47` has joined #nixos
mizu_no_oto has joined #nixos
mog has quit [(Ping timeout: 255 seconds)]
deba5e12 has quit [(Ping timeout: 246 seconds)]
Rajsun has joined #nixos
endforma1 has joined #nixos
deba5e12 has joined #nixos
endformationage has quit [(Ping timeout: 240 seconds)]
marsel has joined #nixos
mudri has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vHV1y
<NixOS_GitHub>
nixpkgs/master 10785e8 Joachim Fasting: python.pkgs.systemd: fix eval
NixOS_GitHub has left #nixos []
cmacrae has joined #nixos
<cmacrae>
Yo LnL o/
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vHV1x
<LnL>
ok so /etc/static didn't update correctly for some reason
<cmacrae>
Yeah, I guess not?
<LnL>
removing /etc/static and will probably fix it
<cmacrae>
okay, I'll give that a go
<gleber_>
clever: i'm back, no "escript" is not in the $PATH at that time, since it is from the same package as currently being built
cmacrae has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jluttine opened pull request #26408: rssguard: init at 3.4.0 (master...add-rssguard) https://git.io/vHVDe
NixOS_GitHub has left #nixos []
<eacameron>
Is there a function to fold over a set with keys and values? I want to turn a set into a string.
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
<kier>
the recent change to fixupPhase to check for references to /tmp/nix-build-blah means that one of my packages no longer builds
<kier>
looking into it, it seems that some of the executables contain /tmp/nix-build-blah/__nix_qt5__ in their RPATH
<kier>
what's the best way to resolve this?
<kier>
I was just going to write a script to find all the libraries in __nix_qt5__ that are depended on by the executable, resolve their symlinks (which do point to /nix/store) and add the directories containing the results back to the RPATH
FRidh has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #26277: qtile: Fix using qtile together with desktop (master...fix/qtile) https://git.io/vHBRh
NixOS_GitHub has left #nixos []
<gchristensen>
jophish: bind.dnsutils I think
<gchristensen>
d'oh, kojiro
mabynogy has quit [(Quit: Leaving)]
<kojiro>
thanks
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
takle has quit [(Remote host closed the connection)]
<jophish>
gchristensen: oh :( I thought you had a solution to my woes!
arianvp2 has quit [(Client Quit)]
arianvp2 has joined #nixos
arianvp2 has quit [(Client Quit)]
arianvp2 has joined #nixos
<gleber_>
I am in the bind. Erlang's build phase consists of two parts: (1) build the compiler and (2) build docs. The docs are built using some compiled scripts from (1). So under nix the second part fails, since it assumes a script is available in the PATH. Patching shebangs does not work, since the desired script is not in the PATH before the build. Any ideas how to tackle this?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] kierdavis opened pull request #26410: Fix hooks not being called when overriding phases in various packages (master...hooks) https://git.io/vHVQJ
NixOS_GitHub has left #nixos []
arianvp2 has quit [(Client Quit)]
<kier>
would it make sense to split it into two derivations, the second taking the first as an input?
<cmacrae>
LnL: Well, that was not an ideal time to run out of data! Just moved, so I'm tethering until I have internet
<cmacrae>
Removal of /etc/static worked :)
<LnL>
alright
<pie__>
uh what: gddccontrol: Relink `/nix/store/scx9psf3y9dlp45k95ycd9cglvwks4cx-ddccontrol-0.4.2/lib/libddccontrol.so.0' with `/nix/store/7crrmih8c52r8fbnqb933dxrsp44md93-glibc-2.25/lib/libpthread.so.0' for IFUNC symbol `system'
<pie__>
broken package? (ddccontrol)
<cmacrae>
Though, one problem I've noticed is: 'security.enableAccessibilityAccess' and/or security.accessibilityPrograms
<LnL>
cmacrae: I'm actually reworking the system activation at the moment, should be easier to debug/test when that's finished
<cmacrae>
both of these cause an error, stating it's a read only DB
<cmacrae>
which halts the rebuild
<cmacrae>
LnL: Nice
<LnL>
hmm, are you on the latest master?
simendsjo has quit [(Ping timeout: 240 seconds)]
<cmacrae>
Yep, I am indeed
<cmacrae>
I've started from scratch several times to ensure it wasn't any weird state (including reboots)
<cmacrae>
Happens any time I have either of those options in my configuration
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to release-17.03: https://git.io/vHV5l
<NixOS_GitHub>
nixpkgs/release-17.03 870cf05 Stefan Lau: chromedriver: allow to install on more systems...
NixOS_GitHub has left #nixos []
<LnL>
cmacrae: I'm not sure why it doesn't seem to work for some people
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
python47` has quit [(Remote host closed the connection)]
<cmacrae>
LnL: Hmm, weird
<pie__>
what the hell? the terminal has <blink></blink>???
<pie__>
or was that just a coincidental framebuffer screwup
<pie__>
no, it really is blinking 0.o
adulteratedjedi_ is now known as adulteratedjedi
python476 has joined #nixos
<pie__>
what is this sorcery
takle has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
<LnL>
cmacrae: can you query that sqlite database when you use sudo?
<pie__>
wow theres an ansi escape code for blinking. TIL.
<LnL>
yeah
obadz has quit [(Ping timeout: 260 seconds)]
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
<ToxicFrog>
pie__: yes it does! SGR 5, IIRC
<ToxicFrog>
There was a discussion about this elsenet a few days ago
<ToxicFrog>
A lot of ttys will render it as bold instead, though
obadz has joined #nixos
cmacrae has quit [(Read error: Connection reset by peer)]
<pie__>
yeah i checked wikipedia
<pie__>
its sgr5
<ToxicFrog>
After seeing two people super surprised that this capability exists I now have idea for a work internal april fool's next year
alx741 has joined #nixos
marsel has quit [(Ping timeout: 240 seconds)]
arianvp2 has joined #nixos
kuznero has joined #nixos
sellout-1 has joined #nixos
<kuznero>
Hi All!
romildo has joined #nixos
Itkovian has joined #nixos
arianvp2 has quit [(Client Quit)]
<gleber_>
hey
sellout- has quit [(Ping timeout: 260 seconds)]
<romildo>
When updating my unstable NixOS system I am getting an error regarding zsh syntax highlighting patterns:
<romildo>
error: The option value `programs.zsh.syntaxHighlighting.patterns' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/programs/zsh/zsh-syntax-highlighting.nix' is not a attribute set of strings.
<romildo>
Any clues on how to fix this?
<romildo>
I do not set programs.zsh.syntaxHighlighting.patterns on configuration.nix
sellout-1 has quit [(Quit: Leaving.)]
<clever>
romildo: do you have programs.zsh.syntaxHighlighting.enabled set?
<romildo>
clever, yes
<clever>
that is what is activating that file
<clever>
but i dont see anything abnormal with the latest version on master
<clever>
does the error mention any other files or line numbers?
<romildo>
I have in configuration.nix:
<romildo>
syntaxHighlighting = {
<romildo>
enable = true;
<romildo>
highlighters = [
<romildo>
"main"
<romildo>
"brackets"
<romildo>
"pattern"
<romildo>
"cursor"
<romildo>
#"root"
<romildo>
#"line"
<romildo>
];
<romildo>
};
<clever>
that part looks valid as well
<DIzFer[m]>
it's fixed in master
kiloreux has joined #nixos
<clever>
oh, yeah, last change to that file, 23 hours ago
<kuznero>
I am trying to come up with developer setup for working with Haskell projects in NixOs without using stack. I already know how to use `cabal2nix` and then `nix-shell` or `nix-build`. But how do I make sure that I have proper version of ghc-mod, hlint, stylish-haskell, hoogle, hindent, etc. installed and working together in my vim? Is there any good blog post/tutorial going through this? I am...
<kuznero>
...still very new to Nix/NixOS, so sorry for probably lame question.
simendsjo has quit [(Remote host closed the connection)]
<kuznero>
Not to mention hoogle and if possible making its database offline for a particular project...
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
k0001 has quit [(Remote host closed the connection)]
<Sonarpulse>
kuznero: this is a fine place for that question
<Sonarpulse>
unfortunately I don't know of any 100% standard answer to that
k0001 has joined #nixos
<Sonarpulse>
I for one mostly...just use a more barebones setup
<clever>
kuznero: there is a ghcWithHoogle function, that will generate a hoogle for a given list of hackage packages, and a ghc that can access them
Itkovian has joined #nixos
<kuznero>
clever: sounds interesting, what about things like ghc-mod? Can I state it as a build dependency in shell.nix and run vim from within? Will that bring me to the setup I want (vim+ghc-mod+hoogle+...)?
<kuznero>
Sonarpulse: by barebones you mean just plain text editor without any integration with ghc?
<Sonarpulse>
yeah lol
<Sonarpulse>
emacs stuff was always buggy for me
<Sonarpulse>
I dunno I spend my config yak shaves elsewhere
<Sonarpulse>
don't let my apathy here bias you!
LostLogin has joined #nixos
<kuznero>
Sonarpulse: will try as much as I can before going barebones ;)
<pbogdan>
which is biggest pain as ghc-mod needs to be compiled with the same ghc version as the project being worked on
<clever>
kuznero: depends on how well you know haskell i think, i had some trouble getting it to work because the types where confusing at first
<kuznero>
pbogdan: but there is ghcWithPackages or something similar that should let you have both ghc and some packages
<kuznero>
clever: will put it for later then ;)
takle has quit [(Remote host closed the connection)]
base9 has joined #nixos
<kuznero>
clever: at some point I was having `stack` installed and used that to install ghc-mod and other tools globally (for my user). In that kind of setup vim integration works pretty well. Though it is not very Nix'ish where folks use cabal2nix primarily as far as I understand.
saintromuald has quit [(Ping timeout: 260 seconds)]
<kuznero>
I must be completely blind but my setup works without me doing anything really. I just ran `cabal2nix --shell . > shell.nix` and then nix-shell and from that vim and I got ghc-mod working. I don't have ghc-mod in my shell.nix at all. How does it work?
<clever>
kuznero: what does ghc-mod normally do behind the scenes?
<clever>
kuznero: does it use ghc-pkg?
<pbogdan>
kuznero: it's a bit of pain having to launch separate emacs instances via nix-shell for each project I'm working on and having to restart them whenever I tweak a dependencies for example, maybe my workflow is just flawed though :)
takle has joined #nixos
<ij>
Is there someone in particular who knows how to make haskell package derivations well? I want to add more build-time dependencies.
<pbogdan>
but with that nixos-sandbox functions it would automatically pick ghc / ghci from the current nix project
<kuznero>
clever: I think (intuitive guess) that ghc-mod inspects types and informs about it, like compiler service that does not really compile but is aware of syntax tree
<pbogdan>
except for ghc-mod due to how its emacs mode launches the process iirc..
romildo has quit [(Quit: Leaving)]
<kuznero>
pbogdan: I know emacs folks like living in emacs far longer than I would in my vim session :) Starting vim is much faster typically.
<clever>
if your text editor needs a daemon to hide the load times, it has issues
sellout- has joined #nixos
ixxie has quit [(Ping timeout: 240 seconds)]
phinxy has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nlewo opened pull request #26411: cloud-init: remove argparse from requirements.txt (master...pr/cloud-init-argparse) https://git.io/vHwv4
NixOS_GitHub has left #nixos []
saintromuald has joined #nixos
<kuznero>
clever: Sonarpulse: I must say sorry, since just adding ghc-mod as buildDepends array in generated shell.nix solved the problem. Ghc-mod is fully operational in my vim that I run from within nix-shell! It just works. Not sure what did I do last time that made it fail.
orivej has joined #nixos
<kuznero>
But on that note, how do I modify generated shell.nix expression to have all packages in that shell.nix installed with documentation (haddock) such that I can browse it locally?
sellout- has quit [(Ping timeout: 240 seconds)]
drakonis has joined #nixos
saintromuald has quit [(Ping timeout: 260 seconds)]
endforma1 has quit [(Read error: Connection reset by peer)]
phinxy has joined #nixos
saintromuald has joined #nixos
arianvp2 has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<drakonis>
so, why exactly compilers shouldn't be installed?
<drakonis>
and why exactly use nix-shell instead?
<dash>
drakonis: because you only need them at build time
Itkovian has joined #nixos
<dash>
drakonis: and so they only need to be put into build environments
<drakonis>
but i want to test my code before any final compilation
<drakonis>
not make packages
<dash>
drakonis: that's why there's nix-shell
<dash>
it's for running a shell (or other things) inside a build environment
sitwon has quit [(Ping timeout: 246 seconds)]
sellout- has joined #nixos
<kiloreux>
What is the difference between ffmpeg-full and normal ffmpeg in nixpkgs ?
saintromuald has quit [(Ping timeout: 255 seconds)]
Filystyn has quit [(Quit: Konversation terminated!)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
sitwon has joined #nixos
Filystyn has quit [(Client Quit)]
<Sonarpulse>
kuznero: no idea what you'd be saying sorry for! glad it works!
<Sonarpulse>
no idea off hand
<Sonarpulse>
but try looking for ghcWithPackages
<Sonarpulse>
and replace with ghcWithHoogle
<drakonis>
dash, its not for a complex project fyi
<drakonis>
however it seems great for doing bigger things
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<kuznero>
Sonarpulse: interesting thing is that there is no reference to ghc in generated shell.nix
<dash>
drakonis: OK well nix does not distinguish :)
<dash>
drakonis: writing a nix expr for a simple project is just 3 or 4 lines usually
<Sonarpulse>
kuznero yeah you might need to dig into some helper functions
ixxie has joined #nixos
saintromuald has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
saintromuald has quit [(Excess Flood)]
saintromuald has joined #nixos
saintromuald has quit [(Max SendQ exceeded)]
saintromuald has joined #nixos
<shlevy>
niksnut: ping
<Sonarpulse>
rapid release!
<shlevy>
Sonarpulse: Are you reading my mind? :o
<shlevy>
Sonarpulse: Or was that unrelated to my ping? :D
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #26410: Fix hooks not being called when overriding phases in various packages (master...hooks) https://git.io/vHVQJ
NixOS_GitHub has left #nixos []
saintromuald has quit [(Max SendQ exceeded)]
drakonis has quit [(Remote host closed the connection)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
saintromuald has joined #nixos
proteus-guy has joined #nixos
jgertm has joined #nixos
saintromuald has quit [(Ping timeout: 246 seconds)]
ixxie has quit [(Ping timeout: 246 seconds)]
ceevusee has quit [(Remote host closed the connection)]
saintromuald has joined #nixos
kiloreux has quit [(Ping timeout: 255 seconds)]
saintromuald has quit [(Ping timeout: 260 seconds)]
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 260 seconds)]
saintromuald has joined #nixos
kiloreux has joined #nixos
bennofs has quit [(Ping timeout: 255 seconds)]
saintromuald has quit [(Ping timeout: 255 seconds)]
saintromuald has joined #nixos
hiratara has quit [(Ping timeout: 246 seconds)]
pie_ has quit [(Ping timeout: 260 seconds)]
hiratara has joined #nixos
base9 has quit [(Remote host closed the connection)]
python476 has quit [(Ping timeout: 240 seconds)]
cpennington has quit [(Remote host closed the connection)]
<sphalerite>
How does plasma-shell manage to use up 261GB of virtual memory?
<gchristensen>
the kernel lies about memory
<sphalerite>
I know that, but that's a very interesting lie for it to tell
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vHwRV
<NixOS_GitHub>
nixpkgs/master 7b80f4c Antoine Eiche: nixos/cloudinit: add cloudinit test...
<NixOS_GitHub>
nixpkgs/master 225a230 Graham Christensen: Merge pull request #23173 from nlewo/test/cloudinit...
NixOS_GitHub has left #nixos []
<clever>
haskell programs for example, i think use 1tb of virtual memory
<clever>
instead of constantly trying to allocate memory from the kernel and pay the overhead, it just grabs a 1tb chunk, and lets lazy allocation deal with it
<gchristensen>
o.m.g.
<Sonarpulse>
lols
<sphalerite>
nom nom moar address space
<clever>
i also recently thought of a potential exploit in that, reading the source, its not capable of allocating more space when that 1tb runs out
<sphalerite>
does qt do the same then?
<Sonarpulse>
clever, master of the RTS!
<clever>
so if you somehow had 1tb of swap, and tried to use more then 1tb of haskell heap, it would fail