<ivan>
Fare: I have used all of them and vmware has the fewest problems
<eacameron>
srhb: infinisil: I'm hoping this is upstreamable? If so, where should it live? `lib`?
alex`` has quit [Ping timeout: 245 seconds]
<infinisil>
eacameron: Neat
<infinisil>
eacameron: Probably not fit for nixpkgs, but you could publish it through NUR
<eacameron>
Is there a way it could be fit? I expect many people would want this...
<edef>
NUR?
<edef>
it's not even clear to me what this *does*, so for starters it would need documentation
<eacameron>
edef: Oh... lol. Sure. I had a convo with infinisil and srhb earlier about it.
<eacameron>
It lets you document your attrsets so that when you do `nix-build -A help` you get a pretty output of all the things you can build, but the annotations are erased for nix-build so you don't have to traverse through them
jtojnar has quit [Read error: Connection reset by peer]
<infinisil>
eacameron: I'm not sure this would fit in nixpkgs
jtojnar has joined #nixos
<eacameron>
I'm curious why
<infinisil>
I don't think nixpkgs should be used as a collection of random functionality
<infinisil>
But more fucused on what's useful in nixpkgs itself
<infinisil>
More decentralization is good too, nixpkgs is huge enough already
<eacameron>
I can certainly get on board with that last thing...
<infinisil>
And with NUR or in the future flakes, this will become easier to use
<Fare>
ivan: I believe the reason my associate chose docker was because it was supposed to work better with kubernetes.
growpotk- has joined #nixos
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to staging « libjpeg-turbo: 2.0.2 -> 2.0.3 »: https://git.io/fjhhL
<eacameron>
infinisil: The problem, of course, is that if this *isn't* in nixpkgs, the overhead to use it likely undermines its usefulness. It's useful to a thousand projects, in a very small way. But it's probably not single-handedly useful enough to justify a lot of work to get it
<Fare>
can nixos create an image that will work on vmware / virtualbox and docker at the same time?
<clever>
Fare: docker doesnt use image files much, and systemd doesnt really work in docker
wildtrees has quit [Quit: Leaving]
dycan has joined #nixos
ris has quit [Ping timeout: 245 seconds]
<Fare>
can I share a recipe between the three, with a different overlay maybe for each target? Actually, I might only need two targets, docker and say virtualbox.
<clever>
Fare: yeah, the expr to build the app itself can be shared, youll just need some differences to make an image around it
<worldofpeace>
evanjs: yeah. see the franz expression, you can drop `libPath` and the manual patching in `postFixup`. Simply add `autoPatchelfHook` to `nativeBuildInputs`
<Fare>
I don't understand escaping $$ in installPhase = statements.
dycan has quit [Ping timeout: 244 seconds]
<Fare>
If I want the shell script to have a $, how do I do that?
<worldofpeace>
Like '' $$ ''
<worldofpeace>
$$
<Fare>
I tried that... it somehow expanded to 1 (!)
<evanjs>
worldofpeace: right, starting to get deja vu; I feel like this was one of the first things I tried with autoPatchelf, but it's dumping core (illegal hardware instruction) :D
<evanjs>
Thread 11 "Chrome_IOThread" received signal SIGILL, Illegal instruction. -- as if that's even close to enough information
<selfsymmetric-mu>
If you run `$$` in bash it gives you the PID of the process, right?
<clever>
selfsymmetric-mu: if you run $$, then it will look for the pid of bash in PATH, and then say command-not-found
<selfsymmetric-mu>
clever: thanks! Never got too good at bash proper. Too much of an Emacs gargoyle.
<selfsymmetric-mu>
clever++
<{^_^}>
clever's karma got increased to 192
dycan has quit [Ping timeout: 244 seconds]
<craige>
Does anyone know of any doco or blogs for using `postgresql.identMap`? I'm trying to enable a service via NixOps and the only examples I can find are Hydra examples but I've been unable to locate clarification of what the three fields ie: `hydra-users hydra hydra` are telling me, so I can replicate it on another service. Thanks! :-)
selfsymmetric-mu has quit [Remote host closed the connection]
<clever>
craige: i think your best bet is the official postgresql docs
<clever>
craige: read the nixos module to see what file the strings winds up in, then check the postgres docs to see what that file does
<craige>
I'll try that tack, thanks clever :-)
selfsymmetric-mu has joined #nixos
<craige>
You're 100% right clever, The nix module gives me nothing so I'll have to hit the upstream docs.
drakonis2 has joined #nixos
drakonis has joined #nixos
<worldofpeace>
evanjs: can you gist the output of the build?
<Fare>
Oh wow, I need yet another additional level of quoting in a <<EOF script inside there...
<simpson>
Yeah, it's not *good* or anything. :c
<Miyu-chan>
Because like, Nix has distributed builds support if you go file granularity.
<Miyu-chan>
And I just find that cool.
<simpson>
That sounds super-cool!
<Fare>
But then the shell scripting in Nix doesn't have file granularity
<Fare>
and rewriting your rules to make it so would probably be an extraordinary burden on Nix.
<Fare>
Reminds me the amazing engineering that Google put into Bazel, to achieve file granularity for gigantic builds larger than NixOS.
<infinisil>
,escape''
<{^_^}>
'' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<simpson>
Fare: Yeah, trying to do extended amounts of stuff in shell is usually losing. If you're comfortable pastebinning what you're working on, we might be able to offer tips. In particular, I wonder whether some nixpkgs library functions might help you.
<Miyu-chan>
simpson: Hm, conjecture, but it might be related to you scraping the directory tree? I think it's much simpler if you don't do that. I mean, for languages which don't have actual support for dependency checking, you have out-of-band instructions(makefile)
<Miyu-chan>
Also, more conjecture, but file-granular builds not being prevalent in Nix is more on culture than technology. Nix is IMO means to supplement package management and not build systems, even if it works for both.
<Miyu-chan>
Correct me if I'm wrong anyone.
<simpson>
Miyu-chan: Monte's modules are also compilation units, so we really *can* compile each file to bytecode. What's missing here is a Monte compiler frontend that can examine a file's extension and make a good life decision.
<Miyu-chan>
Yeah. Hm, now I'm curious how languages with hieararchal module systems work.
<Miyu-chan>
hierarchical
<Miyu-chan>
Did I get that correctly? lol
<Miyu-chan>
nix-make addressed that a bit, by examining the include's relative depth, IIRC?
justanotheruser has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
sb0 has quit [Quit: Leaving]
drakonis_ has joined #nixos
infinee has quit [Ping timeout: 246 seconds]
drakonis2 has quit [Ping timeout: 276 seconds]
drakonis1 has joined #nixos
fusion809 has joined #nixos
justanotheruser has joined #nixos
drakonis_ has quit [Ping timeout: 276 seconds]
drakonis1 has quit [Ping timeout: 258 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<jasom>
so the contributing guide suggests basing the PR off of the commit that nixos-version returns; however that won't cleanly rebase onto master for me; is this expected?
drakonis1 has joined #nixos
<infinisil>
jasom: Huh, not sure why the guide suggests that, because of exactly that
<infinisil>
If you modify an older version of nixpkgs then it's clear that there might be conflicts with the current version
<infinisil>
You could of course make a merge commit, but that's generally not done in nixpkgs (not sure why actually)
Yaniel has quit [Ping timeout: 258 seconds]
<jasom>
well I can just cherry-pick it to master
evax has joined #nixos
infinee has joined #nixos
drakonis has quit [Quit: WeeChat 2.4]
<infinisil>
Wouldn't this result in a merge conflict as well?
nexgen2 has joined #nixos
<infinisil>
(which you'd have to fix while cherry-picking)
<jasom>
infinisil: nope, there are no conflicts in files I've changed
<infinisil>
I see :o
<jasom>
it looks like changes are contributed to master and then cherry-picked to the release; that's going to make master and the release unmergable between each other.
<gyroninja>
Hi, I need some help making my shell.nix for a project I'm working on. I have a Nix derivation which builds several libraries. From my shell.nix I want to import that derivation and put those libraries on my LD_LIBRARY_PATH. I'm not sure how to pull this off. I tried putting it in the buildInputs, but that did not seem to do anything.
iqubic` has joined #nixos
marusich has quit [Ping timeout: 276 seconds]
iqubic` has quit [Remote host closed the connection]
nexgen2 has quit [Remote host closed the connection]
nexgen2 has joined #nixos
<srhb>
jybs: I can answer to that. What's up?
<jybs>
I can't seem to get a node running, coredns just fails
<jybs>
Also I can't see any instructions for joining hosts together?
<srhb>
jybs: You should probably pastebin your logs, config and version of nixpkgs. :)
<jybs>
Will do!
<jybs>
Logs from kubelet?
<srhb>
jybs: I expect to merge an update and simplification to the k8s module today, but that only affects unstable. Also, coredns should not be affected (nor have I really seen any problems with it)
<srhb>
jybs: And adding more nodes is really no different on NixOS from other OS'es. :)
<jybs>
Would I need to generate my own certs for that to work (multi-master)?
<jybs>
For now yes (sorry the questions about multihost were unrelated)
<srhb>
I must say I barely remember what it was like in 19.03, let me just check the logs.. :)
<jybs>
I can just use 19.09 if it's a lot better?
<jybs>
I'd rather use unstable if is a new way of doing things
nexgen2 has quit [Ping timeout: 268 seconds]
<srhb>
jybs: It is a new way, not sure I will call it better, because we expect to redesign it for 20.03 (again) because it got way too complicated.
<jybs>
k8s is a complicated thing :)
<jybs>
Is this the remove systemd, replace with eventual service up via loops stuff?
<srhb>
Anyway, I suspect that error is probably simple, let me look for a moment..
<srhb>
jybs: That's just a simplification we want to get it in time for 19.09
Christian[m]5 has joined #nixos
<srhb>
For 20.03 there's two main schools of thoughts now: One is simplifying radically, basically making the module a 1-1 translation of just feeding arguments and config files to k8s -- ie. a completely dumb and simple module, and then letting some out of tree module build on top of that for any smart stuff.
<srhb>
The other proposal I've seen is basing it all on kubeadm.
<jybs>
Is kubeadm declarative?
<srhb>
Not to my knowledge.
XMatrix has joined #nixos
<srhb>
But I've yet to see enough of it demonstrated to really have an opinion.
lambda-11235 has quit [Read error: Connection reset by peer]
<srhb>
I'm currently in favour of the first approach, but we'll see.
<jybs>
So the issues at the moment are to do with bootstrapping and advanced config only right? Once you've got a cluster you're golden?
<srhb>
Oh yes, it's really nice once it's up.
<jybs>
Ok. Shoudl I just jump to unstable?
<srhb>
jybs: I don't want to recommend that unless you feel adventurous. But I do remember the state of unstable better. :)
<jybs>
I'm deploying hosts via morph, so if it doesn't work I'll just scrap them and go back
<jybs>
Hang on
<srhb>
jybs: I'll get some tea then.. :P
<srhb>
jybs: There's also #nixos-kubernetes btw. It's not very active currently, but maybe one day :-)
<srhb>
Ariakenom: You're always using one, as far as I know.. And on Intel you're always using the right one, unless you set that option :P
<eyJhb>
srhb: "right one"? :D
_zincy has joined #nixos
<srhb>
I don't think there's ever a reason not to use the intel recommended one, no matter your workload or power saving requirements.
<srhb>
I'm under the impressed it's just better in all regards.
Tucky has joined #nixos
<eyJhb>
Doesn't nixos by default set it in hardware??
<srhb>
Probably. presumably to the right one :P
<sphalerite>
yeah, to the one set at nixos-generate-config time. Which is the right one unless you adjust it in the installer :)
<eyJhb>
` powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";` is in my hardware conf, but I don't know if I set that
zupo has joined #nixos
<srhb>
That's correct and is what generate-config gives you for intel
<sphalerite>
^
<Ariakenom>
I did read the arch wiki but had a hard time figuring out what it meant especailly "performance: Run the CPU at the maximum frequency." "The performance governor should give better power saving functionality than the old ondemand governor"
<Ariakenom>
ah I see now there is no ondemand
<srhb>
Basically it means "never use ondemand"
dbmikus has quit [Ping timeout: 264 seconds]
<sphalerite>
Ariakenom: in the second sentence, "performance" refers to the different intel_pstate performance governor. I think.
<srhb>
Yeah.
<sphalerite>
unrelated: home-assistant's packaging is a pita, no wonder it's so out of date
<srhb>
sphalerite: The stuff in nixpkgs? or the included part?
<sphalerite>
srhb: the nixpkgs stuff, not sure you mean by the included part… yet D:
drakonis1 has quit [Remote host closed the connection]
siel has joined #nixos
<Ariakenom>
if I have nix.gc.dates="weekly" do the computer has to be on at some specific time for it to run?
<eyJhb>
Once did a `sudo shutdown -r 0` in a terminal, because I wanted to reboot my laptop. Forgot I was connected to my server. So that is why my uptime at home is awful
<srhb>
eyJhb: High uptime, fresh kernels, pick one :P
<srhb>
Ariakenom: I think so, unless you set persistent in the job.
<srhb>
Ariakenom: Since it's a calendartime unit
<eyJhb>
*me as sysadmin I guess :p Current uptime is 12 days, which.. Seems weird
<srhb>
Ariakenom: Can I suggest you use auto gc limits instead? Getting rid of your garbage usually just means more build time in the future.
<eyJhb>
pfSense uptime => 242 days :D
<srhb>
(It has a few issues related to locking, but you're unlikely on a single user system to run into any of them)
<Ariakenom>
srhb: Thanks I see. I was using nix.gc.options = "--delete-older-than 30d" which removes profiles. Any advice on when|how to remove profiles?
<srhb>
I basically never do that unless I run out of space.
<srhb>
I guess if you have very little, it might be more interesting to automate.
hyper_ch2 has quit [Remote host closed the connection]
<Ariakenom>
Ok. I will just clear some old ones, that I wouldnt want to boot into, manually.
<eyJhb>
zimbatm: do you still use NixOS+Vagrant?
ng0 has joined #nixos
revtintin has joined #nixos
<zimbatm>
eyJhb: not that much since I have nixos installed on the host
johanot has joined #nixos
makefu has quit [Ping timeout: 258 seconds]
<eyJhb>
Yeah okay, just wondered if there was any plan to include 19.03 on the hasicorp vagrant cloud thingy :)
XMatrix has quit [Quit: Bye]
o1lo01ol1o has joined #nixos
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<etu>
Do anyone know if there's an easy way to set up chrooted/jailed sftp accounts that doesn't have ssh access but goes over SSH.
<eyJhb>
Then you should get SFTP only, and can auth with keys+chroot :)
<eyJhb>
I hope I can set it up sometime this weekend. - Hope I understood you correctly
<etu>
eyJhb: I like that solution, but won't that create a separate sshd process on a different port? I guess that could work for my usecase.
<etu>
eyJhb: I'm working on my migration from arch, these are the kinds of things that can take time.
hyper_ch2 has joined #nixos
dasj19 has quit [Quit: dasj19]
<eyJhb>
etu: it will! But for my usecase that is fine as well. You could also skip the container part, and then just use some local folder on your computer owned by root, then chroot into that
<eyJhb>
I am going to use it as a quarantine for backups, so I will move them to a external drive later
<etu>
eyJhb: Yeah, that's kinda how people do on other distros
<eyJhb>
But I still like that anything that "logins" or relies on SSH like that, is isolated
<eyJhb>
Tsk, other distros :D (I have the same setup on Debian that I just described, but using Docker)
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<etu>
I'm having a list of users that needs readonly sftp access to some files. But it should be isolated from the rest of the system.
joshuagl has joined #nixos
Zer0xp has joined #nixos
<etu>
It would be nice if ssh could proxy connections to other instances depending on username, can it do that? :D
<eyJhb>
I would think so yes, but I have not done it :p
<{^_^}>
[nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/fjjJ5
<{^_^}>
[nixos-weekly] @domenkozar merged pull request #101 → weekly 13: add industrial-strength deployments blog post → https://git.io/fjh5t
Makaveli7 has joined #nixos
<etu>
eyJhb: That way I wouldn't need another port :p
<eyJhb>
Ohh, so you would proxy from host to container?
<eyJhb>
Hmm...
<eyJhb>
Try and let me know if it works etu ! :D
iqubic has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
chr15 has joined #nixos
<etu>
eyJhb: yes, I don't think I've seen that as a feature. But ssh has *a lot* of features.
<eyJhb>
etu: but ssh client does have proxy commands, so I see no reason the server should not
iqubic has joined #nixos
iqubic has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @vcunat closed pull request #68129 → [staging] meson: fix build on darwin → https://git.io/fjjeh
<wedens>
how can I have multiple kernels to choose in a bootloader (grub)?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Remote host closed the connection]
<teto>
so I have a pinned_nixpkgs.nix with only "builtins.fetchTarbal { ... }" and in my shell.nix the top parameters are '{ nixpkgs ? import ./pinned_nixpkgs {}}:' but I get "attempt to call something which is not a function but a string with context,". I would like to put just the fetchTarball definition in its own file so that it can be imported from both shell.nix and default.nix
<teto>
wedens I am not sure it's documented but you should look for 'nesting.clone', that might work
o1lo01ol1o has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
emptyfl41 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
iqubic` has joined #nixos
anderslu1dstedt has joined #nixos
emptyfl41 has quit [Ping timeout: 245 seconds]
iqubic` has quit [Client Quit]
iqubic has quit [Ping timeout: 276 seconds]
<wedens>
teto: yeah, looks like something that may work. thanks
iqubic has joined #nixos
anderslundstedt has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @peti pushed to master « heimdall: fix the GUI front-end's run-time errors »: https://git.io/fjjUz
<andi->
Did anyone get gnome calendar working with `online accounts` outside of a full blown gnome3 session? Whenever I try to setup an account the buttons just don't do anything.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has quit [Ping timeout: 264 seconds]
grw has quit [Ping timeout: 246 seconds]
<Taneb>
Is there a setting somewhere for "maximum concurrent nix-builds"?
<symphorien>
max-jobs iirc
fendor has joined #nixos
m0rphism1 has quit [Quit: WeeChat 2.4]
Chiliparrot has joined #nixos
o1lo01ol1o has joined #nixos
<Taneb>
symphorien: does that apply even if there's multiple invocations of nix-build?
makefu has quit [Ping timeout: 268 seconds]
<symphorien>
If you use the daemon then yes
<tokudan[m]>
,locate dmidecode
<{^_^}>
Found in packages: dmidecode
numerobis has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
makefu has joined #nixos
alex`` has joined #nixos
<tokudan[m]>
,locate last
xavierm02[m] has left #nixos ["User left"]
<{^_^}>
Found in packages: acct, busybox, sysvinit, linux.dev, logstash5, plan9port, sysvtools, utillinux, libuuid.bin, r2-for-cutter, utillinux.bin, linux_mptcp.dev, linuxPackages_4_4.kernel.dev, linuxPackages_4_9.kernel.dev, linuxPackages_5_0.kernel.dev, linuxPackages_4_14.kernel.dev, linuxPackages_4_20.kernel.dev, linuxPackages_xen_dom0.kernel.dev, linuxPackages_latest-libre.kernel.dev, linuxPackages_latest_hardened.kernel.dev, and 3 more
dycan has joined #nixos
m0rphism has joined #nixos
fendor has quit [Ping timeout: 258 seconds]
andreabedini has joined #nixos
o1lo01ol1o has joined #nixos
BigBen has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
philr has joined #nixos
revtintin has quit [Quit: WeeChat 2.4]
fionnan has quit [Ping timeout: 245 seconds]
BigBen has quit [Quit: Leaving]
BigBen has joined #nixos
Unode has quit [Ping timeout: 244 seconds]
fionnan has joined #nixos
Unode has joined #nixos
dycan has quit [Ping timeout: 268 seconds]
veske2 has joined #nixos
veske has quit [Ping timeout: 245 seconds]
<layus[m]>
Any hints on how to add search paths to a dlopen() call in nix ? gs (from ghostscript) does not find a library passed by name
<layus[m]>
LD_LIBRARY_PATH works, but is there something better ?
cfricke has joined #nixos
<{^_^}>
[nixpkgs] @avdv opened pull request #68134 → wtf: Add `infocmp` to PATH, fixes #68103 → https://git.io/fjjTh
tobi25 has joined #nixos
BigBen has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
BigBen has joined #nixos
zupo has joined #nixos
ixxie has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Ping timeout: 268 seconds]
Unode has quit [Ping timeout: 268 seconds]
Unode has joined #nixos
boxdot has quit [Quit: Leaving.]
hyper_ch2 has quit [Remote host closed the connection]
knupfer has joined #nixos
dycan has joined #nixos
orivej has joined #nixos
Okinan has joined #nixos
alex`` has quit [Quit: WeeChat 2.5]
dycan_ has joined #nixos
cfricke has quit [Quit: WeeChat 2.5]
boxdot has joined #nixos
dycan has quit [Ping timeout: 258 seconds]
DariusTheMede has joined #nixos
fendor has joined #nixos
emptyfl41 has joined #nixos
zupo has quit [Ping timeout: 268 seconds]
dycan_ has quit [Ping timeout: 268 seconds]
emptyfl41 has quit [Ping timeout: 268 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dycan has joined #nixos
zupo has joined #nixos
<provessor[m]>
Any package maintainers here?
<provessor[m]>
Could anyone give me an idea of how large the barrier is in terms of popularity for a system option to be included
<{^_^}>
[nixpkgs] @rvolosatovs opened pull request #68135 → Add Go 1.13 → https://git.io/fjjkQ
<provessor[m]>
Such as a window manager, etc.
iyzsong has joined #nixos
<infinisil>
provessor[m]: Not very high generally
o1lo01ol1o has joined #nixos
<provessor[m]>
infinisil (@freenode_infinisil:matrix.org) : So if I were to say continue writing my own window manager that probably no-one else is ever going to use, do u think that would have a chance of making it in or would i have to maintain my fork to get that option
<Yaniel>
as long as you maintain it..
<provessor[m]>
Of course I would maintain it, this is just whether making the pull request is worth it
<infinisil>
Hmm not sure
<infinisil>
I'd rather have packages be used by at least a couple people
<Taneb>
provessor[m]: it might be easier for you in that case to define a module locally
fendor has quit [Ping timeout: 264 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
v88m has quit [Ping timeout: 244 seconds]
cfricke has joined #nixos
<provessor[m]>
Taneb: would I define that in a very similar way to a custom package?
<Taneb>
provessor[m]: it's not a million miles away
<zfnmxt>
There's a matrix room, but it's bridged to here anyway. Matrix is basically FOSS discord.
<andi->
discord is that gamer voice chat + text chat thingy
<craige>
ugh, corrcrt andi- :-/
<craige>
I may be a little tired on this side of the planet :-)
hyper_ch2 has quit [Remote host closed the connection]
<craige>
Does anyone have any handy doco or examples of a configuration.nix (or any .nix) that uses fetchurl or similar to put a /file/right/here ? my google foo has been failing me tonight.
acarrico has joined #nixos
<ldlework>
I wrote a knowledge/reference bot for Discord, that's why I was wondering.
<ldlework>
I don't think Matrix has the concepts of Embeds.
<zfnmxt>
Matrix has "integrations" which include things like bots and bridges and stuff. Not sure if the same, I don't use discord.
<zfnmxt>
(Or maybe those "integrations" are actually just Riot-specific and don't have anything to do with the Matrix protocol, I dunno)
xkapastel has joined #nixos
sebastien[m]1 has joined #nixos
dasj19 has joined #nixos
<ajs124>
I'm having a problem with python3.buildEnv rn. I'm passing it some custom packages in extraLibs and end up with an empty site-packages folder. Any ideas what might be happening?
<beyuu>
still cant get my sound to work. Tried using my Speakers instead of my headphones with no success. I am on the latest Kernel. Made sure nothing is muted and switched to stereo output for the speakers. Is there anything else i can try to get my sound blaster ZxR to work?
<infinisil>
beyuu: Did it work previously?
<beyuu>
works on windows. I am on a fresh linux install.
ddellacosta has joined #nixos
<beyuu>
the one thing you had to on windows is switch from speaker to headphone mode. I am also using the extension to plug in my audio devices.
DariusTheMede has joined #nixos
hyper_ch2 has joined #nixos
<ivan>
beyuu: does alsamixer (in alsaUtils) show your card?
<beyuu>
yes
<ivan>
beyuu: you don't have any MM at the bottom indicating muted?
<infinisil>
beyuu: Did you check the "Configuration" tab in pavucontrol? Sometimes I need to change something there to make stuff work
Jackneill has quit [Ping timeout: 268 seconds]
Neo-- has quit [Ping timeout: 245 seconds]
sigmundv has quit [Ping timeout: 246 seconds]
<beyuu>
nothing is muted. Tried stero output for the speakers and 5.1 output for the headphones. nothing worked
<evanjs>
Did the sponsorship link for NixOS change? Was going to edit my amount but then realized I was being redirected to a different site than before
DariusTh` has joined #nixos
<evanjs>
Before it was direct via PayPal, but it doesn't look like I can associate that existing payment with my newly created open collective account?
DariusTheMede has quit [Ping timeout: 268 seconds]
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
<eraserhd>
huh, why won't home-manager make my local user symlinks (when doing nixos-rebuild switch) on nixos?
<hyperfekt>
eraserhd: You're using the home-manager module?
veske2 has quit [Quit: This computer has gone to sleep]
<hyperfekt>
eraserhd: Are you getting any error message? Is the home-manager service mentioned at all in the nixos-rebuild output?
<eraserhd>
"the following new units were started: home-manager-jfelice.service" (which is the user)
knupfer has quit [Ping timeout: 264 seconds]
<averell>
https://paste.ee/p/sNhYZ <-- i'm (type-)confused. is something being coerced here? why can't i access derivation attributes in the second case?
<averell>
i'm a moron, the attribute wasn't part of all derivations, nvm.
<{^_^}>
[nixpkgs] @samueldr pushed commit from @dtzWill to release-19.03 « webkitgtk: 2.24.3 -> 2.24.4 (security!) »: https://git.io/fjjYq
schjetne has quit [Ping timeout: 246 seconds]
<eraserhd>
OK, so the service is working, mostly, but some files are clearly missing. How do you debug home-manager on nixos/
<rycee>
eraserhd: Do you have your configuration anywhere?
<hyperfekt>
eraserhd: You can try home-manager.verbose to get some more info
<rycee>
eraserhd: If you are using master then you could set `home-manager.verbose = true;` in your system configuration and then check the output in the system journal.
<hyperfekt>
oh, it's only 28 days old. very fresh option, you could be amongst the earlier adopters :b
<eraserhd>
rycee hyperfekt: oh, OK. I *am* using master :)
<gh30rgh3>
i am seriously thinking about switching to nix but i am doing the same way i did before switching to arch... spying from a distance, reading documentation, checking available packages... trying in a VM.
<gh30rgh3>
does anybody have an i3wm dotfile for nixos? I want to read through the package config
<pbb>
gh30rgh3: you can just use the same i3 config you would use with arch, or you can let nix generate the dotfiles with something like home-manager
<gh30rgh3>
<pbb "gh30rgh3: you can just use the s"> yea, i have the i3wm dotfiles. i want to see the full package config
orivej has joined #nixos
<eraserhd>
rycee hyperfekt: Ok, it's working now. I removed some of my old symlinks, made by a pre-home-manager script, and that's what fixed it.
<pbb>
gh30rgh3: what do you mean with "full package config"?
<hyperfekt>
Strange, I'm used to home-manager failing activation wen it can't place a symlink.
<gh30rgh3>
pbb: 👆️
<eraserhd>
Pre-home-manager, the script would often link directories instead of files, which made a bad state where home-manager wanted to symlink a file into a symlinked dir. This "worked", except for messing up my dotfiles repo, but my guess is something about it failed?
<eraserhd>
Oh, wait, some of the symlinked dirs no longer existed, so that might be the failure mode.
<eraserhd>
(link exists, dir does not)
<pbb>
gh30rgh3: there isn't much more than that I can show you since my configuration looks wildly different. I have a different suggestion: you can use nix on your arch installation to build a NixOS VM and try different configurations very easily
<pbb>
give me a moment to make an example
<gh30rgh3>
pbb: i wouldn't touch my arch install since i use it at work every day
<gh30rgh3>
and if i waste too much time on switching distro, my boss will kill me
<pbb>
then maybe you shouldn't start using NixOS, since it will be very time-intensive at the beginning
<{^_^}>
[nix] @edolstra pushed to flakes « Use git+ prefix in flake URI schemes »: https://git.io/fjjYa
<pbb>
gh30rgh3: at least if you want to switch all your configuration to be declarative
<gh30rgh3>
pbb: i want to be cool and arch is not cool any more since cool people are using nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<gh30rgh3>
🤣
<pbb>
gh30rgh3: not the best motivation to switch to NixOS if you ask me
<rycee>
gh30rgh3: I used just the Nix package manager at work for a long time before starting to use NixOS.
<gh30rgh3>
rycee: you have prod servers on nix?
<rycee>
It gives quite a lot of benefits already, like per-project shells and such.
<rycee>
I'm working as a programmer and don't manage servers myself.
<pbb>
rycee's home-manager makes it possible to manage basically your whole userspace with Nix without using NixOS ;)
<rycee>
Well, except my tiny ones at home :-)
<pbb>
I have production servers running NixOS, but NixOS servers are a very different thing from NixOS desktops
<adisbladis>
I'd never want to go back to having non-nixos prod servers :)
<pbb>
+1
<eraserhd>
rycee hyperfekt: I can't seem to reproduce. A dangling symlink directory does fail, but doesn't seem to abort, which seemed like what happened. FYI.
<rycee>
eraserhd: Do you have log output from when it failed?
jtojnar has quit [Ping timeout: 245 seconds]
<eraserhd>
rycee: No, I added "verbose" after, unfortunately.
<rycee>
Even without verbose it should produce some output, especially if there was a failure.
<pbb>
gh30rgh3: really if you consider switching to NixOS, it should not be a problem to install Nix on your system to try some stuff before. Take a look at https://nixos.org/nix/manual/#sect-multi-user-installation, it's not too hard
janneke_ has joined #nixos
<hyperfekt>
I always recommend people install nix and home-manager because the latter is a good chance to try out NixOS' module system without having to commit very much.
janneke has quit [Ping timeout: 252 seconds]
<gh30rgh3>
pbb: i would rather test it with KVM
<pbb>
gh30rgh3: does anybody prevent you from doing that?
<gh30rgh3>
nope
<gh30rgh3>
maybe time
<pbb>
gh30rgh3: the snippet you posted earlier could fit into a full NixOS configuration.nix like this: https://termbin.com/htnz
<pbb>
I could build a VM with this config using "nixos-rebuild build-vm -I nixos-config=./configuration.nix", and got a working i3wm
<gh30rgh3>
<pbb "gh30rgh3: not the best motivatio"> yea... i see a lot of people online saying "switched from arch to nix so that i can rollback in case something breaks". i've been doing `pacman -Syu --noconfirm; sudo shutdown -h now` almost every night for the last years and i never woke up to a broken system. i don't actually fear the upgrades.
<gh30rgh3>
but i do find it cool and interesting and fun to learn something new
dycan has joined #nixos
<gh30rgh3>
<pbb "gh30rgh3: the snippet you posted"> that is smaller than expected, lol. i thought it would get people when people add stuff required for working, like ansible, docker, qemu, vim, vim-go, go, python etc
<{^_^}>
[nixpkgs] @fgaz opened pull request #68144 → Switch my qt packages to qt-specific stdenv → https://git.io/fjjY6
<lucus16>
How often is the staging branch merged into master?
<ivan>
staging-next is merged into master and it's every few weeks
<wedens>
I have a fairly old laptop with 512gb hdd and 16gb ssd. obviously, 16gb is too small for /nix/store. how can I utilize this ssd to gain some performance benefits?
<emily>
gh30rgh3: for individual projects you often want a shell.nix with all the tools you need, rather than putting them in your global configuration
<gh30rgh3>
pbb: how stable is the unstable channel?
<clever>
wedens: zfs, with the ssd as a L2arc may be a good option
<clever>
wedens: zfs will basically use the ssd as a read-cache to speed up reads from the hdd
<gh30rgh3>
<emily "gh30rgh3: for individual project"> hmm, that sounds interesting
jtojnar has joined #nixos
<emily>
that also lets you have consistent development environments across multiple machines, even on non-NixOS distros, etc.
<pbb>
gh30rgh3: I use it on all my machines, and run daily automatic rebuilds from the unstable channel. Sometimes the automatic builds fail and I have to adjust my configuration, but that happens rarely and it doesn't create any downtime.
Netsu has joined #nixos
<Netsu>
Hi there. How can I change default nixpkgs compiler?
<emily>
the nixos-unstable channel is gated on tests passing, so it's relatively stable I'd say
<Netsu>
On macos it use clang by default, so I need the gcc here
<gh30rgh3>
so if i go for nixos, it has to be unstable for me
<wedens>
clever: thanks. sounds like it might be useful.
alex`` has joined #nixos
<pbb>
gh30rgh3: you can also have your base system from the stable 19.03 channel, and install some programs from the unstable channel
<Netsu>
I guess, I need something at `config/nixpkgs/config.nix`?
<gh30rgh3>
that can be useful.
<gh30rgh3>
<pbb "gh30rgh3: I use it on all my mac"> you need to build, meaning compile? gentoo-style? cause gentoo builds sometimes fail :-D and you have to go through use flags :-D
<gh30rgh3>
i am asking, not complaining. i've been looking for months for a reason to buy a threadripper
Neo-- has joined #nixos
<hyperfekt>
wedens: Depending on your mainboard model you may also be able to use Intel RST. There's also bcachefs which does caching if zfs isn't to your liking but that's not very reliable yet.
<colemickens>
I'm running a systemd service as a regular user - when it tries to run nix-prefetch-url, it fails, but works when I try the same commadn normally as that user.
<colemickens>
Any idea for what's going wrong and/or how I can debug more?
<pbb>
gh30rgh3: It's not quite like Gentoo. basically you have default flags and the NixOS CI system called Hydra (hydra.nixos.org) builds the default configuration for you and puts them into the binary cache at cache.nixos.org. You can easily change the flags, but then you will have to recompile that package and everything that depends on it.
<pbb>
gh30rgh3: what I meant with building is building my system configuration, which includes downloading binary packages, compiling everything that's not available from the cache (stuff with custom patches or my configuration files, which are themselves)
<pbb>
* which are packaged themselves
<pbb>
in the time you have used to talk in this channel you could have tested Nix and built a NixOS VM
<hyperfekt>
wedens: Then there's block device caching that bcache and dmcache/lvmcache do
<gh30rgh3>
pbb: yea but in the time on this chat i also helped some colleagues with other stuff at work
<gh30rgh3>
pbb: i will test it tonight in virt-manager
<pbb>
gh30rgh3: okay, have fun
<gh30rgh3>
pbb: thank you for answering all my questions
<colemickens>
turns out it was gnutar/gzip missing
<wedens>
clever: do you know if this l2arc can be controlled manually? e.g. if I want it to cache files from current nixos generation
<wedens>
hyperfekt: thanks. I'll look into those options if I decide not to use zfs
<{^_^}>
[nixpkgs] @averelld opened pull request #68146 → rstudio: fix build with new hunspell-dicts → https://git.io/fjjOU
jsGIGax has joined #nixos
<clever>
wedens: the l2arc is just an extension of the l1arc(the one in ram), which will use a combination of recently and frequently used things, and adjust the ratio to get a high hit rate
<clever>
wedens: the main downside, is that the l2arc cant persist between reboots
domogled has joined #nixos
jsGIGax has left #nixos ["Leaving"]
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @colemickens opened pull request #68147 → networkmanager: allow `iwd` as Wi-Fi backend → https://git.io/fjjOs
<{^_^}>
[nixpkgs] @nyarly opened pull request #68148 → chromium: expose pepperFlash version option → https://git.io/fjjOG
<wedens>
doesn't sound good for a laptop :( but still better than nothing
_zincy has quit [Ping timeout: 252 seconds]
<clever>
wedens: yeah, it wont help with boot times, but it will help with normal running
selfsymmetric-mu has quit [Remote host closed the connection]
turion has quit [Ping timeout: 258 seconds]
johnny101m has joined #nixos
jgeerds has joined #nixos
fendor has quit [Ping timeout: 246 seconds]
<exarkun>
What are the strings in the list in nix / packages in stack.yaml? nixpkgs attributes?
turion has joined #nixos
<Netsu>
is `.config/nixpkgs/config.nix` the same for `macOS`? Or it should be somewhere at `~/Library`?
byteflam1 has joined #nixos
<DariusTh`>
Netsu: it works for me in macOS
<DariusTh`>
I mean the usual place
<Netsu>
DariusTh`: thanks!
<Netsu>
BTW where should be compiler specified?
<Netsu>
is nativeBuildInputs be enough?
<Netsu>
the CC one
sigmundv has quit [Ping timeout: 258 seconds]
emptyfl41 has quit [Ping timeout: 258 seconds]
endformationage has joined #nixos
emptyflask has quit [Ping timeout: 245 seconds]
byteflam1 has quit [Ping timeout: 245 seconds]
<exarkun>
is there an idiom for depending on / building a third-party package that includes an expression for its derivation? I am imagining something like "download the archive and import the expression from it somehow"
<emily>
yes, it's called "import-from-derivation"
<emily>
though some people consider it more of an anti-idiom (it's not allowed in nixpkgs)
dooms has joined #nixos
<emily>
you can just use fetch* and then import the /default.nix or such, it works
turion has quit [Ping timeout: 244 seconds]
<exarkun>
what else do people do? maintain a fork of nixpkgs w/ the software in-tree? contribute the software to nixpkgs upstream?
<emily>
the alternative to IFD is to manually fetch the derivation yourself and then use it, basically
<emily>
whether that's locally or in nixpkgs
<exarkun>
ah
nexgen2 has joined #nixos
<dooms>
evanjs-: ping
<exarkun>
thanks
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ThatDocsLady has quit [Quit: Leaving]
alanz has joined #nixos
nikivi has joined #nixos
<betaboon>
I'm currently trying to write tests for a new bootloader but it fails. is there a way to access the contents of the virtual disk that is created for the tests ?
selfsymmetric-mu has joined #nixos
<davidtwco>
Are there any functions I can use to get only one directory from a derivation (`include` in my case)?
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @craigem to master « postgresql: improve identMap description »: https://git.io/fjjsg
byteflam1 has joined #nixos
fendor has joined #nixos
polman has quit [Ping timeout: 245 seconds]
<eraserhd>
rycee: I had /home/jfelice/.config/karabiner -> /home/jfelice/src/dotfiles/karabiner/config/karabiner.symlink, with that last being a directory containing karabiner.json and some subdirectories.
byteflam1 has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
<eraserhd>
At the point where I updated my NixOS config, I'd pulled changes from my dotfiles repo, removing `karabiner/config` and therefor `karabiner/config/karabiner.symlink`, but /home/jfelice/.config/karabiner symlink still existed.
<rycee>
eraserhd: Right, I understand. I'll have a look at the HM code and see if I can improve the handling of this situation.
<eraserhd>
rycee: ty!
<eraserhd>
rycee++
<{^_^}>
rycee's karma got increased to 16
polman has joined #nixos
<philipp[m]>
I added a luarocks package to the csv file and ran the generation script. I guess both the csv and generation script should be in the same commit.
<hyperfekt>
sphalerite: prefixed the RPATH with '.:$ORIGIN/' which the origin had, no idea why that works but my way didn't
<exarkun>
I don't see anything in buildRustPackage for putting headers into the output ... anyone have any ideas about that? just write my own postInstall or something?
<sphalerite>
hyperfekt: oh yeah, I think using . makes it use the directory you're executing from, not the directory where the executable is located
<sphalerite>
hyperfekt: and $ORIGIN does the latter
<sphalerite>
hyperfekt: so I think you should also remove .
<hyperfekt>
sphalerite: Will do so, thanks :)
<{^_^}>
[nixpkgs] @flokli merged pull request #67894 → caffeine-ng: use python3 and some other improvements → https://git.io/fjp88
<WhittlesJr>
I noticed that my nixos-install is building a ton of packages and it's taking forever. I have NIX_PATH=nixpkgs=<something close to master>, at a commit that's supposedly done building according to hydra. Is there something special about the live CD enviornment? Should I just build from whatever channel it comes with and then upgrade after booting?
<WhittlesJr>
*nixpkgs=<a local clone of nixpkgs, close to master>
orivej has quit [Ping timeout: 246 seconds]
<clever>
WhittlesJr: does the machine have network access?
<exarkun>
How do I get, eg, zlib.h into stack's search path on nixos? one answer is to use stack's built-in nix integration but that has some drawbacks (doesn't help me much if I want to get another project that's not in nixpkgs onto the search path). stack docs say "write a shell.nix" which seems fine .. but I did, and pkg-config knows about zlib, but stack still can't find it.
<craige>
I've got a nix scenario where I need to check if a path exists, create it if it doesn't then drop a file there. I've been looking for the "right" Nix way to do this but I've only been finding `withScript` examples. Is `withScript` the best way to go about that?
<WhittlesJr>
clever: It does, and it did download about 8GB of packages. Strange that it would want to build 2,155 packages on its own.
<clever>
WhittlesJr: did you mess with the binary cache config any? is the date set right?
growpotkin has joined #nixos
<symphorien>
craige: if the path in question is not below $out, it must be done with a nixos module
<symphorien>
You can't write outside $out with nix derivations alone
<craige>
It's definitely not below $out - thanks for the direction symphorien
<WhittlesJr>
clever: Not to my knowledge, and yes the date is correct. I'm going to try getting my config to work with 19.03 and boot into that
<clever>
WhittlesJr: can you give an example of a storepath its trying to build?
<craige>
disasm: as a Gitea maintainer, are you aware of any method to drop in the custom logo? If there's not, I'll look at writing a way to do that and pushing it up.
<WhittlesJr>
clever: I don't have access to the full storepath anymore, but I do remember it tried to build gcc
<clever>
WhittlesJr: that definitely sounds like the binary cache didnt work
<WhittlesJr>
clever: maybe I goofed something. I'll try again from scratch.
<hyperfekt>
gyroninja: Thanks again for sharing your derivation, I wouldn't have found out some libraries have to be in $LD_LIBRARY_PATH without it.
Myhlamaeus1 has quit [Remote host closed the connection]
<WhittlesJr>
clever: still wants to build 2000 packages. Is there something wrong with my approach? I just overwrote nixpkgs=... in NIX_PATH in the live CD, and kept the rest of NIX_PATH the same.
<clever>
WhittlesJr: grab one of the .drv files it wants to build, and run `nix-store --query --binding out /nix/store/foo.drv`
<clever>
WhittlesJr: what path does it output?
mexisme has joined #nixos
<WhittlesJr>
clever: you mean what it's building in /mnt/nix/store? Is there a way to run nix-store on that?
<clever>
WhittlesJr: add --store local?root=/mnt/
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<{^_^}>
[nixpkgs] @adisbladis opened pull request #68176 → Drop unsupported go versions 1.10 and 1.11 → https://git.io/fjjcF
adamantium has quit [Ping timeout: 245 seconds]
<hyperfekt>
,locate libfliteWrapper.so
<{^_^}>
Couldn't find in any packages
<WhittlesJr>
clever: Not sure if this means anything, but I'm seeing two .drvs, .locks, and .tar.gz.drvs for each given package. Querying each produces a different store path.
<clever>
WhittlesJr: i just need the output for a single drv, ignore and lock and tar files
<WhittlesJr>
ok, for libunistring-0.9.10.drv, I get /nix/store/q45f8b6wp4bynxbrlw2rjqjq9g5k47yb-libunistring-0.9.10
<WhittlesJr>
assuming I typed that right. I could grab a thumb drive if you need it to be definitely exact.
<clever>
WhittlesJr: what happens if you run `nix-store -r /nix/store/q45f8b6wp4bynxbrlw2rjqjq9g5k47yb-libunistring-0.9.10` ?
<WhittlesJr>
clever: it returns that path
<clever>
then thats not something it needs to build
<clever>
its already built
<clever>
try again with a .drv its actually building
<WhittlesJr>
Is there a way to tell exactly what path it's building? the output is truncated with nixos-install
<clever>
ctrl+c it right after it starts to build, and scroll up some
<clever>
or look at the .drv's that have .lock files, but run the query on the version without .lock
boxdot has quit [Read error: Connection reset by peer]
selfsymmetric-mu has quit [Remote host closed the connection]
<WhittlesJr>
Well, there's no output to scroll up to with nixos-install (as opposed to how nixos-rebuild prints), but I tried the other .drv and I get "don't know how to build these paths."
teej has quit [Quit: Connection closed for inactivity]
<clever>
WhittlesJr: what is the output for one it cant build?
<WhittlesJr>
clever: Not much, just "don't know how to build these paths: \n <the path> \n error: build of <path> failed."
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjjCg
spease has joined #nixos
<spease>
OS X question: Has anyone been able to install docker and get the daemon running just through nix? Or do you have to use the regular installer? I was able to get just the docker command, but it complains the daemon isn't running
dycan has quit [Ping timeout: 268 seconds]
ardumont has quit [Ping timeout: 252 seconds]
growpotkin has quit [Ping timeout: 258 seconds]
ardumont has joined #nixos
WhittlesJr has quit [Remote host closed the connection]
growpotkin has joined #nixos
growpotk- has joined #nixos
<clever>
spease: docker technically cant run on osx or windows, behind the scenes, its just launching a linux VM, and running docker inside that
<growpotkin>
My machine is periodically locking up. I suspect `brave` browser might be to blame; but I also got new RAM cards a few weeks back. Could anybody suggest a good logging daemon/service to help me find the culprit?
<clever>
growpotkin: id enable and run memtest first
<ivan>
growpotkin: can you ssh in after it locks up?
o1lo01ol1o has quit [Remote host closed the connection]
doyougnu has quit [Quit: WeeChat 2.4]
<ldlework>
clever: even though the mini-hyper-v that supports WSL2 on Windows is technically a VM, it's gutted as to provide direct compatibility between the linux and windows kernel and so is more of a container. Within WSL2 you can run native linux docker against the linux kernel.
<ldlework>
Also windows containers are a thing now.
<clever>
ldlework: ive heard horrors about how windows handles multiple desktops
<clever>
ldlework: everything gui related, was a global kernel variable, so when you context switch between different processes, it has to swap out every single global var, to deal with multiple desktops (like RDP on another user)
ng0 has quit [Quit: Alexa, when is the end of world?]
growpotkin has quit [Ping timeout: 245 seconds]
<ldlework>
i don't know what multiple desktops feature you're referring to, but I didn't mention it
<clever>
i can see it being semi-related to containers
<clever>
basically think of it like running a 2nd Xorg on :1 and :2
philr has joined #nixos
polman has quit [Ping timeout: 245 seconds]
<ldlework>
i don't think Microsoft implemented their native container support ontop of their multiple desktop implementation ngl
<clever>
but they may have had just as many global vars laying around, that forced them to make just as ugly of an implementation
growpotkin has joined #nixos
<emily>
given that a container is basically literally a VM without a kernel, what on earth does it mean to describe a linux VM as "more of a container"?
<ldlework>
exactly what you just said?
<clever>
containers are more about swapping out the pointer to the list of something
<ldlework>
there's no thick virtualization going on, while yet, there still is some
<clever>
for example, on linux, a process namespace, just changes the table for the process list
<emily>
what is "thick virtualization"?
<clever>
so you can only see a subset of them
<ldlework>
the hyper-v behind WSL2 isn't technically a container, but it is a very thin VM, where MOST of the support comes directly from the windows kernel rather than a virtualization laye
<clever>
a mount namespace just changes the pointer for what / is
<ldlework>
I didn't mean to offend your sensibilities with my description.
<clever>
ldlework: that reminds me of colinux, have you heard of that before?
<emily>
I just don't think it makes any sense
<ldlework>
emily: do you write software?
<emily>
...yes?
<ldlework>
OK so then why do I have to explain the difference between a significant intermediary layer, and a thin pass through layer?
polman has joined #nixos
<ldlework>
And how the layer between the linux kernel and the windows one, in WSL2's mini-hyper-v, is mostly a pass through, but requires heavy support in areas?
<emily>
I assume what you mean is that it uses paravirtualized drivers for IO or something, which Hyper-V has supported for a long time now. But the actual virtualization layer still uses Hyper-V and still uses all the same hardware virtualization support, so it doesn't really have anything to do with container support... but, eh, this doesn't really matter
selfsymmetric-mu has joined #nixos
<ldlework>
The Hyper-V behind WSL2 specifically is heavily modified, in the ways I just described.
<ldlework>
Feel free to read about it if you're confounded by reporting.
<clever>
ldlework: colinux, is basically a fork of linux, that will impersonate a windows driver, without needing any hypervisor (it was made in the days before hardware vm extensions)
<ldlework>
my reporting*
<ldlework>
clever: neat, never heard of that.
<clever>
ldlework: when linux needs to schedule a timer, it will use the windows kernel timer subsystem
<clever>
ldlework: and windows things colinux is a network driver, so when packets arrive for linux, it runs a function in the "driver" to handle the packet
<clever>
ldlework: and because the driver is in kernel space, it will just take the entire CPU hostage, and start running linux!
<simpson>
spease: To answer your original question, no, I think that you'll have to install Docker for Mac without using Nix.
<clever>
when linux is done, and wants to "idle" the cpu, it will restore the state, and just do a normal return, back into the windows kernel
<clever>
ldlework: so in the end, windows thinks colinux is a network driver, that hogs a lot of cpu time, and needs 3gig of ram
<ldlework>
ok
<clever>
but, it never got multi-core support, so linux could only use a single core of the machine
__monty__ has quit [Quit: leaving]
<clever>
and it only worked on 32bit windows kernels
<clever>
nobody bothered to port it to 64bit windows
<clever>
since proper vm's existed by that point
<ldlework>
i'm able to run many WSL2 instances and don't see much resource abuse
<ldlework>
nothing that isn't completely and utterly overshadowed by Rider and Chrome :D
knupfer has quit [Ping timeout: 264 seconds]
<ldlework>
Heh there's an issue I'm tracking on the nixos where someone is trying to get NixOS onto the Windows Store
<ldlework>
nixos github*
<clever>
i did briefly look into how the old WSL worked, and how to get other OS's into it, and it was pretty ugly
<clever>
something about how you need a special ntfs attr on every "linux" file, and windows explorer (along with nearly every fs tool out there) cant make them, and destroy them when copying
<clever>
so, you must install ubuntu, then use the linux tar to unpack the rootfs within WSL
<clever>
then use an atomic rename in explorer, to swap the rootfs dirs
<clever>
and last i looked, you only had 1 rootfs dir, so you cant really play around much
<ldlework>
Yeah, I tried WSL and I didn't like it either. It was a slight improvement over git-for-windows, but git-for-windows (and it's bash toolchain etc) were just a Windows Install Wizard away. It was just too easier.
<clever>
another problem, with anything hyper-v based, is that hyper-v needs vm extensions in the cpu
<clever>
and my main windows system, is in virtualbox
<clever>
nested virtualization is bad
<ldlework>
But I've been working on a huge Dotnet Core project so I've been testing and doing some development on Windows just to make sure everything I do on linux transfers over
<ldlework>
I got the project to the point where we just ended up standardizing everything for Linux, because we have all the steps for a Windows user to use WSL2 to get a fully compatible environment
<ldlework>
And all our build stuff is Nix-based.
<ldlework>
So Windows users can use Nix, in Ubuntu, in WSL2 on Windows to get the same result as anyone using just normal Linux. It's pretty nice and I'm happy with the result.
<ldlework>
I think my #1 complaint with WSL2 is that file-transfer over the vdisk boundries is slower than native but they've put out two blog posts saying they're working on it directly.
<clever>
fresheyeball: are you sure the files are empty? what does `less` say about them? (also the secret is in the pastebin, make a new pair)
wildtrees has quit [Quit: Leaving]
<fresheyeball>
unholy!
<clever>
fresheyeball: there is no \n at the end of the file, some shells are dumb and overwrite the `cat public` with your prompt
schjetne has quit [Ping timeout: 246 seconds]
<fresheyeball>
less shows content and cat does not!
<clever>
your shell is to blame
<fresheyeball>
WTF!
<fresheyeball>
how?!
<clever>
the shell starts its prompt with \r, which rewinds to the start of the line
<clever>
and the file didnt end with `\n`, so the cursor was still on the same line as the output
<fresheyeball>
ok so I have the files then
<clever>
the default nixos prompt starts the prompt with \n to prevent such issues
<fresheyeball>
clever: you said I need to reference these in nix.conf?
<clever>
other distros dont have \n or \r, so the prompt turns into: dunlap-1:4lzFs1Psk1Sq4SPSRFberfL[root@amd-nixos:~]#
<clever>
which can be even more ugly :P
<clever>
yeah, the secret has to go into secret-key-files in nix.conf
<fresheyeball>
well I am generating a new one
<clever>
then nix will sign everything it generates
<fresheyeball>
clever: I don't have a nix.conf I don't think since I am on nixos
jtojnar has quit [Quit: jtojnar]
<clever>
then create one
<fresheyeball>
is there no way to do it in configuration.nix?
<clever>
oh, i read that as "not nixos"
<clever>
nixos does have a nix.conf, its in the same place, /etc/nix/nix.conf
<clever>
2019-09-05 20:40:03 < clever> secret-key-files goes into nix.conf, via nix.extraConfig
hodlwave has joined #nixos
<VaNilLa[m]>
hi all! I'm intrigued by the idea of using nix for a CI
<simpson>
VaNilLa[m]: Nix can be part of a CI pipeline, sure.
jtojnar has joined #nixos
<fresheyeball>
clever: ok key added
<fresheyeball>
sweeet
<VaNilLa[m]>
so I'm trying to set up hydra in a VM of arch (since my "production server" runs arch). However, "hydra" is missing from the regular nix channel, and I see on github that nix-build should be installed instead. Installing nix-build didn't add any of the hydra commands listed in the manual. I found that hydra is in the NixOS-19.03 channel, added it, and tried to install hydra. However, nix-build conflicts with hydra....