ddellacosta has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
soju has joined #nixos
o1lo01ol1o has joined #nixos
BOOrucadu is now known as barrucadu
pjan has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
o1lo01ol1o has joined #nixos
soju has quit [Ping timeout: 276 seconds]
co1or has joined #nixos
<co1or>
hi
<selfsymmetric-mu>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<co1or>
i have a ques: did GNU/Linux make use of any Unix source code? or was it *100%* coded from scratch?
<selfsymmetric-mu>
How do I DM nixbot? Doesn't seem talkative when I send messages to it.
<selfsymmetric-mu>
Or does it only work in this channel?
bsima has joined #nixos
Rusty1 has joined #nixos
<DigitalKiwi>
you can dm it
<DigitalKiwi>
i do when i want to ,locate
<m3thos>
co1or: from *scratch* .. the linux kernel code was done from scratch by a group of hackers that shared their code on newsgroups. other parts, like glibc, gcc..etc.. were part of the GNU project for a free operating system..
<m3thos>
you can go read the archives of the newgroups for the linux kernel history.. all the way back to 1991. first public version was v0.11 or something like that
pjan has joined #nixos
<m3thos>
anyone using fwupd/fwupdmgr on nixos, I get weird failures of "failed to connect to daemon"
<selfsymmetric-mu>
DigitalKiwi++
<{^_^}>
DigitalKiwi's karma got increased to 5
ng0 has quit [Quit: Alexa, when is the end of world?]
<selfsymmetric-mu>
ddellacosta: I know, it's brilliant. Good luck, I'm rooting for you.
<ddellacosta>
selfsymmetric-mu: lol thanks
<co1or>
so it wasnt just linus who made the original linux kernel?
<DigitalKiwi>
if you don't want to go that route you can install the other channel one of that program by itself
toppler has quit [Ping timeout: 268 seconds]
<kaliumxyz>
linus started it.
jluttine has joined #nixos
ddellacosta has quit [Remote host closed the connection]
abathur has joined #nixos
<co1or>
kaliumxyz: ok
Am3nadiel has quit [Quit: ZZZzzz…]
cryptomonad has quit [Quit: cryptomonad]
<co1or>
kaliumxyz: so can anyone confirm: is there a difference between Minix and Minux? (some ppl have said code from both Minux and OpenBSD was used in GNU/Linux. cannot confirm this ATM)
xd1le has joined #nixos
<GlennS>
(Hacky is OK, this is temporary.)
<GlennS>
Wondering what's the easiest way to distribute a single pre-compiled binary file (chamber by segment) for distribution to NixOps machines?
<slack1256>
GlennS: nix-copy-closure ?
fusion809 has joined #nixos
toppler has joined #nixos
<clever>
GlennS: static or dynamic elf?
<GlennS>
I don't really know what that means, but runs fine when I just download it onto a NixOS machine, so probably static? It's a go executable.
silver has quit [Read error: Connection reset by peer]
<clever>
GlennS: if you run `file` on the binary, what does it say?
<GlennS>
statically linked:
<GlennS>
chamber-v2.7.3-linux-amd64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=RIerk0igUSg829MuzRoU/qrTLGFIMf2hBPIAxx7i9/aSCE0ICZyggkENRFmOuV/4UOKazahImWcAv26RLzP, not stripped
<clever>
then you just need a package that drops it into $out/bin
<co1or>
what are arm devices? is that a different brand of processor? a different CATEGORY of processor?
<wrl>
co1or: i think you can disable the TPM in the BIOS
<wrl>
you *can't* disable the ME
<co1or>
what is a TPM?
<wrl>
trusted platform module
<co1or>
imma look it up
<Shell>
co1or: tl;dr buy an x200 and put libreboot on it. but also, frankly, if you don't trust your hardware vendor, you're kinda screwed anyway - your CPU could literally do anything and you'd never be able to tell, even without trustzone/me.
toppler has joined #nixos
felixfoertsch23 has joined #nixos
mexisme_ has quit [Ping timeout: 246 seconds]
felixfoertsch has quit [Ping timeout: 276 seconds]
<zeta_0>
clever: what section of the manual, it's like looking for a needle in a hay-stack ?
NoctisLabs has quit [Read error: Connection reset by peer]
<Shell>
most devkit-style arm devices will let you do that. trustzone is actually pretty cool tech, it's the closed-source implementations that interface with the network on Intel/AMD platforms that is less cool.
<clever>
samueldr: i think the SCR register stuff is to do with locking out the trustzone layer, before it jmp's into the linux kernel
<clever>
but you have the option to tell the firmware to omit this boot stub, and then you can prepend your own to the kernel
<co1or>
Shell: WRT to "not trusting hardware" it's NOT that I dont trust te hardware, but I DONT trust MODERN hardware. imma have to buy old used pcs to be on the safe side.
NoctisLabs has quit [Read error: Connection reset by peer]
<co1or>
(back in the day, o-board spying was not as sophisticated or prevalent as it is today!)
<co1or>
on-board*
<notgne2>
adisbladis: is there any way to work around pnpm not giving git dependencies hashes, like using overrides to manually declare it and use fetchGit or something?
<co1or>
so guys: EVERY modern (post 2012) AMD processor has this function/facility (the so-called ME/TrustZone/whatever-it's-called)?
<co1or>
and if so, is there ANYTHING I can do to disable/weaken it?
<notgne2>
co1or: I don't know about every processor, but its certainly the standard to include this kind of thing from every vendor
NoctisLabs has joined #nixos
<infinisil>
co1or: This is a Nix channel fyi, would be nice to keep it on-topic :)
<zeta_0>
what do i need to feel in for `rev` ?`` and for sha256 i put random sequence: sha256 = "004yqxaf2xcnjfq0r1v7mzjhrizx7z5b2n6gj1kdk2yi37z67200";
<zeta_0>
clever: ^
<clever>
zeta_0: rev should be a git revision
<notgne2>
you can turn off the admin interfaces (I'm not sure what AMD's equivalent is, but Intel has a web page+API for controlling the computer built in), but there's lots of stuff you can't turn off, not that it should matter since if the vendor really wanted to circumvent your control they could hide it forever. and as infinisil pointed out, it's a bit
<notgne2>
offtopic
NoctisLa2 has quit [Ping timeout: 276 seconds]
NoctisLabs has quit [Read error: Connection reset by peer]
<clever>
zeta_0: use github to look up the current revision
NoctisLa1 has joined #nixos
NoctisLabs has quit [Ping timeout: 240 seconds]
toppler has quit [Ping timeout: 240 seconds]
NoctisLabs has joined #nixos
Thra11 has quit [Read error: Connection reset by peer]
<zeta_0>
clever: how do i do that ? (link to tutorial?)
<clever>
zeta_0: click on the most recent commit in the github repo
NoctisLabs has quit [Read error: Connection reset by peer]
<co1or>
i have a question: if i were to use Minix or OpenBSD or NixOS, would I be able to listen to music and watch youtube videos? and if NOT, could I easily use the package manager to download and install the necessary codes/drivers/whatever's-missing? (the reason i ask: whenever is tried to use ANY version of linux other than Linux Mint, I could NOT watch youtube streaming videos, NOR could I get any audio output from my soundcard.) thx in advance
NoctisLa1 has quit [Ping timeout: 276 seconds]
<co1or>
I, not "is"*
<clever>
co1or: ive got chromium (and youtube), plus steam (and via proton, many windows games) working just fine on nixos
<co1or>
ok thats good.
<co1or>
is nixos built on debian or is it it's own thing?
<clever>
its own thing
<co1or>
ok cool. one more question. then im outta here:
<co1or>
is nixos comletely "libre"/"free"/"open-source"? or is it semi-proprietary/completely-proprietary?
<slack1256>
We have propietary components.
<clever>
co1or: by default, unfree software is hidden and disabled, and you have to opt-in to use it
NoctisLabs has joined #nixos
<clever>
steam is marked as unfree for example, since the source isnt available and some components (games) must be paid for
<co1or>
slack1256: thanks for warning me. are all the "proprietary components" disabled by default, like clever is talking about?
<co1or>
clever: thx for responding
<notgne2>
I believe there are potentially unfree components in the kernel still, no?
<slack1256>
co1or: As clever said.
<co1or>
slack1256: ok. thx
<notgne2>
(not that it's hard to switch to linux libre)
<clever>
co1or: there is an allowUnfree = true; flag, that just blanket turns on all unfree stuff
toppler has joined #nixos
<co1or>
clever: awesome! but i wanna use as little closedsource as possible. i try to only use proprietary if absolutley necesssary, and only to the least degree possible
<infinisil>
notgne2: Unfree stuff in the kernel?? Linus would never allow that!
<clever>
infinisil: DRM (the other drm) is already in the kernel
endformationage has quit [Ping timeout: 276 seconds]
<infinisil>
Huh, how can the kernel be considered free then?
<clever>
infinisil: its probably open-source code, to support drm, which is still optional (normal config flags)
<clever>
notgne2: it does things like refuses to playback content until the kernel can proove that the kernel hasnt been modified, and the hdmi channel is encrypted
<notgne2>
clever: digital rights managment just breaks things for end-users and makes pirates have to buy a $10 reciever from aliexpress when they want to record stuff
<notgne2>
I don't see how that stops piracy
<slack1256>
notgne2: You're preaching to the choir here.
<clever>
notgne2: yeah, if i load an unsigned kernel module (anything built with nix), then the kernel is tainted and could be sniffing the video stream
<clever>
notgne2: so any drm riddled player wont trust the kernel, and wont give it a copy of the video stream
NoctisLabs has joined #nixos
<notgne2>
actually I'm curious now, how do these DRM guys plan to deal with kernel exploits, will they force everyone to have a version with all the bugfixes?
<clever>
probably
<co1or>
wow. i never trusted that guy linus. hes been on Ted talks and everything like hes some celebrity. not to mention the fact that everybody has been calling it Linux for a long time. (it SHOULD be called GNUnix or RichStallix)
<slack1256>
Read the lwm before throwing your pitchforks
<clever>
notgne2: hdcp has also been cracked wide open, so the only thing stopping you is law suits if you try to sell a product to strip crypto
NoctisLa1 has joined #nixos
<drakonis1>
i dont get it
<slack1256>
Lol the HDCP master key was leaked 9 years ago.
<clever>
drakonis1: HDCP is used to encrypt video as its sent over an HDMI cable, so only approved devices (tv's) can play the content, and un-approved devices (capture cards) cant
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
zeta_0: looks right at a glance, try it and see what happens
<notgne2>
co1or: I don't really think there's any reason to be angry at Linus, he is doing his job, which is more of a traditional one. He made something useful to the community, he never worked for the community, like say RMS for instance. I don't think that's a bad thing (but maybe I'm biased since I contribute to free software for my paid work too), but does mean you shouldn't act as if he's working with your best
<notgne2>
intrests at all times
<notgne2>
also, DRM is a "feature", this is something anybody could've implemented (albiet not merged into the official Linux branches), so you really the problem was never in the hands of the programmers
NoctisLa2 has joined #nixos
<notgne2>
the same way players could force you to have the latest Linux kernel with no unsigned modules and all official hardware, they could force you to have their 3rd party special fork of Linux which includes DRM
NoctisLabs has quit [Ping timeout: 265 seconds]
<zeta_0>
clever: cool, i am going to take a little break before i do another rebuild
<zeta_0>
clever: thanks for the help
<zeta_0>
clever++
<{^_^}>
clever's karma got increased to 227
<co1or>
jesus christ. one disappointment after another. for every step the community takes to secure its rights, the Powers That Be wanna strip them from you, i know i sound like a FSF member or something
<co1or>
2 steps forward, 3 steps back
<co1or>
i personally like richard stallman's "religious"/fanatical approach to computing
<co1or>
imma go drink some HURD koolaid
<slack1256>
co1or: I don't why, but I think you visit /g/ too.
NoctisLa1 has quit [Ping timeout: 268 seconds]
<co1or>
whats /g/
<slack1256>
good
<slack1256>
Never ask again.
<Miyu-saki>
lol
<Miyu-saki>
What'd I;2umiss?
<notgne2>
basically I don't think any kernel DRM developers are to blame for this, they're building something for somebody other than the community, and their contributions should be treated as such. Not as some kind of evil attack, and not as something to benefit the users. It's a feature, blame the people that force you to use it
<co1or>
lemme gues: is it some porn fetish or something?
<co1or>
guess*
<Miyu-saki>
Nah, it's not. Never ask again [1]. :P
<slack1256>
Let's keep it as that.
<zeta_0>
freedom is the highest goal(including software)
<Miyu-saki>
And oh. DRM.
<co1or>
zeta_0: amen
<co1or>
FREEEEEEDOM. mah freedumz!
<Miyu-saki>
Methinks anyone who is for-DRM never tried using a device w/ a different architecture.
<Miyu-saki>
Heck. Never tried using a device that is non-Windows(or Android?)
NoctisLabs has joined #nixos
justanotheruser has quit [Quit: WeeChat 2.6]
<notgne2>
ah yes, the many hours I sunk into exploiting my TMobile LG V30...
<zeta_0>
do any of you guys here know haskell ?
<slack1256>
Yep
<notgne2>
I wish I did
<Miyu-saki>
I think it's worth noting FSF(or Stallman?)'s critic on NixOS.
NoctisLabs has quit [Read error: Connection reset by peer]
<notgne2>
well, Guix exists
<gyroninja_>
Am I mistaken or did unstable not get bumped even though nixos:trunk-combined:tested passed
NoctisLabs has joined #nixos
<Miyu-saki>
OTOH, I think NixOS is still the best out of the bunch there. You can even whitelist what unfree components you want to use.
<zeta_0>
slack1256: category theory blew my mind(climbing the ladders of abstraction), but it helped me make a little better sense of haskell
NoctisLa2 has quit [Ping timeout: 240 seconds]
<slack1256>
I actually wrote a thesis on category theory + topology just because I learned so much with haskell.
<Miyu-saki>
:o
<zeta_0>
is there enough open source/hardware for guixsd
<slack1256>
But in latin-america there is a "single" category theorist (on brazil), so it was a weird combination.
<Miyu-saki>
Well. This is a bug that I'm unwilling to fix/report: Bumping to unstable made nixops-container stop working. Offending line is `cat /etc/os-release`
<Miyu-saki>
CC: clever
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<clever>
Miyu-saki: weird
<Miyu-saki>
ikr?
justanotheruser has joined #nixos
<Miyu-saki>
I tried making a MWE, but ehh
<zeta_0>
slack1256: cool, so what is topology ?
<slack1256>
The study of open sets.
<Miyu-saki>
clever: Oh yeah, any thoughts on PRIME offload???
<clever>
Miyu-saki: hadnt heard of it
<Miyu-saki>
:o
<zeta_0>
slack1256: were you talking about bartosz milewski ?
<Miyu-saki>
clever: Basically, NVidia now has proper Linux support for dGPU render/iGPU display.
<{^_^}>
[nix] @mkenigs opened pull request #3191 → environment fixes in run → https://git.io/JezxQ
<Miyu-saki>
Including power management, etc.
<Miyu-saki>
Based on how I understand it
<slack1256>
Nope, mileswski presents lots of constructions of CT, but topology has some constructions that have some interpretation under category theory. My work was a "resume" of technique on binding the two subjects.
<clever>
Miyu-saki: ah, i last saw that under the name bumblebee, and none of my hardware supports it
<notgne2>
could such a thing be used on my desktop to selectively use my Nvidia card instead of my primary AMD card
<notgne2>
reasoning being I often pass off my Nvidia card to a VM for playing VR
<zeta_0>
slack1256: i watched all of his videos on category theory on youtube and just started his category theory for programmers book,
<slack1256>
zeta_0: Composition FTW, good for you.
NoctisLabs has quit [Read error: Connection reset by peer]
<zeta_0>
category theory does feel more natural/simple then other areas of mathematics(once you understand abstraction)
<slack1256>
Only algebraic topologist or algebraic geometrists use category theory on mathematics, as a common language to describe process or constructions. CT on programming also will give us this, a common language for stuff (that's always what algebra ends up doing).
<Miyu-saki>
I think computer scientists just really favor discrete mathematics.
<zeta_0>
slack1256: thanks, a lot of struggle but functional programming is starting to make a little more sense
<Miyu-saki>
clever: Wait wut. That pin array on the right?
<clever>
Miyu-saki: yeah
<clever>
Miyu-saki: and the 4 groupings around it, are where the gpu ram went
Rusty1 has quit [Quit: Konversation terminated!]
toppler has quit [Ping timeout: 240 seconds]
<zeta_0>
Miyu-saki: discrete-mathematics was a lot more difficult than category theory in my experience, then again i had no math background when learning discrete-math, so the logic was way over my head
<slack1256>
Once you get used to doing proofs there is no going back mate.
<zeta_0>
nix is declarative like haskell but other than that they seem completely different(at least on the surface)
<zeta_0>
slack1256: proofs are my biggest weakness, and i still struggle with logic as well, practice, practice
<slack1256>
nix is JSON + let rec lambdas.
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #72404 → displaylink: make it work! → https://git.io/Jezpe
<slack1256>
Proofs end up having certain structure. Sure you have to know first order logic and the introduction rules etc, but when you go to certain fields you start to notice certain results end up "dominating" all results or the constructions are similar.
<slack1256>
For example on functional analysis if something it's dealing with convex sets I know hahn banach geometric version is playing around.
<slack1256>
Or the trick you can do on Hilbert spaces that "intuitively" are down to projecting stuff via dot products led you to certain fast-rules as "Hilbert spaces either work like R^n if finite dimension or L^2 if infinite dimension".
<zeta_0>
i had 3 years of heavy java programming before i heard about haskell, at 1st it looked so different/cryptic, but now i see haskell is so much simpler than java(verbose/dependency hell(null references everywhere))
sb0 has joined #nixos
toppler has joined #nixos
NoctisLa1 has quit [Read error: Connection reset by peer]
<slack1256>
I will go to sleep now, there are good waves tomorrow.
NoctisLa1 has joined #nixos
<slack1256>
Bye all
slack1256 has left #nixos ["sleep"]
<co1or>
cya slack
<co1or>
well im out too cya everybody
co1or has left #nixos ["is leaving, bruh............"]
o1lo01ol1o has joined #nixos
<zeta_0>
later guys i'm out too
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
<mightybyte>
Anyone know how to block individual IPs in nixos?
<Miyu-saki>
openssh is the same on nixos-19.09 and nixos-unstable, huh, weird.
<Miyu-saki>
clever: Also, yeah. I'm kinda interested in system76. OTOH, I'm the type of person who doesn't know how to buy online. :C
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
<Miyu-saki>
I think something changed in SSHMaster or smth.
<Miyu-saki>
Or nixos-container
<{^_^}>
[nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/Jezpr
<CMCDragonkai>
Does anybody know why `df -h` will show 50% of all memory given to the booted netboot image, when the netboot configuration sets `/` to be mounted on TMPFS. So when I give the machine 8GiB memory, `free -h` shows 8 GiB, but `/` only has 3.9 available, like exactly 50% of all memory available.
<contrun[m]>
How do I override settings of systemd unit which is generated by my configuration.nix
sweep has joined #nixos
<clever>
CMCDragonkai: by default, a tmpfs will set its size to 50% of your ram
<clever>
CMCDragonkai: but you can freely `mount -o remount,size=1234g /path/to/mount` to resize it
<CMCDragonkai>
how to make it 100%
<CMCDragonkai>
under the `fileSystems` setting in configuration.nix?
<mightybyte>
wedens[m]: Thanks!
<clever>
CMCDragonkai: you can also set it on the fileSystems entry too
<CMCDragonkai>
`size=100%`?
<xd1le>
as mathematicians say, ct is just abstract nonsense ^_^
<Miyu-saki>
clever: This is going to be stupid, but I think the problem is that nsenter doesn't terminate on EOF.
<clever>
CMCDragonkai: yep, its a union of .ro-store and .rw-store, so you want to add a size fo .rw-store, if you want more room on /nix/store/
<Miyu-saki>
So now nixops waits for forever for nixos-container to finish.
NoctisLa1 has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 1000 commits to nixos-unstable: https://git.io/JezpP
<Miyu-saki>
Just a conjecture, because upon entering the machine, pressing C-d causes it to hang up.
<clever>
Miyu-saki: i dont think nsenter should ever terminate on eof, it should waitpid() for the child to exit
<CMCDragonkai>
so the `/nix/.ro-store` is what was baked into the image
<clever>
Miyu-saki: but maybe the child (cat) is just cat'ing stdin? ...
<CMCDragonkai>
and `/nix/.rw-store` is what we would nix-store install onto
<clever>
CMCDragonkai: yeah
<clever>
CMCDragonkai: a squashfs is generated (line 68) and baked into the initrd (line 79)
<Miyu-saki>
Oh yeah, I was just speaking a bit informally. What I mean to say is that the nixops call to nsenter hangs forever because nsenter does not know when to quit.
<clever>
CMCDragonkai: then mounted to .ro-store (line 39)
<clever>
Miyu-saki: check `ps -eH x` and see what the child of nsenter is, then try to strace that
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 89 commits to nixpkgs-unstable: https://git.io/JezpS
<clever>
CMCDragonkai: and the unionfs is used to make that squashfs writeable,
<clever>
CMCDragonkai: you can also make .rw-store larger then the total amount of ram, if you provide swap
<clever>
CMCDragonkai: the dhcp config in here tells machines to run boot.php (legacy name, lol) which then says to chainload netboot.ipxe (which release.nix is generating for you)
<clever>
Miyu-saki: all of stdin/out/err are pipes, likely going to the parent process
<Miyu-saki>
Right.
toppler has joined #nixos
<Miyu-saki>
Yeah. Reverting that fixed it.
<Miyu-saki>
That's veryy weird.
<Miyu-saki>
Making a bug report now. I spent ~2 hours tracking this despite the "I'm so tired to make a bug report";2ulol
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 4 commits to nixos-unstable-small: https://git.io/Jezhj
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 14 commits to nixpkgs-unstable: https://git.io/JezNA
toppler has quit [Ping timeout: 240 seconds]
<CMCDragonkai>
how does $targetRoot get the initial set of files like `/etc`, i can see that `/dev` and alike are `mount --move` into the targetRoot, but what bout `/etc` and other more static files, when did they get moved into it? I'm talking within the context of netboot since netboot's `/` is TMPFS, there's no persistent root for netboot, so how is there `/etc` and and home directory inside the `/` of a booted netboot nixos?
<Guest84>
Thank you gchristensen: if that is yours... g(s)c?
<gchristensen>
yep!
<raboof>
on Debian, using 'unstable' is discouraged because security patches are not applied to it proactively like for 'stable'. I get the impression that NixOS doesn't discourage using 'unstable' in that way, is that correct?
<raboof>
(of course unstable is by definition less well-tested, but being able to easily roll back makes that a lot less of a problem)
<Guest84>
Thank you. :-)
<gchristensen>
you're welcome, Guest84 :) I'm glad it is useful
<gchristensen>
raboof: -unstable branches may get stuck for some time and not update quickly. so, you might not get security patches very fast in some cases
<raboof>
gchristensen: is https://r13y.com/ regenerated automatically? it should have improved a bit since last time :)
<gchristensen>
it used to be, but the machine I run it on started having hardware problems. I'll start it up again on a different system soon :)
<Guest84>
gchristensen: I've added the gsc.io link and howoldis to `awesome-nix`. Are there any other links that you think could be helpful to nix-users?
<CMCDragonkai>
gchristensen: my goal is to preinstall some drivers like nvidia onto my netboot image, so that i can boot into my netboot image on a designated hardware and not have a harddisk that persists the nvidia driver on it
<gchristensen>
CMCDragonkai: sounsd cool
<CMCDragonkai>
gchristensen: given that you're saying alot of the things are created by activation script
<CMCDragonkai>
gchristensen: im guessing i cannot just enable the nvidia driver in my netboot configuration.nix and expect it to work
<gchristensen>
I don't know why you couldn't, CMCDragonkai
Makaveli7 has joined #nixos
<CMCDragonkai>
because the netboot's root is tmpfs and its not persistent, its going to exist on root
<CMCDragonkai>
the driver has to be put into the initrd
<CMCDragonkai>
and something has to be extracting all of that onto root after stage 2 boot
<CMCDragonkai>
how is this done?
<gchristensen>
the activation script does it. the activation script runs on every boot
<CMCDragonkai>
so i need to write my own activation script/extend it?
<dx_>
up to this point, i have been playing on nix and saw how it can containerize at a filesystem level..until this 'gp.jar' file requires pcsc daemon to be running. And, thus such is my question.
<dx_>
etu: gp.jar is from globalplatform for smartcard
NoctisLabs has quit [Read error: Connection reset by peer]
NoctisLabs has joined #nixos
vonfry has quit [Quit: WeeChat 2.6]
<juhe>
Hello. After recent update, I lost the SSH_AUTH_SOCK env. variable settings in terminal. The ssh-agent runs though. Any idea what could be the reason?
Thra11 has quit [Ping timeout: 250 seconds]
gwen has joined #nixos
leotaku has quit [Ping timeout: 265 seconds]
<gwen>
Hi, did anything cause a dhcpcd service to start automatically in the NixOS 19.09 update? Because this new dhcpcd clashes with NetworkManager's dhclient
<sphalerite>
gwen: huh, that's odd. Do you have networking.useDHCP set?
<gwen>
sphalerite: No, I haven't
dx_ has quit [Quit: leaving]
<sphalerite>
gwen: I think networkmanager uses dhcpcd by default on nixos, did you explicitly configure it to use dhclient?
hyper_ch2 has quit [Remote host closed the connection]
rembo10 has joined #nixos
Thra11 has joined #nixos
toppler has quit [Ping timeout: 265 seconds]
<adisbladis>
Omgomgomg
<adisbladis>
I think we may hit 200k commits today
<gchristensen>
!!!
<worldofpeace>
sphalerite: hmm, on unstable I see dhcpcd.service running when we default to internal. perhaps useDHCP isn't working? disabling networking.dhcpcd.enable did the trick.
<adisbladis>
gchristensen: I feel like it's not that long ago the count was half of that (:
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @kolaente to release-19.09 « gitea: 1.9.4 -> 1.9.5 »: https://git.io/JegJp
toppler has joined #nixos
<talyz>
I'll have cake today and can pretend it's to celebrate 200k commits :)
dansho has quit [Quit: Leaving]
<ToxicFrog>
So, I have a file I want to refer to in some configs. Normally this would be easy enough: ${path/to/file} in the configs, or perhaps use copyPathToStore.
<ToxicFrog>
However, I can't refer to the file directly in the config; instead I need to refer to the directory containing it.
adamt has joined #nixos
<ToxicFrog>
Since I know the filename, I could use lib.strings.removeSuffix, but is there a better way?
<Christian[m]3>
Does anyone know what the current approach of packaging PHP applications that use composer for dependencies looks like? I know composer2nix exists, but it looks like it has not been widely adopred. Is it a usable thing or is there a different approach?
<adisbladis>
etu: ^
alexherbo2 has joined #nixos
<etu>
Christian[m]3: It's in a kinda bad place atm
<etu>
Christian[m]3: composer2nix is your best bet
rauno has quit [Ping timeout: 276 seconds]
<ToxicFrog>
...oh. copypathtostore doesn't wrap it in a directory, just prefixes it and plops it into /nix/store.
<Christian[m]3>
etu: seen your PR on improving the overall php ecosystem, great to see someone tackle this :)
fendor has joined #nixos
<Ariakenom>
NetworkManager silently fails if it's missing a plugin?
<Ariakenom>
you add a plugin by adding networkmanager-openvpn to networking.networkmanager.packages
<Ariakenom>
?
<Christian[m]3>
etu: does composer2nix have any obvious footguns I should be on the lookout for?
genesis has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<etu>
Christian[m]3: one is that it doesn't work with php73 which is default in nixpkgs due to a pinned very out of date composer version :/
toppler has joined #nixos
<ctp>
Hi. I have one strange behaviour I haven't experienced before. On a clean installed machine, whenever I change sth in my NixOS config and run a nixos-rebuild switch, the rebuild spends quite long in "setting up tmpfiles" phase. Even one-line changes in config result in a rebuild which takes 1 min or more. Any idea?
lsix has quit [Remote host closed the connection]
lsix has joined #nixos
<Christian[m]3>
etu but that is only a build time dependency, right?
<etu>
Christian[m]3: yes
<ctp>
So, even with zero changes, that's the time:
<infinisil>
ctp: All systemd.tmpfiles rules run every rebuild I think, and when some of those include directories that are rather big this might be the problem
rauno has joined #nixos
<johs>
Hm. There is a package "dust-0.2.3" which is not the same thing as "dust-0-91". It works fine to install "dust-0.2.3", but on "nix-env -u", it will upgrade to "dust-0-91". Is there anywhere to report this conflict? (Or am I doing something wrong?)
<infinisil>
ctp: Check out /etc/tmpfiles.d/nixos.conf to see what rules it includes, maybe some of those directories are rather big
<ctp>
@infinisil Right, it's about systemd.tmpfiles. I missed actually this context :) So, yeah, it's a clean installed thinkpad. Just rudimentary services, nothing fancy. I guess I gonna take deeper look into what it actually does
<infinisil>
ctp: Maybe look at the strace of the process that does this (Run sudo htop, go to the process that's taking a long time, then press 's')
<infinisil>
To see live logs of what files it touches
orivej has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @Infinisil merged pull request #71055 → treewide: Switch to system users → https://git.io/JelFX
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #72418 → bitcoin: install desktop file and pixmaps → https://git.io/JegTM
<azazel>
which clearly affects the wemu 4.0 shipped with 19.09 I'm unsure though if to file a bug on nixpkgs... I have no clear way on how to reproduce it
dreverri has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<lordcirth__>
azazel, so it's a conflict with the config files?
<azazel>
lordcirth__: I've currently switched to using qemu 4.1 from unstable, and it works... It's just 4.0 (that's shipped with 19.09) that's affected
<lordcirth__>
azazel, ok. Well, it seems like you ought to be able to reproduce that? Install pre-19.09, upgrade, break?
reallymemorable has joined #nixos
<azazel>
I've tried to patch it, but the actual patch is for 4.1 and I'm not familiar enough with the qemu code to backport it
toppler has joined #nixos
jedai has joined #nixos
orivej has joined #nixos
hmpffff has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
hmpffff has quit [Ping timeout: 240 seconds]
Mateon1 has joined #nixos
o1lo01ol1o has joined #nixos
Okinan has quit [Read error: Connection reset by peer]
<jumper149>
Hi, Im trying to build a derivation. I managed to build the program with "nix-shell -p ..." and then "make", but I dont get it with "nix-build".
toppler has joined #nixos
hyper_ch2 has joined #nixos
<jumper149>
I get an error message, that it didn't find the library from gcc.
<jumper149>
or maybe the message is actually from make, but still it doesnt find the lib.
<jumper149>
ty, that worked now I have to figure out the "make install" part :)
<symphorien>
:)
dreverri has quit [Remote host closed the connection]
mexisme has quit [Ping timeout: 268 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AluisioASG has joined #nixos
pjan has quit [Ping timeout: 240 seconds]
<tyrion1>
Hello, I am getting an error while trying to install nvidia drivers. I have no idea why is that, could anybody have a look? https://pastebin.com/7UayGuQ0
bvdw has quit [Read error: Connection reset by peer]
laas has quit [Quit: 30 day idle timeout.]
bvdw has joined #nixos
TheSirC[m] has quit [Quit: 30 day idle timeout.]
jumper149 has quit [Quit: WeeChat 2.6]
<tyrion1>
I updated the paste with the relevant part of my configuration.nix
alexoundos[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : 30 day idle timeout."]
alj[m] has quit [Quit: 30 day idle timeout.]
alxev[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : 30 day idle timeout."]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<emilsp>
I know this isn't gimp.net, but has anyone seen issues where disconnecting a display/keyboard completely trashes your gnome session and then trying to login back again with the display/keyboard being reconnected, the logged in gnome session is incapable of spawning a terminal or anything really?
<HappyEnt[m]>
anybody know why there is a dedicated auctex package besides the auto generated one from elpa? The only difference I see is that there seems to be a cheat sheet with keybindings included and some info files.
<{^_^}>
[nixpkgs] @Ericson2314 pushed to bash-no-undef-vars « rust, pypi2nix: Allow IN_NIX_SHELL to be undefined »: https://git.io/Jegtr
endformationage has joined #nixos
nixtacular has joined #nixos
<Twey>
How come our glibc is so old?
magnetophon has quit [Ping timeout: 265 seconds]
<Twey>
Even on master it's only 2.27 — that's a year old now
<nixtacular>
i have a question about the workflow for modifying "generated" packages in Nixpkgs (e.g., `nodePackages`, `vimPlugins`). the docs say that I should add or update a package by modifying a static file then running a generate script. for example, for `nodePackages`, I add my package to `node-packages-v10.json`, then run `generate.sh`, which updates
<nixtacular>
`node-packages-v10.nix`. the problem is that by doing so, it also updates every other package in `nodePackages`.
<nixtacular>
is there a better way to add just one package in these cases without modifying others? and when adding a new package for Nixpkgs, is it acceptable to submit a PR with dozens of updates + your new package?
<dminuoso>
nixtacular: You dont have to stage any of those changes.
hyper_ch2 has quit [Remote host closed the connection]
<wedens[m]>
Twey: can you imagine how many rebuilds glibc will cause? :)
<dminuoso>
Merge requests that contain unrelated modifications are generally frowned upon.
<nixtacular>
dminuoso: right. so i tried that approach, but it's a terrible UX because in some cases your new package introduces many new dependencies. so now i need to hunt and peck through `git add -i` to make sure i manually filter out all the modifications and keep my dependencies.
<nixtacular>
adding to my big list of potential Nix projects :-)
<nixtacular>
gchristensen: lol
<adisbladis>
It has a nice side effect: The node package set is actually updated
<dminuoso>
I guess ultimately it doesnt really matter on the nix-side of things. Projects wont break if they properly pin their nixpkgs.
<dminuoso>
And if they dont, then breakage is to be expected over time.
<nixtacular>
and most projects using node are using node2nix and generating their own manifests
<nixtacular>
yeah but now there's a confusing double standard. the packages in `nodePackages` are intended to be binaries, tools and such, not libraries used by projects. as such, they should really be maintained in the same way that any other package is maintained.
<nixtacular>
i mean, why should breakage be expected over time? we should aim for stability, no?
<nixtacular>
dminuoso: hmm this is actually a good point, but maybe one that needs to be communicated more clearly to new users. "while Nix package maintainers strive to maintain quality standards in the distribution, the Nix way is to rely on pinning for stability"
<nixtacular>
adisbladis: would you say the same for, say, glibc? :-)
<adisbladis>
nixtacular: It's not the same :)
<adisbladis>
But in theory, yes
<nixtacular>
every package is a special snowflake!!!! (Nix pun lol sorry)
<dminuoso>
nixtacular: I wouldn't say stability. I'd say determinism.
<dminuoso>
"stability" is a fuzzy term
<dminuoso>
Different people understand different things.
<nixtacular>
alright, let me add one more question. my intention in adding this particular node package is actually to get a certain vim plugin working. the plugin is literally a node package, it just needs to be wrapped using the vim build mechanics (to get placed inside of vim's runpath, etc.) `nodePackages` isn't totally appropriate because it's supposed, in
<nixtacular>
theory, to be a place for binaries. would it be appropriate to create a new generate script/subsystem just for node packages in `vimPlugins`?
sigmundv__ has joined #nixos
<nixtacular>
dminuoso: yes agreed. determinism is more accurate.
sigmundv has quit [Ping timeout: 240 seconds]
<raboof>
having packages stick to old versions 'by accident' is risky as well - I like the 'move forward and break things, but deterministically so you can actually debug and fix them' :D
<adisbladis>
nixtacular: It's OK to add an alias to nodePackages somewhere else.
toppler has quit [Ping timeout: 246 seconds]
<Twey>
wedens[m]: All of them? :þ But it's got to happen some time!
<nixtacular>
adisbladis: but the actual package itself should be added to `nodePackages`, then? i.e. source of truth should be `nodePackages`?
<adisbladis>
Yep
<nixtacular>
perfect, thanks
<wedens[m]>
yeah. it's just infeasible to do it for every minor release without some critical fixes
dreverri has quit [Remote host closed the connection]
erasmas has joined #nixos
tabasko has quit [Quit: tabasko]
waleee-cl has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<edef>
no strong reason to cut much further into PATH_MAX
<edef>
the shortest store paths are 45 chars
<adisbladis>
Also Nix is not FHS, in that sense /opt/nix would be strange
<adisbladis>
I'm guessing this has to do with the recent OSX troubles?
<{^_^}>
[nixpkgs] @Ericson2314 pushed to bash-no-undef-vars « qt5: `postPhases` can be undefined in setup hook »: https://git.io/Jegmp
drakonis has joined #nixos
<chreekat_>
The recent OSX troubles made me revisit my original skepticism... I bounced off Nix once or twice because the first thing I was confronted with was a violation of the FHS
drakonis1 has quit [Quit: WeeChat 2.6]
<adisbladis>
We love FHS :) We love it so much we have tons of FHS environments
zeta_0 has joined #nixos
<symphorien>
thechnically you can have you nix store wherever you want, but you lose the benefit of the binary cache
<adisbladis>
chreekat_: Nix is not the only project broken by apples shenanigans
<adisbladis>
Other, more FHS-compliant software, is also broken.
<adisbladis>
I like to call this the "proprietary experience", stuff breaks and you have no recourse to fix it.
Ariakenom has joined #nixos
<chreekat_>
Yeah, my colleague tried to install VirtualBox after Nix didn't work, and it was also broken. :P But I imagine it's a lot easier for VirtualBox to migrate than it would be for us
<symphorien>
unstable-small only guarantees few packages build
toppler has quit [Ping timeout: 276 seconds]
vuko has quit [Quit: leaving]
vuko has joined #nixos
<chreekat_>
Let me back up a bit -- I'm fine with /nix , really, and I am not victimized by the fact that 90% of my colleagues use Macs. I'm still curious - was there a technical reason? Maybe it's in the dissertation? I still want to read that
<niksnut>
there's no reason for /nix other than that it's short
<zeta_0>
symphorien: so nixos-unstable-small is only for servers so it won't work on my laptop ?
jreed has joined #nixos
<symphorien>
it only guarantees that fewer packages builds. In exchange it updates faster.
<samueldr>
might need a rephrase, it has the same guarantees in tests as the non-small channels, but doesn't wait for the full package set to be finished building
<samueldr>
to be finished *trying* to be built, even
drakonis has quit [Ping timeout: 264 seconds]
drakonis has joined #nixos
judson has joined #nixos
toppler has joined #nixos
drakonis_ has joined #nixos
<zeta_0>
ok, i'll try upgrading to nixos-unstable instead
<zeta_0>
vaibhavsagar: hello again, i am very happy with ihaskell, but for some reason when i try to upgrade my nix channel(nixos-19.03-stable to nixos-20.03-unstable) ihaskell throws an error that it's not able to build, is something wrong with the this ihaskell code ? https://hastebin.com/vohuqexisa.bash
fusion809 has quit [Remote host closed the connection]
vuko has quit [Ping timeout: 246 seconds]
q3k has quit [Ping timeout: 240 seconds]
vuko has joined #nixos
tv has joined #nixos
q3k has joined #nixos
nschoe has joined #nixos
<nschoe>
Hey everyone, I'm wondering if s/o can explain how to enable TLS with gstreamer? I have a shell.nix with gst_all_1.gstreamer and all plugins. When I'm launching a pipeline with uri=https://... it fails with "TLS/SSL support not available; install glib-networking (6)". So I added `glib-networking` to the `buildInputs` of the shell.nix, but it doesn't change anything.
<nschoe>
I've searched a bit in the *.nix files in the gstreamer directory for things like "enableHttps?" or "withGLibNetworking" or things liek this, but could not find.
<nschoe>
Is there smth obvious that I missed?
dreverri has quit [Remote host closed the connection]
<Twey>
nschoe: It *looks* like it's included in `gst-plugins-bad`?
<vaibhavsagar>
zeta_0: the latest IHaskell works with nixos-19.09 and hasn't been tested with 20.03
<Twey>
That requires openssl and gnutls
<nschoe>
Twey, yes, and in good/default.nix, I can find libsoup too. But it's not conditional, it looks enabled. So I can't understand why playbin doesn't work.
toppler has joined #nixos
<nschoe>
I'm literally launching the basic, basic pipeline, straight from the gsteramer tutorial "gst-launch-1.0 playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm"
<symphorien>
it probably needs to be wrapped with wrapGappsHook
<{^_^}>
[nixpkgs] @tadeokondrak opened pull request #72465 → vapoursynth-editor: use qt's mkDerivation → https://git.io/Jeg3d
<drakonis_>
the blocker seems to be a launch script rewrite done by kde's developers
ris has joined #nixos
shibboleth has joined #nixos
<worldofpeace>
I guess that PR could be unblocked if the previous bash scripts that were rewritten were extracted and used in substitute for the C++ one's
<drakonis_>
would be fine and dandy
<drakonis_>
ditching the redlight plasmoid would be good.
<nschoe>
Well I tried putting a few wrapGAppsHook here and there, and this doesn't seem to change anything :/
<nschoe>
Still got "TLS/SSL support not available; install glib-networking"
cosimone has joined #nixos
<symphorien>
wrapGappsHook has no effect in nix-shell
<symphorien>
it only does something in the fixupPhase of regular nix-build
FaeFly is now known as FireFly
toppler has quit [Ping timeout: 240 seconds]
<nschoe>
symphorien, no no I mean I added wrapGAppsHook in the nativeBuildInputs of the gstreamer good plugins, also tried glib-networking, etc. And rebuild the whole thing.
<symphorien>
ah
<nschoe>
Took a bit of time, but then nothing changes :/
szyk has joined #nixos
<nschoe>
But then again there isn't much information and I'm not sure what this is supposed to do.
<zeta_0>
vaibhavsagar: oh ok, thanks for letting me know
drakonis has quit [Quit: WeeChat 2.4]
mexisme has joined #nixos
<szyk>
during compiling AssaultCube 1.2.0.2 on NixOS 19.09 (virtual image) I get an error: /nix/store/0y7jmqnj48ikjh37n3dl9kqw9hnn68nq-binutils-2.31.1/bin/ld: client.o: in function `multiplayer(bool)': client.cpp:(.text+0x3d): undefined reference to `libintl_gettext'
Okinan has quit [Quit: Konversation terminated!]
<genesis>
szyk : i'm the maintenair
<genesis>
go pv :)
<szyk>
ok :)
Okinan has joined #nixos
drakonis has joined #nixos
toppler has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
kaba has joined #nixos
hpfr has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Ericson2314 pushed 10 commits to bash-no-undef-vars: https://git.io/JegsK
<kaba>
I found several PRs regarding wayland stating that plasma wayland works on nixos, but I can't seem to start it (neither with kwin_wayland nested, nor dbus-run-session.) they die with core dumped. I tried adding my user to the video group, no luck either and no comment on these PRs show a command for plasma
<kaba>
Could someone please tell me how can I try it?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<enteee>
I would like to work on a drv as non root user, what do I have to set up to nix-build as user work? Tried setting the NIX_STORE_DIODR to a user writable location but don't know if thats the right approach.
<clever>
enteee: nix-build should just work on non-root without any env vars
<enteee>
clever: hm.. but wont that try to copy the drv to /nix/store ?
johnnyfive has quit [Quit: I quit now.]
<clever>
enteee: yes, and if you lack +w access, it will do it via nix-daemon
johnnyfive has joined #nixos
<enteee>
clever: ok, thx. Maybe i've to go one step back, i am running installPhase inside a nix-shell, which does not seem to have this fallback enabled. How do I get this to work?
<infinisil>
kaba: You're not using the NixOS module?
<kaba>
infinisil: I'm not sure I follow: I have desktopManager.plasma5.enable = true in my configuration.nix, how can I start it?
<infinisil>
Hm I see, I'm not using it myself, but it should start when the display manager starts
<andi->
Whats our current story on openGL (nvidia, cuda, …) on non-nixos? It seems to require /run/opengl on the host to contain all the GPU related libs?
<infinisil>
I mean, you should be able to start it from the display manager
Okinan has quit [Quit: Konversation terminated!]
Okinan has joined #nixos
lucus16 has joined #nixos
<kaba>
infinisil: The x11 one starts out fine from sddm, but as I have read from several PRs, the wayland session's .desktop file is not found by it, it only works from command line. Though now that you say it i will try the default desktopmanager
lucus16 has left #nixos ["-"]
toppler has quit [Ping timeout: 246 seconds]
jreed has quit [Remote host closed the connection]
<waleee-cl>
zeta_0 you could always install icecat from the 19.09 channel while having the system on unstable?
<waleee-cl>
oh, he quit
mexisme has quit [Ping timeout: 276 seconds]
kolaente has joined #nixos
psyanticy has quit [Quit: Connection closed for inactivity]
zeta_0 has joined #nixos
fendor_ has joined #nixos
<zeta_0>
i commented out icecat, when i tried to upgrade to nixos-unstable again it threw another error: `cannot connect to daemon socket` ?
kolaente has quit [Quit: WeeChat 2.4]
vuko has joined #nixos
kolaente has joined #nixos
q3k1 has joined #nixos
<nschoe>
Hi again, has anyone managed to use an uninstalled version of gstreamer with gst-build?
kolaente has quit [Client Quit]
<nschoe>
I followed https://github.com/GStreamer/gst-build, it seems to work fine. But after running "ninja uninstalled" from build/ I don't have access to simple commands like gst-inspect-1.0 :/
<{^_^}>
zeta_0: Please expand your question to include more information, this will help us help you :)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-polysemy: update override for the latest version »: https://git.io/JegZC
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken packages to avoid evaluation errors on Hydra »: https://git.io/JegZl
growpotkin has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JegZ8
<wrl>
hey, if i'm trying to get some upstream binary-only closed-source software working and i would prefer not to patchelf, is there a good way to like... drop into a nix-shell with LD_LIBRARY_PATH set to include the relevant dependencies?
<clever>
wrl: why do you not want to use patchelf?
<wrl>
clever: these are audio plugins and there's a lot of them
<clever>
wrl: even if you fix LD_LIBRARY_PATH, the interperter is wrong, so you cant run any binaries
<wrl>
well they're getting hosted by an application that's already been patchelf'd
<clever>
you can just use a bash for loop, to apply the patchelf to everything automatically
<wrl>
they're .so
<wrl>
clever: i share the directory of plugins between some computers that run nixos and some that don't
<clever>
then use wrapProgram to add a LD_LIBRARY_PATH to the main binary, that is loading the plugins
<wrl>
i think that's the answer i want
zeta_0 has quit [Remote host closed the connection]
<wrl>
clever: is wrapProgram something I'd have to do in the derivation itself?
<clever>
yes
<clever>
100's of examples are in nixpkgs
<wrl>
got it
<wrl>
ok followup question –
<wrl>
(sorry for the linebreak)
mexisme has joined #nixos
<wrl>
since I now need to copy and modify some nixpkgs derivations and keep them somewhere manageable, is there a handy syntax for saying "import this directory of packages so i can use them"
<wrl>
from e.g. a home-manager config
<clever>
wrl: the import function will take the path to a file, and return whatever nix expr is in that file
<{^_^}>
[nixpkgs] @peti pushed 10 commits to haskell-updates: https://git.io/JegZ7
<{^_^}>
[nixpkgs] @urbas opened pull request #72480 → rustc: add support for armv7l targets → https://git.io/JegZN
bbarker has joined #nixos
<bbarker>
what's the appropriate way to set ulimits and such for a user in configuration.nix? looking through the options appendix of the manual and nothing is jumping out at me
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2019-11-01T17:31:41Z »: https://git.io/JegZh
<zeta_0>
also i got another question: when i execute: `nix-channel --list | grep nixos` when signed in as my user, the output is empty, but when i am signed as my super, the output returns `nixos https://nixos.org/channels/nixos-unstable`
<zeta_0>
is this normal ?
juhe has quit [Quit: Leaving.]
<clever>
zeta_0: yes, each user has its own channel list
<clever>
zeta_0: all nix-channel --list does, is cat ~/.nix-channels
drakonis_ has joined #nixos
<kolaente>
Hey there, when upgrading to 19.09 is it enough to just replace the 19.03 channel with the 19.09 and running nix-rebuild switch --upgrade?
<zeta_0>
so far nixos-unstable feels the same as nixos-stable, i can't really tell the difference ?
<{^_^}>
[nixpkgs] @risicle opened pull request #72483 → perlPackages.libapreq2: add patch for CVE-2019-12412 → https://git.io/Jegnc
<clever>
zeta_0: the difference is more that unstable updates often, and may sometimes break your configuration
<clever>
so youll only start to notice it as you update again in the future
<clever>
kolaente: pretty much
<zeta_0>
kolaente: yes, it just took me 2 commands, but i upgraded to nixos-unstable(20.03)
<kolaente>
And I don't need to set this somewhere in my configuration.nix? I saw system.Stateversion
<zeta_0>
kolaente: no
<clever>
,stateVersion kolaente
<{^_^}>
kolaente: Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
soju_ has quit [Ping timeout: 250 seconds]
<kolaente>
zeta_0 oh ok
drakonis has quit [Ping timeout: 246 seconds]
<kolaente>
thanks
<zeta_0>
kolaente: the comment says not to touch that
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis has joined #nixos
<zeta_0>
kolaente: your welcome
<kolaente>
zeta_0 still pretty new to all this
<kolaente>
I thought "The nix way of doing things" was to change this, since almost everything else is configured somewhere
<{^_^}>
[nixpkgs] @Mic92 merged pull request #67347 → ec2-utils: init at 0.5.1, include in amazon-image profile → https://git.io/fjNgi
<wrl>
is there a howto or something similar for creating an overlay?
<zeta_0>
kolaente: yeah nix forces you to do things differently than your used to, in the case of stateVersion when you do the 2 commands to upgrade, then state version gets changed automatically
<clever>
zeta_0: the stateVersion shouldnt be changing, and the whole point is to record what version your "state" is
<clever>
for example, postgresql likes to change the on-disk format of the db's with every version
<clever>
and nixos uses stateVersion to figure out what format you used when you first installed, so it can keep using that format
<clever>
any attempt to change stateVersion (automated or manual) will result in postgresql loosing the database
<zeta_0>
kolaente: i like how nix automatically sets environment variables for you, in debian/ubuntu i used to crash my system when having to manually set the environment variables(human error)
Thra11 has quit [Ping timeout: 240 seconds]
<kolaente>
clever: But if nix changes that automatically, it could scan the packages, finds out postgresql has incompatible changes and do some migration someone defined somewhere and then updates, could it?
<{^_^}>
[nixpkgs] @dirn opened pull request #72484 → darling: Use a version with a release tag → https://git.io/Jegnr
<clever>
kolaente: that not currently implemented, and sometimes the actions you must take extend to other machines
<clever>
kolaente: openssh host keys for example, changed the default type
<clever>
updating to the new type, results in mitm warnings for every remote machine that ssh's into the nixos box
toppler has quit [Ping timeout: 268 seconds]
<clever>
so, you must repair the ~/.ssh/known_hosts for every remote machine
<clever>
nixos has no way to do that
<zeta_0>
clever: ok, my mistake, i misunderstood
<kolaente>
clever: But if the postgresql format changes I can't upgrade postgresql
<bbarker>
clever: "Note that these limits do not apply to systemd services, whose limits can be changed via systemd.extraConfig instead.", does this apply for any service managed by systemd, or just core systemd services?
<kolaente>
clever: makes sense
<clever>
kolaente: nixos uses the stateVersion to keep you on an older postgresql, until you read the release notes, and follow the migration directions
<clever>
bbarker: all systemd services
<kolaente>
clever: okay that makes sense
<bbarker>
ok
<clever>
kolaente: for postgresql, you would pgdump the DB's, upgrade things, then re-import the DB's
Shoubi has quit [Read error: Connection reset by peer]
Shoubit has joined #nixos
<ajs124>
So my system config is compiling libreoffice, but nix-shell -p libreoffice downloads it from the binary cache, how do I figure out what the difference between these is?
<clever>
ajs124: nix-diff the 2 drv files
<ajs124>
clever: sure, but how do I get to the drv files?
<clever>
ajs124: when it starts building, it also tells you the drv path
<ajs124>
right, I knew that... thanks clever
<ajs124>
clever++
<{^_^}>
clever's karma got increased to 228
<zeta_0>
infinisil: cool, category theory felt much more simple to me once i understood abstraction, i haven't learned lambda calculus or type theory yet, i heard those help with haskell as well
szyk has left #nixos [#nixos]
ddellacosta has quit [Ping timeout: 276 seconds]
kolaente_ has joined #nixos
<bbarker>
clever: hmm, i've been using services.cassandra happily for a while, but I get an option-not-defined error when trying services.cassandra.serviceConfig
don_quijote[m] has joined #nixos
<clever>
bbarker: its under systemd.services.NAME.serviceConfig
<bbarker>
zera_0 <3 haskell
<bbarker>
ok
<zeta_0>
i still consider myself a beginner functional programmer, i used to code a lot of java years ago'
<zeta_0>
bbarker: what do you mean by that ?
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 29 commits to nixos-unstable-small: https://git.io/Jegc3
<clever>
you will only notice things are broken after a `nix-channel --update`
<clever>
and you can always `nix-channel --rollback` to undo, and instantly fix things
edef is now known as edef2
hmpffff has joined #nixos
<erba>
So I switched from nixos to debian on my work machine for.. reasons. Still trying to use nix but I can't seem to build stuff using nix on debian. I constantly get: "/build/env-vars: No such file or directory"
artemist has quit [Ping timeout: 260 seconds]
<clever>
erba: short term, add `sandbox = false` to nix.conf or use `--option sandbox false`
<zeta_0>
clever: ho that's good to know, when doing a `nixos-rebuild switch --upgrade` does the `nix-channel --update` command automatically get executed or do i have to execute that command manually as well ?
<zeta_0>
clever: i use a custom keyboard layout(that gets activated after logging in to xmonad), sometimes after things break it switches back to the qwerty layout, it's very annoying, i have a custom keyboard stickers on my keyboard so i can't see the original(qwerty) keys
<zeta_0>
clever: other than that, i think i'll be fine with nixos-unstable
<clever>
zeta_0: you can use sessionCommands to activate it also
<zeta_0>
clever: it still switches back to qwerty sometimes after something breaks during a rebuild
<zeta_0>
clever: it's strange
<clever>
zeta_0: thats weird
tg has quit [Ping timeout: 250 seconds]
chloekek has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
Unode_ has joined #nixos
<bdju>
does nixos have something like manifest files from guix? the ability to declare my user's packages in a file separate from the system stuff
<Unode_>
hi all, when I use nix commands I now get the java warning, in some cases printed several times. Is there any way to silence this warning?
<clever>
bdju: either define a set of packages in config.nix and install it with nix-env, or use home-manager
<wrl>
is there a way to get nix to rebuild a package for which the derivation has changed?
<bdju>
clever: will either of those allow system updates to be fast (due to low number of packages in system profile) with most things updated separately?
<clever>
bdju: yes
<bdju>
awesome
<bdju>
thank you
growpotkin has joined #nixos
<infinisil>
,declarative bdju
<{^_^}>
bdju: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
mexisme has joined #nixos
tg has joined #nixos
soju has joined #nixos
__marlene__ has joined #nixos
soju has quit [Ping timeout: 240 seconds]
<waleee-cl>
infinisil: has that one has been updated recently? I remembered a different output
mexisme has quit [Ping timeout: 246 seconds]
mjsir911 has quit [Quit: Goodbye, World!]
<infinisil>
No idea, could be
ee194350 has quit [Ping timeout: 250 seconds]
<__marlene__>
hey all
ee194350 has joined #nixos
<__marlene__>
installing nixos onto a laptop from a usb drive
<__marlene__>
live boot works fantastic however nixos-install gets stuck after installing a few packages
<__marlene__>
it doesn't seem to have a --verbose option??
<__marlene__>
no cpu or disk activity either, as far as i can see
<__marlene__>
does anyone have any idea what might be going on here? :)
Ariakenom has quit [Quit: Leaving]
<infinisil>
__marlene__: Where is it stuck?
<symphorien>
does it run out of memory ?
<__marlene__>
just saw a warning
<__marlene__>
seems to be timing out when trying to download a .nar.xz?
<clever>
__marlene__: does it have internet access?
kitemikaze_ has joined #nixos
<__marlene__>
yeah i'm writing from the same machine
<{^_^}>
nixos-org-configurations#57 (by rbvermaa, 1 year ago, closed): Users are reporting some issues with cache.nixos.org - gather information here
<__marlene__>
let me check that
Ariakenom has joined #nixos
<jackdk>
reconnecting to wifi would sometimes tickle it, but I don't know if it was a crappy router, something at the isp level or who-knows-what. I needed to move house anyway
<Jonathan27>
I have looked at plenty of articles about Haskell on Nix but it has been a while, so bear with me (:
ozychhi has joined #nixos
xd1le has joined #nixos
Jonathan66 has joined #nixos
<colemickens>
anyone else seeing runaway dhcpcd? Just destroyed my battery since I didn't notice. I need to just permanently keep htop open
<infinisil>
colemickens: Lots of issues like these with dhcpcd have been popping up recently, for me as well
<colemickens>
I just saw an issue from 12 hours ago too. Come to think it, I'm not sure if I should be seeing dhcpcd at all either. :(
soju_ has joined #nixos
<colemickens>
I liked worldofpeace's comment "Some parts of NixOS networking are just really confusing to me". I'd agree after having tried to push the iwd<->nm change through :P and that was just (not even) finishing someone else's effort.
soju has quit [Read error: Connection reset by peer]
Jonathan27 has quit [Ping timeout: 260 seconds]
<infinisil>
Hm, #72416 doesn't seem to mention anything about high CPU usage
<Jonathan66>
Haskell on NixOS is normally done with a .nix file right? (Does Cabal or Stack even work?) The problem is I do not want my Haskell projects to be specific for Nix, and I do not want to maintain two build methods. I also already have Haskell projects, how do I transition?
<colemickens>
No, but I couldn't help but wonder if they shared an underlying related config problem.
<colemickens>
(or dhcpcd being upset because dhclient changed some state out from under it, but I don't see dhclient running now either.)
<infinisil>
Ah nice this update was reverted
<colemickens>
infinii, good find, I didn't check PR discussion.
<colemickens>
er, wrong mention, sorry there the wrong infin-, and thanks infinisil.
jgeerds_ has quit [Ping timeout: 265 seconds]
<colemickens>
oh wow, it's actually an upstream dhcpcd bug, it looks?
ozychhi has joined #nixos
<aveltras>
anyone using latest haskell ide engine with cabal 3.0.0.0 ?
<hpfr[m]>
What is the issue with the steam derivation where it prints out a ton of curl attempts?
<Jonathan66>
I guess the main question is, how can I build the Haskell projects on NixOS which are currently using cabal?
Thra11 has quit [Ping timeout: 245 seconds]
<exarkun>
It seems like `security.acme` waits about a week before trying to issue a certificate
<exarkun>
How do people cope with this
<exarkun>
Jonathan66: haskell.nix can do stuff with cabal projects
<jackdk>
Jonathan66: generally any nix you write for a haskell package is set up so you can get a shell with ghc and dependencies to hand, and then you do the build with cabal
<hpfr[m]>
And why am I building texlive.combined.scheme-medium and nvidia-settings, they seem like they’d be common?
<__marlene__>
it's released as a binary .tar.gz which is sort of brain damaged i know...
edwtjo has quit [Ping timeout: 240 seconds]
<__marlene__>
it was working fine under Kubuntu (until it broke)
<__marlene__>
but now if I try to run it it says No such file or directory
kaba has quit [Remote host closed the connection]
Neo-- has quit [Ping timeout: 245 seconds]
<__marlene__>
even though the file is right there?
* colemickens
usually finds it easier to write a source package nix file than try to get binaries running
<Jonathan66>
@exarkun Wow, I never ran into that before.
edwtjo has joined #nixos
edwtjo has joined #nixos
<exarkun>
I just started using it a a few ago
<exarkun>
so far so good
<__marlene__>
colemickens: think you could point me the right way with that? i think it's being built with cmake
<__marlene__>
there seems to be a helper for cmake in the nix sources but ... how do i use that?
<__marlene__>
google's doesn't exactly serve me the most relevant results
Rovanion has joined #nixos
<colemickens>
gr, I can't autocomplete usernames with leading underscores in Fractal?
<colemickens>
marlene, give me a few minutes, I already started writing a package. If it works, I'll walk you through the process.
ozychhi has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
<gchristensen>
I have a machine with two root disks in a mirror. usually I'd use grub's feature to install mbr to both, but it is uefi. any tips on how to handle this install?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @marsam to master « pythonPackages.flask-cors: fix build »: https://git.io/JegW4
<__marlene__>
colemickens: idk
gxt has quit [Quit: WeeChat 2.6]
<gchristensen>
oh neat, ajs124
<__marlene__>
colemickens: paste progress/output? maybe i can pick it up from there
toppler has quit [Ping timeout: 240 seconds]
mexisme has joined #nixos
<colemickens>
_marlene_, I got side tracked. I'll send a draft PR and tag you or ping you here.
<__marlene__>
colemickens: cheers!
* colemickens
hm and underscores are treated as markdown in riot. Grumble again.
<colemickens>
Should be 10 mins. Alternatively whatever the invocation is for patchELF might be enough to one-off patch the binary release and unblock you. Someone here surely knows it
qwdewqe has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
<exarkun>
when security.acme service *does* run, it blows up with exception from simp_le
qwdewqe has quit [Remote host closed the connection]
growpotkin has joined #nixos
toppler has joined #nixos
trevthedev has joined #nixos
<trevthedev>
hi all
Acou_Bass has quit [Ping timeout: 252 seconds]
<trevthedev>
So I'm trying to set up a GL environment in NixOS so I can learn more on OpenGL. I have this file here as a test for the shell: https://0x0.st/zY7D.cc
<trevthedev>
I get the error: /nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ld: /run/user/1000/ccVh5Di7.o: undefined reference to symbol 'glColor3f'
<trevthedev>
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ld: /nix/store/6zl0bz42r8b4mq9zifngs0s5ykn8iqkb-libGL-1.0.0/lib/libGL.so.1: error adding symbols: DSO missing from command line
<trevthedev>
collect2: error: ld returned 1 exit status