<{^_^}>
[nixpkgs] @matthewbauer merged pull request #59535 → treewide: update homepages to https where available → https://git.io/fjmM0
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjYLw
vidbina has quit [Ping timeout: 245 seconds]
<mwilsoncoding>
Fair enough- to put it in other terms: NixOps is for deploying servers running services (rather than containers and whatnot- tho it _can do_ containers)
<mwilsoncoding>
As for containers, I think Disnix is the better choice- it's better to map out microservices' functional dependencies than configure servers-running-services IMHO
<mwilsoncoding>
Once you hit an inflection point of scale, arguably
<mwilsoncoding>
But that opinion may not be popular =P
xkapastel has quit [Quit: Connection closed for inactivity]
jluttine has quit [Ping timeout: 250 seconds]
Jonathan_ has quit [Ping timeout: 256 seconds]
stepcut has quit [Remote host closed the connection]
aanderse_ has joined #nixos
stepcut has joined #nixos
ryantrinkle has quit [Ping timeout: 268 seconds]
sindrip has joined #nixos
jluttine has joined #nixos
aanderse has quit [Ping timeout: 240 seconds]
<sindrip>
Is there any trivial function that I can't see in lib to fold a [ { ... } { ... } ] to { ... } where every attrset contains a single attr
<{^_^}>
[nixpkgs] @costrouc opened pull request #59657 → pythonPackages.loo-py: init at 2017.2 → https://git.io/fjYLi
o1lo01ol1o has joined #nixos
<sindrip>
or is a // {} fold the only way ?
JonReed has quit [Ping timeout: 256 seconds]
<parsnip>
hmm, maybe i just want an rsync for configuration.nix, etc
<parsnip>
or even just scp
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
phdoerfler has joined #nixos
silver has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @benley merged pull request #59326 → steam: fix steamrt trying to use a missing setup.sh → https://git.io/fjqMo
<{^_^}>
[nixpkgs] @benley pushed commit from @puffnfresh to master « steam: fix steamrt trying to use a missing setup.sh (#59326) »: https://git.io/fjYtl
judson has quit [Remote host closed the connection]
elninja44 has joined #nixos
Glider_IRC_ has joined #nixos
<osa17>
Sorry if this isn't the place to ask, but is it possible to define CFLAGS, CXXFLAGS, and LDFLAGS that will be used for every package/derivative. I'm trying to learn about NixOS through the manual and a "Snippet" seemed to indicate this was possible, but I wanted to confirm with the community first. Thanks for any info!
<Arahael>
I'm trying to setup a default.nix, however, it depends on a gemset.nix which is itself generated by shell.nix, how might I be able to incorporate this generation as part of default.nix?
<Arahael>
It's a catch-22, because the default.nix has a bundlerEnv that implicitly depends on the gemset.nix.
<ryantm>
I can run "nix eval gnused.out" to get the nix store path of gnused's out output, but say I want to run an operation on this evaluation. I start by doing "nix eval '(gnused.out)'" and it says gnused is an undefined variable. How do import the same context available for the "installable" into the parenthesis evaluation context?
mnoronha_ has quit [Ping timeout: 246 seconds]
lightbulbjim has quit [Client Quit]
<ryantm>
I forgot to mention I'm also doing "-f ." where . is a checkout of nixpkgs
<jackdk>
I wish I knew. I like the output format of the nix2 commands but gee they're magical sometimes
gagbo has quit [Ping timeout: 255 seconds]
gyroninja has joined #nixos
gagbo has joined #nixos
<ryantm>
Ah, I already answered this once before in nixpkgs-update:
stepcut has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @basvandijk opened pull request #59676 → nixos/prometheus/pushgateway: add module and test → https://git.io/fjYmm
mounty has joined #nixos
rauno has joined #nixos
phdoerfler has quit [Ping timeout: 252 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phdoerfler has joined #nixos
pjan has joined #nixos
metalrain has quit [Ping timeout: 258 seconds]
georgew has quit [Ping timeout: 264 seconds]
adelbertc has quit [Ping timeout: 264 seconds]
zimbatm has quit [Ping timeout: 264 seconds]
valwal_ has quit [Ping timeout: 252 seconds]
pointfree has quit [Ping timeout: 252 seconds]
heatm1s3r has quit [Read error: Connection reset by peer]
phdoerfler has quit [Ping timeout: 245 seconds]
joedevivo has quit [Ping timeout: 258 seconds]
typetetris has quit [Ping timeout: 252 seconds]
dongcarl has quit [Ping timeout: 264 seconds]
peel has quit [Ping timeout: 264 seconds]
adelbertc has joined #nixos
manveru has quit [Read error: Connection reset by peer]
nkaretnikov has quit [Ping timeout: 258 seconds]
<cocreature>
Hey, is there a way to get the install script for a specific version of nix so that I can replace " curl -sfL https://nixos.org/nix/install | bash" by something that installs a specific version?
<{^_^}>
[nixpkgs] @basvandijk pushed 16 commits to release-19.03: https://git.io/fjYY3
<Zer000>
I need help! I upgraded to 19.03 (from 18.09) and now I don't have x11 (I get a blank screen on tty7) Here is my dmesg http://dpaste.com/099S9K6.txt
mnoronha_ has joined #nixos
<Zer000>
I'm using "radeon" as my driver, I'm not really sure how to debug graphical issues
ayerhart has quit [Quit: ayerhart]
<monokrome>
,locate genisoimage
<{^_^}>
Found in packages: cdrkit, bash-completion
<{^_^}>
#59582 (by LinArcX, 22 hours ago, open): Can't detect kit when create new qtquickapplication
<monokrome>
hmmm.... cdrkit interesting
mnoronha_ has quit [Ping timeout: 246 seconds]
kenran has joined #nixos
Makaveli7 has joined #nixos
ayerhart has joined #nixos
asymmetric has joined #nixos
ayerhart has quit [Remote host closed the connection]
ayerhart has joined #nixos
<Zer000>
wait
<Zer000>
I lied, I just had to restart display-manager.service
<kenran>
Hello! I've built a binary that I need to deploy somewhere (inside another Docker container). Now inside that container, I am/was missing some runtime dependencies, namely a couple of shared libraries (libgmp.so, libtensorflow.so, and such). I used nix-env -iA nixpkgs.libtensorflow nixpkgs.libgmp ... to install those and included ~/.nix-profile/lib/ in my LD_LIBRARY_PATH (it's an alpine linux image). First: is this a "good" or "correct
basvandijk has quit [Ping timeout: 246 seconds]
<kenran>
Second: This worked for all dependencies except for one: libstdc++.so.6. This one is found (twice) on the system, but in /nix/store/.... paths inside the gcc package. How can I make this library "known" to my system? Since the container is built quite often, I probably can't include the path in LD_LIBRARY_PATH as it's not known during container-build-time!?
<kenran>
Does nix have a way to say "this package includes libraries that I want to be found globally"?
justsomeguy has joined #nixos
basvandijk has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<LnL>
that will create a tarball with all the runtime dependencies of the binary, which you can then unpack on another system or container (without nix)
<kenran>
LnL: thanks, but this outputs nothing for me. Is that because it's a custom binary of our application and nothing known to nix
<kenran>
?
asymmetric has quit [Ping timeout: 252 seconds]
<kenran>
error: path '/root/.local/bin/my-exe' is not in the Nix store
<kenran>
So I guess I could/should use the alpine package manager to install libstdc++ and not do this via nix. The binary is build using Haskell `stack` with nix integration, but the problems are those transitive dependencies. The rest were listed in a shell.nix file, so I could do nix-env -i to get them.
safareli has joined #nixos
<LnL>
otherwise nix-env operations could break it
fusion809 has quit [Remote host closed the connection]
<kenran>
LnL: yes, I've never done that before, but it feels like there should be a way to get some help from stack which internally uses nix for those exact dependencies.
cfricke has quit [Quit: WeeChat 2.4]
<safareli>
Hi, I'm having installed flyway using nix and when i'm running
<safareli>
flyway -user=postgres -password=password -url=jdbc:postgresql://localhost:5432/app_db -locations=filesystem:core/migrations/app -baselineOnMigrate=true info
<safareli>
I get error like this
<safareli>
ERROR: Directory for Java Migrations not found: /nix/store/h1q4i8grddrccnjxdcl3hj4qd0r335af-flyway-5.2.4/share/jars
<kenran>
LnL: thanks for clearing this up for me! With this info I can google some more :) From the stack docs I can see that I should theoretically be able to build my project with nix-build, but in my experience this fails at some point (due to tensorflow already failing with nix-build for me). But I get the idea behind it now I think
georgew has quit [Ping timeout: 252 seconds]
heatm1s3r has quit [Ping timeout: 250 seconds]
georgew has joined #nixos
<kenran>
For now, I can probably use the distro package manager to supply the last missing dependency and the fiddle around with it later to find the best solution.
heatm1s3r has joined #nixos
pointfree has joined #nixos
mwilsoncoding has quit [Ping timeout: 252 seconds]
<mg>
Is it possible to run nix-shell with a different nixpkgs?
hoijui has joined #nixos
<johanot>
mg: nix-shell -I nixpkgs=<foo>
<mg>
johanot: nice, where foo is the repo checkout?
<johanot>
mg: any nixpkgs root. can be a repo checkout, yes :)
<mg>
johanot: ait, thanks :)
linarcx has quit [Ping timeout: 268 seconds]
<johanot>
mg: and ehm.. without < >. (bad habit of mine)
<hoijui>
I am developing a new network protocol, and in order to automatically test it, I would want to use some kind of "network simulation" of multiple hosts. It would all have run on a single physical machine. I can imagine doing it with docker containers, but is it also feasible to do it with NixOS somehow, and would it be leaner?
linarcx has joined #nixos
<basvandijk>
hoijui: you could use NixOS tests
parsnip has quit [Quit: WeeChat 2.2]
<hoijui>
basvandijk, where can I read about that?
kleisli_ has quit [Ping timeout: 250 seconds]
<basvandijk>
hoijui: there's info on that in the NixOS manual
<hoijui>
a search come sup wiht.. seemingly unrelated stuff
<hoijui>
basvandijk, I read that it automatically starts multiple VMs running nixos for the tests. what kind of VMs are that, and how do they compare to docker images in terms of performance/systme load?
<kenran>
basvandijk: cool! thanks
asymmetric| has quit [Remote host closed the connection]
alice1 is now known as parsnip
asymmetric| has joined #nixos
<hoijui>
ouh.. it seems to use qemu ...
<basvandijk>
hoijui: yes indeed.
<hoijui>
so probably the docker approach is somewhat leaner
Tucky has joined #nixos
linarcx has quit [Ping timeout: 240 seconds]
<hoijui>
(don;t really know much about Qemu though ;-) )
<hoijui>
I will investiage a bit.. thanks basvandijk :-)
<basvandijk>
hoijui: containers will probably be more efficient but with NixOS tests you get a whole test integration framework out of the box. You can also easily run these tests from your own hydra which I believe is harder when using containers. I guess it all depends on your performance requirements. Good luck.
<{^_^}>
[nixpkgs] @primeos opened pull request #59691 → android-studio-preview: Remove the attribute → https://git.io/fjYOV
<hoijui>
basvandijk what do you mean with "my own hydra" ? Is there a software by this name, or is it a metaphor? either way.. that is a perfect summary, thanks! I will discuss it with my partner. we are just a small team, open source development.. maybe going to get a cheap server that could run the tests at some point.
<linarcx>
Is there a way to create package for electron-based applications in nixos?
<hoijui>
ouh wow! that sounds cool.. thanks tilpner!
<tilpner>
linarcx: You can try running the electron package against the application files
<linarcx>
tilpner: How? Is there a package sample?
alexarice has joined #nixos
<emilsp>
has anyone got any luck running windows 10 with libvirtd on nix? Whenever it's run, it seems like all the syscalls on the host take forever - fork()'ing new commands in the shell will block for whatever reason. Since I've got plenty of io and ram to spare, I was wondering if there's a kernel limit I can raise to give myself some breathing room. I don't even know where to start debugging what resource I'm
<{^_^}>
#46382 (by boomshroom, 31 weeks ago, open): Provide builder or tool for Electron
<tilpner>
I have no idea
jakub has joined #nixos
<sphalerite>
hoijui: oh hey! I know you from spring!
<hoijui>
sphalerite hehe! wow! hello!
<hoijui>
yes htats me
<hoijui>
springrts
<sphalerite>
always nice to see people from previous communities coming to nix :D
<hoijui>
who are you?
<hoijui>
:D
<jakub>
Hi, I am trying to use https://github.com/qmk/qmk_firmware/blob/master/shell.nix and I am getting "attribute `avr` missing at 8:13". I suspect that is because I didn't explicitely get pkgsCross.avr (yeah I am still very new to nixos), any pointers what I might try?
<sphalerite>
hoijui: I played a bunch of spring a few years ago, but never really got all that involved, so you probably won't know me
<hoijui>
just sloowly slowly comming.. I stil jsut have a rought idea of nix, but it really sounds like.. what git for source code management
<hoijui>
ok :-)
<linarcx>
Is there a way to create a package from .deb packages?
<mpickering>
Does this collection of "oreutils" exist packaged in nix already? Might be a nice idea to add an attribute which packages them all
<mpickering>
probably just an easy symlink join
<PeterHK>
i am having a default.nix using python.withPackages. how can i get all the licenses used of the python packages? i cant find the pythonPackages anywhere :9
<PeterHK>
it just has drv.pythonModule.pkgs, but there is everything inside, not just the ones i use
<colemickens>
Their about page talks about how it uses "low level mechanisms of Nix" in Guix.
<ashkitten>
that's the only place they talk about it?
mnoronha_ has joined #nixos
<srhb>
Not really.
<srhb>
But I think most of it is historical now.
<Myrl-saki>
Anyways, TL;DR. I was thinking it'd be somewhat beneficial, as all Guix packages(although only compilable in Guix), can be used in Nix.
<Myrl-saki>
And vice versa.
<ashkitten>
well til i guess
<infinisil>
jakub: Try using 19.03 then
<Myrl-saki>
Of course, there are a lot of pitfalls, such as having 2 copies of libraries.
<elvishjerricco>
Anyone ever tried to use carnix with uefi-rs?
<ashkitten>
btw, is there any ongoing effort to reduce resource consumption of nix, and if so where can i track it?
<Myrl-saki>
ashkitten: Resource consumption?
<mikeplus64>
help! :-( anyone cluey on overriding haskell packages? this exact method works for other packages i've overwritten but not logict seemingly due to smallcheck (for completely mysterious reasons) http://dpaste.com/03QBQPS
<Myrl-saki>
ashkitten: RAM usage?
<elvishjerricco>
I wanna play with efi but I wanna do it with Nix and rust :P
<ashkitten>
Myrl-saki: yes
<ashkitten>
nix literally couldn't run on my vps with 1 gig ram, i had to enable swap and zram
<mikeplus64>
smallcheck depends on logict which .. doesn't depend on anything other than base and mtl--i'm not sure where the recursion is actually happening
<Myrl-saki>
ashkitten: Pretty same here.
<hyper_ch2>
I suddenly get an error: The option value `systemd.network.networks.br0.networkConfig' in `/etc/nixos/configuration.nix' is not of type `attribute set of systemd options'. but I haven't touched systemd.network.networks.br0.networkConfig for months
<infinisil>
mikeplus64: Feel free to ping me in about ~25 minutes if nobody else helps you, I can reply to you then
<hyper_ch2>
I also can't find any change related to it
<jakub>
infinisil: already on it, but I really lack any feedback to verify that whatever I do has any effect :), what could I try (other than executing the nix shell) to see if I am dealing with pkgsCross.* ?
<ashkitten>
i think it's quite ridiculous if a package manager can't run under those conditions
<mikeplus64>
infinisil: will do :)
<ashkitten>
it's not like they're uncommon conditions
<Myrl-saki>
ashkitten: Nix used to be broken that it took O(n) space to add to store, with n as the, uh, store element, size.
<Myrl-saki>
I don't know the term for store element lmao
<srhb>
mikeplus64: Is that really darcs being broken, and your override not affecting it?
mnoronha_ has quit [Ping timeout: 252 seconds]
<srhb>
Hmm, maybe not
<mikeplus64>
shrb: i don't think so, because it has the same result using fetchzip
<Myrl-saki>
ashkitten: So GHC and some other stuff couldn't be installed on 32-bit systems, even with virtual memory.
<ashkitten>
jeez
<mikeplus64>
actually, i messed up the url there
<mikeplus64>
but sadly that is not the problem :(
mnoronha_ has joined #nixos
<Myrl-saki>
ashkitten: Anyways. I guess there are a few takeaways here. First is that Nix is simply not a package manager(obvious) and Nixpkgs is growing huge, and each element added slows the whole thing down.
<PeterHK>
how ot get meta from drv? i can get all the dependencies using `nix-store -q --references` with some recursion... can i somehow get the meta out of these nix-store-paths?
<linarcx>
Anyone here try to dual boot nixos and guixsd?
<srhb>
peterHK: Store paths don't generally know which attribute in whichevre nix expression they belonged to.
st4ll1_ has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb>
peterHK: expr -> { meta, storepath, ... } is a one way street, usually.
mabel has joined #nixos
st4ll1 has quit [Ping timeout: 268 seconds]
asymmetric_ has quit [Remote host closed the connection]
lionello has quit [Ping timeout: 268 seconds]
zupo has joined #nixos
<srhb>
mikeplus64: You could also use an overlay style, like..
<infinisil>
Yeah now that I'm here, you should really be using overlays
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<PeterHK>
hmm i can get a nice dependency tree with `nix-instantiate default.nix` + recursive `nix-store -q --references`. i tried it in the repl but could not get the pythonPackages which are included using python.withPackages
<srhb>
mikeplus64: The reference to super allows you to break the loop.
<sphalerite>
linarcx: I haven't, but it should work. Easiest way I can think of is using nixos's systemd-boot support and chainloading grub from systemd-boot (I presume that the GNU distro will use the GNU bootloader :p )
<infinisil>
srhb: Should be hsuper.cabal2nix though
<srhb>
No.
<infinisil>
srhb: No?
<linarcx>
sphalerite: Any sample or tutorial? Really i have no idea what should i do :(
zupo has quit [Client Quit]
<sphalerite>
linarcx: hmmm maybe you could even run them from the same filesystem x) but I wouldn't recommend trying that
<srhb>
infinisil: No, because then super will be the "self" of callCabal2nix itself and you're stuck with the same problem
<srhb>
At least, if I'm squinting right :-P
<infinisil>
Ahh
<sphalerite>
linarcx: none that I know of, but install nixos with boot.loader.systemd-boot.enable = true;
zupo has joined #nixos
oida has joined #nixos
<srhb>
infinisil: It's weird, it feels like all those callSomething args need their own fixpoints as an argument somehow.
<sphalerite>
linarcx: and create /boot/loader/entries/guixsd.conf with the contents "title GuixSD\nefi /path/to/grubx64.efi"
<sphalerite>
where /path/to/grubx64.efi is relative to /boot
<sphalerite>
linarcx: if you install guixsd first
<srhb>
infinisil: Clearly, your suggestion is the intuitive one..
<infinisil>
srhb: I'd just override the package that causes the inf recursion instead
<srhb>
infinisil: That's the goal of the exercise
<linarcx>
sphalerite: Thank you. but i don't have efi, it's bios actally.
lionello has joined #nixos
<srhb>
infinisil: "I want to override package foo using callCabal2nix (but cabal2nix transitively depends on it)"
<sphalerite>
linarcx: really? What sort of machine is this??
<infinisil>
Oh, I think I get the picture now
<linarcx>
spacefrogg: Another question: what is difference between : `boot.loader.systemd-boot.enable = true` and `boot.loader.grub.enable = true`?
<{^_^}>
[nixpkgs] @basvandijk opened pull request #59698 → Backport "fluentd: 1.2.3 -> 1.4.2" to release-19.03 → https://git.io/fjYs3
alex``5 has joined #nixos
<linarcx>
sphalerite: Yes, Asus k53sv.
<qyliss^work>
NixOS supports two different bootloaders: GRUB and systemd-boot (previously called gummiboot)
<sphalerite>
linarcx: get a context-aware nick completion ;) I'm not sp?cefrogg
<infinisil>
srhb: Wouldn't it make more sense to just use super.haskellPackages.callCabal2nix then for overriding it?
<linarcx>
gyroninja: Thank you.
<srhb>
infinisil: Oh, yeah, that does seem slightly nicer.
<srhb>
Wait, no, same issue right?
<srhb>
Yes, same issue
<srhb>
Now the self of callCabal2nix is super.haskellPackages
<infinisil>
Aw shoot
<infinisil>
srhb: Arguably callCabal2nix shouldn't use the cabal2nix in the fixed point in the first place
<srhb>
It's not intuitive :-P
<srhb>
infinisil: Yep, indeed.
<srhb>
But then you're screwed when you _want_ to override the cabal2nix callCabal2nix uses.
<srhb>
Damned if you do, damned if you don't..
<srhb>
Granted, the latter is a smaller problem surface.
<srhb>
Anyway.. I think I got nerdsniped. Back to work. :-P
PeterHK has quit [Ping timeout: 256 seconds]
<infinisil>
srhb: Although, in make-package-set.nix, I see ` nativeBuildInputs = [ pkgs.buildPackages.cabal2nix ];`
<infinisil>
Ah, that also goes through the fixed point
<srhb>
What's the purpose then >_>
<Taneb>
I remember I think 18.03(?) shipped with a version of cabal2nix that didn't work on any Haskell package that had non-ascii characters in the cabal file, including cabal2nix
<srhb>
Taneb: Yes, that was glorious.
<sphalerite>
linarcx: the manual for your laptop has a screen capture of the firmware settings that mentions UEFI ;)
<Notkea>
hello, is it possible to mask a systemd unit declaratively? I'm trying to find an equivalent to `systemctl mask systemd-backlight@leds\:dell\:\:kbd_backlight.service` since this service prevents my comutper from booting
lightbulbjim_ has quit [Client Quit]
orivej has quit [Ping timeout: 245 seconds]
sb0 has quit [Quit: Leaving]
AleXoundOS_ has joined #nixos
<Notkea>
s/comutper/computer
<sphalerite>
systemd.services."systemd-backlight@leds\:dell\:\:kbd_backlight".enable = false; should do it Notkea
<{^_^}>
nix#833 (by abbradar, 3 years ago, open): builtins.readFile should preserve path context
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @kirelagin to release-19.03 « telegraf: 1.9.2 -> 1.10.2 »: https://git.io/fjYsy
lionello has quit [Ping timeout: 246 seconds]
<Notkea>
sphalerite: thanks, trying that
<sphalerite>
Notkea: might need some adjustment of the \: escaping though
linarcx has joined #nixos
<AleXoundOS_>
Hi. How can I force `nix copy` to use only 1 core, i.e. download and process only one file at a time? I'm running out of RAM when multiple big files are processed with `nix copy`.
<elvishjerricco>
mg: Well, I'm trying to do a Nix build with rust as a dependency
<elvishjerricco>
rustup doesn't really fit that use case
<AleXoundOS_>
there are some packages like `llvm` which occupy more RAM than I have, of course I added swap, but it's tremendously slow
<elvishjerricco>
plus, I'm hoping to get nightly built from source.
<elvishjerricco>
built from source in nix*
<elvishjerricco>
AleXoundOS_: What version of Nix are you using? I think one of the newer versions fixed some memory usage of downloads
mabel has quit [Ping timeout: 255 seconds]
<AleXoundOS_>
when `nix copy` processes several packages like `llvm`, even 3 swap devices in round robin do not help much
<AleXoundOS_>
elvishjerricco, I use nix 2.2
<AleXoundOS_>
on aarch64
cfricke has joined #nixos
<AleXoundOS_>
srhb, cores has no effect neither
<infinisil>
Man, sometimes I really wonder why I'm bisecting when I just could've searched for issues/PRs first
<infinisil>
Who would've thought that an usbmuxd update broke usbmuxd for me!
<AleXoundOS_>
I pass it like that: nix --cores 1 --max-jobs 1 --http-connections 1 copy --from https://cache.nixos.org --to file:///data/19.03/cache?compression=none
<AleXoundOS_>
the status shows the following:
orivej has quit [Ping timeout: 250 seconds]
<AleXoundOS_>
[2/0/3 copied (228.7/857.0 MiB), 60.7/176.6 MiB DL] copying path '/nix/store/5vikbz3l5rwl2ric13cvcfhqqk32a3h6-llvm-3.8.1' from 'https://cache.nixos.org' to 'file:///data/19.03/cache'
orivej has joined #nixos
arianvp has quit [Quit: WeeChat 2.4]
<AleXoundOS_>
the first number corresponds to the number of active jobs (as I think), and I confirm this with all other monitoring tools like htop when `nix copy` performs XZ compression on several cores
<elvishjerricco>
AleXoundOS_: Hm. This issue is closed, suggesting you shouldn't have problems... Lemme look at the fix they made. https://github.com/NixOS/nix/issues/1681
<{^_^}>
nix#1681 (by ledettwy, 1 year ago, closed): nix copy uses too much memory
<elvishjerricco>
ah
<elvishjerricco>
The commit which fixed the issue only fixed it for the legacy ssh store's target host, not any other store type.
<AleXoundOS_>
oh, that's something I didn't know
<AleXoundOS_>
elvishjerricco, thank you for the investigation. The main thing I do not understand is why `nix copy` decompresses packages? As the size of compressed images could mostly fit my RAM.
<elvishjerricco>
domenkozar: So I think nix#1681 should still be open (can't comment on the issue because it's locked)
<elvishjerricco>
AleXoundOS_: `nix copy` is just a thing that gets nars from abstract store types and gives them to abstract store types. How those store types compress or decompress the nars is not of `nix copy`'s concern.
<elvishjerricco>
But it really ought to be able to stream between the stores, rather than lumping the whole nar in memory
arianvp has joined #nixos
<tilpner>
elvishjerricco: Why's the overlay a problem?
<AleXoundOS_>
What I encounter looks like it keeps the whole *uncompressed* nar in memory. Now I guess it's probably to comply with *abstract* store type as you've mentioned.
<elvishjerricco>
tilpner: Doesn't build from source
<tilpner>
Ohh, right
<elvishjerricco>
Not *actually* a problem, so I'll use it if no one's got a way to do nightly from source
<elvishjerricco>
but a source build would be nice :)
<tilpner>
I guess your best bet is to adapt the rustc derivation from nixpkgs to build nightly instead
<tilpner>
But I haven't tried to do that, so I'm probably wrong
<elvishjerricco>
Yea. Maybe I can get the source from the overlay and just overrideAttrs the nixpkgs expression or something
<{^_^}>
[nixpkgs] @basvandijk pushed 2 commits to release-19.03: https://git.io/fjYGG
<AleXoundOS_>
elvishjerricco, so even when the issue #1681 will be fixed there won't be a way to bypass recompression phase? I thought ideally it could be copying nar compressed from one store to another if both ends request same compression type.
<elvishjerricco>
AleXoundOS_: Not really a point in bypassing compression if it's constant memory anyway, except to save a few cpu cycles
<tilpner>
You can copy compressed NARs, but you might need to write your own script for that
<AleXoundOS_>
I run `nix copy` on a machine with weak processor. It's NanoPi Neo2, aarch64 architecture. xz decompressionn is fine, but *xz compression* takes several hours for some packages.
<AleXoundOS_>
tilpner, it would be great if such program/script existed. I'm pretty new to nix and couldn't figure out how to copy a full binary cache from cache.nixos.org for channel 19.03 for example.
<tilpner>
If you have any other machine available, using that would probably be a better use of time
parsnip has quit [Quit: WeeChat 2.2]
<nh2>
infinisil ashkitten: `pkgs/he/hello` - that seems rather odd, is that really necessary? In my opinion, an editor that cannot open a 700 KB file in less than a second is bugged and needs to be fixed
<tilpner>
But you'll need to become familiar with the layout of a http binary cache
<ashkitten>
nh2: not a question of if you can do a thing right now. obviously it works for the moment, but nixpkgs needs a serious reorganization imo
<AleXoundOS_>
You mean compressed?
<tilpner>
The tricky thing is going to be finding which outputs you need, and downloading them to the right locations with sufficient parallelism
<nh2>
infinisil ashkitten: for example, sublime on my 2011 laptop opens all-packages.nix with full syntax highlighting in sub-second time easily
<tilpner>
Ah, yes, compressed
<AleXoundOS_>
tilpner, I've got your point. Currently I have only NanoPi Neo2 24/7 online. Maybe solving #1681 + appending `compression=none` will be enough. Then I can compress uncompressed nar on a powerful machine later I guess.
<elvishjerricco>
AleXoundOS_: Let me try something out first
<jakub>
infinisil: i am at 19.03 (or am I? how can I be sure?), I even nix-rebuild switched, I still get the same error, don't I really need to initialize the cross platform somehow before I start requesting packages from pkgsCross?
<AleXoundOS_>
elvishjerricco, ok!
Glider_IRC_ has quit [Ping timeout: 255 seconds]
<johanot>
how do I force "nix build" to build locally, not using cache.nixos.org ? "--option substitute false" causes local build of all deps, but I just want to be one derivation locally. I'm fine with substituting dependencies.
<__monty__>
mikeplus64: Did you try a dontCheck on logict?
<johanot>
want to build*
alice1 has joined #nixos
AleXoundOS_ has quit [Ping timeout: 250 seconds]
admin_znc_ has joined #nixos
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #59702 → rcs: fix darwin build → https://git.io/fjYG2
reinhardt has joined #nixos
admin_znc_ has quit [Quit: .]
conhps has joined #nixos
regulus_ has quit [Read error: Connection reset by peer]
init_6 has joined #nixos
<elvishjerricco>
Aleksejs: Sorry, trying to just test some of the store types for memory usage during nix copy, but having trouble figuring out how to run a process with artificially constrained memory
<infinisil>
nh2: Well, you can't open the file on github without major lag. But the biggest problem imo is that all-packages is needed at all. We shouldn't need to edit a 100k file by hand
kleisli has joined #nixos
<infinisil>
It's like manually doing "insert (name) into package-table" every time somebody wants to add a package
<nh2>
infinisil: yes it being unnecessary sounds like the real problem
lightbulbjim_ has joined #nixos
lightbulbjim_ has quit [Remote host closed the connection]
lightbulbjim has joined #nixos
regulus- has joined #nixos
lightbulbjim has quit [Read error: Connection reset by peer]
hhefesto has joined #nixos
lightbulbjim has joined #nixos
<infinisil>
jakub: What does `nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion` evaluate to?
kvda has joined #nixos
<elvishjerricco>
Is there a way to have a message relayed to someone when they next rejoin the channel?
lielazivee has joined #nixos
<symphorien>
elvishjerricco: ,tell <nickname>
<jakub>
infinisil: (that i should use lib.version) and 19.03.172138.5c52b25283a
<lielazivee>
Has anyone ever ran into "npm install" throwing an error regarding "error cb() never called!"? In my derivation build phase I run "npm install" and only when running with nix-build does the error appear. If I try to run the same build command in a nix-shell or on my host - the error doesn't appear.
orivej has joined #nixos
<symphorien>
<elvishjerricco> Is there a way other than the mozilla overlay to get rust nightly on NixOS? << you can get an outdated nightly by using stable and exporting RUSTC_BOOTSTRAP=1
tboston_ has joined #nixos
kleisli has quit [Remote host closed the connection]
<infinisil>
jakub: What about `nix-instantiate --eval '<nixpkgs>' -A avrlibc.name`?
<alexoundos>
symphorien, I'm here. I don't know exactly how to limit ram usage neither. Maybe some systemd cgroups magic. Or radical solution to run the system in qemu.
uranther has joined #nixos
<alexoundos>
Ah, sorry, the answer is to elvishjerricco.
<symphorien>
for nix ram usage, swap is usually a good solution
tboston_ has quit [Ping timeout: 264 seconds]
<elvishjerricco>
yea, cgroup is what i used
<infinisil>
jakub: That should evaluate to avr-libc-2.0.0, so you certainly have avrlibc in that version
lightbulbjim has quit [Quit: lightbulbjim]
<infinisil>
jakub: And then you should only need to change avr to avrlibc in the nix file and it should at least not give an "attribute missing" error
alice1 is now known as parsnip
<jakub>
infinisil: i changed pkgsCross.avr to pkgs.avrlibcCross and now I get: assertion failed at all-packages.nix:6862
<infinisil>
Did you try just avrlibc instead?
<jakub>
infinisil: in that case buildPackages is missing from avrlibc
mwilsoncoding has quit [Ping timeout: 268 seconds]
mnoronha_ has quit [Ping timeout: 246 seconds]
ixxie has joined #nixos
rjmill has joined #nixos
zupo has joined #nixos
jasongrossman has joined #nixos
<linarcx>
I get this error when run a programm: /nix/store/c2kr25fsj4wfjzpmra67yh4zbx3whg19-etcher-bin-1.5.26/opt/balenaEtcher/balena-etcher-electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
o1lo01ol1o has joined #nixos
mconstant has joined #nixos
zupo has quit [Client Quit]
orivej has joined #nixos
zupo has joined #nixos
ryantrinkle has joined #nixos
rauno has quit [Ping timeout: 252 seconds]
drakonis_ has quit [Read error: Connection reset by peer]
reinhardt has quit [Quit: Leaving]
drakonis_ has joined #nixos
<aswanson>
linarcx: I looked at your reddit thread and I think you'll be better served attempting to build the application from source, not installing a debian package. As an aside, I don't know that you should really need a full blown electron app just to write images to an SD card, is there something specific keeping you from using `dd`
tboston_ has joined #nixos
drakonis has joined #nixos
<linarcx>
Yes, i am afraid of dd :))
o1lo01ol1o has quit [Remote host closed the connection]
<linarcx>
aswanson: Is there a general way to package electron apps in nixos?
<gchristensen>
you can skip `dd` and just use `cp`
kaliumxyz has joined #nixos
<kaliumxyz>
sup
<linarcx>
gchristensen: How?
<kaliumxyz>
how do I get dpkg packages on nixos without polluting the whole system?
<gchristensen>
same way you `cp` everything else
<gchristensen>
`cp ./my.iso /dev/sda`
<kaliumxyz>
wtf u can use CP for that?
<kaliumxyz>
I always use dd
<kaliumxyz>
:tired:
<jasongrossman>
kaliumxyz: Yes, but cp used like that is just as dangerous as dd!
<linarcx>
gchristensen: kidding me?!
<kaliumxyz>
makes sense jason.
<aswanson>
linarcx: I don't have a ton of experience building new packages, but I see that their source repo has a makefile, then you'll follow this general process and figure out which dependencies you'll need to add: https://nixos.org/nixpkgs/manual/#chap-quick-start
<gchristensen>
yeah, but less scary because it is familiar syntax and no scary if, of, bs params
<jasongrossman>
(The explanation is that the dangerous magic is done by the disk drivers, not by dd.)
<kaliumxyz>
input file, output file
<qyliss^work>
Electron is a pain with Nix, IIRC
<ajs124>
dd? just use cat! cat my.iso > /dev/sda
<kaliumxyz>
wut
<kaliumxyz>
electron is easy af
<kaliumxyz>
what r u trying to do?
<linarcx>
aswanson: Thank you.
<jasongrossman>
I wonder whether you can use lolcat.
hhefesto has quit [Read error: Connection reset by peer]
<kaliumxyz>
web developer idiot here.
drakonis_ has quit [Ping timeout: 246 seconds]
<gchristensen>
kaliumxyz: please don't speak that way about web developers
kvda has joined #nixos
<kaliumxyz>
if u need help with electron
<kaliumxyz>
gchristensen: was talking about myself
<symphorien>
the gist is "when you download a binary from the internet, it won't work on NixOS"
<symphorien>
this includes deb packages, npm installations which do not compile from source, etc.
samrose has joined #nixos
<kaliumxyz>
well yes, I understand that.
<kaliumxyz>
I see, it has solutions
<samrose>
is `/var/lib/<mydir>` the conventional path where folks are typically placing writable files in nixos?
<lielazivee>
I have a NodeJS project which can be configured using a .env file in the project. If I want to wrap it with a nix derivation + module, which will create a systemd service. Should I configure my app to accept a path to the .env file as a CLI argument?
<symphorien>
there is a number of electron applications in nixpkgs, you can also use them as inspiration. But this page will explain you what the problem is.
hlolli has joined #nixos
<gchristensen>
samrose: that is a pretty good way to do it
<gchristensen>
samrose: what kind of files, and what is their lifetime?
<kaliumxyz>
I was just checking to config because someone posted here symphorien
<kaliumxyz>
I care about running a dkpg package
<samrose>
gchristensen: these are re-writable config files that a binary will consume. They *could* be altered at any time
<kaliumxyz>
need USB access and such so dont wana container it.
<samrose>
gchristensen: or actually replaced I should say
<gchristensen>
cool, seems like a good place
hlolli__ has quit [Ping timeout: 240 seconds]
<samrose>
thanks gchristensen
init_6 has quit [Ping timeout: 268 seconds]
<kaliumxyz>
gotta read up on containers to see if that might just werk no matter what
zupo has joined #nixos
<ajs124>
kaliumxyz, privileged (docker) containers basically have full hardware access
o1lo01ol1o has joined #nixos
<kaliumxyz>
nixos containers
<ajs124>
I once flashed the firmware of a dell server from one. Would not recommend, but it worked perfectly fine.
<kaliumxyz>
I know docker containers cant do shite
ryantrinkle has quit [Ping timeout: 250 seconds]
zupo has quit [Client Quit]
<gchristensen>
they can, actually, if they're privileged
<kaliumxyz>
:o?
<gchristensen>
if you have access to the docker socket, you essentially have unrestricted root access to the system
<edcragg>
if the install tools should work, can i install them?
<edcragg>
i fear i don't understand modules properly at the minute
<tilpner_>
Something like nix-env -if '<nixpkgs/nixos>' -A config.system.build.nixos-install might work
<tilpner_>
You might need to set NIXOS_CONFIG to an empty module
Alling has joined #nixos
tilpner_ is now known as tilpner
mabel has quit [Ping timeout: 268 seconds]
Synthetica has joined #nixos
<{^_^}>
[nixpkgs] @h0chi opened pull request #59718 → bluej-bin: init at 414 → https://git.io/fjYcA
<edcragg>
yeah, that gives me `error: file 'nixos-config' was not found in the Nix search path (add it using $NIX_PATH or -I)`
<sphalerite>
edcragg: what tilpner wrote, plus --arg configuration {}
<sphalerite>
edcragg: and the same command with nixos-generate-config instead of nixos-install, unless you know what you're doing and want to write your config entirely yourself :)
<samrose>
are there nixos functions to just give one user the permission to read/write to a specific path?
alter-schjetne has joined #nixos
<sphalerite>
samrose: it's not nixos-specific, but posix ACLs can do that
<sphalerite>
as long as the path exists
tboston_ has quit [Ping timeout: 268 seconds]
domogled has joined #nixos
<samrose>
sphalerite: makes sense. I was wondering if the acl's are wrapped by the nix expression lang somehow?
<Alling>
Hello channel! I have modified a cabal package and I would like to try to build it with cabal 1.10, so I know if I have to modify the cabal-version field. To try with cabal 1.24, I added "(import <nixos-17.03> {}).haskellPackages.cabal-install" to my shell.nix. It worked, but nix-shell spent 2 hours building GHC. What should I do to try with cabal 1.10?
<tilpner>
Are you really still on 17.03?
johanot has quit [Ping timeout: 268 seconds]
mnoronha_ has joined #nixos
<Alling>
tilpner: No, I added it temporarily using nix-channel --add.
<sphalerite>
samrose: I don't think so. They can't exist in the nix store, and I don't know of any nixos modules that use them.
<edcragg>
sphalerite, tilpner, that seems to have done the trick, thanks!
schjetne has quit [Ping timeout: 268 seconds]
<samrose>
sphalerite: so in this case, people must be just running `chown` etc in a script or system command in their expressions then eh?
alexozer has quit [Ping timeout: 252 seconds]
npmccallum has joined #nixos
<sphalerite>
samrose: oh yeah there's definitely standard unix permission stuff going on in the nixos modules
<sphalerite>
just no ACLs that I know of
alexozer has joined #nixos
mabel has joined #nixos
<samrose>
sphalerite: I was also going to look into apparmor profiles for actual ACL. For now I was just hunting down these standard unix permission functions
vidbina has joined #nixos
<sphalerite>
samrose: there's a mode attribute for environment.etc stuff as well
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<samrose>
sphalerite: ah that stuff is under `environment`
<samrose>
thanks
johanot has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
alter-schjetne has quit [Ping timeout: 246 seconds]
hhefesto has joined #nixos
basvandijk has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
hyper_ch2 has quit [Quit: Page closed]
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « protobufc: fix compatibility with updated protobuf by picking the upstream minor patch »: https://git.io/fjYC4
<tilpner>
sphalerite: I think the problem is finding a cabal 1.10 anywhere in nixpkgs. Even 15.09 has 1.22
<sphalerite>
oh ok
asthma[m] has quit [Remote host closed the connection]
bkl[m] has quit [Remote host closed the connection]
jmchapman[m] has quit [Read error: Connection reset by peer]
tfc[m] has quit [Remote host closed the connection]
nyanloutre[m] has quit [Remote host closed the connection]
pereiraalex[m]1 has quit [Read error: Connection reset by peer]
Purple-mx has quit [Read error: Connection reset by peer]
xenofungus[m] has quit [Read error: Connection reset by peer]
nbardiuk has quit [Read error: Connection reset by peer]
neonfuz__ has quit [Read error: Connection reset by peer]
Guest48793 has quit [Read error: Connection reset by peer]
slabity has quit [Read error: Connection reset by peer]
sputny[m] has quit [Read error: Connection reset by peer]
yangm97 has quit [Read error: Connection reset by peer]
infinisil-m has quit [Read error: Connection reset by peer]
copy` has quit [Read error: Connection reset by peer]
leons has quit [Read error: Connection reset by peer]
momack2[m] has quit [Read error: Connection reset by peer]
roberth has quit [Read error: Connection reset by peer]
torched[m] has quit [Read error: Connection reset by peer]
juliendehos[m]1 has quit [Read error: Connection reset by peer]
MerlinGttlinger[ has quit [Read error: Connection reset by peer]
Minijackson[m] has quit [Read error: Connection reset by peer]
tdeo` has quit [Read error: Connection reset by peer]
escaP[m] has quit [Read error: Connection reset by peer]
isgy[m] has quit [Read error: Connection reset by peer]
aissat[m] has quit [Read error: Connection reset by peer]
icetan has quit [Remote host closed the connection]
luftmensch[m] has quit [Remote host closed the connection]
Noughtmare[m] has quit [Remote host closed the connection]
bpye has quit [Write error: Connection reset by peer]
bachp has quit [Write error: Connection reset by peer]
Tony[m] has quit [Write error: Connection reset by peer]
jyvrmn2[m] has quit [Write error: Connection reset by peer]
mara[m] has quit [Read error: Connection reset by peer]
florianjacob has quit [Read error: Connection reset by peer]
MayeulC has quit [Write error: Connection reset by peer]
submoo[m] has quit [Read error: Connection reset by peer]
theseriousadult[ has quit [Read error: Connection reset by peer]
bricewge has quit [Read error: Connection reset by peer]
jak[m] has quit [Write error: Connection reset by peer]
bb010g has quit [Read error: Connection reset by peer]
vaibhavsagar has quit [Remote host closed the connection]
bee[m]1 has quit [Read error: Connection reset by peer]
erobl[m] has quit [Read error: Connection reset by peer]
7ITAAETFC has quit [Read error: Connection reset by peer]
hiroshi[m] has quit [Read error: Connection reset by peer]
matthewbauer has quit [Read error: Connection reset by peer]
nokomprendo[m] has quit [Read error: Connection reset by peer]
AlexRice[m] has quit [Remote host closed the connection]
capslock3[m] has quit [Read error: Connection reset by peer]
benwaffle[m] has quit [Read error: Connection reset by peer]
tbenst[m] has quit [Read error: Connection reset by peer]
Vskilet has quit [Read error: Connection reset by peer]
timokau[m] has quit [Write error: Connection reset by peer]
Guest67619 has quit [Remote host closed the connection]
Criena[m] has quit [Remote host closed the connection]
hackeryarn[m] has quit [Read error: Connection reset by peer]
orospakr[m] has quit [Remote host closed the connection]
macerbi[m] has quit [Read error: Connection reset by peer]
contrun[m] has quit [Remote host closed the connection]
Moredread[m] has quit [Remote host closed the connection]
gallexme[m] has quit [Remote host closed the connection]
sylvie[m] has quit [Write error: Connection reset by peer]
kyren[m] has quit [Read error: Connection reset by peer]
sjy[m] has quit [Read error: Connection reset by peer]
JaredM[m] has quit [Write error: Connection reset by peer]
craige[m] has quit [Read error: Connection reset by peer]
travelion[m] has quit [Read error: Connection reset by peer]
henrytill[m] has quit [Read error: Connection reset by peer]
haslersn[m] has quit [Read error: Connection reset by peer]
thefloweringash1 has quit [Read error: Connection reset by peer]
Dandellion[m] has quit [Write error: Connection reset by peer]
sm[m] has quit [Read error: Connection reset by peer]
tet[m] has quit [Read error: Connection reset by peer]
linarcx[m] has quit [Read error: Connection reset by peer]
domenkozar[m] has quit [Remote host closed the connection]
wak-work has quit [Remote host closed the connection]
hylshols7qui[m] has quit [Read error: Connection reset by peer]
kjuvi[m] has quit [Remote host closed the connection]
worldofpeace has quit [Read error: Connection reset by peer]
cornu has quit [Read error: Connection reset by peer]
lurpahi has quit [Read error: Connection reset by peer]
sitischu[m] has quit [Read error: Connection reset by peer]
malteof[m] has quit [Read error: Connection reset by peer]
corpix[m] has quit [Read error: Connection reset by peer]
billsun has quit [Read error: Connection reset by peer]
badmutex[m] has quit [Read error: Connection reset by peer]
nh2[m] has quit [Read error: Connection reset by peer]
kevincox[m] has quit [Read error: Connection reset by peer]
AntonSchirg[m] has quit [Read error: Connection reset by peer]
alj[m] has quit [Read error: Connection reset by peer]
aquarial has quit [Read error: Connection reset by peer]
codyopel has quit [Read error: Connection reset by peer]
kaychaks[m] has quit [Read error: Connection reset by peer]
otini has quit [Read error: Connection reset by peer]
clacke[m] has quit [Read error: Connection reset by peer]
rycee has quit [Read error: Connection reset by peer]
attero[m] has quit [Read error: Connection reset by peer]
lycium[m] has quit [Write error: Connection reset by peer]
Josh[m] has quit [Read error: Connection reset by peer]
Ralith1 has quit [Write error: Connection reset by peer]
musicmatze has quit [Read error: Connection reset by peer]
ejpcmac has quit [Read error: Connection reset by peer]
fearlessKim[m] has quit [Read error: Connection reset by peer]
bennofs[m] has quit [Read error: Connection reset by peer]
Brio[m] has quit [Read error: Connection reset by peer]
NickHu has quit [Remote host closed the connection]
sneknek[m] has quit [Read error: Connection reset by peer]
rnhmjoj has quit [Read error: Connection reset by peer]
laas has quit [Remote host closed the connection]
jschievink[m] has quit [Read error: Connection reset by peer]
tuxubuntu[m] has quit [Read error: Connection reset by peer]
offlinehacker has quit [Read error: Connection reset by peer]
benkerry[m] has quit [Read error: Connection reset by peer]
exarkun1 has quit [Read error: Connection reset by peer]
Guest77623 has quit [Read error: Connection reset by peer]
Barnabas[m] has quit [Read error: Connection reset by peer]
klDen[m] has quit [Read error: Connection reset by peer]
YanMinari[c][m] has quit [Read error: Connection reset by peer]
makaveli[m]1 has quit [Read error: Connection reset by peer]
BinkyTheClown has quit [Read error: Connection reset by peer]
Jorik[m] has quit [Read error: Connection reset by peer]
ptotter[m] has quit [Remote host closed the connection]
moope[m] has quit [Write error: Connection reset by peer]
nocent has quit [Read error: Connection reset by peer]
stammon1 has quit [Remote host closed the connection]
Thinkofname[m] has quit [Read error: Connection reset by peer]
ninjatrappeur[m] has quit [Read error: Connection reset by peer]
JaakkoLuttinen[m has quit [Read error: Connection reset by peer]
cyberwolf[m][m] has quit [Remote host closed the connection]
am3on[m] has quit [Read error: Connection reset by peer]
cejota[m] has quit [Read error: Connection reset by peer]
sierraDelta has quit [Read error: Connection reset by peer]
attente[m] has quit [Read error: Connection reset by peer]
bkchr has quit [Read error: Connection reset by peer]
bobvanderlinden_ has quit [Read error: Connection reset by peer]
melchips[m] has quit [Read error: Connection reset by peer]
atgo[m] has quit [Read error: Connection reset by peer]
alexoundos7[m] has quit [Read error: Connection reset by peer]
rdes[m] has quit [Remote host closed the connection]
thaddeusmaddeus[ has quit [Read error: Connection reset by peer]
simbergm has quit [Read error: Connection reset by peer]
pleeplop has quit [Remote host closed the connection]
metasyntactic[m] has quit [Read error: Connection reset by peer]
smolboye[m] has quit [Remote host closed the connection]
Rich[m] has quit [Read error: Connection reset by peer]
alienpirate5 has quit [Read error: Connection reset by peer]
M0ddba11[m] has quit [Read error: Connection reset by peer]
ststefa[m] has quit [Write error: Connection reset by peer]
tokudan[m] has quit [Read error: Connection reset by peer]
timclassic has quit [Read error: Connection reset by peer]
olejorgenb[m] has quit [Read error: Connection reset by peer]
dtz has quit [Read error: Connection reset by peer]
philipp[m] has quit [Read error: Connection reset by peer]
marko[m]1 has quit [Read error: Connection reset by peer]
WilliamHamilton[ has quit [Read error: Connection reset by peer]
peter2121[m] has quit [Read error: Connection reset by peer]
thequux[m] has quit [Read error: Connection reset by peer]
uvnikita[m] has quit [Remote host closed the connection]
<gchristensen>
oops
DanP[m] has quit [Remote host closed the connection]
snupples[m] has quit [Remote host closed the connection]
ponpinu[m] has quit [Write error: Connection reset by peer]
zurdo has quit [Write error: Connection reset by peer]
wolfman12345[m] has quit [Remote host closed the connection]
dmitry-zen[m] has quit [Remote host closed the connection]
gudea[m] has quit [Remote host closed the connection]
jonreeve[m] has quit [Remote host closed the connection]
MiloIgnis[m] has quit [Read error: Connection reset by peer]
siraben has quit [Read error: Connection reset by peer]
utdemir[m] has quit [Read error: Connection reset by peer]
atopuzov[m] has quit [Read error: Connection reset by peer]
bobmolson[m] has quit [Read error: Connection reset by peer]
EB[m] has quit [Read error: Connection reset by peer]
teh[m] has quit [Read error: Connection reset by peer]
grahamc[m] has quit [Read error: Connection reset by peer]
abbafei[m] has quit [Read error: Connection reset by peer]
weebull[m] has quit [Read error: Connection reset by peer]
jonge[m] has quit [Read error: Connection reset by peer]
Dan[m]2 has quit [Read error: Connection reset by peer]
das-g[m] has quit [Read error: Connection reset by peer]
Seb[m] has quit [Read error: Connection reset by peer]
spacekitteh[m] has quit [Read error: Connection reset by peer]
IslandUsurper has quit [Read error: Connection reset by peer]
bbigras has quit [Read error: Connection reset by peer]
iraems[m] has quit [Read error: Connection reset by peer]
aaronduino[m] has quit [Read error: Connection reset by peer]
manveru[m] has quit [Read error: Connection reset by peer]
Ericson2314 has quit [Write error: Connection reset by peer]
zaphar_ps[m] has quit [Read error: Connection reset by peer]
dkellner[m] has quit [Read error: Connection reset by peer]
<ar>
is this matrix?
<tilpner>
No, matrix.org just left
<Alling>
sphalerite: What tilpner said. Also it didn't seem to work; ghc is not a command in the nix-shell like it usually is, and cabal --version is 2.2.
o1lo01ol1o has quit [Ping timeout: 250 seconds]
alexarice has quit [Ping timeout: 244 seconds]
<ar>
yay for netsplits without netsplits. it's like irccloud all over again
<Alling>
But if 1.10 is that old (2010), maybe I should just let it say cabal-version: >=1.10 and don't care about it.
<sphalerite>
yeah, that sounds fair
marcinja has quit [Ping timeout: 255 seconds]
irdr has quit [Remote host closed the connection]
mnoronha_ has quit [Ping timeout: 268 seconds]
irdr has joined #nixos
<Alling>
By the way, if I have experimented a lot with nix-shell and whatnot and I want to free up some disk space taken up by packages I will never use again, what do?
<sphalerite>
nix-store --gc
marcinja has joined #nixos
ixxie has quit [Ping timeout: 258 seconds]
<pie_>
is the nix build script in the nixpkgs tree?
<sphalerite>
pie_: depends on what you mean by the build script
<sphalerite>
but for the most typical interpretations of "build script", no
<Alling>
sphalerite: Woah! That's literally more than 30 GB freed in seconds. Thank you!
<pie_>
basically im trying to figure out if SANDBOX_SHELL is used on nixos
schjetne has joined #nixos
<pie_>
or something, because something breaks sandboxes on debian and i think it might be this
<samueldr>
jabranham: asked around, everything looks like it should have been updating, from a quick glance
Ariakenom has quit [Ping timeout: 250 seconds]
<jabranham>
samueldr: hrm... well, thanks for looking into it. Hopefully someone™ figures it out soon.
rauno has joined #nixos
<pie_>
immae, took me like 5 hours though xP
<gchristensen>
we're looking now, jabranham and samueldr -- thanks
endformationage has joined #nixos
<jabranham>
gchristensen: thanks for being someone™ :-)
<gchristensen>
:)
florianjacob has joined #nixos
<immae>
pie_ about the issue you’re poking me in https://github.com/NixOS/nix/issues/2605#issuecomment-483686138 it rings a bell, but not related (I think) to what I wrote in the AUR, were you trying to create or update channels? If so, I indeed have (had? I don’t use channel anymore) to set sandbox to false everytime, but the rest works correctly
<immae>
s/were/where/
<pie_>
YESSS IT WORKSSS
<pie_>
booyah
ggpeti_ has joined #nixos
vmandela has joined #nixos
lielazivee has quit [Ping timeout: 255 seconds]
<pie_>
immae, can you link it? i lost track of the url -_-
<pie_>
cant figure out how to find it in github issues i commented on, or maybe its not indexed properly yet
<pie_>
nvm you linked it, i cant read :P
<immae>
:D
<immae>
I was asking wether your issue was when using nix-channel
<immae>
because for me it always fails, but all the rest works correctly so I’m fine with it
<immae>
(though I don’t use channels anymore, so maybe it’s outdated)
<pie_>
immae, im not using nix channel, but i think the problem was orthogonal
<immae>
ok
<pie_>
at least for this error: error: while setting up the build environment: getting attributes of path '': No such file or directory
o1lo01ol1o has joined #nixos
<immae>
Just out of curiosity, how did you fix it?
<pie_>
by adding sandbox-paths = /bin/sh=/bin/busybox to nix.conf
<pie_>
but i probably want to change the compile script or something
<pie_>
that was just a temporary hack to see if it works
<pie_>
or idk
<immae>
ah, easy. I don’t recommend busybox though, as you will have strange behavior when using tools like "ar" (or other packaged by busybox) in your derivation
<immae>
That’s why I made the work to packge a static version of dash
<pie_>
ah ok, re: hack
stepcut_ has joined #nixos
<immae>
The issue for instance is that when you call "ar" in a derivation, busybox will take it even if you have a true "ar" in your path, and the arguments accepted by busybox ar are different from the gnu one
ggpeti_ has quit [Ping timeout: 252 seconds]
<immae>
I was a bit puzzled by that some time ago :D
<ar>
calling me in derivations isn't very effective. highilighting me on irc on the other hand…
strobelight has quit [Remote host closed the connection]
knupfer has joined #nixos
knupfer has quit [Remote host closed the connection]
erasmas has joined #nixos
knupfer has joined #nixos
<pie_>
immae, no i mean when i reference it in an issue there used to be this fancy looking thing that inline copied it in.
<pie_>
sort of
strobelight has joined #nixos
<pie_>
andway gotta run
calbrecht[mb] has joined #nixos
georgew has quit []
georgew has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
<samrose>
opinions souught: I think I have a good case to set static uid/gid on software I am running in nixos. I am overlaying onto nixos in my build and need to set uid/guid for a user I am creating
<aswanson>
jomik: I made an attempt a while ago and got stuff to build, I used https://nixos.org/nixpkgs/manual/#python pretty extensively as well as cribbing from existing packages in nixpkgs
tomberek has joined #nixos
jfroche has quit [Ping timeout: 246 seconds]
<jomik>
Hmm, I'll try a bit more I guess - I tried using pypi2nix, but it fails because `screepsapi` does not have a binary distribution I guess.
<{^_^}>
[nixpkgs] @FRidh pushed commit from @illegalprime to master « inetutils: cross compile »: https://git.io/fjYRK
<{^_^}>
[nixpkgs] @FRidh pushed commit from @illegalprime to master « libassuan: use config flag to specify libgpg-error prefix »: https://git.io/fjYRi
<{^_^}>
[nixpkgs] @FRidh merged pull request #57815 → libassuan: use config flag to specify libgpg-error prefix → https://git.io/fjvRR
<m3lt>
"nix-env -i androidsdk" works on my root account, but not as normal user.
<m3lt>
could that be intented ?
Izorkin has quit [Ping timeout: 252 seconds]
<tilpner>
nefix: Yes, but it won't be as easy as you might think
<tilpner>
You need to build the new system somewhere, copy it over if necessary, set the system profile and run the activation manually with the correct interpreter
<nefix>
Wuuuut
<tilpner>
Or reboot and select a working generation if you can
<nefix>
Why can't I just change the channel?
<tilpner>
As you can see in the nixops output, your kernel broke switch-to-configuration
<tilpner>
Which is absolutely required for any NixOS rebuilds
<tilpner>
(Or at least I currently think it has, even though I can't explain it yet)
<nefix>
But I can do rebuilds and they seem to work
<rycee>
Yay! IRC is back :-)
<tilpner>
Really?
<nefix>
(with switching)
<tilpner>
Oh, then I'm wrong, that's a relief
Izorkin has joined #nixos
growpotkin has joined #nixos
_kwstas has joined #nixos
<growpotkin>
Do the <Home> and <End> keys work in `nix repl` for y’all?
blackriversoftwa has joined #nixos
<tilpner>
Only home works here
<tilpner>
Assuming home is the same as "Pos 1" is here
<blackriversoftwa>
Why does 'builtins' not work in `$ nix eval`?
<growpotkin>
I suspect that my URxvt settings might be to blame, but i don’t want to waste time debugging it if it’s not supported
<blackriversoftwa>
If I try `$ nix eval 'builtins.currentSystem' it says "error: attribute 'builtins' in selection path 'builtins.currentSystem' not found"
<tilpner>
And don't ask me why
<blackriversoftwa>
tilpner: huh ok thanks :)
<m3lt>
'nix repl' responds to C-l and C-b in kitty.
<growpotkin>
tilpner: lol why doesn’t it do the reasonable thing and use that as the default? Lol
<tilpner>
"tilpner | And don't ask me why"
<tilpner>
I have no idea
<growpotkin>
m3lt: thank you. I will try to use those as a remap somehow.
<blackriversoftwa>
I wonder is it distinguishing between a standalone expression and a path into an attribute set from a file input?
<blackriversoftwa>
Because if I pass it a file with an attribute `fooPkgs`, I can say `fooPkgs.system` (say) and get the system attribute of that package set
<blackriversoftwa>
Yep that's it
<blackriversoftwa>
because if I wrap the attribute path in parens I get an undefined variable error
<infinisil>
Yeah
<infinisil>
I
<infinisil>
I think the default file is a file like { <channel-name> = <channel-expression; }
<infinisil>
Oh, not channel name
<blackriversoftwa>
So if I say `nix eval -f ./path/to/nix (fooPkgs.system)` then I get an error
<infinisil>
NIX_PATH I mean
<blackriversoftwa>
Yeah that would make sense
<blackriversoftwa>
So you can nix-eval to look at attribute paths in your nix channels easily
<infinisil>
So `nix eval nixpkgs.hello` = `nix-instantiate --eval '<nixpkgs>' -A hello`
<blackriversoftwa>
I'm not going to say this isn't in the docs because then someone will point to it and I'll have egg on my face, but it should be more highlighted in the docs at least
<blackriversoftwa>
It might just be implied by example right now
<infinisil>
blackriversoftwa: It's not in the docs :)
<infinisil>
Because this CLI is still unstable in a way
<exarkun>
what do I have to do to my nixos configuration to make openssh server start on boot? `services.openssh.enable = true;` seems not to be it.
<infinisil>
tilpner: While expressions can't do that
<tilpner>
infinisil: I don't think I've ever used that feature, so I forgot about it. I suppose it could be bolted on, just try to callPackage if the result is a function, but that's a little less clean
growpotkin has quit [Read error: Connection reset by peer]
growpotkin_ has joined #nixos
<tilpner>
And could make for some unfriendly surprises. Not sure if it would be worse than the current interface though
<blackriversoftwa>
exarkun: That should be it...can you pastebin your /etc/nixos/configuration.nix? (Make sure to clean out ssh keys/hashed passwords etc)
<exarkun>
my configuration is factored into a few files, it's kind of hard to paste
<infinisil>
tilpner: No it even auto-calls on each level. For an expression `{}: { a = { b }: { c = { d }: { e = 10; }; }; }` you can get to 10 with `nix eval a.c.e --arg b null --arg d null`
<tilpner>
exarkun: You can ping the device and you added an authorized public key?
<sphalerite>
exarkun: `nixos-option systemd.services.sshd.wantedBy` can tell you what gives that its value
<sphalerite>
exarkun: by default it should be [ "multi-user.target" ], if it's not something else is disabling it
<tilpner>
infinisil: Uhh, okay. Do people use that a lot?
Neo--- has quit [Ping timeout: 264 seconds]
<infinisil>
tilpner: This is what allows you to `nix-instantiate --eval -A hello.name` in nixpkgs, because it auto-calls the top-level nixpkgs function
<tilpner>
That's more magic than I expected
m3lt has quit [Quit: leaving]
<infinisil>
So it is kinda crucial
<infinisil>
And useful (especially with auto-completion)
m3lt has joined #nixos
<tilpner>
That doesn't work here. Did you forget a '<nixpkgs>'?
<tilpner>
infinisil: If you put <nixpkgs> in there, it doesn't rely on $PWD or auto-calling c.c
<exarkun>
sorry misread that `cd nixpkgs` as for me, nevermind
<infinisil>
tilpner: Doesn't it still? Because if it wouldn't autocall nixpkgs, it should evaluate only to a function
sigmundv__ has joined #nixos
<tilpner>
exarkun: That suggests ssh is not enabled. Did you make sure the files on disk have services.openssh.enable = true;, not just your editor? Are you importing the file you wrote this in?
<tilpner>
infinisil: Hmm, you're right
<blackriversoftwa>
exarkun: did you turn on `services.openssh.startWhenNeeded`?
<exarkun>
tilpner: I saved the file, committed it to git, pushed it to my git server, pulled it to the build host, and build it there. I reckon it got used. Double-checking on the build host, I can confirm the setting is present there.
<{^_^}>
[nixpkgs] @timokau pushed commit from @r-ryantm to master « flacon: 5.1.0 -> 5.2.0 (#59493) »: https://git.io/fjY0h
<exarkun>
I do ... but, okay, I wonder if there is some other logic bug in my code that is somehow preventing this bit of config from being included
<blackriversoftwa>
sphalerite, exarkun: if some module disabled it with higher priority than his config enabling it, then the systemd service would not exist. All the systemd stuff is in a giant mkIf on the enable option in <nixpkgs/nixos/modules/services/networking/ssh/sshd.nix>
<blackriversoftwa>
exarkun: the command sphalerite gave you should tell you where it gets disabled
<tilpner>
exarkun: You can add -vvvv to most nix commands, and then search the output to check if your file was read
<sphalerite>
blackriversoftwa: in fact it seems it's not being enabled in the first place, based on the output.
<exarkun>
How does it tell me that? It just told me that it is declared and defined by /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/networking/ssh/sshd.nix
<{^_^}>
[nixpkgs] @timokau pushed commit from @r-ryantm to master « ace: 6.5.4 -> 6.5.5 (#59436) »: https://git.io/fjYEU
<blackriversoftwa>
tilpner: oh well then there goes my entire theory :)
<sphalerite>
blackriversoftwa: yes, but that's not how the default of most options is defined
<blackriversoftwa>
sphalerite: right and it does seem like it isn't getting loaded in the first place. I was just running with the fact that he said he had split his config into multiple files
<blackriversoftwa>
Thinking one of those might have a copypasta with a weird priority on that option
<exarkun>
tilpner: yea, it only has that line
<blackriversoftwa>
But I am abandoning that theory
<exarkun>
I'm reviewing the rest of my logic now, seems like it's probably my fault somehow
<galaxie>
Has anyone here used NixOS for any sort of OpenStreetMap-related servers? Like tile, routing servers, etc.
vidbina has joined #nixos
<m3lt>
damn it. 'programs.adb.enable = true;' is what makes sense. adb needs a SUID wrapper so using at user level makes little sense :/.
_kwstas has quit [Quit: _kwstas]
<sphalerite>
blackriversoftwa: even a mkDefault would override nixos/modules/services/networking/ssh/sshd.nix is what I mean though
<sphalerite>
m3lt: no it doesn't, just some udev rules :)
<sphalerite>
but yeah that's what programs.adb is for
<sphalerite>
m3lt: you can also manually give your user access to the device on a one-off basis, use lsusb to find the address then `sudo setfacl -m u:$USER:rw /dev/bus/usb/001/012` for example
<m3lt>
ah, okay.
<m3lt>
well, I got adb now in my path. that is all I hoped for :)
fusion809 has joined #nixos
rjmill has quit [Ping timeout: 264 seconds]
random_user_46 has joined #nixos
kreisys has joined #nixos
<enteee>
The environment variable ASCIINEMA_REC does not seem to be set in the recording shell when recording with asciiname rec, can somebody confirm this?
<enteee>
*asciinema
vmandela has left #nixos ["Leaving"]
alexozer has quit [Ping timeout: 246 seconds]
lielazivee has joined #nixos
kreisys has quit [Client Quit]
o1lo01ol1o has joined #nixos
tomberek has joined #nixos
<jomik>
I have this expression https://git.io/fjYEc, when I try to evaluate it I get the error also in the gist. Can someone help? It is a bunch of trace warnings and `error: nixpkgs-0.2.2 not supported for interpreter python2.7` even though I am using python3 there?
<adisbladis>
m3lt: It doesn't need suid, it does however need udev rules
<m3lt>
okay, I assumed suid, cause that is what the default template says about programs.*
<sphalerite>
jomik: if you plug in an android device, lsusb for its address, and then check the permissions on /dev/bus/usb/0??/0?? for it, what does that say?
alexozer has joined #nixos
dbmikus_ has joined #nixos
orivej has joined #nixos
<jomik>
- It does pop up on my device to ask permission btw. But that is phone related I am sure.
<sphalerite>
jomik: can't reproduce your screepsapi problem with `nix-build -E '(import <nixpkgs> {}).callPackage ./screepsapi.nix {}'`
<sphalerite>
(although it does 404 when trying to download the source)
<jomik>
:O Odd, I'll try that more tomorrow.
<sphalerite>
yeah that phone popup only comes if adb already has access to the device on the computer side
<tilpner>
So add nixpkgs.system = "aarch64-linux";
zupo has quit [Client Quit]
m3lt has quit [Quit: leaving]
mounty has joined #nixos
zupo has joined #nixos
civodul has joined #nixos
d10n-work has joined #nixos
pie_ has quit [Ping timeout: 255 seconds]
random_user_46 has quit [Quit: Page closed]
reinhardt has quit [Quit: Leaving]
logzet has joined #nixos
<exarkun>
no luck finding my ssh problem
<exarkun>
meanwhile I also have an nftables problem. nftables rules get loaded too soon, before dns is working, name resolution fails and none of the rules get loaded.
<tilpner>
exarkun: Did you do the -vvvv thing?
<exarkun>
I guess I just need to fiddle with the systemd service ordering?
<exarkun>
tilpner: I didn't. I'm not sure what command you were suggesting adding it to.
<tilpner>
It works with most of them. nix-build, nix-instantiate, and probably nixos-rebuild too
<tilpner>
Alternatively you could just strace it
<tilpner>
It would be important to know if your module is even read
sindrip has joined #nixos
<sphalerite>
nefix: idefix ♥
<exarkun>
tilpner: the same module does a lot of other stuff with really obvious side-effects, like installing various software and creating a user. those things definitely have happened.
samrose has quit [Ping timeout: 255 seconds]
samrose has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
<tilpner>
Okay
<galaxie>
Should I install NixOS using userspace permissions using nix-user-chroot or should I use PRoot if I want to isolate it from whatever user sets it up/uses it?
<emilsp>
it doesn't make any sense to put in programs.* config in /etc/nixos/configuration.nix, does it?
<delroth>
how do I bribe someone for a quick review on https://github.com/NixOS/nixpkgs/pull/59662 which is a one line change to fix an important i18n package recently broken at HEAD? :)
<{^_^}>
#59662 (by delroth, 17 hours ago, open): ibus-packages.mozc: pin to protobuf 3.6 (fixes build breakage at HEAD)
<JonReed>
Is there a way to drop into an exact environment as udev runs a rule from? I'm running a script which works under root, but doesn't work in udev. The script uses `notify-send` inside it, which needs a bunch of environment variables to be set. The script itself sets those variables correctly and udev executes it (I know because `date > /tmp/udev.log` in the beginning and the end of it), but a notification still doesn't show. So, I'm try
<JonReed>
to debug it.
<tilpner>
delroth: You nag in #nixos-dev until it gets fixed :/
<tilpner>
Here might work too, but it'll be scrolled off the screen quicker
<delroth>
haha
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @gnidorah opened pull request #59742 → nixos/light: add control options → https://git.io/fjYut
mwilsoncoding has quit [Ping timeout: 268 seconds]
dwdr has joined #nixos
ddellaco1 has joined #nixos
oida has quit [Remote host closed the connection]
<nefix>
sphalerite: my machines have all Asterix & Obelix names (in Catalan)
<sphalerite>
nice :D
<nefix>
tilpner: error: a 'aarch64-linux' with features {} is required to build '/nix/store/9j93dip0nr99xcvf86zkp1m4dijr5pyy-append-initrd-secrets.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test} I got this error when trying to deploy after adding the nixpkgs.system thing
<{^_^}>
[nixpkgs] @timokau pushed commit from @r-ryantm to master « doitlive: 4.2.1 -> 4.3.0 (#59476) »: https://git.io/fjYuZ
<tilpner>
nefix: Have you ever deployed to this device with nixops before? Or has that never worked?
<nefix>
No, it's the first time
<{^_^}>
[nixops] @AmineChikhaoui pushed to master « ec2: fix backup-status with limited devices »: https://git.io/fjYuC
<nefix>
NixOS is working fine, though
<emilsp>
is there a man page that describes what can be put in /etc/nixos/configuration.nix and ~/.config/nixpkgs/config.nix ? It seems that none of the interesting options for my zsh or tmux work in /etc/nixos/configuration.nix.
<tilpner>
You can use qemu-user to build for aarch64, but it's going to be a lot slower
<tilpner>
Or set the to-be-deployed-to device as a build machine
<tilpner>
Or try cross-compilation, but that doesn't usually work for everything
<nefix>
How can I build on the target device?
<tilpner>
Add it as a build machine
<tilpner>
nix.buildMachines
linarcx has quit [Quit: WeeChat 2.4]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tilpner>
Although I'd prefer to just instantiate on my laptop, copy the derivations over and build there directly
<tilpner>
Because with buildMachines, you first copy everything to the local machine, where it's not needed at all
<tilpner>
But I don't think nixops supports this
<nefix>
But aren't the derivations built inside the target machine using NixOps
<tilpner>
Yes
<tilpner>
(Assuming you set buildMachines correctly)
<JonReed>
eliasp: `nixos-option programs.zsh` ?
<delroth>
gchristensen: thanks for having a look :)
<gchristensen>
:)
<tilpner>
emilsp: config.nix is only for configuring nixpkgs, not for NixOS
knupfer has joined #nixos
<tilpner>
emilsp: "man configuration.nix" lists the options available for NixOS
<JonReed>
eliasp: I'm not sure what you were asking about specifically. But `nixos-option` can be used to list options for `configuration.nix` and it has autocomplete. Then, you can also use https://nixos.org/nixos/options.html
mnoronha_ has quit [Ping timeout: 255 seconds]
_kwstas has joined #nixos
fendor has joined #nixos
<tilpner>
JonReed: Your tab completion is getting the name wrong, emilsp asked the question
kleisli has joined #nixos
mnoronha_ has joined #nixos
mnoronha_ has quit [Ping timeout: 244 seconds]
wfranzini has quit [Remote host closed the connection]
<tilpner>
emilsp: What did you put where, and in what way does it not do what you expected?
<emilsp>
tilpner: programs.zsh.ohMyZsh.theme = "agnoster" for instance does not affect my user's shell at all. root doesn't even have zsh in path, this is with both zsh.enabled = true and ohMyZsh.enabled=true;
<tilpner>
emilsp: Where did you put this?
Mr_Keyser_Soze has quit [Ping timeout: 255 seconds]
<tilpner>
And enabled is usually not an option
<tilpner>
The convention is "enable"
<{^_^}>
[nixpkgs] @kmicklas opened pull request #59743 → androidndk-pkgs: Remove -mfloat flag → https://git.io/fjYux
<tilpner>
So it's programs.zsh.enable and programs.zsh.ohMyZsh.enable
<emilsp>
in /etc/nixos/configuration.nix but I am a liar - indeed it was enable = true, but nix-rebuidl would've complained :)
<emilsp>
yes, that I did have.
<tilpner>
And you did a nixos-rebuild switch, and that completed without errors or warnings?
<tilpner>
And then you logged in again and started zsh?
<emilsp>
I just zsh'ed again and had no changes.
<tilpner>
After logging out?
<emilsp>
Is a package __enabled__ if it's listed in environment.systemPackages ?
<tilpner>
No
<tilpner>
That just makes it available to all users
<tilpner>
But it doesn't setup any services
<tilpner>
Or configure anything to use this package (though things might automatically pick it up)
Ariakenom has quit [Quit: Leaving]
<emilsp>
Aha, ok. That was a misconception I had then - I had setup the config but I didn't have the "enable = true;" set for all the things consistently
IRCsum has quit [Read error: Connection reset by peer]
IRCsum has joined #nixos
dbmikus_ has quit [Ping timeout: 250 seconds]
<srhb>
God, I have no idea what kind of franken-nixpkgs my NixOps has deployed previously. I thought I'd pinned it nicely, but that's definitely not the case.
<infinisil>
Hehe
<srhb>
And now that I've _surely_ cleared the entire environment, my nixops configuration is neither compatible with 18.09, 19.03 or unstable.
<srhb>
???????????????????
<srhb>
!!FUN!!
<srhb>
fwiw the 18.09 error is the first one I mentioned above, and the 19.03/unstable is the last one
<clever>
srhb: does `nixops info` show a nixpkgs=?
<clever>
srhb: then nixops will use whatever <nixpkgs> maps to within NIX_PATH, when running nixops deploy
<srhb>
infinisil: Oh dear
<ddellaco1>
I'm trying to run nix-shell with a Haskell project that was previously working fine, but is now giving me a missing dependency error since I updated to 19.03 (I assume it's related, I haven't changed anything else recently): https://gist.github.com/ddellacosta/37b1194cfa169f5b1b06af8bd15210cd
<srhb>
clever: Yeah, it's a --pure nix shell now with NIX_PATH set.
<clever>
srhb: if you run `nixops modify -d name -I nixpkgs=URL deployment.nix`, it will pake that `-I` into your nixops state file
<clever>
srhb: and then always use that -I at every deploy
<infinisil>
ddellaco1: Shouldve pinned your nixpkgs!
<srhb>
The weird thing is that I can't seem to reproduce my _working_ setup.
<srhb>
So there's clearly been a ton of state leakage here.
<ddellaco1>
infinisil: ha, I guess so! That's what I get
<infinisil>
ddellaco1: An overlay to doJailbreak on system-fileio should do it
ddellaco1 is now known as ddellacosta
<srhb>
clever: I don't see how that helps in any way at all.
<clever>
srhb: line 16 copies whatever nixpkgs nixops is using (see above) to /run/current-system/nixpkgs on the deployed machines
<clever>
srhb: and then 12 makes NIX_PATH on those remote machines use it
<ddellacosta>
infinisil: okay, although I may start from scratch as it seems like I shouldn't have trouble with a relatively bog-standard 844 build, no?
<clever>
so then everything will remain in sync
<ddellacosta>
and this time I'll pin it...
<ddellacosta>
infinisil: thank you!
<infinisil>
ddellacosta: Well something got updated, possible chell from a previous 0.4.* version to 0.5.*
<srhb>
clever: To make it clear, this was a NixOps deployment that I thought used to rely on the local NIX_PATH, which I was fine with, but now broke, so I reset the NIX_PATH to be purely defined in the nix-shell from which I deploy.
<srhb>
clever: The machine is (probably) fine itself, I never use NIX_PATH _on_ the machine.
<infinisil>
clever: Why copy it to /run/current-system? Can just point it to the nix/store path
<clever>
infinisil: when you do an update, NIX_PATH wont refresh until you restart the shells
<infinisil>
Oh good point
mexisme_ has joined #nixos
<clever>
infinisil: and then the version depends on when you opened a shell
<ddellacosta>
infinisil: oh okay
<clever>
srhb: first, check what git rev is pointed to by current-system
<clever>
srhb: that should say what nixpkgs rev it was built from, if using a channel
oida has joined #nixos
<clever>
-system76-19.09pre174426.acbdaa569f4
<infinisil>
clever: I'd use /etc/nixpkgs though, no need to clutter the build script like that
<clever>
infinisil: yeah, that could also work
<infinisil>
(which should be equivalent to /run/current-system/etc/nixpkgs)
<srhb>
It is indeed the revision that NIX_PATH in my nixops shell is referring to
<srhb>
Clearly I must have changed something locally without comitting or something...
* srhb
shrugs
<clever>
srhb: next would be nix-diff
<srhb>
Yeah. <3n
<clever>
srhb: use nixops deploy --dry-run, to get the .drv for the build, and nix-store --query --deriver to get the .drv for a remote path
<srhb>
nix-diff :)
<srhb>
Thanks, but that won't help now, since it doesn't evaluate any longer. I'll save this for tomorrow, appreciate it though.
<parsnip>
it seems to be caused by the screenrc settings there
<johanot>
TIL - about dockerTools.shadowSetup. never mind my previous question :)
<parsnip>
if i remove the screenrc setting, the error doesn't occur
<carter>
clever: THANK YOU FOR HELPING ME
<carter>
with my frustratingly inane question
<carter>
clever: is there a way to say "all the attributes?"
bgamari has quit [Ping timeout: 240 seconds]
bgamari has joined #nixos
<clever>
carter: thats what nix-build does by default, but only if the attribute contains a derivation
<parsnip>
oh, that was an out of space error, here's the new error after cleaning up http://ix.io/1Gpf
<clever>
carter: you may want to use something like buildEnv to create a single derivation, that contains the result fo the rest
<carter>
i looked around for example of that and I got really really confused
<carter>
and multi / split out put
<carter>
and join sym link
<carter>
etc
<parsnip>
oh, still no space left
<parsnip>
maybe i should try enlarging
<clever>
carter: foo = buildEnv { name = "name"; paths = [ a b c ]; };
tomberek has joined #nixos
drakonis has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.4]
drakonis_ has quit [Ping timeout: 240 seconds]
<carter>
what would
<carter>
error: while evaluating the attribute 'passAsFile' of the derivation 'everythingEnterprise' at /nix/store/1zjkl6z5pymibk49rnmn9gknwdmc750p-nixpkgs-19.09pre174594.0c0954781e2/nixpkgs/pkgs/build-support/trivial-builders.nix:7:14:
<carter>
cannot convert a function to JSON
<carter>
mean?
<carter>
if i did a
<carter>
with import <nixpkgs> {}; let a .... b c ... in all = buildEnv { name = "everythingEnterprise"; paths = [ a b c ]; };}
<carter>
?
<carter>
{all = buildEnv { name = "everythingEnterprise"; paths = [ a b c ]; };}
strobelight has quit [Quit: gtg]
lovesegfault has joined #nixos
<clever>
carter: that would work, but then you cant build just a
<clever>
carter: i like using lib.fix instead of rec{
jasongrossman has quit [Ping timeout: 246 seconds]
<clever>
parsnip: yep, your out of inodes, `nix-collect-garbage --max-freed 1g`
<carter>
while evaluating the attribute 'passAsFile' of the derivation 'enterprise' at /nix/store/1zjkl6z5pymibk49rnmn9gknwdmc750p-nixpkgs-19.09pre174594.0c0954781e2/nixpkgs/pkgs/build-support/trivial-builders.nix:7:14: cannot convert a function to JSON
<carter>
somehow thats not wrking
<clever>
carter: your passing it a function somewhere
<clever>
carter: can you pastebin the whole nix file?
<parsnip>
still `/dev/disk/by-label/nixos 196608 194427 2181 99% /`
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjYgd
<clever>
parsnip: and what error is it failing with?
<parsnip>
>.< i pasted that above too
<clever>
*looks more*
<clever>
reading...
tboston_ has quit [Ping timeout: 245 seconds]
<clever>
parsnip: looks like it ran out of disk space in http://ix.io/1Gpf, which is unrelated to the instance type
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to release-19.03 « wire-desktop: 3.7.2891 -> 3.9.2895 »: https://git.io/fjYgx
<parsnip>
why is that unrelated?
<clever>
parsnip: disk drive size isnt connected to instance type, you can just expand the disk to whatever you want
<clever>
so you could have a machine with 128gig of ram and 2gig of disk, or a machine with 1gig of ram and 2tb of disk
<carter>
i'm not going to mention the part where theres java code in involved tha somehow breaks every current java packaging option for nix if you want repoducible builds
<clever>
carter: of note, you can set the `repeat` option in nix.conf (or --option repeat 1), and then nix will build it an extra N times
<clever>
carter: for repeat=1, that will be 2 builds total, nix will then diff the results, and fail the build if they dont match
<parsnip>
ah, these default to 3GiB
<clever>
force repoducible builds on all!
<gchristensen>
+1
sigmundv has quit [Remote host closed the connection]
jasongrossman has joined #nixos
<parsnip>
so next time it happens, i guess i'll try expanding the EBS volume
<clever>
parsnip: if you resize the EBS volume in the aws console, and reboot the machine, nixos will resize the FS automatically
<parsnip>
ah, reboot, okay
<carter>
clever: i'd rather pester mavenix person very politely and hope he can puzzl out whats missing
<parsnip>
weird that store didn't delete itself
<parsnip>
i guess i did notice the store was about 2.6 G
<carter>
just having a uniform way to get every piece of this project building with a single repo
<carter>
is a huge deal
<lovesegfault>
I'm trying to add an overlay to my home-manager config
<{^_^}>
#59291 (by cartazio, 5 days ago, open): remove -msse2 flag from haskell vector for current GHC head onwards
<clever>
lovesegfault: the default.nix in hie-nix isnt an overlay
<clever>
lovesegfault: so it wont work right when added to the overlays list
<lovesegfault>
clever: :O
<lovesegfault>
clever: I see :(
<lovesegfault>
What do I do?
<clever>
lovesegfault: you just want hie-nix.whatever, and skip adding it to overlays
<lovesegfault>
Got it
<lovesegfault>
Let me try
<clever>
lovesegfault: its also a function, so add {} after the path, import (...) {};
<lovesegfault>
clever: Got it! Trying
leotaku has joined #nixos
sigmundv__ has joined #nixos
<lovesegfault>
clever: It worked!!!
<lovesegfault>
Thanks!
<evil-olive>
upgrading some boxes from 18.09 to 19.03. first one, a VM, went without a hitch. second one, my spare laptop, is hitting an error starting up sshguard and I can't figure out why: http://ix.io/1Gpx (both boxes have services.sshguard.enable = true in their config, no other sshguard customizations...only maybe relevant difference I can think of is the laptop has a wireless interface)
o1lo01ol1o has quit [Remote host closed the connection]
dwdr has quit [Ping timeout: 245 seconds]
knupfer has quit [Ping timeout: 250 seconds]
erasmas has quit [Ping timeout: 255 seconds]
pie_ has joined #nixos
leotaku has joined #nixos
wolfman154 has joined #nixos
worldofpeace_ has quit [Quit: worldofpeace_]
sondr3 has joined #nixos
<sondr3>
anyone here got any experience using LTO with Rust in Nixpkgs? I get an error saying it expected the lto value to be a boolean when I set it to 'thin'
<sondr3>
and I haven't been able to see if mentioned anywhere in the Rust build tools, so I'm not sure where the error came from
<sevanspowell>
I'm trying to overlay a newer version of a project onto nixpkgs, but the project doesn't have a cabal file (it's generated by stack). Does nix have the ability to deal with this? Something like callCabal2Nix?
simukis__ has quit [Ping timeout: 245 seconds]
<pie_>
sevanspowell, if it doesnt exist you could probably write something yourself
<pie_>
by which i mean doing the equivalent of calling the command in your nix
<pie_>
not sure how well it would work but it should at least work as a bare minimum (probably)
* pie_
waits for someone to yield a better answer :P
lightbulbjim has joined #nixos
jluttine has joined #nixos
<sevanspowell>
pie_: yeh, that's an option :)
jboy has quit [Remote host closed the connection]
<pxc>
I'm trying to use nix-shell to debug a package I'm writing, but when I'm using nix-shell, configurePhase failes even though when I use nix-build, the configurePhase runs just fine. What's happening?
<pie_>
mwilsoncoding, honest question, why should it be any different for a raspi as opposed to anythng else?
<clever>
pxc: did you redefine configurePhase?
<pxc>
yeah
<clever>
pxc: `configurePhase` in nix-shell runs the bash function, not the new definition
<clever>
pxc: you need to eval $configurePhase (the env variable)
<clever>
pxc: or `phases=configurePhase genericBuild` which handles that detection logic for you
<pxc>
oooh, thanks! I was wondering how to get the path to that file :-)
<pie_>
clever, isnt the uhh...somethingorother way runHook?
<pie_>
i need to remember to loo kwhat that actually does at some point
<pxc>
oh nvm, it's eval not source; the value of the variable is the content of the script
jboy has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar opened pull request #59746 → gtranslator: init at 3.32.0 → https://git.io/fjYaI
<gchristensen>
lol clever
<gchristensen>
I accidentally deployed my laptop's config to the remote server
pie_ has quit [Ping timeout: 258 seconds]
<clever>
gchristensen: oops!
Ralith_ has quit [Ping timeout: 246 seconds]
thc202 has quit [Remote host closed the connection]
jluttine has quit [Ping timeout: 246 seconds]
silver_ has joined #nixos
silver has quit [Ping timeout: 246 seconds]
<gchristensen>
woot it worked
o1lo01ol1o has joined #nixos
sheeldotme has joined #nixos
mbrgm_ has joined #nixos
jluttine has joined #nixos
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm_ is now known as mbrgm
<sheeldotme>
Hi! I'm looking to build my packages via nix. Is there a best practice for caching intermediate files between builds?
lightbulbjim has quit [Remote host closed the connection]