gchristensen changed the topic of #nixos to: The Nix Ecosystem, https://nixos.org | NixOS: https://nixos.org/nixos/download.html | Nix: https://nixos.org/nix/download.html | Logs: https://logs.nix.samueldr.com/nixos/ | #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
wolfshappen has quit [Quit: bye]
xkapastel has quit [Quit: Connection closed for inactivity]
wolfshappen has joined #nixos
qubasa has joined #nixos
hio has quit [Quit: Connection closed for inactivity]
qubasa_ has quit [Ping timeout: 276 seconds]
kleisli has quit [Ping timeout: 245 seconds]
emacsomancer has joined #nixos
emptyflask has joined #nixos
bhipple has quit [Ping timeout: 265 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
pbb has quit [Client Quit]
pbb has joined #nixos
pbb has quit [Client Quit]
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.
<j-em> nix-store --check-contents --verify reports this: https://pastebin.com/1CQRudsH
growpotkin has joined #nixos
rpg has joined #nixos
rpg has quit [Client Quit]
<ivan> j-em: probably filesystem corruption
<drakonis> j-em: the hack expected by nix isn't the same as the hash in the definition
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<ivan> j-em: try nix-env -e 'vscode.*' to remove it?
<ivan> (then nix-collect-garbage)
iyzsong has joined #nixos
<Miyu-chan> nix-store --delete /nix/store/ihz9qxg66s0wpx9dlq9p4s54xi8bnq9y-vscode-1.38.0
jluttine has joined #nixos
<clever> but dont use --force if it fails
<j-em> ivan: Ran nix-env -e 'vscode.*', then nix-collect-garbage, and then nix-env --install vscode.
<j-em> ivan: nix-store --check-contents --verify still reports the same things
<j-em>
<clever> j-em: what does --verify report?
m15k has quit [Remote host closed the connection]
<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?
<clever> j-em: nix-store --repair https://pastebin.com/aLUsQAa4
<clever> oops
<clever> j-em: nix-store --repair /nix/store/ihz9qxg66s0wpx9dlq9p4s54xi8bnq9y-vscode-1.38.0
<clever> dansho: you need to chroot into nixos, and run `nixos-rebuild boot --install-bootloader` to fix the bootloader back to grub
<clever> dansho: and configure mint to not touch the MBR
<dansho> clever: hmm, so i would mount my nixos root partition and chroot into that?
<clever> dansho: yeah
<dansho> ok, thanks!
<j-em> clever: did you mean --repair-path ?
<clever> j-em: yeah
<j-em> clever: gotcha, running it right now
<j-em> clever: okay so i get a permission denied when trying this
<clever> j-em: try running it as root?
<j-em> clever: running it as root spills out this https://pastebin.com/cb3Zdzw5
<j-em> (using sudo)
<clever> j-em: what does `date` return?
<j-em> Sat 14 Sep 2019 19:04:05 PDT
<clever> j-em: sounds like your ssl ca files arent visible to nix for some reason
<clever> j-em: is this on nixos or another os?
<j-em> clever: latest macOS version
bigvalen has quit [Ping timeout: 268 seconds]
<clever> j-em: single-user or multi-user? is nix-daemon running?
<j-em> should be single-user i think, i installed it using the doc here https://nixos.org/nix/manual/#ch-installing-binary
<clever> j-em: then you need to fix the ownership on /nix, so you own every file (sudo chown -R USER /nix/), and then re-do repair-path without root
jb55 has quit [Quit: jb55]
<j-em> clever: uhhhhhh i still get the permission denied after doing chown -R myuser /nix and redoing repair-path
slack1256 has quit [Ping timeout: 240 seconds]
<clever> j-em: what about `nix-store --query --roots /nix/store/ihz9qxg66s0wpx9dlq9p4s54xi8bnq9y-vscode-1.38.0` ?
<clever> j-em: ls -l /nix/var/nix/profiles/per-user/jeremyallard/profile
<clever> j-em: nix-env -e 'vscode.*' then repeat the last 2 commands
sigmundv_ has quit [Ping timeout: 265 seconds]
paradigm has quit [Ping timeout: 268 seconds]
<j-em> after running nix-env -e 'vscode.*': https://pastebin.com/JuuQ8TqY and https://pastebin.com/BMzmTMBC
<clever> j-em: nix-env --delete-generations 9 11 ; nix-store --delete /nix/store/ihz9qxg66s0wpx9dlq9p4s54xi8bnq9y-vscode-1.38.0
<j-em> second command returns this: https://pastebin.com/tETTdTrb
bigvalen has joined #nixos
<clever> j-em: if `--query --roots` only shows lsof, then try `--delete --force`
<j-em> running nix-store --delete with --force doesn't seem to work: its reporting that --force is unknown
<clever> nix-store --delete [--ignore-liveness] paths...
<clever> ah, its ignore-liveness
<j-em> gotcha
<j-em> okay, sounds like this worked properly
<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
b has quit [Ping timeout: 258 seconds]
evanjs- has quit [Ping timeout: 265 seconds]
nexgen2 has joined #nixos
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
orivej has quit [Ping timeout: 265 seconds]
aexoxea has joined #nixos
domogled has joined #nixos
abathur has quit [Ping timeout: 245 seconds]
{`-`} has joined #nixos
mikky has joined #nixos
techtangents has joined #nixos
sevanspowell has joined #nixos
teehemkay has joined #nixos
oharvey has joined #nixos
tazjin has joined #nixos
etrepum has joined #nixos
jackdk has joined #nixos
coot has joined #nixos
teozkr has joined #nixos
BinkyTheClown has joined #nixos
ghuntley has joined #nixos
wildsebastian has joined #nixos
benley has joined #nixos
s94a84d2e has joined #nixos
eacameron has joined #nixos
digitalgrease has joined #nixos
ajmcmiddlin has joined #nixos
blackriversoftwa has joined #nixos
nlofaro_ has joined #nixos
vdemeester has joined #nixos
Kim has joined #nixos
gerschtli has joined #nixos
metalrain has joined #nixos
nixy has joined #nixos
mexisme has joined #nixos
Orbstheorem has joined #nixos
macerbi[m] has joined #nixos
chuzz_ has joined #nixos
bohan[m] has joined #nixos
abbafei[m] has joined #nixos
georgew has joined #nixos
lopsided98 has joined #nixos
vdemeester has joined #nixos
vdemeester has quit [Changing host]
skorpy2009 has joined #nixos
thonkpod has joined #nixos
sphalerit has joined #nixos
dongcarl has joined #nixos
zmlww[m] has joined #nixos
bennofs[m] has joined #nixos
sm[m] has joined #nixos
hiroshi[m] has joined #nixos
haslersn has joined #nixos
emiller88 has joined #nixos
Wimpress has joined #nixos
Victor[m]2 has joined #nixos
benley is now known as Guest32892
andreabedini has joined #nixos
MiloIgnis[m] has joined #nixos
victorbjelkholm_ has joined #nixos
endformationage has quit [Quit: WeeChat 2.5]
taylskid has joined #nixos
harkenedraven has joined #nixos
Dagger has joined #nixos
escaP[m] has joined #nixos
HappyEnt[m] has joined #nixos
GerdFlaig[m] has joined #nixos
sputny[m] has joined #nixos
mariusz-kowalski has joined #nixos
emiller88 has quit [Remote host closed the connection]
emiller88 has joined #nixos
emiller88 has quit [Remote host closed the connection]
Rusty1 has quit [Quit: Konversation terminated!]
mexisme has quit [Ping timeout: 276 seconds]
xavierm02 has joined #nixos
bkchr has joined #nixos
fadenb has joined #nixos
pointfree has joined #nixos
chkno has joined #nixos
awygle has joined #nixos
swflint has joined #nixos
fnords has joined #nixos
Taneb has joined #nixos
craige has joined #nixos
nikola has joined #nixos
shlevy has joined #nixos
bwe has joined #nixos
markasoftware has joined #nixos
xavierm02 has joined #nixos
xavierm02 has quit [Changing host]
bkchr has joined #nixos
bkchr has quit [Changing host]
gyroninja has quit [Ping timeout: 245 seconds]
gyroninja has joined #nixos
polman has quit [Ping timeout: 245 seconds]
polman has joined #nixos
polman has quit [Ping timeout: 245 seconds]
slack1256 has quit [Ping timeout: 265 seconds]
emptyflask has quit [Ping timeout: 276 seconds]
polman has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
Mateon1 has quit [Remote host closed the connection]
domogled has quit [Quit: domogled]
domogled has joined #nixos
Mateon1 has joined #nixos
user____ has joined #nixos
jgt has joined #nixos
marusich has joined #nixos
boxdot1 has joined #nixos
boxdot1 has quit [Quit: Leaving.]
noudle has joined #nixos
fusion809 has joined #nixos
gyroninja has quit [Quit: WeeChat 2.5]
domogled has quit [Ping timeout: 240 seconds]
nash[m] has joined #nixos
bhipple has quit [Remote host closed the connection]
ixxie has joined #nixos
zupo has joined #nixos
zupo has quit [Ping timeout: 240 seconds]
polman has quit [Ping timeout: 245 seconds]
Ralith_ has joined #nixos
polman has joined #nixos
zupo has joined #nixos
domogled has joined #nixos
jtojnar has quit [Quit: jtojnar]
dermetfan has joined #nixos
zupo has quit [Ping timeout: 240 seconds]
gyroninja has joined #nixos
zupo has joined #nixos
drakonis has quit [Quit: WeeChat 2.4]
dermetfan has quit [Ping timeout: 240 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dansho has quit [Ping timeout: 268 seconds]
ambro718 has joined #nixos
zupo has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has joined #nixos
jgeerds has joined #nixos
o1lo01ol1o has joined #nixos
orivej has joined #nixos
Myhlamaeus3 has joined #nixos
user____ has quit [Ping timeout: 268 seconds]
tjg1 has quit [Quit: if i commit suicide, at least a real nigga killed me]
tjg1 has joined #nixos
mexisme has joined #nixos
alex``` has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
kleisli has joined #nixos
vika_nezrimaya has joined #nixos
kleisli has quit [Ping timeout: 264 seconds]
hmpffff has joined #nixos
polman has quit [Ping timeout: 245 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
orivej has quit [Ping timeout: 276 seconds]
polman has joined #nixos
Melkor333 has joined #nixos
<eyJhb> It seems like `services.znc`, are missing some options? e.g. what about multiple znc users?
freeman42[NixOS] has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<DigitalKiwi> you can have multiple users
polman has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
<DigitalKiwi> eyJhb: have you seen https://nixos.wiki/wiki/ZNC ? Just put User.bob and User.alice
user_ has joined #nixos
polman has joined #nixos
<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.
polman has quit [Ping timeout: 245 seconds]
<freeman[NixOS]> what would I need to install to fix this issue? https://i.imgur.com/MQevvWP.png
zupo has joined #nixos
dermetfan has quit [Ping timeout: 240 seconds]
Ariakenom has joined #nixos
<yorick> freeman[NixOS]: hardware.opengl.driSupport32Bit = true
polman has joined #nixos
<dkibi> heyo folks. my pc froze during nixos-rebuild switch --upgrade and now the internal state seems to be broken. running it retruns:
<dkibi> error: syntax error, unexpected $end, at /nix/store/6x2h1ffwcqd93jy3jsw1jrh22mbrmxhn-env-manifest.nix:1:1
<dkibi> and nix-store --verify --check-contents --repair says:
<dkibi> error: error parsing derivation '/nix/store/b0byf3pyrwiw506f7g41hvdwqjfmp9i2-nixos-19.03.173495.7339bd47600.drv': expected string 'Derive(['
<dkibi> is there any hammer method to reinitialize everything?
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
polman has quit [Ping timeout: 245 seconds]
<freeman[NixOS]> yorick, I already had "hardware.opengl.driSupport32Bit = true" set
_ris has joined #nixos
orivej has quit [Read error: Connection timed out]
<freeman[NixOS]> ah, a kindred soul: https://github.com/NixOS/nixpkgs/issues/56381
freeman[NixOS] has quit [Quit: Leaving]
<tilpner> nix-repl> (builtins.parseDrvName hello.name).version
<tilpner> "2.10"
<tilpner> hyperfekt: ^
<tilpner> nix-repl> lib.versions.major (builtins.parseDrvName hello.name).version
<tilpner> "2"
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tilpner> And then use lib.versions if you only care about specific parts of the version
zupo has joined #nixos
zupo has quit [Client Quit]
zupo has joined #nixos
Local00 has joined #nixos
<hyperfekt> tilpner: awesome, thanks!
arahael1 is now known as Arahael
Local00 has left #nixos [#nixos]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dermetfan has joined #nixos
MmeQuignon has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
alex``` has quit [Quit: The Lounge - https://thelounge.chat]
turtlerabbit has joined #nixos
<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
<tilpner> Sure, use overlays
<tilpner> self: super: { purple-slack = self.callPackage ./purple-slack.nix {}; }
<eyJhb> Ah, I forgot about that, happily
<tilpner> You can automate the callPackage, so that you don't need to list all your packages
<eyJhb> Where would I put that?
<tilpner> That depends on where you want to use it
<tilpner> Overlays can be made to be global, but it's tricky
<tilpner> During nixos-rebuild? nix-shell? nix-env?
nexgen2 has joined #nixos
<eyJhb> Currently I use a syntax like this in configuration.nix - https://pastebin.com/hdKqhFzN
<tilpner> nixos-rebuild will eval nixpkgs.overlays, the others don't
<eyJhb> nixos-rebuild would be great :)
<tilpner> You can just add it in there
<eyJhb> Super, so Ican just do that, and replace e.g. unstablePkgs.betterlockscreen; with self.callpackage?
<tilpner> Either to the same overlay, or as a new one
<tilpner> nixpkgs.overlays = [ (self: super: { ... }) (self: super: { ... }) ];
<tilpner> Yes, that should work
<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
<tilpner> eyJhb: inherit (unstablePkgs) blender weechat;
<tilpner> That will do the same as two of your lines, and has a lot less repetition
<eyJhb> Guessing I could replace all of the, with that?
<tilpner> Yes, it can still be multiple lines for readability
<tilpner> I can't tell what's wrong from that incomplete error line
<eyJhb> I can get you a better error message :) 2 secs
dbyte has quit [Ping timeout: 265 seconds]
<eyJhb> tilpner: https://pastebin.com/F1hv8exu this
knupfer has quit [Quit: knupfer]
<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?
<tilpner> eyJhb: https://tx0.co/DEQ
ncth^ has left #nixos [#nixos]
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]
Fare has joined #nixos
freeman42[NixOS] has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
<eyJhb> Thanks tilpner ! :)
mexisme has joined #nixos
xkapastel has joined #nixos
qqlq has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
jD91mZM2 has quit [Quit: ZNC 1.7.3 - https://znc.in]
jD91mZM2 has joined #nixos
orivej has joined #nixos
ddellacosta has quit [Ping timeout: 240 seconds]
arahael1 has joined #nixos
Arahael has quit [Ping timeout: 240 seconds]
Fendor has quit [Remote host closed the connection]
jD91mZM2 has quit [Quit: ZNC 1.7.3 - https://znc.in]
aexoxea has quit [Quit: Goodbye!]
Fendor has joined #nixos
jD91mZM2 has joined #nixos
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> ok I agree, that doesn't make sense
<tilpner> Oh, HM. Never used that
<tilpner> That does some sense
<tilpner> Pass --all to why-depends for more deps
<tilpner> *does make some
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<jD91mZM2> tilpner: Doesn't make any more sense to me: https://imgur.com/v4n9U6K
M-Gregoire49 has quit [Ping timeout: 245 seconds]
<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?
<tilpner> Yes, that'll work
<tilpner> writeShellScriptBin "okular" "${okular}/bin/okular"
<tilpner> Maybe exec and "$@"
<jD91mZM2> Ah, thanks!
<jD91mZM2> tilpner++
<jD91mZM2> oh no where's the bot?
<tilpner> On holiday
markus1189 has joined #nixos
<jD91mZM2> {^_^}: Happy holidays!
<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> It is CLOSE to release :D
knupfer has quit [Ping timeout: 245 seconds]
boxdot1 has joined #nixos
mexisme has joined #nixos
<eyJhbTmp> tilpner - https://i.imgur.com/PtQYxlB.png again, but, which drive? /nix/store seeems to have space enough
<Thra11> tilpner: Thanks for reviewing!
civodul has joined #nixos
jgeerds has quit [Ping timeout: 276 seconds]
mexisme has quit [Ping timeout: 246 seconds]
<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
<Thra11> pittma: Does https://nixos.org/nixos/options.html help?
<pittma> Thra11: Thanks, and I also found this: https://nixos.org/nixos/packages.html which links to the package.
<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]
zacts has quit [Quit: WeeChat 2.4]
<infinisil> eyJhb: callPackages ./pkgs/purple-slack.nix {}
<eyJhb> Just as you typed I noticed it :p
<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?
<eyJhb> tilpner: I have opened a PR for purple-slack, and CC you on it :) https://github.com/NixOS/nixpkgs/pull/68850
<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]
eraserhd has joined #nixos
<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: I guess I'm a step closer. It seems to pring up only interface in /sys/class/net and the the usb dock one isn't there... even after boot https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/initrd-network.nix#L112
<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?
<evanjs> ,howoldis tyrion-mx
<evanjs> Dangit, wrong syntax
_eder_ has quit [Quit: CyberScript - O ministério da saúde adverte: usar CyberScript causa dependência! (www.cyberscript.org)]
<tyrion-mx> evanjs: ok, but I am not sure what to conclude from that, they seem all updated very recently
<tyrion-mx> I did not even know there was a difference between nixos-unstable and nixpkgs-unstable
<evanjs> tyrion-mx: ah alright, this might help, then
<evanjs> `nix eval -f channel:nixos-unstable firefox.name`
<evanjs> `nix eval -f channel:nixpkgs-unstable firefox.name`
<evanjs> shows that both are the same
<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]
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
orivej has joined #nixos
dbyte has joined #nixos
turtlerabbit has joined #nixos
<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?
Guest32892 is now known as benley
<evanjs> tyrion-mx: I tried a while ago and can't remember where I got stuck but I remember I had no clue what was going on. Have you seen this thread? https://discourse.nixos.org/t/trying-and-failing-to-package-mailspring-an-electron-app/3531
<tyrion-mx> yes
<tyrion-mx> I was thinking to start from the nylas-mail-bin package that existed some time ago
<tyrion-mx> did you try that? They should be quite similar I guess
<eyJhb> hyper_ch: keep trying :D
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
<eyJhb> tilpner: updated PR, not sure about the info if you meant anything more than the license :)
Chiliparrot has joined #nixos
<tilpner> eyJhb: I meant the platform. I couldn't find anything on it being linux-only
evanjs has joined #nixos
<eyJhb> tilpner: looks like it might be windows as well? https://github.com/dylex/slack-libpurple/issues/53, and anything else ? So, what should it be changed to?
<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?
<immae> docuwhat? :troll:
<tyrion-mx> I mean, what I "want" is just to try to create a nix pkg for mailspring and fail miserably
<tilpner> tyrion-mx: Relevant: https://github.com/nix-community/NUR
dermetfan has joined #nixos
drakonis has joined #nixos
dbyte has quit [Read error: Connection reset by peer]
<tyrion-mx> nixos-rebuild + git clone nixpkgs + firefox -> crashed my shitty laptop
<tilpner> Crashed how?
<tilpner> Swapping can cause unresponsiveness, don't know if you count that
<tyrion-mx> ram and cpu 100%, load was 20 and I have two cores lol
<tilpner> Huh
<tilpner> That's more than I would expect
<tyrion-mx> I managed to pkill firefox from a tty :D
Soo_Slow has quit [Remote host closed the connection]
<tilpner> In "nix show-config", what are the values of "cores" and "max-jobs"?
<tyrion-mx> (I did not mention that I have maybe some hundreds ff tabs, that might mean something, even if they are discared automatically)
<tyrion-mx> cores = 0, max-jobs = 2
domogled has quit [Quit: domogled]
Stuck_ has joined #nixos
user_ has quit [Ping timeout: 240 seconds]
<tyrion-mx> tilpner: this NUR seems a cool idea, is it searchable somehow?
<tilpner> tyrion-mx: Yes-ish, you can clone and search (ripgrep) nix-community/nur-combined
esclear has joined #nixos
<tilpner> tyrion-mx: And https://nix-community.github.io
<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?
<tyrion-mx> I found this: https://nix-community.github.io/nur-search/ (not sure if it is up to date)
<tyrion-mx> found your repo heh :D
<tilpner> tyrion-mx: I meant https://nix-community.github.io/nur-search/
veske has joined #nixos
<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> eyJhb: runCommand "foo" {} ''mkdir $out; touch $out/{a,b,c}''
<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?
<clever> eyJhb: mkdir $out ; cd $out ; ln -sv ${hello} hello
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
<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
<eyJhb> But I don't know the best way, sorry
<tyrion-mx> no worries :D
<tyrion-mx> thanks anyway
evanjs- has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos
goodwill has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos
<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?
<emily> it's hard for me to tell the correct resolution after this change ^^;
<emily> I'd like predictable names (enp4s0) in both initrd and post-boot
<emily> oh, it's not merged, I see
alex`` has quit [Quit: WeeChat 2.6]
<emily> I guess I can just cherry-pick this PR or something?
<tilpner> GH says it'll conflict
<emily> it also seems to reference a 80-net-setup-link.rules file that doesn't seem to exist in nixpkgs...?
oida has quit [Remote host closed the connection]
alex`` has joined #nixos
<emily> tilpner: 1f03f6fc43a6f71b8204adf6cd02fb3685261add implies that's obsolete I think?
zupo has joined #nixos
<emily> right... but now it's gone and supposedly unnecessary? and yet I still get the bad behaviour :(
<tilpner> So this means what? Predictable names are the default, and done by who? systemd?
<emily> apparently, but it clearly isn't working for me
<tilpner> I'm not familiar enough with the boot process. Does systemd even run during stage-1?
<clever> tilpner: systemd is only ran late in stage 2
* tilpner would've guessed no
<tilpner> clever: How do you interpret the commit emily sent?
<tilpner> clever: Does systemd do the interface names, or the kernel? Is there anything else at that stage?
<tilpner> :/
dermetfan has quit [Ping timeout: 245 seconds]
<clever> tilpner: i think its still "udev" (which got eaten by systemd)
<clever> and a udev thing is ran in stage-1
<tilpner> Oh, so udev is systemd, but not systemd, and C now (so no rules)?
<clever> the rules still exist
Okinan has quit [Quit: Konversation terminated!]
<tilpner> The commit deleted them
<emily> they certainly don't exist at initrd time at least.
<tilpner> And said "It seems like the entire renaming is now done in C and not in the udev rules."
<clever> ah, ive not looked into how its being done
<emily> well, I switched my config to use eth0 and bricked my server
<emily> So I guess it's using predictable message names when setting up the network config but not thereafter, somehow.
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos
oida has joined #nixos
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
<clever> then root can still use the yubikey
<emily> hm, ok, that sounds reasonable
<emily> hm
<emily> but it's
<emily> SSH_AUTH_SOCK=/run/user/1000/gnupg/d.sowe7obf31ysw6qhbaf4r7c3/S.gpg-agent.ssh
<emily> sounds hard to determine statically
<emily> it's bound to my login sesssion
<clever> emily: i think if you set SSH_AUTH_SOCK before you run gpg-agent, it will obey that
<emily> it's like every technical objection I have you come up with a more horrifying workaround for... I'm not even mad, I'm impressed
<emily> I guess I could use a static path to probably no harm
<emily> maybe I will just give root access to a builder at this point though
<clever> you could also have a static symlink, that points to the dynamic path
<clever> and update the symlink on login
Melkor333 has quit [Quit: WeeChat 2.6]
dbyte has joined #nixos
Phillemann has joined #nixos
dermetfan has joined #nixos
<Phillemann> I just got back from a 7 day holiday. What happened to emacs packages in nixos-unstable? :D
<Phillemann> elpy apparently isn't found anymore.
zupo_ has joined #nixos
mexisme has joined #nixos
zupo has quit [Ping timeout: 268 seconds]
lord| has joined #nixos
<emily> oh, https://github.com/NixOS/nix/issues/2789 is depressing :(
<emily> I'd really rather not have a passwordless key that effectively has root access to my server.
polman has joined #nixos
sigmundv has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
alex`` has quit [Quit: WeeChat 2.6]
polman has quit [Ping timeout: 276 seconds]
polman has joined #nixos
<emily> clever: is it possible to set SSH_AUTH_SOCK just for nix-daemon?
<emily> I guess I just need to poke the right systemd service config?
<clever> emily: yeah
<clever> systemd.services.<name>.environment
<clever> emily: look this up in the nixos options
<emily> right
growpotkin has joined #nixos
<emily> so `systemd.services.nix-daemon.environment.SSH_AUTH_SOCK = "...";` in configuration.nix should work?
<emily> thanks for the help
<clever> yep
knupfer has quit [Ping timeout: 245 seconds]
polman has quit [Ping timeout: 245 seconds]
<emily> it works, yay
Fendor has quit [Remote host closed the connection]
<evanjs> Looking at https://github.com/neoclide/coc.nvim#table-of-contents ... are these steps really necessary for NixOS?
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.
<evanjs> gah, so not exactly Nixish, I guess.
qqlq has quit [Quit: ZNC 1.7.4 - https://znc.in]
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
emacsomancer has joined #nixos
<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...
<alexarice[m]> is causing infinite recursion
<worldofpeace> rotaerk: I believe we recently stopped setting it
<worldofpeace> rotaerk: but reverted it on 19.09 https://github.com/NixOS/nixpkgs/pull/67791
<worldofpeace> so if you're running unstable it will be unset
<rotaerk> hmm I see.. why does the comment there say "unfortunately there are still a few programs that need this"?
<rotaerk> it sounds like this isn't just something a few programs need, but a standard expectation by everything that uses opengl
<worldofpeace> hardware.opengl.setLdLibraryPath = true; should work though
<rotaerk> okay, I'll add that to my config; thanks
alex`` has quit [Quit: WeeChat 2.6]
<rotaerk> worldofpeace, yep that worked. thanks again
<worldofpeace> rotaerk: you're welcome 🎊️
Fendor has quit [Ping timeout: 240 seconds]
jgeerds has quit [Ping timeout: 245 seconds]
<infinisil> alexarice[m]: Yeah use `super` instead of `super.pkgs`
<alexarice[m]> infinisil: thanks, had just figured it out
<alexarice[m]> fish also doesn't use fetchFromGitHub anyway
<infinisil> alexarice[m]: Ah that doesn't matter though
<infinisil> Wouldn't work either way
<infinisil> You need to override with `src = fetchFromGitHub { ... }`
<alexarice[m]> infinisil: is fetchFromGitHub not an overridable derivation?
<infinisil> Oh now that you mention it, yeah that maybe would've worked
<infinisil> > fetchFromGitHub { owner = ""; repo = ""; rev = ""; sha256 = ""; }
<infinisil> Oh bot is not here
<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
<clever> it should know the rev
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
<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?
simukis__ has joined #nixos
<clever> Henson: buildFHSUserEnv
<evanjs> A little simpler than the _massive_ steam wrappers in nixpkgs
simukis_ has quit [Ping timeout: 244 seconds]
kleisli has quit [Ping timeout: 276 seconds]
<Henson> thank you clever and evanjs
emiller88 has joined #nixos
<Henson> I took the plunge and am now running NixOS on my laptop. So far so good.
xkapastel has joined #nixos
<qyliss> :)
mexisme has quit [Ping timeout: 268 seconds]
emiller88 has quit [Ping timeout: 245 seconds]
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
veske has quit [Quit: This computer has gone to sleep]
shibboleth has quit [Quit: shibboleth]
bhipple has joined #nixos
jgt has joined #nixos