mizu_no_oto has quit [Quit: Computer has gone to sleep.]
astsmtl has joined #nixos
astsmtl has quit [Changing host]
astsmtl has joined #nixos
jrolfs__ has quit [Ping timeout: 252 seconds]
jrolfs_ has joined #nixos
jrolfs__ has joined #nixos
jrolfs__ has quit [Ping timeout: 240 seconds]
quam6246 has joined #nixos
quam6246 has quit [Ping timeout: 240 seconds]
Supersonic112 has quit [Disconnected by services]
thc202 has quit [Ping timeout: 260 seconds]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
hellrazo1 has quit [Ping timeout: 252 seconds]
justan0theruser is now known as justanotheruser
coot has quit [Ping timeout: 260 seconds]
hellrazo1 has joined #nixos
duncan^ has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 240 seconds]
coot has joined #nixos
markus1189 has joined #nixos
duncan^ has joined #nixos
the-kenny has quit [Ping timeout: 256 seconds]
markus1199 has quit [Ping timeout: 268 seconds]
the-kenny has joined #nixos
ryanartecona has joined #nixos
coot has quit [Quit: coot]
aarvar has quit [Ping timeout: 268 seconds]
ryanartecona has quit [Ping timeout: 248 seconds]
magnetophon has quit [Ping timeout: 260 seconds]
Ridout has joined #nixos
d4g_ has joined #nixos
hamishmack_ has joined #nixos
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
hamishmack has quit [Ping timeout: 260 seconds]
hamishmack_ is now known as hamishmack
dj_goku has quit [Quit: Lost terminal]
d4g has quit [Ping timeout: 240 seconds]
s33se has joined #nixos
swayf has quit [Ping timeout: 265 seconds]
s33se_ has quit [Ping timeout: 248 seconds]
sigmundv_ has quit [Ping timeout: 256 seconds]
<fearlessKim[m]>
I am getting lost within the kernel builder, I try `my_kernel = stable_kernel.override( {hostPlatform=test-localSystem;})` but the override doesn't seem to work (nixos-unstable), nix-repl shows me the old hostPlatform.platform.name rather than test-localSystem.platform.name :'(
<fearlessKim[m]>
any way to see what are the possible overrides ?
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm has joined #nixos
quam6246 has joined #nixos
jrolfs__ has joined #nixos
jrolfs__ has quit [Ping timeout: 240 seconds]
quam6246 has quit [Ping timeout: 268 seconds]
xcmw has joined #nixos
jsgrant_ has joined #nixos
<jsgrant_>
Was about to jump ship to Fedora Atomic, on this spare-box ... but it's still way to 'gen 0' to justify anything so drastic; Back to NixOS. X^D
<jsgrant_>
Added about 50+ loc today to my conf.nix in my free-time; Also the fact that Fedora Atomic isn't declarative in any strict sense is a bit depressing.
<iqubic>
I don't understand how ot write derivations.
<disasm>
I recommend reading all the nix pills iqubic
<iqubic>
Yeah, that'd be good.
<disasm>
the first few you might be a little overwhelmed, but around the 9th or 10th one everything starts to click.
<iqubic>
disasm: I actually have a thing I want to build though.
<iqubic>
Or, rather, a couple such things.
jrolfs_ has quit [Ping timeout: 264 seconds]
<jsgrant_>
iqubic: References/guides like that don't hurt; But yeah, can sympathize with just wanting to get to the meat of it.
* jsgrant_
has only read a few, a long-time ago; Should probably run back through them in-depth.
<jsgrant_>
I'm still pretty convienced longer-term I'll end up on almost (if-not full) ubiquitous NixOS installs on my stuff -- especially after messing around with Atomic and my expectations quickly being curbed.
* jsgrant_
needs spellcheck in irssi; Too lazy to actually actively check my spew.
<disasm>
iqubic: option b is nix the hard way (how I learned). Find something similar in nixpkgs, copy it, change some stuff and see if it works :)
<disasm>
but reading the pills will make it a lot easier on you in the long run.
<iqubic>
I know want to do that. I'm going to read the pills and see if I can use emacs' nix mode to write a derivation for a things I want to compile.
quam6246 has joined #nixos
<jsgrant_>
disasm: That's what I did in the earlier days of GuixSD, which I funnily enough stumbled into near-years before NixOS.
<iqubic>
I don't like the concept of GuixSD. I like having non-free software.
<iqubic>
I need my Firefox.
<jsgrant_>
iqubic: At the time, I was still very idealogically alligned in that direction.
<spear2>
does Guix replace both nix and bash with scheme?
<iqubic>
yes.
<iqubic>
If I understand it right.
<jsgrant_>
But yeah, inherently being under the FSF is inherently limiting.
<jsgrant_>
spear2: Not bash; It replaces systemd with their own solution.
<iqubic>
I mean I think Firefox is the only thing that I have which isn't free.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jsgrant_>
They also have been talking about supporting Hurd for a few years now.
<iqubic>
Also, I don't really want to switch to guixSD. Changing distros is super hard imo
<jsgrant_>
iqubic: Icecat,or whatever; But yeah, still having to need a middleman to circumvent.
<iqubic>
Switching also means I lose stack integration.
<iqubic>
Switching seems like too much of a pain ATM.
<jsgrant_>
iqubic: Well, not advocating for it or anything; Just saying I learned how to write packages by just trying to grok some of guix's package expressions.
<jsgrant_>
Which was hands-on obviously, but yeah, not ideal compared to doing it in-aid with some docs.
quam6246 has quit [Ping timeout: 240 seconds]
* jsgrant_
as the time, was also fantasizing about a psuedo-LispM OS and thought that was a more practical means to that end; Though really, it's about the opposite of running everything in aprox one-namespace and being able to edit it trivially and globally... so.
<jsgrant_>
I think really, I was just "Oh, Lisp!" :^P
<jsgrant_>
I think decent docs, even if sparse in-terms of quantity is almost always better than 'going it alone though'; Idk, rambling, half-asleep (sorry ... :^I).
aanderse has quit [Ping timeout: 276 seconds]
<jsgrant_>
Ha: 'Thought' 'think' 'think'.
jrolfs__ has joined #nixos
<iqubic>
So should I switch to GuixSD? Or is NixOS te right way to go?
<MP2E>
Pretty much how I learned Nix was hopping right into the code as well. Docs helped guide me, but my best friend was grep and the nixpkgs tree
<MP2E>
still is :P
<catern>
is there a stock algorithm in Python or something that matches Nix's base32 calculation?
<iqubic>
Well, I'm staying with NIXos.
<jsgrant_>
iqubic: NixOS, unless you're really into Lisp and/or idealogically into 'free-as-in-freedom- software.
<catern>
because the base32 that Nix does is weird
<catern>
whatever I'll just do base16
aanderse has joined #nixos
<iqubic>
jsgrant_: I'm not in to either of those enough that I feel the need to switch.
<jsgrant_>
iqubic: Yeah man, again I'm not trying to convience you to. X^D
<iqubic>
Well, time to get the nix emacs mode going and then off to write some derivations.
<MP2E>
a lot of the initial problems when migrating to nixos tend to come from 'fighting nix'. It's not intentional, but coming from other distros gives you a sense of expectations. Like that you often edit configuration files in /etc/*. Or even the concept of installing libraries for development
<iqubic>
MP2E: Yeah. One of the things I'm trying to install is a library for development.
<catern>
jsgrant_: spear2: yes, Guix replaces both nix and bash with scheme.
<catern>
also perl
<iqubic>
catern: Guix uses perl?
<jsgrant_>
catern: Well, in the build process, yeah. Anywhere else?
<catern>
sorry I mean it replaces Perl with scheme :)
<MP2E>
well, thing is, installing a library is very rarely the answer! For many things like Haskell, it probably won't even work the way you expect it to. You really only want to 'install' binaries
<MP2E>
for libraries and the like, a better thing to do is use a shell.nix file to pull up the environment for when it's needed
<MP2E>
and exactly the dependencies you need to use
<catern>
jsgrant_: Nix has many bash scripts and perl scripts. less now, but it had more when Guix forked. They were all replaced with Guile.
<iqubic>
MP2E: Yes, that is what I meant to say.
<MP2E>
this really confused me at first, among other things :P
<catern>
jsgrant_: for example, nix-channel and nix-build
<MP2E>
it's nice now that it clicks though
<iqubic>
I am installing a binary.
<jsgrant_>
MP2E: Yeah, I tried going 'all in' at once, after a fairly trivial amount of time in NixOS certainly compared to 'normal distros' and it's just too much if your expectations aren't starting in the right place.
<iqubic>
What I like about NixOS is having all of my system configurations in on single file.
<MP2E>
definitely! I had a dual boot with gentoo for a couple of months until I felt comfortable enough to fully switch
<jsgrant_>
catern: Ah, that's what you mean; I thought you meant for day-to-day shell use there was some guile replacement.
Drakonis has quit [Read error: Connection reset by peer]
<iqubic>
I just switched cold turkey from gentoo.
<iqubic>
The thing that threw me off the most was not having to wait a million years for packages to compile.
<iqubic>
Also not having to deal with Portage errors is nice.
<MP2E>
haha, if you want those good times back, can always build off of nixpkgs master like I do :P
<MP2E>
though even then, you'll get lots of caches
<MP2E>
the worst time to pull from nixpkgs master is right after an update to firefox or chromium though
<MP2E>
they take forever to build
* jsgrant_
never really fell into full-time Gentoo use; Had a custom distro-buildscript for my Emacs, Stumpwm, Conkeror, And Friends -- but that's about the extent.
<iqubic>
Anyone know what this emacs package is supposed to do?
<MP2E>
I used Arch for years, then Gentoo because I was customizing so much of Arch that it seemed kinda silly, then Funtoo because I wanted Gentoo but with a more modern infrastructure
<MP2E>
but even that didnt' fully scratch the itch
Drakeson has joined #nixos
<iqubic>
Do you like NixOS?
<MP2E>
and I learned Haskell, saw NixOS had some functional programming concepts
<MP2E>
hopped right in!
<catern>
iqubic: it's the equivalent of direnv for emacs
<MP2E>
Yeah I love NixOS, been my primary OS since 2015
<iqubic>
I don't know what direnv?
<MP2E>
I find other distros a little bit hard to use now sometimes actually, cause i'm so used to it..
<iqubic>
Me too MP2E.
<disasm>
I can't picture ever leaving nixos :) Every other OS I ever had I was always looking for something better, but with nix, if it's broke, I make an effort to fix it :)
<NixOS_GitHub>
[nixpkgs] disassembler pushed 2 new commits to master: https://git.io/vN6iq
<NixOS_GitHub>
nixpkgs/master efdb098 Samuel Leathers: Merge pull request #34199 from arcadio/kallisto...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master a7333e9 Arcadio Rubio García: kallisto: init at 0.43.1
<iqubic>
A friend of mine once said to me: "Hey iqubic, you haved used linux for a while, can you help me fix my Arch problems?"
<Drakeson>
hadn't heard about direnv -- looks pretty interesting. I have been doing that using screen and tmux.
quam6246 has joined #nixos
<iqubic>
And I just looked at him and tried to come up with a polite way to say: "I actually use NixOS, so I have no idea what configurations go in what file in /etc"
* jsgrant_
finds it kindof funny that he was trying to move away from keyboard-driven interfaces and NixOS with all the nice Haskell & Vim intergration that he's been encouraged to mess with Xmonad & Neovim for the first time non-trivally in his life.
<jsgrant_>
From Stumpwm + Emacs for years, to full Gui-driven GNOME + Atom, to probably back to other-direction with Xmonad + Vim.
<Drakeson>
"moving away from keyboard-driven interfaces"? What kind of creature does that intentionally?
<fearlessKim[m]>
the kind that has RSI
<jsgrant_>
Drakeson: I was getting so weird & esoteric with the scale of my goals (what was turning into a full distro around Stumpwm + Emacs being the more reasonable end and escalating from there0.
<jsgrant_>
)*
<jsgrant_>
Had about a 6 month 'Lisp/Emacs detox' after deleting all my configs.
<Drakeson>
fearlessKim[m]: Does that actually help though? I mean keyboard + mouse is better than just keyboard for RSI?
<Drakeson>
you deleted your emacs configs?
quam6246 has quit [Ping timeout: 240 seconds]
<jsgrant_>
Drakeson: Not just my config, but my factorized heavily documented one that was over a million lines combined.
<gchristensen>
Drakeson: it depends on the person, no one person's RSI needs the same specific treatment as another
<jsgrant_>
gchristensen: I was going to say, I don't think we really even understand the dynamics of RSI to anything past trivial.
<disasm>
what is RSI?
<gchristensen>
all I understand about my RSI is it threatens my ability to earn a salary.
<gchristensen>
disasm: repetitive stress injury
<Drakeson>
jsgrant_: I see. You had an over-engineered emacs config. I repeatedly delete parts of my configs that I can live without, so my emacs config grows and shrinks over time. But I can't imagine living without it.
<jsgrant_>
Hear so much conflicting stuff; But hey, switched to Colemak from my initial Dvorak (both under the/)of my fear of RSI.
<jsgrant_>
Drakeson: Over-engineered, with a STRONG emotional attachtement with ever-growing goals; To a point where it was getting out of hand.
<disasm>
Drakeson: same here, just s/emacs/vim. If I don't use a plugin for a few months, it gets axed.
<Drakeson>
jsgrant_: I think I was in a similar position a while back. Until my day job got more demanding.
<jsgrant_>
Drakeson: Yeah, I'm convienced if I wasn't in this living-situation (full-time caretaker for 100+ y/o grandfather) it wouldn't have got out of hand.
<Drakeson>
I DID have goals of starting a distro with just emacs, a window manager (initially stumpwm, then xmonad, then i3) and no gnome cruft altogether. Never got there :-(
<gchristensen>
jsgrant_: emacs configs are much less important than many things
<Drakeson>
gchristensen: like what?
<gchristensen>
like a 100+ y/o grandfather
jrolfs__ has joined #nixos
xcmw has joined #nixos
<Drakeson>
aah, I read that as "emacs configs are much less important than many things' CONFIGS". heh.
<gchristensen>
:)
<Drakeson>
and I was scratching my head to where you are going, vim maybe or your window manager's configs or your shell scripts.
<jsgrant_>
gchristensen: Give me Emacs, or give me yadda-yadda? Yeah, kindof forced my priorties after awhile -- but the first few months overhere, it actually got WORSE and more hardcore/obsesive I think as a coping mechanism or sometning.
<jsgrant_>
Don't want to get too much into personal life, but first year over here -- a lot of family health problems.
<gchristensen>
I hear that
<jsgrant_>
On that note, lol, I'll be back in like 30; Have to put him to bed.
* jsgrant_
will bbl
jrolfs__ has quit [Ping timeout: 240 seconds]
<Drakeson>
So, someone was saying something is like direnv (which I just learned about) for emacs. What was that? I can't brush that off my mind...
<Drakeson>
catern: you were saying, what is the equivalent of direnv for emacs? I am super curious...
<catern>
Drakeson: there is a direnv plugin for emacs, actually
<Drakeson>
[I just started using nixos (VERY recently), and I am just learning all the available tools, so forgive my ignorance]
<Drakeson>
so, nix-shell lets you "shell" into a nix pkg?
<Drakeson>
(the "pkg" is probably the wrong term but I don't know what that is called, a nix env?)
quam6246 has joined #nixos
<adisbladis[m]>
Drakeson: It lets you drop in to a new ephemeral shell with whatever deps you specified
jrolfs__ has joined #nixos
<simpson>
Drakeson: nix-shell can create both environments for developing/debugging a single Nix derivation, and also (and much more commonly) environments which have certain Nix packages available for your use when doing other stuff.
<Drakeson>
Thanks. I think I got it.
jrolfs_ has joined #nixos
PeterRomfeld[m] has joined #nixos
<simpson>
I have a shell.nix for hacking on my compiler, and another one for writing LaTeX, and one for making music, and so on.
<Drakeson>
So, say, you don't have latex etc. in the environment in which you work on your compiler?
<simpson>
Yep.
quam6246 has quit [Ping timeout: 248 seconds]
<Drakeson>
These are called nix environments, or is that not the right term?
<simpson>
"environment" is specifically for the thing that nix-env operates on, and your login user has a "user environment" for example.
<Drakeson>
oh so that's not it. Is this a nix derivation then?
<Drakeson>
The former (dockertools) is the more nix'y way, isn't it?
<simpson>
Yeah, but things can always be more Nixy. I'm personally poking at a tool that would let me directly export Nix derivations onto a Kubernetes cluster.
<simpson>
dockerTools, when it works, is great. It hasn't had a 100% success rate for me, while lnl7/nix has always worked.
Ridout has quit [Quit: Lost terminal]
<Drakeson>
A friend of mine was working on something like that, a few years ago, when kubernetes was new. I wasn't using nixos (only a little bit of nix) at that time, so I don't recall the details.
<Drakeson>
His work was a contribution to the kubernetes team, I think. Still searching for it...
jrolfs__ has joined #nixos
jb55 has quit [Ping timeout: 252 seconds]
<Drakeson>
nah, couldn't find it (but I am not familiar with kubernetes yet, it's still at the top of my personal todo list after installing and familiarizing myself with nixos).
<simpson>
No worries.
<la_putin>
i can now load a program and its interperater virtually ^-^
<Drakeson>
so is nix-kubernetes the tool you just mentioned (that exports nix derivations to a kub cluster), or did you mean you were making a tool yourself?
<Drakeson>
nix-kubernetes is written in javascript... eww!
<simpson>
This is the tool I'm investigating.
jrolfs__ has quit [Ping timeout: 268 seconds]
gfixler has joined #nixos
<Drakeson>
Aah you're using capnproto :-). Is it popular these days?
xcmw has quit [Ping timeout: 252 seconds]
Myrl-saki has joined #nixos
jrolfs__ has joined #nixos
<fiveht>
hi. anybody got scan-build working within a nix-shell -p clang? it seems like it does not find the standard include path (while clang alone to build my code works just fine...)
jrolfs__ has quit [Ping timeout: 248 seconds]
<iqubic>
So what does the emacs package "nix-buffer" even do?
<Drakeson>
You hope so? Are you Kenton, by any chance?
<simpson>
No, I'm Corbin. You can find Kenton in #sandstorm.
<Drakeson>
I'm still with his former employer, and no, I don't know him personally.
<iqubic>
What is #sandstorm used for?
<simpson>
iqubic: /list #sandstorm
yegortimoshenko has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos
<iqubic>
Yeah, that didn't help me understand what the channel is for,
<Drakeson>
It's a company and a product, if you excuse me taking over the mic.
<simpson>
sandstorm.io, Capn Proto, Sandstorm Oasis and etc.
rauno has quit [Remote host closed the connection]
schoppenhauer has quit [Ping timeout: 248 seconds]
<jsgrant_>
Woop, took a bit longer tonight.
<jsgrant_>
iqubic: It's a sandbox webapp hosting platform, afaik.
schoppenhauer has joined #nixos
<Drakeson>
Is slim a good display manager? I still haven't managed to resolve all my X resource setup issues, yet, so I am wondering if changing slim could help?
<jsgrant_>
Drakeson: Personally much prefer lightdm, but really can't comment on any architectural prefrences.
hamishmack has quit [Quit: hamishmack]
<Drakeson>
For instance, I still can't set a consistent cursor size across all the running programs... (with a hidpi monitor the default cursor size is ridiculous).
<Ralith>
Drakeson: set Xcursor.size: 16 and restart X (to be sure everything gets it
<Ralith>
)
<Drakeson>
Haha, nope!
<Ralith>
slim is unmaintained, iirc
<Ralith>
has been for years
<Ralith>
it's kind of a travesty that nixos still ships with it
<Drakeson>
Ralith, I do have an Xcursor.size in my ~/.Xresources, but it does not seem to get loaded at the correct time.
<jsgrant_>
Ralith: Is there any stated reason for this? At the time I was using GuixSD, it defaulted to that as-well.
<Drakeson>
is lightdm simpler and/or better?
<Ralith>
I dunno about simpler but it works
<jsgrant_>
Ralith: Yeah, and is still pretty actively maintained afaik.
<jsgrant_>
Don't like the idea of something as arguably critical to a gui security-wise as a "desktop manager" not being touched for a long-while.
<Drakeson>
lightdm is maintained, isn't it?
<jsgrant_>
Last version says 2017-09-05
<Ralith>
jsgrant_: beats me
<Ralith>
Drakeson: I forget if/how you have to load it manually, I just set mine via home-manager these days
<Ralith>
and everything Just Works
<Ralith>
home-manager is <3
<Ralith>
also obligatory hurray for capnp
<Drakeson>
What is home-manager?
* jsgrant_
still has yet to mess with hm
<Drakeson>
You're from Sandstorm, too?
<Ralith>
I don't think anyone here's from sandstorm
<Ralith>
capnp is just neat
<Ralith>
and yeah lightdm has some good inertia going
<jsgrant_>
Ralith: Is that that OCaml code-gen'r?
<Ralith>
jsgrant_: huh?
<Drakeson>
Cool! Brb, switching over to lightdm... (hope emacs won't segfault after killing X, now that I use the lucid version)...
<Ralith>
Drakeson: configuration.nix for your dotfiles and user env
<jsgrant_>
Cap'N Proto, or whatever?
<Ralith>
good stuff
<Ralith>
jsgrant_: cap'n proto is a data encoding scheme, very vaguely similar to protocol buffers or msgpack
<jsgrant_>
Huh, what the hell am I thinking of ...?
<Ralith>
mlton?
<jsgrant_>
Nah, don't think so.
<Drakeson>
Well, the similarity with protobufs is not exactly vague :-) Protobuf v2 and Cap'n Proto were both written by Kenton.
<jsgrant_>
Oh! Think maybe in this half-outta-it state of mind I just saw that was ocaml related; And thought of Ometa?
<jsgrant_>
Idk, seems most likely. :^P
elninja44 has quit [Remote host closed the connection]
<Ralith>
Drakeson: they're not very similar, though
<Ralith>
having a wildly different design philosophy is kind of the whole point
<jsgrant_>
Is it even Ocaml related, the more I look into it ... Okay, maybe getting close to bedtime.
<Drakeson>
The design is different but from a user's interface point of view they don't seem radically different. The no-packing is of course a very nice design property.
<Drakeson>
yay, emacs survived a change of a display manager :-)
<jsgrant_>
Drakeson: In what way (why wouldn't it)?
<Ralith>
I dunno what kind of user we're talking about here, but the reasons to choose one over the other, and the concerns one must be aware of when designing a schema for either, are deeply entwined with the drastic design changes
fiveht has quit [Quit: WeeChat 1.9.1]
<Ralith>
jsgrant_: emacs is constantly whining about some gtk bug that leads to crashes when X dies
jrolfs__ has joined #nixos
<Drakeson>
It is not just whining, it DOES crash reliably, 100% of the time.
<Drakeson>
I don't use emacs gtk anymore. Emacs lucid is sufficiently good.
<Ralith>
except for this time? :P
<Drakeson>
What?
<jsgrant_>
Ralith: Huh, weird. I remember peeking into some of the C code for X years ago and the little I could read was a HUGE-mess; Assume it's not been refactored/reworked much since.
<Ralith>
ah
<jsgrant_>
Drakeson: Remacs? :^P
<Drakeson>
with pkgs; {(emacs.override {withGTK2 = false; withGTK3 = false;})}
<Drakeson>
what the **** is remacs trying to solve?
<Drakeson>
looks like a toy project :-)
<jsgrant_>
Ralith: 'Rewrite Everything In Rust'; But really, if I was to suggest any real 'better Emacs' it'd be Second-Climacs.
<jsgrant_>
But there's near literally 0 support outside of beach.
<Ralith>
that was Drakeson, not me
<jsgrant_>
Ralith: Sorry; Sweepy.
<Ralith>
personally I'm keeping an eye on Xi
<jsgrant_>
Drakeson: ^*
<jsgrant_>
Ralith: Yeah, Xi is neat & Xray looks pretty okay if interested at-all at 'leveraging web-tech'.
<Drakeson>
yeah, "rewriting" emacs in anything non-lisp[1] sounds utterly stupid to my eyes. [1]: An *-ML one might be somewhat acceptable though.
<jsgrant_>
Atom, I wanted to like but was still painfully heavy even when they effectively halfed ram use.
<Ralith>
ew, web
<jsgrant_>
Ralith: I was insanely opposed, years ago, ELECTRON IS CANCER before Electron was 'a thing' & has grown on me -- more-so because it's "going to happen" and not-so much that I approve of the technical choices.
<Ralith>
electron is the sole reason I have memorized the magic sysrq for oom kill
<Ralith>
nix doesn't even attempt a clean binary build of electron
<Ralith>
it is a disaster in every regard
<jsgrant_>
WASM has raised my spirits/hopes by like 35% higher than my intial 25%.
<Ralith>
wasm is probably a good thing but it won't make electron any less fundamentally wrong
<jsgrant_>
Ralith: What I want/hope is that someone will eventually supplant it with a small runtime & lib, that is generic enough to be run on "all modern browsers" ... but sure the amount of effecitve inherent vendor-lockin to Electron, wouldn't be trivial task on anything, if such a means did catch on.
<Drakeson>
I don't have super high hopes for wasm yet. It hasn't landed yet (where is the sudo apt-get install something-wasm?)
<jsgrant_>
The fact that three.js is relatively popular, and so surely will be webvr/ar -- have no doubt that Wasm will be huge.
<Drakeson>
jsgrant_: Aah, I literally meant debian/ubuntu when I said "sudo apt-get", not just a way to install it in nixos.
<Drakeson>
Until it is easily installable on a wide range of developer machines with 0 hair pulling, there will be a gap in interest.
<jsgrant_>
Drakeson: Think you are going to probably see in prog-lang packagemanagers first; I'm absolutely sure Cargo has some support right now.
rauno has joined #nixos
<jsgrant_>
Wonder what the actual/practical perfomance lose though is targeting what is an effectively a virtual-arch, like the Jvm, iiuc, is?
ryanartecona has joined #nixos
<Drakeson>
The loss can be very small. Less than 5% of native in cases I have heard about.
aarvar has joined #nixos
quam6246 has quit [Ping timeout: 264 seconds]
<jsgrant_>
Drakeson: Well, that would be actually "revolutionary" in my eyes; I'd expect (based on nothing) and be happy with only ~65-75% native.
hamishmack has joined #nixos
<Drakeson>
I am SURE I have seen benchmarks showing 95% native speeds.
<Drakeson>
That's not the issue.
<Drakeson>
The real problem is reliably designing a performant editor infra (including the buffer representation data structure, etc.) on somewhat unknown VMs (with regards to performance bottlenecks).
ryanartecona has quit [Ping timeout: 240 seconds]
<jsgrant_>
Drakeson: Isn't that some of the appeal of Electron at core, in-theory though? One implementation?
<Drakeson>
So, you *might* port xdisp.c (of emacs) to WASM, but that file has an insurmountable number of performance hacks in it, which will most likely not make any sense on a display-oriented VM like a browser.
<jsgrant_>
Drakeson: Oh, okay I get ya.
Rusty1_ has quit [Quit: Konversation terminated!]
<Drakeson>
I mean have you ever looked at the "redisplay engine" in emacs? That is a certainly not for the faint of heart...
<jsgrant_>
But I think that would be inhreent anyways, because you are chaning the paradigm or at least level of abstraction still -- even if you're getting closer to native performance?
<Drakeson>
So, whenever I hear "cross-platform framework" and "editor" mentioned in the same sentence I cringe internally.
<jsgrant_>
Drakeson: I just think it's invetible; At least for "the average user/consumer" -- maybe, maybe even certainly-not for what I'd stereotype the average "Linux user" let alone NixOS ones.
<Drakeson>
Sorry, I lost you a bit; What is inevitable?
<iqubic>
Drakeson: What about emacs?
<Drakeson>
iqubic: what about it?
<iqubic>
Is it a "cross-platform framework"?
<jsgrant_>
Drakeson: Even if it's ugly schematically, I think "Web As A Platform" is going to be the winner now no-matter what; And that perfomance and different kind-of dirty hacks be damned -- that you can't fight "progress".
<jsgrant_>
Thought Electron was going to be mostly a fad, a few years later, I bought a Nexus5 with the intention to act as a dedicated FirefoxOS phone a year after it got killed off; Never thought I'd even be in that mindset. And I think Wasm made me a beliver (a begruding one, but a believer).
* jsgrant_
is half-rambling; Probably going to pop-off in 30 fyi.
<jsgrant_>
Just think it's all weird/amazing.
<Drakeson>
iqubic: I would call emacs a framework. It is a VM with a display engine (and a few other things) built-in. Somewhat like a browser.
<jsgrant_>
Self-contained desktopEnvironment; Kind of like a browser.
<Drakeson>
Whooops! I was going to say "I WOULDN'T call emacs a framework". Oh *facepalm*...
<hyper_ch>
home server still running with zfs stability patch... migrating currently 2x 8TB drives
<hyper_ch>
it takes so long to copy 8TB drives :(
<iqubic>
8TB is a lot. How much data do you have?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy opened pull request #34247: unpackPhase: Handle sources starting with a hyphen (staging...default-unpack-hyphenated-names) https://git.io/vN6ye
NixOS_GitHub has left #nixos [#nixos]
<jsgrant_>
iqubic: Old NixOS generations.
<jsgrant_>
Everyone asks how big there root should be; Answer is always 36tb; No-one ever listens.
ma27 has quit [Ping timeout: 240 seconds]
<jsgrant_>
their*
<iqubic>
Why would you want to keep *all* the old generations?
<jsgrant_>
iqubic: Bad joke.
a6a3uh has joined #nixos
<hyper_ch>
jsgrant_: I don't have those worries iwth zfs :)
<iqubic>
Yeah, I also use zfs, and it is awesome.
* jsgrant_
was going to messabout with Btrfs; But is a bit more excited for & will wait on Stratis.
<hyper_ch>
I really, really love compression=lz4
a6a3uh has quit [Client Quit]
<iqubic>
Me too.
<hyper_ch>
jsgrant_: btrfs? you like to live on the edge?
simukis has joined #nixos
<iqubic>
I think I am also using that.
<iqubic>
at your recomendation no less.
<jsgrant_>
hyper_ch: Typically, not for FS though; That's why I decided against after Redhat basically declared it dead & said moving on.
<hyper_ch>
jsgrant_: have a look at zfs :)
<hyper_ch>
iqubic: lz4 works great and doesn't noticeably lag down things
<jsgrant_>
Licensing thing as-I-understand-it, annoys me enough that I've always decided against it.
<iqubic>
hyper_ch: I know. I'm using it because you recommended it to me.
<jsgrant_>
Tfs i'm midly interested in.
<jsgrant_>
Which aproximates a fair amount of Zfs, it seems.
rauno has joined #nixos
<jsgrant_>
Or has in it's roadmap.
<hyper_ch>
jsgrant_: zfs licensing is not an issue on nixos
<jsgrant_>
Stratis seems to be shooting for the more middle-man, less idealistic approach though; Which I think I'd side with ultiamtely anywyas.
<jsgrant_>
hyper_ch: Why? I thought it was inhreent with using it with the Linux kenrel generally?
<hyper_ch>
jsgrant_: don't know :)
<hyper_ch>
but debian offers it, ubuntu offers it, nixos offers it
<jsgrant_>
Something about the 'Common Development & Whatever License' not being compatible with the GPLv2? Maybe it's just not a real legal worry that Oracle will act on it for these community projects; But ones sponsored by companies are more caustious?
<Drakeson>
The issue is loading a non-gpl kernel module, IIRC.
<Drakeson>
It's not just oracle (or perhaps not them at all)
<jsgrant_>
Drakeson: You know, that sounds vaguely familar; Like a zfs.ko or something?
<hyper_ch>
Wikipedia "The Free Software Foundation (FSF) considers it a free software license, but one which is incompatible with the GNU General Public License (GPL)."
<hyper_ch>
And zfs.ko, as a self-contained file system module, is clearly not a derivative work of the Linux kernel but rather quite obviously a derivative work of OpenZFS and OpenSolaris. Equivalent exceptions have existed for many years, for various other stand alone, self-contained, non-GPL kernel modules."
<Drakeson>
Is oracle still pushing/selling [Open-]Solaris (or other variants of it)? If not, I fail to see why they havent already worked towards dual-licensing zfs under GPLv2... (just my 2c).
<hyper_ch>
Drakeson: why don't the make the virtualbox addon (for usb 2/3 support etc) also easily available?
<hyper_ch>
instead you have to go through hoops and stuff
<Drakeson>
Yeah that I dont understand either
<hyper_ch>
IMHO it's just Oracle being dicks.....
<hyper_ch>
but meanwhile I was able to convert to qemu/kvm
<jsgrant_>
Oracle has had a bad reputation with their relationship to opensource for years though, no? I remember near 10 years ago (when first switched to Linux), people were freaking out about there relationship to Openoffice.
<jsgrant_>
Uh-oh; Doing the double speak again (relationship, relationship), getting close to bed time.
<hyper_ch>
I don't really like Oracle
jtojnar has quit [Quit: jtojnar]
quam6246 has joined #nixos
<Drakeson>
Quite honestly, I don't think they know or care much about the issues with the open source world.
<jsgrant_>
Drakeson: Yeah, I assume they are just profitable enough to the "entereprise datebase" crowd to not care about much else.
dj_goku has joined #nixos
quam6246 has quit [Ping timeout: 268 seconds]
<jsgrant_>
Oooookay, bedtime y'all (for real). o/
* jsgrant_
goes to lurking; Shuts screen for the night.
<hyper_ch>
"... and installs zfs"?
MercurialAlchemi has joined #nixos
samae has joined #nixos
theseriousadult has joined #nixos
<Isorkin>
on zfs which algorithm checksum, dedup is better?
atrx has joined #nixos
<hyper_ch>
Isorkin: ?
<hyper_ch>
I doubt you want dedup
<hyper_ch>
except when you're offering large clouds and stuff
<Isorkin>
hyper_ch: need in home nas, I try to compare dedup=sha256,verify|sha512,verify|skein,verify But I'm not sure which is optimal
<hyper_ch>
you know, dedup needs lots of ram
<hyper_ch>
I wouldn't run that in a home nas
quam6246 has joined #nixos
dejanr has joined #nixos
<Isorkin>
16Gb a little?
<adisbladis[m]>
I've heard a good rule of thumb is 1G of ram per TB of deduped storage
<hyper_ch>
I heard that as well... + ram for the rest of the system
<hyper_ch>
but trying to find that
glenn_ has quit [Ping timeout: 252 seconds]
Itkovian has joined #nixos
LnL has quit [Ping timeout: 260 seconds]
quam6246 has quit [Ping timeout: 268 seconds]
marusich has quit [Ping timeout: 252 seconds]
marusich has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
zzamboni has joined #nixos
marusich has quit [Ping timeout: 252 seconds]
marusich has joined #nixos
MichaelRaskin has left #nixos [#nixos]
<fearlessKim[m]>
trying to debug my problem, I dont get why `builtins.functionArgs buildLinux` (in nix-repl) lists no arguments ?
LnL has joined #nixos
<fearlessKim[m]>
I would expect modDirVersion/kernelPatches to appear
leat1 has quit [Ping timeout: 240 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NixOS_GitHub>
[nixpkgs] mbode opened pull request #34249: terraform-landscape: init at 0.1.17 (master...terraform-landscape_0_1_17) https://git.io/vN6Qu
NixOS_GitHub has left #nixos [#nixos]
Tobba has joined #nixos
frankqux_ has quit [Ping timeout: 268 seconds]
silver_hook has joined #nixos
silver_hook has quit [Changing host]
silver_hook has joined #nixos
quam6246 has quit [Ping timeout: 260 seconds]
nonethejewels has joined #nixos
asuryawanshi has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
reinzelmann has joined #nixos
theseriousadult has joined #nixos
ambro718 has joined #nixos
zzamboni has quit [Quit: Leaving.]
ryanartecona has joined #nixos
hotfuzz_ has joined #nixos
hotfuzz has quit [Ping timeout: 268 seconds]
ryanartecona has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Remote host closed the connection]
CrazedProgrammer has quit [Ping timeout: 268 seconds]
theseriousadult has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
leat1 has joined #nixos
theseriousadult has joined #nixos
tv has quit [Ping timeout: 240 seconds]
jrolfs__ has joined #nixos
tv has joined #nixos
jrolfs__ has quit [Ping timeout: 240 seconds]
<ij>
How should I pin things to some gc root, so that the stuff I use in nix-shell wouldn't be picked? I don't think I want it in my user profile unless there's no other way.
MP2E has quit [Remote host closed the connection]
Tucky has joined #nixos
<hyper_ch>
ij: not really sure what you want to achieve
asuryawanshi has joined #nixos
asuryawanshi has quit [Ping timeout: 260 seconds]
marusich has quit [Ping timeout: 252 seconds]
marusich has joined #nixos
dan_b has joined #nixos
asuryawanshi has joined #nixos
psychon_ has joined #nixos
Havvy has quit [Read error: Connection reset by peer]
<psychon_>
hi, quick question that Google couldn't answer: How often is staging merged into master? Assuming I want to submit a PR based on something that was merged into staging today, does it make sense to wait for it to appear on master or should my PR go to staging? (May I even submit PRs to staging that do not cause mass rebuilds?)
<psychon_>
I just suffer from helper's syndrome ;-)
jrolfs__ has joined #nixos
<hoverbear>
fearlessKim[m]: Yes nix is still a big puzzle for me though xD
<sphalerite>
psychon_: is that when you spend far more time than you probably should on any opportunities you find to help people?
civodul has joined #nixos
<psychon_>
I'm upstream for awesome and then help distros package it properly
<psychon_>
which for nixpkgs means "get rid of all that env vars that you set which cause problems"
<psychon_>
I set up a nixos vm just for that, which objectively is a bit absurd, I think
<hoverbear>
psychon_: Not that absurd =D
<psychon_>
well, okay, and the idea of nix sounded interesting and I wanted to play a bit with it
<fearlessKim[m]>
hoverbear: guess that makes 2 of us. The wrapper mechanism is one more oddity to get over with :>
<psychon_>
it's a bit sad that the rpath stuff does not work completely like nix would need it, but still it's interesting...
<bkchr>
Anyone has an idea how to fix "error: No module named PyQt4.QtGui"? -.-
jrolfs__ has quit [Ping timeout: 240 seconds]
lonokhov has joined #nixos
<hoverbear>
fearlessKim[m]: Yeah I've been looking at the neovim wrapper and it makes my brain spin
<sphalerite>
psychon_: isn't it RUNPATH that doesn't behave the way it's needed in this case?
<psychon_>
sphalerite: well, yes, it is DT_RUNPATH vs DT_RPATH, but both are set via the linker's -rpath command line argument... I'm not quite sure what the correct terminology is
<sphalerite>
psychon_: ah right
<fearlessKim[m]>
hoverbear: before writing the neovim wrapper, I was like you, it's pretty simple in fact. upstream binary = one derivation, a shell script to setup a custom environment and launch the raw binary = one derivation :)
adamt has joined #nixos
asuryawanshi has joined #nixos
<hoverbear>
fearlessKim[m]: you did the neovim wrapper?
glenn_ has quit [Ping timeout: 252 seconds]
<fearlessKim[m]>
hoverbear: yep, so maybe you shouldn't use it as a reference xD
asuryawanshi has quit [Remote host closed the connection]
Isorkin has quit [Read error: Connection reset by peer]
Isorkin has joined #nixos
<hoverbear>
fearlessKim[m]: can we maybe connect and pair up sometime this next week and chat about it?
nuncanada has joined #nixos
<hyper_ch>
palemoon takes a long time to compile
<fearlessKim[m]>
hoverbear: if you want but maybe it's best to open a PR and ping me ? @teto
quam6246 has joined #nixos
<hoverbear>
fearlessKim[m]: I'm kind of stuck at where to start :&
alex`` has joined #nixos
thc202 has joined #nixos
<fearlessKim[m]>
hoverbear: start with the big picture and modify the all-packages.nix. zsh becomes zsh-unwrapped and the new zsh becomes sthg like zsh = callPackage ../shells/zsh/wrapper.nix { };
quam6246 has quit [Ping timeout: 248 seconds]
<fearlessKim[m]>
you can copy the neovim wrapper.nix and replace neovim with zsh
<hoverbear>
fearlessKim[m]: I'm working on an overlay atm
<hoverbear>
fearlessKim[m]: Yeah I have a copy of the neovim wrapper I'm modifying atm but it uses a lot of syntax I'm not familiar with at all
<aminechikhaoui>
hm wonder why rustc isn't available in the 17.09 channel
<aminechikhaoui>
doing `nixos-rebuild switch -I nixpkgs=channel:nixos-17.09` is triggering a rebuild of rustc
asuryawanshi has quit [Remote host closed the connection]
<aminechikhaoui>
although not sure which jobset exactly
quam6246 has joined #nixos
<theseriousadult>
aminechickhaoui, hoverbear: I'm having the same issue, build fails on my local machine as well
asuryawanshi has joined #nixos
gilligan_ has joined #nixos
<gilligan_>
hi o/
adamt has joined #nixos
adamt has quit [Changing host]
adamt has joined #nixos
<gilligan_>
can someone tell me if there is a way to have nixos-rebuild-switch tell me why it builds something? i am watching rustc packages getting compiled which takes forever and I have no idea why anything has to be compiled or where the rustc dependency comes from
ssmike has joined #nixos
ssmike has quit [Client Quit]
ssmike has joined #nixos
<lejonet>
gilligan_: iirc that is a known problem, its Firefox causing it
<aminechikhaoui>
gilligan_: yeah seems same issue we were discussing
<aminechikhaoui>
seems the rustc failures started with glibc update
<theseriousadult>
lejonet: not quite fair to say FF is causing it - rustc build on hydra server is failing, which is why this is an issue at all
<aminechikhaoui>
oh right, yeah that was a wrong link
<hoverbear>
aminechikhaoui / theseriousadult : I had the Rust stage0 build last night from ripgrep, did a `nixos-rebuild switch --upgrade` and it was gone. Could also try using unstable ripgrep.
<theseriousadult>
hoverbear: unstable ripgrep works
<hoverbear>
fearlessKim[m]: Mind if I PM you and ask some questions later?
<fearlessKim[m]>
hoverbear: please do.
zzamboni has joined #nixos
quam6246 has joined #nixos
evangeline has quit [Quit: ZNC 1.6.5 - http://znc.in]
quam6246 has quit [Ping timeout: 268 seconds]
<sphalerite>
ertes-w: (or any other emacs users) do you know of any tutorials or other docs that might help me getting started with emacs+nixpkgs? As a current vim user
<ertes-w>
sphalerite: put this in your ~/.emacs: (setq package-user-dir "~/.nix-profile/share/emacs/site-lisp/elpa") (package-initialize)
<ertes-w>
sphalerite: then all emacsPackagesNg packages should work out of the box
<sphalerite>
ertes-w: and I just install them using nix-env?
<sphalerite>
fearlessKim: also I have to use emacs a bit anyway since there doesn't seem to be any fleshed-out agda package for vims
<sphalerite>
so I might be a lost cause :p
<fearlessKim[m]>
sphalerite: that's a pretty lean setup, vim is a bit dry without any plugin
<ertes-w>
if you want vim-style editing in emacs, there are a few options
dywedir has quit [Remote host closed the connection]
orivej has joined #nixos
<ertes-w>
there is evil-mode, and a lot of former vim users seem to like spacemacs
<fearlessKim[m]>
sphalerite: we can run emacs in vim etc. I also heard tales bout people runing emacs as a backend for some vim plugins
<sphalerite>
my general impression is that emacs is engineered while vim is much more organically grown
hiroshi- has joined #nixos
<sphalerite>
fearlessKim: what would you say is missing from my vim setup?
<sphalerite>
ertes-w: yeah. I'm on the fence about using evil-mode vs learning emacs keys
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi- is now known as hiroshi
<fearlessKim[m]>
I am a vim noob and dunno emacs (tried once to decide between vim and emacs and the shortcuts seemed a pain) so I am in a bad position to give advice xD
<fearlessKim[m]>
I like vim-grepper/fzf.vim/Far/Signify/signature/startify etc.
<Tucky>
Hello, how can I install all packages from kdeApplications? I tryed "kdeApllications.*" in my config.nix without success.
<sphalerite>
Tucky: for a declarative setup you'll want to merge kdeApplications into the existing set. I don't know how your config.nix works, could you paste it somewhere?
Intensity has quit [Remote host closed the connection]
Isorkin_ has joined #nixos
<Tucky>
sphalerite: sorry I am not on the concerned machine. But my config.nix is almost not tweaked (fresh install)
<sphalerite>
you mean config.nix or configuration.nix?
<ertes-w>
sphalerite: if you're already used to vim keys, there is little point in learning emacs keys
<ertes-w>
sphalerite: you should probably just map the extra features that emacs offers to vim-style key sequences
<sphalerite>
Tucky: config.nix is ~/.config/nixpkgs/config.nix, the user-specific nixpkgs config file. configuration.nix is /etc/nixos/configuration.nix, the systemwide config
<sphalerite>
ertes-w: fair enough
jrolfs__ has joined #nixos
<ertes-w>
sphalerite: i'm just used to emacs keys at this point, and i have no intention to invest the time in learning vim keys
<Tucky>
sphalerite: sorry I mean /etc/nixos/configuration.nix
<ertes-w>
(i do know some basics, but that's about as far as i want to go)
Isorkin has quit [Ping timeout: 240 seconds]
seccus has quit [Ping timeout: 240 seconds]
jensens has joined #nixos
<sphalerite>
Tucky: in that case I think something like `systemPackages = with pkgs; [ foo bar baz ] ++ builtins.attrValues pkgs.kdeApplications;` should do the trick
seccus has joined #nixos
zzamboni has joined #nixos
chaker has joined #nixos
jrolfs__ has quit [Ping timeout: 240 seconds]
<Tucky>
sphalerite: I just made a quick search in the manual and I didn't find documentation about your trick.
<sphalerite>
Tucky: attrValues should be in the nix manual
<sphalerite>
(it's a bit annoying having three manuals that look the same visually...)
<sphalerite>
there's the nix manual, the nixpkgs manual, and the nixos manual which are all distinct
<chaker>
Hey, I'm trying to build an sbt project, is there a reference for how to get the deps in such projects I tried to use sbtix but even with it, some deps aren't fetched "org.scala-lang#jline;2.10.5: not found".
jrolfs_ has quit [Ping timeout: 252 seconds]
<teozkr>
hey chaker: this happens when you're using a different version of SBT than the one Sbtix was built against
<teozkr>
which is currenly 0.13.15
<Tucky>
sphalerite: aaaaaaaaaaaah that's a bit confusing indeed…
<chaker>
Ahh, I remember that yesterday when trying to use sbtix I found out that it doesn't support 1.x
<fgaz>
what is the current state of updateWalker scripts?
<fgaz>
is their use encouraged?
fyuuri has joined #nixos
<tilpner>
How do you pass a list of paths from a derivation to its builder?
<sphalerite>
tilpner: encode it as a string. If you make it a list attribute of the derivation, it will get passed through as space-separated strings iirc
<sphalerite>
tilpner: if you need escaping, you can use escapeShellArgs.
garbas has joined #nixos
<sphalerite>
tilpner: nix 1.12 also has some sort of support for exposing nix values using bash values, I don't know the details though
tmaekawa has joined #nixos
<sphalerite>
s/1.12/unstable/
hellrazo1 has quit [Quit: WeeChat 2.0.1]
<tilpner>
Yes, that's what I'm looking for. It wouldn't be documented already, would it? :/
tmaekawa has quit [Client Quit]
<sphalerite>
tilpner: check out 6de33a9c675b187437a2e1abbcb290981a89ecb1
<tilpner>
Thank you! :)
mint_ has quit [Ping timeout: 268 seconds]
<sphalerite>
the commit message explains how to use it
<sphalerite>
oh wait no it's not bash values, it's JSON. But yeah it supports structured data
<tilpner>
__structuredAttrs looks kind of weird
<tilpner>
But this is perfect!
asuryawanshi has quit [Remote host closed the connection]
<tilpner>
Huh, I thought the builder was called like a normal executable... it appears to be just sourced
jrolfs_ has quit [Ping timeout: 240 seconds]
jrolfs__ has quit [Ping timeout: 240 seconds]
swayf has joined #nixos
quam6246 has joined #nixos
alex`` has quit [Ping timeout: 240 seconds]
<i-am-the-slime>
Does anybody know how I can make the "save password" feature of IntelliJ work?
<i-am-the-slime>
Actually: Data GRIP
<teozkr>
chaker: it should be project/build.properties
<i-am-the-slime>
I am using kde. Do I need something like kdewallet?
quam6246 has quit [Ping timeout: 268 seconds]
<tilpner>
sphalerite - This is surprisingly hard to use :s
<sphalerite>
:(
<sphalerite>
tilpner: maybe jq could be helpful?
<infinisil>
tilpner: you could also just use a file to pass stuff
<tilpner>
sphalerite - I want a non-bash builder, and I can't pick the executable from PATH because PATH=/path-not-set, because stdenv="", because __structuredAttrs=true disables passing as normal arguments
<LnL>
tilpner: it is, $stdenv/setup is sourced
<tilpner>
LnL - I don't think $stdenv is a thing with __structuredAttrs
<tilpner>
(But I'm probably wrong)
<sphalerite>
tilpner: yeah I don't think nixpkgs is currently equipped to handle __structuredAttrs at all
<tilpner>
I could write a JSON parser in bash (!!!) so that I can find stdenv with .attrs.json, so that I can locate the executable I want to re-exec myself with
<tilpner>
But that sounds like a lot of pain
<infinisil>
tilpner: as said by sphalerite, use jq!
<tilpner>
How would I find jq? My PATH=/path-not-set
<infinisil>
${pkgs.jq}/bin/jq
<sphalerite>
^
<tilpner>
The builder isn't embedded into the Nix file
<infinisil>
or `export PATH="${pkgs.jq}/bin/jq:$PATH"`
<tilpner>
Then I need a two-stage builder with the first part coming from inside my .nix, executing the second :/
<tilpner>
I think I'll just reconsider what I'm doing and go the boring route, even if it sucks too
<chaker>
Does sbtix provide a way to generate those from the version?
i-am-the-slime has quit [Ping timeout: 256 seconds]
tmaekawa has joined #nixos
quam6246 has joined #nixos
<yann-kaelig>
elo nixos world. I will test nixos in a vm for its package system. Unfortunately because of the choice of the init I do not think to install it as an operating system for the moment. I understood that there was a desire to move to another init. I'm using runit currently that works well, but it would be interesting to take a look at S6 http://www.skarnet.org/software/s6/why.html
<tilpner>
yann-kaelig - GuixSD might be your best bet for a Nix-ish OS without systemd in the reasonably near future
<teozkr>
chaker: pretty much, yeah
<yann-kaelig>
yes but this OS is not ready for production purpose and lack a lot of drivers/firmware for my purpose
<teozkr>
and rebuild it for the new SBT version
sigmundv_ has joined #nixos
jrolfs_ has joined #nixos
<teozkr>
there is currently no way to generate it automatically; that file exists to plug the holes of the automatic discovery
<teozkr>
if it was perfect then there wouldn't be any manual-repo.nix to begin with :P
<ij>
Yeah, but I want a shell.nix, so I need the code. :P
tmaekawa has quit [Ping timeout: 240 seconds]
<steveeJ>
ij: nix-shell is meant to provide development environments for the derivation you pass to it. this means the packages you want to use within the nix-shell need to be dependencies e.g. buildInputs of that derivation
<infinisil>
and the -p argument does that for your ease of use
<infinisil>
and if you didn't know, -p takes any nix: `nix-shell -p 'with import <nixpkgs> {}; hello'`
fuyuuri has joined #nixos
ryanartecona has joined #nixos
<infinisil>
Alright what the hell, I keep changing the hash of a derivation because it keeps complaining everytime
<infinisil>
hash X, expected Y, changing it to Y, expected Z, changing it to Z, ...
ryanartecona has quit [Ping timeout: 260 seconds]
<tilpner>
infinisil - Have a result out-link in your src?
<infinisil>
there is no src, it's a fetchFromGitHub
<infinisil>
with a postFetch
<tilpner>
Paste?
jrolfs_ has quit [Ping timeout: 240 seconds]
<infinisil>
looooooooool
<infinisil>
I'm just really stupid ignore me
<infinisil>
Wait maybe not
* infinisil
tries once more
ma27 has joined #nixos
zzamboni has quit [Quit: Leaving.]
ma27 has quit [Client Quit]
<ij>
I managed to add nix-shell's ENVs to a zsh shell with direnv. \o/
LnL has joined #nixos
ma27 has joined #nixos
jrolfs_ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
chaker has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to release-17.09: https://git.io/vNiIM
<NixOS_GitHub>
nixpkgs/release-17.09 9c96edf Vladimír Čunát: Merge #34205: rust: disable a test to fix build...
<NixOS_GitHub>
nixpkgs/release-17.09 563e39f Daiderd Jordan: rustc: disable stack test with glibc...
NixOS_GitHub has left #nixos [#nixos]
<infinisil>
Alright, am not stupid, this is really happening, getting a different hash everytime
<infinisil>
is there a function to reset timestamps in nixpkgs?
rauno has quit [Ping timeout: 246 seconds]
<tilpner>
I thought that was taken care of by the generic builder
<tilpner>
I never had to be careful about that
<tilpner>
But then again, I don't usually --check my things
jrolfs__ has quit [Ping timeout: 240 seconds]
<infinisil>
:o it worked now
<tilpner>
What did you change?
<infinisil>
the hash lol
<infinisil>
0nggm... is the one that works (for now)
<infinisil>
Ima run some --checks
<LnL>
fetchSubmodules isn't stable for hashes
Shados has quit [Ping timeout: 246 seconds]
<LnL>
if upstream pushes to a bunch you'll get a different hash
mujx[m] has left #nixos ["User left"]
<chaker>
teozkr: It seems that the version change worked. However I now have an error in getting one of the project dependencies "unresolved dependency: org.scala-lang.modules#scala-xml_2.10;1.0.6" . Eventhough I rerun sbtix-gen-all2
<infinisil>
LnL: Why though? Don't submodules specify the exact revision?
<LnL>
you need .git for submodules to work
Fannar has joined #nixos
Fannar has quit [Client Quit]
<infinisil>
o
<infinisil>
oh
<infinisil>
well that sucks
cinimod has joined #nixos
<teozkr>
chaker: when building sbtix?
Shados has joined #nixos
<chaker>
No, when building my application
<chaker>
using sbtix
<teozkr>
oh
<tilpner>
LnL - You need to fetch .git, but you don't need to keep it, right?
<teozkr>
so rebuilding and reinstalling sbtix worked?
<chaker>
Yep sbtix works fine
<teozkr>
hmm
<teozkr>
you could try adding it to manual-repo I suppose
<infinisil>
tilpner: but it needs to be fetched, so a fixed output derivation is required
<LnL>
tilpner: could be misremembering but I think fetchSubmodules implies that
<teozkr>
chaker: that said.. is the error when building the project definition, or when building your code?
<tilpner>
infinisil - But the output doesn't change, even if .git is unstable, because you can delete .git after checking out submodules, right?
<tilpner>
infinisil - Only keepDotGit would be bad
<infinisil>
tilpner: ah right, never mind my last msg
<chaker>
teozkr: Will do. BTW the error that I encountered eariler was while using sbtix-gen-all2 not while building sbtix. In fact I build sbtix yesterday using "nix-env -f . -i sbtix" and it worked without any problem.
<chaker>
<chaker>
When building the code
<chaker>
The generation of the nix files with sbtix finished without any problems
<LnL>
infinisil: tilpner: I was thinking of deepClone
rauno has joined #nixos
<teozkr>
yeah, that makes sense, since sbtix is pegged
<teozkr>
the problem is when it doesn't find all the dependencies available
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #34250: sensu-check-wmiplus: init at 1.63 (master...p/wmi) https://git.io/vNitZ
NixOS_GitHub has left #nixos [#nixos]
hyphon81 has joined #nixos
<tilpner>
LnL - So you agree that leaveDotGit = false; fetchSubmodules = true; (fetchgit default) should be stable?
<chaker>
I will try to add it manually. I hope it's the only library missing.
<cinimod>
How do I combine these? Alternatively wha part of which manual / tutorial should I read?
<chaker>
teozkr: The weird thing though that the dependency exist in repo.nix "scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.pm"
<chaker>
s/pm/pom
<teozkr>
chaker: that's scala-xml_2.12, your earlier error mentioned scala-xml_2.10
<teozkr>
so same library but built against different Scala versions
<teozkr>
that said.. might be because you didn't change the project back to 1.x?
<hyphon81>
Yeah.
<hyphon81>
I succeeded to build Azure VM with NixOps.
<teozkr>
not sure why else you'd have a 2.10 dependency
<LnL>
tilpner: yes
jrolfs__ has joined #nixos
<cinimod>
Done it :)
Ineff has joined #nixos
fuyuuri has quit [Ping timeout: 248 seconds]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
<hyphon81>
It needs fixing NixOps's code and some confusable Azure settings.
jrolfs_ has quit [Ping timeout: 268 seconds]
jrolfs_ has joined #nixos
thetet has joined #nixos
leat1 has quit [Ping timeout: 246 seconds]
Guest94608 has quit [Changing host]
Guest94608 has joined #nixos
Guest94608 is now known as TweyII
leat1 has joined #nixos
Ineff has quit [Ping timeout: 260 seconds]
<TweyII>
I have a project that has a Nix derivation to build it. How do I make sure the system's OpenGL implementation is visible to the builder?
<TweyII>
(on NixOS and also non-NixOS)
betaboon has joined #nixos
tazjin has joined #nixos
xcmw has joined #nixos
ThatDocsLady has joined #nixos
iqubic has quit [Ping timeout: 252 seconds]
raynold has quit [Quit: Connection closed for inactivity]
dkao has quit [Ping timeout: 240 seconds]
ixxie has quit [Quit: Lost terminal]
<avn>
TweyII: you want use soft-renderer during build process?
ayyjayess[m] has joined #nixos
<TweyII>
avn: No, I want to link against the system OpenGL, whatever that may be
<TweyII>
avn: On NixOS everything gets LD_LIBRARY_PATH=/run/opengl-driver/lib, but that doesn't exist on other systems
<avn>
TweyII: you need link against mesa_nonglu at the moment
iyzsong has joined #nixos
<avn>
TweyII: /run/opengl-driver intended only for run-time subverting of drivers with blobs (if you use any)
jrolfs__ has quit [Ping timeout: 268 seconds]
<TweyII>
avn: Ah, so the way we do it is to link against mesa, and then override?
<avn>
Yes, at least for now
<TweyII>
Okay, thanks
oida has quit [Quit: WeeChat 1.6]
coot has joined #nixos
oida has joined #nixos
goibhniu has quit [Ping timeout: 260 seconds]
adamt has quit [Ping timeout: 240 seconds]
<betaboon>
hello #nixos. I'm back from my nixops+overlay+privateGitRepos odyssee. just ran into fetchFromGitHub(private=true) not supporting fetchSubmodules. has anyone gotten fetchgitPrivate to work with nixops on multiuser-nix-installations ?
ma27 has joined #nixos
adamt has joined #nixos
<yann-kaelig>
the chapter about per package cflags has been removed ?
hyphon81 has quit [Quit: Konversation terminated!]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrolfs__ has joined #nixos
i-am-the-slime has joined #nixos
jrolfs__ has quit [Ping timeout: 252 seconds]
__monty__ has joined #nixos
bkchr has quit [Remote host closed the connection]
<kreetx>
is there a way to get an explicit list of installed packages? (i.e which I've nix-env -i'ed)
<sphalerite>
kreetx: nix-env -q
glenn_ has quit [Ping timeout: 276 seconds]
<kreetx>
sphalerite: ah, perfect!
<sphalerite>
I've set up a bunch of computers to netboot nixos, which is really cool and works nicely, but I'd like to be able to SSH into them more easily. I've added `Host 10.123.0.*\n\tUserKnownHostsFile /dev/null` to my SSH config so it doesn't try to remember the keys which are regenerated on every boot, but now I still need to type "yes" every time I want to SSH into one of the machines.
vidbina has quit [Ping timeout: 248 seconds]
xcmw has joined #nixos
vidbina has joined #nixos
<sphalerite>
Does anyone have a nice way to manage this sort of thing?
glenn_ has joined #nixos
<sphalerite>
I suppose I could deploy fixed SSH host keys as part of the netboot image but that doesn't seem so nice
<nahamu>
Find a way to have the netbooted machines send their new public key to a service that puts them into DNS?
nschoe has joined #nixos
steshaw has quit [Quit: Connection closed for inactivity]
<nahamu>
There's all sorts of security issues with that idea too, though.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vNi4c
<NixOS_GitHub>
nixpkgs/master 3391266 Tim Steinbach: linux-copperhead: 4.14.14.a -> 4.14.15.a
NixOS_GitHub has left #nixos [#nixos]
glenn_ has quit [Ping timeout: 252 seconds]
jrolfs__ has joined #nixos
<sphalerite>
nahamu: currently I'm trusting them every time I log into the machines too, so…
<sphalerite>
I suppose the real solution here would be to store the keys in a TPM
<nahamu>
That would be very elegant, yes.
<infinisil>
sphalerite: keys being regenerated on every boot? Why that?
<sphalerite>
but A, most of the machines don't have one, and B, I wouldn't know how to configure sshd for that :(
<sphalerite>
infinisil: netboot
<nahamu>
Is there any local storage on these machines?
<sphalerite>
nahamu: some but not all
<nahamu>
Also, how are you building your netboot environment? I've been playing with that sort of thing again lately myself.
dza_ has joined #nixos
rauno has quit [Remote host closed the connection]
<the-kenny>
You could generate the ssh-key deterministically somehow from the cpuid or something. Or maybe just disable hostkeychecking on the connecting party? (security issues aside here))
<infinisil>
that doesn't seem very secure
<sphalerite>
the-kenny: there's no option for disabling host key checking AFAIK. As I mentioned earlier I'm using UserKnownHostsFile=/dev/null so it always allows me to connect, but I don't think I can disable the prompt
<sphalerite>
the-kenny: and that isn't really much more secure either since, well, it's deterministic :)
<the-kenny>
Don't share your cpuid then :o) You're right, of course
<nahamu>
!! I think that's the code that I built the first iteration of. I'm so happy to know that it's working for other people!
<Dezgeg>
I have '-o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=error' in some of my scripts
<sphalerite>
also: with a bit of hacking (because it doesn't have a standard PXE ROM, it's missing UNDI) nixos netboots even on a machine from 1997 or so!
<nahamu>
(And I'm glad it's been improved by people who know what they're doing when writing Nix code.)
<sphalerite>
Dezgeg: ooh, that sounds roughly like what I want
<sphalerite>
nahamu: so you wrote the bit that builds config.system.build.netbootRamdisk?
<nahamu>
that would be the easy way to make a two stage boot. :)
jrolfs_ has quit [Ping timeout: 240 seconds]
<nahamu>
rather than use a Linux kernel to download a second stage, just use iPXE.
labalella has joined #nixos
<sphalerite>
right but we still need an initrd somewhere, no?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gnidorah opened pull request #34255: vkquake: init at 0.97.3 (master...vkquake) https://git.io/vNiRR
NixOS_GitHub has left #nixos [#nixos]
<sphalerite>
oh, oh, I see. I think
<gchristensen>
well if you're right now downloading an initrd over tftp, this is why it is so slow
<sphalerite>
but using linux for the whole boot process would be cool! :P
<labalella>
has anyone by chance already tried running nixops with the new Hetzner Cloud? It looks like it is basically the old v-server thing with a new Web UI...
<gchristensen>
going to ipxe gets you to a decent protocol super fast, which then gets you a reasonably fast initrd download time
<sphalerite>
so it would download faster over other protocols? TIL
<gchristensen>
TFTP is a _terrible_ protocol :D it is basically cappped at a few kbps maximum throughput
* etu
once (many years ago) booted live CD's over PXE with tftp. That was very slow.
<sphalerite>
:o
<sphalerite>
well then!
<etu>
We had it in our company network to make it easy for IT people to set up new machines and as well we had some liveiso that could do password resets of windows machines :p
jrolfs_ has joined #nixos
<sphalerite>
I'll probably also need to work out how to use ISC dhcpd, because I'm not sure dnsmasq supports that more advanced stuff
<sphalerite>
hehe
evangeline has joined #nixos
<evangeline>
Hi, I've stumbled upon the following error when rebuilding the upgrading the system: http://dpaste.com/10TX0ZJ - is there any fix currently for this? I've seen https://github.com/NixOS/nixpkgs/issues/23282, but they're trying to fix some other issues as well, however no fix to apply at this stage to make the compilation pass.
<nahamu>
Back to SSH keys for a moment. If reboots are fairly infrequent, you can use ssh-keyscan to build/update a known-hosts file that you place where people can use it.
<nahamu>
You can definely use dnsmasq to chain from PXE to iPXE.
fuyuuri has joined #nixos
glenn_ has quit [Ping timeout: 252 seconds]
<gchristensen>
nahamu: is this w.r.t. the aarch box?
ssmike has quit [Remote host closed the connection]
<nahamu>
This was sphalerite talking about switching to use iPXE.
reinzelmann has quit [Quit: Leaving]
ssmike has joined #nixos
zzamboni has quit [Quit: Leaving.]
<sphalerite>
right I'll probably stick with it then, since it's easy
glenn_ has joined #nixos
jrolfs__ has quit [Ping timeout: 240 seconds]
jb55 has joined #nixos
silver has joined #nixos
coot has quit [Quit: coot]
aarvar has joined #nixos
<sphalerite>
uh… apparently the DHCP packets sent by iPXE on the really old machine are malformed
magnetophon has joined #nixos
<nahamu>
huh?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy opened pull request #1815: Fix restricted mode when installing in non-canonical data dir (master...data-dir-non-canon) https://git.io/vNiEH
NixOS_GitHub has left #nixos [#nixos]
<sphalerite>
my best guess is that it's trying to use UNDI, which the stock PXE ROM doesn't support
<sphalerite>
^ dump including the packets in question
glenn_ has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 2 new commits to master: https://git.io/vNiuX
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 7fc2b09 Jan Tojnar: Merge branch 'update/gthumb-3.6.0'
<NixOS_GitHub>
nixpkgs/master 3f88d9d Miguel Madrid Mencía: gthumb: 3.5.3 -> 3.6.0
<nahamu>
Ah, yeah, you could try using a full-blown iPXE instead of the undionly version.
glenn_ has joined #nixos
<sphalerite>
I'm using a card-specific image
<sphalerite>
10b79055.kpxe
<joko>
It's funny, today I was experimenting with network boot, too... I found out that NixOS minimal netboot wants at least 1GB of RAM and dnsmasq is really stupid
<sphalerite>
joko: netboot is working fine, albeit slowly, on a machine with 768MB for me
<sphalerite>
what's dnsmasq doing stupidly?
<joko>
sphalerite: with 512 it doesn't, it says booting and that's it
<joko>
well, I had clever's netboot server setup in mind, but my employer wanted dnsmasq and I could not tag properly ipxe, so that I pass undionly.kpxe and move to proper ipxe
glenn_ has quit [Ping timeout: 252 seconds]
jrolfs_ has quit [Ping timeout: 260 seconds]
<nahamu>
sphalerite: that's quite odd...
labalella has quit [Ping timeout: 260 seconds]
<joko>
Is anyone aware of losing UDP packets over virtual networks (ovs bridges)
<nahamu>
joko: yeah, I never found the time to try to heavily trim down the image. It's possible clever use of squashfs or something might be able to shrink the memory requirements.
dan_b has quit [Ping timeout: 240 seconds]
<nahamu>
My target was always RAM-rich machines.
<simpson>
joko: Yes, I've witnessed UDP packet loss over pretty much every kind of link I've worked with. No idea about OVS, but yes, UDP packet loss is real.
MercurialAlchemi has quit [Ping timeout: 252 seconds]
<pmeunier>
Hi! Is there a way to force the reevaluation of a set after //. For instance, in `(rec { a = 1; b = a+1; }) // { a = 2; }`, b = 2, but I'd like it to be 3.
glenn_ has quit [Ping timeout: 252 seconds]
cement has joined #nixos
jrolfs__ has joined #nixos
erasmas has joined #nixos
glenn_ has joined #nixos
<fearlessKim[m]>
gnome folks don't seem to know why file associations are so fucked up, nautilus wants to open everything with my pdf reader. I have a my mime-types configured ok. I believe as I use i3, I need to run some gtk utility in the background, any idea ?
<fearlessKim[m]>
pmeunier: doesn't it depend when you call b ? it should be 3 if it's evaluated after the //
<pmeunier>
fealressKim[m]: right, so that's why I'd like to know how the evaluation order works, in my tests it's 2.
<gchristensen>
no, it doesn't because the + is evaluated before the //
jrolfs_ has joined #nixos
zzamboni has joined #nixos
<pmeunier>
gchristensen: do you mean "//" wants strict arguments?
leat1 has quit [Quit: WeeChat 1.9.1]
<gchristensen>
I don't know enough about what these things mean to give you intelligent answers, I just have an intuitive understanding of it
<pmeunier>
ok, thanks
swayf has quit [Remote host closed the connection]
<gchristensen>
you'd need a fixed point to do what you want
<LnL>
pmeunier: let self = { a = 1; b = self.a; } // { a = 2; }; in self
swayf has joined #nixos
<pmeunier>
LnL: wow, that means recursive sets and recursive let don't have the same evaluation order?
<LnL>
no the scope is different
<LnL>
the // operator doesn't mutate the original set, a doesn't exist in the scope of rec
coot has joined #nixos
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
<LnL>
pmeunier: the rec example is equivalent to let self = { a = 1; b = self.a; }; in self // { a = 2; }
fuyuuri has quit [Ping timeout: 252 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
orivej has quit [Ping timeout: 240 seconds]
betaboon has quit [Quit: WeeChat 1.9.1]
manjaro-user has joined #nixos
Sonarpulse has joined #nixos
<manjaro-user>
Hi. Does anyone know if it is possible to install the stable version (the mozilla standard) in NIxOS, instead of Nightly?
ma27 has quit [Ping timeout: 240 seconds]
<Yaniel>
the `firefox` package *is* the latest stable release
glenn_ has quit [Ping timeout: 276 seconds]
<Yaniel>
it just doesn't have the "Mozilla Firefox" branding (icons etc) for copyright reasons
jb55 has quit [Ping timeout: 248 seconds]
<Yaniel>
oh also it is built without some of the healthreport stuff I think
<manjaro-user>
So nightly is just a name, it's actually the stable version of mozilla. It is not the true nightly version (developer).
<Yaniel>
yes. check the "About Nightly" dialog to check what version it actually is
<Yaniel>
"57.0.4 (64-bit)" is what it says here
glenn_ has joined #nixos
<etu>
manjaro-user: If you want the mozilla branding, use firefox-bin package instead
<manjaro-user>
Thanks.
vidbina has quit [Ping timeout: 240 seconds]
swayf has quit [Ping timeout: 265 seconds]
* Yaniel
wonders how hard it would be to provide variants of the firefox package that track the beta and nightly release channels
<gchristensen>
Yaniel: better use the mozilla overlay for that
<Yaniel>
oh right, that's a thing too
alex`` has joined #nixos
i-am-the-slime has quit [Ping timeout: 240 seconds]
jaeckel has quit [Remote host closed the connection]
<manjaro-user>
etu: I tried to install firefox-bin, but I could not. Do I have to disable non-free packages? I do not understand well how to do the installation?
taktoa has quit [Read error: Connection reset by peer]
glenn_ has quit [Ping timeout: 240 seconds]
glenn_ has joined #nixos
jrolfs_ has quit [Ping timeout: 276 seconds]
<manjaro-user>
Yaniel: That option I have enabled in configuration, nix for the entire system. I also have it in my user file config.nix: allowUnfree = true; It does not appear to me available with nix-env -qaP. Do I have to uninstall Nightly?
taktoa has joined #nixos
jaeckel has joined #nixos
mint has joined #nixos
alex`` has quit [Quit: WeeChat 1.9]
jrolfs_ has joined #nixos
lonokhov has quit [Quit: Lost terminal]
nschoe has quit [Quit: Program. Terminated.]
leat has joined #nixos
alex`` has joined #nixos
<steveeJ>
isn't it dangerous to publish a config that contains hashed passwords for users? IIUC it contains the salt within the hash string
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
<maurer>
steveeJ: It's brute forceable, but not rainbowable
<maurer>
So it's not a _good_ idea, but you'd not nesc. immediately hosed
<Synthetica>
Is there a way to list the channels root is using without actually using `sudo nix-channels --list`?
jrolfs__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] andsild opened pull request #34260: Add vim plugins (master...add_vim_plugins) https://git.io/vNiyz
NixOS_GitHub has left #nixos [#nixos]
<steveeJ>
maurer: thanks, that's my understanding too. something like ansible-vault for nix would be a good start for managing secrets, but I know that there's an RFC for this topic
drakonis_ has joined #nixos
<manjaro-user>
Synthetica: You cuold take a look in the /etc/nixOS/config.nix Look at the end of file.
<Synthetica>
` system.stateVersion = "17.09";`?
hotfuzz_ has quit [Read error: Connection reset by peer]
<Synthetica>
Because I was looking for the exact revision, not just the general channel name (sorry for not specifying that in the first place)
hotfuzz_ has joined #nixos
glenn_ has quit [Read error: Connection timed out]
<infinisil>
Synthetica: actually, there is ~/.nix-channels
<infinisil>
which is where nix-channel saves the stuff to
<LnL>
well yes, but you can't read that file because it's owned by root
zzamboni has joined #nixos
<infinisil>
Ah yeah, not possible to get the nix-channel --list output without root though
ambro718 has joined #nixos
mint has quit [Ping timeout: 256 seconds]
<infinisil>
hmm, this seems kinda weird tbh, why can any user read any other users channels?
endformationage has joined #nixos
<infinisil>
i mean yeah, file permissions and stuff, but that seems insecure
fuyuuri has joined #nixos
<LnL>
the store is world readable, you can see every user's profile
<infinisil>
hmm right, but /nix/var doesn't have to be
manjaro-user has quit [Ping timeout: 240 seconds]
<infinisil>
/nix/var/nix/profiles/per-user/* could be 600
glenn_ has joined #nixos
<LnL>
the per-user dir has a sticky bit so a user could change it
<LnL>
but root should be readable by everybody otherwise the default NIX_PATH won't work
zzamboni has quit [Quit: Leaving.]
<infinisil>
LnL: hmm i see, well that's a bit better
kier has quit [Quit: No Ping reply in 180 seconds.]
<infinisil>
But the root channel should be readable by everyone because it's the default feels like a design mistake
<infinisil>
there's no reason for root to specify a default channel
glenn_ has quit [Ping timeout: 252 seconds]
<LnL>
well it's pretty convenient otherwise every new user would start out with a broken NIX_PATH
jrolfs_ has quit [Ping timeout: 260 seconds]
kier has joined #nixos
hyphon81 has joined #nixos
glenn_ has joined #nixos
Tucky has quit [Ping timeout: 240 seconds]
<infinisil>
Thinking about it, yeah, makes sense, not worth a different implementation of a default when you can't have proper permissions anyways in the end (because /nix/store)
swayf has joined #nixos
<Baughn>
So... while playing with nixops, I produced a situation where the newest grub boot entry corresponds to a system config that was garbage-collected.
<Baughn>
That's not supposed to be possible, is it?
gspia has quit [Quit: Leaving]
knupfer has joined #nixos
<symphorien>
on nixos, you can't garbage collect boot and current configuration, no idea for nixops though
<gchristensen>
that ... could bee possible, if rollbacks aren't enabled in nixops, you create a new generation that you don't switch to (or rolled back from switching to, but it wasn't booted to)
<gchristensen>
and then deleted the generation without running nixops' version of nixos-rebuild
<Baughn>
Rollbacks are enabled, but I didn't use them.
manjaro-user has joined #nixos
raynold has joined #nixos
<Baughn>
But something like that may still have happened. I've been experimenting with putting ssh in initrd, and I was adding a host key using nixops' secret system.
bkchr has quit [Quit: Konversation terminated!]
glenn_ has quit [Ping timeout: 252 seconds]
<Baughn>
At one point the path reference was wrong, so I got a bootloader entry that couldn't be successfully completed. That got troublesome, as simply commenting out the path didn't actually make further builds work -- it kept trying to complete the older entries, and failing.
<Baughn>
I fixed *that* using nix-collect-garbage -d.
swayf has quit [Ping timeout: 265 seconds]
cement has quit [Ping timeout: 276 seconds]
<Baughn>
That's impurity... but the host key explicitly is never put in the store, so I imagine it's copied as part of the activation script.
* Baughn
regularly attempts to find sharp edges he can cut himself with. ... That sounds bad.
gspia has joined #nixos
glenn_ has joined #nixos
cement has joined #nixos
alexteves has quit [Ping timeout: 264 seconds]
digitus has joined #nixos
jrolfs_ has joined #nixos
fiatjaf has joined #nixos
<hyphon81>
Aren't there users Azure with NixOps? I couldn't access with username and password.
<fiatjaf>
I'm a regular ubuntu user. should I switch to nix?
<Baughn>
fiatjaf: Maybe.
<mog>
fiatjaf, nixos is less polished then ubuntu, but the postive sides listed on the website are very true
<mog>
i moved from debian a few years back and could not be happier
<mog>
especially as a developer
<hyphon81>
I could access with other credeitial. However, username and password is now well.
<mog>
my machine never gets crufty anymore
<mog>
so if i have to install 400 random deps i know my machine will still work tomorrow
<Yaniel>
fiatjaf: are you using a lot of less common packages? and do you mind having to potentially package something yourself?
<Baughn>
NixOS is indestructible, yes.
<infinisil>
fiatjaf: Tbh, nixos is currently totally not as nice and easy to use as ubuntu, and for the average ubuntu user i would not recommend nixos unless he really wants to get into it
<infinisil>
you'll have to learn a lot to not be frustrated with nixos
<Baughn>
I used to keep switching between distros once per year or so, whenever I ruined the old installation. That never happens anymore.
<hyphon81>
And accessing with username and password is not recommended method.
<mog>
yup not to mention moving to a new pc was just copying my config over
<infinisil>
Baughn: hah nice. NixOS happens to be my first distro (macOS before) so I got around all that business
<hyphon81>
I think, nobody use Azure with NixOps...
<Yaniel>
I switched from arch after getting bored of restoring it when my tinkering or some update made it unbootable
<simpson>
hyphon81: Whoever wrote the code uses it. I don't remember their nick.
<goibhniu>
fiatjaf: NixOS can also be a nice option if you maintain computers for friends/family who don't maintain or install stuff themselves
<aminechikhaoui>
catern: was it you who wrote at some point a utility to trace messages in and out of the nix-daemon ?
<fiatjaf>
my computer is not the most powerful of all times available
<fiatjaf>
Yaniel: what do you mean? like packages that are available on the ubuntu repositories? I only use the most common and famous ones. I normally compile things from source when that's not too hard.
<mog>
fiatjaf, you can garbage collect
<mog>
it doesnt use much more space than my debian distro did
<mog>
and sometimes less
<catern>
aminechikhaoui: yes, I am still writing it
alexteves has joined #nixos
<catern>
aminechikhaoui: well, that part at least is done anyway. though it only works with the latest version of the nix-daemon at the moment
<Yaniel>
fiatjaf: more obscure software in general
<catern>
now I'm working on intercepting them and building things differently
johnsonav has quit [Remote host closed the connection]
chisui has joined #nixos
glenn_ has quit [Ping timeout: 252 seconds]
<infinisil>
And if you need some unpopular one that isn't packaged, you can either learn how to package stuff yourself or make a github issue request for it
<chisui>
Hey, I'm currently trying to install nixOs for the first time from the graphical live iso. unfortunately the terminal doesn't work correctly. nano, clear, and reset do not work. The reason seems to be that the $TERM variable is set to xterm... and in the /run/.../share/terminfo dir there is only some strange x~nix~case~hack~1 dir
<goibhniu>
fiatjaf: it's worth mentioning that the list of packages there doesn't included unfree stuff such as steam and skype ... but they are available too
glenn_ has joined #nixos
<chisui>
I could not find any infos on that case hack dir. If i set TERM to "dumb" I get rid of the errors but I would like to have an xterm like terminal.
<infinisil>
goibhniu: good point
<Baughn>
chisui: Easiest fix would be to ctrl-alt-f1 and use the vty.
yegortimoshenko has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos
<hyphon81>
Can I break current Azure related NixOps's specification in a bit...?
<chisui>
Baughn: The problems are still present
<Baughn>
chisui: Try export TERM=linux
<chisui>
Baughn: same
<hyphon81>
I think, we shoudn't use username and password for accessing Azure with NixOps.
glenn_ has quit [Ping timeout: 240 seconds]
<Baughn>
chisui: Not sure, then. I've never had that fail.
<chisui>
Baughn: any terminal where there exist one of these "~nix~case~hack~1" for their first letter doesn't work
<chisui>
Baughn: those are a, e, l, m, n, p, q and x
<Baughn>
Wait, are you using a non-US keyboard?
<chisui>
german
<Baughn>
Hmm.
<chisui>
but the layout is currently set to us
johnsonav has joined #nixos
<chisui>
so default
<Baughn>
Hmmmm.
<Baughn>
...but I'm stumped.
<aminechikhaoui>
catern: could you share a gist at this point ? :)
stepcut has quit [Remote host closed the connection]
coot has quit [Quit: coot]
stepcut has joined #nixos
<infinisil>
Rust package experts: I'm trying to build a package with buildRustPackage, but on the cargo build step it complains "error: the lock file needs to be updated but --frozen was passed to prevent this". What's up with that?
<tilpner>
infinisil - Try carnix, I've had more success with that
<FRidh>
configure: error:
<FRidh>
The following requested languages could not be built: c++,lto
<FRidh>
Supported languages are: c
<FRidh>
builder for '/lab/epg_st_sandbox/ezriefr/testing/pc_nix_store/nix/store/5h1j3ag1x41j71qhysarsgynhx5k6hwz-gcc-6.4.0.drv' failed with exit code 1
<FRidh>
building nix unstable at a custom location
stepcut has quit [Ping timeout: 240 seconds]
<FRidh>
it's full of surprises
asuryawanshi has quit [Ping timeout: 240 seconds]
<infinisil>
tilpner: I'm not sure how i feel about adding a 1000 line file generated by carnix just for 1 package
hotfuzz_ is now known as hotfuzz
asuryawanshi has joined #nixos
oida has quit [Quit: WeeChat 1.6]
<infinisil>
Also there's almost no carnix rust packages in nixpkgs
<tilpner>
:/
jrolfs__ has quit [Ping timeout: 268 seconds]
<infinisil>
also the carnix build of it errors
glenn_ has quit [Ping timeout: 252 seconds]
glenn_ has joined #nixos
<catern>
aminechikhaoui: do you want to actually try to use it? it's not really in a usable state
<catern>
anyway sure I guess
<aminechikhaoui>
catern: yeah fine with anything, just experimentation
<catern>
aminechikhaoui: you won't really be able to experiment unless you tinker with it a lot :) mostly just looking :)
mk-fg has quit [Ping timeout: 256 seconds]
<catern>
also it's filled with a lot of my notes
jrolfs__ has joined #nixos
<catern>
anyway it's in the pystore branch on github.com/catern/nix
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
glenn_ has quit [Ping timeout: 246 seconds]
<aminechikhaoui>
catern: ah ok thanks for sharing anyway :)
orivej has quit [Ping timeout: 240 seconds]
<Myrl-saki>
What's the /usr/include equivalent?
<Myrl-saki>
I want to generate tags files for my stdlib.
mk-fg has quit [Ping timeout: 240 seconds]
glenn_ has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
ambro718 has quit [Ping timeout: 268 seconds]
asuryawanshi has quit [Ping timeout: 240 seconds]
glenn_ has quit [Ping timeout: 252 seconds]
glenn_ has joined #nixos
jrolfs__ has quit [Ping timeout: 264 seconds]
<clever>
Myrl-saki: your derivation will install to $out/include/ and the stdenv will add the include dir of every input to the gcc search path via $NIX_CFLAGS_COMPILE
asuryawanshi has joined #nixos
jrolfs__ has joined #nixos
cnidario has joined #nixos
<Myrl-saki>
clever: Thanks.
glenn_ has quit [Ping timeout: 240 seconds]
mk-fg has joined #nixos
glenn_ has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
jrolfs__ has quit [Ping timeout: 240 seconds]
Jackneillll has joined #nixos
jrolfs__ has joined #nixos
alexteves has quit [Remote host closed the connection]
alexteves has joined #nixos
tmaekawa has joined #nixos
FRidh has quit [Ping timeout: 265 seconds]
Jackneilll has quit [Ping timeout: 265 seconds]
goibhniu1 has joined #nixos
FRidh has joined #nixos
goibhniu has quit [Ping timeout: 240 seconds]
coot has joined #nixos
glenn_ has quit [Ping timeout: 252 seconds]
tmaekawa has quit [Client Quit]
glenn_ has joined #nixos
fuyuuri has quit [Ping timeout: 240 seconds]
coconnor has joined #nixos
xcmw has joined #nixos
xcmw has quit [Client Quit]
<coconnor>
Hi all. I'm encountering an issue with OpenGL under Wine using Nvidia X11 drivers. Anyone available with experience?
swayf has joined #nixos
TweyII has quit [Ping timeout: 265 seconds]
dejanr has joined #nixos
ennui has joined #nixos
jrolfs__ has quit [Ping timeout: 240 seconds]
<ennui>
how can i format an attrset as a string like in builtins.trace?
manjaro-user has quit [Quit: Konversation terminated!]
ennui has left #nixos ["ERC (IRC client for Emacs 24.5.1)"]
<Yaniel>
coconnor: "an issue" is quite vague
ennui has joined #nixos
jrolfs__ has joined #nixos
Judson has joined #nixos
coot has quit [Remote host closed the connection]
Judson is now known as Guest96906
coot has joined #nixos
ryanartecona has joined #nixos
swayf has quit [Ping timeout: 265 seconds]
jrolfs has joined #nixos
<infinisil>
ennui: `builtins.toJSON` works well
jrolfs_ has quit [Ping timeout: 240 seconds]
<coconnor>
I presume that means you do have some experience
xcmw has joined #nixos
<goibhniu1>
Hi coconnor, it's better to explain the issue in some detail, maybe someone is familiar with it.
<coconnor>
OpenGl applications under wine are crashing immediately with "page fault on write access to 0x7c002fd4 in 32-bit code"
reinzelmann has joined #nixos
goibhniu1 is now known as goibhniu
<coconnor>
Unfortunately, "some detail" is always variable. I'd prefer to establish what level of knowledge the audience has before starting on unnecessary details
<coconnor>
for instance
<coconnor>
wine and opengl are enabled (including 32bit opengl drivers)
<coconnor>
IIRC gnome apps use a common interface for application settings
<coconnor>
"gsettings"
kier has joined #nixos
<coconnor>
have you tried executing one of these applications under a console
<coconnor>
and observing the output when changin ghte preferences?
<fresheyeball>
I always do!
<fresheyeball>
let me see right now
chreekat has joined #nixos
<fresheyeball>
this is what I get
<fresheyeball>
(nautilus:11402): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
<coconnor>
ah ok
<coconnor>
dconf is the backend to gsettings
<fresheyeball>
ok!
<coconnor>
looks like dconf is not registered with dbus... hmm
<coconnor>
do you have
kier has quit [Client Quit]
Myrl-saki has quit [Ping timeout: 240 seconds]
<chreekat>
Am I reading this right, that the release-17.03 channel has not had binaries for all of Haskell since November 4?
<coconnor>
programs.dconf.enable = true;
<coconnor>
in your config?
<coconnor>
(this might be enabled by another config option. checking)
<fresheyeball>
coconnor: let me try that!
<fresheyeball>
hmm option programs.dconf.enable does not exist
mkoenig_ has quit [Ping timeout: 268 seconds]
<fresheyeball>
I also don't see dconf in options anywhere
<clever>
description = "Set of dconf profile files.";
boomshroom has joined #nixos
<boomshroom>
Hello!
<boomshroom>
It's been a while since I last logged in here.
<clever>
fresheyeball: the profiles wind up in /etc/dconf/profile/
<coconnor>
That explains why I have enable and fresheyeball does not
<coconnor>
However, I don't see that adding the .service file
<coconnor>
IIRC there needs to be a .service file added to
<fresheyeball>
clever: so what would I put there?
<clever>
neither version of the dconf module adds a systemd unit
<coconnor>
a service directory under /var/run/current-system/sw/shared/dbus-1
<fresheyeball>
programs.dconf = {}; ?
<boomshroom>
A while ago, I was trying to get a GCC cross compiler. I managed to get it working, but at some point they removed wrapCCCross and I need to find what the new way of building a cross compiler is.
<clever>
fresheyeball: that will do absolutely nothing
<clever>
but the lists make it a bit fuzzy on if dconf is in there or not
swayf has joined #nixos
<coconnor>
I see dconf in the "corePackages"
<clever>
ah, then it should just work if you enable the gnome3 desktop manager
<coconnor>
fresheyeball: are you using services.xserver.desktopManager.gnome3.enble ?
<clever>
even if you pick a different one at login
<fresheyeball>
coconnor: no
<coconnor>
looks like it
<coconnor>
ok! that makes sense then
<coconnor>
hmmm
<fresheyeball>
I am using xmonad
zarel has joined #nixos
<coconnor>
definitely a bit indirect then
<Guest96906>
CapsAdmin are you arround now?
Guest96906 is now known as judson
<coconnor>
the user experience of "installing a gnome app"
<judson>
CapsAdmin are you arround now?
<coconnor>
which can be done under xmonad without gnome3 enabled
<coconnor>
should add dconf?
<boomshroom>
It appears that binutils has been replaced by bintools in many places.
<fresheyeball>
how can I get the gsettings cli tool?
PeterRomfeld[m] has quit [*.net *.split]
cacatoes has quit [*.net *.split]
randomstrangerb has quit [*.net *.split]
mpickering has quit [*.net *.split]
derchris has quit [*.net *.split]
derchris has joined #nixos
PeterRomfeld[m] has joined #nixos
cacatoes has joined #nixos
mpickering has joined #nixos
<coconnor>
fresheyeball: gnome3.gnome_settings looks like it
<clever>
glib.dev 32,664 x /nix/store/vc1ipmdkvnkx5p99vadzvlan6c6cyhbh-glib-2.50.3-dev/bin/gsettings
randomstrangerb has joined #nixos
<boomshroom>
OK, things have changed a lot. How can I, using nix, build a GCC cross compiler that targets bare metal for my own development? (ie. not building packages)
<symphorien>
first, you determine the exact nix-store path you want to have in your profile, then you `nix-env -i ` it, so that it doesn't disappear at the next garbage collection
MP2E has joined #nixos
<Sonarpulse>
boomshroom: i was going to add more arch-chooseing stuff to the wrappers once I made llvm cross compilation work
coot has quit [Quit: coot]
<Sonarpulse>
boomshroom: bintools is *almost* multitarget
<Sonarpulse>
but GNU assembler isn't
coot has joined #nixos
<Sonarpulse>
so i got an unused branch making us use just one GNU AS for everything
<Sonarpulse>
until somebody fixes that upstream
jrolfs__ has joined #nixos
<boomshroom>
:(
coot has quit [Remote host closed the connection]
kier has quit [Quit: This cannot continue.]
<Sonarpulse>
boomshroom: yeah really sad binutils is SOOO close
<Sonarpulse>
:/
kier has joined #nixos
<boomshroom>
The really sad part? It used to work!
chreekat has quit [Ping timeout: 265 seconds]
<Sonarpulse>
boomshroom: nix or gnu as?
chreekat has joined #nixos
<Sonarpulse>
boomshroom: I could just allow arbitrary configs
<Sonarpulse>
but then the configuration logic would be all fucked
<boomshroom>
The file I posted. There was a point in time when it was able to build working bare metal x86, arm, and riscv compilers.
<Sonarpulse>
so its better to be a hard-ass and not allow any "elf" or other thing
<Sonarpulse>
boomshroom: yeah that point was like a year agog
<Sonarpulse>
boomshroom: also you needed gcc 7?
<boomshroom>
Sonarpulse: I won't argue with that. I'm pretty sure I was bypassing most of the logic in favour of setting the gcc and binutils target manually.
<Sonarpulse>
I actually did do work to make cross with other gcc versions closer to reality
<boomshroom>
I just liked using the latest version. I don't think it really made a difference.
coot has joined #nixos
<Sonarpulse>
boomshroom: well for riscv I assume it does!
i-am-the-slime has joined #nixos
<boomshroom>
Oh that, that was it. RISC-V wasn't supported before GCC7
<Sonarpulse>
otherwise they'd have time travel! :)
<Sonarpulse>
boomshroom: before there used to be gccCrossStage{Static,Final}
<Sonarpulse>
but I got rid of Final
<Sonarpulse>
so buildPackages.gcc* just "does the right thing"
<Sonarpulse>
I also want to get rid of static
<Sonarpulse>
by building the gcc runtime libs as normal libraries
<Sonarpulse>
which would further remove bullshit
<Sonarpulse>
basically mean everyone is on a bare-metal tool chain
<Sonarpulse>
which is excellent
glenn_ has quit [Ping timeout: 252 seconds]
<i-am-the-slime>
how do I install keepass properly?
jrolfs__ has quit [Ping timeout: 246 seconds]
zzamboni has joined #nixos
<boomshroom>
I tried I tried re-importing all of nixpkgs like what clever posted, and after commenting out riscv and redox, now it's complaining about unknown libc.
sirkha has joined #nixos
<chisui>
Ok, I'm slowly getting mad. Can somebody tell me how I have to partition my disk and what to mount where do get NixOS to boot?
<clever>
chisui: do you want to boot with efi or legacy?
<Sonarpulse>
boomshroom: so riscv you definitely want?
<jsgrant_>
chisui: What have you done so-far?
<Sonarpulse>
I can add that to the lib right now
<Sonarpulse>
is it in llvm master?
<chisui>
clever: efi
<Sonarpulse>
then I can check the tripple parsing code from llvm
<Sonarpulse>
which i kind of use as my rosetta stone
zzamboni has quit [Client Quit]
<boomshroom>
I would like riscv, but it's not urgent. I'm not sure what problems would arise from adding it. (There's always a cost to everything.)
<clever>
chisui: you need a fat formated filesystem, with partition type EFI system, mounted to /mnt/boot/ and a rootfs of your choice mounted to /mnt/
<jsgrant_>
What's your gpt table look like?
<jsgrant_>
clever: ++
<Sonarpulse>
boomshroom: well its a good test case
<chisui>
clever: I did exactly that
<jsgrant_>
Also, need to make sure your config.nix reflects efi.
<Sonarpulse>
the newer arches generally have saner naming
<clever>
chisui: and what failed?
<Sonarpulse>
and I wanna add it anyways
xcmw has joined #nixos
jrolfs__ has joined #nixos
redfish64 has quit [Ping timeout: 240 seconds]
<chisui>
maybe I am missing something. Can I see anywhere if my machine is capable of booting this way or if I have to go the MBR way?
<boomshroom>
Sonarpulse: If I'm not mistaken, the main triples are "riscv" and "riscv64". I think I've seen "riscv32" as well aliased to "riscv". Probably a good idea to double check.
<clever>
chisui: what does "mount" say?, paste it into gist.github.com
<chisui>
it mounts, and install works
<jsgrant_>
clever: About to say this; Lets see the config.nix & the df log
<chisui>
grub gets embedded but I cant boot
<clever>
chisui: grub only embeds if your using legacy booting, it sounds like you configured it wrong
<infinisil>
CapsAdmin: Hmm I'm not sure there's a way on osx, other than compiling nix with an alternate nix directory resulting in not being able to use the cache at all
<infinisil>
(the nixos cache i mean)
* jsgrant_
sees himself jumping back into NixOS with wild abandon ... once again.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] binarin opened pull request #34265: Modern RabbitMQ (master...modern-rabbitmq) https://git.io/vNPGD
NixOS_GitHub has left #nixos [#nixos]
swayf has quit [Ping timeout: 265 seconds]
Guest64951 has joined #nixos
<CapsAdmin>
infinisil, what I want is just to set up a temporary nix install to download and compile some packages
<CapsAdmin>
and then remove it
<infinisil>
CapsAdmin: without using root at all?
Fare has quit [Ping timeout: 264 seconds]
Guest64951 has left #nixos [#nixos]
<CapsAdmin>
yeah
jrolfs__ has quit [Ping timeout: 265 seconds]
<infinisil>
then that's probably not possible, i don't know of a way
<CapsAdmin>
if this is very difficult then alright, but then i'd like to find a way of not polluting an existing nix install then
<infinisil>
what do you mean by pollute?
<CapsAdmin>
hmm
<CapsAdmin>
lets say i want gcc but the user already has gcc installed on nix
<CapsAdmin>
maybe it's not really a big deal
<clever>
CapsAdmin: nix hashes anything that can impact the gcc version, and you will get 2 gcc's in /nix/store/
chisui_ has quit [Ping timeout: 260 seconds]
<infinisil>
(if they're different)
<CapsAdmin>
alright
<infinisil>
CapsAdmin: I'm not sure what you mean, you want it to fetch another same gcc?
<CapsAdmin>
it's a bit difficult to explain and maybe i'm thinking too much about the details
<infinisil>
any explanation is better than no explanation
<CapsAdmin>
i have some software that relies on some third party libraries such as freetype, freeimage, sdl2, etc written in LuaJIT
jrolfs__ has joined #nixos
<CapsAdmin>
the way I can talk to these libraries with LuaJIT is to use a foregin function interface, so i have written a tool to generate bindings with gcc -p
<CapsAdmin>
i have my own "build system" but i'd like to replace it with nix
xorkle_ has joined #nixos
<CapsAdmin>
i've got it somewhat working now, but i'm not really sure what i'm doing with the code and it seems it doesn't always work
<CapsAdmin>
and on osx i get some permission issue when i attempt to copy the dynlib
stringy has quit [Ping timeout: 268 seconds]
jrolfs__ has quit [Ping timeout: 256 seconds]
jrolfs__ has joined #nixos
<infinisil>
okay, but I still have no idea what you're trying to achieve with "not wanting to pollute the nix store"
<infinisil>
CapsAdmin:
<infinisil>
or how that's related to what you explained
hamishmack has quit [Quit: hamishmack]
knupfer has quit [Quit: knupfer]
<CapsAdmin>
infinisil, i don't want to force people to install nix and if they are using nix i don't want to install potentially unwanted packages
<CapsAdmin>
but i think maybe it's unimportant or at least something to think about after i get things working more properly
redfish64 has quit [Ping timeout: 240 seconds]
jsgrant_ has quit [Remote host closed the connection]
<infinisil>
Ahh, now it makes sense
<symphorien>
CapsAdmin: if you do `tar cvf blah.tar $(nix-store -qR /nix/store/path-to-htop) and unpack it on a remote system without nix then you get a fully working htop with all its dependencies
<symphorien>
the only requirement is that you must unpack it at the previous path ie /nix/ so you need root
<CapsAdmin>
symphorien, maybe the problem is that i don't trust nix for some reason
<clever>
symphorien: in this case, it creates a /kexec_nixos symlink and a /nix directory with the full closure
<clever>
if unpacked to /
<CapsAdmin>
like installing packages with apt might break things but nix is designed not to
<symphorien>
nice
<CapsAdmin>
so i shouldn't worry
<clever>
CapsAdmin: if you give a non-root user write access to an empty /nix directory, then you can install nix without root
<clever>
and yeah, nix is designed to not break things like apt does
mkoenig_ has joined #nixos
<clever>
symphorien: and if your wondering what the expression i linked does, you just unpack the tar to /, and run /kexec_nixos, and you have nixos running from a ramdisk
brodavi has joined #nixos
jrolfs__ has joined #nixos
<clever>
symphorien: and it has sshd, so ssh back in, and you are free to reinstall the entire OS
grantwu has joined #nixos
<symphorien>
nice²
<grantwu>
How do I use helpTags in vim with nixpkgs?
<chisui>
I also made sure that secure boot is disabled but still can't boot. Does anyone see what I missed?
<grantwu>
It wants something to be writable that isn't
<chisui>
clever: I'm really sorry but how do I boot the installer using efi?
<catern>
trivial change...
nuncanada has joined #nixos
<infinisil>
CapsAdmin: nix-build will just build it, nix-env can install stuff
<clever>
chisui: you have to select it in the firmare, when booting the machine
<infinisil>
CapsAdmin: if you can build something with `nix-build`, you can install it with `nix-env -if .`
<clever>
chisui: and also, how did you make the install media?, is it a cd? usb?
<CapsAdmin>
infinisil, ah okay
<CapsAdmin>
but what happens to dependencies?
<clever>
CapsAdmin: nix builds them
<chisui>
clever: everything in the BIOS is set to UEFI, it's an USB drive
<infinisil>
CapsAdmin: And uninstalling a package just removes it from your profile, but it's still in the nix store until a garbage collection (nix-collect-garbage)
<clever>
chisui: how did you get the ISO onto the usb drive?
<chisui>
dd
<CapsAdmin>
so my temporary default.nix depends on freetype
<CapsAdmin>
lets say no other package in the system depends on freetype
<CapsAdmin>
will it just be removed when i run nix-collect-garbage after i build then?
jrolfs__ has quit [Ping timeout: 264 seconds]
<clever>
chisui: try the other options in your bios when you pick booting from the cd
<chisui>
clever: dd
<infinisil>
CapsAdmin: if you nix-build --no-out-link, and then nix-collect-garbage, it will be removed, but when you don't add --no-out-link it won't get removed
cinimod has quit [Quit: Connection closed for inactivity]
<infinisil>
CapsAdmin: the result symlink tells nix to keep its references alive
<CapsAdmin>
ah
<clever>
until result is deleted or pointed at something else
<CapsAdmin>
so if i delete the reference link it can be removed?
<clever>
yeah
<CapsAdmin>
ok that makes sense, thanks
<TimePath>
How are packages which upstream uses nix to build best packaged in nixpkgs? Can nix-build call nix-build? Dynamic import?
<infinisil>
CapsAdmin: installing something with nix-env does something similar, it adds stuff to your profile, which is also not garbage-collected
redfish64 has joined #nixos
Fare has joined #nixos
<brodavi>
hello folks :) super new to nixos... is there a beginner's guide to setting up a lamp server? I just added `service.httpd.enable = true;` with hostName, user, adminAddr, documentRoot, enablePHP but apache doesn't seem to be running. mysql/mariadb and php7.1 seem to work though
dbe_ has joined #nixos
<infinisil>
TimePath: > Can nix-build call nix-build? Nope, see https://github.com/NixOS/nix/pull/213 > Dynamic import? Also called IFD (import-from-derivation), would be possible, but not allowed in nixpkgs because it's slow and makes derivations depend on inputs outside nixpkgs which may harm reproducability (i think)
jrolfs__ has joined #nixos
<infinisil>
TimePath: Therefore you'll want to add a separate nix expression in nixpkgs, which could potentially be different than the one upstream
<TimePath>
Maybe if the IFD was nested in the build phase?
<Sonarpulse>
IMO people are still hacking around shit
<chisui>
clever: updated
<Sonarpulse>
but nixpkgs is nice wrt cross now
<Sonarpulse>
and the instinct should never be to fight it
<clever>
chisui: its only configured to boot something on USB, which doesnt sound right
ryanartecona has quit [Quit: ryanartecona]
<clever>
chisui: what is sda?
<chisui>
clever: sda is my harddrive
<cransom>
aside from disabling sandbox entirely for a hydra system, are there any options to introduce impurity in a derivation? i want to write some some functional tests that make network calls without having to step too far outside of the system and doing post processing on a `buildFinished` hook.
<clever>
what kind of hard drive?
<chisui>
ssd
<infinisil>
TimePath: nope, then it's still IFD and a no-go for nixpkgs
<magnetophon>
I noticed some programs have a valid build date now, whereas before they'd be from 1970. Doesn't that mess with reproduceability? (for example uname -a)
<infinisil>
I'm actually not sure where the "no IFD for nixpkgs" comes from
<TimePath>
infinisil: but it can't build anyway if the source repository fails to fetch
<clever>
chisui: what does nixos-install print out, after everything has been mounted to the right spot?
<infinisil>
TimePath: you're thinking of recursive nix
obadz has joined #nixos
<clever>
TimePath: you can also just copy the relevant nix expressions into the nixpkgs tree and open a PR
<clever>
then there is no IFD
jrolfs__ has quit [Ping timeout: 240 seconds]
jrolfs__ has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chisui>
clever: added output of nixos-install to gist
<clever>
chisui: what files are in /mnt/boot/ ?
dbe_ has quit [Ping timeout: 240 seconds]
<chisui>
clever: added find /mnt/boot output to gist
<clever>
chisui: yeah, everything is where it should be
<infinisil>
gchristensen: yeah i read that (okay just skimmed), but have still no clue, it doesn't actually have a single example of how to cross-compile a package
<clever>
LnL: that should probably go into one of the nix pills or something
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
bfrog has joined #nixos
<CapsAdmin>
infinisil, thanks it works
<CapsAdmin>
now i don't need the --no-link-output :)
boomshroom has joined #nixos
<boomshroom>
I'm back. Sorry I had to bail earlier.
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<boomshroom>
brb. Printing homework assignment
boomshroom is now known as boomshroom-away
<sphalerite>
I've just packaged an application that uses Qt, and am getting `This application failed to start because it could not find or load the Qt platform plugin "xcb" in "".` when trying to run it. What am I missing?
stepcut has quit [Ping timeout: 256 seconds]
<clever>
sphalerite: you have 2 different versions of QT in your nix profile
<clever>
the very problem nix was meant to solve has returned :P
<clever>
sphalerite: the only way to fix the QT problem you have, is to upgrade all QT using apps to be built from the same nixpkgs
<sphalerite>
uuuugh but I only want to test this one package I'm building on top of master :(
boomshroom-away has quit [Ping timeout: 260 seconds]
<clever>
sphalerite: thats why the QT stuff needs an overhaul
<clever>
it isnt pure and makes such things imposible
<clever>
switching to another user may help
<sphalerite>
so the best thing to do for me now is... removing all the qt-using packages from my profile, testing, and then rolling back?
<clever>
i suspect that having those QT packages in systemPackages wont cause an issue
<clever>
but you can also just rollback when your done
<sphalerite>
hm, I removed zeal from my profile (which seemed to be the only thing causing qt to appear there, no more qt in ~/.nix-profile/lib) but it's still happening
<clever>
sphalerite: the package may also rely on its own propagated inputs being in the profile
<clever>
again, its not pure
<sphalerite>
so I need to root it out of systemPackages too? :(
jrolfs has quit [Ping timeout: 256 seconds]
<sphalerite>
yesss! Installing it into my profile makes it work
<CapsAdmin>
oh this is something i didn't think about. i want to use nix to fetch or build binaries, but those binaries will depend on other binaries within nix
<CapsAdmin>
how can i solve this?
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] lheckemann opened pull request #34275: otter-browser: init at 0.9.94 (master...otter) https://git.io/vNPol
NixOS_GitHub has left #nixos [#nixos]
jrolfs has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
Lisanna has joined #nixos
<CapsAdmin>
it's kind of a difficult problem i guess (where do you draw the line) but i was hoping to get libfreetype.so working outside of nix
dejanr has quit [Ping timeout: 265 seconds]
Fare has quit [Ping timeout: 256 seconds]
<Lisanna>
can a derivation's outPath be retrieved and used during eval time without causing infinite recursion?
<TimePath>
I think there's something like unsafeDiscardStringContext too
<judson>
LnL, gchristensen: is there advice about what to do with the rustc stuff? Should I wait until there's a new push to the channels?
<Lisanna>
TimePath err, what would I call toPath on?
<Lisanna>
I can't think of anything that wouldn't require the derivation to be fully evaluated first
<judson>
Hey, CapsAdmin! You said you're trying to set up "disposible directories" - I've been assuming that you have the same use case I do: development environments for different projects.
<judson>
Is that anything like what you're doing?
<CapsAdmin>
judson, not really i think
<LnL>
judson: you can try this (self: super: { rustc = super.rust119bin.rustc; })
<Lisanna>
it wouldn't be so bad, but for some reason configureFlags = "--with-foo=$(pwd)/foo"; is escaping those characters against my will >:(
<CapsAdmin>
i just wanted to install nix locally in a directory and not on the system
<CapsAdmin>
temporarily so i can safely delete it later