<kalbasit[m]>
samueldr: I managed to work around it. So the script I'm creating is executing within another script (not directly). So I'm changing the CWD before invoking the script and that works well
<kalbasit[m]>
thx
acarrico has joined #nixos
[Leary] has joined #nixos
ericsagnes has quit [Ping timeout: 260 seconds]
Lears has quit [Read error: No route to host]
jperras has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar pushed to master « gnome3: remove version attribute »: https://git.io/fxYa5
jperras has quit [Ping timeout: 252 seconds]
nikivi has quit [Quit: ZNC is awesome]
Rusty1 has quit [Quit: Konversation terminated!]
<{^_^}>
[nixpkgs] @jwiegley pushed to master « coqPackages.coq-haskell: Support building with Coq 8.8 »: https://git.io/fxYVO
<Myrl-saki>
error: infinite recursion encountered, at undefined position
<Myrl-saki>
RIP
glasserc has joined #nixos
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 0 commits to yegortimoshenko-patch-6: https://git.io/fxYrN
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 0 commits to yegortimoshenko-patch-5: https://git.io/fxYrx
<samueldr>
Myrl-saki: (though I suspect you know) the most common infinit recursion cause with overlays is wrong use of super vs. self AFAIK
<Myrl-saki>
Good point.
<andreabedini>
Hi all, I'm trying to write a derivation for a rails app which uses local gems. bundix doesn't support local gems but I can get around it; but then bundlerEnv breaks
<glasserc>
I started to get "glXChooseVisual failed" when trying to run Steam (Intel graphics on a Lenovo X1 Carbon). People online seem to think it's a driver issue but it stopped working while the machine was running and glxgears seems to work fine
<infinisil>
Myrl-saki: Use --show-trace to spot the inf rec
<Myrl-saki>
infinisil: Yeah, I already spotted it.
<colemickens>
Oct 05 01:45:39 kix.cluster.lol bootstrap-nixos.sh[11325]: error: executing 'tar': No such file or directory
<colemickens>
Oct 05 01:45:39 kix.cluster.lol bootstrap-nixos.sh[11325]: error: program 'tar' failed with exit code 1
<colemickens>
This wasn't happening when I updated this derivation and tested it. And then I recreated this machine (from a nixos-unstable image from ~3-4 months ago).
<colemickens>
Maybe it's an issue with buildGoPackage?
<{^_^}>
[nixpkgs] @peterhoeg merged pull request #47842 → nixos system-activation: support activation scripts run in a user context → https://git.io/fxtrM
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #47898 → nixos system-activation: support activation scripts run in a user context → https://git.io/fxYXR
mtjmullen has joined #nixos
slack1256 has quit [Ping timeout: 268 seconds]
<sevanspowell>
Can I override my GHC compiler version with `pkgs.haskellPackages.pkgA` or is `pkgs.haskell.packages.${compiler}.pkgA` strictly better for this reason?
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
magnetophon has joined #nixos
<{^_^}>
[nixpkgs] @bgamari opened pull request #47899 → qpdf: Fix URL of CVE-2018-9918.patch → https://git.io/fxYMk
<magnetophon>
I noticed much more frequent updates of unstable lately. Is there a reason for that, or is it just because hydra coincidentally managed to build more packages than normal
<magnetophon>
?
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @nyanloutre opened pull request #47906 → nixos/emby: fixes binary name change introduced by #47659 → https://git.io/fxY7z
Ariakenom_ is now known as Ariakenom
sir_guy_carleton has joined #nixos
grenade has quit [Ping timeout: 240 seconds]
<sir_guy_carleton>
i think i ruined my sd-card
<Ke>
?
ij has joined #nixos
jasongrossman has joined #nixos
<sir_guy_carleton>
i tried putting putting the nixos arm64 image on the disk, but i didn't read the docs carefully enough and i just put it in
worldofpeace has joined #nixos
<sir_guy_carleton>
now the disk has a boot sector has a corrupted sector and i cannot get rid of it.
qqlq has joined #nixos
<Ke>
not even dd if=/dev/zero of=/mmcblk0 bs=1M count=1 conv=fsync?
<Ke>
where mmcblk0 is the sd card
<Ke>
omit the question mark
<qqlq>
I'm quite happy with my custom emacs derivation under Nixos and I want to use it under macOS as well, what's the correct way to add custom derivations and install them under regular Nix?
georges-duperon has joined #nixos
<sir_guy_carleton>
Ke: haven't tired that
<Ke>
do you know, what is the correct device?
<sir_guy_carleton>
well, right now i'm using my main machines sd-card reader
<sir_guy_carleton>
it's in sde
<Ke>
ok
<sir_guy_carleton>
and dd just says it's a read only file system
<clever>
sir_guy_carleton: ls -l /dev/sde
<Ke>
is it a full size SD card
<Ke>
did you perhaps turn on the write protect switch
<sir_guy_carleton>
ls -l /dev/sde says root/disk has write permissions
<clever>
can you paste the output it gave here?
<sphalerite>
qqlq: you can stick it in an expression file and run nix-env -f foo.nix -i
civodul has joined #nixos
<sphalerite>
qqlq: so your emacs.nix might look like `with import <nixpkgs> {}; emacsPackagesNg.emacsWithPackages (ps: …)`
<sir_guy_carleton>
Ke: just checked, it was not write protected.
<Ke>
can you pastebin the kernel log
<qqlq>
sphalerite: Roger that, thanks
goibhniu has joined #nixos
georges-duperon has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @srhb pushed commit from @pacien to release-18.09 « matrix-synapse: 0.33.5 -> 0.33.6 »: https://git.io/fxYbM
bemeurer has quit [Quit: WeeChat 2.2]
johanot has joined #nixos
yayforj has quit [Remote host closed the connection]
worldofpeace has quit [Ping timeout: 268 seconds]
orivej has joined #nixos
<{^_^}>
[nixpkgs] @teto opened pull request #47909 → linux: inside nix-shell, allow make menuconfig → https://git.io/fxYpX
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
<aramiscd>
Hey, I'm looking for something like
<aramiscd>
environment.gnome3.excludePackages
<aramiscd>
but for packages in general
<aramiscd>
Or is this just a dev channel?
<aramiscd>
Specifically I'd like to remove xterm, and I'd like to do it via /etc/nixos/configuration.nix
<srhb>
aramiscd: This is definitely a generic ask-questions channel :)
<aramiscd>
srhb: Ok. Thanks.
<symphorien>
aramiscd: an overlay with xterm=null; ?
<srhb>
aramiscd: Before doing that, I think it's important to recognize that the only reason you have xterm, for instance, is because _some_ module is depending on it. It might be worth looking into which module pulled it in. :)
rembo10 has quit [Remote host closed the connection]
simukis has joined #nixos
mayhewluke has quit [Ping timeout: 272 seconds]
mayhewluke has joined #nixos
Dedalo has joined #nixos
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to staging « numactl: drop musl patch »: https://git.io/fxOv1
Izorkin has joined #nixos
Izorkin has quit [Client Quit]
Dedalo has quit [Client Quit]
carlosdagos has quit [Quit: Connection closed for inactivity]
Dedalo has joined #nixos
Izorkin has joined #nixos
boothead has joined #nixos
<boothead>
Hi folks, I'm getting this error "error: current Nix store schema is version 10, but I only support 7". I'm trying to follow the instructions in the faq (https://github.com/domenkozar/nix-cookbook/blob/master/source/faq.rst) but running nix-store (/root/.nix-profile/bin/nix-store) is also giving the same error. Any tips?
<srhb>
boothead: You need a newer Nix.
<srhb>
boothead: You've probably ended up in this situation by running _some_ newer Nix, so it's presumably on your system, but now you're using an older one that's incompatible with it.
<srhb>
boothead: Are you sure you want to downgrade the schema?
<boothead>
srhb: yes, that certainly figures. How dp I make sure I'm running the latest?
<srhb>
boothead: That's what the guide you linked describes. It seems to me, if you don't have a good reason not to upgrade, just go with a newer Nix. :)
<srhb>
boothead: Well, we probably need more information about your system. is this Nix on NixOS or somewhere else?
b has joined #nixos
<boothead>
Ah right - yeah, I don't want to downgrade. Looks like I didn't parse that error message properly :-)
<srhb>
Ah good. :)
<boothead>
It's nixos
<boothead>
I thought I'd upgraded to 18.03
<srhb>
boothead: What does /run/current-system/sw/bin/nix --version say?
<srhb>
boothead: (Guessing that you simply have an old nix in root's profile right now)
<boothead>
nix (Nix) 2.0.4
<srhb>
Great
<srhb>
Try /run/current-system/sw/bin/nix-env -e nix as root
<srhb>
boothead: That should use the 2.0.4 nix to uninstall nix from root's profile
sevanspowell_ has joined #nixos
<boothead>
OK - that seemed to work, now run nixos-rebuild switch --upgrade?
<srhb>
As far as your error message is concerned, I think it should now be fixed. If you want to upgrade, sure, go ahead :)
<domenkozar>
boothead: you probably just need to restart the daemon
<srhb>
domenkozar: How'd you figure that? Wouldn't the 18.03 upgrade do that?
<domenkozar>
well most probably some tool used nix unstable
<boothead>
How do i restart the daemon domenkozar? Do I need to do that before I run upgrade?
<srhb>
oooh
sevanspowell_ has quit [Client Quit]
<domenkozar>
while the global nix version is older
<srhb>
OK, that makes sense. Hadn't thought of that. :)
<domenkozar>
nix migrates sqlite to latest schema version once it works
<domenkozar>
s/works/runs/
<srhb>
I think I misunderstood and thought boothead was already on 18.03
<domenkozar>
boothead: probably best to upgrade NixOS anyway :)
rembo10 has joined #nixos
<boothead>
Ok running upgrade now. Thanks for the help srhb and domenkozar!
<arianvp>
But... My users on nixos don't have this env variable set, yet they can access all the commands
<arianvp>
why?
<arianvp>
and as soon as I create a container, that doesnt have this env variable, it can't access the nix commands, untill I set it
<rawtaz>
arianvp: good question! im looking forward to hearing the answer :)
<rawtaz>
arianvp: perhaps the nix tools default to looking for a socket somewhere in the filesystem, which exists when your nix daemon runs (which it does in nixos)?
<arianvp>
first of all, that's not documented anywhere... but was my hypothesis as wlel
<arianvp>
but the nix-daemon socket is mounted in the same location in nixos-container as it is on the host system
<arianvp>
so I don't think that hypothesis holds
<arianvp>
Ok i'll log off now, but I'll read back the logs later, if anybody has an answer :D
<elvishjerricco>
arianvp: I think if you don't own the nix store, it assumes it's a daemon situatation
<elvishjerricco>
i could be wrong on that though
<arianvp>
aaaaah that would explain.... because the user inside the container is root
<arianvp>
so it thinks it owns the nix store
<elvishjerricco>
arianvp: You can always override the default behavior with `--store`, post-2.0 :)
<arianvp>
Okay, I think I just figured out how to unbreak nixos-container command then.
<arianvp>
lets see if I can get it in before the 18.09 release :)
<elvishjerricco>
arianvp: Sounds interesting. What's the issue with nixos-container?
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reinzelmann has joined #nixos
asymmetric_ has quit [Ping timeout: 246 seconds]
revtintin has joined #nixos
arianvp has quit [Ping timeout: 256 seconds]
silver has joined #nixos
boothead has joined #nixos
<boothead>
Hi again. I've upgraded, rebooted and now: error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<boothead>
Looking around it seems this might also be a problem with older versions of something being used?
<clever>
boothead: which command did you run and get that error?
<boothead>
I ran nix-env -qaP \* (/home/ben/.nix-profile/bin/nix-env according to which)
<clever>
boothead: nixos?
<boothead>
Yeah - just ran nixos-rebuild switch --updgrade as root to upgrade to 18.03
<clever>
boothead: `/run/current-system/sw/bin/nix-env -e nix` to uninstall nix from your user profile, its outdated and you need to use the system one
<boothead>
builder for '/nix/store/2sv63km1zjwnpbxp5a0j0cnlgksiqxql-user-environment.drv' failed with exit code 1 error: build of '/nix/store/2sv63km1zjwnpbxp5a0j0cnlgksiqxql-user-environment.drv' failed
<boothead>
nix --version: nix (Nix) 2.0.4
<clever>
what did it show above that error?
<boothead>
uninstalling 'nix-1.11.8'
<boothead>
building '/nix/store/2sv63km1zjwnpbxp5a0j0cnlgksiqxql-user-environment.drv'...
<clever>
anything else?
<boothead>
Look like I still have things in /home/ben/.nix-profile/bin
<boothead>
No, just those 4 lines of output
<clever>
that is strange, try again with -vvv and throw it in a pastebin
<LnL>
the daemon isn't running
<LnL>
or your store has weird permissions
<clever>
the original error is nix1 in nix-env, and nix2 on the host
<LnL>
oh it's a different error now?
johanot has joined #nixos
<ben>
please don't delete /home/ben/.nix-profile/bin, that might become very inconvenient for me
<LnL>
none of the lines you posed contain the actual error as far as I can tell
<clever>
LnL: and when using nix2 to uninstall nix1, it jsut fails with failed with exit code 1 error: build of '/nix/store/2sv63km1zjwnpbxp5a0j0cnlgksiqxql-user-environment.drv' failed
<clever>
error: getting status of '/nix/store/b7v6d0ig0rwmc6883xvmz4qy5hamh4i3-firefox-with-plugins-37.0.2/share/icons/firefox.png': No such file or directory
<{^_^}>
[nixpkgs] @Vskilet opened pull request #47910 → nixos/emby : use the dataDir option → https://git.io/fxOYH
<clever>
boothead: you need to also uninstall firefox-with-plugins, due to a bug in nix2
<clever>
and/or upgrade it to a newer firefox
<{^_^}>
[nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/fxOY5
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « psi-plus: 1.3.410 -> 1.3.422 »: https://git.io/fxOGO
[Leary] has joined #nixos
Lears has quit [Read error: No route to host]
kwork has joined #nixos
Rusty1 has joined #nixos
arianvp has joined #nixos
<arianvp>
elvishjerricco: nixos-container is broken since 17.09 basically
<arianvp>
the docs state that you can execute "nix" commands inside the container
ThatDocsLady has quit [Ping timeout: 252 seconds]
<arianvp>
which is not true anymore since nix 2.0, as it fails to acquire a read-lock on the nix-db
<arianvp>
but it shouldn't acquire that lock in the first place ... and that was because when you do `nixos-container root-login` you are the root user ,and thus it thinks it owns the nix store
<arianvp>
and hence doesn't talk to the nix-daemon, but tries to acquire the lock and modify the store itself
<arianvp>
Okay.. more bugs inside nixos-container :(
<arianvp>
/nix/var/nix/profiles/per-user/root is empty
<arianvp>
how do I populate it? `nix-channel --add` doesn't populate it
<arianvp>
this thing is really really messy :/
<clever>
arianvp: thats the normal nix-env profile, its normal to be empty
<arianvp>
but all nix commands currently fail now
<LnL>
channel profiles don't change until you run an update
<arianvp>
ah --update
<arianvp>
[root@test:~]# nix run nixpkgs.hello warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs' does not exist, ignoring
<clever>
arianvp: that is roots channels, which is different, and yeah, you need --udpate then
<arianvp>
nix-channel --update deadlocks in a container on a FUTEX_WAIT
<arianvp>
and never terminates
<arianvp>
oh wait. that's my fault
<arianvp>
hmm. network is dead inside nixos-container
<arianvp>
does it disable network by default?
<clever>
it shouldnt, i believe
<arianvp>
can't ping the containers I create either .
<goibhniu>
arianvp: I think you need to set the nat.externalInterface
<goibhniu>
on the host
<goibhniu>
there's a section about it in the manual IIRC
<arianvp>
oh yeh I see
jperras has joined #nixos
<arianvp>
some times the `nixos-container start` and `stop` containers do not terminate
<arianvp>
nope, still no network, even after enabling the nat stuff :(
<bgamari>
it would be nice if the command-not-found wrapper told you which output you needed
julm has quit [Ping timeout: 252 seconds]
julm has joined #nixos
<andi->
bgamari: why output? all-packages.nix has the line "dnsutils = bind.dnsutils"
Twey has quit [Ping timeout: 252 seconds]
Twey has joined #nixos
orivej has joined #nixos
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wpcarro has joined #nixos
<wpcarro>
I'm having trouble getting my resolutions correct with NixOS. I'm using a 15" unibody MBP. Unless I use the max resolution (2880 x 1800), the antialiasing looks off. The problem with the high resolution is that things like Chrome and 14px fonts look pretty small. Has anyone else had trouble with this?
<wpcarro>
Ok so maximize the resolution and then decrease the DPI until everything feels more... normal?
<ivan>
yes
nuncanada has quit [Quit: Leaving]
<wpcarro>
Okay great!
teoma has joined #nixos
<wpcarro>
The only other issue I've been having with Nix is trying to figure out sensible keybindings to support Readline things (ie Ctrl-{a,e,f,b}) and other things like Ctrl-v, Ctrl-c (copy-paste) etc
<wpcarro>
But I don't really know how to frame that question yet to get the answer I'm after. Maybe just growing pains switching from OSX to Linux
iyzsong has quit [Ping timeout: 268 seconds]
<wpcarro>
other than that, my experience has been sensational. Cannot use anything use but NixOS I don't think
<teoma>
My NixOS 17.09 computer suddenly doesn't boot (just a blinking cursor, no GRUB menu). I can boot from a USB stick and mount the HD on /mnt. /mnt/run is empty (normal?) so `chroot /mnt' fails. What's the simplest way to reinstall GRUB?
wpcarro has quit [Remote host closed the connection]
<goibhniu>
arianvp_: if you PM me your email address, I'd like to send you a little present ... that bug has been haunting me for ages :D
<srhb>
teoma: Mounting everything and running nixos-install, probably. Otherwise you can also use nixos-enter to get a more functional chroot system
siers has quit [Ping timeout: 268 seconds]
<teoma>
srhb: I'll look into those, thanks!
wpcarro has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @ikervagyok opened pull request #47919 → [WIP] services.nextcloud: add port option → https://git.io/fxOwc
wpcarro has quit [Client Quit]
Dedalo has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
astronavt has joined #nixos
astronavt__ has quit [Read error: Connection reset by peer]
xok has joined #nixos
<xok>
hello all...
wpcarro has joined #nixos
astronavt has quit [Max SendQ exceeded]
<hodapp>
hello............
<teoma>
After nixos-enter, nixos-rebuild gives this error while building the system configuration: Error in tempdir() using /run/user/0/nix-build.XXXXXX: Parent directory (/run/user/0) does not exist at /nix/store/br9pr4npwp4lqyzafpq9chvmzvganj0j-nix-1.11.15/lib/perl5/site_perl/5.24.3/x86_64-linux-thread-multi/Nix/Utils.pm line 45. /run is not empty but /run/user doesn't exist. Any idea what to do?
astronavt has joined #nixos
astronavt has quit [Max SendQ exceeded]
astronavt has joined #nixos
<teoma>
Ah, I set TMPDIR to /tmp, and that seems to work.
<wpcarro>
ivan: DPI settings worked *magically*
<xok>
I am using an nginx package, there are some modules available for it, can anyone explain how do I use modules for nginx?..
<wpcarro>
Thank you so much - I wish I would've asked this question sooner instead of tolerating the miniscule display
astronavt has quit [Max SendQ exceeded]
astronavt has joined #nixos
<wpcarro>
Does anyone know if Nix supports changing the cursor size? Or is that handled at the X11 configuration level?
<wpcarro>
Or maybe even i3wm... still trying to sort out whose responsibility is what
<jasongrossman>
wpcarro: Many things (e.g. key bindings) can be configured at more than one level. Which is a real pain compared to something more unified like MacOS.
<wpcarro>
jasongrossman: that's what I'm starting to realize. I always prefer the declarative, configuration.nix way if it's supported
<ivan>
wpcarro: you need a "cursor theme" with a size above 16
<wpcarro>
too many scatted rc, config, etc files gives me anxiety
<ivan>
some themes have multiple sizes like DMZ White
<jasongrossman>
wpcarro: Right, but not much in the way of user preferences (as opposed to system preferences) has Nix options ... although some does.
<gchristensen>
omg y'all, I got link-to-definition working for docs
<jasongrossman>
wpcarro: You can unscatter your config files using home manager if you like (do you know about that?).
<wpcarro>
ivan: thanks for the link. I'm slowly learning that the Arch Docs are super helpful for NixOS
<jasongrossman>
wpcarro: But home manager doesn't ensure compatibility between programs the way NixOS options do.
<wpcarro>
jasongrossman: I have Home Mgr in the back on my mind - saving it for when I fully get Nix beneath me. Needless to say - I'm intrigued. Just a tad overwhelmed atm trying to learn how everything boostraps, etc
<wpcarro>
I was an OSX user for close to 10 years
<jasongrossman>
wpcarro: Home manager is much less important than other Nix things, IMO.
<wpcarro>
jasongrossman: for now, I manage most things with `stow` and a personal dotfiles repo
<wpcarro>
It works pretty well as long as I'm disciplined about commiting updates and whitelisting new configs in stow
<jasongrossman>
wpcarro: I don't think home manager is any improvement on that.
<symphorien>
wpcarro: then for the copy paste issue you mentionned earlier, do you know about select/midle mouse button ?
<{^_^}>
[nixpkgs] @grahamc opened pull request #47920 → docs: Link to Definition → https://git.io/fxOKL
astronavt has quit [Remote host closed the connection]
<gchristensen>
^ samueldr, LnL ^.^
<wpcarro>
symphorien: I'm having a tough time knowing when to press Ctrl-v and when to middle-click
astronavt has joined #nixos
<jasongrossman>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 34
<wpcarro>
I have an alias `pbcopy` that is `xclip -selection clipboard -i` and `pbpaste` that is `xclip -selection clipboard -o` then kind of simulate OSX's commands
<wpcarro>
But I'm still having trouble copying bw terminal, browser, Emacs, and Vim
<jasongrossman>
wpcarro: You have to decide whether you want to use both of X's two main clipboards, or only one of them. (I only use one.)
<symphorien>
well there are two totally independent paste buffers
<wpcarro>
So I kind of just mash the keys until my text appears (sad but true)
<wpcarro>
jasongrossman: I'd *love* to just have one
<jasongrossman>
wpcarro: Then just use one and ignore the other one.
<wpcarro>
My backlog of Nix improvement waxes with each passing day
<wpcarro>
jasongrossman: ok I imagine that's config'd in some xresources config?
<jasongrossman>
wpcarro: There isn't much consistency of keys compared to MacOS, but almost all terminals use shift-control-{c,v} while almost all other programs use control-{c,v}.
<jasongrossman>
wpcarro: No, they both exist whether you use them or not, but you can ignore whichever one you don't like. Read up about X if you need to know the difference.
<wpcarro>
Has anyone been able to successfully change their cursor theme using a package from nixpkgs? I'm trying it now with vanilla-dmz and I'm following the Arch "cursor theme" wiki for X11 setup, but I cannot seem to get my system to use it
<wpcarro>
I'm modified my ~/.XResources, ~/.xinitrc and rebooted my machine. Still nothing
<symphorien>
try ~/.Xdefaults
<wpcarro>
as in - moving XResources -> XDefaults?
<symphorien>
yes, but with lowercase d
<wpcarro>
gotcha. restarting services now, so going offline
<wpcarro>
(to test)
<symphorien>
you can reload with xrdb
wpcarro has quit [Remote host closed the connection]
sgraf has quit [Quit: Leaving]
MrFrog has joined #nixos
<symphorien>
,tell wpcarro pay attention that in the article they talk about .Xresources not .XResources
<{^_^}>
symphorien: I'll pass that on to wpcarro
Denommus has quit [Remote host closed the connection]
Twey has quit [Quit: WeeChat 2.1]
astronavt has quit [Read error: Connection reset by peer]
astronavt has joined #nixos
earldouglas has left #nixos [#nixos]
<MrFrog>
i'm new to nix and on a mac and having issues installing a package (elasticsearch). it looks like i'm missing a command "patchelf". i'm unsure if something is wrong with the package, my environment, or how i'm writing my `shell.nix` file: https://pastebin.com/chGfuenp
emerson has quit [Quit: WeeChat 2.2]
emerson has joined #nixos
astronavt_ has joined #nixos
astronavt has quit [Read error: Connection reset by peer]
Twey has joined #nixos
astronavt_ has quit [Read error: Connection reset by peer]
astronavt_ has joined #nixos
<sphalerite>
MrFrog: it looks like the elasticsearch package doesn't support macOS
<sphalerite>
:/
<MrFrog>
sphalerite: oh perfect thanks! good to know. just really wasn't sure why something that felt simple was failing
<MrFrog>
is there something that makes it obvious it doesn't support macOS? patchelf specifically?
Twey has quit [Disconnected by services]
Twey has joined #nixos
<Twey>
Sorry, got disconnected
<sphalerite>
yeah patchelf just isn't for macos stuff, and the way that the elasticsearch build tries to use it even though you're on macos suggests that the author of the package didn't take macos into account
<Twey>
In case it didn't get sent: How do I use PulseAudio? I tried https://nixos.wiki/wiki/PulseAudio but a) pulse isn't running as a service and b) I can't run the PulseAudio mixer (the closest I got was `nix-shell -p python3Packages.python python3Packages.pyqt5 python3Packages.dbus-python --run qpaeq`, which gives `No module named 'dbus.mainloop.pyqt5'`)
<MrFrog>
sphalerite: actually one interesting thing is if i install like `nix-env -i elasticsearch` it seems to work (well at least gets to the point that when i run the command it wants me to set some paths so it knows where to work with data i believe)
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<symphorien>
you may be installing something else, unwillingly
<sphalerite>
MrFrog: huh, that's weird
<sphalerite>
MrFrog: does `nix-shell -p elasticsearch` work?
<MrFrog>
sphalerite: no same issue (i ran `NIXPKGS_ALLOW_UNFREE=1 nix-shell -p elasticsearch`)
<Twey>
Hm, it looks like systemd doesn't see PA's unit files: Failed to start pulseaudio.service: Unit pulseaudio.service not found.
<Twey>
Though I have /nix/store/ydcsvfyi6g8wgm53wc6clzvy5f45dr56-unit-pulseaudio.service
<Twey>
And /nix/store/ydcsvfyi6g8wgm53wc6clzvy5f45dr56-unit-pulseaudio.service/pulseaudio.service
<goibhniu>
Twey: have you enabled it?
<Twey>
goibhniu: I have hardware.pulseaudio.enable = true; and nixpkgs.config.pulseaudio = true;
Dedalo has joined #nixos
<symphorien>
and sound.enable = true ?
<Twey>
That's all I've done; do I need to do anything else? The wiki told me it should just work :(
<Twey>
symphorien: Hm, no, though I had sound before installing PulseAudio (and indeed still have sound: it's just removed all my mixers)
<Twey>
(so now everything plays through my speakers >.>)
<MrFrog>
symphorien: good to know about -i and -A. if i run `nix-env -f '<nixpkgs>' -iA elasticsearch` then there's no output and nothing happens, is that a sign that the package isn't intended for macOS? if i do `nix-env -f '<nixpkgs>' -iA hello` that works
<clever>
Twey: by default, PA runs in a per-user mode, not a system-wide mode
<clever>
Twey: so there is no service files for the daemon
<Twey>
Oho
<Twey>
Thank you
<clever>
Twey: /etc/pulse/client.conf controls what a client auto-starts, if the daemon is missing
<goibhniu>
as symphorien says, you do also need sound.enable
<clever>
which allows you to still configure it system wide, but individual apps can still start it on demand
<Twey>
I notice it's running on my user
<Twey>
How can I control it?
<clever>
Twey: try running pavucontrol and look at the levels
<symphorien>
MrFrog: it is a bug, on macos nix silently ignores unfree stuff
<Twey>
clever: Hm, it sees my speakers and my headphone jack, but the mixers are disabled
<clever>
Twey: perhaps its just on mute?
<Twey>
Oh, just because I had audio muted
<Twey>
Yeah
<Twey>
It doesn't see my HDMI output
<Twey>
Can I tell it about that?
<symphorien>
nvidia card ? this can interfere
<clever>
Twey: and youve checked the output devices tab?
<clever>
ive had to disable hdmi audio on my end
<Twey>
clever: Yes, and ‘all’ is enabled
<clever>
i'm using DVI adapters, and pulse is still trying to feed audio to the speakerless monitors
<MrFrog>
ok perfect, thanks all for your help. i'm realizing now that it wasn't installing elasticsearch correctly before either, it was just getting a command in place that was misleading me (even though it had failed in the postfixup stuff)
<Twey>
I had HDMI working through ALSA, but I wanted to be able to hotswitch between headphones/HDMI and the ALSA people told me that's too hard to do in ALSA and involved writing C and I should just use PA
<Twey>
But PA doesn't seem to see the HDMI output at all
<clever>
Twey: you should be able to do that from the playback tab in pavu
<clever>
Twey: oh, make sure nothing is using the hdmi over alsa, when you start the pa daemon
<clever>
PA cant claim any alsa devices that are in use by other things
<clever>
`pactl exit` to kill the pa daemon, it will self-restart, and then you may gain hdmi devices
<Twey>
Playback only shows ‘System Sounds’
<clever>
then nothing is currently using pulse to make noise
<clever>
start something up
Synthetica has quit [Quit: Connection closed for inactivity]
Tucky has quit [Quit: WeeChat 2.2]
astronavt_ has quit [Ping timeout: 252 seconds]
<sphalerite>
symphorien: it's not just on macos is it? It's nix-env in general iirc
<Twey>
clever: No sound is coming through HDMI :(
<clever>
Twey: check the playback tab to see where it is routed
<Twey>
clever: I can unmute ‘built-in audio’ and get audio through my speakers
jperras has quit [Quit: WeeChat 2.2]
<{^_^}>
[nixpkgs] @samueldr merged pull request #47898 → nixos system-activation: support activation scripts run in a user context → https://git.io/fxYXR
<{^_^}>
[nixpkgs] @samueldr pushed 4 commits to release-18.09: https://git.io/fxOHe
<Twey>
clever: ‘Built-in Audio Analog Stereo’ (I think this refers to my internal speakers)
<clever>
Twey: ok, try stopping all audio related applications, including pavucontrol, and `pactl exit`, then check `ps aux | grep pulse`, is it running again?
<samueldr>
Twey: using pavucontrol, check in "Output Devices" tab which one has the "Set as fallback" option selected?
<Twey>
clever: Yes
<clever>
Twey: if you `pactl exit` and re-check pulse, is it a different pid?
<Twey>
samueldr: I have only one device there
<Twey>
clever: Yep, seems it restarted
<samueldr>
in the condiguration tab, do you have other devices on which you can enable/disable profiles?
<samueldr>
(sorry if I missed something you said earlier)
<Twey>
samueldr: Oooh.
<clever>
Twey: check `ps -eH x` and see which process is above it
<Twey>
samueldr: I have a drop-down there with HDMI things in it.
<clever>
Twey: ah yeah, you can do things like changing the codec and bitrate for the hdmi output
<clever>
which changes the outputs and inputs on the device
<samueldr>
on nvidia class hardware I have the GF108 High Definition Audio Controller; on intel hardware I have two "Built-in Audio", one being HDMI the other the jack+speakers
worldofpeace has joined #nixos
<clever>
related, bluetooth devices have a profile option on the configuration tab
<clever>
and the high quality audio profile, gives you stereo playback, but no capture, making it useless for voice calls
<samueldr>
yes, HSP or A2DP
<clever>
the phone profile has mono playback and mono capture
<Twey>
samueldr: That's all I have, though — I can select it from the dropdown under ‘Built-in Audio’ but there are no other controls for anything
<samueldr>
(A2DP is probably the desired one, though it doens't have audio capture)
<samueldr>
yeah, I never have seen other controls than "Profiles" under the Configuration tab
<clever>
Twey: can you pastebin the output of `pactl list` ?
<clever>
samueldr: for my desktop sound card, with custom PA configs, i can even do audio capture on 3 inputs at once (front and rear mic, plus line-in)
<clever>
but its really fiddly and i had to patch pulseaudio to even support it
<Twey>
1317 ? Ss 0:00 /nix/store/3p7l67jgj2fqxh2gzybawcyh3j305cf9-systemd-239/lib/systemd/systemd --user ← this is above it
<samueldr>
clever: meant *from* the bluetooth device
<samueldr>
because yeah, I do audio out to bluetooth, but input from a discrete usb interface
<clever>
ah
<clever>
Twey: ah, so its being restarted by a systemd-user service, what about the pastebin of `pactl list` ?
<samueldr>
with the HSP profile the blutooth headset does audio capture and playback... but isn't really useful :/
<clever>
samueldr: for my desktop, there are 3 capture volume sliders, all named `Capture`, and also 3 muxes all named `Input Source`
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
clever: heh, I tend to avoid the headaches of figuring it out (inside pulseaudio) by disabling everything I can
<clever>
samueldr: but also, there are only 3 choices total, so the entire mux grid is pointless, and you can just hard-wire each channel to a single input
<clever>
samueldr: the problem, is that the pa config files, dont support index, when mapping alsa mixers to virtual devices
<Twey>
I really want to package OSS4, shame it's such a pain…
<clever>
so you have no way to refer to the 2nd and 3rd duplicates, without patching PA itself
<clever>
which i did :P
<clever>
Twey: line 520, you only have a single audio card, using the snd_hda_intel driver
<Twey>
clever: That's consistent with what I've seen in ALSA
<clever>
Twey: line 545-570, some of its profiles include hdmi audio out
jD91mZM2 has joined #nixos
<clever>
Twey: so just select an hdmi capable profile in the configuration tab, and then built-in audio will go to hdmi instead
<Twey>
clever: I did, but it doesn't make any sound through the HDMI
<clever>
try a different profile, some may not be compatible with the remote device
<clever>
it also looks like your driver is a bit limited, and can only do speaker or hdmi, and never both
nschoe has quit [Ping timeout: 245 seconds]
<symphorien>
sphalerite: possible. I only encountered it once on macos, so I can't tell.
<clever>
symphorien: ive also heard of the same bug on linux i believe
<symphorien>
ah ok
nschoe has joined #nixos
endformationage has joined #nixos
<Twey>
clever: Ooh, I managed to find an HDMI profile that works!
<Twey>
I tried them all and none of them worked, and then I tried them again and one of them started playing sound through HDMI
<Twey>
Though given that I have only one device I can't fallback…
MrFrog has quit [Quit: Page closed]
Twey has quit [Disconnected by services]
Twey has joined #nixos
<clever>
Twey: yeah, things will fail hard if that device disapears, but you can load a null sink to help with that
<clever>
`pactl load-module module-null-sink` to temporarily load one
<clever>
then when you change profiles, it will loose the built-in audio sink, switch to the null
<clever>
and then you regain the built-in audio, and it switches back
<clever>
that should allow you to change profiles while it is playing audio
<clever>
glasserc: if you have the .drv for each generation (nix-store --query --deriver) you can use nix-diff to see how the compile directions differed
trevthedev has joined #nixos
<trevthedev>
how do i enable xwinwrap on nixos?
<trevthedev>
services.xserver.xwinwrap.enable = true; doesnt work, as xwinwrap doesnt exist
<jD91mZM2>
Oooo, 18.09 is surely out now! Didn't notice! How does one upgrade?
<gchristensen>
jD91mZM2: not quite yet, but like ... next 24hrs :)
<{^_^}>
#46939 (by vandenoever, 2 weeks ago, open): firefox cannot find opengl when installed with nix-env
<wpcarro>
Has anyone here had success changing their cursor size and theme in NixOS? I've tried following along with the Arch Wiki, but seems like no matter what I change I'm stuck with the default (tiny) cursor. I'm using i3wm and figured this would be managed with X11
<{^_^}>
wpcarro: 2 hours, 31 minutes ago <symphorien> pay attention that in the article they talk about .Xresources not .XResources
<wpcarro>
{^_^}: thank you. that was mistyped on my part. I'm using .Xresources - still no effects
lopsided98 has quit [Quit: Disconnected]
<gchristensen>
jdnavarro: sometimes it just takes us volunteers a few extra days to finish it off :)
<gchristensen>
oops, jd9...ohthey'regone
lopsided98 has joined #nixos
<wpcarro>
I've even tried .Xresources -> .Xdefaults. I have `xrdb ~/.Xresources` in my `.xinitrc` and in my i3 config ... open to trying other things
<slack1256>
I declared an environment with buildEnv instead of mkShell. Is there any way to load it once built?
Denommus has joined #nixos
bgamari has quit [Ping timeout: 252 seconds]
<gleber_>
I've created a GPT-formatted USB key with NixOS. I've used gpart to partition it and unetbootin to copy content of the latest NixOS installation ISO. The machine does not boot, as it fails to find `/dev/root` device which points to `/dev/by-label/NIXOS_ISO`, but I see that the right device is actually available under `/dev/by-partlable/NIXOS_ISO`. Any ideas how to fix it?
worldofpeace has quit [Read error: Connection reset by peer]
<gleber_>
samueldr: would have this worked out of the box if I have used `dd`?
<clever>
gleber_: probably
<clever>
the official iso has MBR tables and works on a usb stick
<gleber_>
clever: got it!
<samueldr>
excluding random hardware oddities, 99.99% chances it would have worked with dd
<samueldr>
good to know, though, that the notes are still ood; to "only" change the FAT partition's label to NIXOS_ISO
<gleber_>
samueldr: roger that, time to learn `dd`. After using Linux since ~1998, I have used it literally only couple times :D
<samueldr>
as far as using a GUI; I believe gnome-disks can apply a .img to a usb drive (though I'm not sure) and I want to check whether etcher works (it probably will)
lord| has quit [Ping timeout: 268 seconds]
<jasom>
gleber_: for this it's just "dd if=foo.img of=/dev/whatever" that covers 95% of usecases for dd (if for infile, of for outfile).
<sphalerite>
So I'm using i3 and having a rather odd issue — it can't find the programs I want to run via key bindings. i3-msg exec 'sh -c "echo $PATH"' *does* however show a PATH that include ~/.nix-profile/bin, where dmenu_run is located…
<sphalerite>
ok no never mind
<sphalerite>
it wasn't there after all
<sphalerite>
BUT for some reasons my shell has dmenu's store path at the beginning of its PATH? wtf
<{^_^}>
[nixpkgs] @andir pushed 2 commits to release-18.03: https://git.io/fx3Ih
<disasm>
hey folks! looking for some haskell help with tests... I want to separate the tests into their own derivation. Anyone have some good examples as to how to do this?
<disasm>
gleber_: wow, before I got net booting working at the house, I think I used dd at least once a week to make ISO's to boot! But now I just plug an ethernet cable in and instant nixos installer :)
<gleber_>
disasm: Nice! How do I do this too? I have a NixOS server in the network already.
<sphalerite>
glasserc: I'm not sure about all this stuff though, maybe restarting gnome-shell (alt-f2, r, enter, unless this has changed in the past 8 years or something) will make it find the new applications?
jlou2u has quit [Quit: Page closed]
<{^_^}>
[nixpkgs] @jtojnar pushed 155 commits to gnome-3.30: https://git.io/fx3m5
sir_guy_carleton has joined #nixos
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayhewluke has joined #nixos
<glasserc>
sphalerite: Thanks, I think that made one of them show up
<{^_^}>
[nixpkgs] @xeji pushed commit from @pnelson to master « youtube-dl: 2018.09.26 -> 2018.10.05 (#47940) »: https://git.io/fx3lL
ryantrinkle has quit [Ping timeout: 252 seconds]
<Acou_Bass>
catern: is there any reason you want to do that rather than just doing it to configuration.nix?
phreedom_ has quit [Ping timeout: 256 seconds]
<Acou_Bass>
just curious as i dont know the answer to your question hehe
cnidario_ has joined #nixos
<catern>
Acou_Bass: because it's the prerequisite to a question about installing DEs in my user profile, on non-NixOS :)
cnidario__ has joined #nixos
cnidario has quit [Read error: Connection reset by peer]
cnidario_ has quit [Read error: Connection reset by peer]
cnidario__ has quit [Remote host closed the connection]
NightTrain has joined #nixos
<Acou_Bass>
fair enough
cnidario has joined #nixos
<samueldr>
I wonder if there would be any different annoyances than with other distros
<samueldr>
e.g. you need to somehow start it (possibly .xsession)
<samueldr>
as it won't be listed in the display manager
simukis has quit [Quit: simukis]
<Acou_Bass>
i imagine its gonna be easiest to just use xinit/startx
cnidario has quit [Remote host closed the connection]
<samueldr>
.xsession at that point is AFAIUI pretty much equivalent, though you get the logind semantics of a graphical session (if it matters, and has differences)
<jasongrossman>
I would worry that even if configuring a DE without NixOS worked fine it might break later. Because I wouldn't have thought that the people who maintain the DEs in NixOS see maintaining the same derivations for use outside NixOS as part of their job.
<samueldr>
or might figure out the fixes as needed
<samueldr>
(if any)
<Acou_Bass>
buuuuttt... isnt one of the points of nix that the packages more or less run exactly the same no matter where theyre run? i understand that its probably not a priority but surely due to nix being nix, it should be fine anyway?
<samueldr>
yeah, I wouldn't think anything would break outside the module system
<samueldr>
AFAIUI there shouldn't be hacks pertaining to the module system inside the nixpkgs things
<samueldr>
s/hacks/quirks and fixes/
<samueldr>
most of what would be missing though would be glue from the nixos modules I guess
<jasongrossman>
I thought the DEs were not just packages, which is why they're installed using NixOS options ... although I know that a NixOS option CAN be just an instruction to install a package, it's risky to assume that they always are. I realise this is abstract and I could look up the actual derivations. :-)
<Acou_Bass>
a fair few package options can be declared in ~/.config/nixpkgs/config.nix (for example if you want a firefox plugin installed with your firefox, you can do it here rather than in /etc/nixos/configuration.nix)
<jasongrossman>
"or might figure out the fixes as needed" - Yes, that could be fun.
<samueldr>
jasongrossman: almost right; what the modules system will do is add the glue sometimes required between things, like prepare the session fiels so the display manager can use the right DE, and possibly some other DE-specific tweaks so they can understand where to find their modules and plugins
<jasongrossman>
Acou_Bass: I think we're agreeing actually. DEs might work. They might break later, and you might be on your own if they do.
<Acou_Bass>
ahh true
mekeor has joined #nixos
<Acou_Bass>
yeah jasongrossman i think i agree with you
<samueldr>
pretty sure we all agree :)
<Acou_Bass>
'itll probably work but eh... dont be offended if it doesnt' is my stance hehe
<jasongrossman>
We do! ++ to us all.
<samueldr>
(if I were forced to use a non-nixos distro for $reason I would probably try it)
<Acou_Bass>
hmm
<Acou_Bass>
i have an arch machine... i could try it here.. :D
<catern>
The reason I ask is because it would be useful in a scenario where users don't have root access to their machines
<jasongrossman>
catern: Good point.
<Acou_Bass>
in that situation though
<catern>
(such as for example at my work, where someone asked about using Nix for this)
<Acou_Bass>
are said users really clamoring to install KDE rather than GNOME that they get given by default? :P
<catern>
Acou_Bass: ideally you install nothing by default :)
<jasongrossman>
catern: Just curious - and maybe this should move to nixos-chat - but why not use NixOS then?
<jasongrossman>
catern: Or ARE you using NixOS?
<catern>
jasongrossman: well that wouldn't help if the users still don't have root access
<Acou_Bass>
i feel like DE's install ed as a user would behave the same on NixOS as they would on a non-NixOS distro
<catern>
but yeah, NixOS isn't really in the running, since the base platform maintainers like Debian and merely tolerate Nix :)
<jasongrossman>
I can totally see this as a valid use case, then, but ideally it would be solved with new derivations in nixpkgs, for maintainability, I should think.