tenten8401 has quit [Quit: Konversation terminated!]
Supersonic has joined #nixos
CcxWrk has joined #nixos
sbdchd has joined #nixos
jperras has joined #nixos
strobelight has joined #nixos
strobelight has quit [Remote host closed the connection]
sir_guy_carleton has joined #nixos
<petersjt014[m]>
hi:
<petersjt014[m]>
I'm (still) trying to get nixos running on an rpi zw--I got the img file written, but all I'm getting is a pattern of a long flash of the led followed by a very short one. anyone know what that means?
<srhb>
PeterRomfeld[m]: Unfortunately, right now I don't remember which people are the right ones to poke for RPi support, but I know they are here. It's very timezone dependant, so please try your luck at different hours and I'm sure you'll get a result. I'll try to remember your nick if I recall who the right people are :)
<samueldr>
petersjt014[m]: I think :)
<samueldr>
just a quick checklist: you used the armv6l image from dezgeg?
<petersjt014[m]>
yeah
<petersjt014[m]>
one sec while I get the hash
<srhb>
Woops, yes, sorry, wrong tag.
<clever>
petersjt014[m]: you can lookup what the blink pattern means online
<clever>
petersjt014[m]: how many blinks is it doing?
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
<petersjt014[m]>
It's on a cycle. one that lasts about a quarter-second, then one really quick one, with about a second inbetween
<clever>
2 flashes: The SD Card cannot be read.
<clever>
petersjt014[m]: if you remove the SD card entirely, then reconnect power, does it blink the same way?
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @volth to master « treewide: fix build with disallowed aliases (#43872) »: https://git.io/fNWhm
<clever>
now you can undo the changes to configuration.nix to re-add yourself, nixos-rebuild switch, and possibly run `passwd username` to set the pw again
<tertle||eltret>
does it matter if u use declarative and imperitive method to add the same user?
<clever>
i prefer to always use declarative
justanotheruser has quit [Ping timeout: 260 seconds]
<tertle||eltret>
how to add myself to sudoers file in config.nix?
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
spacefrogg has joined #nixos
<sophiag>
clever: while i'm catching you on here, are you aware of problems with grub and muxless graphics?. i'm stuck with a laptop with a muxless nvidia card for now and figure i'll try to enable prime either using the instructions on the wiki or when it's automated in 18.09, but suspect my bootloader config may interfere so wondering if i shoudl prefer systemd-boot instead
aw has joined #nixos
<clever>
sophiag: for efi booting, there are dedicated functions provided by the firmware for drawing to the screen, i would expect that to not cause any gpu driver problems
<clever>
sophiag: and if it did cause problems, i would expect every bootloader to have the same problems
<clever>
for legacy booting, i believe grub uses the same legacy bios calls dos would have used, and i has not messed with advanced stuff like pci passthru for me, so it should also not cause issues with wonky drivers
ericsagnes has quit [Ping timeout: 244 seconds]
<sophiag>
hmm, okay. i was just trying to find the issue where someone mentioned that possibly interfering
<{^_^}>
#19775 (by lheckemann, closed): Option hardware.amdHybridGraphics.disable does not work
<clever>
sophiag: from the first comment, it sounds like a race condition, the systemd unit just needs to wait a bit longer
jperras has joined #nixos
<clever>
sophiag: and for the comment a few down about linux vs linuxefi, just read the grub.conf file in /boot and see which one its using
<clever>
[root@amd-nixos:~]# grep linux /boot/grub/grub.cfg
<clever>
linux ($drive1)//kernels....
<clever>
looks like its still "linux"
<sophiag>
the op makes a comment further down about "having heard" grub causing issues with hybrid graphics
<clever>
sophiag: that comment implies that its less to do with what grub did to the GPU, and more what grub isnt forwarding to the linux kernel
<clever>
yeah, thats the comment i mentioned
<sophiag>
right, and that sounds similar to what i've been experiencing with muxless nvidia + grub. it boots into tty and switching services.xserver.videoDriver to intel was causing cpu stalls...
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
<clever>
the comments i read dont mention any cpu stalls, have you tried testing ssh?
<sophiag>
i don't have the ability to at the moment
decor1 has quit [Quit: Leaving...]
jperras has quit [Ping timeout: 264 seconds]
<sophiag>
to be clear, i didn't disable nvidia in hardware
<sophiag>
although this issue doesn't mention muxless. i've mainly been following #24711
<sophiag>
it seems i could upgrade to 18.09 and use that method, try the one under nvidia on the wiki now, or try disabling nvidia in hardware similar to amd in the issue that mentioned systemd-boot
rtjure has quit [Ping timeout: 245 seconds]
<tertle||eltret>
why cant i install renosie on this box?
<clever>
tertle||eltret: is it giving an error?
<tertle||eltret>
no, it installs, but i cant find the executable
<tertle||eltret>
usually its available from shell
<clever>
sophiag: the power of nixos config is amazing, i switched my desktop from nixos-unstable to 18.03, and then even 17.09 today, trying to narrow down a problem
<clever>
sophiag: with only very minor changes to my configuration.nix, i was able to downgrade the whole machine to 17.09 effortlessly
<clever>
sophiag: sadly, 17.09 also shows signs of the same problem, so its either a long-standing issue in the linux kernel, or a config issue in configuration.nix itself
ericsagnes has joined #nixos
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi- is now known as hiroshi
<sophiag>
clever: my rebuilds are extremely slow at the moment. otherwise i likely would have diagnosed it further now that i've found this new information (i've had to boot off a 16.09 build for over a year just to get a display manager to load)
<clever>
sophiag: i did have to reduce my own rebuilds down to 1 core
<clever>
in my case, the issue is a weird voltage control problem with the cpu, that leads to the motherboard dumping 80 amps into the poor cpu, which then overheats to the point of the machine cutting power
<clever>
and just doing a rebuild was making it get dangerously close to overheating again
<sophiag>
wow
<sophiag>
that makes muxless nvidia sound tame
<clever>
i started to suspect a linux problem, after i noticed windows at max load barely used 20 amps in the same monitoring util
<clever>
so either linux is doing something seriously wrong
<clever>
or windows is doing something seriously wrong, and can only use 10% of my cpu's power :P
<clever>
sophiag: the amps and volts on the cpu, when idle, and then starting a stress test to max out all cores
<clever>
notice the amps going literally off the scale, lol
<sophiag>
yeah, that's scary...
<clever>
under windows, with max load, the voltage wont even leave 0.86v
<clever>
linux is just jumping all over the place while idle
<clever>
i initially thougth 80 amps was normal, because i only tested linux, and the math matches up with the TDP of the cpu
<angerman>
great :( I manage to lock up my remote builders to th epoint where they say "waiting for locks or build slots..."; even though nothing is happening on the remot uilder.
cryptomonoid has joined #nixos
<clever>
angerman: the local machine keeps track of how many builds are being ran
<clever>
angerman: let me find the state...
<angerman>
reboot usually helps; but that's kinda stuipid.
<angerman>
clever: but reboot shouldn't help in that case, should it?
<sophiag>
that's the part where nixos can't really deliver, at least in my experience. it's likely not a kernel version issue, but some module that's difficult to pinpoint
<clever>
angerman: i think nixos keeps that state on a tmpfs
<clever>
angerman: so its lost at reboot
rtjure has joined #nixos
<clever>
sophiag: i initially thought it was a recent channel update, because it never went into thermal shutdown prior to this summer
<angerman>
clever: but that's rebooting the builder. Hmm...
sbdchd has quit [Remote host closed the connection]
<clever>
sophiag: but even 17.09 was failing, but thats during winter...
<clever>
sophiag: so its still plausible that the overheat bug was caused in fall of 2017, and it took until summer to notice
<tertle||eltret>
any ideas clever sophiag
<clever>
tertle||eltret: all binaries must be patched by nix before they can run
<clever>
tertle||eltret: so installing things the non-nix way will always fail
<tertle||eltret>
ohhhhhhhhhhhhhh
<tertle||eltret>
damn
<clever>
tertle||eltret: nix-env -iA nixos.renoise to install the nix package of it
<clever>
tertle||eltret: installs the package refered to by an attribute path
<samueldr>
,-A tertle||eltret
<{^_^}>
tertle||eltret: You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<clever>
hydra probably doesnt build it, so no index
<samueldr>
yeah
wigust has quit [Ping timeout: 244 seconds]
<samueldr>
hydra doesn't build unfree, so anything unfree is also (un)helpfully (but understandably) hidden from nix-index
<clever>
samueldr: busybox probably should also be hidden from nix-index, lol
<clever>
half the command-not-found results tell you to try installing busybox, which just horribly breaks the machine
<samueldr>
yes lol
<samueldr>
or at least, all its linked binaries, keeping `busybox` itself in?
<clever>
the default version in the busybox attribute could be changed, as long as the initrd uses an override to re-enable that
srk has joined #nixos
aither has joined #nixos
<samueldr>
busybox, but with links, would help also those who want it piece-meal?
<tertle||eltret>
what is hydra?
cryptomonoid has quit [Ping timeout: 268 seconds]
marusich has joined #nixos
<clever>
tertle||eltret: the CI system for nix
<samueldr>
clever: I needed `strings` for something, this brings the whole binutils-unwrapped, piece-by-piece busybox would have helped me in that case
<sophiag>
i feel like i should know this, but... will gcing slow down rebuilds vs. pruning builds i know are broken?
<clever>
samueldr: you can also run "busybox strings foo" to run the strings sub-command
<samueldr>
yeah, also
<clever>
samueldr: by default, a normal `nix-collect-garbage` will delete anything not currently in use, which may include build-time tools, and anything source like
<samueldr>
sophiag: ^
<clever>
sophiag: and then youll probably spend an extra 10-20mins re-downloading from the binary cache, depending on your modem speed
Adluc has joined #nixos
<sophiag>
i actually have good bandwidth now (well, for an american) but someone mentioned last night why builds are slower now and it was a bit too hand-wavy for me to understand
<sophiag>
but regardless, i still have to gc after deleting generations if my goal is to free up disk space right?
<sophiag>
oh, except i can use nix-store -gc instead
<clever>
tertle||eltret: a: thats a "lovely" packaging idea, b: then how did i install it without a licenses? lol
<tertle||eltret>
u got the demo version
<tertle||eltret>
u can export to mp3
<tertle||eltret>
cant*
<clever>
tertle||eltret: you need an entry in your config.nix packageOverrides, that does renoise = pkgs.renoise.override { releasePath = /path/to/something; };
<sophiag>
clever: ah, i already knew about that (i think). given where i'm at now with hardware issues i just prefer to delete generations rather than set a gc limit
<clever>
sophiag: the automatic GC wont touch generations, so you still have to manually delete those
<sophiag>
like rn, most are from 18.09 and i'm not using it so there's no point in keeping them
<sophiag>
right. i just forgot i can gc from nix-store afterwards
<tertle||eltret>
packageOverrides, that does renoise = pkgs.renoise.override { releasePath = /path/to/something; };packageOverrides, that does renoise = pkgs.renoise.override { releasePath = /path/to/something; };releasePath
<angerman>
are there any substantial changes between `nix-build` and `nix build`?
jperras has quit [Ping timeout: 256 seconds]
<clever>
angerman: nix-build treats the free argument as a filename, nix build needs a -f for the filename
<clever>
angerman: nix build uses the free argument as either an attrpath or an expression, based on some weird logic, but nix-build needs -E or -A for that
<clever>
i find the nix-build api to be more predictable, but nix build is the only one with the better progress UI
<angerman>
clever: but conceptually they should do the same right?
<clever>
but once you know the quirks, you can translate between the 2 easily
<samueldr>
(for now, nix-build is the one you should use for scripts)
<angerman>
I'm just a bit confused because `nix-build` seems to be slower?
<samueldr>
(nix commands are not set in stone API-wise)
<clever>
yeah, they should be interchangable, once you know how to translate the args
<clever>
angerman: nix-build prints all log output to stdout, which may eat some cpu, -Q will silence it
<clever>
nix build is more silent by default
<angerman>
Also `nix-build` somehow fails to find some derivation on a binary cache, that `nix build` apparently does find.
<angerman>
I'm severely confused by the behaviour right now.
<clever>
they should use the same library behind the scenes, so that shouldnt be possible
<angerman>
So I've been playing with cachix, (because my upload to packet.net server is just too reduculously slow). And I've pushed the derivations, but `nix-build` kept copying it to the builder, whereas `nix build` seemed to not need to copy it.
Tiez has joined #nixos
<clever>
angerman: one difference that could exist, is the modes for nix copy closure
<clever>
angerman: there is a special flag, that will allow or dis-allow the remote machine to do the binary cache work on its own
<sophiag>
the builds i'm seeing in profiles are now mapped to generations quite differently than in the past. i assume this is because i had to copy a new db schema into an old version of nix earlier today :/
<clever>
angerman: the default for that flag may differ between the 2 tools
nallar has joined #nixos
<clever>
tertle||eltret: you are missing the pkgs: { and } for packageOverrides
<clever>
tertle||eltret: refer to lines 6 and 28 of my example
Ross has quit [Ping timeout: 260 seconds]
nallar is now known as Ross
<angerman>
clever: that could be it potentially. I've seen `nix-build` run the `querying...` in the beginning. I don't see it do that right now.
Fare has joined #nixos
<clever>
angerman: also of note, both tools must have the entire set of inputs locally, before they contect the build slave
<clever>
angerman: and then it can decide between uploading the local copy, or having the remote machine hit up a binary cache
<angerman>
clever: well all I cahnge is the `-f` and `-A` flags.
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<tertle||eltret>
ty clever
drakonis_ has quit [Remote host closed the connection]
<angerman>
clever: ohh, it *does* in fact fetch *some*, just not all... that's the weird part.
<angerman>
clever: and those it did *not* fetch, I ensured were there by pushing them to cachix again. So either my cachix index is corrupted (but why would `nix build`, as opposed to `nix-build` work then...)
<clever>
angerman: note that both ends will cache the negative replies from the binary cache
<clever>
angerman: so if you try something, push, then try again, it wont re-check the binary cache
<angerman>
clever: how do I force invalidate the cache?
<clever>
for the remote end, it has to be in nix.conf
<clever>
angerman: you can also just `rm -v /root/.cache/nix/binary-cache-v5.sqlite*`
<clever>
nix will automatically recreate that if its missing, and then re-query every binary cache
Fare has quit [Ping timeout: 276 seconds]
<angerman>
clever: all right, I was just too eager :-)
<clever>
angerman: there are also some bugs in nix to do with the positive caching
<clever>
angerman: if you delete soemthing from the binary cache, it will 404, but the positive cache says it exists, so nix will refuse to just build it locally
<clever>
without wiping the cache, it will take 30 days to correct itself
* clever
heads off to ebd
<clever>
bed*
peterzky has joined #nixos
Fare has joined #nixos
<angerman>
thanks!
blankhart has quit [Quit: WeeChat 1.9.1]
peterzky has quit [Quit: peterzky]
peterzky has joined #nixos
Fare has quit [Ping timeout: 248 seconds]
mkoenig has quit [Ping timeout: 256 seconds]
boomshroom has joined #nixos
<boomshroom>
Hello!
<boomshroom>
How many here play Borderlands 2 or TPS?
<boomshroom>
I'm trying to access one of the special offers and it seems to look for the ssl certificate "157753a5.0", but NixOS only gives 2 bundles and none individually.
<boomshroom>
And it seems both bundles point to the same file.
<sophiag>
i'm trying to build an ocaml package and it can't find gmp.h even if i run opam from inside nix-shell. i have gmp installed globally. could this be a path issue?
<siraben>
"The fileSystems option does not specify your root file system"
<siraben>
When I run nix-install
<siraben>
nixos-install
cryptomonoid has quit [Ping timeout: 260 seconds]
<sophiag>
siraben: that's usually generated in hardware-configuration.nix
<sophiag>
are you importing it in your configuration.nix?
<siraben>
How do you mean?
aarvar has joined #nixos
<sophiag>
i have `imports = [ ./hardware-configuration.nix]`
<siraben>
Yes I have that.
<sophiag>
and what's your fileSystem in hardware-configuration?
jperras has joined #nixos
<sophiag>
it should just be `fileSystems=."/" = { .. }`
<siraben>
sophiag: Yes I see boot
<sophiag>
hmm. are you using the same partition for root?
<sophiag>
i think this is more me being the weird one...i boot grub using legacy. i think with uefi you may need to specify a different root fileSystem on the same disk, but am not sure
FRidh has joined #nixos
<siraben>
I'll nuke the installation and start again
<sophiag>
it does seem like it should have generated that file correctly
<sophiag>
if reinstalling doesn't fix it then someone more experienced should be able to answer this for you
Tiez has joined #nixos
ericsagnes has quit [Ping timeout: 264 seconds]
<siraben>
Ah it works now
<sophiag>
woohoo!
<siraben>
I think the issue was that I ran "nixos-rebuild switch" as in the link you sent me
<{^_^}>
[nixpkgs] @FRidh pushed to master « python.pkgs.z3: provide bindings for z3 package, fixes #42603 »: https://git.io/fNlJP
tilpner has quit [Ping timeout: 264 seconds]
tilpner_ is now known as tilpner
<sphalerite>
Is there a way to see which processes' memory is in swap?
<sphalerite>
siraben: assuming you mean nixos, nixos-rebuild switch
<siraben>
Is there a guide to double boot nixos with debian?
<Jason_Grossman>
siraben: Sorry for the indirect answer, but it depends on your boot loader. Once you've got your boot loader sorted out, double booting is very easy.
<siraben>
GRUB boot loder
<siraben>
loader
<siraben>
So I'll try installing debian first in a VM
<siraben>
And NixOS on top of that?
<Jason_Grossman>
siraben: I don't know any specific guides for NixOS and grub - sorry - but there are lots of grub guides. (I don't know the best. I don't use grub.)
<Jason_Grossman>
siraben: Do that if it's fun, but the hard bit will be setting up grub.
<sphalerite>
siraben: not that I know of. The easiest way is probably to use systemd-boot instead
<Jason_Grossman>
Yeah, systemd-boot is very simple.
<Jason_Grossman>
At least, as far as boot loaders go. They're all a bit weird IMO.
<sphalerite>
since that just has its entries as individual files in a directory, so you can easily share that directroy between the two OSes
<sphalerite>
because of the kernel command line stuff it needs to pass
<Jason_Grossman>
siraben: refind can start systemd-boot, which in turn starts NixOS, and refind can also boot Debian of course. I've tried it that way. I found it too confusing, but YMMV.
<sphalerite>
Jason_Grossman: but thanks to zram I did manage to build ghc on an ARM server with 2GB of RAM :D
<sphalerite>
siraben: isn't it wonderful? :D
<sphalerite>
Wait till you see the rollbacks :p
graphene has quit [Remote host closed the connection]
<siraben>
I learned of these features from GuixSD
graphene has joined #nixos
<siraben>
But unforunately its insistence of only free software meant that I couldn't install it on a macbook pro
<Jason_Grossman>
siraben: Yes!
<siraben>
So I decided /some/ non-free software is needed because I'm not going to buy a new computer haha
<siraben>
Hmm is it just me or is running nix-env -qa | grep emacs a bit slow?
<Linus[m]>
Yeah I like guix in principle, not least because it also uses a language that's widely supported by existing tooling
<Linus[m]>
siraben: it's not just yoi
<Linus[m]>
Try `nix search` instead :)
<siraben>
Linus[m]: are you Linus Torvalds :p
<Jason_Grossman>
My worry with Guix is that it requires Nix (not to run, but to build), and so Guix is only going to work well as long as both the Nix AND Guix teams are healthy.
<Jason_Grossman>
So Nix seems like a safer bet, unless some wealthy organisation decides to underwrite Guix development.
<siraben>
but the GNU project wouldn't allow such influence I suppose
jperras has quit [Ping timeout: 240 seconds]
<siraben>
How is Nix financed? Donations?
<Jason_Grossman>
siraben: Sure they would - this happens often. The big org would have to play by GNU's rules though.
<Jason_Grossman>
siraben: Nix is financed by us sending beams of love to the lead developers.
<sphalerite>
tilpner: the matrix irc bridge broke and lost all the config
<siraben>
Ok Nix is installed in the VM, I'll install debian now
<siraben>
But Nix uses its own DSL? Guix uses Guile
<Jason_Grossman>
siraben: I'm NOT an expert, but I doubt that experimenting with boot loaders in a VM is the same as experimenting with boot loaders on bare metal.
<Jason_Grossman>
siraben: Right.
Linus[m] is now known as sphalerit
<siraben>
Jason_Grossman: Well I plan to nuke my machine before doing the whole thing
<Jason_Grossman>
siraben: But since Guix requires Nix, we have the situation (at least for the moment) where Guix is only healthy if its developers understand both guile AND Nix. So I'm worried that might not be stable. I hope it is though.
<Jason_Grossman>
siraben: Good.
<tilpner>
sphalerite - Rip. I wish it was easier to host small-scale IRC<->Matrix bridges :/
Jason_Grossman is now known as sphalerite`
sphalerite` is now known as Jason_Grossman
<siraben>
Is it hard to make a GUI installer for Nix?
<siraben>
Why don't distros have it more often?
<sphalerite>
siraben: apparently.
<siraben>
At least Nix's process it easier than Guix
<sphalerite>
Since there none of the graphical installers in existence are maintained
<sphalerite>
s/there//
<Jason_Grossman>
siraben: I think the problem with a GUI installer would be that you HAVE to understand your configuration.nix, so there's something to be said for making you edit it from the get go. OTOH, I would love it if there was a GUI installer that did disk partitioning for you.
<tilpner>
siraben - There has been some discussion. The problem is, that there's no graphical assistance after that installaton
<siraben>
What about calamares?
<Jason_Grossman>
tilpner: Right.
<siraben>
Jason_Grossman: Yes automatic partitioning would be good
<siraben>
The closest I know of is cfdisk
<siraben>
Which is pretty "graphical"
<Jason_Grossman>
siraben: Actually I think there's a double problem. (1) Nobody's spent the time on it (calamares might help with that), and (2) the policy problem that you have to learn to edit configuration.nix.
<siraben>
Why not learn off Debian's installater?
<siraben>
installer*
<tilpner>
siraben - So if someone went through the fancy graphical installer, they will be dropped in a system with a bunch of Nix they've never seen before, and a "Good luck!" card
<Jason_Grossman>
tilpner: Exactly.
<sphalerite>
siraben: because debian's installer is actually kind of terrible? :p
<siraben>
sphalerite: Really? I find it very intuitive
cryptomonoid has quit [Ping timeout: 244 seconds]
<Jason_Grossman>
I found installing NixOS really difficult at first BUT learning to do it was the same process as learning what I'd need to use it later.
<siraben>
Just click buttons and so on
<siraben>
Yeah true, but many users aren't willing to learn to use the console just to install an OS
<sphalerite>
iirc (I haven't installed anything other than nixos in quite a while now) fedora's is a lot nicer
<sphalerite>
siraben: yes, but nixos isn't ready for those users in general yet
<siraben>
On the other end we have proprietary installers like macOS and Windows
<Jason_Grossman>
siraben: If you don't want to use the console, you're better off being kept well away from Nix, by force if necessary.
<siraben>
macOS is pretty simple, Windows is a privacy nightmare
<siraben>
Jason_Grossman: Haha fortunately I can handle the console
<Jason_Grossman>
Right!
<Jason_Grossman>
I was replyding to "many users aren't willing..."
<siraben>
Yeah.
<Jason_Grossman>
(I meant "replying" but actually I prefer the new spelling I just invented.)
crmlt has quit [Quit: Lost terminal]
<sphalerite>
siraben: it's still very much a power user OS. It's also great for non-power users who have a power user to maintain it for them. But yeah
<siraben>
Is Ubuntu very "popular" because of the non-free software?
<siraben>
Sad
<tilpner>
There is also sporadic discussion about a graphical system configuration manager. If that was mature (enough to be tested), a graphical installer would make much more sense
<siraben>
sphalerite: Yeah over time I found that I want more control over my computer
<siraben>
It's funny that the ISO provides you with KDE but not a graphical installer
<Jason_Grossman>
sphalerite: Do you happen to know how to configure zram on NixOS to run but NOT to make swap space? I know that's not your use case.
<sphalerite>
siraben: and another thing I think is that there's just not much commercial interest in getting nixos to that point. There are plenty of people making money running nixos on their servers, and they're obviously interested in keeping that running smoothly and well
<tilpner>
siraben - Enabling KDE is much simpler than maintaining a good graphical installer
<siraben>
Yes.
<sphalerite>
Jason_Grossman: I'd say just make a systemd service that creates it, unless you need it available really early on during boot
<sphalerite>
Jason_Grossman: but why would you want to use it for something other than swap?
<sphalerite>
if it's for a temporary filesystem, chances are you're better off using zram swap + tmpfs
<Jason_Grossman>
sphalerite: Because I have too much memory! It's being wasted.
ambro718 has joined #nixos
<sphalerite>
since that can completely bypass the compression when memory pressure is low enough
<Jason_Grossman>
sphalerite: Ah, yes, zram swap + tmpfs is a good idea. Thanks.
<sphalerite>
your memory being wasted is quite unlikely
<ambro718>
How would one inject a patch into clang derivation and get a modified llvmPackages?
<sphalerite>
Jason_Grossman: how much does the `free` command show as "Free" just now?
<Jason_Grossman>
sphalerite: Currently, almost all of it is completely wasted. Easy to see using top etc.
<Jason_Grossman>
sphalerite: `free` shows 2/3 of it as free.
<sphalerite>
how much do you have?
<Jason_Grossman>
sphalerite: It's not important - I don't have a really good use for a ram disk - but it would be nice to have the option of using it as disk.
<Jason_Grossman>
I have 16 GB, which is the amount I needed when this computer was running MacOS!
<Jason_Grossman>
NixOS is so much more frugal that I don't need it all any more.
<sphalerite>
Anyway, chances are that when a lot of memory is free, either A) you only started the system recently, B) you recently ran something that consumed a lot of RAM, C) (unlikely) you really don't use a lot of RAM
<Jason_Grossman>
It's C).
<sphalerite>
having headroom is really valuable for performance though because of disk caches
<Jason_Grossman>
You might say that something that's true can't be unlikely - interesing philosophical topic.
<siraben>
Jason_Grossman: You're running NixOS on a Mac?
<sphalerite>
I bet that if you removed half the RAM your system wouldn't perform nearly as well.
<siraben>
What did you do to get wifi working?
<Jason_Grossman>
sphalerite: Ah, yes. One thing I should really do is configure ZFS to use more of my memory. That's too much trouble though.
<siraben>
Does NixOS have ZFS support?
<sphalerite>
yes
<siraben>
wow
<Jason_Grossman>
siraben: All I had to do was enable unfree programs. It might depend on your model though. Most Macs work just fine, but I doubt all of them have been tested.
* sphalerite
runs nixos on a mac with zfs :p
<siraben>
Jason_Grossman: What is your model?
<siraben>
sphalerite: I hear good things about ZFS
<Jason_Grossman>
siraben: Oh yes. Very very good ZFS support. Much easier to use ZFS on NixOS than on any other linux I've tried.
<sphalerite>
but yeah the BCM4331 is a nasty monster.
<init_6>
siraben: the same as any other distro
<Jason_Grossman>
siraben: 2012 MBP.
<siraben>
Jason_Grossman: Same here, 2012 13 inch
<Jason_Grossman>
siraben: Yes - I switched away from MacOS mainly to have stable ZFS.
<siraben>
Meanwhile I have a family 2013 retina model with macOS + Ubuntu + Windows
<siraben>
I'm scared to touch the partitions further
<Jason_Grossman>
init_6: ZFS works just the same as on any other distro EXCEPT for kernel updates. For that, I've found NixOS much better than other linux distros.
<ambro718>
"complex" features are usually either very easy to use on NixOS or a terrible PITA - depening on whether someone did all the work writing packages and nixos modules, or you have to do it yourself
<siraben>
Jason_Grossman: Surprisingly the upgrade to APFS didn't break my triple boot
<Jason_Grossman>
siraben: Up to you. If you think you're going to love NixOS then you should overwrite a partition with it, IMO.
<siraben>
So I'm trying to dual boot with Debian
<sphalerite>
Jason_Grossman: I have 16GB of RAM in my big laptop, running zfs with no config changes, and zfs uses RAM generously. Have you changed the config at all to make it more conservative?
<siraben>
ZFS + Linux is a thing? I have been brainwashed by the debian people
<Jason_Grossman>
sphalerite: Oh, interesting. No I haven't. How strange.
<siraben>
I thought only freeBSD people had ZFS
<Jason_Grossman>
siraben: Yes ZFS + Linux is fine. The only problem is keeping it updated, and NixOS is good at that.
<Jason_Grossman>
siraben: No, many linux distros have it.
<sphalerite>
siraben: /j #zfsonlinux
<sphalerite>
siraben: thing with zfs is the licencing issues
<siraben>
Oh that's why
<siraben>
Is Emacs documentation "non-free" in NixOS as in debian?
<sphalerite>
it *may* be illegal to redistribute builds of zfs-on-linux
<Jason_Grossman>
Linux distros' lawyers mostly (although not entirely) say that they can't make ZFS one of the defaults, for licensing reasons, but there's no problem at all in installing it.
<siraben>
Ok
<siraben>
ext4 for nw
<siraben>
now
<siraben>
But ZFS is superior, right?
<Jason_Grossman>
sphalerite: I'm pretty sure nobody thinks it's illegal UNLESS you bundle the linux and ZFS parts in the wrong way. Distributing them separately is fine, and packaging ZFS for linux is also fine.
<Jason_Grossman>
siraben: Yes.
<sphalerite>
siraben: it has many features that ext4 doesn't. But there are still situations where you would want to use ext4
<sphalerite>
for instance if you don't have enough memory
<siraben>
4 GB ram?
<sphalerite>
from what I've heard a zfs-based system is unusable on 2GB of RAM
<Jason_Grossman>
siraben: 8 GB is plenty. I THINK 4 GB should be fine but YMMV.
<siraben>
+ 4 GB swap
<siraben>
Jason_Grossman: How is battery life on that thing? Do you have hibernation?
<siraben>
Oh by the way, can I replace KDE with GNOME?
<sphalerite>
ye
<Jason_Grossman>
sphalerite: I'm really interested to know why our ZFS behaviour is so different. Can't think of any way to find out though.
<sophiag>
ugh, okay i finally have to gc. i'd prefer to prune generations and call nix-store --gc, though. the problem is i think having upgraded nix before rolling back left me with per-user profiles, which has affected the way i see generations. nix-env --list-generations is very different from what i see in grub, which matches my profiles
<Jason_Grossman>
siraben: Yes, that's all fine. (Didn't used to be, but it's great with 18.03 and unstable.)
<Jason_Grossman>
siraben: Yes, using gnome is pretty easy.
<siraben>
Jason_Grossman: Can you share a configuration script that does that?
<sphalerite>
Jason_Grossman: I'm guessing mostly because nobody actually enforces GPL compliance for this kind of thing
<sophiag>
ah, okay so i'm only seeing user profiles in generations. hopefully i can just switch to root and prune as needed
<sphalerite>
Jason_Grossman: because AFAIU it is a GPL violation to link the CDDL code against it and then redistribute that
<Jason_Grossman>
siraben: Sure. Link to a pastebin please.
<sphalerite>
(linking it yourself and not redistributing is fine)
<Jason_Grossman>
sphalerite: Well, there's a lot you can read about this, and I believe it supports what I've said, but whatever.
<sphalerite>
siraben: just services.xserver.desktopManager.gnome3.enable = true; should do it
<siraben>
Don't I have to install gnome3?
<siraben>
Or will it do it automatically?
<Jason_Grossman>
sphalerite: Oh, sorry, I should have read ahead. We're agreeing. The problem is linking.
<sphalerite>
siraben: that installs gnome :)
<Jason_Grossman>
siraben: The whole point is that installing and configuring are the same thing.
<siraben>
sphalerite: Wow!
<siraben>
Jason_Grossman: Wow!
<Jason_Grossman>
siraben: Yes, you just grokked Nix!
<siraben>
Why is it called a "functional" package manager?
<siraben>
Is it related to functional programming?
<sphalerite>
Jason_Grossman: no, the problem is redistributing binaries covered both by the GPL and the CDDL. Linking it and keeping the results to yourself is also fine
<sphalerite>
siraben: yes. nix is a functional language
<Jason_Grossman>
sphalerite: See above.
<siraben>
sphalerite: But is it pure?
<sphalerite>
Jason_Grossman: linking isn't the problem though ;)
* siraben
thinks of Haskell
<Jason_Grossman>
siraben: No.
<sphalerite>
siraben: mostly :p
<Jason_Grossman>
siraben: Well Haskell isn't pure either, is it?
<sophiag>
^ that
<sophiag>
:D
<siraben>
It's strictly pure
<siraben>
You use monads to wrap up "impure" interfaces
<siraben>
Yes you could make it impure if you want
<siraben>
The IO monad
<sphalerite>
yes, but exceptions and unsafePerformIO make the language not strictly pure
<sphalerite>
even though people usually behave well so their code is pure
<sophiag>
i'm halfway trolling, but only by not explaining myself
<siraben>
upenn teaches functional programming to undergrads?
<sophiag>
IO is actually not a monad
<Jason_Grossman>
I'm not complaining about Haskell, but I don't think the "pure"/"impure" distinction is helpful if you take it literally.
<sphalerite>
siraben: so does my uni
<sophiag>
Jason_Grossman: same
<sphalerite>
damn it's not really my uni anymore but my alma mater. Holy crap.
<siraben>
sphalerite: Which uni?
<sphalerite>
University of Strathclyde
<sphalerite>
a kind of poor introduction to Haskell in 2nd year, a good introduction to Haskell in 3rd year, and a mind-bending class on Agda (with Conor McBride) in 4th year
<Jason_Grossman>
sphalerite: That's interesting. I thought it was mainly the older universities that taught Haskell. Maybe it's because Strathclyde is in (in? near?) Glasgow.
<siraben>
Can't wait to learn CS in uni, it absolutely sucks in high school
<srhb>
Stratchclyde has Conor McBride...
<srhb>
Or had, at least.
<Jason_Grossman>
:-)
<sphalerite>
srhb: still has
<sphalerite>
as mentioned, I had him teaching me Agda
<srhb>
Nice :)
<siraben>
ooo dependent types
<srhb>
UoCopenhagen used to have functional programming as the very first intro to programming course
<srhb>
Standard ML.
<siraben>
I think functional programming is much easier to learn than imperative
<sophiag>
sphalerite: i may have one of those classes saved on youtube
<siraben>
sphalerite: How do I do it post-installation?
<sphalerite>
siraben: put it in your configuration.nix and nixos-rebuild switch
alex`` has joined #nixos
<siraben>
Oh it's just like Guix
<srhb>
:-p
<sphalerite>
yes, guix took a lot of inspiration from nix :D
<siraben>
I haven't used rollbacks before, what's a use case?
<sphalerite>
I'd recommend sticking with deja dup until you want to switch to zfs personally. But I'm biased towards zfs because it's awesome
<siraben>
Ok finishing the Debian install
<siraben>
Hoping that this dual boot works
<siraben>
And how do I expand the partition if I decide to delete debian?
<sphalerite>
even if it doesn't work ootb you should be able to get it to work
<sphalerite>
boot into installer, rejigger partitions, resize2fs
<sphalerite>
assuming you want to expand the partition forwards.
<sphalerite>
Moving partitions is more of a pain.
<siraben>
Nix is great
<sophiag>
siraben: tbh popping back in here and watchng you being excited about installing is giving me hope
<srhb>
sophiag: Just wait for the new laptop... :-P
<sophiag>
haha. it's not just that, tho
<sophiag>
idk, now i'm going through and trying to get all my versions of ocaml packages aligned :p
<srhb>
:)
<siraben>
sophiag: Oh I've passed that installation process
<siraben>
Currently trying a double boot in Debian
<siraben>
In a VM
<coot>
Hello, I am getting this error while building a package. When I do nix-shell to the environment `cabal new-build` builds it just fine. How I can debug why `nix-build` is not findiing packages? Thanks! https://www.irccloud.com/pastebin/sJkLcr2p/
<sophiag>
there's a decent chance i may have to just run nix on debian if this really screws up my work
<sophiag>
there are shockingly few ocaml devs using nix :(
<clefru>
isn't good old startx not supported under Nix? The Xorg log is full of "Warning, couldn't open module" looking like that the module search path's are not correctly set
<sophiag>
so it's basically a commitment to maintain a lot of packages myself
<sphalerite>
clefru: I've heard various things about it. Some people use it successfully iirc but I'm not sure who
<srhb>
I'd say "no, it's not supported (by default)"
<srhb>
There are hacks, but they are a bit ugh.
<sophiag>
omg...i'm being told my gpg key doesn't exist
<clefru>
sphalerite: probably they have this option set to generate /etc/X11/xorg.conf
<clefru>
cause I don't..
<clefru>
I am just trying to run more than one X session at the same time, and slim isn't really good for that.
<clefru>
I'd be ideal to spawn an X session on demand like we do with agetty when switching to a console vt7/vt8/vt9
<sphalerite>
according to MichaelRaskin who doesn't seem to be here right now, startx doesn't work on nixos and it's all systemd's fault
pluplog has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
<sphalerite>
FWIW I use sddm and create additional sessions by telling sddm to
<sophiag>
i know it's impossible pruning old generations and calling nix-store --gc could delete my gpg key, but um...any ideas how to find it?
<srhb>
sophiag: gpg --list-secret-keys doesn't show it?
<sphalerite>
clefru: usually you'd use your desktop's "switch user" thing to get it, but I use i3 which doesn't have such a thing. So I have a key binding to run the command I put above
<sophiag>
woah, weird. gpg has it
<srhb>
pass must be very confused indede.
<sphalerite>
is 16.09 old enough that gpg2 wasn't the default maybe?
qualiaqq has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<clefru>
sphalerite: thanks that's very useful (xmonad here)
<sphalerite>
And it confuses the old gpg because using 18.03 made gpg2 migrate to the new keyring format?
<srhb>
Sounds like a good hypothesis
<sophiag>
sphalerite: i do get that warning constantly
<sophiag>
so weird it switched now, though
<sphalerite>
clefru: you can also use dm-tool (from lightdm) for it, although then you need to have lightdm on your system
<sophiag>
ah ok. so i have both gpg and gpg2 installed...
<sphalerite>
pass is probably using gpg
<sophiag>
oh, pass just uses an environment variable for the key
<sophiag>
there's also gpg options
<clefru>
sphalerite: perfect! I got multi session X running using your dbus-send trick!
<clefru>
sphalerite++
<{^_^}>
sphalerite's karma got increased to 9
ixxie has joined #nixos
<clefru>
Thank you so much :)
<sphalerite>
\o/
<clefru>
the gnome3 session doesn't spawn from sddm.. but I'll probably debug this myself.
<clefru>
hitting return on the password changes the cursor and the user got gnome3 processes running, but nothing on the desktop
<{^_^}>
#43797 (by sjau, open): ZFS root pool import in initrd slow - 2 min 25 secs
__monty__ has joined #nixos
graphene has quit [Remote host closed the connection]
<clefru>
hyper_ch: I have noticed that my pool sometimes takes extremely long to import. I don't have a good root cause. I always attributed it to lots of write pressure before reboot hitting the ZIL, and zpool import settling the ZIL. but I didn't verify the hypothesis
<hyper_ch>
clefru: manually importing the pool from the grub shell takes 2-3 secds
graphene has joined #nixos
<sophiag>
sphalerite: were you referring to kbx vs. gpg.lock?
<clefru>
hyper_ch: how about setting boot.debug1devices .. type random stuff in the shell for a few sec and then hit "exit" to resume normal boot?
<clefru>
hyper_ch: that could point towards this early entropy stuff mentioned... it seems plausible to me that the kernel collects entry from input devices.
<clefru>
*entry=entropy
<hyper_ch>
clefru: if it was an entropy issue then wouldn't manual pool import not work either?
<clefru>
hyper_ch: you have to type on the keyboard for that.. that could be enough of entropy.. not sure to be honest on how the entropy pool works
<siraben>
Jason_Grossman: Which package provides the wireless firmware for Macbooks?
<clefru>
but yeah, I noticed my imports under 4.16/17 being slow
<clefru>
hyper_ch: you are using encryption don't you? so you type your password, right?
<siraben>
sphalerite: Wow you were right about that line changing everything, GNOME is installed and working
Jason_Grossman has quit [Ping timeout: 248 seconds]
<sphalerite>
siraben: I'm not even sure about what I was referring to
xinming_ has joined #nixos
<sphalerite>
sophiag: ^
<sphalerite>
sorry wrong hl :p
<siraben>
sphalerite: gnome3 installation
<hyper_ch>
clefru: yes zpool import tankSubi ; zfs load-key -a
<sphalerite>
siraben: yeah I got that, glad to hear it :)
<siraben>
Ok after seeing NixOS work like this I'm not going back to Debian!
<siraben>
Going to migrate right after my backup finishes.
<sophiag>
still confused about how to fix this gpg issue. i have two private keys and revoc certs (vaguely remember why). one revoc cert matches the gpg-id in pass
<sophiag>
i've never had to look at the actual keyring before
<sophiag>
gpg and gpg2 both have the same key listed...
<ambro718>
How to temporarily make a derivation use a specific path as one of its build inputs? Tried this: mypackage = pkgs.callPackage { ... mything = /home/user/mything; }; where /home/user/mything is a symlink pointing to some store path (produced by nix-build -o)
marusich has quit [Quit: Leaving]
<sphalerite>
ambro718: it depends on how mything is used, I think you probably have to put in the expression that resulted in mything
<ambro718>
sphalerite: it is used such that normally a derivation is passed, according to the common patterns in nixpkgs. Is there no way to set it to an existing build output?
<sphalerite>
ambro718: not in a completely general way. It depends on how it's used
jD91mZM2 has joined #nixos
johanot has quit [Remote host closed the connection]
<sphalerite>
usually the result of applying mkDerivation contains a bunch of attrs beyond the output path
ericsagnes has joined #nixos
<sphalerite>
so you can't just replace the whole set with just a path that doens't have any of this extra info
<clefru>
sphalerite: do you use gnome3 with sddm?
<sphalerite>
no, I use i3 with sddm
<clefru>
ok, cause the nixos xsession does not work when called from sddm.
<clefru>
xsession +script
<sphalerite>
weird. Anything relevant in the journal?
siraben has quit [Quit: ERC (IRC client for Emacs 26.1)]
<sophiag>
ugh, i really need to sleep and i just want pass to work :/
<sophiag>
very confused as to what's going on with it
* tilpner
uses pass on NixOS, but without revocations
<{^_^}>
[nixpkgs] @FRidh pushed to staging « parity-ui: fix after merge »: https://git.io/fNlkQ
<sophiag>
it doesn't appear to have been revoked
jperras has joined #nixos
<sophiag>
i think it's related to a change in my NIX_PATH
<sophiag>
trying to launch nix-shell gives me:
<sophiag>
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs' does not exist, ignoring
<sophiag>
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
<srhb>
sophiag: sudo nix-channel --list ?
<{^_^}>
[nixpkgs] @FRidh pushed to staging-next « parity-ui: fix after merge »: https://git.io/fNlkA
<clefru>
sphalerite: looks like the xsession script is somehow broken when invoked from sddm. the same script works when called from slim. the top of the script talks about different calling conventions. If I hack together a custom .xsession then gnome3 launches.. so it's certainly the script not doing it's thing correctly..
<tilpner>
sophiag - Did you recently change NIX_PATH? From what value, to what other value? Did you make sure it takes effect by logging in again?
<sophiag>
srhb: it's as it was yesterday. no channels i user. only in root
<srhb>
sophiag: and does root have one called nixos?
<sphalerite>
clefru: nice…
<sophiag>
yes
<sophiag>
i think the problem is related to switching profiles so i could delete generations
<srhb>
sophiag: Does it actually have contents?
<sphalerite>
sophiag: this might be related to the db hackery that went on yesterday
<sphalerite>
sophiag: does sudo nix-channel --update fix it?
jperras has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @vbgl opened pull request #43963 → ocamlPackages.labltk: init at 8.06 → https://git.io/fNlkp
Jason_Grossman has joined #nixos
cryptomonoid has joined #nixos
<sophiag>
sphalerite: i did use pass since then tho
crmlt has joined #nixos
thc202 has joined #nixos
<sphalerite>
sophiag: yeah I mean for the nixpkgs not being found thing
<sophiag>
let me try to update. i think srhb is on to something
<sophiag>
ugh, updating gets rid of that error but pass still can't find my key
Lisanna has quit [Remote host closed the connection]
<sophiag>
even if ran from inside nix-shell, which is what i was trying
<sophiag>
(although also was halted with dev work due to that msg)
crmlt has quit [Ping timeout: 240 seconds]
<sophiag>
i really think it's a profile issue
<sophiag>
at the same time a bunch of changes from my rebuild went into effect. chrome crashed because it upgraded. and i seem to be in lightdm based on the cursor
graphene has quit [Remote host closed the connection]
<tilpner>
worldofpeace++
<{^_^}>
worldofpeace's karma got increased to 2
graphene has joined #nixos
graphene has quit [Remote host closed the connection]
migy has quit [Quit: migy]
migy has joined #nixos
graphene has joined #nixos
<manveru>
wow, nice :D
<manveru>
worldofpeace++
<{^_^}>
worldofpeace's karma got increased to 3
<worldofpeace>
jtojnar++
<{^_^}>
jtojnar's karma got increased to 3
<nlyy>
this is the error ""error: cannot auto-call a function that has an argument without a default value ('stdenv')
<worldofpeace>
cause he's been helping me a lot with it
<manveru>
nyanloutre[m]: ah :)
<manveru>
uhm
<nlyy>
nice job worldofpeace++
<manveru>
wrong one
<infinisil>
,callPackage nlyy
<{^_^}>
nlyy: If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<worldofpeace>
infinisil: was just trying to remember the bot command
onon has left #nixos ["†"]
<infinisil>
,callPackage = If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<{^_^}>
callPackage redefined, was defined as: If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<infinisil>
:)
<worldofpeace>
that looks less abstract :P
<nlyy>
ah ty infinisil
<{^_^}>
[nixpkgs] @fuzzy-id opened pull request #43968 → mfcl8690cdw: init lpdr and cupswrapper at 1.0.2/1.0.3 → https://git.io/fNlmG
<nlyy>
how do i remember that lol
<worldofpeace>
my zsh autocomplete history does that one for me
<nlyy>
worldofpeace what's the diff between fetchFromGithub and fetchurl
<worldofpeace>
nlyy: it's only for fetching from repos from github
<nlyy>
if there is a commit then?
init_6 has quit [Ping timeout: 248 seconds]
<__monty__>
nlyy: fetchUrl is more general.
<worldofpeace>
you can specify the commit as the 'rev', in what i sent you I'm using the version tag as the rev
<nlyy>
ah
<nlyy>
Nice
ericsagnes has joined #nixos
blankhart has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
aarvar has joined #nixos
knupfer has joined #nixos
dbe1 has quit [Ping timeout: 245 seconds]
sigmundv_ has joined #nixos
<Akii>
Ohai :) I'm currently trying to "install" a yarn package on nixos. The package itself, when built with `yarn build` would spit out a SPA so no node application or the like. While googling I found yarn2nix which I got to work in that it downloads a bunch of dependencies into node_module but other than that it seems to not do much
<d1rewolf>
can someone remind me of the command to get a nix-shell with pkgs included to explore/eval?
<Akii>
my current plan is to 1) fetch sources from git, 2) build and then 3) have nginx point to the built sources to serve the application
<manveru>
d1rewolf: nix-shell -p ?
<d1rewolf>
manveru, sorry, not nix-shell. nix-repl
<manveru>
nix repl '<nixpkgs>'
<manveru>
i'm just writing a tutorial for it :D
<d1rewolf>
that's it. couldn't remember the '<nixpkgs>' part
<manveru>
also in the repl you can use :l <nixpkgs> to load them
<d1rewolf>
manveru, great! If you need a proof reader, let me know ;-)
<{^_^}>
[nixpkgs] @vcunat pushed commit from @matthewbauer to release-18.03 « Merge #43538: fetchpatch: quote excludes »: https://git.io/fNlYe
<manveru>
i shall :)
<manveru>
should be done soonish
<manveru>
i still think nix should be called graph manager instead of package manager...
<d1rewolf>
is there a reason nix-repl requires root privileges?
<manveru>
uh...
<tilpner>
,nix-repl
<{^_^}>
To use nix-repl with Nix 2.0, either use the new `nix repl` or `NIX_REMOTE=daemon nix-repl`. Just using `nix-repl` gives an error because it is linked to Nix 1.x which requires NIX-REMOTE to be set correctly, while Nix 2.0 doesn't (and unfortunately it wasn't kept for backwards compatibility)
<Akii>
hmm maybe I've to use node2nix
<manveru>
tilpner++
<{^_^}>
tilpner's karma got increased to 7
<manveru>
Akii: did you write a default.nix for yarn2nix?
<manveru>
and you'll need a package.json if you want an executable as result
<d1rewolf>
interesting. when I do nix-repl as non-root, i get "error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied". if I do sudo nix-repl, I get a repl prompt
<manveru>
uh, also, which yarn2nix do you use?
siraben has joined #nixos
<manveru>
d1rewolf: is that `nix-repl` or `nix repl`?
<Akii>
manveru yap got all that
<siraben>
Hi all, why am I getting "name collision in input Nix expressions"?
<manveru>
add a bin entry to your package.json to get the executable in the result
<manveru>
nobody reads the small print ;)
<Akii>
thanks, I'll try that
<siraben>
What is the cause of "name collision in input Nix expressions" when I run "nix-env -i ..."?
<infinisil>
,nix-repl d1rewolf
<{^_^}>
d1rewolf: To use nix-repl with Nix 2.0, either use the new `nix repl` or `NIX_REMOTE=daemon nix-repl`. Just using `nix-repl` gives an error because it is linked to Nix 1.x which requires NIX-REMOTE to be set correctly, while Nix 2.0 doesn't (and unfortunately it wasn't kept for backwards compatibility)
<infinisil>
Not sure if you missed that ^^
<manveru>
some people ignore the bot ;)
<infinisil>
Ah right
<manveru>
siraben: you already have a package installed that has, for example, an executable with the same name
<siraben>
manveru: What could that be caused by?
<siraben>
I attempted to switch to nixos-unstable, not sure
<manveru>
try looking in `nix-env -q`
<manveru>
can't tell without more of your error message :)
<manveru>
usually it's when some package name changed and you used imperative package management
<siraben>
manveru: I just see the packages I installed
<siraben>
"imperative package management"?
<manveru>
running nix-env -i for everything you install
<manveru>
instead of listing the derivations in a file and letting nix do it
<siraben>
warning: name collision in input Nix expressions, skipping '/home/siraben/.nix-defexpr/channels_root/nixos'
<manveru>
ah, that's not an error
<siraben>
manveru: I do use nix-env -i for packages
<manveru>
we should really have a FAQ for that warning...
<siraben>
Yeah I tried searching, nothing came up.
<siraben>
So I should update my configuration.nix every time I install a package?
<manveru>
exactly
<manveru>
that's how you install packages usually :)
<siraben>
So in my config file I put extraUsers.siraben { ... programs.zsh.enable = true; }; ?
<Jason_Grossman>
siraben: Yes. There's an alternative way, which is imperative, but I wouldn't recommend it.
<Jason_Grossman>
siraben: Yes.
<siraben>
Jason_Grossman: What is the "imperative" way?
<Jason_Grossman>
Wait, no.
<Jason_Grossman>
programs.zsh.enable is the whole thing; it's not in extraUsers.
robstrr has joined #nixos
<siraben>
So I put that in configuration.cnix?
<siraben>
.nix*
<Jason_Grossman>
Yes.
<siraben>
programs.zsh.enable = true;
<Jason_Grossman>
And then - I haven't tried this, but I think you also need,
<Jason_Grossman>
users.siraben.shell = pkgs.zsh;
<tilpner>
users.users.siraben.shell = pkgs.zsh;
<worldofpeace>
^
<Jason_Grossman>
Ah, yes.
<siraben>
How do I even organize my configuration.nix? It's confusing now!
<robstrr>
Hey, Is it possible to _directly_ generate a nixos virtual machine image based on a specific sha ? I know it is possible to deploy with nixops to a vm, but iirc there are just two prebuild vm's
<siraben>
d1rewolf: Wow can't imagine what I'd have to do in debian to make it the same.... "sudo make install"!
<d1rewolf>
siraben, yeah, nixos makes it very easy
<d1rewolf>
guys, I note when I launch vim on nixos, the default setting is to go into visual mode when selecting text with the mouse instead of letting me copy/paste to the X clipboard
<d1rewolf>
do you happen to know what reverses this setting?
<witchof0x20>
Would anyone happen to know how the header field for luks devices works? (https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/luksroot.nix#L285) I have a secondary LUKS drive with a detached head. The header image is stored on the root partition as /root/header.img. I've tried setting it to `/root/header.img` or `/mnt-root/root/header.img` but neither seem to work (I get "waiting 10
<witchof0x20>
seconds for header [path] to appear.... failure")
siraben has joined #nixos
<siraben>
Sorry timed out
<siraben>
Hmm the wireless is still a little buggy
graphene has quit [Remote host closed the connection]
<siraben>
d1rewolf: And how do you configure brightness and volume controls?
graphene has joined #nixos
<d1rewolf>
siraben, I use i3, so I may keys via that
<siraben>
Anyone else get wifi to work reliably on macbook pro?
<Enzime>
siraben: which MBP do you use?
<siraben>
mid 2012
<d1rewolf>
what's the appropriate configuration.nix setting to specify a user's shell as something other than bash?
<siraben>
Is there a graphical interface for nix or do I just need to use the shell?
<{^_^}>
[nixpkgs] @FRidh opened pull request #43969 → Python packages: major updates → https://git.io/fNl3e
<d1rewolf>
ben: that's it. thanks. I keep forgetting to look at nixos.org/nixos/options.html. is there a similarly easy way to do this on the command line (explore options)?
<ben>
i don't know :(
<Enzime>
siraben: what wireless card do you have in your MBP?
<d1rewolf>
how can one explore things like users.users via nix-repl?
<tilpner>
siraben - Have you tried the module I linked earlier?
<siraben>
Hey I think this version of deja dup is old, it doesn't support encrypted backups
<d1rewolf>
I'm betting you have to :l something, but not sure what
Neo-- has quit [Ping timeout: 256 seconds]
<d1rewolf>
Enzime, I wonder how users.extraUsers differs from users.users.<name?>.shell
<siraben>
How do I set the channel to unstable in configuration.nix ?
<siraben>
I did it with a shell command,
<siraben>
Set the channel to unstable I mean
<tilpner>
alexteves - The image can be installed with your system, but it can't be imported at the same time
<tilpner>
alexteves - You can however create a service that imports it, after the daemon is online
<siraben>
How do I check what non-free packages are installed?
Akii has joined #nixos
<selfsymmetric-mu>
siraben: Weirdly enough I don't think you can set your channel in your configuration.nix. I've always found that a bit odd. I mean that seems like something that you'd want to define, instead of relying on some state outside of your configuration. :/
<siraben>
Wow ok that's weird.
<Jason_Grossman>
You can tell configuration.nix to download a specific tarball. That has a similar effect. (And the tarball is cached - it doesn't dl it again every time you rebuild.)
<Jason_Grossman>
It doesn't seem to be the standard way to do things though.
<Jason_Grossman>
The standard way is to set your channel using sudo nix-channel.
<Jason_Grossman>
selfsymmetric-mu: I'm not positive, but maybe the idea is that you have to have some channel defined before configuration.nix can be interpreted. So setting the channel inside configuration.nix would mean changing the channel - and that would be a dangerous thing to do in the middle of configuration time.
<d1rewolf>
for those of you using i3, I've installed font-awesome-ttf, but i3blocks still doesn't show the icons on nix for some reason. Any ideas? for that matter, vim doesn't render them either, but that may be expected
<d1rewolf>
jD91mZM2, thanks. trying that now. if you place it in fonts.fonts, do you still need to install it in systemPackages or is that redundant?
Guest81635 has joined #nixos
Guest81635 has left #nixos [#nixos]
Guest81635 has joined #nixos
<jD91mZM2>
d1rewolf: You don't :)
tenten8401 has joined #nixos
freeman42x]NixOS has joined #nixos
hakujin has quit [Ping timeout: 245 seconds]
hakujin has joined #nixos
justbeingglad has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
<d1rewolf>
jD91mZM2, that fixed it. great...thanks!
nlyy has joined #nixos
<nlyy>
is there any way to make nix-prefetch-url faster?
<d1rewolf>
guys, is it safe to use the path /run/current-system/sw/bin in scripts?
<d1rewolf>
will that always stay the same?
<manveru>
d1rewolf: what kind of script? :)
<manveru>
hum
magnus1 has quit [Quit: WeeChat 2.1]
hakujin has joined #nixos
<manveru>
seems like fetchTarball fails if there's no `tar` in $PATH
<samueldr>
the path will be the current system, though if your script is a long-running process, that system may not be the one the script was built for
<samueldr>
(and it's probably an anti-pattern to rely on it inside nixpkgs)
<d1rewolf>
manveru, for example, a systemd service file expects a path to an executable
selfsymmetric-mu has quit [Ping timeout: 276 seconds]
<d1rewolf>
manveru, so can I use /run/current-system/sw/bin/something safely in that case?
<manveru>
in that case your systemd service should depend on that package
justbeingglad has left #nixos [#nixos]
<manveru>
and you can simply do "${nameofpackage}/bin/nameofbinary" in your service
<manveru>
so you never have to worry whether you installed it or not :)
<d1rewolf>
manveru, I'm not generating the service with nix
<manveru>
well, then i guess that's the best you can get
hakujin has quit [Ping timeout: 256 seconds]
<d1rewolf>
another example...alacritty's config...i'm using its login setting and specifying a path to zsh. can I assume /run/current-system/sw/bin/zsh will always be accurate?
<d1rewolf>
manveru, I guess I'm asking...will that path always be set by nixos? the /run/current-system/sw/bin?
<d1rewolf>
does nixos have any features for creating containerized forks of the current running os? let's say I'm working on a development project and want to have a sort of chroot that I can install packages to, etc, without effecting my main install?
<Akii>
noob question: within nixos, where do I put "persistent" files? As an example: I've a service that needs an sqlite file.
<Akii>
I created a system user and set its home to /var/lib/my-service
derped has joined #nixos
d1rewolf_ has joined #nixos
magnus1 has joined #nixos
bluesfreak72 has joined #nixos
Neo-- has joined #nixos
<bluesfreak72>
Hi there. I'm relatively new to nixos. I'm trying to switch from the plasma5 desktop to the i3 window manager. Here is a pastebin of my configuration.nix: http://ix.io/1i5S . Can anybody spot what I'm doing wrong?
hakujin has joined #nixos
<tilpner>
bluesfreak72 - What is the symptom/error?
<tilpner>
It seems you may be trying to run X as root, which is not a good idea in general
<{^_^}>
[nixpkgs] @volth reopened pull request #26839 → fetchMavenArtifact: prevent leaking nix hash to jar name → https://git.io/vQObr
<bluesfreak72>
i3 doesn't show up in the drop-down menu in sddm and with the config file as is, it still loads plasma5.
<tilpner>
You ran "sudo nixos-rebuild switch", and it completed without errors?
aarvar has quit [Ping timeout: 276 seconds]
<bluesfreak72>
*FACEPALM* I guess that would help. I forgot that command. It's been a while sine I played with it.
<tilpner>
Heh, yes. Your configuration is not read automatically
<tilpner>
(By default. I guess autoUpgrade would)
hakujin has quit [Ping timeout: 260 seconds]
ersran9 has joined #nixos
<{^_^}>
[nixpkgs] @jensbin opened pull request #43975 → ldmtool: init at 0.2.4 → https://git.io/fNlnj
d1rewolf_ has quit [Remote host closed the connection]
<sphalerite>
Akii: /var/lib is good
<Akii>
sphalerite cool, thanks!
justbeingglad has joined #nixos
hxrts_ has quit [Ping timeout: 276 seconds]
igo95862 has quit [Quit: igo95862]
justbeingglad has quit [Quit: Leaving.]
GOrshkOFF1 has joined #nixos
<tilpner>
Did I do something wrong, or does nixos-generate-config fail to populate boot.initrd.mdadmConf?
<tenten8401>
anyone know if there's a way I can enable the nct6775 kernel module for CPU temperature readouts with Ryzen?
<tenten8401>
would it be as simple as adding it to boot.kernelModules?
<tenten8401>
I can't seem to get a temperature reading out of it unless I run sensors-detect from lm_sensors though
<sphalerite>
tenten8401: if you can load it using modprobe nct6775, yes
<tenten8401>
sphalerite: I can modprobe it but I don't actually get any option to read from it unless I `sudo sensors-detect` every time
<sphalerite>
so modprobing it doesn't make the sensor available?
<sphalerite>
hm
d1rewolf_ has joined #nixos
<tenten8401>
actually... now it doesn't seem to be working at all with sensors-detect
<d1rewolf_>
what's the purpose of the result symlink left behind by nixos-rebuild?
<sphalerite>
d1rewolf_: it should only be left behind by nixos-rebuild build
fresheyeball has quit [Quit: WeeChat 2.0]
<sphalerite>
d1rewolf_: since nixos-rebuild build doesn't update the system profile, it leaves the result symlink so that there's a GC root referencing the newly built system generation
<sphalerite>
nixos-rebuild switch and boot shouldn't create it
<YegorTimoshenko[>
is there a way to subscribe to nixpkgs-channels advances? push would be ideal, but rss feed would also work, anything machine-readable
<tenten8401>
actually, it does work after sensors-detect, program I was using needed to be restarted
<tenten8401>
let me reboot with the boot.kernelModules set
<sphalerite>
YegorTimoshenko[: gchristensen runs a thing where you can subscribe via rabbitmq iirc, you'd have to talk to him to get the events though and he's away until Wednesday
<YegorTimoshenko[>
sphalerite: i'll talk to grahamc then, thanks!
<sphalerite>
YegorTimoshenko[: {^_^} also reports channel advances here on IRC, it's a bit of a hack but you could use that
<sphalerite>
that's push as well :D
tenten8401 has quit [Quit: Konversation terminated!]
<sphalerite>
YegorTimoshenko[: you can also pull the info from https://channels.nix.gsc.io/ , the READMEs show what he considers polite use of it :)
drakonis has quit [Remote host closed the connection]
<tenten8401>
alright scratch what I said about temperature reading not working after a reboot... turns out I was modprobing the wrong module
<tenten8401>
rebooted and now I have a reading in my little temperature monitor widget
<sphalerite>
\o/
nlyy has quit [Quit: Leaving]
<YegorTimoshenko[>
sphalerite: rabbitmq would be ideal (both machine-readable and push), so i'll wait until grahamc is back :-)
<tenten8401>
I was trying to modprobe the specific sensor in my motherboard which didn't exist as a module, but rather as several sensors grouped under one module
<sphalerite>
YegorTimoshenko[: actually the README mentions it as webhooks, so maybe it's not amqp after all. But yeah
<sphalerite>
tenten8401: aaah
<d1rewolf_>
guys, I need to find what would typically be provided as /usr/share/dict/words on on ubuntu. How can I track down the package that provides this?
<YegorTimoshenko[>
sphalerite: there was some discussion about having some middleware to emulate github webhook api, last time grahamc talked about this rabbitmq had github event payloads in it
<sphalerite>
,locate share/dict/words
<{^_^}>
Found in packages: netbsd.dict
<sphalerite>
d1rewolf_: ^
<d1rewolf_>
sphalerite, ah, I see. is there a way to incorporate the new build after the fact somehow? Are you expected to use the result symlink to look around and verify?
<sphalerite>
you can use nix-locate to search package contents locall
<sphalerite>
d1rewolf_: yes, you can do `result/bin/switch-to-configuration switch` I believe
<sphalerite>
which is like nixos-rebuild switch but without the building stage, since you already have the system built
<d1rewolf_>
sphalerite, nix-locate doesn't seem to exist for me
<d1rewolf_>
sphalerite, error: attribute 'nix-locate' in selection path 'nix-locate' not found
<sphalerite>
,locate nix-locate
<{^_^}>
Found in packages: nix-index
<sphalerite>
oops, my bad, the package is called nix-index :)
<sphalerite>
,nix-locate
<d1rewolf_>
sphalerite, cool. thanks ;)
<tenten8401>
is anyone here able to render videos in kdenlive on the latest unstable?
bara1 has quit [Ping timeout: 240 seconds]
eskytthe has quit [Quit: Leaving.]
<tenten8401>
kdenlive used to work properly, but now it's saying it's missing the Qt plugin "xcb"
<samueldr>
tenten8401: what's the issue like? not latest unstable, but recent unstable channel yesterday I was able
<sphalerite>
tenten8401: I think it expects ffmpeg to be on the PATH, it worked for me last time I tried it, I think I was running it in nix-shell -p kdenlive ffmpeg
<sphalerite>
tenten8401: oh right, yeah that's a common issue across packages that use qt
<tenten8401>
I guess a nix-shell would be better for development anyways
<sphalerite>
,library = Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}>
library redefined, was defined as: Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
drakonis has joined #nixos
<sphalerite>
yes exactly, that's how it works with nix :)
eskytthe has joined #nixos
<tenten8401>
I forget nix-shell exists sometimes
<tenten8401>
is the NixOS cache down?
<tenten8401>
getting a "Couldn't connect to server" spam when rebuilding
<sphalerite>
someone else said that earlier. Probably AWS having issues.
<tenten8401>
fun
<tenten8401>
I can wait, it's not like I'm actively trying to render anything
<sphalerite>
it's fine for me just now, but outages tend to be intermittent and geographic
<tenten8401>
yeah it just now fixed itself
<samueldr>
not the first time I read that today
<samueldr>
same thing, fails, then works right after asking :)
<tenten8401>
still seems to be failing to render but I haven't restarted or anything
<tenten8401>
I'll try it later after a restart
<sphalerite>
what else do you have in your profile? It might be affected by that too
<jD91mZM2>
But with nixos.keepassxc as whatever package attribute you wanna query
knupfer has joined #nixos
selfsymmetric-mu has joined #nixos
eeva has quit [Remote host closed the connection]
eeva has joined #nixos
<d1rewolf_>
if looking from nix repl, what attribute tells the most information about the package (description I guess)
<d1rewolf_>
ah, pkg.meta.description
juhe has joined #nixos
cryptomonoid has quit [Ping timeout: 256 seconds]
<sphalerite>
d1rewolf_: `nix search` is a bit nicer and shows descriptions as well :)
<sphalerite>
unfortunately we don't have the same sort of detail in descriptions for nixpkgs as is available in debian's repos
<juhe>
sphalerite: nix search: nice!
<juhe>
is there a plan to have a "nix channel" instead of "nix-channel"?
<andi->
sphalerite: mhm, I don't think the long descriptions of Debian are of particular interest most of the time. Isn't it more about the bundled binaries/files? What do you think is missing?
<d1rewolf_>
sphalerite, cool thans!
<d1rewolf_>
thanks
Fare has quit [Ping timeout: 256 seconds]
<jD91mZM2>
juhe: I think nix 2.0 is trying to move away from channels?
<jD91mZM2>
In favor of NIX_PATH
Sonarpulse has quit [Ping timeout: 260 seconds]
endformationage has joined #nixos
<juhe>
jD91mZM2: ok, didn't know that, I think it makes sense (if looking from point of having git repos (possibly different ones) at different NIX_PATHs).
<d1rewolf_>
what's the appropriate way to view the contents of a package?
<sphalerite>
juhe: I'm not sure about the exact details of what it will look like, but I do believe the `nix` command is slated to eventually replace all the functionality of nix-env, nix-store etc
<catern>
where is python 3.7 :(
<jD91mZM2>
nix-index, I guess. Since nix is somewhat source based I think you can't just get the binary contents
<juhe>
sphalerite: that seems a good idea, one tool to rule them all :-)
justbeingglad has joined #nixos
<d1rewolf_>
also, for things which aren't managed by nix, what's the appropriate way to reference the path to it? for example, scowl installs dict in /nix/store/v3288g691g56d4rknwi9d8k4akhmbhnn-scowl-2017.08.24/share/ instead of /usr/share. Is there an abstraction I can use to refer to this in non-nix files?
<sphalerite>
andi-: the long descriptions are useful for searches, for one. What do you mean about bundled binaries/files?
justbeingglad has left #nixos [#nixos]
<juhe>
sphalerite: and I like to have it similar to other tools, e.g. git
MP2E has joined #nixos
bara1 has joined #nixos
<andi->
sphalerite: basically aren't people often searching for "what package provides XXXX" instead of yet another calculator (which is also valuable)
<jD91mZM2>
d1rewolf_: environment.pathsToLink lets you specify what to link
<MP2E>
hmm I'm running nixos-rebuild on the latest nixpkgs master and i'm stuck on this somewhat cryptic error : https://pastebin.com/WEJffbp4
<d1rewolf_>
jD91mZM2, ah, that's new to me. thanks!
<MP2E>
basically says that extra-utils isn't allowed to refer to libidn2
<MP2E>
but it's strange, going through git log real quick doesn't show me any obvious changes to libidn2 or extra-utils in the past 2 weeks, since i last rebuild fine
<MP2E>
rebuilt*
kiloreux has quit [Ping timeout: 276 seconds]
<d1rewolf_>
interesting, I can't find pathsToLink in the manual
<sphalerite>
d1rewolf_: if you have scripts and such referring to it, you'd probably want to build them with nix and substitute the path in
<sphalerite>
for anything to share, at least
<sphalerite>
if it's individual you can keep a symlink to words wherever you want.
<sphalerite>
You could even create /usr/share/dict/words as a symlink to it :p
<sphalerite>
Just that it's kind of nasty and won't be compatible with other nix-based systems
<d1rewolf_>
sphalerite, it's individual, but a symlink would break on upgrade
<d1rewolf_>
right?
<sphalerite>
d1rewolf_: no, it just wouldn't get updated
<juhe>
d1rewolf_: I sometimes use "git grep <search-term>" in nixpkgs.git, to find where/how it is used. Sometimes there's also documentation.
<sphalerite>
as long as it's correctly made into a GC root the file won't disappear
<samueldr>
tenten8401: have you rebooted/fixed kdenlive?
<sphalerite>
right dinner time
<d1rewolf_>
sphalerite, so /nix/store/v3288g691g56d4rknwi9d8k4akhmbhnn-scowl-2017.08.2 that hash won't change?
<samueldr>
tenten8401: I have something to test if you still have the `because it could not find or load the Qt platform plugin` error
nschoe has joined #nixos
<sir_guy_carleton>
the kde-plasma5 displays system box instantly crashes on me; has anybody else encounted something similar?
sbdchd has quit [Remote host closed the connection]
MP2E has quit [Remote host closed the connection]
Fare has joined #nixos
Plato[m] has joined #nixos
<Plato[m]>
Strange. I've got a file that uses nix-shell in the shebang line which requires `python3Packages.yapf`. When I run it, I get yapf version 0.21.0. But the one I've already got installed (via system packages) is 0.22.0
<Plato[m]>
I have no idea where that old version comes from.
kiloreux has joined #nixos
<Akii>
sir_guy_carleton completely crashes or just the window manager?
<Akii>
(= window decoration)
<FRidh>
Plato[m]: if the nix-shell shebang doesn't specify an explicit nixpkgs, then likely your user is on a different (/older) channel than root
<nschoe>
Hi everyone, is there a tutorial / doc page for Arduino / Arduino IDE under nixOS? I am regularly having an issue when the IDE complains '~/.arduino15/packages/xxx/g++: no such file or directory'. I usually wipe the ~/.aruidno15 directory and re-install, but this is cumbersome.
<Plato[m]>
FRidh: Ah, I see, that makes sense.
<nschoe>
I remember asking here, but I cannot find it back, and I think there's something tricky going on with the Arudino IDE under nixOS
<Plato[m]>
FRidh: Yep, nix-channel --update fixed it. Thanks!
<nschoe>
RetardedOnion, hum, yes but this is just the package list.
<nschoe>
RetardedOnion, I have the IDE installed, and it works-ish. But every now and then, it complains that some path to g++ doesn't exist, yet it does.
<RetardedOnion>
nschoe: why dont you install it from the repo or have a look into the nix expression?
<nschoe>
RetardedOnion, I have it installed already =)
justbeingglad has joined #nixos
<{^_^}>
[nixpkgs] @dasJ opened pull request #43976 → sieve-connect: Init at 0.89 → https://git.io/fNll9
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fNllH
justbeingglad has left #nixos [#nixos]
<RetardedOnion>
is there an easy way to get a newer kernel? i am worried about modules like acpi_call and tp_smapi. if it is easily doable, i would be going mainline
bara1 has quit [Ping timeout: 268 seconds]
<samueldr>
RetardedOnion: there are a couple kernel versions packaged
<samueldr>
did you end up going unstable?
Neo-- has quit [Remote host closed the connection]
Neo-- has joined #nixos
<RetardedOnion>
samueldr: yes and it is great. i noticed that it87 isnt packaged. might be funny for my desktop where i need the acs patch as well
fresheyeball has joined #nixos
<RetardedOnion>
can i just add the patch via boot.kernelPatches? there is no dkms on nixos, right?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNl8e
knupfer has quit [Remote host closed the connection]
<RetardedOnion>
samueldr: thank you. i also noticed there is an linuxPackages_latest which is even nicer. thank you so much. i need to get ungoogled-chromium running and maybe even it87 stuff and then i will switch
<ben>
your irc nick is kinda bad
hakujin has joined #nixos
<RetardedOnion>
ben: thank you for your support. appreciate it.
<nschoe>
samueldr, but actually I haven't solved my issue, maybe you could help: I'm running `ldd` on an executable, and I have "libstdc++.so.6 => not found" inside
<samueldr>
and uh, if someone did something bad and added "g++" as an attribute it would be -p '"g++"' AFAICT
<nschoe>
This is why I was trying to fire a nix shell with g++ inside. So I did with gcc instead, but I still have "not found". How can I solve this?
<samueldr>
nschoe: that's an XY question it sees, what's the end goal?
<d1rewolf_>
samueldr, interestingly, those defaults aren't linked on my system. For example, /sbin doesn't exist
<samueldr>
d1rewolf_: if there are non in the inputs, there will be none linked I think
<samueldr>
d1rewolf_: applying the function that links /sbin 0 times will lead to 0 sbin
<nschoe>
samueldr, the end goal is that I have installed the Arduino IDE and added the esp8266 board, but when I try to compile a sketch it complains that ".arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++: no such file or directory"
<d1rewolf_>
samueldr, gotcha ;)
<samueldr>
ah, so using non-nix-built binaries in nixos, nschoe, right?
<nschoe>
So I tried with `ls` and I can see this "xtensa-lx106-elf-g++" executable. **but** when I try to execute it by hand, with `./xtensa-lx106-elf-g++` I get this "no such file o directory" again
<d1rewolf_>
jD91mZM2, I noticed you used "/share/dict" instead of "/usr/share/dict" in your earlier example. any reason why?
<samueldr>
I'm not sure the state of the art in this situation, as a quick fix, try runnin the arduino IDE using steam-run
<nschoe>
samueldr, hum, possibly. I'm not sure: I did install the IDE from nixOS, I don't know about this executable. I guess if it's in this location, it is not built by nixOS indeed :/
<samueldr>
steam-run uses a FHS environment to mimic a more common linux environment
<iqubic>
Anyone here use emacs to do web development?
lopsided98 has quit [Quit: Disconnected]
<nschoe>
samueldr, okay, ... what's a steam-run? o_O sorry
<samueldr>
nschoe: give me 2 minutes, digging up the info (if you don't find it meanwhile_
<d1rewolf_>
hmmm...adding environment.pathsToLink = [ "/usr/share" ] seems to have done nothing.
<nschoe>
I'm, on it ^^
lopsided98 has joined #nixos
<d1rewolf_>
can someone explain exactly what environnment.pathsToLink does?
<iqubic>
I wish there was some way to tell emacs that it has to run nix-shell first, then have it run my JavaScript linter.
<samueldr>
it's the only FHSUserEnv I know off the top of my head in nixpkgs, which is why I asked you to try this one
<nschoe>
samueldr, I'm instlling steam-run-native right now to test.
<nschoe>
samueldr, ok
<nschoe>
samueldr, and (while it fetches path), I can't solve my problem by finding the way to have this libstdc++ so that the executable works?
<samueldr>
what *could* be done, if the arduino IDE has that habit of loading external toolchains, and if it's hard to re-build or patch them accordingly, is to run it under an FHS user environment
noctux has joined #nixos
<samueldr>
nschoe: that's probably some patchelf shenanigans
<samueldr>
(I don't exactly know how)
<nschoe>
samueldr, okay, thanks for your help ;)
juhe has left #nixos [#nixos]
<noctux>
hello, I'm a new user and sort of impressed by nixos. However, I feel very bad about having my X running as root, and I cannot really believe that I'm alone with that. The closest I've found is https://nixos.wiki/wiki/Using_X_without_a_Display_Manager which seems like a giant hack. Is there any alternative solution that I haven't come across?
<{^_^}>
[nixpkgs] @dywedir opened pull request #43979 → yakuake: fix meta → https://git.io/fNl4g
<sphalerite>
d1rewolf: the hash of scowl may change from one version to the next, but the existing one won't disappear as long as you've got a gc root attached to it
<{^_^}>
[nixpkgs] @viric opened pull request #43983 → Openssl in coreutils makes *sum programs much faster (RFC) → https://git.io/fNlBR
hakujin has quit [Ping timeout: 256 seconds]
<viric>
samueldr: four or so :)
<viric>
samueldr: software I wrote, mostly.
cryptomonoid has joined #nixos
<viric>
samueldr: I might have removed even some of my programs... I'll double check
<viric>
I think I didn't remove any extra of what I wanted
das_j has joined #nixos
<das_j>
Hey, is there a way to change the modification time of files inside the nix store?
<clever>
das_j: nope
<das_j>
clever: Well, okay that's sad
<das_j>
Is there a GitHub issue or something?
<clever>
das_j: its part of making everything pure and reproducable
<clever>
das_j: all files must have a timestamp of 1 unix time
johanot has joined #nixos
<das_j>
Hm, makes sense somehow, but still annyoing. dovecot thinks my sieve scripts need to be recompiled, because the time of the compiled version is equal to the source file
<das_j>
I'll just move the files somewhere else
knupfer has joined #nixos
<clever>
das_j: sounds like it would be better to disable the automatic recompile, and have it compiled once by nix
<das_j>
I haven't found an option to do that
<clever>
it may need to be patched to allow it
<das_j>
I'll just ask the developer if this is a off-by-one problem when comparing the modification times
<LnL>
manveru: the base images contain the absolute minimum to get nix working, the second layer more than doubles the size
<manveru>
yeah, i thought they were just different tags for the same set
<manveru>
i used my own fork for a long time, so i forgot
<LnL>
I don't version that second variant tho
nly has joined #nixos
<nly>
Noob question, can I install an app in such a manner that it only has access to binaries I specify at install time? And if I install new tools the app should not see it.
joehh has joined #nixos
<RetardedOnion>
LnL: thanks for the answer. can i add this to systemPackages in my configuration.nix?
sbdchd has joined #nixos
<manveru>
nly: via makeWrapper you can wrap the package to set PATH to a subset
<manveru>
ofc it still has access to your filesystem unless you put it into a container...
<nly>
Ahh
FRidh has quit [Quit: Konversation terminated!]
<nly>
If worldofpeace is here, the package 'bookworm' needs 'unzip' and 'pdftohtml' to work
johanot has quit [Ping timeout: 248 seconds]
alex`` has quit [Ping timeout: 240 seconds]
redj has joined #nixos
<manveru>
only at buildtime though?
mekeor has joined #nixos
lopsided98 has quit [Quit: Disconnected]
nlyy has joined #nixos
alex`` has joined #nixos
nuncanada has joined #nixos
sbdchd has quit [Ping timeout: 268 seconds]
lopsided98 has joined #nixos
<fresheyeball>
is there such a thing as the opposite of shellHook?
<fresheyeball>
a hook to cleanup when leaving the shell?
<manveru>
or maybe it's my nix-shell caching messing it up
<manveru>
fresheyeball: try it anyway :)
<nlyy>
flightgear compiled. nice
knupfer has quit [Ping timeout: 276 seconds]
winem_ has quit [Ping timeout: 265 seconds]
phdoerfler has quit [Quit: Leaving.]
iqubic has quit [Remote host closed the connection]
<fresheyeball>
worked!
johanot has joined #nixos
nlyy has quit [Quit: Leaving]
simukis has quit [Quit: simukis]
johanot has quit [Ping timeout: 244 seconds]
<nly>
[02:30] manveru: only at buildtime though? No I was asking about limiting access once the app is installed.
<{^_^}>
[nixpkgs] @snaar opened pull request #43985 → lesspipe: add missing dependency on 'file' → https://git.io/fNl07
david1 has joined #nixos
david1 is now known as DeltaEvo
joehh has quit [Ping timeout: 260 seconds]
hakujin has joined #nixos
DeltaEvo has quit [Client Quit]
Thra11 has quit [Ping timeout: 256 seconds]
<sphalerite>
nly: flightgear worked for me last time I tried it in spite of not having those deps
<sphalerite>
nly: but a PR with your changes would certainly be welcome!
hakujin has quit [Ping timeout: 256 seconds]
Fare has quit [Ping timeout: 276 seconds]
Jason_Grossman has quit [Remote host closed the connection]
Jason_Grossman has joined #nixos
tertle||eltret has joined #nixos
Thra11 has joined #nixos
<tertle||eltret>
hi
<tertle||eltret>
u do systemctl start display-manager
<tertle||eltret>
then type rm / -r
<tertle||eltret>
then hit f9
<tertle||eltret>
sike
<tertle||eltret>
what should i set up on my nix box?
mekeor has quit [Ping timeout: 256 seconds]
<RetardedOnion>
tertle||eltret: your pc. also: i am not sure if rm -r / is destructive in nix, but i am pretty sure that is not a command you should be trowing around.
<tertle||eltret>
i was just kidding
<tertle||eltret>
sorry guys
<tertle||eltret>
u know, the whole jumping off the bridge thing
<aristid>
tertle||eltret: it's not a joke anybody here appreciates, i'm pretty sure
<aristid>
tertle||eltret: it's more for #15yearoldboys
<tertle||eltret>
okay okay, keep it above the belt
<tertle||eltret>
i want to install x2go on my nixos
<tertle||eltret>
but i haavent been able to
<fresheyeball>
I have a weird one
<fresheyeball>
I have a script that I create with pkgs.writeScript
<dmj`>
is peti around?
<fresheyeball>
and if I eacho it with '' echo ${myScript} ''
<fresheyeball>
it echos the path to the nix store
<fresheyeball>
but if I alias it
<fresheyeball>
'' alias my-script=${myScript} ''
<fresheyeball>
it runs the script right away!
Neo-- has quit [Remote host closed the connection]
Neo-- has joined #nixos
winem_ has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43986 → travis-conditions: init at 1.0.2 → https://git.io/fNluk
wigust has joined #nixos
ra59 has quit [Quit: Leaving.]
Thra11 has quit [Ping timeout: 264 seconds]
derped has quit [Ping timeout: 248 seconds]
Thra11 has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
koisell has quit [Ping timeout: 260 seconds]
winem_ has quit [Ping timeout: 265 seconds]
sir_guy_carleton has joined #nixos
sir_guy_carleton has quit [Client Quit]
kim0 has joined #nixos
pie_ has quit [Ping timeout: 276 seconds]
cryptomonoid has joined #nixos
pie_ has joined #nixos
nschoe has quit [Quit: Program. Terminated.]
goibhniu has joined #nixos
jonreeve has joined #nixos
<jonreeve>
Hi everyone. I just installed NixOS for the first time. I'm not sure what the best way of installing GUI packages is. I can install packages either by adding them to configuration.nix, or by running nix-env -iA, but then they don't seem to appear in my KDE launcher. Any ideas?
<RetardedOnion>
jonreeve: give them some time (or reboot). at least it works for me. i am very new as well so dont take me too seriously
sir_guy_carleton has joined #nixos
jonreeve has quit [Quit: Konversation terminated!]
Coyin has quit [Quit: Leaving]
__monty__ has quit [Quit: leaving]
sam__ has joined #nixos
hakujin has joined #nixos
aarvar has joined #nixos
cryptomonoid has quit [Ping timeout: 276 seconds]
hakujin has quit [Ping timeout: 240 seconds]
sam__ has quit [Quit: sam__]
<kiloreux>
I want to convert my python requirements.txt file to nix. So that I can use everything on nix but I can't figure it out tried "pypi2nix" but have been running into some errors.
tenten8401 has quit [Ping timeout: 240 seconds]
joehh has joined #nixos
graphene has quit [Remote host closed the connection]
Guanin has quit [Remote host closed the connection]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackdk has quit [Remote host closed the connection]
mahalel_ has joined #nixos
<{^_^}>
[nixpkgs] @veprbl opened pull request #43988 → mupdf: fix on darwin → https://git.io/fNlgZ
goibhniu has quit [Ping timeout: 276 seconds]
winem_ has quit [Ping timeout: 260 seconds]
Lisanna has joined #nixos
nekroze has joined #nixos
<tertle||eltret>
am i right that you cant build from source in the normal way on nix?
<nekroze>
I am trying to write a nix package, and in my install phase I need to reference a file in qtwebengine package and do so like this "${qt5.qtwebengine}/translations" however translations is not there because it is going to the qtwebengine-5.11.1-bin nix store item instead of the non -bin version that has the file I want. How do I select the not -bin version?
hakujin has joined #nixos
<nekroze>
tertle||eltret: yes and no. You cannot just starting pulling sources and running make as, by default, build tools like make and gcc are not installed globally. You could install them with "nix-env -iA nixos.stdenv" however this gets messy fast and is not at all idiomatic nixos usage.
<nekroze>
tertle||eltret: I would recommend having a look at nix-shell which can give you a temporary and isolated environment with build tools specific to the program you are trying to compile
<tertle||eltret>
oh i see, thank you nekroze
<nekroze>
tertle||eltret: then once you have a handle on it working in nix-shell you can tidy it up a bit and create a nix package out of your nix-shell
<tertle||eltret>
so is gcc in nix-shell?
lukec has quit [Ping timeout: 265 seconds]
<nekroze>
tertle||eltret: not always but mostly, gcc (and make and binutils etc) are provided by stdenv which is often used as the basis for any nix-shell environment
<nekroze>
tertle||eltret: let me see if I can find you a decent example