<NixOS_GitHub>
[nixpkgs] andir opened pull request #34481: grv: init at 0.1.0 (master...grv) https://git.io/vNdmb
NixOS_GitHub has left #nixos [#nixos]
fragamus has joined #nixos
ryanartecona has joined #nixos
fragamus has quit [Client Quit]
<bendlas>
Hey, I found that on Linux 4.14.15, `proc` mounts leak through an unshared mount namespace. Does anybody know, if this behavior is intentional?
hakujin has joined #nixos
radvendii has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 76da69e Andreas Rammhold: Merge pull request #34478 from dotlambda/spectre-meltdown-checker...
<NixOS_GitHub>
nixpkgs/master 6f3e450 Robert Schütz: spectre-meltdown-checker: 0.33 -> 0.34
<NixOS_GitHub>
[nixpkgs] andir pushed 2 new commits to master: https://git.io/vNdOL
NixOS_GitHub has left #nixos [#nixos]
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eacameron>
I'm trying to install nixos and when I run the nano command to edit the generated config it says "Error opening terminal: linux"
hakujin has joined #nixos
<jack[m]>
export TERM=vt100 ?
<eacameron>
jack[m]: That did it!
hakujin has quit [Ping timeout: 246 seconds]
hamishmack has quit [Quit: hamishmack]
pkill9 has joined #nixos
a6a3uh has joined #nixos
a6a3uh has quit [Client Quit]
fragamus has joined #nixos
randomstrangerb has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<jack[m]>
eacameron: I think I saw something flying by on github/mailing lists about terminfo not installing properly, but vt100 is usually hardcoded.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schoppenhauer has quit [Ping timeout: 240 seconds]
schoppenhauer has joined #nixos
<Aleksejs>
Hello, after suspend+resume bluetooth doesn't work. rfkill shows that bt is not sw or hw blocked but blueman apps show that bluetooth is off. I googled it and similar thing comes up with other distributions (ubuntu, arch). Is it nixOS related bug? Should I create an issue?
<Aleksejs>
for now, I could'nt find any way to enable bluetooth other than system restart
radvendii has quit [Ping timeout: 240 seconds]
Lisanna has joined #nixos
stepcut has quit [Remote host closed the connection]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eacameron>
in nixos login screen how can I get to terminal?
<eacameron>
I need to set passwd for this user first
hamishmack has joined #nixos
a6a3uh has joined #nixos
<tilpner>
eacameron - nixos-install should have made you set a password for root. Did you not set one?
pkill9 has quit [Ping timeout: 256 seconds]
randomstrangerb has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #nixos
fragamus has joined #nixos
Ivanych has joined #nixos
nkpart has quit [Quit: Connection closed for inactivity]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blahdodo has quit [Quit: Bye bye]
a6a3uh has quit [Quit: Bye]
work_ has joined #nixos
blahdodo has joined #nixos
vidbina has joined #nixos
Fare has joined #nixos
rardiol1 has quit [Remote host closed the connection]
MercurialAlchemi has joined #nixos
<eacameron>
tilpner: I did set one but I don't think you can log in to KDE as root
<tilpner>
But you don't have to log into KDE! Just switch to a different TTY, and set a password for another user from there
<eacameron>
tilpner: That's what I'm not sure how to do lol
<tilpner>
eacameron - Press ctrl+alt+f2, log in as root, run "passwd yourotheruser" (assuming you already created one), logout and switch back with ctrl+alt+f7
swayf has quit [Remote host closed the connection]
<tilpner>
eacameron - If you don't have a non-root user, you can define one in your configuration.nix
<steveeJ>
could someone jump in with a python packaging problem? I don't want to spend too much time poking around without a clue what I'm doing :-D https://github.com/NixOS/nixpkgs/pull/34465
dmj` has quit []
<fearlessKim[m]>
steveeJ: what's the problem ?
<fearlessKim[m]>
oh I see, had to expand the field
MP2E has quit [Remote host closed the connection]
<ij>
My last three generations since Jan 31 don't boot with "error: MTF 0x19c is not in use\nerror: you need to load the kernel first.".
<steveeJ>
fearlessKim[m]: I had to port the patches which required some guessing of what they're intention is. I don't fully understand which is failing to find the libxcb.so. It's not explicitly 'dlopen'ed by qtile at least
ThatDocsLady has joined #nixos
gspia has joined #nixos
asuryawanshi has joined #nixos
<steveeJ>
I would prefer if we could upstream these patches, if that makes sense at all
<ij>
Hm, I'm trying to evaluate terraform_0_11.plugins(that's a (plugin, derivation) set), which, upon the second evaluation, stops at the first derivation with "derivation '…' has incorrect output '…', should be '…'". What's that all about?
leat has quit [Ping timeout: 265 seconds]
a6a3uh has joined #nixos
randomstrangerb has quit [Ping timeout: 248 seconds]
<fearlessKim[m]>
steveej you might need to export the path to libxcb in LDFLAGS . having libxcb in buildInputs works for Gcc but that may not be the case when dlopen is called from python
tilpner_ has quit [Remote host closed the connection]
tilpner_ has joined #nixos
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<steveeJ>
fearlessKim[m]: for the buildPhase? do you have an example of how that's done for python packages?
<adisbladis>
steveeJ: Build works fine for me after bumping xcffib
swayf has joined #nixos
<steveeJ>
adisbladis: nice! do you mind sharing the patch for the bump?
ixxie has joined #nixos
<adisbladis>
steveeJ: I can add it to your PR?
<steveeJ>
adisbladis: whatever is convenient for you works for me :)
<NixOS_GitHub>
[nixpkgs] WilliButz opened pull request #34486: utillinux: set default wordlist for look (master...fix-utillinux-look) https://git.io/vNdoA
NixOS_GitHub has left #nixos [#nixos]
swayf has joined #nixos
vidbina has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to master: https://git.io/vNdKT
<NixOS_GitHub>
nix/master 8556998 Eelco Dolstra: Remove obsolete references to manifests...
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh created ptyprocess (+2 new commits): https://git.io/vNdK2
<NixOS_GitHub>
nixpkgs/ptyprocess 235ce83 Frederik Rietdijk: python.pkgs.ptyprocess: move expression
<NixOS_GitHub>
nixpkgs/ptyprocess 3d70e7d Frederik Rietdijk: python.pkgs.ptyprocess: 0.5 -> 0.5.2
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh deleted ptyprocess at 3d70e7d: https://git.io/vNdKw
<steveeJ>
evolution reports it can't verify gmail.com's SSL certificate for this 'Reason: HTTP Error: TLS/SSL support not available; install glib-networking'
<steveeJ>
I *did* install glib-networking and also the cacert package, yet with no success
randomstrangerb has quit [Ping timeout: 240 seconds]
randomstrangerb has joined #nixos
hakujin has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rvl opened pull request #34488: buildkite-agent: enable building on darwin (master...buildkite-darwin) https://git.io/vNdPm
NixOS_GitHub has left #nixos [#nixos]
therp has left #nixos ["Leaving"]
hakujin has quit [Ping timeout: 240 seconds]
ThatDocsLady has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] roberth opened pull request #34489: nixos/release*.nix: Clean nixpkgs sources by default (master...nixos-drv-closure-size) https://git.io/vNdPM
NixOS_GitHub has left #nixos [#nixos]
ThatDocsLady has joined #nixos
oida has joined #nixos
ottidmes has joined #nixos
<domenkozar>
gchristensen: fpletz: what have you tried so far to fix sound?
<domenkozar>
I'd like to continue my efforts but not duplicate them
<fpletz>
domenkozar: haven't looked into it at all unfortunately
aarvar has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar closed pull request #34488: buildkite-agent: enable building on darwin (master...buildkite-darwin) https://git.io/vNdPm
NixOS_GitHub has left #nixos [#nixos]
* goibhniu
has no problem with the headphone output on 18.03pre124947.33a4de2941d with a Realtek ALC892 audio interface FWIW
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 46c158a rnhmjoj: nixos/networking-interfaces: set default value for virtualType
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/vNdMW
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master f1cacaf rnhmjoj: nixos/tests: add test for virtual interfaces
<alp>
domenkozar, sound's not working on your xps?
scode_ has joined #nixos
kriztw_ has joined #nixos
Ralith__ has joined #nixos
<domenkozar>
alp: ye
cmcdragonkai1 has joined #nixos
toppler` has joined #nixos
datakurre^ has joined #nixos
statusfa1led has joined #nixos
MK_FG has joined #nixos
MK_FG has quit [Changing host]
MK_FG has joined #nixos
scode has quit [Ping timeout: 276 seconds]
fragamus has quit [Read error: Connection reset by peer]
kriztw has quit [Ping timeout: 276 seconds]
Ralith_ has quit [Ping timeout: 276 seconds]
cmcdragonkai has quit [Ping timeout: 276 seconds]
fingerzam has quit [Ping timeout: 276 seconds]
mk-fg has quit [Ping timeout: 276 seconds]
datakurre has quit [Ping timeout: 276 seconds]
pingveno has quit [Ping timeout: 276 seconds]
edwtjo has quit [Ping timeout: 276 seconds]
toppler has quit [Ping timeout: 276 seconds]
statusfailed has quit [Ping timeout: 276 seconds]
das-g[m] has quit [Ping timeout: 276 seconds]
datakurre^ is now known as datakurre
scode_ is now known as scode
georgew has quit [Ping timeout: 276 seconds]
teh[m] has quit [Ping timeout: 276 seconds]
trikl[m] has quit [Ping timeout: 276 seconds]
<alp>
weird. i have on as well, as it works just fine. integrated speakers, the integrated mic too IIRC but I rarely use those, and my usdb headset+mic
<alp>
I have one*
georgew has joined #nixos
fingerzam has joined #nixos
trikl[m] has joined #nixos
teh[m] has joined #nixos
<alp>
and it works just fine*
* alp
gets another tea
MK_FG is now known as mk-fg
josePhoenix has quit [Ping timeout: 276 seconds]
pingveno has joined #nixos
edwtjo has joined #nixos
das-g[m] has joined #nixos
stqism has quit [Ping timeout: 240 seconds]
<alp>
domenkozar, and I just have nixpkgs.config.pulseaudio = true; hardware.pulseaudio = { enable = true; package = pkgs.pulseaudioFull; support32Bit = true; };
<goibhniu>
alp IIUC the problem is specifically with the headphone output
<domenkozar>
speakers work
<domenkozar>
headphone shows up all correctly wired in pavucontrol
<domenkozar>
I think it's kernel
<domenkozar>
so I'll try that next
<domenkozar>
then disable pulseaudio
<domenkozar>
then I give up for today.
stqism has joined #nixos
<goibhniu>
domenkozar: in case you don't know, you can disable PA temporarily without rebuilding/rebooting etc.
<domenkozar>
current status: compiling chromium
<domenkozar>
goibhniu: oh? with just nixos?
josePhoenix has joined #nixos
Lisanna has quit [Quit: Lisanna]
josePhoenix is now known as Guest14344
<goibhniu>
domenkozar: add "autospawn = no" to ~/.config/pulse/client.conf and then `pulseaudio -k` should do it
knupfer has quit [Ping timeout: 260 seconds]
<alp>
domenkozar, interesting, I haven't had to do anything. sometimes though applications won't send the sound to the right place, so I do have to open pavucontrol and switch myself, but that's fine, and usually the setting is "remembered"
<domenkozar>
this was working for a few years
<goibhniu>
then you can try `speaker-test`
<domenkozar>
then it suddenly stopped upon last reboot I did
<domenkozar>
goibhniu: on it
<goibhniu>
if alsa doesn't work, you might need to add a kernel parameter when loading the module ... common enough on laptops
<domenkozar>
goibhniu: hmm it still spawns a new one
<goibhniu>
ah sorry, is it without the spaces around =?
<domenkozar>
$ cat ~/.config/pulse/client.conf
<domenkozar>
autospawn = no
<domenkozar>
nope, still comes up
<alp>
domenkozar, oh hmm what channel is your nixos based on? or, to be more precise, what kernel?
<domenkozar>
17.09
<domenkozar>
4.9.78
toppler` is now known as toppler
<domenkozar>
but even reverting kernel didn't work
<alp>
my system uses the 17.09 channel too, running 4.9.75
<goibhniu>
hrm, how about `pasuspender`?
fendor has joined #nixos
<goibhniu>
you should be able to see if pulseaudio is using the devices or not with `lsof /dev/snd/*`
<7YSAAEKI1>
[nixpkgs] garbas pushed 1 new commit to master: https://git.io/vNd5i
<7YSAAEKI1>
nixpkgs/master ce08581 Andreas Rammhold: firefox: enable official branding...
7YSAAEKI1 has left #nixos [#nixos]
<martin___>
hey, anybody can help me with this? I have installed fedora on a system which was running nixos. During that process I accidentally removed the boot partition which was booting nixos. Now I tried to repair it by chrooting into my nixos installation and running nixos-rebuild boot --install-bootloader. But that seems to lead nowhere. How can I fix it?
dan_b has quit [Ping timeout: 246 seconds]
<goibhniu>
hi martin___, did you mount your boot partition before running that?
<martin___>
sure, the boot partition is mounted
<martin___>
the problem is, nixos-rebuild has no network in the chroot environment and fails while trying to curls stuff
<martin___>
and this: error: while setting up the build environment: cannot pivot old root directory onto ‘/nix/store/ibmyhj4dfdl76xh3gs2203fq706cll5g-users-groups.json.drv.chroot/real-root’: Invalid argument
<pie_>
im using nix-shell -I unstable=/nix/var/nix/profiles/per-user/paprika/channels/unstable
<clefru>
fpletz: was your comment on the GCC 7 PR meant as "things are ok in the gcc-7 branch, so this merge is safe." or rather "wait for the gcc-7 branch to merge and do everything in one go."?
<fpletz>
clefru: so I would rather wait for the gcc-7 branch than merge your hack but I would have to investigate first if some of the broken packages are a dealbreaker for merging it to master… that doesn't mean that I'm opposed to merging your PR though, the other solution would just be nicer imho :)
<dtz>
pie_: I forget the official policy, but mostly it's security fixes
<fpletz>
I'll have a look in the evening (utc)
<pie_>
dtz, i mean, is there a repository of git commits or somesuhc?
<dtz>
Well and breakage fixes I suppose. Updates, less so.
<pie_>
*list of
<clefru>
fpletz: I totally agree with you, but from the list of broken packages (at least on hydra) it seems awhile away, and this gcc7 bump for the kernel enables the spectre-v2 vulnerability fix.
<dtz>
Yeah! There's a branch!
<dtz>
1 sec, on phone lol
<pie_>
oh ok
<pie_>
that makes sense
<clefru>
fpletz: I was watching some videos this morning on what that vulnerability actually meant, but to be fair, I haven't understood the power of this attack..
<fpletz>
clefru: nah, we also have ~5k broken packages on master currently :)
<dtz>
release-17.09 branch :). When tests and such all pass, 17.09 channel updates, tracked over on nixpkgs-channels repo
<dtz>
Can't wait for 2.0, the channel syntax alone is crazy useful lol I forget how I lived before it
<dtz>
Mostly very sad with lots of crying :P
<pie_>
heh
<pie_>
$ latex --version
<pie_>
pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016/NixOS.org)
<pie_>
:(
<dtz>
pie: looks like you're still using "pkgs" for things passed to texlive combine
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master e27e026 Andreas Rammhold: dovecot: fix CVE-2017-15132
<NixOS_GitHub>
nixpkgs/master f92fd95 Andreas Rammhold: Merge pull request #34483 from andir/dovecot-cve-2017-15132...
<NixOS_GitHub>
[nixpkgs] andir pushed 3 new commits to master: https://git.io/vNdNn
<NixOS_GitHub>
nixpkgs/master 4dd92c4 Andreas Rammhold: dovecot_antispam: removed since upstream deprecated the package [1] and it fails to build anyway...
<pie_>
dtz, i...am?
<fpletz>
clefru: I don't think we have to rush all those meltdown/spectre fixes… I think I understood the impact and it's all sounds pretty theoretical to me
<dtz>
Oh I see hmm
<pie_>
dtz, i kind of just figured out doing unstable.pkgs.texlive.combined.scheme-full would get the unstable version of the tex stuff
<fpletz>
most of those fixes like the intel microcode update were garbage anyway, and the kernel still needs more patches
<pie_>
s/out//
<dtz>
No, I just need to stop being silly and get to a screen where I can read properly haha
<dtz>
Brb
jensens has joined #nixos
<clefru>
fpletz: stealing kernel cryptokeys from unprivileged user space seems to be have been pretty trivial with meltdown at least (before KPTI)
<clefru>
anyway, not an expert. I opted to enable this retpoline gcc7 stuff locally for my systems
<clefru>
mitigate first, ask questions later :)
<dtz>
pie_: (and is the channel you're pointing unstable to... recent-ish enough? haha)
<dtz>
i'm not sure mixing texstudio from stable will work properly, but TBH dunno
<pie_>
unless you were thining it might break for some other reason
<dtz>
okay, great :D. Haven't used in a bit
<fpletz>
clefru: sure, meltdown was a bit more intense :)
phdoerfler has joined #nixos
<dtz>
will see, wanna repro first before jumping to too many conclusions. Conclusion-jumping quota.
<fpletz>
clefru: as I said, I will look at it this evening and either merge your PR or maybe the gcc-7 branch after consulting the other people working on it
<pie_>
hehe
<fpletz>
clefru: either way, your PR is very much appreciated, we can use for 17.09 :)
<fpletz>
+it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bzizou opened pull request #34493: udocker: init at 1.1.1 (master...udocker) https://git.io/vNdAa
<dtz>
(well mostly asking if it's possibly > 3 months stale lol, but I don't know cute one-liner to check either, I'd just try "ls -l" the channel and seeing what it's a symlink to--that usually has the git commit or so)
<pie_>
this is in /nix/store/q3a7xnhv5mnx4z3x544yd3qyh2g1khf9-unstable-18.03pre118631.66b63d2f5a/unstable/pkgs/tools/typesetting/tex/texlive
* pie_
scratches head
<dtz>
fwiw you can use URL's which can help in a pinch
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<pie_>
im so confused as to why this isnt up to date ;_;
* pie_
tries to update
<dtz>
(to follow-up on comment about URL's, something like: nix-shell -I unstable=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz)
<clefru>
fpletz: good to know :) (for 17.09)
<pie_>
huuuuh.....
orivej has joined #nixos
<pie_>
i guess i didnt update unstable?
periklis has quit [Ping timeout: 248 seconds]
<dtz>
judging by the path I'd expect "nix-channel --update" as user... paprika ... would do the trick? Does it not? :(
<pie_>
yeah i just did that and the nix file seems to be ok now
<pie_>
building
<dtz>
:D hooray, GL
<pie_>
wait for the build~
rardiol1 has joined #nixos
<ij>
Why can't (and shouldn't be able to) move files in the postBuild step of a buildEnv?
<m0rphism>
Hi, I'm trying to use Vulkan with GLFW, but trying to retrieve surface information via vkGetPhysicalDeviceSurfaceCapabilitiesKHR and vkGetPhysicalDeviceSurfaceFormatsKHR both fail with VK_ERROR_INITIALIZATION_FAILED, but any other vulkan call returns VK_SUCCESS. The validation layer output is unsuspicious, except maybe for some INFO's about manifest files (https://pastebin.com/xHfbDG65).
<m0rphism>
Any idea what might be the issue? (I've asked the same question yesterday, but unfortunately wasn't able to find a solution.)
<m0rphism>
sorry, wrong channel...
<m0rphism>
-.-
<m0rphism>
but since I'm already here... maybe someone using vulkan on NixOS can tell me if there is more to using vulkan on NixOS than depending on `vulkan-loader` and `glfw` packages?
dan_b has joined #nixos
Rusty1 has joined #nixos
<ij>
I found out why — because I had only one path, so bin was a symlink to something that was built already instead of a new dir.
badi has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie_>
dtz, ok we're happy \o/ ^_^
<pie_>
it worked
<dtz>
YAY
<dtz>
\o/
<pie_>
now to see if this fixes any of my latex problems ive bene having lol... :c
<pie_>
or just adds more...
<pie_>
uhhh
<pie_>
ERROR - Error: Found biblatex control file version 3.3, expected version 3.1.
<pie_>
This means that your biber (2.5) and biblatex (3.7) versions are incompatible.
<ottidmes>
What is the correct way to add files to the initrd. I see there is a prepend option that allows you to add files, but is that the right option to use? Because it raises more questions, like how do I get it from beind prepended to the right location?
<clefru>
ottidmes: I think the prepend option is for cpio containers, if I recall correclty
<ottidmes>
clefru: Alright, then I guess I will probably just have to use boot.initrd.extraUtilsCommands and copy it as part of building the initrd, or else just add the file to the initrd.secrets
raynold has quit [Quit: Connection closed for inactivity]
rauno has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos
<vaibhavsagar>
I'm trying the newest Nix 1.12pre and I'm getting a confusing error when I try to `nix build` something other than `default.nix`
<vaibhavsagar>
e.g. `nix build static.nix` -> `error: attribute 'static' in selection path 'static.nix' not found`
<vaibhavsagar>
`nix build release.nix` -> `error: attribute 'release' in selection path 'release.nix' not found`
<vaibhavsagar>
is there something I need to do differently?
asuryawanshi has joined #nixos
<vaibhavsagar>
ah, I see, it's `nix build -f` now instead of `nix-build`
<vaibhavsagar>
so I needed to do `nix build -f release.nix`
<elvishjerricco>
Is there a function like `show` in Nix? Like, `show { a = [1]; } == "{ a = [1]; }"`?
xcmw has joined #nixos
bfrog has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] etu opened pull request #34496: Php722 (master...php722) https://git.io/vNFk2
NixOS_GitHub has left #nixos [#nixos]
lexshouldbehappy has joined #nixos
<lexshouldbehappy>
hellooooo fellas
<pie_>
haloooo
<lexshouldbehappy>
so far, so good, i'm OK with NixOS... but I want more, use it like ansible\chef recipes...... Which nix expression should I write, to tell nix, create folder on my drive, download tarballs from internet, git clone repos and etc ?
coffeeshot has quit [Ping timeout: 248 seconds]
scott1 has quit [Ping timeout: 248 seconds]
sargon[m] has quit [Ping timeout: 248 seconds]
spacekitteh[m] has quit [Ping timeout: 248 seconds]
adva[m] has quit [Ping timeout: 248 seconds]
wak-work has quit [Ping timeout: 248 seconds]
peterhoeg has quit [Ping timeout: 248 seconds]
seif_madc[m] has quit [Ping timeout: 248 seconds]
AntonLatukha[m] has quit [Ping timeout: 248 seconds]
AlanPearce[m] has quit [Ping timeout: 248 seconds]
AllanDaemon has quit [Ping timeout: 248 seconds]
midchildan[m] has quit [Ping timeout: 248 seconds]
Drakonis[m] has quit [Ping timeout: 248 seconds]
posco has quit [Ping timeout: 248 seconds]
midchildan[m] has joined #nixos
sargon[m] has joined #nixos
AlanPearce[m] has joined #nixos
AntonLatukha[m] has joined #nixos
seif_madc[m] has joined #nixos
adva[m] has joined #nixos
scott1 has joined #nixos
coffeeshot has joined #nixos
AllanDaemon has joined #nixos
Drakonis[m] has joined #nixos
spacekitteh[m] has joined #nixos
posco has joined #nixos
clefru has quit [Remote host closed the connection]
<pie_>
well at least for getting stuff theres the various "fetch" variations
<pie_>
(also take a look at nix-prefetch-git and nix-prefetch-url)
<pie_>
(those are shell commands)
peterhoeg has joined #nixos
<pie_>
this stuff should be in the manuals somewhere
wak-work has joined #nixos
Turion has quit [Ping timeout: 265 seconds]
<elvishjerricco>
lexshouldbehappy: Remember that Nix is pure. So it can't output things that you intend to mutate. It _can_ output scripts that output things that you intend to mutate though :P
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clefru has joined #nixos
<ixxie>
elvishjerricco: you can still create folders in the user environment declaratively
sigmundv__ has quit [Ping timeout: 276 seconds]
<elvishjerricco>
ixxie: Oh. That's news to me :P
<fearlessKim[m]>
There is no `man sh` :'(
<infinisil>
fearlessKim[m]: sh is a symlink to bash, `man bash`
<lexshouldbehappy>
so honestly, infisil, you admit that nix can't replace ansible\chef?
<infinisil>
lexshouldbehappy: i don't know ansible/chef, so i can't say
<ixxie>
lexshouldbehappy: where do you want that directory?
<lexshouldbehappy>
ixxie /my/path/wherever/iwant
tilpner has quit [Disconnected by services]
tilpner has joined #nixos
<infinisil>
lexshouldbehappy: as elvishjerricco said, you can output scripts that change and set up directories and run them when the system does stuff/activates. But then it's not pure and nix's benefits aren't there
<lexshouldbehappy>
home/lex/maybe
<infinisil>
lexshouldbehappy: what's an example usecase?
<ixxie>
making home folders should be possible
<infinisil>
not asking to pretend it's not something you wanna do, but rather show a more nixy way if possible
tilpner_ has quit [Quit: :wq]
<lexshouldbehappy>
usecase : I have a customer application and environment. I'm easy engineer and don't want to do MUCH actions, I want to write shortest cleanest nix script, that will git clone customer apps to my drive and generate configs based on variables and launch binaries, that's all.
<clefru>
Can somebody give me an estimate of their size of initrd? Or in general what's reasonable. I am having 50mb and I reserved 256mb for my EFI partition. This gives me only about 4 generations of kernels/initrds to rollback to. I'd rather have like >5
xcmw has joined #nixos
tilpner_ has joined #nixos
<lexshouldbehappy>
I know how to to write that in bash\chef\python, but as I use nixOs, I want to write it in nixfile.nix and execute it from user without root
<lexshouldbehappy>
let me try to explain it in your language. I want a function, that accept variable arguments, and based on those arguments create /file/path on my drive, and fetch there files from internet\gitclone. is that https://github.com/ixxie/flux/blob/master/nix/derivation.nix what I need to write?
randomstrangerb has quit [Ping timeout: 264 seconds]
<lexshouldbehappy>
so just basically i'm writing it in BASH
randomstrangerb has joined #nixos
leat has joined #nixos
<lexshouldbehappy>
i mean, chef-ruby, and ansible-python were invented with intention to replace such bash scripts
coot has quit [Quit: coot]
<infinisil>
lexshouldbehappy: nix is a purely functional language, it can't run arbitrary stuff, and the language itself can't touch any files, at all (it can read them though). What you usally do in nix is to write a derivation, which builds a path in /nix/store/<hash>-<name>, which you then symlink or call binaries from
<pie_>
ixxie, ah sorry, i mean im able to use it, i just dont understand it :D
<ixxie>
right
<infinisil>
lexshouldbehappy: There are generally 2 ways in NixOS to set up mutable data (your directories are mutable): Use an activationScript (will be run everytime the system starts and switches to a different config), or a systemd service (arbitrarily configurable)
<lexshouldbehappy>
hmmm, ok.... so I will wrire mypackage.nix it will be placed in /nix/store/<hash> and them symlinked to /my/desirable/path . and probably launched from there howerer i want manually\systemdservice\etc ?
<infinisil>
lexshouldbehappy: what do you mean by manually\systemdservice\etc?
radvendii has joined #nixos
chisui has joined #nixos
<lexshouldbehappy>
I mean I could start app from shell, or systemctl, or other way \ manually or with other task manager
<chisui>
can I specify a specfic version of a package for nix-shell?
<lexshouldbehappy>
i use \ as , replacement sometimes in my speach
fyuuri has joined #nixos
<lexshouldbehappy>
sorry, I don't fully understood concept of mutability\purism, so I don't know if actions that I want to perform in OS , fs, are mutable or immutable
<infinisil>
lexshouldbehappy: yeah, you could for one thing declare a systemd service to run a program, and for another make this program available on your $PATH
<chisui>
Or am I aproaching this all wrong? What I want is a shell with ghc:8.2.2, but `nix-shell -p ghc` gives me ghc:8.0.2. Is there a way to specify the version of a package as an argument?
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<infinisil>
chisui: for ghc: nix-shell -p haskell.compiler.ghc822
asuryawanshi has quit [Ping timeout: 248 seconds]
<chisui>
infinisil: Thanks. Is there a reason why `nix-shell -p ghc` doesn't give me the newest version?
<infinisil>
lexshouldbehappy: you can declare a systemd service like `systemd.services.<name> = { description = "foo"; wantedBy = [ "multi-user.target" ]; serviceConfig.ExecStart = "${pkgs.<yourPackage>}/bin/foo"; }`
<lexshouldbehappy>
so, nix outputs only immutable things (packages) , to /nix/store/<hash> and if I want to set up few mutable directories \files , _automatically_, I should NOT use nix as automation tool for that? (last one)
<tilpner>
lexshouldbehappy - You could make Nix output immutable scripts that create your mutable directories
<tilpner>
lexshouldbehappy - Those can then be run from your shell wrapper, or system.activationScripts
<infinisil>
chisui: You're probably on the 17.09 channel where 8.0.2 is the default
<lexshouldbehappy>
tilpner, sound like nix > 2 other language compiler.
asuryawanshi has joined #nixos
<infinisil>
lexshouldbehappy: huh?
<ij>
I want to make buildEnv make a directory bin/ with a single symlink instead of a bin/ symlink. I could make a derivation that makes just a directory with "bin/", but would that be wasteful?
<infinisil>
lexshouldbehappy: you can totally use nixos for that, and I'd prefer it over anything else
<lexshouldbehappy>
> You could make Nix output immutable scripts that create your mutable directories < How ? plz give me the link\example of such expression. or https://github.com/ixxie/flux/blob/master/nix/derivation.nix is example of that?
<lexshouldbehappy>
infinisil, yeah man, I beleive it too, and I'm trying to adadpt and learn how could I :)
<NixOS_GitHub>
nixpkgs/master ec99a3d Vladimír Čunát: texlive: add comments, whitespace cleanup...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vNFY5
<lexshouldbehappy>
tilpner yes, beautiful, thank you so much. Actually I expect such thing to be in NixOS documentation. and I suggest nix manuals use such syntax highlight!
<tilpner>
This module is quite dangerous if abused, or if I left a bug in there
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
ij: so you don't need to both use stuff from builtins and lib
<infinisil>
ij: useful if you have `with lib;` in your file already
dottedmag has joined #nixos
<infinisil>
vidbina: what's the reason for `| tee file > /dev/null`? why not just `> file` directly?
xcmw has joined #nixos
<lexshouldbehappy>
tilpner, this is basically rewriting\does what chef\ansible intent to perform in stable production. so still question remains, should I write in nix to manage configuration like you, tilpner? or should I use other production\stable ready tool for CM like chef\ansible?
<tilpner>
lexshouldbehappy - I obviously already decided to use my module, and I have not tried chef/ansible for this. I also use the module to deploy to my server, and I don't want to add another tool to that
vidbina has quit [Ping timeout: 268 seconds]
<tilpner>
lexshouldbehappy - But chef/ansible are better tested and probably safer. For me, having it right inside my other configuration is worth it though
nix-gsc-io`bot has joined #nixos
<lexshouldbehappy>
tilpner is there alternative for your module that bundled with NixOS? or not yet such tool? for templating configs, etc
<lexshouldbehappy>
or I'm wondering If i need to write my own module , like yours, is it worth it
<i-am-the-slime>
Hey. I can't seem to configure the language that my "google-chrome-stable" uses.
<tilpner>
lexshouldbehappy - There is the environment.etc module, and some people have used that to manage their home directory (by setting their home to be inside /etc), but there's no module that works everywhere AFAIK
<i-am-the-slime>
I am trying to start it in english with a --lang=en flag and it still won't do.
dmj` has joined #nixos
<i-am-the-slime>
It aggressively stays in German
<tilpner>
i-am-the-slime - Does LANGUAGE=en google-chrome-stable change anything?
<lexshouldbehappy>
plz, ppl, tell me, just want to clear out for my dumb brain, 1) what common OS operations I should automate with NIX? 2) what common automation should be done in other scription language , e.g bash\python ?
<lexshouldbehappy>
sorry for being slow and stupid here
<lexshouldbehappy>
i'm not a CS graduate
<i-am-the-slime>
tilpner: let me see
<sphalerite_>
What's the path of least resistance to get a shell with cargo-vendor from nixpkgs? I see that it's packaged as part of the rust build stuff, but it doesn't seem to be exposed
<lexshouldbehappy>
so its not clear for me how to decide if my particular automation is pure \ not pure
<i-am-the-slime>
this: set LANGUAGE en; and google-chrome-stable
<i-am-the-slime>
didn't help
iyzsong has quit [Ping timeout: 276 seconds]
<tilpner>
LANGUAGE=de chromium => Neues Fenster in aktueller Browsersitzung erstellt.
<lexshouldbehappy>
and if my /home/ and stuff should be mutable or immutable?
<i-am-the-slime>
because that's incorrect syntax, I guess...
<tilpner>
LANGUAGE=en chromium => Created new window in existing browser session.
<i-am-the-slime>
I will try with bash :D
<tilpner>
Note that it didn't change interface language for me :/
<i-am-the-slime>
Yes that works
<i-am-the-slime>
It changes the interface language for me
<i-am-the-slime>
maybe you don't have german installed?
<i-am-the-slime>
But the question now is how I get this to work with this nightwatch stuff
<tilpner>
It's probably because I didn't close all chromium stuff before
fyuuri has quit [Quit: WeeChat 2.0.1]
fyuuri has joined #nixos
<tilpner>
lexshouldbehappy - What common operations do you need that don't have a NixOS solution?
aanderse has quit [Read error: Connection reset by peer]
aanderse has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] siers opened pull request #34497: terraform: add the version component to terraform provider paths (master...terraform-provider-symlink-versioning) https://git.io/vNFG8
NixOS_GitHub has left #nixos [#nixos]
<lexshouldbehappy>
tilpner, maybe i'm unaware of existing nix-expression solution. generate directories, config files, based on templates, download stuff, move stuff, delete stuff, run applications with arguments.
cement has joined #nixos
<lexshouldbehappy>
i'm probably unaware how to use existing nix stuff\solutions.
bubbler has quit [Ping timeout: 260 seconds]
__Sander__ has joined #nixos
<tilpner>
lexshouldbehappy - Files are often generated with Nix as templating language, stuff is downloaded with e.g. fetch{url,Tarball,Git}, moving stuff is avoided by package design (that would be stateful), deletion is handled by nix-collect-garbage, and you use systemd.services to run applications with arguments (doesn't handle user services)
<infinisil>
But I prefer to use home-manager for user services, configs and packages: https://github.com/rycee/home-manager (check it out lexshouldbehappy)
bfrog has joined #nixos
<infinisil>
home-manager does have a module to set arbitrary files in your $HOME directory
mkoenig_ has quit [Remote host closed the connection]
<infinisil>
(which are just gonna be symlinks to /nix/store/..., the same as for /etc and pretty much everything on nixos)
mkoenig has joined #nixos
<lexshouldbehappy>
thanks tiplner for straighforward explanation . probably there is a way to write nix funtion that take argument and then makes external call to {shell\mkdir\python\otherapp} to create directory\perform action_that_is_not_implemented_by_nix_language_design. but it will make non sense right? it's better for me to already use suited _1_ scripting language for all needs {generating config from templates, move files around disk, d
<lexshouldbehappy>
and use nix only to make pure packages. right?
xcmw has quit [Ping timeout: 248 seconds]
asuryawanshi has quit [Ping timeout: 276 seconds]
<infinisil>
lexshouldbehappy: nix can only create stuff in /nix/store in a pure way, there is literally nothing else nix can do (well unless you disable the sandbox but we don't talk about that)
<infinisil>
you can use nix to generate a script that does something else, but not nix itself
edude03 has joined #nixos
<i-am-the-slime>
@tilpner do you know how I can get a linux-4.14 kernel? I tried quite a few things but I seem to not be able to just get the "regular" one. Only copperhead hardened and variants like that.
<lexshouldbehappy>
thumb up, approve.
<tilpner>
i-am-the-slime - linux_latest is 4.14.15 on nixos-17.09
xcmw has joined #nixos
<tilpner>
infinisil - Do you know how I can enable systemd.user.services for just one user?
zzamboni has quit [Quit: Leaving.]
<edude03>
Hello everyone, I'm using nixos with a git checkout for my nixpkgs which works for nix-rebuild but not for my user(s)
<edude03>
I'm trying to fix that so I can fix a related issue of my packages collide when I try and upgrade my user packages
<edude03>
Any ideas on where I can start debugging this?
<tilpner>
edude03 - Which is the problem, nix-shell or nix-env?
<edude03>
nix-env
<infinisil>
tilpner: haha no idea actually, does it not work on a per-user basis then but installs them for every user? Never actually used it, just knew this option existed
<tilpner>
edude03 - Make sure that <nixpkgs> refers to your checkout by setting NIX_PATH appropriately
<tilpner>
edude03 - You may also want to remove various symlinks from ~/.nix-defexpr, to disable channels
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to master: https://git.io/vNFn6
<NixOS_GitHub>
nix/master e7b23eb Eelco Dolstra: Remove docs on removed --drv-link and --add-drv-link options
NixOS_GitHub has left #nixos [#nixos]
a6a3uh has joined #nixos
<i-am-the-slime>
Hmm, so I should just say linux_latest ?
<i-am-the-slime>
That might have been the one which didn't let me start chrome because of some sandboxing stuff.
<edude03>
Thanks tilpner that fixed nix-env I can do `-i` and it works
darlan has joined #nixos
<edude03>
Still having collisions for installing new packages though
<edude03>
so I have a package override called 'all' and it has things like fzf in it, when I try to install fzf it says it collides with an existing package,
<edude03>
`-e` doesn't remove the existing packages
* tilpner
needs to fix something, will be back afterwards
zzamboni has joined #nixos
darlan has quit [Client Quit]
<infinisil>
edude03: and you don't happen to have another package installed that provides the fzf binary? you can check installed packages with nix-env -q
<clefru>
a
<edude03>
infinisil the packages that conflict come from my "all" package though
<edude03>
So basically I started on 16.09 installed `all` switched to a git checkout of 17.09 and now all the packages in all conflict with themselves
<infinisil>
hmm
<eacameron>
I somehow managed to not set a password for root on my new nixos install. Can I boot off the USB nixos installer and set that somehow?
<edude03>
I can uninstall them one by one I guess but shouldn't I be able to upgrade?
<sphalerite_>
eacameron: yes. Rerun nixos-install
<sphalerite_>
eacameron: or just passwd -R /mnt should do it too I think
toraritte has joined #nixos
zzamboni has quit [Ping timeout: 240 seconds]
<sphalerite_>
eacameron: or if you're feeling extra adventurous you could generate the hash using mkpasswd -m sha-512 and edit it into /mnt/etc/shadow manually :p
<edude03>
oh also `nix-env -e all` doesn't do anything apparently
zzamboni has joined #nixos
<eacameron>
sphalerite_: So many options!
xcmw has quit [Ping timeout: 264 seconds]
<infinisil>
edude03: never seen this, and i don't know how nix-env determines whether a package is an upgrade of another
asuryawanshi has joined #nixos
<sphalerite_>
edude03: nix-env -e '.*' should remove everything (careful with that if you're not on nixos, since that's likely to include nix itself!)
freeman42x[NixOS has quit [Ping timeout: 260 seconds]
<clefru>
lexshouldbehappy: I have that set to "true", and I did add the user via "useradd", which automatically create gcroots and profiles. Am I right to assume that the reverse (automation deletion) doesn't hold?
i-am-the-slime has quit [Ping timeout: 268 seconds]
hakujin has joined #nixos
Itkovian has quit [Ping timeout: 240 seconds]
Turion has joined #nixos
<m0rphism>
Was someone successful in using Vulkan on NixOS? I can compile code, but even the official demos fail because of issues with creating the swapchain.
<m0rphism>
Yaniel: Great, thanks! I'll give it a try.
<Yaniel>
looks like I'm getting swapchaing creation errors now too
<m0rphism>
:D
<m0rphism>
Thanks for reproduction :)
<Yaniel>
but yeah, it used to work with that expression :D
<edude03>
Thanks peeps :)
<m0rphism>
Yaniel: In my own code example, the first thing I notice going wrong, is that querying the SurfaceFormats of my GLFW surface fails with VK_ERROR_INITIALIZATION_FAILED.
radvendii has quit [Ping timeout: 256 seconds]
lonokhov has quit [Quit: leaving]
radvendii has joined #nixos
<FRidh>
When building and testing the python3.pkgs.ptyprocess package on a Nix installation on CentOS 7.3 I keep getting "out of pty devices"
<FRidh>
The max is 4096, that should be more than enough (increasing also did not help) and the permissions on /dev/pts{/ptmx} and /dev/ptmx seem to be correct.
<FRidh>
Calling pty.fork() from within a Python instance is just fine.
<m0rphism>
Ralith: I just noticed you are listed as the maintainer of the vulkan-loader package. If you have time, would you mind having a look at the above vulkan problem?
<FRidh>
THe issue occurs both with and without sandbox, so I doubt it has to do with mounting of /dev/pts
ssmike has quit [Remote host closed the connection]
swayf_ has quit [Remote host closed the connection]
swayf has joined #nixos
evangeline has joined #nixos
<elvishjerricco>
Baughn: No I just meant something like Haskell's `show` that I can use in a Nix expression to serialize e.g. an attrset to a file
ssmike has joined #nixos
<elvishjerricco>
Something like builtins.toJSON except I want the format to be Nix literals
marusich has joined #nixos
swayf has quit [Ping timeout: 265 seconds]
asuryawanshi has joined #nixos
fyuuri has quit [Ping timeout: 240 seconds]
ambro718 has joined #nixos
a6a3uh has quit [Quit: Bye]
randomstrangerb has quit [Ping timeout: 256 seconds]
ssmike has quit [Remote host closed the connection]
randomstrangerb has joined #nixos
Orbstheorem[m] has joined #nixos
<Ralith>
m0rphism: sure, can you summarize?
sigmundv_ has quit [Ping timeout: 248 seconds]
zzamboni has joined #nixos
nixer has quit [Quit: Page closed]
Lisanna has joined #nixos
<Baughn>
elvishjerricco: Not that I know of. Nix expression can't in general be serialised, since they can be functions, but for pure data...
<Baughn>
builtins.toJSON may be the pragmatic choice.
<elvishjerricco>
Baughn: Right. I'm ok with throwing when encountering a function. The purpose of this is to display documentation of defaults provided in my Nix infrastructure. So it's important to serialize it to Nix notation
<m0rphism>
Ralith: Sure, Yaniel and me both have problems with running simple vulkan demos. From the runtime errors, the problem seems to be related to SwapChains and SurfaceFormats.
<Baughn>
elvishjerricco: Can't help, sorry. It should be relatively simple to write in Nix, which makes me think someone must have done so already, but I never found one.
toraritt1 has joined #nixos
<Ralith>
m0rphism: does `nix-shell -p vulkan-loader.demos --command cube` work?
<Yaniel>
Ralith: no output here
<m0rphism>
Ralith: Nope, terminates without doing anything, and when run directly from /nix/store/... it segfaults
buhman has quit [Read error: Connection reset by peer]
stephenjudkins has joined #nixos
jensens has quit [Ping timeout: 276 seconds]
<toraritt1>
hi, packages in the nixpkgs repo do not have official maintainers - people submit pull requests if out of date and someone(?) merges it. Is this correct?
<Ralith>
what channel are you on?
<jtojnar>
Why does not args contain bar when I run `nix-instantiate -E '{foo, ...}@args: builtins.trace args {}' --arg foo 5 --arg bar 6`
<jtojnar>
It prints `trace: { foo = <CODE>; }`
buhman has joined #nixos
<m0rphism>
Ralith: nixos-unstable
toraritt1 is now known as toraritte
<Ralith>
toraritt1: they should, but sometimes do not; PRs are welcome regardless
<Yaniel>
toraritte: packages do have a maintainer field but anyone can submit pull requests
<m0rphism>
Ralith: If I compile the LunarG VulkanSamples repository, the demos don't segfault, but yield a runtime error about failing to create a swapchain
<Ralith>
m0rphism: what hardware, and what's `nix-shell -p vulkan-loader --command vulkaninfo` print?
coot has joined #nixos
<m0rphism>
Ralith: In my own example code, the first thing that fails is querying SurfaceFormats when checking for swapchain support
<toraritte>
thanks Ralith, Yaniel! I need yaws (webserver in erlang) but all-packages.nix calls it with an old erlang version, plus the main erlang version points to an outdated version. Should I just update these in my fork, submit a pull request? (Just saw that there are 2200+ issues, don't want to make it worse.)
ryanartecona has quit [Quit: ryanartecona]
asuryawa_ has joined #nixos
<Yaniel>
please do if there isn't already a PR for it
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins has joined #nixos
swayf[m] has joined #nixos
<toraritte>
ok. I get now that this is the general flow. Just to avoid stepping on toes: when are issues opend with nixpkgs? (e.g., weechat wouldn't install, but I guess this is fix + pull category)
asuryawanshi has quit [Ping timeout: 268 seconds]
<Ralith>
m0rphism: you don't happen to be on wayland or something do you?
<maurer>
Basically open an issue if something is wrong and you can't/won't fix it yourself. A PR is generally preferred, esp. if you know the fix.
<Ralith>
m0rphism: hm, there is a suspicious lack of libxcb in there; try an xlib surface instead?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vNFKs
<NixOS_GitHub>
nixpkgs/master 8818546 Michael Raskin: lispPackages.clwrapper: recognise CCL in setup-hook
NixOS_GitHub has left #nixos [#nixos]
randomstrangerb has quit [Ping timeout: 260 seconds]
<m0rphism>
Ralith: I could give it a try, but I have no experience with xlib yet, so it might take a while
randomstrangerb has joined #nixos
<Ralith>
m0rphism: do you have a libxcb-glx.so.0 anywhere?
<m0rphism>
Ralith: Not that I'm aware of.
* Ralith
wonders if the demo's failure to find that is meaningful
<Ralith>
it did find libxcb, interestingly
<Ralith>
it would also be interesting to know whether your own code, which fails more gracefully, finds libxcb
TonyTheLion has joined #nixos
<m0rphism>
Interesting
<m0rphism>
How could I check if my code finds libxcb? I wasn't aware of using libxcb explicitly before ^^
<TonyTheLion>
I'm trying to make the nixops example work, however it seems to hang attempting to obtain an ip address. I've checked that dhcp is enabled and the vboxnet0 is up, which is the case. Anyone any ideas as to why else it may fail to get an ip?
randomstrangerb has quit [Ping timeout: 240 seconds]
randomstrangerb has joined #nixos
coot has quit [Quit: coot]
<Ralith>
m0rphism: looks like it's not finding it; what happens if you put it in your LD_LIBRARY_PATH?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy pushed 2 new commits to master: https://git.io/vNFiF
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nix/master de96daf Shea Levy: Merge branch 'master' of git://github.com/catern/nix
<NixOS_GitHub>
nix/master e543257 Spencer Baugh: document ability to set NIX_REMOTE=unix://path/to/socket
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy closed pull request #1831: document ability to set NIX_REMOTE=unix://path/to/socket (master...master) https://git.io/vNdvC
NixOS_GitHub has left #nixos [#nixos]
<Ralith>
m0rphism: yeah, you can see that both of your errors occur immediately after strace reports failure to find libxcb-glx and libxcb respectively
<Ralith>
m0rphism: so, run your program with `LD_LIBRARY_PATH=/nix/store/jz2yvc26rh2hz82gl3dkzr4dq4hvbs2p-libxcb-1.12/lib:$LD_LIBRARY_PATH`
<m0rphism>
Ralith: Ha! That did it! :D
<m0rphism>
Beautiful spinning cube
<m0rphism>
and my example works to with this prefix
<Ralith>
m0rphism: okay, cool; sounds like we need to patchelf libGLX_nvidia.so to inject `${xlibs.libxcb}/lib` into the runpath
<Ralith>
are you up for that?
<m0rphism>
Ralith: Not sure I got the expertise, I'm more rooted in programming language theory and computer graphics
asuryawanshi has joined #nixos
asuryawa_ has quit [Read error: Connection reset by peer]
<Ralith>
m0rphism: so, every ELF file (e.g. executable binary or shared library) contains various headers, among them the RUNPATH, which contains a list of hardwired directories to search for dynamic libraries
matthewbauer has joined #nixos
<Ralith>
this is the core mechanism that Nix relies upon to make dynamic linking work in the presence of arbitrarily many incompatible versions of the same lib
oida has joined #nixos
<m0rphism>
Ok, makes sense so far.
<Ralith>
when you compile something with nix, the compiler wrapper scripts inject the proper flags to set up the RUNPATH to match your declared dependencies
<Ralith>
however, if you use precompiled binaries, they won't have the right RUNPATH, since they're typically intended for something like ubuntu where everything's in one great big heap in /usr/lib
taktoa has joined #nixos
<Ralith>
because precompiled binaries are needed sometimes, the nix community developed `patchelf`, a command line tool that can modify the dynamic linking related headers of an existing ELF file, most importantly RUNPATH
ssmike has joined #nixos
<Ralith>
`LD_LIBRARY_PATH` is basically a runtime extension to RUNPATH, if that wasn't obvious
<pkill9>
nix made that? interesting
<Ralith>
so, somewhere in the nix package of the nvidia driver there is probably already some code that munges libGLX_nvidia.so to have an appropriate RUNPATH
<Ralith>
it needs to be tweaked to ensure libxcb is included, which it presently is not
<Ralith>
however, I'd give pretty good odds that libxcb actually is included in the original RUNPATH applied by the nix package, but later gets stripped out by the fixup phase
coot has joined #nixos
<Ralith>
that phase removes entries from `RUNPATH` which do not contain a library named in a `NEEDED` ELF header
xcmw has joined #nixos
<m0rphism>
I see, makes perfect sense. Thanks for the great explanation!
<Ralith>
so tl;dr you probably need to use patchelf to inject libxcb.so.1 and libxcb-glx.so.0 as `NEEDED`
<pkill9>
are you adding nvidia proprietary drivers?
<pkill9>
to the package descriptions
<Ralith>
\o/
<Ralith>
so can I expect to see a PR from you soon? :D
<Ralith>
normally things end up in `NEEDED` because they're linked explicitly at compiletime, but if code instead loads libraries at runtime using dlopen then they don't show up there
<Ralith>
this is therefore a common failure case for nix's magic when dealing with precompiled binaries, which is how I knew to check
<Ralith>
pkill9: the nvidia proprietary drivers are already packaged, but are a bit prone to spontaneously breaking; we've just isolated the cause of the latest such breakage.
<Ralith>
(note that I'm not the nvidia driver maintainer nor do I have merge powers anyway)
<pkill9>
do the nvidia proprietary drivers work when installed to a non-nixos nix package manager?
<pkill9>
so you can avoid using LD_LIBRARY_PATH to patched copies of native nvidia binaries?
<Ralith>
nvidia's proprietary drivers have a kernel component, so in general you want to be using the install supplied by the host system
<Ralith>
it would theoretically be possible to use a matching version inside nix but it'd be a bunch of trouble and wouldn't buy you much
<pkill9>
why would it be a bunch of trouble?
<Ralith>
because you'd have to be careful to keep the versions perfectly in sync at all times and munge search paths so the version you want is found
<Ralith>
probably easier if you only care about vulkan but still kind of pointless vs just using the host
<pkill9>
i use legacy340 which rarely updates
<m0rphism>
Ralith: While what you said made perfect sense, I'm not sure I'm able to realize it ;) But I'll still give it a shot. If I fail I could open a detailed github issue and pinging the nvidia package maintainers.
cruxeternus has joined #nixos
<MP2E>
there kinda isnt a real nvidia maintainer. we just pitch in whenever it needs fixing. actually, I just bumped the nvidia stable driver in my own tree yesterday and it seems to work
<chisui>
Is there a way to specify what shell nix-shell should use? I would like to use zsh with all the available bells ans whistles in my nix-shell
<MP2E>
can go ahead and push
aloiscochard has quit [Quit: Connection closed for inactivity]
<Ralith>
MP2E: I'd be very surprised if the issue we've just identified was fixed by upstream changes
asuryawanshi has quit [Read error: Connection reset by peer]
<Ralith>
likely you're just not affected by it
asuryawanshi has joined #nixos
<pkill9>
actually i may just put the patched versions of the libraries into a package and graft it onto mesa
<Ralith>
`readelf -d` it to find out!
ryanartecona has joined #nixos
<pkill9>
Ralith: what do you mean by 'munge search paths'?
<MP2E>
yeah it probably didn't, I read the bottom and figured you were talking about kernel 4.15 :)
<MP2E>
i'll catch up
<Ralith>
pkill9: I forget the specifics, I don't run non-NixOS anywhere these days
<Ralith>
MP2E: tl;dr the shared lib dlopens libxcb and libxcb-glx but doesn't have them in DT_NEEDED so they're stripped from the RUNPATH (if they were ever present to begin with) and therefore not found at runtime and it fails mysteriously
<MP2E>
oh huh. I wonder if that explains why Steam has been broken with nvidia drivers for the last little bit
<Ralith>
probably!
<Ralith>
it's going to be prone to weirdness because anyone using xlib rather than xcb probably won't have issues
<adelbertc>
if i have a Nix expression that creates a shell script and so produces a folder `$out/bin/<script>` and i want to use that script as a builder, how do I do that?
<adelbertc>
i understand the builder has to be a path
<Ralith>
and if the paths end up in the environment for other reasons things might work anyway
<adelbertc>
but i cant just refer to the expression by name because thats a folder then i think? and not the full `/bin/<script>`
radvendii has quit [Ping timeout: 240 seconds]
<Ralith>
adelbertc: better to have your expression output the script directly, instead of outputting a directory that contains the script
szicari has quit [Quit: szicari]
<adelbertc>
ah theres a `writeScript`
<adelbertc>
unfortunately no syntax checking
alex`` has quit [Ping timeout: 256 seconds]
<chisui>
Is there a way to specify what shell nix-shell should use? I would like to use zsh with all the available bells ans whistles in my nix-shell
<chisui>
Ratith: is there a way to specify that in a config file or do I have to create an alias?
swayf_ has joined #nixos
toraritt1 has quit [Ping timeout: 276 seconds]
ma27 has quit [Ping timeout: 252 seconds]
tmaekawa has quit [Quit: tmaekawa]
<lassulus>
chisui: '--command zsh'
<lassulus>
--run uses a non-interactive shell (according to the manual)
<chisui>
lassulus: thanks
hakujin has quit [Ping timeout: 256 seconds]
leat has quit [Ping timeout: 248 seconds]
<chisui>
is there a reliable way to detect that you are running i a nix-shell environment?
ssmike has quit [Ping timeout: 240 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coot has quit [Read error: Connection reset by peer]
leat has joined #nixos
cruxeternus has quit [Quit: leaving]
<adelbertc>
is there something that takes a bash script and patches the beginning shebang
<adelbertc>
i know something does it for the standard builder
<adelbertc>
but is there a library function that will do the same?
<eacameron>
My new install has an issue in the terminal where the "END" key does something odd...definitely not take my cursor to the end
cruxeternus has joined #nixos
<lassulus>
chisui: i do test -n "$CONFIG_SHELL"
Myrl-saki has quit [Ping timeout: 264 seconds]
<chisui>
lassulus: after some digging I found that nix-shell itself determines this by checking IN_NIX_SHELL
<lassulus>
that sounds smarter than my way
<Wizek>
hello
Fare has joined #nixos
<Wizek>
Can I break up a hashbang line such as `#! nix-shell -p "haskell.packages.ghc822.ghcWithPackages (p: with p; [(haskell.lib.dontCheck jsaddle-warp) lens text])"` to multiple lines somehow?
<Wizek>
E.g. if I could somehow have the lib dependencies on their own line that would be nice
asuryawanshi has quit [Remote host closed the connection]
<eacameron>
Wizek: Check out man nix-shell I think there is special support for this
asuryawanshi has joined #nixos
<Ralith>
lassulus: why would you want to run your interactive shell inside another interactive shell?
<the_real_plumps>
ugh, damit - can somebody port the odfpy fix from master to release, otherwise calibre fails to build/install
<the_real_plumps>
(plsr
<the_real_plumps>
(pls)
jensens has joined #nixos
<Ralith>
johnw: ooh, nice
<adelbertc>
johnw: that is awesome
<chisui>
Ralith: --command seems cleaner. Now that I have the alias `alias nix-shell="nix-shell --command zsh"` I can still run `nix-shell -p ghc --run "ghc -v"`. If my alias included the --run parameter, that woudln't be possible
<johnw>
I wrote it so I can bulk-update my overlays using a keyboard macro
xcmw has joined #nixos
<chisui>
Ok, where can I find the source for nix-shell on github? Is the perl script generated?
<Wizek>
eacameron: and unsurprisingly lens and text are not seen by the ghc
<Turion>
There is one general thing I don't really understand about nixos. (Well, not just one, but let's go one thing at a time.) Why does derivation code contain so much bare strings containing e.g. shell scripts or build options? Can't we abstract and automate all of this?
ambro718 has quit [Quit: Konversation terminated!]
<eacameron>
Wizek: yeah I wouldn't expect that to work either, but can't you use the ghcWithPackages thing there instead?
<makefu>
Turion: yes, this is the hidden secret of nixOS, everything boils down to templated shell code ;) a lot of options are already abstracted, like makeFlags and such
toraritte has quit [Ping timeout: 268 seconds]
<makefu>
imho, strings in options is fine, a lot of widely used libraries do the same thing as parameters
<eacameron>
Wizek: Only one line for the ghc packages
<eacameron>
Wizek: That will install two different ghc's with different package sets. You need to put all dependencies into one list.
<Wizek>
eacameron: yeah, but that defeats the whole purpose of my question. I am looking for a way to break that line up, in case I have 5-10 deps listed there
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #34502: xpwn: build usb-based tools by replacing libusb1 dep with libusb (master...fix/xpwn-libusb) https://git.io/vNFNT
NixOS_GitHub has left #nixos [#nixos]
<eacameron>
Wizek: Maybe you can use `\` or something to just spread that line over multiple
gilligan_ has quit [Ping timeout: 265 seconds]
matthewbauer has quit [Read error: Connection reset by peer]
<Wizek>
eacameron: perhaps, but I've tried that too in a few ways without success
elurin has joined #nixos
elurin has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vNFNM
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 4c379db Michael Raskin: lispPackages.clwrapper: Fix a typo in dynamic-library-hack
<lexshouldbehappy>
can we have something like https://nixos.org/nixos/options.html but for <nixpkgs> ??? where I can see API documentation how to use those functions, what arguments they do accept and what do they perform\output?
<cransom>
lexshouldbehappy: have you seen `man configuration.nix` ?
<cransom>
or do you mean for the packages themselves
[0x4A6F] has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #34503: init libdmg-hfsplus, use instead of xpwn to fix Linux xcode extraction (staging...feature/libdmg-hfsplus-xcode-extract) https://git.io/vNFAq
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vNFxT
<NixOS_GitHub>
nixpkgs/master bdc48d3 Will Dietz: maloader: fix hash (currently broken)
NixOS_GitHub has left #nixos [#nixos]
<cransom>
Wizek: if you have a busy set of packages to include, you could break them out into a separate file. `man nix-shell` and check out `deps.nix`
<Wizek>
cransom: yes, I did see that mentioned, and I am contemplating going that route, however a part of me really would like if the file could be self-contained
<eacameron>
Wizek: Well...you can do it...just not on multiple lines. :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vNFpJ
<NixOS_GitHub>
nixpkgs/master 5dc6306 Will Dietz: xpwn: build usb-based tools by replacing libusb1 dep with libusb...
<TimePath>
Speaking of windows, does nix still depend on perl?
<TimePath>
Nix for windows using the native toolchain would be nice
<TimePath>
Though even if it built mingw it'd still be nice
<Wizek>
TimePath: agreed
<TimePath>
I'd love to be able to give people on any platform an instruction to install nix to build my project
hakujin has quit [Ping timeout: 265 seconds]
<Wizek>
TimePath: although you can already do that through WSL to some extent
<Wizek>
but native-native support could be even nicer
<dtz>
ah which reminds me, we should put some effort into polishing installers and such O:)
<TimePath>
If you want to build a Linux binary, sure
<TimePath>
I have graphical software though
<sphalerite>
TimePath: iirc shlevy made nixUnstable perl-less
<dtz>
with some nix magic seems like we should have CI for ensuring it can be installed/used on the major distributions, dunno what could be done re:WSL
<sphalerite>
So 1.11 still needs perl but 2.0 won't
<TimePath>
Nice!
<TimePath>
Any other dependencies?
<TimePath>
Probably has some issues compiling with MSVC
<TimePath>
And even when it does, there'll probably be runtime issues from file path manipulation
leat has quit [Ping timeout: 265 seconds]
zzamboni has joined #nixos
<Wizek>
TimePath: yeah, isn't /nix/store/... super hard coded in every place? Would that translate to C:\nix\store?
<TimePath>
Not necessarily C:
<TimePath>
The default drive letter can be changed
hakujin has joined #nixos
<TimePath>
Maaaybe I'll try msys first because it handles Unix paths :P
<TimePath>
Still gives a native binary
<sphalerite>
Yeah that's a major issue
Itkovian has joined #nixos
<TimePath>
My users already need msys to build anyway
<sphalerite>
At one point I had a windows installation where what is usually the C drive was the K drive instead ¯_ (ツ) _/¯
<TimePath>
Linus: how much stuff did that break?
zzamboni has quit [Client Quit]
mmlb has quit [Read error: Connection reset by peer]
<jtojnar>
Any idea why args does not contain bar when using `nix-instantiate -E 'args@{foo, ...}: builtins.trace args {}' --arg foo 5 --arg bar 6`?
mmlb has joined #nixos
swayf_ has quit [Remote host closed the connection]
swayf has joined #nixos
<shlevy>
Wizek: /nix/store is definitely not hard-coded
<shlevy>
But lots of unixy assumptions are
<sphalerite>
TimePath: I barely used it but I think most stuff used the env vars correctly, and for some other stuff I had to change C to K in the installer but it worked
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #34504: tlp: 1.0 -> 1.1 (master...tlp) https://git.io/vNbvW
NixOS_GitHub has left #nixos [#nixos]
<TimePath>
Ah, so like nixos, it was a "broken software detector" ;)
<sphalerite>
Nah. All software that you need to run windows for is broken :p
<TimePath>
:P
<TimePath>
When your software is a multiplayer game, you need windows support if you want payers
<TimePath>
players*
<TimePath>
(not a joke, just a typo, it's a FOSS game)
<sphalerite>
Supporting windows is a feature. Exclusively supporting windows is a bug :)
<TimePath>
Fair
swayf has quit [Ping timeout: 265 seconds]
ryanartecona has quit [Quit: ryanartecona]
leat has joined #nixos
<lejonet>
Hmm, anyone else get value is a string while a set was expected from nixpkgs/lib/modules.nix:230:23 if you run from a recent checkout of nixpkgs master?
leothrix has quit [Ping timeout: 256 seconds]
Turion has quit [Remote host closed the connection]
<sphalerite>
lejonet: are you aware of the risks of running from master?
<lejonet>
sphalerite: yes, I'm testing stuff for a PR, only reason I'm running from master :P
<dtz>
lejonet: not as of earlier today... details? and does it still happen on latest?
<lejonet>
dtz: I merged in upstream master into my fork maybe 1h ago, and then tried to do a nixos-rebuild switch with the only difference that I've added a package to systemPackages
leothrix has joined #nixos
<lejonet>
8818546d48f4a57128ba640ee930c62a40b69ceb is the latest commit I have from upstream/master
babyflakes has quit [Quit: Connection closed for inactivity]
hamishmack has joined #nixos
bfrog has quit [Ping timeout: 264 seconds]
hiratara has joined #nixos
templis has joined #nixos
Itkovian has joined #nixos
jensens has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar opened pull request #34507: pipewire: init at 0.1.8 (master...pipewire) https://git.io/vNbGl
NixOS_GitHub has left #nixos [#nixos]
simukis has quit [Ping timeout: 256 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c0ffee152 has joined #nixos
<Unode>
to anyone familiar with pypi2nix, I'm trying to import dendropy from pypi. I get a requirements.nix, a requirements_override.nix and a requirements_frozen.nix but no default.nix. Is default.nix required and/or is it expected that one writes it manually?
<Unode>
requirements_frozen.txt not .nix
<Unode>
to go to the point, I only want to get dendropy. Is pypi2nix the right way forward or is there some other recommendation?
spear2 has quit [Remote host closed the connection]
<dash>
Unode: no, this is how it works
<dash>
Unode: you then run `nix-shell requirements.nix -A interpreter --run dendropy`
Neo-- has quit [Ping timeout: 240 seconds]
<dash>
or 'nix-build requirements.nix -A interpreter' if you want
<Unode>
ah so if I actually want to create a default.nix that can then be merged with nixpkgs pypi2nix isn't really what I'm looking for?
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
iqubic has joined #nixos
<iqubic>
How hard is it to write a derivation that builds a binary?
stephenjudkins has quit [Remote host closed the connection]
coot has quit [Remote host closed the connection]
<lexshouldbehappy>
Unode me to, mate, i just worked with my pypy3.5 static binaries in FHS env for past few weeks. feels like I will use docker mostly, cuz it's more friendly for python and works out of the box
vidbina_ has joined #nixos
stephenjudkins has joined #nixos
<Unode>
iqubic: relatively easy. There's plenty of examples in nixpkgs, unless the software you are after has weird dependencies or requirements
<iqubic>
Nope. All the deps I need are in Nixpkgs.
<iqubic>
I mean except for metakit, which I wrote a dervition for .
<jtojnar>
ottidmes: IIRC, nixUnstable can be used with 17.09
<Unode>
iqubic: I'm not the right person to recommend but I'd say give it a try and ask here if you hit a roadblock.
guts has joined #nixos
<iqubic>
jtojnar: It can. I have done that.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 5 new commits to master: https://git.io/vNbck
<NixOS_GitHub>
nixpkgs/master e621f17 Jan Tojnar: gegl_0_3: loosen platforms
<NixOS_GitHub>
nixpkgs/master 0d71207 Jan Tojnar: babl: 0.1.38 → 0.1.42
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 27ac1bf Jan Tojnar: gegl_0_3: 0.3.26 → 0.3.28
<guts>
hello! I am trying to build a custom version of the IPFS package, and I have almost got it working, but I'm getting this at the very end of building "output ‘/nix/store/s7a71vfb5mqj0kfxn063gzv6vh20b8cf-ipfs-0.4.13’ is not allowed to refer to path ‘/nix/store/lsgbqds85x8dypnsz8r94p3kmy9ki2yf-go-1.9.3’"
<guts>
I have found the two files which reference go, and they are a couple shared libraries produced during the build. What do I need to do to get rid of the references?
<Shados>
How are users meant to actually find members of pkgs.nginxModules, aside from just reading the nixpkgs source?
<ottidmes>
jtojnar: I thought there was a nixUnstable or nix.unstable option, but could not find it on the options page, instead I had to look for the package nixUnstable. I will take a look at those slides, thanks!
lexshouldbehappy has quit [Quit: Page closed]
<jtojnar>
ottidmes: yep, there is nix.package option which you can set to nixUnstable.
<jtojnar>
many modules have the package option
<ottidmes>
right
<clever>
Shados: i generally use tab completion in nix-repl
vidbina_ has quit [Ping timeout: 248 seconds]
ryanartecona has quit [Quit: ryanartecona]
<andi->
I just wanted to use a custom keyboard layout file with nixos... I provided a proper derivation that I fed into services.xserver.xkbDir and set the xserver.layout to my layout... The setup would work but the validation binary for our layouts fails since it was build against xkeyboard_config and doesn't follow the setting in xkbDir. Any ideas?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vNbCM
<NixOS_GitHub>
nixpkgs/master d2e518c Jon Banafato: gnomeExtensions.icon-hider: init at 19...
NixOS_GitHub has left #nixos [#nixos]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]