worldofpeace changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018 || For best support,
leocp1 has quit [Client Quit]
<maralorn> clever: That‘s cool. But why does the example from the help not work? Have I misconfigured my system? Does that example work on normal systems? Do I need to be in the nixpkgs folder for it to work?
<clever> maralorn: what is the contents of $NIX_PATH ?
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<maralorn> clever: That‘s a bit intricate …
<maralorn> clever: /home/maralorn/.nix-defexpr/channels:nixos-config=/etc/nixos/configuration.nix:/etc/nix-path
<clever> maralorn: ah, that might be why, it needs a nixpkgs=/path/to/nixpkgs entry
<maralorn> clever: But there is /etc/nix-path/nixpkgs. Is that not the same?
oscarvarto has left #nixos [#nixos]
<clever> maralorn: the new nix command follows slightly different and weird rules
<maralorn> clever: I tested it.
<maralorn> You were right.
<maralorn> Now I‘m said.
oscarvarto has joined #nixos
<maralorn> I thought my solution with symlink everything i want in my NIV_PATH to /etc/nix-path was really neat.
<maralorn> Do I also want "unstable=/path/to/unstable" so I can do "nix run unstable.firefox"?
<clever> maralorn: probably
* niso wonders how bad the idea of running a formatter in hydra is
<clever> maralorn: you can also use `nix run -f '<unstable>' firefox` i think
<clever> maralorn: which will work with your symlinks
efriend has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to structured-attrs: https://git.io/JeV9u
<maralorn> So someone seems to have backported a "fix" to 19.09 which broke "qscintilla" and transitively "octave" for me.
<maralorn> But the git history is so confusing, that I am not sure what the problem is.
lane-s has quit [Remote host closed the connection]
<maralorn> Yes, 653c9e2c06 broke qscintilla and octave in nixpkgs stable and got cherry-picked into the channel without a PR as far as I can tell.
xkapastel has joined #nixos
Osmiate has joined #nixos
<Osmiate> Can anyone help me get this package installed? https://hasteb.in/uculuhav.js Its attempting to create a /opt directory for some reason. I thought it was this line https://github.com/Stremio/stremio-shell/blob/master/release.makefile#L15 but adding the PREFIX variable didnt change anything
slack1256 has quit [Remote host closed the connection]
<maralorn> Hm, I found the PR: https://github.com/NixOS/nixpkgs/pull/72249
<{^_^}> #72249 (by lsix, 1 week ago, merged): Fix QGIS in release-19.09
mananamenos has quit [Remote host closed the connection]
<infinisil> Osmiate: You probably need to set this for configureFlags
jgt1 is now known as jgt
<infinisil> Or `makeFlags = [ "PREFIX=$(out)" ]`
o1lo01ol1o has joined #nixos
mexisme has quit [Ping timeout: 252 seconds]
oscarvarto has quit [Quit: oscarvarto]
jluttine has quit [Ping timeout: 265 seconds]
mbrgm has quit [Ping timeout: 245 seconds]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
o1lo01ol1o has quit [Ping timeout: 240 seconds]
vika_nezrimaya has joined #nixos
oscarvarto has joined #nixos
oscarvarto has quit [Read error: Connection reset by peer]
<Osmiate> I needed to use `INSTALL_ROOT` - The makeful just didnt follow that convention. I got it *build* but Qt complained about missing modules. Turns out you need to wrap Qt applications - <https://hydra.nixos.org/build/96804884/download/1/nixpkgs/manual.html#sec-language-qt> Would you use an overlay for this kind of thing? https://hasteb.in/raziheqi.m
<{^_^}> [nixpkgs] @Ma27 pushed to structured-attrs « treewide: use flat lists for *Inputs, fix env usage »: https://git.io/JeVHm
NoctisLabs has quit [Quit: WeeChat 2.6]
NoctisLabs has joined #nixos
<NoctisLabs> When I start Firefox on i3 it sort of glitches out and only renders on half the screen. Switching it to floating and back to tiled fixes it. Anyone else had this issue?
philr has quit [Quit: WeeChat 2.6]
<vika_nezrimaya> How to use nixpkgs.obs-wlrobs with nixpkgs.obs-studio? Please note that I am an OBS noob and both packages are currently in my configuration.nix
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/JeVHG
<{^_^}> [nixpkgs] @globin pushed to structured-attrs « treewide: fix types for mkDerivation params »: https://git.io/JeVHn
wikiemol has joined #nixos
mojjo has quit [Remote host closed the connection]
stagboot has quit [Quit: Leaving]
<wikiemol> Hello, I am a bit confused about the instructions provided in section 7.2 Using a script as a builder here https://nixos.org/nixos/nix-pills/working-derivation.html#idm140737316245424. Maybe I am just misunderstanding, but when I followed the steps, the environment variables were not printed in the nix repl, but the derivation did build (a
<wikiemol> <hash>-foo was put into my nix store with "foo" as text). When I left the repl, and ran declare -xp, the environment variables were edited. I thought this was supposed to be sandboxed when the build was running? Am I misunderstanding something?
<pie_> does nobody on nixos use cgroups? am i just missing something?
Ariakenom has quit [Quit: Leaving]
<infinisil> wikiemol: They probably weren't printed because the repl doesn't output stderr. It should print it with e.g. nix-build
<infinisil> wikiemol: "When I left the repl, and ran declare -xp, the environment variables were edited" -> What do you mean they've been edited?
<wikiemol> My Path looks longer, but actually, maybe I am just imagining it
<wikiemol> I don't have proof
<wikiemol> infinisil If building the derivation in the repl isn't supposed to change anything outside of the build, then I would fully believe my memory is just bad, I just wanted to verify my understanding and make sure that nothing was supposed to be changed.
<infinisil> Yeah it really shouldn't be able to change anything outside the build :)
selfsymmetric-mu has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeVH4
<infinisil> The only commands that could change stuff outside the store are ones that do more than just building derivations, such as nix-env or nixos-rebuild
<atlas_> I called Apple Support and they don't know how I could make the system volume (which includes /) writable. I guess nix won't work on macOS >=10.15 unless nix either implements a variable nix root dir or we find a way to break into the read-only volume.
<atlas_> clever: just an update in case you're curious ^
<clever> atlas_: there is a post somewhere on github, on how to do it
<clever> atlas_: but it may not work once catalina is finalized
<{^_^}> nix#2925 (by mroi, 22 weeks ago, open): /nix will not be writable on macOS Catalina
ris has quit [Ping timeout: 246 seconds]
<atlas_> clever: I don't want my nox dir overwritten by updates or something wtf
<wikiemol> infinisil Okay thanks! So, I ran nix-build /nix/store/ac0qjiha6vh79ghka07cdy021f75xdf6-foo.drv and I didn't see the output. Is that what you meant?
<infinisil> wikiemol: Nix won't build things it already built by default. Run that same command with --check to force it to build it again
<infinisil> (without --check it should only have output a single line, the resulting store path)
selfsymmetric-mu has quit [Remote host closed the connection]
<wikiemol> infinisil That worked!!
<wikiemol> Thanks!
<infinisil> :)
<clever> wikiemol: run `nix-store -l /nix/store/foo.drv`
jluttine has joined #nixos
selfsymmetric-mu has joined #nixos
noudle has quit []
wildtrees has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @veprbl merged pull request #70306 → python3Packages.spacy_models: add Norwegian and Lithuanian models → https://git.io/JecCA
<{^_^}> [nixpkgs] @veprbl pushed commit from @danieldk to master « python3Packages.spacy_models: add Norwegian and Lithuanian models (#70306) »: https://git.io/JeVHu
selfsymmetric-mu has quit [Remote host closed the connection]
<wikiemol> clever What does -l do? I don't see a description of it in nix-store --help
<clever> wikiemol: it prints the log from building it
selfsymmetric-mu has joined #nixos
<wikiemol> Oh! Cool!
<wikiemol> I'd even say thats pretty.... clever
Soo_Slow has quit [Quit: Soo_Slow]
jluttine has quit [Ping timeout: 276 seconds]
sb0 has joined #nixos
stagboot has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @worldofpeace to nixpkgs-19.09-darwin « nixos/gnome3: add sound-theme-freedesktop »: https://git.io/JeVDp
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/a22b0189002 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<{^_^}> [nixpkgs] @aanderse merged pull request #73080 → nixos/samba: use tmpfiles, port test to python → https://git.io/JeV4K
<{^_^}> [nixpkgs] @aanderse pushed 3 commits to master: https://git.io/JeVHM
_reanimus_ has joined #nixos
<pie_> infinisil: if types.string is deprecated, whats the alternativ
<infinisil> pie_: I'm mentioning some in https://github.com/NixOS/nixpkgs/pull/66346
<{^_^}> #66346 (by Infinisil, 13 weeks ago, merged): Properly deprecate types.string
<infinisil> Perhaps should have linked to something like this in the warning
jgt has quit [Ping timeout: 250 seconds]
reanimus has quit [Ping timeout: 240 seconds]
<pie_> yeah "this is bad" is not very helpful in and of itself
<pie_> well, the thing there is better because it says why its bad, but its still not really actionable info
o1lo01ol1o has joined #nixos
<sshow> pie_: types.str
<pie_> im trying to make perms.task = { uid = ...; gid = ...} an option, but i dont really see how t set up attrsOf to do this
h0m1 has quit [Ping timeout: 250 seconds]
silver has quit [Read error: Connection reset by peer]
h0m1 has joined #nixos
<pie_> enum seems to be in the right direction but not quite there
wikiemol has quit [Remote host closed the connection]
is_null has joined #nixos
leo__ has left #nixos [#nixos]
<infinisil> pie_: How about declaring a mkOption for uid and gid?
<infinisil> pie_: What are you trying to do with cgroups?
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @worldofpeace to nixos-19.09-small « nixos/gnome3: add sound-theme-freedesktop »: https://git.io/JeVDp
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/a22b0189002 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<pie_> infinisil: i want to have a memory limited cgroup existing by default that i can start firefox in
vika_nezrimaya has quit [Ping timeout: 240 seconds]
<pie_> infinisil: the option seems to be poking at stuff as root in the cgroup filesystem, or doing some variation of that manually
<pie_> sentence fail
<infinisil> pie_: Did you look into systemd's high-level stuff for cgroups?
<pie_> so, either doing some variation of that maually, or using something like the daemon provided by the libcgroup package to set things up
<pie_> infinisil: im dont really know how systemd works, i havent looked at anything cgroup specfic to systemd, no
<infinisil> Hm yeah not sure if it could be used to have user processes start in it
<pie_> infinisil: if it means anything, i dont want to run firefox as a service
wikiemol has joined #nixos
Osmiate has quit [Remote host closed the connection]
<wikiemol> ,locate nm
<pie_> the random things ive seen done are spaw a shell in a cgroup and start stuff from there, or i think some permission delegation stuff that just lets people directl add stuff to a cgroup
<{^_^}> Found in packages: go, arduino, go_1_10, go_1_11, gotools, factor-lang, arduino_core, go_bootstrap, gcc-arm-embedded, binutils-unwrapped, gcc-arm-embedded-5, gcc-arm-embedded-6, gcc-arm-embedded-7, gcc-arm-embedded-4_7, gcc-arm-embedded-4_8, gcc-arm-embedded-4_9, google-app-engine-go-sdk
jluttine has joined #nixos
NoctisLabs has quit [Quit: WeeChat 2.6]
NoctisLabs has joined #nixos
<infinisil> pie_: https://unix.stackexchange.com/a/171478/214651 seems to indicate that it's pretty easy with cgmanager
<pie_> not currently supported by systemd, such as net_prio. "
<pie_> infinisil: oh wait "The libcgroup package, which was the main tool for cgroup management in previous versions of Red Hat Enterprise Linux, is now deprecated. To avoid conflicts, do not use libcgroup tools for default resource controllers (listed in Available Controllers in Red Hat Enterprise Linux 7) that are now an exclusive domain of systemd. This leaves a limited space for applying libcgroup tools, use it only when you need to manage controllers
<pie_> sooooo im not sure what one is supposed to do here
<pie_> infinisil: right , so run some script on startup?
<pie_> ill look at that SE post
<pie_> why is this so confused heh
<infinisil> Probably yeah, or maybe cgmanager can start a process in a cgroup to start with
<pie_> yeah it can but that cgroup has to exist
<pie_> this looks kind of helpful https://www.suse.com/support/kb/doc/?id=7023842
<gyroninja> https://hydra.nixos.org/build/106052180 fails on hydra but built fine for me on latest master
jgt has joined #nixos
<gyroninja> Hydra is failing the package (different versions though) on 19.09 and unstable with "do not know how to unpack source archive"
mexisme has joined #nixos
<gyroninja> is the unpack unpure or something?
<clever> gyroninja: you probably have to add xz to the nativeBuildInputs
jgt has quit [Ping timeout: 246 seconds]
mexisme has quit [Ping timeout: 246 seconds]
<wikiemol> is there an equivalent of nix-build --check for failed builds?
<wikiemol> To avoid getting the message "error: some outputs of '/nix/store/vc1y7p66r7bfw5bqxaj8xzbpd2d29w6i-simple.drv' are not valid, so checking is not possible"
bsima has quit [Quit: ZNC 1.7.3 - https://znc.in]
o1lo01ol1o has quit []
work_ has quit [Quit: Connection closed for inactivity]
<pie_> infinisil: looks like systemd-run might be what i want
<infinisil> wikiemol: nix-build without --check
<infinisil> pie_: Ah neat, that does sound like it might work
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
<wikiemol> ah, so the build failing is 100% my fault :(
o1lo01ol1o has joined #nixos
<pie_> infinisil: actually, this doesnt look like it has anything directly to do with cgroups. im not sure whats going on and i dont like the vibes im getting, im not usually one to say that :P
<pie_> infinisil: so this looks like...it will make a one-off service for me?
<pie_> and then i have to use the usual systemd resource allocation mechanisms to deal with that (?)
dingenskirchen1 is now known as dingenskirchen
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 252 seconds]
sondr3 has quit [Quit: WeeChat 2.6]
o1lo01ol_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 265 seconds]
wikiemol has quit [Remote host closed the connection]
<pie_> they kind of mix up cgroups and services in this documentation though
<infinisil> pie_: Why not use systemd's docs?
<infinisil> Well maybe that's just me, but I usually like to read the docs from the source
jmeredith has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 12 commits to nixos-unstable-small: https://git.io/JeVQa
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/488e6b7a239 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<pie_> infinisil: general disorientatio
<pie_> n
<wedens[m]> how do I find nixpkgs revision used to build specific nixos generation?
<clever> wedens[m]: its in the name of the build
<clever> [root@amd-nixos:~]# ls -l /nix/var/nix/profiles/system-480-link
<clever> lrwxrwxrwx 1 root root 93 Jun 1 18:38 /nix/var/nix/profiles/system-480-link -> /nix/store/hsr6hw4scz98i08rp2igd0724ds1xnil-nixos-system-amd-nixos-19.09pre179307.bc94dcf5002
<clever> wedens[m]: bc94dcf5002 is the rev i build 480 from
johnw has quit [Remote host closed the connection]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
jgt has joined #nixos
jgt has quit [Ping timeout: 245 seconds]
<gyroninja> clever: Do you know if it would be possible to test if xz is needed. Is there something like --pure from nix-shell for nix-build?
<clever> gyroninja: the src ends in .xz, so it needs xz to unpack
<gyroninja> then why does it unpack on my machine?
<clever> because the src attribute is still pointing to an xz'd file
<clever> oh, on yours it works
<gyroninja> Yes, works on my machine, but not on hydra
<clever> are you building with the same nixpkgs hydra used?
<gyroninja> no
<gyroninja> I can try that though
<clever> its possible that your copy is newer and has a fix
<clever> or your copy is older, and its not xz yet
o1lo01ol_ has quit [Remote host closed the connection]
<gyroninja> clever: Nope, it's still broken
<gyroninja> Well, it still works on my machine using the same revision as when it breaks on hydra
drakonis has quit [Quit: WeeChat 2.6]
pie_ has quit [Ping timeout: 276 seconds]
<clever> gyroninja: what was the link to the hydra failure?
jgt has joined #nixos
<gyroninja> And I'm on 821c7e nixpkgs
pie_ has joined #nixos
<gyroninja> https://hydra.nixos.org/build/106052180 is for unstable and has the same problem
jgt has quit [Ping timeout: 246 seconds]
<clever> gyroninja: unxz is already in the PATH of that derivation
<clever> gyroninja: and the .drv nixpkgs generates, is identical to the one hydra has
<clever> gyroninja: its likely just a random failure, and the hydra job needs to be restarted
<gyroninja> Well it looks like the issue has been arround for 2 weeks
<clever> gyroninja: likely, none of the inputs have changed, so hydra hasnt bothered to try again, since doing the exact same thing twice is the definition of insanity
<gyroninja> https://hydra.nixos.org/build/105580625 https://hydra.nixos.org/build/104642464 it says these were built with different machines
<gyroninja> and it doesn't say it's a propgated failure so I assume it is not a cached result
<clever> thats weird
ddellacosta has quit [Ping timeout: 245 seconds]
<clever> gyroninja: only other thing i can think of, is things like sse2 features
<{^_^}> [nixpkgs] @leocp1 opened pull request #73149 → rasdaemon: init at 0.6.4 → https://git.io/JeV7t
stagboot has quit [Quit: Leaving]
jedai42 has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
dansho has joined #nixos
nexgen has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<wedens[m]> clever: `/nix/store/fg5kgrs619jldskbcqhp20j6l1wnwkv5-nixos-system-wedens-pc-19.09pre-git` that's what I have in the link :/
<clever> wedens[m]: then it was built from a git clone, and the .version-suffix file is missing
<wedens[m]> clever: it was built with NIX_PATH=nixpkgs=...
<clever> wedens[m]: but what was it pointing to?
<clever> a url or a dir?
<wedens[m]> github url
<clever> ah, those also lack .version-suffix
<clever> no easy way to find the nixpkgs rev directly
<clever> but if you guess, and use nix-diff and nix-instantiate, you can see how much differs between whats built and your guess
<clever> then go forwards/backwards in history
iyzsong has quit [Ping timeout: 240 seconds]
jgt has joined #nixos
<wedens[m]> alright. thanks for suggestions
<wedens[m]> clever: my theoretical use case is: I know that in some specific generation some package was working and I'd like to use nixpkgs revision of this generation to pin the package
<clever> wedens[m]: thats much simpler if it was built from a channel
jgt has quit [Ping timeout: 246 seconds]
<wedens[m]> just when I was trying to get rid of channels :D
LysergicDreams has quit [Ping timeout: 276 seconds]
Ralith_ has quit [Ping timeout: 276 seconds]
LysergicDreams has joined #nixos
<clever> wedens[m]: you can also point NIX_PATH to a tarball that was made for a channel, but those are a bit more tricky to find
<wedens[m]> clever: typically I pin to revisions corresponding to some channel (for cache reasons). currently I use url like https://github.com/NixOS/nixpkgs/archive/c5aabb0d603e2c1ea05f5a93b3be82437f5ebf31.tar.gz
<clever> yeah
<wedens[m]> I guess I can change it to some url with the same revision but with additional metadata?
<clever> [clever@amd-nixos:~]$ curl https://nixos.org/channels/nixos-unstable -i
<clever> wedens[m]: if you query a channel like this, youll get redirected to a url with a rev in it
<clever> then use NIX_PATH=nixpkgs=https://releases.nixos.org/nixos/unstable/nixos-20.03pre200231.7827d3f4497/nixexprs.tar.xz i think it was
<clever> and that will give you the tar that nix-channel would have used
<clever> which has the .version-suffix file, so nixos can label itself right
mexisme has joined #nixos
iyzsong has joined #nixos
<clever> wedens[m]: getting URL's like that is a bit more complex, but will then keep the version info that helps with this problem in the future
<clever> you can also open https://releases.nixos.org/nixos/unstable/nixos-20.03pre200231.7827d3f4497 in the browser, to get info about that version
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<wedens[m]> clever: thanks. I'll try to use this strategy. btw, I didn't know there are iso's for each channel revision :O
jedai42 has joined #nixos
<clever> wedens[m]: hydra builds all of the iso's for every channel revision, but only a select few are mirrored to http for easy access
mexisme has quit [Ping timeout: 250 seconds]
nexgen has quit [Ping timeout: 276 seconds]
jedai42 has quit [Ping timeout: 276 seconds]
nexgen has joined #nixos
<wedens[m]> another useful thing, when building, will be to record my nixos config git repo revision
<clever> wedens[m]: i have a trick for that
<clever> wedens[m]: this will put a copy of whatever is in . at /run/current-system/nixcfg/
<clever> lrwxrwxrwx 1 root root 50 Dec 31 1969 /nix/var/nix/profiles/system-480-link/nixcfg -> /nix/store/d5xr9cp0yyh5kl0xa7ck4npcr5yj63dm-nixcfg
<clever> its also visible in every generation
<wedens[m]> yeah, that's even more useful than just revision (which may not always reflect the configuration). thanks for the tip
fusion809 has joined #nixos
<clever> wedens[m]: in my case, its even saving the `.git` dir, so i can just `cd /run/current-system/nixcfg ; git diff`
<clever> wedens[m]: and it will show the changes since the last commit (last commit at the time it was built)
dansho has quit [Quit: Leaving]
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
<wedens[m]> yeah, that's nice. when you have a separate repo for nixos config and not all-in-one "dotfiles" repo like I do :D
felixfoertsch has joined #nixos
jgt has joined #nixos
<{^_^}> [nixpkgs] @ashkitten opened pull request #73150 → elasticsearchPlugins: add ingest-attachment → https://git.io/JeV76
gagbo has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
gagbo has joined #nixos
jgt has quit [Ping timeout: 276 seconds]
<wedens[m]> now I have to make some configs tied to nixos generation, but still being able to tweak them without switching generation on each tweak
<wedens[m]> which sounds like two opposite goals
<wedens[m]> currently I just create symlinks directly to my dotfiles repo, which makes it easily tweakable, but doesn't utilize any benefits of Nix
<clever> wedens[m]: this generates a vim, that has a vimrc baked into it, along with plugins
<clever> with a minor change (make it not a module, add with import <nixpkgs>{};), i can nix-build it, and ./result/bin/vim to test the changes (or use it on somebody elses machine)
<clever> i could also make it start with:
<clever> { pkgs ? import <nixpkgs> {}, fat ? false }:
<clever> then i can nix-build it, or `pkgs.callPackage ./vim.nix { fat = config.programs.vim.fat; }`
<clever> and now i can cycle between nix-build and nixos, with zero changes
<clever> and it still obeys the nixos option
<clever> (if built by nixos)
Rusty1 has quit [Quit: Konversation terminated!]
h32 has quit [Ping timeout: 240 seconds]
Guest84 has joined #nixos
Ralith_ has joined #nixos
<atlas_> in https://nixos.org/nix/manual/#ch-env-variables, what is 'prefix'?
<Guest84> Try with ""
<Guest84> atlas_: ^^
<{^_^}> [nix-pills] @Ericson2314 merged pull request #121 → Fix two typos → https://git.io/JeVEr
<{^_^}> [nix-pills] @Ericson2314 pushed 2 commits to master: https://git.io/JeV7A
jgt has joined #nixos
pie_ has quit [Ping timeout: 252 seconds]
pie_ has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 6 commits to nixos-unstable-small: https://git.io/JeV5k
pie_ has quit [Quit: pie_]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d2d009f4a6b (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
pie_ has joined #nixos
palo1 has joined #nixos
Guest84 has quit [Remote host closed the connection]
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
mexisme has joined #nixos
revtintin has joined #nixos
<atlas_> Guest95680: What do you mean? If this is what you mean: what is "prefix"?
mexisme has quit [Ping timeout: 252 seconds]
<atlas_> whoops wrong hl Guest84
<atlas_> "The installation path can be specified by passing the --prefix=prefix to configure. The default installation directory is /usr/local." implies that "prefix" is /usr/local, but I don't have anything like /usr/local/etc/profile.d/nix.sh
rauno has joined #nixos
jgt has joined #nixos
boredbigu has joined #nixos
jgt has quit [Ping timeout: 245 seconds]
kolbycrouch has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boredbigu has left #nixos [#nixos]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed to master « cadence: generate wrap commands, use qt5's mkDerivation »: https://git.io/JeV50
<{^_^}> [nixpkgs] @worldofpeace pushed to release-19.09 « cadence: generate wrap commands, use qt5's mkDerivation »: https://git.io/JeV5u
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeV5a
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-19.09: https://git.io/JeV5V
pie_ has quit [Quit: pie_]
kolbycrouch has quit [Quit: Leaving]
pie_ has joined #nixos
evil-olive has quit [Quit: The Lounge - https://thelounge.chat]
jgt has joined #nixos
evil-olive has joined #nixos
kenran has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 5 commits to nixos-19.09: https://git.io/JeV56
Heirlung has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/a22b0189002 (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
<{^_^}> [nixpkgs] @vcunat pushed 9 commits to release-19.09: https://git.io/JeV5D
<{^_^}> [nixpkgs] @Izorkin opened pull request #73151 → php74: init at 7.4 RC5 → https://git.io/JeV5y
Heirlung has joined #nixos
wikiemol has joined #nixos
o1lo01ol1o has joined #nixos
kolbycrouch has joined #nixos
o1lo01ol1o has quit [Ping timeout: 265 seconds]
mexisme has joined #nixos
<wikiemol> Hello, I am trying to follow the steps in this section of this nix pill https://nixos.org/nixos/nix-pills/working-derivation.html#idm140737316196736 and I am getting stuck. I am on "x86_64-darwin" (OS X Mojave). The main problem is that collect2 is not finding nm. I tried adding builtins = builtins to the derivation set, to no avail. I also tried
<wikiemol> builtins_unwrapped = builtins_unwrapped. I even tried adding $binutils/bin to my PATH in the bash script in the tutorial. But that didn't work either. What are some ways I could debug this?
jgt1 has joined #nixos
kenran has quit [Ping timeout: 245 seconds]
jgt has quit [Ping timeout: 250 seconds]
pie_ has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @joachifm merged pull request #73146 → tor-browser-bundle-bin: 9.0 -> 9.0.1 → https://git.io/JeV9T
<{^_^}> [nixpkgs] @joachifm pushed 3 commits to master: https://git.io/JeVdL
<wikiemol> Figured it out :)
inkbottle has joined #nixos
<{^_^}> [nix] @kolloch opened pull request #3218 → De-duplicate struct PrimOp forward declaration → https://git.io/JeVdV
jgt1 has quit [Ping timeout: 246 seconds]
swiftshader is now known as fling
pie_ has joined #nixos
m0rphism has joined #nixos
aveltras has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
revtintin has quit [Quit: WeeChat 1.9.1]
m0rphism has quit [Ping timeout: 240 seconds]
m0rphism has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 12 commits to nixos-19.09-small: https://git.io/JeVFO
fling has quit [Remote host closed the connection]
fling has joined #nixos
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/2d896998dc9 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
jedai42 has joined #nixos
gxt has joined #nixos
<{^_^}> [nixpkgs] @zimbatm pushed to master « fsatrace: 0.0.1-160 -> 0.0.1-324 »: https://git.io/JeVFW
noudle has joined #nixos
<{^_^}> [nixpkgs] @shyim opened pull request #73153 → phpPackages.xdebug: 2.7.1 -> 2.8.0 → https://git.io/JeVF4
cosimone has joined #nixos
cosimone has quit [Client Quit]
cosimone has joined #nixos
jgt1 has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 6 commits to nixos-unstable-small: https://git.io/JeVFg
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/18cadc6384b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @mmahut opened pull request #73154 → datovka: init at 4.14.0 → https://git.io/JeVFa
chloekek has joined #nixos
LysergicDreams has quit [Ping timeout: 240 seconds]
wikiemol has quit [Remote host closed the connection]
silver has joined #nixos
<bdju> what all is needed for interacting with android phones on NixOS? I've got adb enabled but don't seem to have the fastboot command. I see there's a package called android-udev-rules that I might need... can't find anything on fastboot or android-tools which is what contains it on some distros
<ashkitten> ,locate bin fastboot
<{^_^}> Couldn't find in any packages
<rnhmjoj> ashkitten: are you looking for the adb stuff?
<ashkitten> rnhmjoj: was trying to see if it's provided by a package that the bot here can see
jgt1 has quit [Read error: Connection reset by peer]
<rnhmjoj> it should be in androidenv.androidPkgs_9_0.platform-tools
<ashkitten> for bdju
<ashkitten> and yeah it's in platform-tools according to `readlink $(which fastboot)`
<bdju> alright, thanks
<bdju> okay platform-tools in my config is apparently not valid and the way I search nix packages freaks out over the - even with quotes
<MichaelRaskin> I expect the problem to be with unfreeness of Android SDK parts
chreekat has quit [Ping timeout: 245 seconds]
<bdju> guix has this stuff packaged
bvdw has quit [Read error: Connection reset by peer]
ris has joined #nixos
Chiliparrot has joined #nixos
<bdju> anyway I seem to have the adb command, just not fastboot
bvdw has joined #nixos
<MichaelRaskin> They might use a source rebuild and we might have SDK jars somewhere
chreekat has joined #nixos
Thra11 has joined #nixos
<MichaelRaskin> androidenv.androidPkgs_9_0.platform-tools includes fastboot for me
<MichaelRaskin> And seems to be free in the current build
pie_ has quit [Ping timeout: 265 seconds]
<bdju> I'm having trouble getting that installed in a declarative manner
<bdju> lots of odd capitalization and symbols compared to most of my packages and everything I've tried so far isn't working
<MichaelRaskin> I have copypasted the exact spelling from my systemPackages
<bdju> ah, okay. I'll try that. sorry.
<MichaelRaskin> (well, not exactly from systemPackages, but the difference is irrelevant)
<bdju> it does seem to be working now! thank you
<MichaelRaskin> Yes, capitalisation + underscores + dash is kind of a combo
rtjure has joined #nixos
<bdju> building instead of an error at least
<MichaelRaskin> Impossible to guess without looking up
<MichaelRaskin> It is not high in my list of usual build problems
<bdju> alright I've got it installed now. might have to re-login before it works
<bdju> thanks again for the help
<MichaelRaskin> rehash should be enough
<MichaelRaskin> Although udev rules might even be easier to apply with a reboot
<MichaelRaskin> (no idea — this is the area where my system does differ from mainline NixOS in a relevant way)
<MichaelRaskin> Hmmm. Maybe you neec udev rules, actually
<ashkitten> udev rules should work on re-plugging the device
<MichaelRaskin> But they need to be separately listed, I expect
<MichaelRaskin> android-udev-rules needs to be added to the list of udev rule packages
__monty__ has joined #nixos
cosimone has quit [Remote host closed the connection]
alexherbo2 has joined #nixos
<{^_^}> [nixpkgs] @shyim closed pull request #73153 → phpPackages.xdebug: 2.7.1 -> 2.8.0 → https://git.io/JeVF4
rtjure has quit [Quit: rtjure]
gxt has quit [Ping timeout: 260 seconds]
Ariakenom has joined #nixos
gxt has joined #nixos
pie_ has joined #nixos
Thra11_ has joined #nixos
Thra11 has quit [Quit: IRC for Sailfish 1.0-alpha]
phaebz has joined #nixos
dansho has joined #nixos
leotaku has joined #nixos
ng0 has joined #nixos
kleschenko has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #73154 → datovka: init at 4.14.0 → https://git.io/JeVFa
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/JeVbl
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
cyris212 has joined #nixos
Thra11_ has quit [Ping timeout: 268 seconds]
sb0 has quit [Quit: Leaving]
gxt has quit [Ping timeout: 260 seconds]
logzet has joined #nixos
Thra11_ has joined #nixos
gkmngrgn has joined #nixos
gkmngrgn has quit [Client Quit]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 12 commits to nixpkgs-19.09-darwin: https://git.io/JeVFO
<adisbladis> bdju: programs.adb.enable
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
<adisbladis> That will give you adb, fastboot and correct udev rules
cyris212 has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/2d896998dc9 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
Sigma has quit [Ping timeout: 268 seconds]
Sigma has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
fling has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
fling has joined #nixos
Sigma has quit [Ping timeout: 252 seconds]
cosimone has joined #nixos
Sigma has joined #nixos
ng0 has quit [Ping timeout: 260 seconds]
ng0 has joined #nixos
<{^_^}> [nixpkgs] @maximedenes opened pull request #73156 → purescript: 0.13.3 -> 0.13.4 → https://git.io/JeVbd
<{^_^}> [nixpkgs] @hedning merged pull request #73052 → webkitgtk: 2.26.1 -> 2.26.2 → https://git.io/JeVZL
<{^_^}> [nixpkgs] @hedning pushed to master « webkitgtk: 2.26.1 -> 2.26.2 (#73052) »: https://git.io/JeVbA
<{^_^}> [nixpkgs] @ehmry merged pull request #73142 → bettercap: 2.24 -> 2.26.1 → https://git.io/JeVSf
<{^_^}> [nixpkgs] @ehmry pushed commit from @judaew to master « bettercap: 2.24 -> 2.26.1 »: https://git.io/JeVbx
Thra11_ has quit [Ping timeout: 268 seconds]
hyper_ch has quit [Read error: Connection reset by peer]
hyper_ch has joined #nixos
cosimone has quit [Quit: Quit.]
<Izorkin> globin: it is possible to add QUIC support for openssl?
cosimone has joined #nixos
ris has quit [Ping timeout: 250 seconds]
Thra11_ has joined #nixos
eon` has quit [Quit: leaving]
o1lo01ol1o has joined #nixos
nexgen has quit [Quit: Leaving]
jgeerds_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
kleschenko has quit [Ping timeout: 265 seconds]
bee[m]1 is now known as bee[m]2
max3raza has quit [Quit: ZNC 1.6.3+deb1ubuntu0.2 - http://znc.in]
phaebz has quit [Remote host closed the connection]
rtjure has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cosimone has quit [Quit: Quit.]
rtjure has quit [Client Quit]
<{^_^}> [nixpkgs] @aanderse merged pull request #72960 → cadaver: Enable readline support → https://git.io/JeaoX
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JeVNG
<{^_^}> [nixpkgs] @aanderse merged pull request #72968 → shattered-pixel-dungeon: 0.7.5e -> 0.7.5f → https://git.io/JeayF
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JeVNn
LysergicDreams has joined #nixos
phaebz has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #72999 → mesa: 19.2.1 -> 19.2.3 (and associated fixes) → https://git.io/JeapY
<{^_^}> [nixpkgs] @adisbladis pushed 25 commits to staging: https://git.io/JeVNB
<{^_^}> [nixpkgs] @ikervagyok opened pull request #73157 → steam: add libva as a dependency, otherwise steam doesn't start anymore → https://git.io/JeVNz
asymmetric has quit [Ping timeout: 265 seconds]
kleschenko has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #72155 → crawl: 0.23.2 -> 0.24.0 → https://git.io/Jeu3y
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/JeVNo
philr has joined #nixos
ozychhi has quit [Ping timeout: 276 seconds]
rtjure has joined #nixos
andymandias has joined #nixos
philr has quit [Ping timeout: 240 seconds]
pointfourone has joined #nixos
jgt1 has joined #nixos
andymandias_ has quit [Ping timeout: 240 seconds]
ozychhi has joined #nixos
<{^_^}> [nixpkgs] @GuillaumeDesforges opened pull request #73158 → geopy: 1.2.0 -> 2.80 for Python 3 only → https://git.io/JeVNH
tmplt has joined #nixos
<{^_^}> [nixpkgs] @maralorn opened pull request #73159 → pythonPackages.qrcode: Fix "No module named pkg_resources" error → https://git.io/JeVNQ
<tmplt> Is there a Nix <-> json tool or something similar? I'm working on automating a deployment ISO somewhat
<tmplt> Not anything too complex: I want to set some options in configuration.nix in a script
<wedens[m]> > builtins.fromJSON "{ \"a\": 1, \"b\": \"str\" }"
<{^_^}> { a = 1; b = "str"; }
<wedens[m]> > builtins.toJSON { a = 1; b = "str"; }
<{^_^}> "{\"a\":1,\"b\":\"str\"}"
<wedens[m]> tmplt: ^
<tmplt> wedens[m]: neat, thank you
Neo-- has joined #nixos
jgt1 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @maralorn opened pull request #73160 → pythonPackages.qrcode: Fix "No module named pkg_resources" error → https://git.io/JeVN7
tmplt has quit [Remote host closed the connection]
ozychhi has quit [Quit: WeeChat 2.5]
<mightybyte> How do you set the NixOS system ulimit? I'm not finding anything in the manuel.
<{^_^}> [nixpkgs] @risicle opened pull request #73161 → libxslt: add patch for CVE-2019-18197 → https://git.io/JeVNx
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 6 commits to nixos-unstable-small: https://git.io/JeVNj
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9e733df81fa (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<flokli> jtojnar: Ericson2314 jtojnar: got success getting meson to statically compile? looking at pkgs/stdenv/adapters.nix, it seems we only need to add "-Ddefault_library=static" to mesonFlags, however, meson docs suggest it should come immediately after "meson", not after mesons "build" subcommand (which is where mesonFlags end up in)…
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
cyris212 has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #73115 → [r19.03] jhead: add patches for CVE-2019-1010301, CVE-2019-1010302 → https://git.io/JeVKJ
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @risicle to release-19.03 « jhead: add patches for CVE-2019-1010301, CVE-2019-1010302 »: https://git.io/JeVAm
<{^_^}> [nixpkgs] @zokrezyl closed pull request #72714 → zmalllinugz: init at 5.3.8 (linux kernel version) → https://git.io/Jegpc
kleschenko has quit [Quit: Lost terminal]
<pie_> i dont know much about systemd, does anyone know why `systemd-run --user --scope -p MemoryHigh=300M firefox ` does successfully run but doesnt seem to create a cgroup, and no manner of resource limiting seems to be imposed on firefox?
<pie_> systemd-cgls lists a .scope but systemd-cgtop doesnt show a cgroup
<adisbladis> pie_: Iirc user units don't support resource limiting
<pie_> adisbladis: .....FFFFUUUU xD
<pie_> i figured the daemon would handle stuff so i dont have to hav root
<pie_> all the other cgroup management things are marked deprecated in favor of systemd so how a i supposed to do this *scratches head*
<pie_> adisbladis: wair
<pie_> wait, if thats true, why the heck doesnt it give me any warnings or anything
<pie_> quality. engineering.
Maxdamantus has quit [Ping timeout: 240 seconds]
<pie_> adisbladis: https://github.com/systemd/systemd/issues/9887 suggests that it should work, also im told they should work in v2
<{^_^}> systemd/systemd#9887 (by LockRing, 1 year ago, closed): resource control does not apply automatically with user instance
<__monty__> Isn't that because "--user" is a scope?
<__monty__> I.e., you can probably come up with a custom scope spec that is --user + -p MemoryHigh?
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
cyris212 has joined #nixos
Neo-- has quit [Ping timeout: 252 seconds]
chloekek has quit [Ping timeout: 268 seconds]
<pie_> systemctl --user show tempname.scope` does contain "MemoryHigh=314572800"
<__monty__> I agree the UX is terrible if I'm right though.
Maxdamantus has joined #nixos
<pie_> so its getting set
<NinjaTrappeur> How can I generate this page: https://nixos.org/nixos/options.html# from my local nixpkgs checkout?
<pie_> systemctl --user status ... shows `CGroup: /user.slice/user-1000.slice/user@1000.service/tempname.scope` , so i guess its just cgtop that doesnt show some thigns for some unoverridable reason
<pie_> so yeah why doesnt this work
civodul has joined #nixos
<pie_> its supposed to start swapping if i pass MemoryHigh right?
<infinisil> NinjaTrappeur: I think `nix-build nixos/release.nix -A manualHTML.x86_64-linux`
<__monty__> pie_: Isn't MemoryLimit the one you want? That's what I've been using.
cosimone has joined #nixos
gxt has joined #nixos
<pie_> __monty__: i dont want it to get killed
<pie_> i might be mixing that up with max
<pie_> i think i read emorylimit is deprecated in favor of memoryhigh
<__monty__> Ah, MemoryMax replaces MemoryLimit
<jtojnar> flokli I am mostly interested in nixos, so I never tried that
LysergicDreams has quit [Read error: Connection reset by peer]
LysergicDreams has joined #nixos
<flokli> jtojnar: but on NixOS you can also have static binaries and libraries ;-)
<NinjaTrappeur> Indeed infinisil, thanks!
<flokli> I assume we might want to introduce a second list for flags to meson before the "build" command (or however this is called in meson nomenclature)
<__monty__> Question about setting up bonding. Somehow wpa_supplicant ends up configured wrong: http://ix.io/214y
pointfourone has quit [Quit: WeeChat 2.6]
jmeredith has joined #nixos
cosimone_ has joined #nixos
cosimone has quit [Ping timeout: 250 seconds]
ZIOCARLO45 has joined #nixos
ZIOCARLO45 has left #nixos [#nixos]
iyzsong has quit [Ping timeout: 265 seconds]
Soo_Slow has joined #nixos
dansho has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @risicle to nixos-19.03-small « jhead: add patches for CVE-2019-1010301, CVE-2019-1010302 »: https://git.io/JeVAm
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @risicle to nixpkgs-19.03-darwin « jhead: add patches for CVE-2019-1010301, CVE-2019-1010302 »: https://git.io/JeVAm
<ryantm> The nixpkgs manual has a section about building all Haskell packages with profiling on. https://nixos.org/nixpkgs/manual/#miscellaneous-topics Is it possible to partially enable profiling, so I don't need to recompile everything?
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/e5bd0cfcd53 (from 41 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<infinisil> ryantm: What do you mean by "partial"?
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e5bd0cfcd53 (from 41 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<ryantm> infinisil: I'm not sure it's a thing. I just mean I'd be okay with it just profiling by application layer to start, if that were possible.
<ryantm> by -> my
<__monty__> I don't think it is. I'd ask in #ghc
<infinisil> Hm, enabling profiling for just the final executable probably doesn't work
<infinisil> ryantm: I believe profiling is enabled by default in nixpkgs though?
<ryantm> libraryProfiling is, but executableProfiling isn't, I think.
<__monty__> Hmm, then it might work.
<infinisil> Yeah
<ryantm> I'm not sure the difference, but doing `my-exe +RTS -p -RTS my-args` just showed help messages for RTS instead of doing some profiling
<{^_^}> [nix] @domenkozar pushed 2 commits to master: https://git.io/JeVA9
<{^_^}> [nix] @domenkozar merged pull request #3218 → De-duplicate struct PrimOp forward declaration → https://git.io/JeVdV
<__monty__> ryantm: You have to build your executable and libraries with profiling though.
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
orivej has joined #nixos
drewr has joined #nixos
asymmetric has joined #nixos
chloekek has joined #nixos
orivej has quit [Ping timeout: 276 seconds]
asymmetric has quit [Ping timeout: 268 seconds]
asymmetric has joined #nixos
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
cyris212 has joined #nixos
Chiliparrot has joined #nixos
asymmetric has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #73162 → monero: 0.14.1.2 -> 0.15.0.0 → https://git.io/JeVxf
endformationage has joined #nixos
orivej has joined #nixos
o1lo01ol1o has joined #nixos
gxt has quit [Ping timeout: 260 seconds]
<das_j> is anyone successfully using pkgs.linuxManualConfig?
<das_j> because it seems like this breaks requiredKernelFeatures
cosimone_ has quit [Remote host closed the connection]
cosimone_ has joined #nixos
genesis has quit [Quit: Leaving]
gagbo has quit [Ping timeout: 240 seconds]
shibboleth has joined #nixos
domogled has joined #nixos
domogled has quit [Remote host closed the connection]
chiefgoat has joined #nixos
dansho has joined #nixos
<Izorkin> ,locate X11/xpm.h
<{^_^}> Found in packages: xlibs.libXpm.dev
chiefgoat has quit [Client Quit]
<{^_^}> [nixpkgs] @lsix opened pull request #73163 → qscintilla: Fix qt4 build [release-19.09] → https://git.io/JeVxo
<nh2> flokli: I'm trying out building a hell-world project statically with Meson.
<nh2> That is with meson `0.45.1` as delivered by Ubuntu.
<nh2> `meson builddir -Ddefault_library=static` doesn't do anything: `meson configure` afterwards continues to show `default_library shared`.
<nh2> First point: On Ubuntu 18.04 meson is certainly bugged.
<nh2> Updating to meson `0.51.2` from nixpkgs fixes that; `meson configure` now shows what I've set.b
<nh2> That doesn't give me a static exe yet, because it probably talks only about libraries, but is good to know that we shouldn't try make things work with old meson versions.
chiefgoat has joined #nixos
<flokli> nh2: are we using old meson versions in nixpkgs?
<nh2> flokli: no, at leat not in 19.09, that's where I got the working `0.51.2` from
<nh2> flokli: `-Dc_link_args=-static` results in a static exe
<flokli> nh2: but shouldn't it be a `meson --default_library=static build ${mesonFlags}`?
<nh2> flokli: I don't think `--default_library=static` is legal, you meant `-Ddefault_library=static` like above, right?
<nh2> Also I think those two are different things:
<nh2> If you build *libraries*, then `-Ddefault_library=static` makes them be static (.a files).
<nh2> If you build *executables*, then `-Dc_link_args=-static` makes them be statically linked (`ldd` shows `not a dynamic executable`).
cosimone_ has quit [Quit: Quit.]
domogled has joined #nixos
<flokli> nh2: seems you are right
<flokli> And we don't need something separate from mesonFlags
acarrico has quit [Ping timeout: 265 seconds]
asymmetric has joined #nixos
<nh2> flokli: I just found that your approach of using `--arg=value` only works with some subset of options: https://mesonbuild.com/Builtin-options.html#universal-options. Everything that's in `Universal options` seems to accept that, but the stuff further down in `Compiler options` does not
acarrico has joined #nixos
Thra11_ has quit [Ping timeout: 240 seconds]
chiefgoat has quit [Ping timeout: 265 seconds]
asymmetric has quit [Ping timeout: 246 seconds]
asymmetric has joined #nixos
<gentauro> how do you make a local sandbox with both `gtk2` and `gtk3`? I'm trying to build an old version of FF (48.0.2 to be specific)?
<gentauro> if I add both `stdenv pkgconfig gtk2 gtk3 glib gobjectIntrospection ...` I get: "collision between ... -gtk+3-3.24.5 and gtk+-2.24.32"
drakonis has joined #nixos
<gentauro> Shouldn't it be this that nix/nixos should be really good at?
<symphorien> what do you mean by `add` ?
drakonis_ has quit [Ping timeout: 268 seconds]
<gentauro> symphorien: `buildInputs = [ stdenv pkgconfig gtk2 gtk3 glib gobjectIntrospection ... ]`
drakonis has quit [Read error: Connection reset by peer]
<nh2> clever infinisil: I need another nix-shell tip like you gave me recently. It seems `-p git` gives me shell with git in it, but `nix-shell -E '(import <nixpkgs> {}).git'` gives me a shell in which I can _build_ git. (How) can I use `-E` to get a shell with git in it?
<gentauro> providing both gtk2 and gtk3
drakonis has joined #nixos
<symphorien> you don't need stdenv in buildInputs
oscarvarto has joined #nixos
<symphorien> and I just tried nix-shell -p gtk2 gtk3 and it seems to work
<edef> nh2: nix-shell -p 'foo bar' baz is shorthand for nix-shell -E 'with import <nixpkgs> {}; mkShell { buildInputs = [ foo bar baz ]; }'
<{^_^}> [nixpkgs] @judaew opened pull request #73164 → YARA 3.10.0 -> 3.11.0 → https://git.io/JeVpE
<edef> nh2: and mkShell is just an mkDerivation wrapper that disables actually building
<flokli> nh2: yeah, seems so. But not sure if we want to introduce any special logic, if just passing it afterwards via mesonFlags works just fine
<nh2> edef: ah, check this out! https://github.com/NixOS/nix/issues/454
<nh2> Looks like you can also just replace the `-E` with `-p` and it'll do what I need (thus a shortcut for what you wrote). But it is not documented in the man page apparently
<{^_^}> nix#454 (by cstrahan, 4 years ago, closed): BUG: nix-shell requires bogus -p argument to make --expr work
<flokli> I need to check why it's not working in my special case, though ;-)
<edef> nh2: so either way you're in a shell for building some derivation, just -p makes you a synthetic one
<nh2> that is, this works: `nix-shell -p '(import <nixpkgs> {}).git'`
<edef> nh2: yes
<edef> nh2: look at the substitution i showed you above
<gentauro> symphorien: my `default.nix` looks like this -> https://pastebin.com/nesbtGPm
<edef> nh2: what you're doing is equivalent to nix-shell -E 'with import <nixpkgs> {}; mkShell { buildInputs = [ (import <nixpkgs> {}).git ]; }'
<symphorien> ah the error is in buildEnv
Thra11_ has joined #nixos
<nh2> edef: yes it makes sense now that I understand it, but before I didn't assume that the argument _literally_ spliced in the given expression this way as a string, especially because the man page says ` -p packages`
<symphorien> remove the line with env=buildEnv....
<edef> nh2: apparently the modern, C++ version does actually parse it in isolation
<edef> nh2: the old perl version does a literal perl splice
<edef> nh2: er, literal string splice*
<edef> nh2: so `nix-shell -p ']; foo = ['` was valid
<edef> nh2: apparently it rejects that now — progress!
<gentauro> symphorien: oh, thanks that worked :)
<gentauro> I think I copy/pasted that line from some online example
<nh2> edef: indeed
<symphorien> I dont't really understand what this line was meant to do
<gentauro> why isn't it needed?
<symphorien> I would reverse the question: what was it needed for ? :þ
<gentauro> :D
<gentauro> bugs created by copy/pasta
<{^_^}> [nixpkgs] @ikervagyok opened pull request #73165 → factorio: update all versions → https://git.io/JeVpw
reallymemorable has joined #nixos
jgeerds_ has quit [Ping timeout: 240 seconds]
gxt has joined #nixos
<gentauro> btw, is there anyway to downgrade `sed` for a specific sandbox?
<gentauro> I can read that `sed` changed their interface from 4.2 and currenlty on NixOS is 4.7 ...
Guest84 has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #73092 → keepassxc: add additional cmake options → https://git.io/JeVum
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/JeVpM
<gentauro> symphorien: this is the blogpost from which I created my default.nix -> https://ariya.io/2016/06/isolated-development-environment-using-nix
<gentauro> `env = buildEnv { name = name; paths = buildInputs; };`
<gentauro> :-\
<__monty__> gentauro: You might be able to use a pin for an older sed.
<gentauro> __monty__: yeah, found `gnused_422`
<red[m]> whoa, symphorien - you're the first person I've ever witnessed use a thorne on irc ;-)
chiefgoat has joined #nixos
chiefgoat has quit [Client Quit]
chiefgoat has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 5 commits to master: https://git.io/JeVpj
LysergicDreams has quit [Ping timeout: 268 seconds]
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @JohnAZoidberg merged pull request #72855 → jasmin: init at 2.4 → https://git.io/JeafC
<{^_^}> [nixpkgs] @JohnAZoidberg pushed 2 commits to master: https://git.io/JeVhJ
<{^_^}> [nixpkgs] @NeQuissimus pushed 5 commits to release-19.09: https://git.io/JeVhT
slack1256 has joined #nixos
chiefgoat has quit [Read error: Connection reset by peer]
chiefgoat has joined #nixos
shibboleth has quit [Quit: shibboleth]
chiefgoat has quit [Client Quit]
chiefgoat has joined #nixos
gerschtli has quit [Quit: WeeChat 2.6]
gerschtli has joined #nixos
chiefgoat has quit [Client Quit]
chiefgoat has joined #nixos
<{^_^}> [nix] @Ericson2314 opened pull request #3219 → Fix extra semicolons warnings → https://git.io/JeVhc
<{^_^}> [nixpkgs] @eadwu opened pull request #73166 → recursive: init at 1.022 → https://git.io/JeVhC
<{^_^}> [nixpkgs] @eadwu opened pull request #73167 → nvidia_x11: 2019 11.1 → https://git.io/JeVhW
chiefgoat has quit [Client Quit]
<{^_^}> [nixpkgs] @eadwu closed pull request #71358 → nvidia_x11_beta: stable -> 440.26 → https://git.io/JeBnF
acarrico has quit [Ping timeout: 276 seconds]
oscarvarto has quit [Quit: oscarvarto]
asymmetric has joined #nixos
asymmetric has quit [Changing host]
<Ericson2314> flokli: is that just that flag, or all the `-D` flags?
<Ericson2314> I would be surprised if this one was different
<evanjs> So I’m on Riot and somebody had a question I totally remember seeing before but can’t remember what the typical solution is.
<arianvp> okay this is scary
<evanjs> How do we typically prefer packages from outside nixpkgs on a non NixOS system?
<arianvp> since updating to latest nixos channel, ssh'ing into github will consistently segfault ssh
<arianvp> on 19.09
<arianvp> :/
<arianvp> segfault in libcrypto.so
<evanjs> ie how would one prefer eg homebrew over nixpkgs on a Darwin system?
chiefgoat has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « vivaldi: 2.9.1705.38-1 -> 2.9.1705.41-1 »: https://git.io/JeVhl
<{^_^}> [nix] @nh2 opened pull request #3220 → manual: nix-shell: Elaborate on using `-p` with expressions → https://git.io/JeVh8
<nh2> edef: ^
<flokli> Ericson2314: meson docs suggest you can pass some of these universal flags via --… directly, but passing via -D… should also always work
<flokli> so I don't think we need to introduce more tooling into nixpkgs for that
Guest84 has quit [Remote host closed the connection]
gagbo has joined #nixos
andreabedini has quit [Ping timeout: 252 seconds]
jgeerds_ has joined #nixos
slack1256 has quit [Remote host closed the connection]
andreabedini has joined #nixos
<arianvp> I just switched a box to 19.09 and `nix-build` command is complaining im "not a trusted user"
<arianvp> any idea how that can happen? aren't all users on NixOS trusted users by default?
<andi-> they are not by default trusted. I wasn't trusted before the update.
<arianvp> ah but I never had problems with --show-trace command before on NixOS
<arianvp> and now it doesn't work anymore. wonder what changed
<arianvp> did that change to being a trusted command, whilst it wasn't in 19.03 ?
<arianvp> that --show-trace is only available for trusted-users is new to me
<{^_^}> nix#3101 (by arcnmx, 7 weeks ago, closed): warning: ignoring the user-specified setting 'show-trace'
shah^ has quit []
<andi-> Maybe I am not running int o that since I am using a fork of nix
<evanjs> Okay so I think we figured the problem out with a different glibc version — it was a rust project so we just overrode the sysroot to the host system rather than nixpkgs
rtjure has quit [Quit: rtjure]
fendor has joined #nixos
tsrt^ has joined #nixos
<evanjs> But it brought up another question: does anybody have an idea of when we might be updating glibc? re #46890
<{^_^}> https://github.com/NixOS/nixpkgs/issues/46890 (by dtzWill, 1 year ago, open): glibc 2.27 -> 2.27+fixes, 2.28?
<Izorkin> flokli: added a comment in #73061
<{^_^}> https://github.com/NixOS/nixpkgs/pull/73061 (by Izorkin, 2 days ago, open): Revert "samba: fix autostart service"
<evanjs> Just found #66528
<{^_^}> https://github.com/NixOS/nixpkgs/pull/66528 (by lblasc, 12 weeks ago, open): glibc: 2.27 -> 2.30 WIP
<evanjs> Looks like aarch64 is the blocker based on the most recent comment
<gentauro> how do I actually overrule gcc with a local sandbox?
bvdw has quit [Read error: Connection reset by peer]
<gentauro> I keep getting `gcc-7.4` even though I add `buildInputs = [ gcc8 ]` ...
<gentauro> spooky
<flokli> Izorkin: okay, sounds reasonable. Can you update the commit message of the existing commit, and add a second one introducing the samba-smdb - samba-nmbd dependency?
kp__ has joined #nixos
bvdw has joined #nixos
<Izorkin> flokli: changed to - "Revert "samba: fix autostart service". Redundancy value." ?
<flokli> I wouldnt call it revert, at least not in the first line of the commit msg. Something like "samba: remove redundant dependency on network.target\nThis reverts commit xxxx. We already set after=network.target on samba.target.
drakonis_ has joined #nixos
<flokli> s#^samba#nixos/samba#
<{^_^}> [nixpkgs] @risicle closed pull request #73161 → libxslt: add patch for CVE-2019-18197 → https://git.io/JeVNx
<flokli> Izorkin: and the second one could be "nixos/samba: start samba-smbd after samba-nmbd".
<flokli> Still, I'm confused on how exactly it broke on your side, and whether we can somehow cover that in the test, too.
drakonis has quit [Ping timeout: 250 seconds]
<Izorkin> flokli: fixed. how to make a launch samba-smbd after samba-nmbd - I do not know. My variant is not working.
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
cyris212 has joined #nixos
<flokli> Izorkin: define it's not working. What are the symptoms? Error logs? Also, please push the new commit messages, and let's move discussion back into the issue.
acarrico has joined #nixos
<{^_^}> [nixpkgs] @judaew opened pull request #73168 → btrfs-progs: 5.2.2 -> 5.3.1 → https://git.io/JeVhQ
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 5 commits to nixpkgs-19.09-darwin: https://git.io/JeVhT
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/daf14e278f7 (from 66 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
jgeerds_ has quit [Ping timeout: 252 seconds]
karetsu has joined #nixos
phaebz has quit [Remote host closed the connection]
phaebz has joined #nixos
rtjure has joined #nixos
<karetsu> I'm having a dbus issue - my user dbus goes inactive (dead) shortly after login [not sure if its meant to do this], I can't use notify-send as the messages just disappear into a void with no error but no notification and I cannot unlock any admin panels in gnome-control-center with a permissions error [yes, my user is wheel] - is this dbus or accountsservice at fault?
rtjure has quit [Client Quit]
rtjure has joined #nixos
rtjure has quit [Client Quit]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
doelie has joined #nixos
<doelie> hi. is there a reason why binutils doesn't export objcopy? any other package that exports it?
<doelie> binutils maps to binutils-wrapper it seems
<__monty__> ,locate bin objcopy
<{^_^}> Found in packages: binutils-unwrapped
stepcut has joined #nixos
<stepcut> Is there a way to get nix-env -q to show all the emacs packages that are available? Or any query at all that will show that nix-mode is available?
<karetsu> stepcut: doesn't `package-activated-list` in emacs show nix-mode?
<stepcut> karetsu: Well, at this stage I have not even installed emacs or nix-mode..
jgeerds_ has joined #nixos
<gentauro> stepcut: `nix-env -qaP | grep 'emacs'`?
<gentauro> stepcut: but I use `melpa` myself for e-macs
<adisbladis> stepcut: I believe not (because the emacs package sets use dontRecurseIntoAttrs)
<karetsu> I use doom
<stepcut> gentauro: that returns a few things like emacs, emacs25, etc, but nothing from emacsPackagesNg
<karetsu> so same
<adisbladis> stepcut: You could use the repl to explore the emacs package set
<adisbladis> stepcut: Also emacsPackagesNg is deprecated, use emacsPackages.
<gentauro> adisbladis: why would you use `nix` to install emacs pkgs?
<gentauro> isn't that what emacs do?
<adisbladis> gentauro: Because nix does it better?
<adisbladis> I can reproduce my setup
<gentauro> adisbladis: how come?
<adisbladis> And get things with native dependencies working easily
<adisbladis> Like vterm, or pdf-tools
<gentauro> I mean, I seem to do fine with `melpa` :)
<stepcut> gentauro: so that when I setup a new machine, nix-mode is already installed
<adisbladis> gentauro: We index all of melpa
wuehlmaus has joined #nixos
<karetsu> adisbladis: I can replicate my setup completely with doom as well...
wuehlmaus has left #nixos ["Aus, die Maus"]
<adisbladis> karetsu: Not really though
<gentauro> so `nix` responsability is just to do it all?
<adisbladis> gentauro: Yes
<gentauro> so much for the `unix motto`: "Do one thing well"
<adisbladis> Shameless self plug: https://github.com/nix-community/emacs-overlay
<adisbladis> stepcut: Anyway, I'd use the repl :)
<stepcut> adisbladis: :(
<adisbladis> And everything from elpa/melpa/org is available under their upstream package names
<adisbladis> So if you know that you don't have to search
<stepcut> nix-env -q is pretty useless IMO
asymmetric has quit [Ping timeout: 268 seconds]
<gentauro> stepcut: howcome?
<gentauro> it seems to work ok
<stepcut> gentauro: not if you want to query emacs pacakges, haskell packages, etc, which is pretty much all I do
testy has joined #nixos
<adisbladis> gentauro: Well... In this case "do it all" means manage packages, regardless of what those packages are for
<adisbladis> Emacs is a pretty bad package manager ;)
<adisbladis> Also emacs in not unixy at all
Thra11_ has quit [Ping timeout: 240 seconds]
karetsu has quit [Quit: WeeChat 2.6]
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
<gentauro> stepcut: `-UUU:----F1 *scratch* All (4,0) (Lisp Interaction ElDoc) -------------------------------------|-UUU:----F1 *scratch* All (1,0) (Lisp Interaction ElDoc) --------------------------------------
<gentauro> M-x package-list-packages`
<gentauro> to much copy/pasta from `emacs` :D
<gentauro> it was just ment to be: `M-x package-list-packages`
wikiemol has joined #nixos
<gentauro> there you can see the pkgs for emacs. At least it's what I use
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
cyris212 has joined #nixos
drakonis has joined #nixos
<adisbladis> gentauro: That's not what stepcut asked for though, it was to search in emacs package names from nixpkgs
noudle has quit []
<gentauro> adisbladis: ahhh, didn't see that
<stepcut> gentauro: well.. I am trying to do things like use nixops deploy to setup a server that emacs available with nix-mode and other packages already installed. So I need to know the nix attribute names. In my case, `emacsPackagesNg.melpaStablePackages.nix-mode`. But I'd be great if I could get `nix-env -q` to find that attribute path for me
<adisbladis> stepcut: You could do something like: nix-instantiate --eval --expr 'builtins.toJSON (builtins.attrNames (import <nixpkgs> {}).emacsPackages)' | jq -r '.' | jq -r
<stepcut> (also, I am currently using an old nixpkgs-stable snapshot when Ng was still Ng)
<adisbladis> It's not pretty, but works in a pinch
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
<gentauro> stepcut: but you know from what adisbladis said that all of the melpa pkgs are somehow `scraped`. Could you download/search for `nix` and the prependt the static `emacsPackagesNg.melpaStablePackages`?
cosimone has joined #nixos
<wikiemol> I am kind of confused as to the point of nix-shell. What are the use cases for it? I thought it was to test go into a "sterile" environment where only the environment variables from the .nix file are loaded. But this doesn't seem to be the case
rauno has quit [Ping timeout: 246 seconds]
<stepcut> adisbladis: that's pretty horrible. :) Sounds like I am correct in thinking that `nix-env -q` is pretty terrible -- it is slow and can't find half the packages in nix anyway
evanjs has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #73169 → roundcube: 1.3.10 -> 1.4.0 → https://git.io/JeVj0
<symphorien> wikiemol:you can use --pure for this
<adisbladis> stepcut: That's by design.. A full eval takes a long time
<gentauro> wikiemol: I use it to install stuff in a local sandbox (binaries only accesible from that nix-shell)
<stepcut> gentauro: there are many things I *could* do, the question is whether `nix-env -qa` whose entire purpose is to do that for me, can actually do it
<stepcut> gentauro: and the answer seems to be 'no'
<wikiemol> symphorien --pure still seems to bring in the environment variables from my regular environment
<symphorien> it brings in your bashrc
<symphorien> but it should not bring in arbitrary env vars
<stepcut> adisbladis: yup! if the query included all the emacs, haskell, python, etc, libraries by default it would take foreveeeeeer.
<wikiemol> Ooh, is there a way to get it to not bring in the bashrc?
<symphorien> it executes bash
<stepcut> adisbladis: but.. it would still be nice if something like, `nix-env -qaP emacsPackages.\.*` worked
<symphorien> so --run "the invocation of bash with right option to have it skip bashrc" might do
<adisbladis> stepcut: Though we could certainly change it to include emacs packages.. But that's a few thousand extra packages to eval :/
<__monty__> stepcut: Have you tried emacsPackages.\*?
<red[m]> @wikiemol - ever had different packages that can’t coexist on the same machine, either because they share the same name or have dependencies that are incompatible?
<red[m]> It solves that problem
<wikiemol> symphorien Gothcha, that makes sense
<__monty__> wikiemol: That *is* the case when you use nix-shell --pure. Or should be at least : )
<mightybyte> Anyone know how to set system-wide ulimits in nixos?
Thra11_ has joined #nixos
<mightybyte> I haven't found anything in the docs or Appendix A
<__monty__> The impurity is often useful so you can use some tools from your environment when testing a package.
<adisbladis> ++
<adisbladis> Develop in impure shell, run tests in pure shell
<stepcut> __monty__: I have tried many variations of that, with -qa and -qaP. But maybe I have not gotten the right combination of things
<__monty__> stepcut: It may not be possible. Just know it works for haskellPackages. -qaAP nixpkgs.haskellPackages
<wikiemol> Interesting, thanks everyone. I think I must have done something strange when I was experimenting. I opened a new terminal and there are far less environment variables now.
<wikiemol> When I go into nix-shell --pure
Chiliparrot has joined #nixos
<__monty__> stepcut: Actually it doesn't with the wildcard.
<__monty__> And *-qaPA
<stepcut> adisbladis: right -- that is why it would be nice if there was I way I could specify that I want to eval those (and only those) packages..
<{^_^}> [nixpkgs] @aanderse merged pull request #72877 → insomnia: 6.6.2 -> 7.0.3 → https://git.io/JeaZY
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JeVjV
sweep has joined #nixos
sweep is now known as genesis
genesis has joined #nixos
genesis has quit [Changing host]
<stepcut> __monty__: oh! That seems to be the key, the -A flag
<__monty__> Oh, so it works? Great : )
<stepcut> __monty__: works better than anything I've tried. trying to figure out if I can get it to match on just nix-mode or if I need to use grep
<Thra11_> Has anyone ever tried writing an overlay which imposes a minimum version on a package? I.e. it checks super.version, and only overrides it if it's below the minimum. I can't see any reason why you *couldn't* do this, I'm just wondering whether it's a good idea.
<__monty__> stepcut: You can, but I prefer putting that output in a file and then grepping that because it needs to evaluate nixpkgs entirely every time.
<adisbladis> Thra11_: Sure, why not?
<stepcut> this works, nix-env -qaA 'emacsPackagesNg' | grep nix-mode, but maybe there is a 'better way'
<stepcut> also, it gets mad if I try to use -A and -P at the same time
<stepcut> oh, the P has to go before the A
<__monty__> stepcut: Yeah, that's my *-qaPA comment.
<stepcut> yeah
<__monty__> You can try specifying 'emacsPackagesNg.nix-mode' and add --description
<stepcut> it looks like when using -A you can not use a regex?
<__monty__> I don't think you ever can when selecting an attribute?
<stepcut> __monty__: not that I am aware.. just checking :)
<__monty__> ,locate nix-mode
<{^_^}> Found in packages: nix1
<__monty__> Ah, I guess nix-locate doesn't recurse into emacsPackagesNg either.
<__monty__> I guess you could do an overlay where you override dontRecurseIntoAttrs, call it "emaxpkgs" in NIX_PATH and then use `-f '<emaxpkgs>'` with locate or just nix-env for querying.
drakonis_ has quit [Ping timeout: 246 seconds]
<gentauro> didn't know aoubt `nix-shell --pure`. It's kind of nice
dansho_ has joined #nixos
<gentauro> so you can ensure that you can't call stuff that is not part of the project :o
<gentauro> I like it
drakonis_ has joined #nixos
<{^_^}> [nixpkgs] @MarcFontaine opened pull request #73170 → fix ghc-paths-nix-ghcjs.patch → https://git.io/Jewev
drakonis1 has joined #nixos
<manveru> gentauro: note that --pure may not be fully pure :)
drakonis_ has quit [Ping timeout: 276 seconds]
<manveru> since for example stuff like bash will still read your ~/.bashrc
growpotkin has joined #nixos
eightyone has joined #nixos
rtjure has joined #nixos
ng0 has quit [Ping timeout: 260 seconds]
jluttine has quit [Ping timeout: 240 seconds]
tungdil has joined #nixos
acarrico has quit [Ping timeout: 240 seconds]
<tungdil> Hi! I'm having a problem using NixOS in GnomeBoxes. The mouse does not work properly (mouse cursor gets stuck or jumps to host system). Any hint?
ng0 has joined #nixos
Thra11_ has quit [Ping timeout: 240 seconds]
<betaboon> does anyone know if the installer boots in efi mode ?
<adisbladis> betaboon: It can
stepcut has quit [Remote host closed the connection]
<samueldr> it should
pointfourone has joined #nixos
<betaboon> argh this is driving me nuts. I'm just working non the tests for #58121. "problem" is, that the initial installation in the tests are done booted in bios-mode. thus no efivars are available and that just has a chain of impacts ...
<{^_^}> https://github.com/NixOS/nixpkgs/pull/58121 (by betaboon, 33 weeks ago, open): nixos/refind: init
<{^_^}> [nixpkgs] @samueldr merged pull request #72751 → sd-image: Add the compressed file path for hydra. → https://git.io/Je2Ob
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/Jewej
<betaboon> does anyone have a strong opinion against installing the efi-bootloader to ESP:/EFI/BOOT ?
<samueldr> do you mean as the default fallback location?
<samueldr> (e.g. bootx64.efi)
<betaboon> samueldr: yeah. in the place of the default fallback location. i could go into more detail if anyone is interested.
<samueldr> I think it should be gated behind a flag like the grub one
<{^_^}> [nixpkgs] @aanderse merged pull request #72682 → tome4: 1.5.10 -> 1.6.0 → https://git.io/Jeg56
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/Jewvm
<samueldr> in fact, that option should probably be moved to the `efi` option set
<samueldr> (and aliased)
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @B4dM4n opened pull request #73171 → qalculate-gtk: add icon theme → https://git.io/JewvZ
<wikiemol> If I want to use the version of nix that is currently in master, what are the steps to do so?
jmeredith has quit [Quit: Connection closed for inactivity]
<wikiemol> I saw some mention of this on the website https://nixos.org/nix/download.html in the continuous builds section, but it seems the documentation is sparse
<betaboon> samueldr: yeah thats what i am struggling with. let me elaborate a bit: initial nixos-install in tests is run in bios-mode -> thus no efivars -> thus it is required to install into the fallback location -> thus installer-tests need to check for bootloader config to be located there. systemd-boot just installs itself to fallback location anyway.
<samueldr> imo, here systemd-boot is rude :)
<samueldr> and I do see your issue
<samueldr> I'm checking out your branch to have a better look
Thra11_ has joined #nixos
<betaboon> samueldr: i am considering enforcing refind to be installed into the fallback location. but that feels weird
<samueldr> yeah, that's not a good solution
<samueldr> though having the install as removable flag moved under the more generic boot.loader.efi namespace, and then installing there when it is true, would be fine I think
<betaboon> but if i dont do that, the location for the configuration file will be different depending on whether it has been installed in bios-mode or efi-mode. thus there will be a hidden assumption on the tests.
<samueldr> ooh, I see
<samueldr> I hadn't thought about how refind confs are relative to the binary
<betaboon> yeah. i looked into getting it to a different location. but that wont work.
<{^_^}> [nixpkgs] @Ma27 pushed to structured-attrs « glib: patch python3 shebangs for gdbus-codegen »: https://git.io/Jewvu
<samueldr> still, wouldn't the assumption hold true in all cases, that if it's installed a removable, it's in /EFI/BOOT, otherwise in (IIRC) /EFI/NixOS/ ?
gxt has quit [Ping timeout: 260 seconds]
<samueldr> maybe I'm not seeing what the issue is
<betaboon> moving the installassremovable option to the generic efi-options seems good. but it seems like that wont be possible due to systemd-boot not supporting that kind of option
<betaboon> brb in 5 minutes
<samueldr> yeah, I wouldn't put the work on making all EFI bootloader respect that option in that PR anyway
jedai42 has quit [Ping timeout: 265 seconds]
jluttine has joined #nixos
zupo has joined #nixos
<hyperfekt> can anyone here read makefiles and tell me what i have to do to the qemu derivation to get it to install with debug symbols?
LysergicDreams has quit [Ping timeout: 265 seconds]
<gentauro> 19:18 < manveru> since for example stuff like bash will still read your ~/.bashrc
<gentauro> what if my .bashrc is empty? :D
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
cyris212 has joined #nixos
LysergicDreams has joined #nixos
tungdil has quit [Ping timeout: 260 seconds]
<betaboon> samueldr: now talking to you and learning about the existence of installasremovable i would like to do the following: add installasremovable to refind options -> have that option enforce installing to fallback location -> in the installer tests use installasremovable and check for refind.conf in fallbacklocation -> removing the hidden assumption from tests and being a good citizen on efi-mode
<betaboon> installations. opinions ?
<samueldr> the main thing to remember is --pure is mainly pure through environment variable isolation; all other impurities subsist :)
pointfourone has quit [Quit: WeeChat 2.6]
<samueldr> betaboon: sounds good
mexisme has quit [Ping timeout: 252 seconds]
<samueldr> "removing hidden assumption from tests", does that mean fixing what seems to be the issue with the initial boot being in bios mode?
<betaboon> samueldr: nice. thanks for bouncing ideas :D had been locked in a circle for an hour.
<betaboon> samueldr: yes.
<samueldr> good
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to structured-attrs: https://git.io/Jewvy
<betaboon> when trying to install refind from within bios-mode there is no other way than installing to fallback location IMHO
<clever> nh2: ^
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 12 commits to nixos-19.09: https://git.io/JeVFO
Neo-- has joined #nixos
<samueldr> betaboon: I think so, too
<samueldr> betaboon: since the EFI services are not present to configure the EFI variables
<samueldr> which AFAIUI is a reason for the grub option
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/2d896998dc9 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
<edef> clever: ah, we just parenthesise it now
<clever> edef: yep
<clever> with the modern code, that turns into:
<clever> with import <nixpkgs> {}; pkgs.runCommandCC "shell" { buildInputs = [ (]; foo = [) ]; } ""
<clever> thats what allows `nix-shell -p 'foo bar'` to work right, even in a nix list
<clever> (function application)
<edef> edef@platypus ~> nix-shell -p 'null) ]; baz = [ (null'
<betaboon> samueldr: it's just weird that systemd-boot seems to be so rude
<edef> [nix-shell:~]$
<samueldr> betaboon: to me too, though it feels likely to be part upstream behaviour, part "first EFI bootloader in nixpkgs" legacy
o1lo01ol1o has joined #nixos
<samueldr> time eludes me, and I've not made myself favours in the matter with starting work on other nixos stuff... but I wanted to study all bootloader things in nixpkgs, and better consolidate things
<betaboon> samueldr: when you have a plan of action and would like some help just hit me up
<betaboon> unemployed for the rest of the year so i got some time on my hands XD
<samueldr> no real plan :) the first step was to take inventory of everything bootloadery (including u-boot, and raspberry specific options) and make a kind of feature matrix
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 5 commits to nixos-19.09-small: https://git.io/JeVhT
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/daf14e278f7 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<betaboon> samueldr: i finaly found where bootctl installs systemd-boot to the fallback location.... this is.. well: https://github.com/systemd/systemd/blob/master/src/boot/bootctl.c#L621
jakubracek has joined #nixos
Phillemann has joined #nixos
<samueldr> hmm, I think I looked at that at one point, raised a few eyebrows, closed the tab
<Phillemann> Hi! I just upgraded nixos-unstable after a 3 week hiatus. Now "gpg -d" fails and tells me "no pinentry".
<Phillemann> Did anything change here?
<{^_^}> [nixpkgs] @edolstra opened pull request #73172 → kde_applications: 19.08.1 -> 19.08.2 → https://git.io/JewfU
<jakubracek> Hi, having a problem with my nixos. Can't really login. Broke display-manager somehow and TTY just keeps asking me for login over and over again. So I decided to chroot into the partition from the live usb but I can't really do that. I've mounted my root into /mnt but nixos-enter keeps saying that the /mnt is not a nixos installation?
<clever> jakubracek: if you `ls /mnt/` what files do you see?
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #73173 → gcc: Clean up cross configure flags and name prefix → https://git.io/JewfI
<{^_^}> [nixpkgs] @NeQuissimus merged pull request #72801 → nodePackages: Add gitmoji-cli → https://git.io/Je2KF
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/JewfY
pointfourone has joined #nixos
<jakubracek> I ran 'lsblk', saw my partition named nvme0n1p2. So I did `cryptsetyp luksOpen /dev/nvme0n1p2 enc-pv`. `lvscan` and `vgchange -ay` now mounted `mount /dev/nixos-vg/root /mnt`
<jakubracek> I can see there normal root. like bin, boot, home, nix, tmp, var' ...
<jakubracek> `ls /mnt` outputs normal root. like bin, boot, home, nix, tmp, var' ...
cosimone has quit [Quit: Quit.]
acarrico has joined #nixos
<samueldr> ah!, betaboon, I was doing something else on the side, and got confused with the tests... not pushed to the PR branch yet, right? :)
<jakubracek> I am only really interested in chroot in there and run `nixos-rebuild --switch` but when trying to `chroot /mnt` then I get `/run/current-system/sw/bin/bash` No such file
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #73175 → gcc: Clean up cross configure flags and name prefix for 19.09 → https://git.io/Jewfc
<betaboon> samueldr: nope not pushed yet. just working in what we discussed. always takes some time. installer-tests take "forever" XD
<samueldr> I was going to have a look at your test, but couldn't figure out where it was :)
ddellacosta has joined #nixos
<betaboon> samueldr: will give you a heads up when i pushed it
LysergicDreams has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 16 commits to nixos-unstable-small: https://git.io/JewfC
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/dadafc211e7 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
LysergicDreams has joined #nixos
<jakubracek> omg, I finally chrooted there, I had to touch /mnt/ect/NIXOS file??
zupo has joined #nixos
<clever> jakubracek: nixos should create that file on the first bootup
kenran has joined #nixos
pinkien has joined #nixos
<pinkien> hi all
<pinkien> trying to build configuration for new desktop nixos instance. but failling on https://paste.vpsfree.cz/hXiMx2Gl/ any ideas?
<pinkien> loooks like bad type of partition, but gparted says its fine
<clever> pinkien: what partition did you mount to /mnt/boot/ ?
<NoctisLabs> Is there any way to add flatpak repos and applications via configuration.nix?
chiefgoat has quit [Read error: Connection reset by peer]
<babariviere[m]> does your system support efi ?
<mica[m]> pinkien: efi needs a very specific partition type with specific flags set
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pinkien> its kinda new amd heater, i guess its efi friendly
<pinkien> fuuu :/
<mica[m]> NoctisLabs: write a shell script in your .nix file to do it
<pinkien> gdisk says EF00 EFI System
<jakubracek> @clever Yeah I think it didn't do more than that. I've the system for over a year now but I still had some permission issues which I think the installer did setup incorrectly
<clever> pinkien: what partition did you mount to /mnt/boot/ ?
<pinkien> ah, now i see
<pinkien> i mounted wrong partition
<drakonis> pinkien: it stopped being a heater a while ago i guess
<pinkien> drakonis so far i feel right now.. its better than regular heater
<pinkien> but of course, im just joking in general
Neo-- has quit [Ping timeout: 252 seconds]
Thra11_ has quit [Ping timeout: 265 seconds]
jedai42 has joined #nixos
<betaboon> samueldr: does the possibility exist that the bootloader is reinstalled at a later point? I'm asking due to following scenario: initial install is done in bios-mode using installAsRemovable -> later installAsRemovable is set to false -> bootloader is installed in second location !?
<betaboon> samueldr: in those kind of situation it might be possible to move the bootloader.
<samueldr> I'd have to review the conditions for bootloader installation, but IIRC changing options for the bootloader imply a reinstall
<samueldr> (of the bootloader)
<clever> pinkien: what partition did you mount to /mnt/boot/ ?
<samueldr> otherwise you couldn't change from grub to systemd-boot, or the reverse
<pinkien> clever i mounted originally EF02, BIOS partition
<pinkien> EFI was supposed to be the boot one, unencrypted with luks
<pinkien> i guess
<pinkien> building passed.. lets burn it with reboot now :]
pinkien has quit [Remote host closed the connection]
<betaboon> samueldr: but will chaning the bootloader remove the old one?
<samueldr> betaboon: I don't think so
<samueldr> I don't know that we have the ability to know it should or shouldn't remove a bootloader
<samueldr> but, assuming efibootmgr can touch variables, it will set the new one as the default one
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73173 → gcc: Clean up cross configure flags and name prefix → https://git.io/JewfI
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/Jewfo
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73175 → gcc: Clean up cross configure flags and name prefix for 19.09 → https://git.io/Jewfc
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-19.09: https://git.io/JewfK
<{^_^}> [nixpkgs] @veprbl pushed commit from @offlinehacker to release-19.09 « facetimehd-firmware: 1.43_4 -> 1.43_5 »: https://git.io/JewfX
<__monty__> clever: Do you have experience with bonding on nixos? http://ix.io/214y
<{^_^}> [nixpkgs] @veprbl pushed commit from @offlinehacker to release-19.03 « facetimehd-firmware: 1.43_4 -> 1.43_5 »: https://git.io/Jewf1
<clever> __monty__: not really
mexisme has joined #nixos
Neo-- has joined #nixos
Thra11_ has joined #nixos
kenran has quit [Ping timeout: 240 seconds]
rtjure has quit [Quit: rtjure]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @risicle to nixos-19.03 « jhead: add patches for CVE-2019-1010301, CVE-2019-1010302 »: https://git.io/JeVAm
LysergicDreams has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/e5bd0cfcd53 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
LysergicDreams has joined #nixos
chiefgoat has joined #nixos
chiefgoat has quit [Remote host closed the connection]
Chiliparrot has joined #nixos
Neo-- has quit [Ping timeout: 252 seconds]
chiefgoat has joined #nixos
stepcut has joined #nixos
<evanjs> So has anybody else been getting weird errors with nixos-option lately? Like usually it'll give me an idea of where things go wrong
<evanjs> But lately it's just 'an error occured when looking for attribute names'
<evanjs> with `--verbose` I can go up and I think I have an idea of where things break, but certain messages seem a tiny bit less helpful now without e.g. `--verbose`
cosimone has joined #nixos
<{^_^}> [nixpkgs] @seppeljordan opened pull request #73176 → pypi2nix: 2.0.0 -> 2.0.1 → https://git.io/Jewfh
<pittma> I'm experiencing some fontconfig weirdness with my Ubuntu-with-Nix laptop. Maybe the version of fontconfig that Nix is using doesn't match what is installed via Ubuntu? It seems to be unhappy with the content of /etc/fonts/font.conf.
<pittma> I'm seeing, for instance "Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version" when trying to start the desktop irccloud app (which then crashes / core dumps). If I navigate to wher ethe AppRun lives and run it directly, all's well.
<pittma> I can see that Nix is running it with its own bash which is what led me down the road of mismatched fontconfig versions.
<emily> I would guess that the core dump is unrelated to the fontconfig error, fwiw
<emily> unfortunately I don't have concrete advice beyond that
o1lo01ol1o has quit [Remote host closed the connection]
wikiemol has quit [Remote host closed the connection]
<pittma> It works when run it directly i.e. `./AppRun` from within the nix-store directory, I presume because the necessary environment is in order (from my shell)
<pittma> *I run it directly
<pittma> But that script is running it from Nix's installation of Bash: `#!/nix/store/zavn4np1jvm79f0rafkv0p1mrag09qkz-bash-4.4-p23/bin/bash`
<pittma> ah, yeah, nixpkgs has 2.10 and 2.12 available and I've got 2.13 installed.
chiefgoat has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<clever> ,profiling
chiefgoat has joined #nixos
<{^_^}> Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
bvdw has quit [Quit: bvdw]
bvdw has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @offlinehacker to nixpkgs-19.03-darwin « facetimehd-firmware: 1.43_4 -> 1.43_5 »: https://git.io/Jewf1
<{^_^}> [nixpkgs] @ehmry merged pull request #73162 → monero: 0.14.1.2 -> 0.15.0.0 → https://git.io/JeVxf
<{^_^}> [nixpkgs] @ehmry pushed 5 commits to master: https://git.io/JewJ6
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/6c08aa0d57e (from 46 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
bvdw has quit [Client Quit]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bvdw has joined #nixos
<{^_^}> [nixpkgs] @ehmry closed pull request #73124 → monero: 0.14.1.0 -> 0.15.0.0 → https://git.io/JeVip
bvdw has quit [Remote host closed the connection]
bvdw has joined #nixos
dansho_ has quit [Quit: Leaving]
dansho has quit [Quit: Leaving]
Thra11_ has quit [Ping timeout: 268 seconds]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
zupo has joined #nixos
<{^_^}> [nixpkgs] @curiousleo opened pull request #73177 → sequoia: 0.10.0 -> 0.11.0 → https://git.io/JewJF
leotaku has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @risicle opened pull request #73178 → libxml2: 2.9.9 -> 2.9.10, libxslt: 1.1.33 -> 1.1.34, addressing CVE-2019-18197 → https://git.io/JewJp
<{^_^}> [nixpkgs] @markuskowa opened pull request #73179 → nixos/slurm: fix test and X11 options → https://git.io/JewJh
LysergicDreams has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #73180 → gcc: Deduplicate `preConfigure` and `configureFlags` → https://git.io/JewUJ
Thra11_ has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #73181 → gcc: Deduplicate `preConfigure` and `configureFlags` → https://git.io/JewUT
<{^_^}> [nixpkgs] @cpages merged pull request #72736 → SDL2: Keep .a files on `dontDisableStatic`; don't move them to $dev; prune .la → https://git.io/Je2kl
<{^_^}> [nixpkgs] @cpages pushed 2 commits to staging: https://git.io/JewUt
<Thra11_> I want to override `version` in an overlay. Do I have to manually override all the other bits which used the original version attribute, such as src urls, or can I make it use the new version wherever the overridden version was used?
<{^_^}> [nixpkgs] @avdv opened pull request #73182 → wtf: 0.23.0 -> 0.24.0 → https://git.io/JewUY
o1lo01ol1o has quit [Remote host closed the connection]
LysergicDreams has joined #nixos
<Thra11_> (I'm overriding mesa, in case that makes a difference)
leotaku has joined #nixos
<symphorien> you have to override everythinh
o1lo01ol1o has joined #nixos
<betaboon> samueldr: i just pushed my changes to #58121
<{^_^}> https://github.com/NixOS/nixpkgs/pull/58121 (by betaboon, 33 weeks ago, open): nixos/refind: init
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @offlinehacker to nixos-19.03-small « facetimehd-firmware: 1.43_4 -> 1.43_5 »: https://git.io/Jewf1
stepcut has quit [Remote host closed the connection]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/6c08aa0d57e (from 81 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<Thra11_> symphorien: Ok. Thanks. Presumably if you did want to let other people just change the version of a package, you could make version an argument to the function instead (but you'd still have to override src hashes and so on, so maybe it's not as helpful as it first seems)
<symphorien> yes
philr has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 3 commits to nixos-19.09-small: https://git.io/JewUP
jakubracek has quit [Ping timeout: 260 seconds]
laudecay has joined #nixos
boogiewoogie has joined #nixos
hpfr has quit [Remote host closed the connection]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/32dfdb0b54d (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
laudecay has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73180 → gcc: Deduplicate `preConfigure` and `configureFlags` → https://git.io/JewUJ
<{^_^}> [nixpkgs] @Ericson2314 pushed 4 commits to master: https://git.io/JewUM
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73181 → gcc: Deduplicate `preConfigure` and `configureFlags` → https://git.io/JewUT
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to release-19.09: https://git.io/JewUD
chloekek has quit [Ping timeout: 265 seconds]
<Thra11_> When referring to lib in an overlay, should I use self.lib (rather than super.lib)?
<boogiewoogie> anyone else having issues upgrading the system on the 19.09 channel?
<clever> Thra11_: that only matters if other overlays are changing lib
<clever> Thra11_: i would prefer self.lib in most cases though
aveltras has quit [Quit: Connection closed for inactivity]
<Thra11_> clever: Wouldn't it only matter it *this* overlay changed lib? other overlays would affect super.lib if applied before this, no?
<gchristensen> Thra11_: it might help your mental model if "self" had been called "final"
<clever> Thra11_: if you use super.lib, then you will ignore what future overlays did to lib
<Thra11_> It appears my understanding of how overlays are applied is too simplistic
<Thra11_> / wrong :)
<clever> Thra11_: super is the result of all previous overlays being applied
<clever> Thra11_: self is the result of every overlay being applied
<clever> each overlay gets a different super, which builds up as nix goes thru the overlay list
<Thra11_> I got the super bit. Hadn't quite realised how special self was though
<gchristensen> there ha sbeen chat about renamig it to final
<EsperLily> ,locate which
<{^_^}> Found in packages: zsh, atom, which, heroku, meteor, toybox, busybox, brackets, atom-beta, kibana-oss, nodejs-6_x, nodejs-8_x, simplenote, zsh-prezto, debianutils, factor-lang, nodejs-10_x, nodejs-11_x, nylas-mail-bin, nodePackages.bower, nodePackages.hueadm, nodePackages.meguca, nodePackages.triton, nodePackages.fast-cli, nodePackages.peerflix-server, nodePackages.create-cycle-app
<clever> ,locate bin which
<EsperLily> ahh
<{^_^}> Found in packages: which, toybox, busybox, debianutils
<gchristensen> > pkgs.which
<{^_^}> [nixpkgs] @lheckemann merged pull request #65362 → calls: init at 0.0.1 → https://git.io/fjDyu
<{^_^}> "<derivation /nix/store/482nvrkd5047iqhpyqiwnvp960b0g2kv-which-2.21.drv>"
<{^_^}> [nixpkgs] @lheckemann pushed 4 commits to master: https://git.io/JewUN
<NoctisLabs> Can someone point me to an example of adding a shell script to configuration.nix?
<EsperLily> hmm ok, I'm surprised it has its own package at all
<gchristensen> > :p pkgs.which.meta
<{^_^}> { available = true; description = "Shows the full path of (shell) commands"; homepage = "https://www.gnu.org/software/which/"; license = { fullName = "GNU General Public License v3.0 only"; shortName ...
<gchristensen> which is also a shell builtin for some shells
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #73183 → monero: 0.14.1.0 -> 0.15.0.0 [backport] → https://git.io/JewUA
<EsperLily> huh I didn't realize zsh had it as a builtin. bash uses `type` for the same functionality
<clever> EsperLily: some people alias which to a special cmd, that pipes all aliases and shell builtins to which
<EsperLily> I'm actually vaguely surprised `which` isn't available in the basic stdenv, I would have assumed it's used often enough
<clever> $ type -P ls
<clever> /run/current-system/sw/bin/ls
<boogiewoogie> https://hastebin.com/inunevipil.nix <-- it seems like it's trying and failing to build "facetimehd" and thus failing the system rebuild? I don't know that package, is anyone else having this problem? channel is 19.09
<clever> EsperLily: bash can do the same thing, on its own
<EsperLily> sure, just not with the name `which`
<clever> boogiewoogie: its some firmware for apple hardware
<EsperLily> I'm just looking into this because of a PR that adds `which` as a build input
<boogiewoogie> clever: is it mandatory? seems weird to to build it on this non-apple machine :p
<clever> boogiewoogie: theres already a pr somewhere to fix it
<NoctisLabs> Thanks, I'll take a look,
<gchristensen> boogiewoogie: it is turned on if you have enableAllFirmware set to true
<boogiewoogie> clever: oh beautiful! almost expected that!
<Thra11_> Is it possible you might need firmware for apple hardware if running linux on apple hardware?
<boogiewoogie> gchristensen: ahh, I see! makes sense
<Thra11_> (Not sure what sort of hardware we're talking about in this case)
<clever> Thra11_: facetimehd is only needed if you want to use the facetime (webcam) on a macbook, i think
<samueldr> iMac probably too
<Thra11_> clever: So probably not commonly needed, but people do run linux on those?
<clever> Thra11_: some do
<clever> boogiewoogie: https://github.com/NixOS/nixpkgs/pull/72804 looks like its been fixed on unstable
<{^_^}> #72804 (by offlinehacker, 5 days ago, merged): facetimehd-firmware: 1.43_4 -> 1.43_5
<clever> boogiewoogie: and 2 hours ago, the status was changed to "has port to stable", so maybe we just have to wait for stable to update?
<samueldr> already passed -small it looks like
LysergicDreams has quit [Ping timeout: 265 seconds]
<boogiewoogie> clever: thanks for passing the info! not in a hurry though, so it's all good :) I'm trying to update without enableAllFirmware for now. can't even quite remember why I enabled it in the first place :p
<NoctisLabs> @clever Thanks a lot for sharing this config, I feel like if I chew through this I can learn a lot.
philr has quit [Ping timeout: 240 seconds]
fusion809 has quit [Remote host closed the connection]
LysergicDreams has joined #nixos
abathur has joined #nixos
Soo_Slow has quit [Quit: Soo_Slow]
<EsperLily> I forget, where can one find builds of the manual from the unstable channels?
<betaboon> samueldr: saw the headsup ?
<samueldr> yeah
shibboleth has joined #nixos
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos
<betaboon> well I'm off to bed.
mexisme has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #73184 → gcc: Fix cross after I accidentally changed build target → https://git.io/JewTS
testy has quit [Read error: Connection reset by peer]
testy has joined #nixos
testy has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73184 → gcc: Fix cross after I accidentally changed build target → https://git.io/JewTS
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/JewTH
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #73185 → gcc: Fix cross after I accidentally changed build target → https://git.io/JewTQ
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73185 → gcc: Fix cross after I accidentally changed build target for 19.09 → https://git.io/JewTQ
_reanimus_ has quit [Quit: Logging off...]
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-19.09: https://git.io/JewT5
xkapastel has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
testy has joined #nixos
shreyansh_k has joined #nixos
<shreyansh_k> Hello, can you confirm if nixops supports AWS's Paris (eu-west-3) region? I'm trying to use it but it keeps throwing the error: "Exception: invalid EC2 region ‘eu-west-3’".
<{^_^}> [nixpkgs] @worldofpeace merged pull request #73160 → pythonPackages.qrcode: Fix "No module named pkg_resources" error → https://git.io/JeVN7
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-19.09: https://git.io/JewTN
<{^_^}> [nixpkgs] @worldofpeace merged pull request #73159 → pythonPackages.qrcode: Fix "No module named pkg_resources" error → https://git.io/JeVNQ
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JewTA
silver_ has joined #nixos
shreyansh_k has quit [Quit: Konversation terminated!]
shreyansh_k has joined #nixos
laudecay has joined #nixos
zmacs has quit [Quit: Connection closed for inactivity]
CMCDragonkai has joined #nixos
<CMCDragonkai> If I use a netboot image for a long period of time, where does the systemd journald logs go?
<gchristensen> ram
testy has quit [Read error: Connection reset by peer]
<CMCDragonkai> Do they just accumulate in memory? Is there an easy way to point to a network location in nixos config?
<CMCDragonkai> Is there a limit to how many records it keeps?
testy has joined #nixos
<CMCDragonkai> to prevent it eating up all the memory
testy has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #73135 → nixosTests.lightdm: port to python → https://git.io/JeVMB
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JewTj
<{^_^}> [nixpkgs] @worldofpeace merged pull request #73136 → nixosTests.sddm: port to python → https://git.io/JeVMg
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Jewke
silver has quit [Ping timeout: 268 seconds]
mexisme has joined #nixos
jgt1 has joined #nixos
<{^_^}> [nixpkgs] @flokli opened pull request #73186 → dpdk: build with meson, odp-dpdk: -> 1.22.0.0 → https://git.io/JewkL
<clever> CMCDragonkai: `man journald.conf`
<clever> CMCDragonkai: it will limit itself to keep a certain amount free, not use more then a certain amount (both absolute, and percentage), and gc automatically based on those params
<clever> CMCDragonkai: it will not use more then 4gig for the logs, and not use more then 10% of the space on whatever fs is mounted to /var/log/journal
<clever> and if thats a tmpfs, it will be limited to 50% of ram, so the journal is limited to 5% of ram
<{^_^}> [nixpkgs] @svanderburg pushed to master « xcodeenv: bump default Xcode version to 11.1, default iOS SDK to 13.1. Add troubleshooting section to docs »: https://git.io/JewkO
<Thra11_> Is it possible to apply an overlay when building an sd-image?
<clever> Thra11_: set nixpkgs.overlays in the nixos config
is_null has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @svanderburg pushed to release-19.09 « xcodeenv: bump default Xcode version to 11.1, default iOS SDK to 13.1. Add troubleshooting section to docs »: https://git.io/Jewks
fendor has quit [Quit: Leaving]
cptchaos83 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
cptchaos83 has joined #nixos
<otwieracz> Hi!
<Thra11_> clever: Thanks!
<otwieracz> I am trying to "refresh" Bacula service in NixOS. I've got a case where, depending on configuration, multiple directories should be created.
__monty__ has quit [Quit: leaving]
<otwieracz> What's expected way of ensuring those directories exist, with valid permissions?
<otwieracz> Should I do this from the service definition implementation somehow, or rather attach this as pre script in systemd?
<otwieracz> I'd bet for the later, but just wanted to make sure.
<clever> otwieracz: if you set PermissionsStartOnly, then the User= only affects ExecStart, so ExecPreStart gets ran as root
<clever> otwieracz: you can then freely use mkdir and chown to prepare things
<otwieracz> But that's again in pre-script.
<otwieracz> Not "by nixos" somehow.
<clever> otwieracz: the "new" way is to use systemd tempfiles, but that name feels backwards and ive not looked into how to do it yet
Okinan has joined #nixos
<otwieracz> tmpfile?
<otwieracz> It wasn't called something something session?
<clever> otwieracz: the way i personally do it, is i just define a users.users.foo, give it a home dir, and tell nixos to createHome = true;
<otwieracz> uhm
<otwieracz> hmm
<otwieracz> Maybe.. But maybe not. I am not sure yet :)
<otwieracz> Either way, thank you!
<otwieracz> That might be useful approach, with createHome.
<otwieracz> I've got one more question.
<otwieracz> I am changing Bacula "workflow" right now - it will, at least in my opinion, reassemble `samba` approach where nix maps ({ "foo bar" = true; } are used to generate valid config instead of current apprach, where there are few predefined options + general reliance on `extraConfig` being huge multiline string.
<otwieracz> But this will be breaking change.
<otwieracz> What's the policy about such changes, assuming I'd like to have them merged to upstreaM?
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<otwieracz> And sorry, but I've got one more question :) How can I merge two maps in nixos?
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<selfsymmetric-mu> otwieracz: I believe you use the // operator.
pbb has joined #nixos
<otwieracz> And what about nesting? Does it handle conflict somehow on deeper level?
jgeerds_ has quit [Ping timeout: 268 seconds]
<otwieracz> Or it just compares top level keys?
<selfsymmetric-mu> I believe this update only compares top-level keys.
<otwieracz> OK
<otwieracz> Thanks!
<clever> otwieracz: if its nixos config, you can also use mkMerge
<selfsymmetric-mu> fajne imię, btw ;)
<clever> it takes a list of nixos configs
<selfsymmetric-mu> I think `lib.recursiveUpdate` might work too...
<clever> selfsymmetric-mu: but that wont respect nixos config merge rules
<clever> [1] and [2] turns into [2], not [1 2]
<selfsymmetric-mu> My NixOS config has merge rules? :o
<selfsymmetric-mu> Oh I see.
<selfsymmetric-mu> yikes, thank you
<clever> also, with recurisveUpdate and //, it will just silently overwrite things
<clever> while with mkMerge, it will verbosely complain if you set something twice
<selfsymmetric-mu> There's also a `recursiveUpdateUntil`, interesting.
<selfsymmetric-mu> Ah, nice.
<clever> mkMerge basically does the same thing as imports, but works at any node
<clever> so you can do services.foo = mkMerge [ .... ];
<clever> instead of imports = [ {services.foo = ...;} {services.foo = ...; } ];
<selfsymmetric-mu> That's great.
<{^_^}> [nixpkgs] @flokli opened pull request #73187 → ceph: fixes → https://git.io/Jewkj
<elvishjerricco> How would I go about finding the PCI device for the USB controller containing my mouse and keyboard
<elvishjerricco> ?
eightyone has quit [Quit: "]
<niso> elvishjerricco: i'd use lsusb
<elvishjerricco> niso: Not sure how to go from the lsusb output to a PCI device
phaebz` has joined #nixos
phaebz` has quit [Remote host closed the connection]
<clever> 00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller (prog-if 20 [EHCI])
<clever> Kernel driver in use: ehci-pci
<clever> elvishjerricco: with this, i can figure out which driver is using a given card
<{^_^}> [nixpkgs] @blitz opened pull request #73188 → spike: init at 1.0.0 → https://git.io/JewIm
laudecay has quit [Ping timeout: 265 seconds]
<clever> --w------- 1 root root 4096 Nov 10 19:47 /sys/bus/pci/drivers/ehci-pci/unbind
<clever> elvishjerricco: and i think if you `echo 00:16.2` to this file, it will just detatch the driver from the card, causing it was doing to stop (and all usb devices to unplug)
<clever> elvishjerricco: you can use the bind find to re-connect things
<clever> just note, if you disconnect the usb card from the usb driver, you loose your keyboard, so test over ssh!
phaebz has quit [Ping timeout: 240 seconds]
laudecay has joined #nixos
<elvishjerricco> clever: I'm not really following. How did you go from lsusb output to identifying which PCI device is behind a specific USB device?
<clever> elvishjerricco: i dont know of a way to directly do that
<clever> elvishjerricco: but the above steps let you basically disconnect any pci device from its driver
<clever> elvishjerricco: causing whatever usb devices are behind it, to vanish
<clever> then you just try each one
chris| has quit [Quit: ZNC 1.7.3 - https://znc.in]
chris| has joined #nixos
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
aveltras has joined #nixos
evanjs has joined #nixos
<red[m]> So, I'm trying to write a program in pony which links to the termbox C library. So, I'm doing nix-shell -p ponyc termbox
<red[m]> So nix downloads the library - but I'm not entirely sure how to make my program "see" the termbox library
cosimone has quit [Quit: Quit.]
<red[m]> now in code, I can specify a path... but obviously hard-coding a nix store path is a bad idea. Can anyone help me understand how I should go about addressing this is nixos?
MichaelRaskin has left #nixos [#nixos]
<clever> red[m]: nix automatically adds a -L flag for you
<clever> red[m]: so you just use the normal -ltermbox you always use
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 3 commits to nixpkgs-19.09-darwin: https://git.io/JewUP
<red[m]> clever: apparently it isn't. Can you tell me the mechanism that it should work via so I can maybe debug it?
<clever> red[m]: its tied into cc-wrapper, and only impacts gcc, so ponyc may ignore it
<red[m]> oh wait - found the issue
shibboleth has quit [Quit: shibboleth]
<clever> red[m]: $NIX_LDFLAGS and $NIX_CFLAGS_COMPILE
<red[m]> apparently, if I run tmux inside of a nix-shell it doesn't work
<red[m]> but if I run nix-shell inside of tmux, it does
is_null has joined #nixos