turtlerabbit has quit [Remote host closed the connection]
pbb has joined #nixos
noudle has quit []
mexisme has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
remo has joined #nixos
jluttine has quit [Ping timeout: 265 seconds]
ericsagnes has quit [Ping timeout: 276 seconds]
growpotkin has quit [Ping timeout: 276 seconds]
marusich has joined #nixos
marusich has quit [Remote host closed the connection]
bhipple has joined #nixos
jluttine has joined #nixos
ericsagnes has joined #nixos
jluttine has quit [Ping timeout: 276 seconds]
growpotkin has joined #nixos
_ris has quit [Ping timeout: 258 seconds]
growpotkin has quit [Ping timeout: 245 seconds]
emacsomancer has quit [Remote host closed the connection]
growpotkin has joined #nixos
dansho has joined #nixos
<ShaRose>
So, I've gotten quagga working for ospf and ospf6: Shouldn't the firewall rules be included by default when enabling the daemons, or maybe have a helper to allow it through the firewall on given interfaces?
growpotkin has quit [Ping timeout: 245 seconds]
j-em has joined #nixos
<j-em>
Hey guys - I installed VSCode through Nix on macOS and I am having some issues after upgrading to the latest derivation available.
<dansho>
so i installed linux mint to an extra partition and now nixos doesn't show up in the grub menu even after update-grub, is there a way to get it back?
<j-em>
should i try reinstalling the derivation again?
<clever>
yeah
gyroninja has quit [Quit: WeeChat 2.5]
jb55 has joined #nixos
snajpa has quit [Ping timeout: 245 seconds]
aither has quit [Ping timeout: 264 seconds]
aither has joined #nixos
j-em has quit [Remote host closed the connection]
snajpa has joined #nixos
ncth^ has joined #nixos
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 246 seconds]
slack1256 has joined #nixos
ee1943 has quit [Ping timeout: 244 seconds]
ee1943 has joined #nixos
Fare has quit [Ping timeout: 245 seconds]
dbyte has quit [Read error: Connection reset by peer]
dbyte has joined #nixos
dbyte has quit [Read error: Connection reset by peer]
dbyte has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
Henson has joined #nixos
remo has quit [Remote host closed the connection]
<Henson>
is there a good way to search nix packages, such as what's in the "Search NixOS packages" website, but without being online and from the command line? Something like Debian's "apt-cache search"? I know "nix-env -q" can search for packages by names, but can it search descriptions and other things?
Okinan has quit [Quit: Konversation terminated!]
<samueldr>
nix search, Henson
Okinan has joined #nixos
<Henson>
samueldr: awesome, thank you!
<samueldr>
if you want to search for files in packages, nix-index, which gives you the nix-locate command, might interest you
gyroninja has joined #nixos
abathur has joined #nixos
<Ashy>
nice, that should be on the nixos.wiki cheatsheet
<Henson>
soooo, nix-index uses up more memory than my computer possesses
<Ashy>
just ran fine on my desktop with 16gb
<Ashy>
barely used any of that
<Henson>
hmm, I actually quit firefox and thunderbird and that freed up enough. Used about 6 GB of RAM
<eyJhb>
Yeah, noticed I was looking at the legacy options, sorry!
<eyJhb>
Now I just need to get bitlbee to work with Slack.. => package libpurple slack.
freeman[NixOS] has joined #nixos
Fendor has joined #nixos
<eyJhb>
`install: cannot change permissions of '/nix/store/mzzihqrsjqayp9i49lfgb8cl1q7zp2i8-pidgin-2.13.0/share/pixmaps/pidgin/protocols/16': Operation not permitted` what is the good fix for such a thing, during build?
freeman42[NixOS] has quit [Ping timeout: 276 seconds]
nexgen2 has quit [Remote host closed the connection]
dycan has joined #nixos
<dycan>
Hi all, how to keep some nix-env package from compiling after nix-garbage-collect?
<dycan>
After I ran out of disk space and nix-collect-garbage, I have to compile ghc again and it is time-consuming.
zupo has joined #nixos
<dycan>
I just saw "Garbage Collector Roots" thing, maybe it's the answer.
polman has quit [Ping timeout: 245 seconds]
alex`` has joined #nixos
<eyJhb>
dycan: add it to your packages instead?
<dycan>
eyJhb: what do you mean by add to "my" packages?
orivej has quit [Ping timeout: 240 seconds]
<dycan>
eyJhb: never mind. seems I haven't found what's going on here in my system. So I can't ask the right question. Still, thanks for the response!
polman has joined #nixos
<hyper_ch>
question: I bought myself a usb-c dock and it works good. Also ethernet works over it. However, since my notebook is encrypted, I do want to load network already in the initrd phase, so I can ssh into dropbear and unlock the notebook. So far, I just added added the kernel module of the ethernet card and then got ip by dhcp. Now that doesn't work anymore. I guess I'll need to add some usb 3.x driver to the initrd or any idea what's needed?
o1lo01ol1o has joined #nixos
knupfer has quit [Remote host closed the connection]
polman has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
dycan has quit [Ping timeout: 258 seconds]
knupfer has joined #nixos
polman has joined #nixos
<eyJhb>
hyper_ch: my experience with usb docks, is pray to god
<eyJhb>
Because they suck
<eyJhb>
What kind of driver does it use? What kind/type?
zupo has quit [Ping timeout: 245 seconds]
asymptotically has joined #nixos
dermetfan has joined #nixos
<hyperfekt>
How do I extract an attribute from a derivation? I'm trying to find out which version of a package a certain nixpkgs has with Nix.
<turtlerabbit>
I'm trying to het mobile broadband to work with Networkmanager. The module qcserial (qualcomm gobi) is loaded, but the item "Mobile broadband" does not appear in nm-applet. Any ideas?
alex`` has quit [Quit: WeeChat 2.6]
alex`` has joined #nixos
<eyJhb>
Is there any way to verify a configuration.nix before deploying it to a server?
<eyJhb>
Just syntax
<tilpner>
eyJhb: nix-instantiate '<nixpkgs/nixos>' -A system
<tilpner>
No building, but checks everything evals correctly... by eval-ing it
turtlerabbit has quit [Remote host closed the connection]
<eyJhb>
tilpner: Can I point it to a configuration.nix file?
<tilpner>
Sure, there are multiple ways to do that
<eyJhb>
I can name none, any pointers? :p
<tilpner>
NIX_PATH=nixos-config=$PWD/config.nix:$NIX_PATH being one of them
<tilpner>
And then you can pass a custom configuration to <nixpkgs/nixos>, either from Nix, or probably with some --argstr incantation
<eyJhb>
Thanks tilpner , it somewhat works :D I just need to put in a phony hardware configuration now
<maralorn>
Am I right, that {^_^} is currently broken?
<eyJhb>
maralorn++
Guest16 has joined #nixos
<eyJhb>
Yup
Melkor333 has quit [Quit: WeeChat 2.6]
<eyJhb>
Is it possible to import a single pkgs, like you can import modules?
<tilpner>
What do you mean?
<eyJhb>
I have created `purple-slack.nix`, which is a package for libpurple. I want to import it, so I can do `pkgs.purple-slack` as a argument to bitlbee
<typetetris>
when i build stuff with cabal inside a nix shell i get problems with libgmp.so.10 being dynamically linked, but afterwards not found. Does cabal bring its own libgmp now?
<eyJhb>
Great :)
<eyJhb>
I have another question for you tilpner , if you have the time. Do you ahve any idea why this would fail during build ( https://github.com/dylex/slack-libpurple/blob/master/Makefile#L89 ), `install: changing permissions of ...`? I feel dirty overriding installPhase
<tilpner>
eyJhb: "inherit" can be used here for a more compact overlay
<eyJhb>
I can make it run using - https://pastebin.com/L21FmBbC (as I have seen other plugins do), but I feel like there is a better way.. Also, I haven't tested if it actually works in practice. (the installPhase would be uncommented for it to build/work) :)
knupfer has joined #nixos
dycan has joined #nixos
<Thra11>
When adding a new package, should I add maintainers of related packages as reviewers?
o1lo01ol1o has quit [Remote host closed the connection]
ffl^ has joined #nixos
o1lo01ol1o has joined #nixos
<tilpner>
Thra11: Not usually IMO, but the answer might be different if you told us what package you're asking for :)
gagbo has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
Melkor333 has joined #nixos
<Thra11>
tilpner: I've just packaged wacomtablet-kcm (KDE config module for wacom graphics tablets) and created PR #68836 for it. It's the first time I've added a new package, so I wasn't sure whether it would go unnoticed if I didn't add any reviewers.
ddellacosta has joined #nixos
dycan has quit [Remote host closed the connection]
Fendor has quit [Remote host closed the connection]
Guest16 has quit [Remote host closed the connection]
noudle has quit []
<jD91mZM2>
Hey everyone! I just got NextCloud on a nixops device and am now trying to use the NextCloud Client... And it wants to use my keyring. I got GNOME Keyring and made it auto-login with PAM, but it appears to choose kwallet instead. I found out that kwallet is in my $PATH, and the most likely reason I can find is that I have `okular` installed, which depends on kwallet. Is my observation sane? I didn't think
<jD91mZM2>
buildInputs actually affected the $PATH of the final program so idk
<tilpner>
jD91mZM2: You can try to use nix why-depends to answer that question
ixxie has joined #nixos
<tilpner>
nix why-depends /run/current-system $(nix-build --no-out-link "<nixpkgs>" -A kwalletcli)
rnhmjoj has quit [Changing host]
rnhmjoj has joined #nixos
rnhmjoj has joined #nixos
o1lo01ol1o has joined #nixos
<jD91mZM2>
tilpner: Great, thanks! It does not seem to be kwalletcli, but sec
<jD91mZM2>
tilpner: Ooh, that's incredibly useful, thanks! Seems to be MultiMC from my user profile
<tilpner>
Huh?
<tilpner>
nix-store -qR $(nip multimc) F wallet doesn't output anything
<jD91mZM2>
Is there a way for me to build MultiMC but override it so that it doesn't add kwallet to the PATH?
<tilpner>
I don't think multimc is the problem here
<tilpner>
It just links back to the HM path, which also happens to contain your kde libs
<jD91mZM2>
Oh. I mean okular does depend on kwallet somehow so maybe it's that
<tilpner>
You want to find out how your HM env depends on libsForQt5.kactivities.bin
<tilpner>
Yeah, if you put okular into your HM env, that might be the answer
<tilpner>
(But I'm guessing at a distance over IRC, so...)
<jD91mZM2>
How'd you detect that kactivities is the problem?
<jD91mZM2>
And yeah I put okular in home.packages
knupfer has quit [Quit: knupfer]
<tilpner>
It's not, that was just the first path I could determine the attribute for
knupfer has joined #nixos
<jD91mZM2>
tilpner: kwallet seems to be nixpkgs.kdeFrameworks.kwallet
eyJhb has quit [Ping timeout: 244 seconds]
<tilpner>
The closure of okular includes both kwallet and kactivities
M-Gregoire49 has joined #nixos
<tilpner>
I don't know how HM builds its env though, so I can't really answer "why do I have kwallet in PATH"
<jD91mZM2>
I thought home-manager basically built its things like NixOS did, but I guess not?
eyJhb has joined #nixos
Myhlamaeus3 has quit [Ping timeout: 276 seconds]
freeman42[NixOS] has quit [Remote host closed the connection]
<tilpner>
I just installed okular via nix-env
<tilpner>
There is no kwallet in my PATH
freeman42[NixOS] has joined #nixos
<jD91mZM2>
tilpner: Just for sanity, you are checking `kwalletd5` too?
<jD91mZM2>
That's the only one I have
<tilpner>
Ahh, that is in PATH
freeman[NixOS] has joined #nixos
eyJhb has quit [Ping timeout: 240 seconds]
<tilpner>
Aha!
<tilpner>
jD91mZM2: See libraries/kde-frameworks/default.nix, look for propagatedBuildInputs
<jD91mZM2>
Oooo what is it?
<jD91mZM2>
Will do, thanks!
freeman42[NixOS] has quit [Ping timeout: 268 seconds]
<tilpner>
It passes this custom mkDerivation around
markus1189 has quit [Ping timeout: 246 seconds]
<jD91mZM2>
Oh yeah I noticed that, but didn't notice the proagatedBuildInputs. Does that somehow make all buildInputs be propagated?
emacsomancer has joined #nixos
<tilpner>
jD91mZM2: I think it does, considering it's called propagateBin. No promises though
<jD91mZM2>
tilpner: That would make sense... Now how do I solve that? Can I make a derivation wrapping okular that only adds a wrapper script to the path?
<jD91mZM2>
tilpner: Sorry for yet another ping, but what's the difference between writeShellScriptBin and writers.writeBashBin?
<tilpner>
I've never heard of writers.writeBashBin
<jD91mZM2>
Okay. It contains a bunch of writers like C and haskell, I didn't know the trivial builders had a thing for shell scripts so I just used that
Myhlamaeus3 has joined #nixos
<tilpner>
writeShellScriptBin has syntax checking
<tilpner>
From a glance, writers doesn't seem to?
<jD91mZM2>
Yeah, I noticed that too. And I guess it doesn't hardcode itself to bash, so it can be changed if it ever is
<tilpner>
Though it stands as odd to me, that syntax checking is done with stdenv.shell, but the script is run with runtimeShell
<tilpner>
That could be annoying if those are e.g. different version of the same shell
<tilpner>
(They are not, currently)
orivej has quit [Ping timeout: 276 seconds]
<jD91mZM2>
So the positive news is: that worked. The negative news is that nextcloud now doesn't ask about the keychain at all
<jD91mZM2>
(and so it keeps asking for my password)
<tilpner>
Perhaps your wrapper needs to set PATH like it would be if you had installed it directly
<jD91mZM2>
The wrapper is around okular and just got kwallet out of the way, nextcloud should be unrelated
<jD91mZM2>
But yeah good point, the wrapper seems to have broken okular
eyJhb has joined #nixos
eyJhb is now known as eyJhbTmp
freeman[NixOS] has quit [Remote host closed the connection]
<eyJhbTmp>
Is there anything wrong with just using 18.09 installer, but changing the channels to 19.03?
knupfer has quit [Quit: knupfer]
ilikeheaps has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
<tilpner>
That will probably work
<tilpner>
It might not if the required minimal Nix version changed
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
<eyJhbTmp>
Hoping it will, so far my biggest problem is I cannot get the swap to work probably
<eyJhbTmp>
And 1GB ram is not enough
<eyJhbTmp>
Finally downloading and everything, lets see if I get my ZNC back soon
<eyJhbTmp>
And it exists because there is no space left on the device, which does not make any sense... Damn it
<tilpner>
eyJhbTmp: Is /tmp tmpfs?
<jD91mZM2>
I just realized I missed 19.09... how do I make sure I stay updated in the future?
<tilpner>
Huh? 19.09 wasn't released yet
<eyJhbTmp>
Apparently along the way, /mnt was not mounted. Might have been some mem stuff that messed things up :)
<jD91mZM2>
Oh... okay. I just tried it as a channel, and it worked. Guess it's in beta?
<eyJhbTmp>
And we are running again for a little while at least :)
Fare has quit [Ping timeout: 265 seconds]
<tilpner>
eyJhbTmp: All fixed?
isHavvy has quit [Read error: Connection reset by peer]
zacts has joined #nixos
Havvy has joined #nixos
Fare has joined #nixos
nexgen2 has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 245 seconds]
phreedom has joined #nixos
phreedom_ has quit [Ping timeout: 260 seconds]
<pittma>
What's the best way to determine what options a package has available? Sorry if this is an obvious question, I haven't yet been able to put the right string into Google to find something useful.
<eyJhbTmp>
tilpner yes, now I will just connect/disconnect to Freenode a couple million times for the rest :D
<tilpner>
pittma: Unfortunately you have to look at the package expression
Fare has quit [Ping timeout: 265 seconds]
<tilpner>
pittma: Often, you can use: nix edit -f '<nixpkgs>' blender
<pittma>
tilpner: yeah, that package search ^ links into the expression and I can see options from there.
<tilpner>
pittma: That will open up the blender expression, where you can see the options cudaSupport and colladaSupport
<pittma>
Oh, interesting, okay.
<tilpner>
pittma: But it doesn't always get you to the correct place
<tilpner>
(E.g. with okular)
iyzsong has quit [Read error: Connection reset by peer]
boxdot1 has quit [Quit: Leaving.]
o1lo01ol1o has joined #nixos
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
pi2 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
eyJhb has joined #nixos
o1lo01ol1o has joined #nixos
<eyJhb>
tilpner: I get `The option value `services.bitlbee.libpurple_plugins.[definition 1-entry 1]' in `/etc/nixos/configuration.nix' is not of type `package'.` when I use it like `purple-slack = self.callPackage ./pkgs/purple-slack.nix;`
emptyflask has joined #nixos
boxdot1 has joined #nixos
dbyte has joined #nixos
eyJhbTmp has quit [Remote host closed the connection]
noudle has joined #nixos
boxdot1 has quit [Quit: Leaving.]
orivej has joined #nixos
emacsomancer has quit [Read error: Connection reset by peer]
<eyJhb>
Thanks :) - Is there any way to write text files to `/` using Nix? E.g. I would like to write the files for NickServ to have my passwords for each network
<eyJhb>
And I cannot find a way to do it from znc.conf
<eyJhb>
What is the notation if there is no release number for a piece of software? Date of last change?
<hyper_ch>
hmmm, trying to upgrade and I get now: "Synaptics and libinput are incompatible, you cannot enable both (in services.xserver)" but I only have synaptics in my configuration.nix... can't find libinput
<eyJhb>
hyper_ch: some other package that enables it maybe?
Soo_Slow has joined #nixos
<hyper_ch>
eyJhb: not sure.. do I even need synaptics when there's libinput?
<hyper_ch>
eyJhb: also, still having issue with usb dock ethernet during bootup :)
<hyper_ch>
I found the loaded kernel module and also added the usb xhcdi (something) to the initrd kernel modules - still no dhcp assignment
Fendor has joined #nixos
<eyJhb>
hyper_ch: tbh. I don't even know the difference.. :p - The Docking thing is still hell. My first week of NixOS what debugging USB 3.0 Dock.....
<eyJhb>
hyper_ch: check if you can manually set IP etc.
<hyper_ch>
eyJhb: manually set ip is a no go as it changes between work and home
<hyper_ch>
as said, dock works fine... just that I can't get dhcp assigned ip at bootup in the initrd
<hyper_ch>
eyJhb: https://paste.simplylinux.ch/view/raw/dff72101 --> r8169 is the notebook ethernet, cdc_ncm is the one the dock uses (from booted up nixos system) and xhci_hcd should be the usb drivers for the dock
<eyJhb>
hyper_ch: but it is more, does it actually work in init, at all
dbyte has quit [Read error: Connection reset by peer]
WilliButz has quit [Remote host closed the connection]
eraserhd has quit [Read error: Connection reset by peer]
<hyper_ch>
how to know if it works in init at all?
WilliButz has joined #nixos
<eyJhb>
hyper_ch: that is why I wondered if you can try setting the IP manually, and see if that works. Just one problem at a time :) But I have never tried USB 3.0 dock + networking like that
<eyJhb>
Also, why would you do that on a LP?
<hyper_ch>
eyJhb: to reboot it remotely
Rusty1 has joined #nixos
<hyper_ch>
how woudl I set it manually?
pie_ has joined #nixos
<hyper_ch>
although my end goal would be to have netowrk in the initrd by dhcp and once the actually system boots, change over to network manager
vika_nezrimaya has quit [Read error: Connection reset by peer]
vika_nezrimaya has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<hyper_ch>
eyJhb: so, made a screenshot... it seems only to try eth0
<evanjs>
Re openrazer jobs and https://github.com/NixOS/nixpkgs/issues/68361-- I can see limiting the builds to python3 to solve the python27 builds, but what about the various kernel variants?
<evanjs>
I figure the typical approach is simply limiting it to variants that are known to work/commonly used?
<hyper_ch>
eyJhb: scratch last remark.. it's there.. I was just in the wrong terminal ;)
<hyper_ch>
but maybe: enp0s20f0u1u1i5 -> ../../devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1:1.5/net/enp0s20f0u1u1i5 --> it seems it uses usb 2.0 and not 3.0... so I maybe have to load those drives as well?
_eder_ has joined #nixos
dermetfan has quit [Ping timeout: 258 seconds]
mexisme has joined #nixos
<hyper_ch>
adding now usbnet, usbcore and usb_common also to the initrd
<Vikingman>
someone can help me with screen refresh rate
<Vikingman>
i would like to force 60hz
endformationage has joined #nixos
<hyper_ch>
eyJhb: no luck
<hyper_ch>
Vikingman: in kde I just open "Displays"
dansho has joined #nixos
<Vikingman>
i cannot use the screen to do it
wfranzini has joined #nixos
<hyper_ch>
Vikingman: what desktop? kde? gnome? ...?
<Vikingman>
kde
mexisme has quit [Ping timeout: 276 seconds]
<hyper_ch>
so you don't see anything on screen?
<Vikingman>
its black because the screen is unable to go over 60hz
<Vikingman>
i managed a way to set it on 60 hz using a hdmi car display
<Vikingman>
as soon i unplug it the vga screen unset itself over 60hz
<Vikingman>
even if i deactivated the hdmi screen
<Vikingman>
1st time i see this problem
<tyrion-mx>
how unstable is nixpkgs-unstable?
<tyrion-mx>
because I am using sway and currently firefox is unusable due to a bug, and hoping that in unstable there is a more recent version it probably is worth updating
<evanjs>
Looking at the python contributing guidelines, it states: "Make sure libraries build for all Python interpreters." I assume this is referring to all interpreters _explicitly specified_ by a given library?
<tyrion-mx>
umh, do they have a different purpose then? nixos-unstable and nixpkgs-unstable?
<evanjs>
Yes, howoldis indicates the intent of each channel
<tyrion-mx>
ah, sorry! I will read it more carefully
<evanjs>
nixpkgs-unstable builds all packages for supported platforms (Linux, Darwin) - unstable job that consists of most commonly used packages
<evanjs>
nixos-* - builds all packages and NixOS machinery only for Linux - tested job that consists of mostly NixOS tests firing up qemu instances with different kinds of configurations
<evanjs>
I was also initially confused by the purposes of each channel, as I use nixpkgs unstable and always thought it was newer, but it has to build darwin stuff, whereas nixos-* does not (as nixos is not supported on darwin)
shibboleth has joined #nixos
<tyrion-mx>
umh, ok, so from this I am understanding that nixos-unstable is more stable than nixpkgs-unstable because it is running some tests that the other one is not, is it right?
<tyrion-mx>
and if it is running the same tests as the releases, then maybe I can just use that
eraserhd has quit [Ping timeout: 276 seconds]
<evanjs>
The intent of the channel is to be sort of unstable but also somewhat tested, yes.
<tilpner>
tyrion-mx: Do not use nixpkgs-unstable as the base channel for a NixOS system
jgeerds has joined #nixos
eraserhd has joined #nixos
<evanjs>
Unless you're crazy, like me :D
wfranzini has quit [Remote host closed the connection]
<tyrion-mx>
tilpner: I was thinking about nixos-unstable not nixpkgs-unstable...
<tyrion-mx>
still no?
wfranzini has joined #nixos
<tilpner>
tyrion-mx: I just saw "how unstable is nixpkgs-unstable?"
<tilpner>
tyrion-mx: nixos-unstable is fine
<tilpner>
tyrion-mx: Note that you can mix channels arbitrarily
<tilpner>
tyrion-mx: So you can use nixos-19.03 for your base system, and pick packages from unstable
<tyrion-mx>
so what should I do?
<tyrion-mx>
ok
Henson has joined #nixos
<evanjs>
I plan on switching to NixOS-unstable eventually, but ran into issues doing it systemwide before, like how cargo-vendor was super old and didn't work with rust 2018, etc... its updated now, but bah.
<tilpner>
That may result in longer evals and more disk usage, but has all the flexibility
<tilpner>
evanjs: You too, you can use a release for your base system, and then pick your dev tools from any channel you like
<evanjs>
tilpner: oh believe me, they're very mixed on my end. A little harder to do when it's an issue with e.g. buildRustPackage
<Henson>
any tips on getting spell checking working with LibreOffice? I've added hunspell and desired dictionaries, but libreoffice can't seem to find them. I found a bunch of issues in discourse, with issue #14430 seeming to be the culmination. After reading through it, though, I'm not sure if it should or shouldn't work yet with libreoffice.
<tilpner>
Ehh?
<tilpner>
evanjs: Same goes for buildRustPackage, it's not special
<tilpner>
(Mixing stops working well, when you try to combine modules from different channels. Don't do that)
<evanjs>
tilpner: yeah I've tried mixing modules and realized that just doesn't work at all depending. As for buildRustPackage, hrmm. Maybe I should try switching again.
<tyrion-mx>
How difficult do you think it would be to package mailspring?
<tyrion-mx>
They are releasing for snap and providing deb/rpm packages (I never made a package for nix and I am new to it)
lord| has quit [Ping timeout: 240 seconds]
selfsymmetric-mu has quit [Remote host closed the connection]
<turtlerabbit>
I have a package that likes to look at its own git repository to include branch/revision information. fetchGit seems to strip the .git directory. What are reasonable strategies?
<tilpner>
eyJhb: I don't know. platforms.all might be too relaxed, especially if you haven't tested compilation on/for anything but linux
zacts has joined #nixos
<eyJhb>
Yes, only ever used it on Linux. Somewhat leaning towards specifying Linux until proved otherwise
<tilpner>
Probably fine
<eyJhb>
Will mark conversation as resolved then :)
<eyJhb>
Everything else should be good-to-go !
<tyrion-mx>
is it possible to make my own "nix channel" and depend on packages on nixpkgs/nixos?
<eyJhb>
tyrion-mx: yes
<eyJhb>
You can clone the nixpkgs, and then use that for certain packages if you wish
<eyJhb>
While still mainly relying on stable, or whatever official channel
<tyrion-mx>
ok, I meant more like my own repo, not a clone of nixpkgs. I was thinking this because nixpkgs is taking forever to clone and because I tought it would be boring to keep it updated. Instead if I could have a repo only with my stuff it seems it would make more sense
<eyJhb>
You can, but I think you will be tired of maintaining that :)
<tyrion-mx>
umh, ok, I am trying to clone nixkgs and follow what the docs say :D
<immae>
overlays is also a way to have your own packages on top of nixpkgs without needing to maintain the whole nixpkgs repo
<immae>
(if I understood correctly what you want)
<tyrion-mx>
immae: yes seems like what I was trying to do, is there some documetion regarding that?
<eyJhb>
Is there some way to make a directory in /nix/store, which has a bunch of files, using configuration.nix? I can make one file, but what about like, 10?
<tilpner>
eyJhb: Sure, that's a runCommand if you don't mind the ugly
<tilpner>
I sometimes symlinkJoin a bunch of writeText
<eyJhb>
tilpner: runCommand? Any examples? - I as hoping I could put them into a X, and then they would all go into the same store folder. somewhat thinking mkDerivation would do that?
<tilpner>
That is of course equivalent to mkDerivation with a buildCommand
<eyJhb>
Does $out, actually exists? And if I do "something = runCommand ...", does something = path ?
<tilpner>
Yes, $out is a thing
<clever>
eyJhb: the script in the ''string'' is responsible for creating $out, and whatever path is in $out will wind up in something
<evanjs>
tyrion-mx: don't know if it's been mentioned yet, but pull bot might be of some help in keeping a nixpkgs fork up to date. It's what I use. https://probot.github.io/apps/pull/
<tilpner>
something will not be a path, but you can use it like one
<evanjs>
Though if you're just trying to build one package, an overlay might be better
<eyJhb>
clever: great, thought it might just be a placeholder used in this case :) - tilpner: use it like one? How?
<tilpner>
eyJhb: "${something}" will eval to "/nix/store/*"
<klntsky>
Do we have derivations for coq versions older than 8.5?
<tilpner>
eyJhb: Even though something is not a path, it will be coerced to one
<tilpner>
(something is a derivation)
evanjs has joined #nixos
<eyJhb>
Hmm, I will try that, and see if it works, would be nice if I could have my whole ZNC+Bitlbee in my conf files
<tilpner>
klntsky: Old nixpkgs version have some. E.g. 17.09 has 8.3 and 8.4
<tyrion-mx>
tilpner: I thought you were using NUR? so you are both using NUR and a fork of nixpkgs?
<tilpner>
tyrion-mx: Yes, to make public different types of things
<tyrion-mx>
tilpner: ok, so the fork is for private stuff right?
<tilpner>
No, I have private repositories for private stuff
<tilpner>
I use my nur-packages for stuff that might be useful to someone, but that I don't care about contributing to nixpkgs
<tyrion-mx>
Ok, got it :)
<tilpner>
And the nixpkgs fork, for when I have something that should go into nixpkgs, or that needs to be changed in nixpkgs
<tilpner>
I do not run any systems off of the nixpkgs fork
<tyrion-mx>
Other thing, I got a bunch of "You have a memory leak (not released memory pool)" while doing nixos-rebuild, should I worry?
<tilpner>
Is that during grub?
<tilpner>
I vaguely remember that being okay™ if it's during grub installation
<tyrion-mx>
yes, I think so, after it printed some stuff about GRUB
<tyrion-mx>
lol ok, I will try to reboot and see what happened
<tilpner>
It should be fine
<klntsky>
tilpner: OK, pinning nixpkgs is fine I think, thanks.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<tilpner>
klntsky: While you can do that, note that you will also use all the ancient dependencies, and double your closure size
lord| has joined #nixos
<tilpner>
klntsky: If you intend to use it often/for a long time, consider using a recent callPackage on the old expression (possibly after you adapted it)
zacts has quit [Ping timeout: 268 seconds]
evanjs- has joined #nixos
evanjs has quit [Ping timeout: 245 seconds]
ffl^ has quit []
zacts has joined #nixos
ntsrtoh^ has joined #nixos
slack1256 has joined #nixos
<eyJhb>
Thanks tilpner and clever , seems to do what I want! Not going to like nice, but it will work :p
mexisme has joined #nixos
<eyJhb>
s/like/look/
emiller88 has joined #nixos
mexisme has quit [Ping timeout: 264 seconds]
zacts has quit [Quit: WeeChat 2.4]
<tyrion-mx>
while I am trying to build a package is it possible to have a shell with the depsn installed to try to install it manually first?
acarrico has joined #nixos
Chiliparrot has joined #nixos
<eyJhb>
tyrion-mx: build, or install?
<tyrion-mx>
build I guess, I am trying to write an installation script for mailspring
<tyrion-mx>
or maybe trying to learn something by failing
<eyJhb>
tyrion-mx: you can use `nix-shell -p package1 package2` etc. and the make, etc. to try and make it locally beforehand
<emily>
did NixOS stop using the systemd reproducible names at some point?
<emily>
enp4s0 is eth0 again and my config broke...
lord| has quit [Ping timeout: 265 seconds]
Stuck_ has quit [Quit: leaving]
<tilpner>
emily: Do you use networking during stage-1/initrd?
<emily>
ah, yes... I have a boot.initrd.extraUdevRulesCommands to copy 75-net-description.rules over to the initrd, but perhaps that's now out of date?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
slack1256 has quit [Ping timeout: 268 seconds]
Havvy has quit [Read error: Connection reset by peer]
MmeQuignon has quit [Quit: WeeChat 2.4]
Havvy has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
knupfer has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<emily>
hm, I don't suppose there's any way to effectively use Nix in single user mode for one command? I'd like to use a remote ssh builder, but that requires root to accept the SSH host key and have a key it can use
<emily>
whereas I'd rather just log in as my current user and use my existing gpg-agent key
<infinisil>
emily: I think there is, you need to set the NIX_REMOTE value to something
<infinisil>
NIX_REMOTE=daemon makes it use the daemon at least
zupo has joined #nixos
<infinisil>
Maybe NIX_REMOTE= nix-build ... does it
<clever>
if you run nix-build as root, it will behave in a single-user type mode
<clever>
if it has +w to something in /nix, it wont contact the daemon, when in auto mode
<emily>
I'd like to run it as my user instead :(
<clever>
why not just fix root to be able to use the build slave?
wfranzini has quit [Remote host closed the connection]
knupfer has quit [Quit: knupfer]
<emily>
because I'd rather just reuse my yubikey and not have confirmationless ssh into my server in my config
wfranzini has joined #nixos
<emily>
if it was running in single user mode it'd spawn an ssh process, my yubikey would blink, I'd tap it, and the build would happen fine
<emily>
because I have gpg-agent running
knupfer has joined #nixos
<clever>
you could set the SSH_AUTH_SOCK env var, for nix-daemon, to point to your gpg-agent
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has joined #nixos
ddellacosta has joined #nixos
Fendor has joined #nixos
<jackdk>
not if your nvim can see node and yarn in some other way, i expect. But I don't know enough about either to say the best way of setting them up.
knupfer has quit [Remote host closed the connection]
alex`` has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
turtlerabbit has quit [Remote host closed the connection]
<rotaerk>
hmm cool; ran my vulkan project for the first time in 6 months, after having upgraded nixos for the first time in that long, and I get a VK_ERROR_INCOMPATIBLE_DRIVER
<rotaerk>
ah.. when I ran vulkaninfo, it said it can't find libGLX_nvidia.so.0
<infinisil>
rotaerk: Did you search for the error in nixpkgs' issues?
<ivan>
rotaerk: did you reboot after upgrading
<Yaniel>
rotaerk: did you link the graphics drivers correctly?
<rotaerk>
lol
<Yaniel>
(I have yet to figure out how that is done)
Myhlamaeus3 has quit [Ping timeout: 258 seconds]
marcusr has quit [Ping timeout: 258 seconds]
<rotaerk>
hmm ah, I see a *closed* issue for it in nixpkgs github
<Yaniel>
oh yeah there was that icd.json thing too
<rotaerk>
it says that the fix was merged into NixOS:master 9 days ago, and I upgraded 2 days ago
<rotaerk>
from nixos-unstable-small
<rotaerk>
is there a delay, or should I have the fix?
<Yaniel>
I have it on nixos-unstable
<notgne2>
so I have a bit of a weird question, I've managed to package (a stripped down version of) NixOS into dockerTools.buildImage using lib/eval-config.nix, but whenever I try replacing `pkgs` with `.pkgsMusl` it pulls a bunch more seemingly unrelated dependencies which my containers never even had before
<rotaerk>
I'll just check my system's nixpkgs code
<clever>
notgne2: why do you want to use static linking in the docker image? it feels like it would increase the size
marcusr has joined #nixos
marcusr has joined #nixos
marcusr has quit [Changing host]
<notgne2>
clever: I'm honestly not sure, just trying different things and glibc is taking up 25MB, mostly locales which I've tried to strip out in various ways with overlays, but adding overlays gives me the same weird issue
<clever>
notgne2: if you use an overlay to modify glibc, then nix must rebuild EVERYTHING
<notgne2>
also there's dependencies related to X and nvida drivers getting pulled, which nothing in the container could possibly be depending on so why does it bother with the rebuild
<clever>
notgne2: how big is your image, that 25mb is worth the trouble?
<clever>
notgne2: use nix why-depends to track those down
fusion809 has quit [Remote host closed the connection]
<notgne2>
190MB, I'm also going to try to cut out perl which uses 56MB since the places its used in the activation only need to be used during the build process, not the end result packages image
<rotaerk>
Yaniel, yeah I have the fix; I checked /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/os-specific/linux/nvidia-x11/builder.sh
<clever>
notgne2: why-depends can also help with perl
hc has quit [Ping timeout: 264 seconds]
<rotaerk>
yet vulkaninfo still fails
<notgne2>
the docker containers dont have a Nix daemon or any of the daemon files, how would I use that against an eval-config generated system
hc has joined #nixos
<notgne2>
I could have probably kept that but if a `/nix` is created in runAsRoot for buildImage then it adds a duplicate directory to the tar file and upsets docker, so I had to remove it in extraCommands
<clever>
notgne2: use nix-build outside of docker, against the toplevel expr you pass to buildImage
<clever>
notgne2: and then why-depends on that path, outside of docker
<iqubic>
Can I install Intellij on Nix?
<iqubic>
*NixOS.
<iqubic>
Is there anything I should be aware of when attempting to do Java development with Intellij on NixOS?
<rotaerk>
ah; the reason vulkaninfo fails for me is *not* because of the above issue. it's because LD_LIBRARY_PATH is empty. If I export that and set it to /run/opengl-driver/lib/, vulkaninfo works.
<rotaerk>
*should* LD_LIBRARY_PATH be set, or should it be getting that from somewhere else, such as RUNPATH?
<clever>
rotaerk: LD_LIBRARY_PATH needs to point into /run/opengl-driver/lib/ for opengl stuff to work
<rotaerk>
okay; and is there something in NixOS that's supposed to be setting and exporting it?
<rotaerk>
I'll try rebooting; just in case I did something to ruin that
emiller88 has quit [Ping timeout: 264 seconds]
<rotaerk>
yeah, it's just not getting set by nixos...
<infinisil>
But locally I tested it, and indeed it's not overridable
<alexarice[m]>
interesting
<alexarice[m]>
infinisil++
<alexarice[m]>
bot isn't here, right
<infinisil>
It could be made overridable, not sure if that's something good though, because then it would be very easy to change rev but not sha256
<alexarice[m]>
now that I think about it I think I have read stuff saying that is the reason it is not overridable
<alexarice[m]>
I still find it odd that nix completely trusts the hash to be correct even if the other inputs have changed
<clever>
alexarice[m]: thats the point of a fixed-output drv
<clever>
alexarice[m]: so nix doesnt rebuild the world when the version of git or curl changes
<infinisil>
clever: But still, we could have some special derivation attribute for influencers of the hash. This could include owner, repo and rev from fetchFromGitHub, but not curl and such
<alexarice[m]>
clever: wouldn't it be possible to track what inputs were used to create a fixed output derivation
<clever>
infinisil: originally, fetchFromGitHub would put the rev into the name
<clever>
infinisil: the $out is based on the name and sha256, so changing the rev changes the name, and the $out, causing it to properly re-check
<alexarice[m]>
nm I see your point
<clever>
but somebody changed the name to "source"
<infinisil>
For nix-prefetch to work?
<infinisil>
Without specifying a name
<clever>
infinisil: it should be able to generate the same name attr
<infinisil>
Hm yeah, so why isn't this done?
<alexarice[m]>
If the revision was added as an attribute to the derivation would that have the same effect?
<clever>
alexarice[m]: a fixed-output drv ignores all attrs other then name and sha256
<infinisil>
If it doesn't need to be built ^^
<clever>
it will compute what $out should be, based on name and sha256
<clever>
then check if that already exists in /nix/store/
<clever>
if it exists, then it makes no attempt to build it
<alexarice[m]>
clever: infinisil would it be theoretically possible to have some sort of opposite of passthru for fixed output derivations to make the out hash depend on inputs
<infinisil>
That's what I suggested earlier, that would be possible
<infinisil>
(if you change nix)
MarcWeber has quit [Ping timeout: 268 seconds]
asymptotically has quit [Quit: Leaving]
<clever>
alexarice[m]: i would just put those things into the name of the drv
<clever>
then it will work with current nix
ddellacosta has quit [Ping timeout: 240 seconds]
<alexarice[m]>
I thought infinisil was saying that changing the name would mess with nix-prefetch?
<clever>
nix-prefetch would have to be modified, to use the same name
<ShaRose>
ok, so I'm trying to figure out the best way to get nix to create a routed bridge: preferably in a way that's defined.
<ShaRose>
It seems you can't just create a bridge with no interfaces, but I'm not sure if creating a tun device is my best bet. I don't see anything for qemu to create a defined one either.
<ShaRose>
I could probably try and extend it a bit to do just that, but if I can build the bridge the way I want I can create my own dhcp server definitions which would actually work better than qemu's built in defintions (because I can say which domain to use which is nice for srv records and such)
mexisme has quit [Ping timeout: 245 seconds]
alex`` has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
gyroninja has quit [Ping timeout: 276 seconds]
Ariakenom has quit [Ping timeout: 268 seconds]
sigmundv has quit [Ping timeout: 240 seconds]
gyroninja has joined #nixos
andreas303 has quit [Ping timeout: 260 seconds]
Fendor has joined #nixos
kleisli has joined #nixos
ddellacosta has joined #nixos
justanotheruser has quit [Ping timeout: 268 seconds]
andreas303 has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
Fendor has quit [Ping timeout: 268 seconds]
alex`` has quit [Quit: WeeChat 2.6]
ddellacosta has quit [Ping timeout: 268 seconds]
dermetfan has quit [Ping timeout: 265 seconds]
jgt has joined #nixos
<tyrion-mx>
What is the proper way to package a nodejs/electron application? I am trying to do npm install ... but I am sure it is the wrong way
jgt has quit [Ping timeout: 246 seconds]
<ivan>
my answer to 'how do I package X' is 'find a thing in nixpkgs just like the thing you're packaging'
<ivan>
`rg -w electron` finds riot-desktop which is a from-source build of an electron app
<ivan>
it looks like yarn2nix is involved
<tyrion-mx>
great, I will have a look at that
<Ralith>
one of the joys of node.js packages is they typically have idiosyncratic janky underdocumented build processes
<Ralith>
so be prepared for a lot of trial and error
<tyrion-mx>
thanks :)
goodwill has joined #nixos
mbrgm_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 276 seconds]
mbrgm has quit [Ping timeout: 245 seconds]
mbrgm_ is now known as mbrgm
mexisme has joined #nixos
mexisme has quit [Ping timeout: 265 seconds]
Henson has joined #nixos
veske has joined #nixos
mexisme has joined #nixos
<Henson>
can someone help me remember the Nix function that allows one to generate a LSB and FHS compatible environment to run non-Nix programs that expect libraries and files to be in the usual locations?