<worldofpeace>
nh2: yeah I'm seeing libimobiledevices's .pc file has `Requries: libplist` so it should be propagated. though unfortunely we're propagating things in `Requires.private` also.
<nh2>
worldofpeace: Regarding versions: I believe I did that. My PR has `idevicerestore-2019-02-14`, `libimobiledevice-2019-04-04`, `libirecovery-2019-01-28`, which at the time I made the PR, were the 3 latest respective versions.
lyvi has quit [Quit: Leaving...]
<spacekookie>
I have a Makefile here that's complaining at not being able to find "/usr/include/stdio.h". What package should I get this from? It seems to be shipped with a bunch
<nh2>
worldofpeace: (In the PR I actually wrote `libirecovery-2018-01-28`, 2018 instead of 2019, that is a typo I will fix now)
gyroninja_ has quit [Read error: Connection reset by peer]
gyroninja__ has joined #nixos
<worldofpeace>
nh2: sounds correct. I'm noticing that `libirecovery` propagates `libusb` and `readline` but they're `Requires.private`
<worldofpeace>
wait readline isn't in the .pc
growpotkin has joined #nixos
<nh2>
worldofpeace: that means these two should just be `buildInputs`, right?
drakonis1 has joined #nixos
<worldofpeace>
nh2: yes, I just tested locally and it went fine ๐๏ธ
<nh2>
worldofpeace: me too
Neo---- has quit [Read error: Connection reset by peer]
sudoforge has quit [Ping timeout: 264 seconds]
<nh2>
worldofpeace: pushed, shall we merge?
Neo---- has joined #nixos
<vaibhavsagar>
silly question about `buildLayeredImage`, is the number of layers still limited to 24? I saw someone using 96 as a value, would that work too?
<worldofpeace>
nh2: Triggered the build just to be sure. Once the checks pass I'm pretty sure we're good to merge.
<gchristensen>
nh2: probably a upgrade to the node exporter ... thanks
<gchristensen>
todo listed
<nh2>
worldofpeace: darwin doesn't support iDevices, makes total sense :P
jtojnar has quit [Read error: Connection reset by peer]
dsiypl4 has quit [Ping timeout: 248 seconds]
jtojnar has joined #nixos
acarrico has quit [Quit: Leaving.]
<worldofpeace>
nh2: at least not when it's cross platform :D
<drakonis1>
alas, i have found a problem
<drakonis1>
lxd is broken
<drakonis1>
it appears that it is missing some apparmor configs
<drakonis1>
rather. apparmor is broken
<nh2>
can anybody confirm for me that it's as intended that `.override (old: {})` for a normal package has only packages in `old`, and boolean options like `enableX ? false` should be missing when they are defaulted with `?`?
<kreisys>
hello, I was wondering, is it actually impossible to filter fetched sources? i.e., if I want to filter out README.md to avoid unnecessary recompilation when source code hasn't actually changed.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj5l9
<simpson>
kreisys: It's possible and there are helpers like `builtins.filterSource`.
<kreisys>
builtins.filterSource and its siblings lib.cleanSource/With don't work on store paths.
<kreisys>
(a store path is what you end up with when you fetchgit/builtins.fetchGit)
___laika has quit [Ping timeout: 245 seconds]
<simpson>
Interesting. I don't know whether there are helpers for it, but it's possible to build a new store path from an old store path, using a custom builder.
<gchristensen>
it won't be content addressed so it won't resolve the problem of reducing builds
<kreisys>
โ๏ธ what he said
<simpson>
Devil's advocate: You could make it fixed-output~
<kreisys>
I think I solved it once by nuking the context with some undocumented premop
<kreisys>
but I don't think hydra's gonna like it.
<nh2>
alienpirate5: first off, looks like `import <nixpkgs/lib> {}` is illegal, you probably mean `(import <nixpxkgs> {}).lib`
<kreisys>
it's... bizarre that a functional programming language wouldn't be all over reproducibility
<simpson>
kreisys: Why? "functional" isn't a high bar to clear, and doesn't imply reproducibility.
<kreisys>
simpson: I'm just assuming "functional" comes with a certain mindset *shrug*
<kreisys>
but scala is actually multi-paradigm
<nh2>
alienpirate5: the second bug is what you give after `++` isn't a list, it's a single derivation. You need to wrap it in a list as you did on the line before
m0rphism has quit [Ping timeout: 248 seconds]
Guanin has quit [Remote host closed the connection]
<kreisys>
is yarn2nix the goto now for nodejs packages?
<simpson>
kreisys: Sure; it's the mindset common to Haskell, Scala, Python, Scheme, and surprisingly ANS FORTH, but *not* C.
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<vika_nezrimaya>
questions about packaging programs: here or in #nixos-dev?
<teozkr>
kreisys: ime it's usually both faster and more reliable than node2nix
<nh2>
kreisys: finally, there doesn't seem to be a python `libevdev` package that you refer to
<nh2>
sorry, wrong person
drakonis_ has joined #nixos
<nh2>
alienpirate5: finally, there doesn't seem to be a python `libevdev` package that you refer to
<teozkr>
(since it reuses most metadata from yarn rather than generating it itself)
<simpson>
vika_nezrimaya: Here, almost always.
<vika_nezrimaya>
ok then
<vika_nezrimaya>
trying to package a Redis module. Where to place it in the $out?
<vika_nezrimaya>
ReJSON if someone's interested
<simpson>
#nixos-dev is for NixOS development itself; you probably don't want to take packaging questions there.
<vika_nezrimaya>
A distribution is not much without packages though, that was my logic :3
<nh2>
simpson: what is "NixOS development itself"? modules, or something else?
<vika_nezrimaya>
Well, modules are what makes NixOS NixOS, so I suppose so
<simpson>
nh2: Operational stuff, largely. Planning for lots of rebuilds. Feel free to idle in there; I know I do.
drakonis has quit [Ping timeout: 250 seconds]
<simpson>
vika_nezrimaya: Redis docs https://redis.io/topics/modules-intro suggest that the path on the filesystem doesn't really matter. $out/lib/ is probably fine if there's not a better traditional location.
<nh2>
vika_nezrimaya: I know nothing about Redis modules but from https://redis.io/topics/modules-intro it looks like they are just .so ... what simpson said
<vika_nezrimaya>
Then I'll just place them in $out/lib/redis since they aren't much of a general purpose library
<nh2>
yes
<vika_nezrimaya>
And boom! it works :3
<nh2>
well that was quick
dl4mfo has joined #nixos
<vika_nezrimaya>
ReJSON is very simple to package, containing only a single makefile. Thanks to default builder that always tries to do the right thing, I only had to write a custom install phase since the Makefile doesn't provide one.
<vika_nezrimaya>
#NixIsAwesome
dl4mfo_ has quit [Ping timeout: 245 seconds]
stepcut has quit [Remote host closed the connection]
<nh2>
samueldr joepie91 clever: Remember my multi-week effort with the Chromebook, plopkexec and kernel regressions? The kernel EFI maintainer has just posted a patch that makes the latest kernel boot again: https://bugzilla.kernel.org/show_bug.cgi?id=203463#c8
<samueldr>
๐
liberiga has joined #nixos
<nh2>
gchristensen: what to do when a builder says `building of '/...-gcc-7.4.0.drv' timed out after 3600 seconds`?
<{^_^}>
#61471 (by nh2, 13 weeks ago, open): Issue 61250 coreutils disable test on musl
<samueldr>
literally "it took too long to built the whole thing"
<samueldr>
ofborg has a total timeout, not a per-derivation timeout like hydra
<nh2>
samueldr: ah, so I can just restart cause it'll have more cached next time?
<samueldr>
mayybe
<samueldr>
depends on whether gcc was about or more than one hour
<samueldr>
(where it was at when it failed)
<nh2>
samueldr: it built a lot of stuff before
<samueldr>
right
<samueldr>
pkgs$NotUsual will often not be cached at all, so I'm not suprised for pkgsMus
<samueldr>
pkgsMusl*
bbarker_home has joined #nixos
<bbarker_home>
Is there a way to have a temporary environment create with nix-shell based on the output of a nix-build command? As compared to `nix-build -A libfoo && nix-env -f . -iA libfoo`, which installs the package into one's profile?
<vaibhavsagar>
bbarker_home: you can do `nix-shell -E 'with import <nixpkgs> {}; pkgs.mkShell { buildInputs = [ (pkgs.callPackage libfoo/default.nix {}) ]; }'
<bbarker_home>
thanks vaibhavsagar, but with both of those I get: error: attempt to call something which is not a function but a set, at /nix/store/qyr7h072vjyr1yw8bnliihx85fpvbisx-nixpkgs-18.09.2327.37694c8cc0e/nixpkgs/lib/customisation.nix:69:12
mix has quit [Read error: Connection reset by peer]
<bbarker_home>
hmm, maybe it is an issue with the package
lambda-11235 is now known as de1ebcca-bd71-11
<vaibhavsagar>
bbarker_home: adjust to taste, I think something might be up with my `callPackage`
<vaibhavsagar>
e.g. `nix-shell -E 'with import <nixpkgs> {}; pkgs.mkShell { buildInputs = [ pkgs.python3 ]; }'` works for me
<kaliumxyz>
ah, the unspecified type was throwing me off on that one
<kaliumxyz>
Thanks.
<nh2>
kaliumxyz: but most of the time, it's better to just give absolute file paths directly, such as `ExecStart = ''${pkgs.nginx}/bin/nginx -c ${derivationThatsYourConfigFile}''`
andi- has joined #nixos
<kaliumxyz>
I'm running a script and felt like there was a better solution then giving dependencies as arguements.
<kaliumxyz>
*the systemd service is running a script
<kaliumxyz>
Thanks for the help c:
drakonis has quit [Quit: WeeChat 2.5]
mix has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 250 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
monotux has quit [Quit: WeeChat 2.4]
monotux has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
___laika has quit [Quit: WeeChat 2.4]
___laika has joined #nixos
domogled has joined #nixos
<{^_^}>
[nixpkgs] @delroth opened pull request #66548 โ efivar: patch build system for reproducibility โ https://git.io/fj54Y
jgt has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
de1ebcca-bd71-11 is now known as lambda
ddellacosta has quit [Ping timeout: 246 seconds]
mexisme has quit [Ping timeout: 272 seconds]
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
nexgen has joined #nixos
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
Rusty1 has joined #nixos
<nh2>
kaliumxyz: it may be better if the script itself be wrapped to have PATH set accordingly (e.g. using `makeWrapper`, https://nixos.org/nixpkgs/manual/#ssec-stdenv-functions), so that it also works when not run via systemd
Eridius has joined #nixos
Neo---- has quit [Remote host closed the connection]
Neo--- has quit [Remote host closed the connection]
rauno has joined #nixos
Neo--- has joined #nixos
endformationage has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
rauno has quit [Ping timeout: 250 seconds]
fusion809 has quit [Remote host closed the connection]
dasj19 has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
cybrian has quit [Quit: cya]
palo1 has joined #nixos
cybrian has joined #nixos
palo has quit [Ping timeout: 248 seconds]
palo1 is now known as palo
Neo--- has quit [Read error: Connection reset by peer]
Neo--- has joined #nixos
elibrokeit is now known as anyone
Ariakenom has quit [Quit: Leaving]
anyone is now known as Guest63806
Guest63806 is now known as guys
Neo--- has quit [Read error: Connection reset by peer]
Neo--- has joined #nixos
abbiya has joined #nixos
hyper_ch2 has joined #nixos
jgt has joined #nixos
Neo--- has quit [Remote host closed the connection]
Neo--- has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
Ariakenom has joined #nixos
M-Gregoire49 has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @nrdxp opened pull request #66553 โ vimPlugins.delimitMate: init at 2017-06-18 โ https://git.io/fj5Rk
Neo--- has quit [Remote host closed the connection]
Neo--- has joined #nixos
M-Gregoire49 has joined #nixos
___laika has quit [Ping timeout: 248 seconds]
<jonge[m]>
hi there. can i print the nix dependency tree of my current config? i would like to find out why nixos-rebuild leads to downloading X and gcc, although this is not what i selected.
Neo---- has joined #nixos
jgt has joined #nixos
jgt has left #nixos [#nixos]
Mister_Magister has quit [Max SendQ exceeded]
Neo--- has quit [Ping timeout: 252 seconds]
Mister_Magister has joined #nixos
rauno has joined #nixos
<{^_^}>
[nixpkgs] @mmahut merged pull request #62936 โ nixos/memcached: Isolate the service โ https://git.io/fjgI7
<jonge[m]>
ok i did a `nix-store -q --tree` on the nixos config drv from `nix-instantiate <nixpkgs/nixos>`. now i see that bash-4.4 depends on X11 and gcc... is there a way to remove that or use dash or busybox or something? i did not find that quickly in the nixos module config search
<tilpner>
jonge[m]: If you do nix-build --no-out-link "<nixpkgs>" -A bash, does it already have bash locally, download it from a cache, or build it?
<tilpner>
jonge[m]: Only the last should require local presence of gcc, the other two cases should only require glibc
c_wraith has quit [Ping timeout: 264 seconds]
Zer0xp has joined #nixos
<tilpner>
jonge[m]: Possible causes: you're on a weird nixpkgs revision with no caches (yet, or ever), your binary caches are un-/misconfigured
<tilpner>
jonge[m]: You can use "nix why-depends" (on the built system generation, after building your config), to tell if gcc is actually in your runtime closure, and why
<jonge[m]>
tilpner: i have bash installed already of course. my context is that i am trying to upgrade nixos on my raspberry pi with a 4GB card. the nixos config is reduced very much and it still starts to download a lot if X11 related packages... i don't think it should compile
<jonge[m]>
i don't think it should compile anything from source when i look at this mini config
<tilpner>
Which Pi?
<jonge[m]>
using the normal nixos 19.03 channel
<tilpner>
Non-x86_64 cache coverage may be much smaller, and may not even block the channel for all I know
c_wraith has joined #nixos
<jonge[m]>
i think it's an rpi 3
<DigitalKiwi>
4GB is probably not going to cut it
<tilpner>
jonge[m]: About X11: You can remove X11 from some parts of your config with environment.noXlibs, but that overlays a custom dbus, which will cause everything that depends on dbus to be rebuilt
<tilpner>
If you usually have cache coverage, it's probably not worth disabling that
ee1943 has quit [Ping timeout: 272 seconds]
<tilpner>
It doesn't cost anything extra if you already have to build everything yourself though
Jackneill has joined #nixos
___laika has joined #nixos
<jonge[m]>
tilpner: ok, i did not do that so far.
<tilpner>
It might help you cut off the X11 dependency tree (or it might not, if you pull it in another way), but it's likely to increase the amount of things you have to build locally
Neo--- has joined #nixos
<jonge[m]>
tilpner: i would have thought that i can avoid building anything myself on a small raspberry that should just serve a little python script
Neo---- has quit [Ping timeout: 252 seconds]
hyper_ch2 has quit [Remote host closed the connection]
<jonge[m]>
wow for some reason it is still going to download stuff like xscreensaver...
<jonge[m]>
i guess i will download a fresh nixos image, iron it over the memory card and see if that still happens...
<tilpner>
That is unlikely to help
<tilpner>
Maybe #nixos-aarch64 can tell you how aarch64 cache coverage is, compared to x86_64
<jonge[m]>
tilpner: so currently i am in that situation: the image that this system is running is highly customized. it only contains my ssh pubkey so i can login, SSH, nginx with a little python script atttached to it and not much more. this works and fits very very well on such a small memcard. but then if i try to update the system by itself, it blows up.
dansho has quit [Ping timeout: 245 seconds]
hyper_ch2 has joined #nixos
lsix has joined #nixos
<tilpner>
"Blows up", are you referring to the total space usage, or a sudden inclusion of xlibs which were not needed before (did you verify this?)
<Yaniel>
but the fact that there is a place for it to begin with is a disaster
<Yaniel>
oh yeah and you probably want your cable to support displayport too (IIRC?)
<Yaniel>
or is that handled by thunderbolt
<pie__>
i also saw things suggesting thunderbolt is kind of horrible designwise but i dunno
<pie__>
its what we got i guess
<hyper_ch2>
no idea... it's all so confusing with thunderbolt, displayport, displaylink, usb-c gen xxxxxx, .....
<Yaniel>
there were some hilarious security issues with early macbooks that had thunderbolt at least
<pie__>
its not like you can just hope something better comes along because you have to have hardware supporting the stuff...and i think its all super propreitary and junk?
<Zer0xp>
Can anyone here check why the postman package cannot be installed on NixOS 19.03 ?
<Zer0xp>
It seems to work on NixOS unstable but not on the stable version.
<niso>
Zer0xp: downloading postman-6.7.3.tar.gz returns a 404
<niso>
Zer0xp: the current version seems to be 7.5.0
<pie__>
do we know anything about pkgsMusl.perl being broken?
<pie__>
friend was curious to try it and its not working apparently
<pie__>
its not downloading from the cache for me so i guess the hydra build also failed
<li_matrix>
redoing everything with flakes and nixpkgs is giving me bugs I wasnt hitting before, all concerning overrides
<li_matrix>
feels like virgin jungle blazing, something unexpected
sigmundv_ has joined #nixos
<pie__>
sounds like it might be a good idea to give a bit of an experience report
<niso>
by chance someone is aware of a minimal example of a list or attributeset of submodules?
* niso
can't get it to run
justanotheruser has quit [Ping timeout: 258 seconds]
___laika has joined #nixos
<Zer0xp>
niso: How do I get the current version ?
kleisli_ has quit [Ping timeout: 245 seconds]
<niso>
Zer0xp: by creating an overlay of the package with the desired version
<Yaniel>
if upstream has gone MIA it might be worth updating the version in stable...
sigmundv_ has quit [Ping timeout: 246 seconds]
sudoforge has quit [Ping timeout: 252 seconds]
___laika has quit [Ping timeout: 272 seconds]
sudoforge has joined #nixos
<Zer0xp>
niso: How would I go about doing that ?
kleisli_ has joined #nixos
justanotheruser has joined #nixos
amf has joined #nixos
<amf>
I wanted to play with a pre-compiled binary (bsnes in this case), but as expected it has a bunch of missing shared objects (e.g. "libGL.so.1 => not found"), and bsnes doesn't exist in the packages (yet, due to some project shuffling with higan). Is there an easy work around?
<tilpner>
amf: Try steam-run
sigmundv_ has joined #nixos
<tilpner>
$(nix-build --no-out-link "<nixpkgs>" -A steam-run)/bin/steam-run path/to/bsnes
<tilpner>
(May need to enable unfree)
Neo---- has quit [Remote host closed the connection]
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
<amf>
close! `$(nix-build --no-out-link "<nixpkgs>" -A steam-run)/bin/steam-run ldd ./bsnes|grep "not found" | wc -l` => 4. Is my assumption that the proper way to do this would be to have it's own build file?
ThatDocsLady has quit [Read error: Connection reset by peer]
<arianvp>
for some reason nixos mounts /run/keys under gid=0 eventhough it sets guid=96 (gids.keys)
<arianvp>
I would expect /run/keys to be owned by the keys group on my machines, but it isn't. so now my services cannot access secrets anymore
fendor has joined #nixos
Neo---- has quit [Ping timeout: 252 seconds]
cyphase has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @Ma27 opened pull request #66561 โ nixos/doc: document that services defined with `systemd.users` aren't restarted by nixos-rebuild โ https://git.io/fj5gX
<arianvp>
but even then, why does it mount as gid=0 ? shouldn't it mount as gid=96 regardless if there is a group attached to 96 ?
nexgen has quit [Ping timeout: 268 seconds]
<arianvp>
seems like that chown root:keys /run/keys is a hack upon a hack
<gchristensen>
probably not, because what if group 96 is public-ftp-group
<arianvp>
as /run/keys should already be mounted as 96
<gchristensen>
nixops doesn't care about /run/keys being a mount point
<arianvp>
yes but NixOS always mounts /run/keys as a mountpoint (with the wrong group, eventhough it specifies gid=96)
<gchristensen>
/run/keys is configurable
<arianvp>
on the nixops side. yes. but it's hardcoded on NixOS
<gchristensen>
right
___laika has quit [Ping timeout: 248 seconds]
Neo--- has quit [Ping timeout: 252 seconds]
<arianvp>
every NixOS installation has /run/keys mounted. Now Im just trying to figure out why it isn't mounted the way it says in the mount call it generates
<gchristensen>
ah!
<gchristensen>
I apologize, I misunderstood
<arianvp>
so NixOS generates a config.earlyMountScript based on specialFileSystems
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
mexisme has quit [Ping timeout: 264 seconds]
eyJhb has quit [Quit: Bye]
eyJhb has joined #nixos
vika_nezrimaya has joined #nixos
<arianvp>
Ok I think I figured it out =) ramfs doesn't do anything with the gid= option as per definition ramfs doesn't have files in it before you mount
<arianvp>
so the chmod part needs to happen, and we can probably drop the gid=96 part in the mount options
hyper_ch2 has quit [Remote host closed the connection]
<AWizzArd>
Does NixOs ship per default with virtualization software? I was reading the section โSafe to test changesโ: https://nixos.org/nixos/about.html
___laika has joined #nixos
<ToxicFrog>
AWizzArd: depends on what you mean by "per default"? The VM software (like everything else) isn't installed until you actually need it.
<AWizzArd>
ToxicFrog: Is there โtheโ VM software? One that typically gets added to NixOS if people want to run such tests?
<ToxicFrog>
`man nixos-rebuild` has the details; it looks like it uses qemu and recommends, but does not require, the kvm kernel module.
<adisbladis>
AWizzArd: In the case of `nixos-rebuild build-vm` the resulting closure will contain qemu
<adisbladis>
`./result/bin/run-*-vm` will run that VM
drakonis has joined #nixos
Neo--- has quit [Remote host closed the connection]
Neo---- has joined #nixos
<ToxicFrog>
(qemu is not the only VM packaged for nixos, but it is the one used by build-vm)
<adisbladis>
ToxicFrog: KVM is almost required though, it's unbearably slow without it.
<AWizzArd>
Is there a big difference in using Docker vs. NixOS+VM? Only that constructing the environment in which I want to run software is deterministic with Nix.
<adisbladis>
AWizzArd: A big difference in what regard?
<adisbladis>
You can't use NixOS modules in Docker (technically not 100% true but it would require significant work)
<adisbladis>
Which can do some interesting things not possible with the standard one
<niso>
adisbladis: shared volumes (or the possiblity to mount a folder on the host (self contained))
atriq has joined #nixos
<niso>
adisbladis: and the required root kinda bothered me (but the volumes made me use arion instead)
<niso>
adisbladis: is your reimplementation public?
<adisbladis>
Right, different use cases :)
<adisbladis>
niso: Nope, it's in a private repo
Taneb has quit [Read error: Connection reset by peer]
jophish has quit [Ping timeout: 250 seconds]
<adisbladis>
It's coupled with some other code
<exarkun>
nixos-containers lack the ability to mount host volumes?
<niso>
adisbladis: my usecase was a self-contained environment for web-development
___laika has quit [Ping timeout: 245 seconds]
jophish has joined #nixos
<adisbladis>
niso: Then arion looks like a much better fit :)
<adisbladis>
My use case was running multiple nix-daemons on the same machine
<adisbladis>
Which is counter to assumptions made in nixos-containers :)
<adisbladis>
exarkun: No, you can bind-mount things from the host
___laika has joined #nixos
<adisbladis>
exarkun: The keyword was "self-contained"
<exarkun>
What does that mean in this context?
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
<niso>
exarkun: that i can put the containers declaration in the projects root dir, and everyone can just run the container (and the projcets dir gets auto-mounted)
<niso>
exarkun: usecase: you are working with a development server which re-builds the sourcecode automatically + you supply a development database with your project
<exarkun>
It /seems/ like nixos-containers can do that. Point the hostPath at the path to the development database in your project?
bakakuna has quit [Ping timeout: 246 seconds]
<adisbladis>
systemd-nspawn (which nixos containers are built on) still requires CAP_SYS_ADMIN though
<exarkun>
ok
<exarkun>
that I can understand
<niso>
exarkun: i think i tried it with hostPath and failed
<adisbladis>
exarkun: If that wasn't the case it would be trivial to implement something like a docker-compose style setup for unprivileged development environments
<niso>
exarkun: i tried pretty much everything for a couple of days (however i'm a nix newbie, so there's that) :P
<exarkun>
adisbladis: I didn't immediately consider privilege as it relates to "self-contained"
Neo---- has quit [Remote host closed the connection]
<adisbladis>
Actually you can sort of abuse systemd's user units for "containers" already
<adisbladis>
I played with that a bit :)
Neo---- has joined #nixos
<adisbladis>
Or use `bwrap` to implement something incredibly light weight
<adisbladis>
Hmmmmmmm
<adisbladis>
That would be cool
<niso>
i think i read somewhere that the privilige stuff could be fixed (since it's suppored by systemd now)
<adisbladis>
niso: Maybe? Last I looked was well over a year ago
<adisbladis>
That would be awesome
<adisbladis>
I love systemd-nspawn
<gchristensen>
so good!
Neo--- has joined #nixos
<niso>
gchristensen: what's good?
<gchristensen>
systemd-nspawn
<niso>
ah yep :)
<gchristensen>
I really like that systemd makes it easy to do pretty advanced stuff
<niso>
how does nix differentiate between a set of options and a set? (or maybe a better question: how does it check if an option exists?)
<adisbladis>
The stub init blew my mind when I noticed it :)
<arianvp>
I sometimes find our nixos-container abstraction abstracts a bit too much of the beautfy of nspawn, and I use it directly instead =)
<arianvp>
networking currently doesn't work yet as we're not installing all the appropriate systemd-networkd units
<adisbladis>
gchristensen: Because I was thinking the other day about the nixos declarative docker container stuff, and I don't like that it's using the docker daemon
<exarkun>
niso: did you forget a mkOption at the top?
<adisbladis>
It's very counter-intuitive imo
<adisbladis>
That I can't apply regular service limits & things to those services
<arianvp>
adisbladis: from v243 systemd-nspawn will support starting docker containers =)
<arianvp>
(very experimental new feature)
<gchristensen>
adisbladis: yeah, docker really doesn't want to be managed. docker wants to be init
<adisbladis>
arianvp: podman is supposedly a drop-in replacement (without the daemon)
<AWizzArd>
adisbladis: I donโt know Nix/NixOS yet, just starting. But it seems to me that there is /some/ overlap of functionality between those two systems.
orivej has quit [Quit: No Ping reply in 180 seconds.]
<adisbladis>
AWizzArd: Right, maybe a tiny bit.
<niso>
well imo not just a tiny bit
<adisbladis>
There are whole parts of Docker I would never use (if given the choice)
orivej has joined #nixos
<adisbladis>
Like `docker build`
cransom has joined #nixos
<niso>
adisbladis: means you would use docker images without building them?
<AWizzArd>
adisbladis: You could use the Nix system and create a directory tree, filled with files, and have a one-liner to put this into a docker image. You could use Nix to create docker images.
<niso>
ivegotasthma: i think they want you to separate the test parts from the runtime parts
polman has quit [Ping timeout: 245 seconds]
* niso
isn't sure how nixpkgs handles tests
___laika has quit [Ping timeout: 244 seconds]
turion has joined #nixos
mexisme has quit [Ping timeout: 250 seconds]
stites has joined #nixos
<arianvp>
speaking of docker, would it be possible to set up a "nix-shell" inside a dockerTools.buildImage ?
<arianvp>
We set up build environments with docker at work, and would like to hand some of my collegues nix-shell envs without forcing them to install nix
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fj5r4
oida has quit [Remote host closed the connection]
<exarkun>
if I supply my own shellHook that emits a bunch of noise, I never see the noise :/ so no shellHook for a derivation that's an input to another derivation?
oida has joined #nixos
justanotheruser has quit [Ping timeout: 245 seconds]
zupo has joined #nixos
<infinisil>
aanderse: Probably just somebody pressing the merge button :)
<infinisil>
Feel free to merge, I'm having some weird internet issues anyways that I can't even load the PR right now
___laika has quit [Ping timeout: 245 seconds]
<aanderse>
<3 infinisil
<{^_^}>
infinisil's karma got increased to 119
dsiypl4 has joined #nixos
<{^_^}>
[nixpkgs] @aanderse merged pull request #65728 โ lib/types: Add oneOf, extension of either to a list of types โ https://git.io/fj9Wo
Neo--- has quit [Read error: Connection reset by peer]
Neo--- has joined #nixos
<ornx>
how do i use nix-build to build a package from nixpkgs? when i do nix-build nixpkgs/path/to/default.nix it complains about error: cannot auto-call a function that has an argument without a default value ('lib')
<ornx>
oh wait nevermind, now i see
<{^_^}>
[hydra] @edolstra pushed to notifications ยซ Avoid fetching Projects/Jobsets just to get the name column ยป: https://git.io/fj5rV
<infinisil>
ornx: You'll want to go to the nixpkgs root and use nix-build -A <attribute>
Neo--- has quit [Remote host closed the connection]
Neo--- has joined #nixos
Ariakenom has quit [Quit: Leaving]
noterossa has joined #nixos
drakonis has joined #nixos
<noterossa>
hey there - I'm building a package but I get "ModuleNotFoundError: No module named 'requests'"
<noterossa>
even if I do have propagatedBuildInputs = with pythonPackages; [ requests ];
<noterossa>
any idea why?
<noterossa>
it's not a python pp, just ships a python script, so I had to add python3 already, it now executes but complain about that module hrm
vesper11 has quit [Read error: Connection reset by peer]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
<noterossa>
simpson: yeah this is not going to be a python app
<noterossa>
so I need to use that as propagatedBuildInputs?
<simpson>
noterossa: Nonetheless this is where the `withPackages` helper is documented.
vesper11 has joined #nixos
<simpson>
You'll need to set up a custom Python like this, and then call the Python script with the custom Python. propagatedBuildInputs would indeed be required if there's no neater way, say by rewriting the shebang.
<ornx>
how do i reference files in the store relative to a particular package? eg is there something like "${pkgs.mypkg.storepath}/path/to/file" i can use?
<judson_>
I'm getting an error during nixos-install: grub-install: warning: File system "fat" doesn't support embedding.
casaca has joined #nixos
CcxWrk has joined #nixos
<lordcirth>
judson_, BIOS or EFI? What's your partitioning like?
<judson_>
EFI, partitioned as the nixos guide suggests.
<judson_>
i.e. sda3 is a 512M fat32 partition marked with 'boot' almost at the top of the drive
<enteee>
adisbladis: We discussed a few days ago how to handle non-pure-python dependencies, I think it's a bug that caused my approach to fail. It used to work with 19.03. More information: https://github.com/NixOS/nixpkgs/issues/66366
<{^_^}>
#66366 (by Enteee, 4 days ago, open): Python virtualenv not working because of sys.prefix mismatch
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj5il
lordcirth has left #nixos ["Leaving"]
___laika has quit [Quit: WeeChat 2.4]
___laika has joined #nixos
is_null has joined #nixos
worldofpeace_ has quit [Ping timeout: 245 seconds]
ThatDocsLady_ has quit [Quit: Leaving]
casaca has quit [Ping timeout: 268 seconds]
casaca has joined #nixos
worldofpeace_ has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<DigitalKiwi>
is there a way to make the builders-use-substitutes more...eager to use substitutes instead of uploading?
<gchristensen>
are you using ssh:// or ssh-ng://?
markus1189 has quit [Ping timeout: 272 seconds]
<zmlww>
Is there an easy way to find which nixpkg library provides a certain .so file?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fj5ix
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #66425 โ environment.profiles: fix order of profiles and PATH โ https://git.io/fj7Vq
<DigitalKiwi>
ssh://
<clever>
zmlww: which .so file?
<gchristensen>
DigitalKiwi: hrm. then I expected it to do exactly that
<DigitalKiwi>
it's uploadng ghc :<
<zmlww>
clever: libstdc++.so.6, which by searching the repo I've figured out that stdenv.cc.cc.lib provides. But I don't even see where stdenv.cc.cc.lib is defined, so I'm a bit confused.
<DigitalKiwi>
(i think)
<clever>
zmlww: stdenv.cc.cc is the unwrapped gcc, and .lib is the $lib from gcc
<clever>
,locate libstdc++.so.6
<{^_^}>
Found in packages: robo3t, gcc-unwrapped.lib
<DigitalKiwi>
hrm, maybe nixos-19.03 vs nixos-unstable intermixing problems
<DigitalKiwi>
idk
eyJhb has quit [Quit: Bye]
<zmlww>
clever: Can you point me to the nix expression where stdenv.cc.cc is defined? I'm still a bit confused by that. Also, is whatever the bot is doing with 'locate' available to me outside of IRC?
<gchristensen>
yeah, via the command nix-locate in the nix-index package
eyJhb has joined #nixos
is_null has quit [Ping timeout: 245 seconds]
casaca has quit [Ping timeout: 248 seconds]
<zmlww>
Thanks, that's really helpful.
is_null has joined #nixos
casaca has joined #nixos
eyJhb has quit [Remote host closed the connection]
waleee-cl has quit [Quit: Connection closed for inactivity]
eyJhb has joined #nixos
is_null has quit [Ping timeout: 258 seconds]
is_null has joined #nixos
bakakuna has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit merged pull request #66536 โ vimPlugins: turn filetype and syntax before sourcing the plugins โ https://git.io/fj5nf
<{^_^}>
[nixpkgs] @kalbasit pushed to master ยซ vimPlugins: turn filetype and syntax before sourcing the plugins (#66536) ยป: https://git.io/fj5Ps
waleee-cl has joined #nixos
casaca has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
casaca has joined #nixos
<Shyim[m]>
Hey guys, i have to use a crap software to connect to vpn. When i execute it i get the message
<Shyim[m]>
Failed to execute process './netExtender'. Reason:
<Shyim[m]>
The file './netExtender' does not exist or could not be executed.
<Shyim[m]>
someone an idea how to solve this ๐
o1lo01ol1o has joined #nixos
is_null has quit [Ping timeout: 248 seconds]
is_null has joined #nixos
turion has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
casaca has quit [Ping timeout: 268 seconds]
casaca has joined #nixos
o1lo01ol1o has joined #nixos
zeta_0 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<vika_nezrimaya>
Right now my NixOS system turned into a... weird thing.
<vika_nezrimaya>
It built natively a certain nix expression instead of cross-compiling when I wanted to cross-compile
<vika_nezrimaya>
and now when I want a native build it either cross compiles or just... bails out with a weird error
o1lo01ol1o has joined #nixos
is_null has quit [Ping timeout: 244 seconds]
<worldofpeace>
Shyim: It sounds like you're using an unpatched binary
<ozychhi>
Hey guys, when trying to install nixos on RHEL, I'm getting this error .../bin/nix-store: error while loading shared libraries: libnghttp2.so.14: cannot open shared object file: No such file or directory
<nh2>
dtz: are you around currently? I've got some musl troubles
is_null has joined #nixos
<alienpirate5>
so I know that `nix run` replaces `nix-shell -p`, but is there a replacement for `nix-shell` (getting into a shell with all the deps of a package)?
<ozychhi>
vika_nezrimaya It's actually installed already, I had a look at `ldd nix-store` and it points to the correct file :thinking: any ideas?
fendor_ has quit [Ping timeout: 245 seconds]
<vika_nezrimaya>
No ideas
<vika_nezrimaya>
alienpirate5: I sometimes still use nix-shell because it
<vika_nezrimaya>
supports more than just packages
<gchristensen>
nix-shell :)
<gchristensen>
everybody uses nix-shell
<vika_nezrimaya>
you can't make nix run "python3.withPackages (p: with p; [ redis requests cjson pandas flask ])"
<vika_nezrimaya>
but nix-shell handles it cleanly
<vika_nezrimaya>
except it overrides my PS1
<vika_nezrimaya>
how can I make it not override my PS1?
<vika_nezrimaya>
by the way, an awesome thing about Nix I've just discovered
o1lo01ol1o has quit [Remote host closed the connection]
<vika_nezrimaya>
nix-copy-closure and nix-store --realize are best friends. Ran out of memory compiling GCC on your old RPi2? Just switch over to your laptop, pull dependencies in and --realize the build that was failing. Then (when it builds) I'll just copy it back and carry on :2
<vika_nezrimaya>
:3
markus1189 has joined #nixos
<vika_nezrimaya>
it feels so awesome
o1lo01ol1o has joined #nixos
<vika_nezrimaya>
That way I can build stuff that is OOMing on my laptop and build stuff that glitches out because of QEMU on my RPi
<vika_nezrimaya>
I heard that's called... synergy?
boxscape has quit [Remote host closed the connection]
mexisme has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
growpotk- has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @volth opened pull request #66585 โ [bot] name -> pname (easy cases) โ https://git.io/fj5XY
<alienpirate5>
and here i am cross compiling all of nixos
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
xkapastel has joined #nixos
<alienpirate5>
I'm having trouble cross compiling `pkgsCross.armv7l-hf-multiplatform.pango`
worldofpeace_ has quit [Ping timeout: 248 seconds]
zupo has joined #nixos
<nh2>
alienpirate5: I don't know where `pkgs` comes from, but its it legitimate to pass a package coming from that into a `pkgsCross` package?
<alienpirate5>
uh
<alienpirate5>
it's `nativeBuildInputs` though right?
<nh2>
ah hmm
<nh2>
unfortunately I don't know too much about it because I've done only "fake" cross compilation from x86 to x86 so far
<nh2>
would need to ask matthewbauer or some others who are really familiar with that
nschoe has joined #nixos
worldofpeace_ has joined #nixos
mexisme has joined #nixos
<vika_nezrimaya>
nh2: fake cross-compilation? Could you point me to an explanation of this eldritch art?
<nh2>
vika_nezrimaya: for example using the cross-compilation infrastructure to build everything on my computer with musl
<nh2>
that's what I did before I could just use `pkgsMusl`
<vika_nezrimaya>
you like optimisation I assume? I don't use musl myself but I heard its faster than glibc... and smaller
<symphorien>
alienpirate5: maybe in cross compilation settings ldd is prefixed ? armv7l-hf-multiplatform-ldd
kenshinCH has quit [Quit: WeeChat 2.4]
<symphorien>
oh well more like x86_64-linux-gnu-ldd
freeman42x has quit [Read error: Connection reset by peer]
<symphorien>
also for cases where nativeBuildInputs does not work (overrides are one) you should use buildPackages.glibc iirc
freeman42x has joined #nixos
is_null has quit [Ping timeout: 246 seconds]
<vika_nezrimaya>
ohhhh please don't tell me that my ldd is hanging...
<vika_nezrimaya>
it's busy on one CPU core, heating my laptop, memory allocation is stable
<vika_nezrimaya>
suspicious >.<
<vika_nezrimaya>
I mean no program makes linker run for 1 hour of CPU time right? even when emulating
<vika_nezrimaya>
1 hour of CPU time
<vika_nezrimaya>
not responding to SIGTERM
<clever>
vika_nezrimaya: ive had problems before, where ld needed over 3gig of ram to link, and i was on a 32bit machine, lol
<vika_nezrimaya>
It has allocated 4G of virtual memory... but MEM% in htop shows 0.1%
<vika_nezrimaya>
my laptop has 6G of memory
shibboleth has quit [Quit: shibboleth]
<vika_nezrimaya>
It basically hung on config.status: executing default commands
<vika_nezrimaya>
I'm not sure what it means - never worked so closely with GCC build system before
<vika_nezrimaya>
I'm not using ./configure in any of my projects even... they're all Python :3
selfsymmetric-pa has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
chloekek has quit [Ping timeout: 272 seconds]
<nh2>
I would be surprised if musl is faster; if I remember correctly, glibc has more hand-sped-up assembly. I use musl to build static executables, which can't really be done with glibc
<nh2>
vika_nezrimaya: ^
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<etu>
,locate bin wish
<{^_^}>
Found in packages: tk, tk-8_5
stepcut has joined #nixos
wfranzini has quit [Remote host closed the connection]
<nh2>
How can I have built `darcs` when one of the build dependencies clearly can't build?
<symphorien>
Maybe it was substituted
<{^_^}>
[nixpkgs] @lschuermann opened pull request #66588 โ nixos-enter: add --silent to suppress activation script output โ https://git.io/fj51d
ixxie has quit [Remote host closed the connection]
<nh2>
symphorien: but I'm building with sandbox, and hydra also does (I think), and the failure is a linker error, so who can originally have built the successful output?
<jlv>
How would I add a fork of nixpkgs as a channel?
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<vika_nezrimaya>
jlv: do you need to? you can just add it to your NIX_PATH, that would be usually enough :3
<vika_nezrimaya>
But if you need it as a channel (which I understand; I like channels a lot because you can update them with a single command), you can add your git remote URL to channels I think
<vika_nezrimaya>
It should be `nix-channel --add <url> <name>`, check the man-page for more info!
casaca has joined #nixos
<vika_nezrimaya>
or is it <name> <url>?
<vika_nezrimaya>
ughhhh I don
<nh2>
does that work? The man page says `A channel URL should point to a directory containing the following files:` with some stuff that's normally not in a git repo
<jlv>
vika_nezrimaya: I don't think I really need to. I just think it would be a nice and easy way add a package that I am writing, until the pull request goes through.
<jlv>
nh2: That's what I was wondering about.
<vika_nezrimaya>
jlv: to add new packages, I use a personal overlay. I structured mine not unlike nixpkgs to have an easier time merging stuff if I ever wanted to
<nh2>
jlv: I *think* you could just use `nix-env -i` with NIX_PATH set
<jlv>
vika_nezrimaya: I haven't looked into overlays yet
<vika_nezrimaya>
jlv: I definitely recommend to look into them in your spare time, they are amazing!
<vika_nezrimaya>
I plan to bundle an overlay with my piece of software which requires stuff not yet in nixpkgs to simplify installation
<vika_nezrimaya>
Overlays let you add to nixpkgs without forking it
<jlv>
That sounds useful :)
<vika_nezrimaya>
and they're easily pluggable. An overlay inside a NixOS configuration is defined in nixpkgs.overlays list
<vika_nezrimaya>
and you can drop a file or a folder into ~/.config/nixpkgs/overlays to add it to nix-env
<vika_nezrimaya>
An overlay looks like this btw: (self: super: {newpackage = <...>;}) - basically it's a function that takes two arguments - self and super. IIRC, self is the state of nixpkgs AFTER all overlays applied - sounds a little bit weird, but possible due to how Nix is built; and super is state of nixpkgs just before your overlay. Take functions such as callPackage from self and dependencies from super, and you can make something like this:
<vika_nezrimaya>
(self: super: { rejson = self.callPackage ./rejson.nix {}; }), while referencing another file. That file will contain an expression looking exactly like in nixpkgs, so you'll have an easy time contributing while still enjoying packages you haven't merged yet!
drewr has joined #nixos
<vika_nezrimaya>
TL;DR: overlays are cool!
ng0 has quit [Quit: Alexa, when is the end of world?]
<vika_nezrimaya>
A similar concept is a Gentoo overlay or Ubuntu's PPA
<vika_nezrimaya>
(but Gentoo overlays are a bit closer)
<jlv>
I'm constantly learning cool new things about NixOS. Very glad I switched :)
<vika_nezrimaya>
same here :3
<vika_nezrimaya>
so easy to set up developer environments
<vika_nezrimaya>
I want to learn Go so I'll need to research the most nix-friendly ways to develop new Go applications :3
<vika_nezrimaya>
But for Python... it's a perfect fit
v0|d has quit [Remote host closed the connection]
v0|d has joined #nixos
groggy42[m] has joined #nixos
kleisli_ has joined #nixos
<jlv>
Hmm, looking at the channel format, it looks like the nixpkgs repository already meets the requirement, if I could just get a url with the github fork in a nixexprs.tar.xz
<jlv>
It would be really handy if nix-channel had a way to treat a github repo as a channel
<Dandellion[m]>
Nix overlays are also really great for rust, and mozilla even has their own official overlay!
zupo has joined #nixos
<colemickens>
does buildGoModule work differently than buildGoPackage with regards to PREFIX and makefiles?
<colemickens>
I'm trying to bump `gopass` to a HEAD and its now using Go modules, but it seems to still call `make install`, I think, to install completions.
<colemickens>
But before, the completions installed correctly, and now its trying to isntall to /share, I think because PREFIX isn't set.
lambda-11235 has quit [Quit: Bye]
ilya-fedin has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj5DQ
<jlv>
Whelp, looks like I managed to mess something up. I am getting "Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist" when running `nixos-rebuild`
<jlv>
Running `sudo nix-channel --list` does show a `nixos` channel.
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @aaronjanse to release-19.03 ยซ nixos/modules/misc/crashdump: remove idle=poll (fix #66464) ยป: https://git.io/fj5D7
Neo-- has joined #nixos
<clever>
jlv: did you run nix-channel --update yet?
<clever>
jlv: try all of the nix-channel things again, under `sudo -i`
<jlv>
I haven't run it since `nixos-rebuild` last worked, but I'll try anyway
<jlv>
I assume it has something to do with me running `nixos-rebuild` with `-I nixpkgs=...`
<clever>
jlv: that shouldnt break it
<jlv>
Looks like `nix-channel --update` fixed it :) I didn't think I would need to do an update since it worked the last time I ran `nixos-rebuild` without -I
<clever>
jlv: --update is always needed after --add or --remove
<jlv>
Even on a channel you didn't add? I ran `nix-channel --update` on just the channel I added.
<jlv>
(didn't just add)
<clever>
jlv: could be you did something else to delete it and forgot
<clever>
and -I nixpkgs= makes it work with it missing
<jlv>
I can't think of anything, but who knows ยฏ\_(ใ)_/ยฏ