gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || 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
<haslersn> clever: It did not list it the last time I looked, but now it does
<haslersn> So I will try another boot
<haslersn> I wonder what I changed
sigmundv__ has quit [Ping timeout: 260 seconds]
<haslersn> clever: which uuid should the boot entry show? It shows a uuid that does not exist in my 'lsblk -oname,uuid'
camsbury has quit [Remote host closed the connection]
<clever> haslersn: that would be the problem then
<clever> haslersn: is canTouchEfiVars enabled?
<haslersn> Yes
camsbury has joined #nixos
<clever> only thing i can think of then is to temporarily try the installAsRemovable flag instead
iyzsong has joined #nixos
camsbury has quit [Client Quit]
mayhewluke has quit [Ping timeout: 260 seconds]
mayhewluke has joined #nixos
<haslersn> clever: When trying that, should canTouchEfiVariables still be true?
<clever> it must be set to false
jtojnar has quit [Remote host closed the connection]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
haslersn has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAddi
Maxdamantus has quit [Quit: leaving]
Maxdamantus has joined #nixos
Fare has joined #nixos
haslersn has joined #nixos
<haslersn> clever: awesome, your advice worked
<clever> once it boots like that, you can try switching the vars back around, and confirm it worked with efibootmgr -v
jtojnar has joined #nixos
haslersn has quit [Ping timeout: 256 seconds]
haslersn has joined #nixos
<haslersn> clever: I did that and it still works, but what effect does it have? (the switching back)
<clever> its more proper i believe
<clever> it will also give the OS a cleaner name in the firmware, when you are selecting between EFI based OS's
<clever> if the firmware is even capable of that
<haslersn> The name is still the same. I think the rebuild after switching back didn't change anything in my efi partition
<clever> also double-check that /boot is mounted when running nixos-rebuild
<clever> oh, and you may want nixos-rebuild switch --install-bootloader
<haslersn> ah
<haslersn> I missed that
Kelppo has joined #nixos
astronavt has quit [Ping timeout: 272 seconds]
haslersn_ has joined #nixos
<haslersn_> clever: Sorry, I couldn't read your last message before I left.
<clever> 2018-09-22 21:55:28 < clever> oh, and you may want nixos-rebuild switch --install-bootloader
<clever> 2018-09-22 21:55:38 < haslersn> ah
<clever> thats the last thing i said
<haslersn_> clever: Anyway, I rebuilt with --install-bootloader and the new bootloader has been installed but my UEFI sees only the old one (which is called HDD1)
haslersn has quit [Ping timeout: 256 seconds]
<haslersn_> Maybe my UEFI is too old
commander has quit [Ping timeout: 252 seconds]
commander has joined #nixos
haslersn_ has quit [Ping timeout: 256 seconds]
haslersn has joined #nixos
<haslersn> Thanks for the awesome help
<clever> yep
__lawlesseel__ has joined #nixos
lawlesseel has quit [Remote host closed the connection]
astronavt_ has joined #nixos
wpcarro has joined #nixos
EternalZenith has joined #nixos
astronavt__ has joined #nixos
<EternalZenith> I seem to somehow have messed up my xorg
astronavt_ has quit [Read error: Connection reset by peer]
<EternalZenith> .xorg.log is filled with "Failed to load module "libinput" (module does not exist, 0)"
<EternalZenith> I have libinput.enable = true; in my configuration.nix, and I tried installing xf86-input-libinput and libinput just in case
<clever> installing things wont fix it
<clever> they have to be correctly added to the nixos module for xorg
<EternalZenith> How should I go about that?
<EternalZenith> I assume the display managers were performing that before I disabled them
wpcarro has quit [Ping timeout: 272 seconds]
<clever> EternalZenith: services.xserver.modules
<EternalZenith> Ah, I see the option
EternalZenith has quit [Remote host closed the connection]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 245 seconds]
lassulus_ is now known as lassulus
etu has quit [Read error: Connection reset by peer]
etu has joined #nixos
astronavt__ has quit [Ping timeout: 272 seconds]
das_j has quit [Quit: "Bye!";]
sir_guy_carleton has joined #nixos
the_real_plumps has quit [Quit: No Ping reply in 180 seconds.]
EternalZenith has joined #nixos
haslersn has quit [Quit: Page closed]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
EternalZenith has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/52a1179b6c2 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
init_6 has joined #nixos
wpcarro has joined #nixos
JonReed has quit [Ping timeout: 256 seconds]
nokomprendo has quit [Quit: Leaving]
wpcarro has quit [Ping timeout: 260 seconds]
jedahan has joined #nixos
slack1256 has joined #nixos
abueide has quit [Ping timeout: 260 seconds]
jtojnar_ has joined #nixos
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @andrew-d opened pull request #47202 → erlangR18: apply upstream patches to fix nondeterministic build failures → https://git.io/fAdNg
wpcarro has joined #nixos
abueide has joined #nixos
jedahan has joined #nixos
wpcarro has quit [Ping timeout: 240 seconds]
jedahan has quit [Ping timeout: 240 seconds]
bbarker has joined #nixos
hiratara has joined #nixos
<bbarker> is it possible to get the directory of the nix expression being executed by nix-shell inside of a shellHook?
<samueldr> not sure, but is there a specific goal in mind? in case there are other ways to achieve the goal
<Myrl-saki> bbarker: `shellHook = FOO=${./.}` ?
<Myrl-saki> I forgot some quotes there.
<bbarker> samueldr; I have a few scripts that I'd like to be put on the PATH in the nix expression. I guess in my heart I know the right way to do this is to create a derivation, but there seems to currently be a bug with hashing src=file:// etc
<bbarker> Myrl-saki, oh, I assumed that might be the directory of wherever `nix-shell` is being run from, which could be different - i'll check
<samueldr> ./ in a nix expression is always relative to the file itself
<bbarker> oh, awesome
<samueldr> definitely
<Myrl-saki> I think if I'm working on nix, then one thing that I wouldn't want to be assigned to is file paths.
<Myrl-saki> Not because they're confusing, but because they work.
<bbarker> Myrl-saki, you mean, assigning to PATH is bad? I usually only do this in a nix-shell where it sometimes seems handy
<bbarker> and doesn't affect the rest of the system outside the shell of course
<Myrl-saki> bbarker: Noo, I mean file paths.
<Myrl-saki> Not the envar PATH.
<Myrl-saki> For example, `--arg foo ./.` with nix-shell will properly use your current directory.
<Myrl-saki> How the hell does it do that?
silver has quit [Read error: Connection reset by peer]
<samueldr> :)
<samueldr> so, when parsing from stdin (dang, I should have checked argstr) it will set the base path to ".", which absPath expands
hakujin has quit [Ping timeout: 240 seconds]
<samueldr> (checked arg*)
<samueldr> (not sure if the "how the hell" was rethorical, but digging in the source is fun)
<bbarker> lol
<bbarker> I'm curious if anyone can build plan9port, in order to maintain a semblance of the dream set forth by our forefathers: https://github.com/NixOS/nixpkgs/pull/47067 Could be this works on NixOS; I'm trying on Ubuntu.
<{^_^}> #47067 (by bbarker, 2 days ago, open): WIP: updating plan9port
<bbarker> Seems to either be a case of "what once built now does not" or "I'm somehow doing it wrong", because binary fetched in normally from the cache works as desired
<samueldr> bbarker: "if anyone can build" with your PR or on master?
<bbarker> samueldr, either - I just verified the results are the same
<bbarker> at least, on my system
<bbarker> the build appears to complete but many binaries are missing and there are many worrisome messages of "wrong ELF type"
<samueldr> I don't know about binaries missing and wrong ELF type yet
<samueldr> but plan9port things I think need the `9 ...` invocations
<samueldr> but I'm kinda expecting you already know
wpcarro has joined #nixos
<bbarker> interesting; in my shell I had just done a temporary hack: export PATH=$PATH:${plan9port}/plan9/bin:${./bin}
<bbarker> which seemed to work as well
<bbarker> but, one difference is on the cached binary you will find e.g. :${plan9port}/plan9/bin/acme exists, but does not exist in the build (at least not when I build it)
<samueldr> 9 seems to do that :)
<samueldr> (building)
<samueldr> I wouldn't be surprised that the "wrong ELF types" come from 9c, but I don't know enough about plan9port to be sure
<samueldr> I know though a bit about plan9 and how it's definitely its own non-posix beast :)
<bbarker> it takes a while, alas, I probably will be gone by the time it finished but will check back later
<samueldr> hmm, too bad it isn't parallelized
<samueldr> though, can you tell me one thing that fails with the new build, and doesn't with the old?
<samueldr> so I can at least have a known value to check?
wpcarro has quit [Ping timeout: 252 seconds]
<bbarker> samueldr sure, and sorry if I'm repeating myself here, but plan9/bin/acme is missing when i try. it is a graphical editor, so you need X to actually try running it
<bbarker> but as I said it is totally missing for me in the build
<samueldr> oh right, I was thinking "other than acme" :)
<samueldr> hmmm
<samueldr> bbarker: with your WIP commit, rebased on nixos-unstable, I have acme up and running
<samueldr> nix-build -A plan9port && ./result/bin/9 acme
slack1256 has quit [Ping timeout: 252 seconds]
<bbarker> samueldr, that was fast ... well that's good news at least
* samueldr thought the build took a while
<bbarker> samueldr haha ... well, I guess I should just update the PR tomorrow and note that I haven't tested it but you have? I'm not sure I have ready access to a proper NixOS system. but, I should try your build command instead of directly invoking nix-env (though I can't imagine that should make a difference)
<bbarker> i'm not sure what % of plan9port is used by acme, but, I think it is a lot
<bbarker> I think Russ Cox made plan9port so he could use acme on Linux at Google
<samueldr> yeah, nix-env -iA using -f like you did should be fine
mayhewluke has quit [Ping timeout: 260 seconds]
mayhewluke has joined #nixos
<bbarker> samueldr, thanks again for giving that a go
<samueldr> you're welcome, thanks for improving nixpkgs :)
Kelppo has quit []
<bbarker> next I want to bring over acme2k to give it a try :-) ... it has an ... entertaining README: https://github.com/karahobny/acme2k
larluo has joined #nixos
larluo has quit [Ping timeout: 256 seconds]
jtojnar_ has quit [Quit: jtojnar_]
Ariakenom has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @andrew-d opened pull request #47203 → pythonPackages.flask_assets: fix tests → https://git.io/fAdAM
Zer000 has joined #nixos
jtojnar has quit [Remote host closed the connection]
endformationage has quit [Quit: WeeChat 1.9.1]
hiratara has quit [Quit: ZNC - http://znc.in]
slack1256 has joined #nixos
jtojnar has joined #nixos
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #47204 → nixos: make firefox default browser → https://git.io/fAdAp
wpcarro has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed 4 commits to gnome-3.30: https://git.io/fAdxv
<{^_^}> [nixpkgs] @samueldr merged pull request #47196 → nixos/iso-image: fix 32bit UEFI boot → https://git.io/fAdQl
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/fAdxI
<{^_^}> [nixpkgs] @samueldr pushed commit from @xeji to release-18.09 « nixos/iso-image: fix 32bit UEFI boot »: https://git.io/fAdxt
justanotheruser has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.30 « gnome-recipes: init at 2.0.2 »: https://git.io/fAdxu
<{^_^}> [nixpkgs] @jtojnar pushed 150 commits to gnome-3.30: https://git.io/fAdxo
ThatOtherGuy is now known as LogicAside
<{^_^}> [nixpkgs] @matthewbauer opened pull request #47205 → kde: add kdoctools to default environment → https://git.io/fAdxM
<{^_^}> [nixpkgs] @matthewbauer opened pull request #47206 → nixos: set nixos in nixPath → https://git.io/fAdxH
<{^_^}> [nixpkgs] @matthewbauer opened pull request #47207 → perl: disallow cc in perl → https://git.io/fAdpk
slack1256 has quit [Remote host closed the connection]
<{^_^}> [nix] @matthewbauer opened pull request #2443 → Add INFOPATH & XDG_DATA_DIRS to nix-profile.sh → https://git.io/fAdpW
<{^_^}> [nixpkgs] @etu closed pull request #46416 → lidarr: init at 0.3.1.471 → https://git.io/fA2dX
<{^_^}> [nixpkgs] @etu reopened pull request #46416 → lidarr: init at 0.3.1.471 → https://git.io/fA2dX
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/73ceb7742cb (from 63 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
hakujin has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
hakujin has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
adisbladis has quit [Quit: WeeChat 2.1]
Garbanzo has joined #nixos
adisbladis has joined #nixos
brejoc has joined #nixos
orivej has quit [Ping timeout: 272 seconds]
abueide has quit [Remote host closed the connection]
abueide has joined #nixos
Anton-Latukha has joined #nixos
Zer000 has quit [Quit: Leaving]
georges-duperon has joined #nixos
jD91mZM2 has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/73ceb7742cb (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
alex`` has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
Garbanzo has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #42619 → pythonPackages.block-io: init at 1.1.8 → https://git.io/f47Gh
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to master: https://git.io/fAdjI
pie__ has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #45941 → Staging next → https://git.io/fAlE7
<{^_^}> [nixpkgs] @FRidh pushed 75 commits to master: https://git.io/fAdjs
pie_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @FRidh pushed 296 commits to staging: https://git.io/fAdjZ
<{^_^}> [nixpkgs] @FRidh pushed commit from @akamaus to staging « openblas-0.3.1 -> 0.3.3 »: https://git.io/fAdjW
<{^_^}> [nixpkgs] @FRidh merged pull request #46562 → Fix for pytorch-0.4.1 cuda-enabled build. → https://git.io/fAoRh
<{^_^}> [nixpkgs] @FRidh pushed commit from @akamaus to staging « pytorch-0.4 rpath fix, some tests reenabled »: https://git.io/fAdj4
FRidh has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #46951 → smplayer: 18.6.0 -> 18.9.0 → https://git.io/fAQJZ
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fAdju
Brejic has quit [Quit: Quit]
iyzsong has joined #nixos
palo has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #47190 → xsecurelock: 1.0 -> 1.1 → https://git.io/fAdSs
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAdj5
<{^_^}> [nixpkgs] @srhb pushed commit from @andrew-d to release-18.09 « xsecurelock: 1.0 -> 1.1 »: https://git.io/fAdjb
alex`` has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #47203 → pythonPackages.flask_assets: fix tests → https://git.io/fAdAM
<{^_^}> [nixpkgs] @xeji pushed commit from @andrew-d to master « pythonPackages.flask_assets: fix tests (#47203) »: https://git.io/fAdjp
<{^_^}> [nixpkgs] @xeji pushed commit from @andrew-d to release-18.09 « pythonPackages.flask_assets: fix tests (#47203) »: https://git.io/fAFev
<{^_^}> [nixpkgs] @xeji merged pull request #47176 → gnuradio-limesdr: init at 1.0.0-RC → https://git.io/fAdK7
<{^_^}> [nixpkgs] @xeji pushed commit from @markuskowa to master « gnuradio-limesdr: init at 1.0.0-RC (#47176) »: https://git.io/fAFem
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
b has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @xeji merged pull request #46083 → qesteidutil: Fixes build from Qt upgrade. → https://git.io/fAR3A
<{^_^}> [nixpkgs] @xeji pushed commit from @samueldr to master « qesteidutil: Fixes build from Qt upgrade. (#46083) »: https://git.io/fAFen
<{^_^}> [nixpkgs] @xeji pushed commit from @samueldr to release-18.09 « qesteidutil: Fixes build from Qt upgrade. (#46083) »: https://git.io/fAFeC
alex`` has joined #nixos
<alex``> Why SDDM tells me the file for my theme does not exist?
<alex``> > .rwxr-xr-x 11k alex 18 Sep 18:24 /home/alex/repositories/github.com/MarianArlt/kde-plasma-chili/Main.qml
<{^_^}> error: syntax error, unexpected '.', at (string):195:1
<srhb> alex``: Maybe something to do with the file:// prefix?
<alex``> I don’t give any prefix
<alex``> It’s a valid path (URL) I guess anyway
<tilpner> My sddm.theme is an absolute path into the store
<srhb> Right, but that error message looks like the error you'd get from something that interprets it as a unix path, not a URL.
brodul has joined #nixos
<{^_^}> [nixpkgs] @andrew-d opened pull request #47209 → hdf4: fix build on aarch64-linux → https://git.io/fAFeS
vcunat has joined #nixos
<siers> Is emacs fully configurable through nix? I want to try emacs, but I don't want to delve into the config much yet, so maybe I could try someone else's.
Fare has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 8 commits to release-18.09: https://git.io/fAFvf
<{^_^}> [nixpkgs] @vcunat closed pull request #46861 → nixos/weechat: backport to 18.09 → https://git.io/fASRI
<{^_^}> [nixpkgs] @xeji merged pull request #47185 → nixos/tests/prosody: use sqlite database → https://git.io/fAdDy
<{^_^}> [nixpkgs] @xeji pushed to master « nixos/tests/prosody: use sqlite database (#47185) »: https://git.io/fAFvm
<{^_^}> [nixpkgs] @xeji pushed to release-18.09 « nixos/tests/prosody: use sqlite database (#47185) »: https://git.io/fAFvn
patrl has joined #nixos
<sphalerite> siers: yes. My config looks like https://github.com/lheckemann/dotfiles/blob/2c521e65565de8ed9c7fc06e231638d34fe1b67e/emacs.nix but I'm not sure I'd recommend it — I haven't spent a lot of time on it to make it nice and actually useful
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7c7f9623dc6 (from 45 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> [nixpkgs] @xeji merged pull request #47202 → erlangR18: apply upstream patches to fix nondeterministic build failures → https://git.io/fAdNg
<{^_^}> [nixpkgs] @xeji pushed commit from @andrew-d to master « erlangR18: apply upstream patches to fix nondeterministic build failures (#47202) »: https://git.io/fAFvV
<{^_^}> [nixpkgs] @xeji pushed commit from @andrew-d to release-18.09 « erlangR18: apply upstream patches to fix nondeterministic build failures (#47202) »: https://git.io/fAFvi
<siers> I'll take a look, thanks :)
monotux has quit [Ping timeout: 244 seconds]
Xiro` has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
arjen-jonathan has joined #nixos
<{^_^}> [nixpkgs] @xeji closed pull request #47183 → nixos/tests/containers-restart_networking: disable on Hydra → https://git.io/fAd1b
Xiro` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
Xiro` has joined #nixos
Xiro` has quit [Client Quit]
orivej has quit [Ping timeout: 244 seconds]
<steveeJ> hey Mic92, do you have some time to help me figure out a test for https://github.com/NixOS/nixpkgs/pull/34409?
<{^_^}> #34409 (by steveeJ, 33 weeks ago, open): qemu-vm: fix script syntax and VM args
init_6 has quit []
<{^_^}> [nixpkgs] @vcunat pushed commit from @andrew-d to release-18.03 « libsndfile: Add patch for CVE-2018-13139 (#47160) »: https://git.io/fAFfM
yesbox has joined #nixos
periklis has joined #nixos
<steveeJ> I somehow want to run the script which is produced by vmWithBootLoader within the test runner and control that VM as others can be controlled within tests
Xiro` has joined #nixos
periklis has quit [Ping timeout: 240 seconds]
<steveeJ> aszlig: looking at t
<steveeJ> this commit https://github.com/NixOS/nixpkgs/commit/f148c5c4a1ffa353836bfd18a94d457acf83bd36 , you might be able to point me further
_rvl has quit [Remote host closed the connection]
_rvl has joined #nixos
<Myrl-saki> People who add spaces punctuation between URL are good people.
<Myrl-saki> Err
<Myrl-saki> People who add spaces between punctuation and URL are good people.*
Ariakenom has joined #nixos
vcunat has quit [Quit: Leaving.]
periklis has joined #nixos
<steveeJ> not good enough to grasp the testing framework :-D
Xiro` has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
Xiro` has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47186 → influxdb: 1.4.1 -> 1.6.3 → https://git.io/fAdD5
<{^_^}> [nixpkgs] @xeji pushed commit from @c0deaddict to master « influxdb: 1.4.1 -> 1.6.3 (#47186) »: https://git.io/fAFJz
<Myrl-saki> srhb: Yeah, but I have a simple terminal. :(
<Myrl-saki> (Get it???)
<Myrl-saki> Ayyyy
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to master: https://git.io/fAFJo
<srhb> Myrl-saki: :P
<{^_^}> [nixpkgs] @xeji merged pull request #45683 → nvidia_x11: 390.77 -> 390.87 → https://git.io/fAOop
slyfox_ is now known as slyfox
hakujin has joined #nixos
hakujin has quit [Ping timeout: 252 seconds]
Xiro` has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
Xiro` has joined #nixos
<yesbox> hi. i think it would be useful to use the hash of a package inside that package, specifically to add the hash to a programs "--version" and the like, in some cases. is it feasible to access the hash at that point or is this crazy talk? any existing examples?
<manveru> yesbox: it's basically part of $out
thc202 has joined #nixos
periklis has quit [Ping timeout: 240 seconds]
<infinisil> yesbox: If you have some src = fetchgit or so declared, it's probably better to take the hash from the git revision
<{^_^}> [nixpkgs] @peti pushed 6 commits to haskell-updates: https://git.io/fAFUb
b has joined #nixos
Lears has quit [Remote host closed the connection]
Xiro` has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<{^_^}> [nixpkgs] @borisbabic opened pull request #47211 → gitAndTools.pre-commit: 1.11.0 -> 1.11.1 → https://git.io/fAFTf
<sphalerite> if I'm booting nixos with a custom kernel, built independently of nixos, how can I get udev (if it's udev's responsibility? or whatever else is responsible) to autoload modules?
mayhewluke has quit [Ping timeout: 272 seconds]
<Dezgeg> it's not udev, the kernel just launches modprobe when needed
perrier-jouet has joined #nixos
<perrier-jouet> hi all
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fAFTI
<perrier-jouet> I would like to know what framework or tools and templates is used to build the nixos website
mayhewluke has joined #nixos
<steveeJ> where does 'system' within nixos get populated with 'build'? builtins.currentSystem is just a string
<steveeJ> I'm trying to understand how to pass different modules and pkgs to a built VM than what's used for the build system
<steveeJ> at first look it doesn't seem to be designed for it
iyzsong has quit [Ping timeout: 260 seconds]
<sphalerite> Dezgeg: damn. Is there a way to tell it to pass a perticular -d to it? How does nixos do it? And is there a way to get it to do that again after it's booted?
<srhb> steveeJ: Not sure what you're asking. <nixpkgs/nixos> takes a system argument which is just a string and has a system.build attribute
<srhb> steveeJ: It also takes a configuration argument.
<infinisil> steveeJ: system.build is just a general option of attrsets for the system build. It gets set in many modules and used in many modules
<{^_^}> [nixpkgs] @symphorien opened pull request #47212 → openvpn plugins: use absolute paths to configuration gui → https://git.io/fAFTB
<Streetwalrus> hi, what is the preferred way to enable systemd @ templates? (template@instance.service type units)
<srhb> Streetwalrus: Generally we prefer not to use them at all, really. They don't make much sense in a declarative environment.
Xiro` has joined #nixos
<Streetwalrus> fair enough
<Streetwalrus> thanks
<perrier-jouet> srhb: is that a bootstrap template ?
<srhb> perrier-jouet: Never looked at it. :)
<srhb> Streetwalrus: If you're trying to work on some specific service, perhaps people can suggest how to set it up. :)
<sphalerite> steveeJ: yeah I think your first look is correct. The only way to get different modules/pkgs is to import a different <nixpkgs/nixos> AFAIK
<srhb> Streetwalrus: (as an example, the only one we have by default is getty@, I believe)
<yesbox> manveru infinisil : thanks. i want it to match the nix store hash though, so that the hash tells you if anything is different in the build (extra patches for example, which wouldn't change the hash of the fetched git rev) and being able to compare it. so that would be $out, which makes perfect sense now that you're saying it.
<srhb> Streetwalrus: A simpler example is the imperative container template unit in nixos/modules/virtualisation/containers.nix -- if you need similar functionality. But again, it's usually nicer and easier to generate multiple units declaratively, without using the templating system :)
<Streetwalrus> srhb: it's something custom, we're moving some things from another distro where we had multiple scripts using a shared environment, so systemd templates allowed us to enable them all with a single unit file
<srhb> Ah, yeah
<srhb> Streetwalrus: Consider whether you can just generate all the units declaratively first. It's usually way nicer. :)
<Streetwalrus> yeah that's what we're going to do
orivej has joined #nixos
smolboye has quit [Ping timeout: 252 seconds]
smolboye_ has joined #nixos
<sphalerite> Dezgeg: ah, looks like I could set up a wrapper and tell the kernel to call it by writing to /proc/sys/kernel/modprobe. Is there also a way to get it to try and reload everything?
smolboye_ has quit [Remote host closed the connection]
smolboye_ has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/efd74a6575d (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/48625909dcf (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
Kelppo has joined #nixos
smolboye_ has quit [Quit: WeeChat 2.2]
smolboye has joined #nixos
Xiro` has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
zli has joined #nixos
sphalerite has quit [Quit: WeeChat 2.0]
<zli> Hello all.
smolboye has quit [Client Quit]
Xiro` has joined #nixos
<zli> How to build emacs with the m17n otf and xft support? Thanks in advance.
smolboye has joined #nixos
sphalerite has joined #nixos
<sphalerite> um. Wtf. My tmux just crashed.
Xiro` has quit [Client Quit]
<zli> sphalerite : that is certainly strange indeed.
<sphalerite> it's also a real pain
orivej has quit [Ping timeout: 244 seconds]
patrl has quit [Ping timeout: 264 seconds]
jtojnar has quit [Remote host closed the connection]
<tilpner> zli - Are you on Darwin/macOS?
<tilpner> On Linux, m17n and xft should be enabled by default
<zli> tilpner: I am on linux. I am trying to get some fonts to work with emacs. they work fine on gedit / kate etc.
<tilpner> How do you know your emacs is built without those?
<etu> Hmm, is it just me or have nix-mode stopped being autoloaded by emacs whenever opening a .nix file? I never had to specify this before. But recently on nixos-unstable it opens the files with fundamental-mode.
<zli> tilpner: I tried the "report-emacs-bug" command and looked at the information provided in there. Xft is there but I don't see m17n or otf support. May be I am wrong but even this link https://github.com/NixOS/nixpkgs/blob/d16a7abceb72aac85e0deb8c45fbcb7127baf628/pkgs/applications/editors/emacs/default.nix#L115 doesn't include m17n or Otf support.
<zli>
<tilpner> zli - Ah! Try using unstable, m17n was added since
<tilpner> ,unstable zli
<tilpner> (You sent a link to an older version of the emacs expression)
<alex``> tilpner: Can you give me your SDDM config?
<zli> tilpner: thanks. I will try the link you provided. thanks again.
jtojnar has joined #nixos
<tilpner> alex`` - https://tx0.co/2a
<steveeJ> how do I create a function call stub with one argument value predefined? I can't figure out the syntax
<tilpner> steveeJ - To pass an attrset and .override?
<alex``> tilpner: `builtins.toString pkgs.solarized-sddm-theme` expands to /path/to/theme/dir/?
<{^_^}> [nixpkgs] @xeji merged pull request #47211 → gitAndTools.pre-commit: 1.11.0 -> 1.11.1 → https://git.io/fAFTf
<{^_^}> [nixpkgs] @xeji pushed commit from @borisbabic to master « gitAndTools.pre-commit: 1.11.0 -> 1.11.1 (#47211) »: https://git.io/fAFIE
<tilpner> alex`` - It expands to "/nix/store/..."
<steveeJ> tilpner: I want to define an import with one argument set, and then pass it on to the modules system
<alex``> It does not work outside of /nix/store/?
<alex``> and want to refer to that path
<tilpner> alex`` - I don't know. But /nix/store should definitely have compatible permissions, whereas whatever checkout location you choose may not
<sphalerite> steveeJ: { name ? default }: …
<steveeJ> here's what I have: ` vmConfiguration = { ... } @ args: (import "${nixosConfigPath}" args // { pkgs = vmPkgsPath; });`
iyzsong has joined #nixos
<tilpner> args@{ ... }
<steveeJ> I've tried without the surrounding ()
<sphalerite> > ({ a ? 5 }: a) { a = 6; }
<{^_^}> 6
<sphalerite> > ({ a ? 5 }: a) { }
<{^_^}> 5
<sphalerite> steveeJ: `{...}@args:` is equivalent to `args:`
Thra11 has joined #nixos
<sphalerite> steveeJ: and I think what you want in this case is `{ pkgs = vmPkgsPath; } // args`, not the other way round
<sphalerite> that way if pkgs is in args, it'll override it, otherwise it'll use vmPkgsPath
<steveeJ> sphalerite: I want to ignore the pkgs from args
<sphalerite> steveeJ: oh right
<alex``> tilpner: How do you get solarized-sddm-theme?
<tilpner> Huh, didn't know @ worked from both sides
<steveeJ> sphalerite: but it doesn't seem to work
<sphalerite> steveeJ: I think you might just needs parens around the // expression?
<tilpner> alex`` - https://tx0.co/2b
<sphalerite> so (args // { pkgs = vmPkgsPath; })
<steveeJ> oh yeah that worked, thanks! at least I'm getting a different error now ;-)
<alex``> Thanks
<{^_^}> [nixpkgs] @mroi opened pull request #47214 → podofo: fix library linkage on Darwin → https://git.io/fAFIw
<sphalerite> steveeJ: but yeah you don't need the { ... } @ bit, if you're not extracting any attrs from the set explicitly there's no point in it :)
<alex``> tilpner: How do you add this file to your /etc/nixos/configuration.nix?
<gchristensen> siers: if you find more, send a PR :) :D
<tilpner> alex`` - No, I use an overlay
<alex``> in the package list, you refer then to it as:
<alex``> [
<alex``> ...
<alex``> solarized-sddm-theme
<alex``> ?
<steveeJ> sphalerite: gotcha. I didn't know if it would work like that. not having types makes me a bit insecure
<tilpner> alex`` - I don't refer to it in my package list at all
<alex``> tilpner: I don’t know about overlay
<tilpner> ,overlay
<{^_^}> Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<tilpner> But they're not necessary to get this working, just pretty
<tilpner> I could also write theme = builtins.toString (callPackage ./theme.nix {});
<sphalerite> steveeJ: understandable
<steveeJ> I currently have this: https://gitlab.com/steveeJ/nix-expressions/blob/staging/tests/buildvmwithbootloader/build-vm.nix . it causes the error: assertion failed at /home/steveej/src/github/NixOS/nixpkgs.dev/pkgs/top-level/impure.nix:80:1
<steveeJ> I'm trying to mimic and customize what's in the tree at <nixpkgs/nixos/default.nix>
<steveeJ> I'm surely lacking some initialization for "system" or a similar thing
<alex``> tilpner: Thanks
<sphalerite> steveeJ: I think it's just composed by the module system?
jtojnar has quit [Quit: jtojnar]
<steveeJ> sphalerite: whatever is happening, it's not working :-D
civodul has joined #nixos
<steveeJ> it seems that the configuration needs some sort of preprocessing
ixxie has joined #nixos
<ixxie> This is kinda off topicish but since this community is all into declarative configuration I must ask: does anybody know how to declaratively configure weechat?
<{^_^}> [nixpkgs] @dywedir opened pull request #47216 → bat: 0.7.0 -> 0.7.1 → https://git.io/fAFLZ
<siers> gchristensen, are the proper anchors on master?
<sphalerite> ixxie: you don't :'(
<ixxie> so weird
<{^_^}> [nixpkgs] @jtojnar pushed to master « packagekit: Enable introspection »: https://git.io/fAFLW
<sphalerite> ixxie: yeah weechat is very declarative-unfriednly
<infinisil> It sure does have a nice interface to change settings though
<infinisil> And always rebuilding NixOS just to change a single setting would be a bit annoying
<tilpner> ixxie - I do!
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #47217 → iwd: 0.7 -> 0.8 → https://git.io/fAFL0
<ixxie> infinisil: more annoying is the impossible task of reproducing my imperative configuration of the day
<ixxie> tilpner: please do share!
<infinisil> Yeah, that's annoying..
<tilpner> ixxie - default.nix: tx0.co/2c config.nix: tx0.co/2d
<sphalerite> steveeJ: I think I see what you're getting at
<gchristensen> well there is some https://nixos.org/nixpkgs/manual/#sec-weechat
<steveeJ> sphalerite: wohoo, I wish I could say that about the errors :D
<steveeJ> the assertion `assert args ? localSystem -> !(args ? system || args ? platform);` wouldn't this assertion also fail if none were passed explicitly?
<sphalerite> steveeJ: no, since (args ? localSystem) would be false, leading to false -> foo which is always true
<sphalerite> steveeJ: defaults aren't taken into account for the args set
<sphalerite> > ({ foo ? 5 }@args: args.foo) { foo = 1; }
<{^_^}> 1
<sphalerite> > ({ foo ? 5 }@args: args.foo) { }
<ixxie> gchristensen: good to know, but I was looking more configuration other than plugins
<{^_^}> attribute 'foo' missing, at (string):195:20
<steveeJ> sphalerite: gotcha, thanks. then I'm surprised as I'm not passing any of it.
<tilpner> ixxie - Mine does configuration and scripts. It generates multiple files from one config attrset
<tilpner> Which can then be passed to weechat at startup
<sphalerite> steveeJ: use lots of builtins.trace? :D
<steveeJ> it probably gets set somewhere along the way in an incompatible way
<gchristensen> yep.
<gchristensen> siers: almost all of them, but there are probably some stragglers.
<siers> gchristensen, how come you haven't caught them all? :) couldn't you "catch 'em all" with grep '#idm'?
<steveeJ> sphalerite: I have to read up on builtins.trace, haven't heard that before
<sphalerite> steveeJ: print statements for nix! x)
<ixxie> tilpner: I can see, looks neat!
silver has joined #nixos
<tilpner> ixxie - I can provide makeBubblewrap to you if necessary, but it's not required for this approach. Disadvantages of doing it this way: painstaking initial conversion of existing config to config.nix, requires rebuild *AND* restart on every config change, interactive changes are lost (duh, but sometimes annoying)
<tilpner> The rebuilds are okay-ish for me, as I had an imperatively found config that I was okay with. Now I only make changes to add/remove networks
<steveeJ> sphalerite: it would also help if the assertion would print the results instead of saying "failed"
<sphalerite> steveeJ: not really, since the result is "false" :p
<steveeJ> but the details
<sphalerite> as far as assert is concerned, there are no details ;)
<sphalerite> but if you just put a builtins.trace around the equality test you can have the values printed out
__lawlesseel__ has quit [Remote host closed the connection]
__lawlesseel__ has joined #nixos
<ixxie> tilpner: I don't have an existing configuration; just thought to switch now
<ixxie> tilpner: maybe - if you have no problem with it - I could just snatch your configs and tweak them to my liking? :)
<tilpner> ixxie - I suggest you start with mine then, and adapt it as you see fit... yes, exactly
<ixxie> in that case I could probably use makeBubblewrap?
<tilpner> You can use /fset to interactively test changes you make
abueide has quit [Ping timeout: 252 seconds]
<tilpner> You could probably get away with a writeShellScriptBin "irc" ''${weechat} -c ${configDir}'' and installing that
<tilpner> I use makeBubblewrap to sandbox weechat. It adds complexity to the whole setup that you may not find worth the effort
<steveeJ> sphalerite: so somehow localSystem and system are both passed to the "impure.nix"
<tilpner> Now that I've played with generating apparmor profiles, it might not even be necessary anymore
<sphalerite> tilpner: what about logs?
<tilpner> ixxie - makeBubblewrap.nix: tx0.co/2e bubblewrapPresets.nix: tx0.co/2f
<tilpner> sphalerite - Unimportant to me, I keep them on my ZNC. But it would be easy to link them out with bubblewrap too
<sphalerite> right
<sphalerite> steveeJ: is the culprit possiblt nixos/modules/misc/nixpkgs.nix ?
Xiro` has joined #nixos
<steveeJ> sphalerite: I haven't included that in the modules list
<sphalerite> steveeJ: but it's in baseModules
<steveeJ> sphalerite: I'm struggling to understand what's different between importing nixpkgs/nixos/default.nix and the expression I wrote. it calls out to eval-config the same way
<steveeJ> I could try to add my config in the tree and see if it's the same
<ixxie> thanks tilpner!
<ixxie> tilpner: is that a self-hosted pastebin?
<tilpner> Yes, I wanted short links to pronounce on telephone calls/voice-chat
<{^_^}> [nixpkgs] @lheckemann opened pull request #47219 → xorg.libxcb: 1.12 -> 1.13 → https://git.io/fAFt0
<steveeJ> sphalerite: putting it in tree is the same
hamishmack has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #47216 → bat: 0.7.0 -> 0.7.1 → https://git.io/fAFLZ
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « bat: 0.7.0 -> 0.7.1 (#47216) »: https://git.io/fAFtw
aanderse has joined #nixos
<ixxie> tilpner: handy
<{^_^}> [nixpkgs] @xeji merged pull request #46980 → pgtap: 0.98.0 -> 0.99.0 → https://git.io/fAQBN
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « pgtap: 0.98.0 -> 0.99.0 (#46980) »: https://git.io/fAFtX
<ixxie> tilpner: I will try setting it up this evening, thanks for the configs
iyzsong has quit [Ping timeout: 245 seconds]
iyzsong has joined #nixos
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @flokli opened pull request #47220 → php: set mysql socket path if mysql[i] or pdo_mysql support is enabled → https://git.io/fAFtp
<ixxie> anybody got powerline-go running on ZSH in NixOS?
<jtojnar> ixxie: regarding xmonad+gnome, you cannot use the normal GNOME, but it should work with Flashback
<ixxie> I can't seem to get the configuration right
<ixxie> jtojnar: I was mostly trying to find out how to select it in the GDM, but now I found it. I think I will try to switch to xmonad in the comings months but will wanna have gnome available as a fallback / for guests
tertl3 has quit [Quit: Connection closed for inactivity]
zli has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
alex`` has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #47217 → iwd: 0.7 -> 0.8 → https://git.io/fAFL0
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAFqA
Thra11 has quit [Ping timeout: 252 seconds]
hamishmack has quit [Ping timeout: 245 seconds]
xeji has joined #nixos
hakujin has joined #nixos
patrl has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #47221 → vim: remove legacy additional-nix-code → https://git.io/fAFmM
<{^_^}> [nixpkgs] @Mic92 merged pull request #47219 → xorg.libxcb: 1.12 -> 1.13 → https://git.io/fAFt0
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/fAFm7
<{^_^}> [nixpkgs] @Mic92 closed pull request #44994 → nextcloud module: init → https://git.io/fNFxO
nckx has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #44968 → wasm-gc: init at 0.1.6 → https://git.io/fNdV4
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAFYW
<{^_^}> [nixpkgs] @Mic92 opened pull request #47222 → autoPatchelfHook: do not patch statically linked files → https://git.io/fAFYl
Thra11 has joined #nixos
jtojnar has quit [Quit: jtojnar]
jtojnar_ has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
Lears has joined #nixos
rfold has joined #nixos
ixxie has quit [Ping timeout: 244 seconds]
<d1rewolf> all, I have "(python2.withPackages(ps: with ps; [ dbus ]))" in my configuration.nix, but "import dbus" fails within the python repl. Any ideas what i'm missing?
<manveru> really should change the php derivation to allow a custom php.ini without rebuilding the whole language :|
<Myrl-saki> d1rewolf: Try [ps.dbus]
<Myrl-saki> It won't solve your problem, but there's probably at least 3 packages named dbus in nixpkgs.
<Myrl-saki> [myrl@myrl:~/Development/fbcli]$ nix run nixpkgs.pythonPackages.dbus-python
<Myrl-saki> nixpkgs.pythonPackages.dbus-python
justanotheruser has joined #nixos
<Myrl-saki> d1rewolf: Yep. Knew it. That's global dbus, not dbus-python.
<d1rewolf> Myrl-saki: that tells me "error: attribute 'dbus' missing"
<Myrl-saki> d1rewolf: Yeah, you were using pkgs.dbus.
<Myrl-saki> d1rewolf: Use dbus-python in your [] instead.
<d1rewolf> ps.dbus-python or just dbus-python?
<Myrl-saki> dbus-python
<Myrl-saki> Well either works.
mayhewluke has quit [Ping timeout: 240 seconds]
<d1rewolf> Myrl-saki: hmmm...no error on rebuild, but "import dbus" still fails
<Myrl-saki> Probably a wrong import.
<Myrl-saki> Let me give it a try.
patrl has quit [Ping timeout: 260 seconds]
mayhewluke has joined #nixos
<Myrl-saki> Works for python36
<Myrl-saki> Trying again with python2
<Myrl-saki> d1rewolf: Works for me.
<d1rewolf> Myrl-saki: rly? with python2?
<sphalerite> manveru: uh, does it not?
ronin7z has joined #nixos
<ronin7z> hii there
<ronin7z> was thinking of giving nixos a shot, just got one question
<Myrl-saki> d1rewolf: nix-shell -p '((import <nixpkgs> {}).python2.withPackages (ps: with ps; [ dbus-python ]))'
<ronin7z> how are peoples experiences with wine?
<sphalerite> ronin7z: not much different from debian as far as I've used it. Which isn't that much to be fair
Izorkin has quit [Disconnected by services]
<ronin7z> sphalerite: ive never been able to run wine without hassle as i did on arch
<ronin7z> like every other distro seems to have quirks
<ronin7z> except for arch and gentoo
<sphalerite> I don't remember any quirks on debian myself
<Myrl-saki> FWIW, I always use WINE Staging, so I had to compile it myself. :P
<d1rewolf> Myrl-saki: weird...works for me nix-shell, but not upon rebuild
<sphalerite> Myrl-saki: huh..? but it's in the cache
<d1rewolf> but I get no error on rebuild
<Myrl-saki> d1rewolf: Probably a different Python.
<Myrl-saki> sphalerite: Wine staging is not in the cache.
<Myrl-saki> sphalerite: Wine staging + WoW is double not in the cache.
<ronin7z> there is no wine-staging package on nixos? unlucky
<sphalerite> $ nix build nixpkgs.wineStaging
<sphalerite> [1 copied (404.5 MiB), 58.0 MiB DL]
<Myrl-saki> Huh.
<Myrl-saki> WAT
<sphalerite> ronin7z: there is a package
<Myrl-saki> Since when
<sphalerite> ronin7z: "not in the cache" means there aren't binaries available
<manveru> sphalerite: with phpfpm.phpOptions i can't override upload_max_filesize for example
<ronin7z> oh that isnt a problem for me
<Myrl-saki> sphalerite: I used config.wine.release = "staging";
<manveru> sphalerite: because it's already set in the php.ini-production that's the default php.ini for the php package
<Myrl-saki> Let me disable wineWow, and see if it will download from bincahce.
<ronin7z> how is nixos in complexity compared to like arch/void/gentoo/crux?
<Myrl-saki> sphalerite: these paths will be fetched (63.11 MiB download, 432.61 MiB unpacked):
<Myrl-saki> /nix/store/ab15p8z0nv8y7m5gbjcr347bmyzppmbc-wine-3.14-staging
<Myrl-saki> sphalerite: Maybe it started getting built recently?
<d1rewolf> Myrl-saki: they're both 2.7.15, but "which python" shows a different path with external compared to nix-shell. However, isn't that the nature of running it with nix-shell (always a different path)?
<Myrl-saki> Either way, wineWoW + Staing is still not in bincache, I believe.
endformationage has joined #nixos
<manveru> ronin7z: using wine via steam atm, seems to work perfectly
<ronin7z> you mean proton?
<sphalerite> ,library d1rewolf
<{^_^}> d1rewolf: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<manveru> yeah
<ronin7z> yeee proton mostly works okay for me
<Myrl-saki> sphalerite: I think he's doing it properly.
<ronin7z> but i use wine-staging for world of warcraft and Overwatc h
<Myrl-saki> sphalerite: d1rewolf | all, I have "(python2.withPackages(ps: with ps; [ dbus ]))" in my configuration.nix
<d1rewolf> sphalerite: Myrl-saki: right. and I get no errors upon rebuild
<sphalerite> oh
<ronin7z> hmm do i go with minimal install cd
<manveru> ronin7z: fair enough :) i think that works too... i used to play HotS in wine a few years ago
<ronin7z> or with the kde thingy
<sphalerite> ronin7z: yes. The graphical install CD is kind of silly, because there's no graphical installer :p
<ronin7z> does compiling/installing everything take long?
<sphalerite> no, it doesn't take long. Not much compiling to do usually.
<manveru> depends on your bandwidth
<sphalerite> oh yeah true
<Myrl-saki> Well.
<sphalerite> your bandwidth and which software you've got in your config
<Myrl-saki> TBF, the squashing takes 15 mins easily.
<ronin7z> so whats the point of the graphical install cd?
<Myrl-saki> On my i5-5005U.
<ronin7z> just that you have a functional enviroment
<ronin7z> while installing?
<sphalerite> ronin7z: having a graphical partition editor I suppose
<Myrl-saki> Oh wait.
<Myrl-saki> I thought he was asking about building minimal install CD. Disregard. :P
<srhb> ronin7z: A proper browser can also be nice.
<srhb> Personally, I prefer a graphical browser but a CLI partition editor.
<ronin7z> yeee
<sphalerite> oh yeah, if you've only got the one computer handy
<Myrl-saki> srhb: You mean w3m is not a proper browser???
<ronin7z> would be nice for reading installation guides etc
rfold has quit [Quit: leaving]
<srhb> Myrl-saki: Sorry, i should have used "modern new-fangled"
<Myrl-saki> :P
mkoenig has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @erictapen closed pull request #45889 → buildRustPackage, fetchcargo: optionally use the real config from cargo vendor → https://git.io/fAWa0
<ronin7z> oh right
<sphalerite> ronin7z: well the nixos manual is included in the CD and accessible on tty6 so you won't need the graphical stuff for that really
<ronin7z> what init does nixos use?
<sphalerite> systemd
<ronin7z> that was a quick answer
<sphalerite> easy question, quick answer ;)
Izorkin has joined #nixos
mkoenig has joined #nixos
<sphalerite> manveru: seems like a limitation on the phpfpm module, not so much the package
<manveru> sphalerite: right now i have a postInstall overrideAttrs for php that replaces it...
<manveru> what's a better option there? :)
<Myrl-saki> I wonder how many result files I have lol
<{^_^}> #24432 (by 3noch, 1 year ago, open): Improve organization of PHP ecosystem
<sphalerite> manveru: wrapping it in another derivation?
<sphalerite> manveru: or fixing the module ;)
<d1rewolf> sphalerite: Myrl-saki: here's the nix file I'm using. Do you see a problem with the dbus syntax?
notlar has joined #nixos
echel0n_ has joined #nixos
stanibanani has joined #nixos
<Myrl-saki> d1rewolf: Try removing python2.withPackages.
<Myrl-saki> d1rewolf: Something might be putting python in your PATH.
acarrico has joined #nixos
ronin7z has quit [Ping timeout: 256 seconds]
<d1rewolf> Myrl-saki: you mean make that line look like "(ps: with ps; [ dbus-python ])"?
<Myrl-saki> d1rewolf: Yes, delete the whole line.
<d1rewolf> Myrl-saki: wait....delete the whole line or just the python2.withPackages part? Or are you saying you're trying to hunt down what other .nix config might be adding python?
<Myrl-saki> d1rewolf: The latter.
<d1rewolf> k. one sec
<d1rewolf> it's still there after rebuild. Let me pastebin a grep of python of all my .nix files
<{^_^}> [nixpkgs] @pvgoran opened pull request #47224 → nixos/tomcat: add aliases sub-option for virtual hosts → https://git.io/fAF3W
alex`` has joined #nixos
<Myrl-saki> d1rewolf: You can use nix why-depends..
<Myrl-saki> Wait, let me try it out.
<d1rewolf> this is all references to python in my nix files: https://pastebin.com/1vatQFB6
<Myrl-saki> Though, I don't think I can.
<d1rewolf> 11 and 12 were uncommented earlier, but I commented them and it still installs python
ronin7z has joined #nixos
<ronin7z> hmmm
<ronin7z> for refind, do i just switch systemd-boot.enable = true to a refind equivalent?
mkoenig has quit [Remote host closed the connection]
<srhb> I don't believe we have a refind module.
<sphalerite> ronin7z: no, systemd-boot is systemd-boot
<ronin7z> i guess i can just disable systemd-boot
<ronin7z> and then install refind through the binary
<sphalerite> ronin7z: refind will most likely not be able to boot nixos
<ronin7z> but its listed on the wiki smh
mkoenig has joined #nixos
<ronin7z> in the manual
<sphalerite> ronin7z: you'll have to get refind to boot nixos via systemd or grub
<sphalerite> if you want to use it
<sphalerite> if not, systemd-boot or grub will do fine on their own :)
<ronin7z> so i will have to setup systemd-boot and let refind point to systemd-boot
<ronin7z> if i want to use it
<sphalerite> yes
<sphalerite> refind is only mentioned for booting the cd. Seems a bit odd to install it just for booting the installer one-off, but hey
<d1rewolf> sphalerite: Myrl-saki: any further ideas how I might troubleshoot this, or could you point me at a doc(s) that might clear things up?
hakujin has quit [Ping timeout: 240 seconds]
klntsky has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAF3F
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fAF3A
klntsky has joined #nixos
<nh2> domenkozar: after `cachix push`, should the pushed bits be immediately available for downloaders or are there caches at play that may need to be refreshed (either at cachix itself or the user's nix)?
<nh2> e.g. does nix "cache" cache info temporarily?
<Myrl-saki> Yes.
<srhb> nh2: Assuming this is using regular substitution mechanics, yes, nix does cache the results
<srhb> nh2: ~/.nix/cache/binary-cache* for instance
<Myrl-saki> [myrl@myrl:~]$ ls ~/.cache/nix/binary-cache-v5.sqlite
<Myrl-saki> /home/myrl/.cache/nix/binary-cache-v5.sqlite
<Myrl-saki> srhb: :c
<srhb> Sowwi.
<srhb> nh2: You can nuke it from orbit if you want.
<nh2> what's the way to clear that cache, so that nix will check again whether something exists at a substituter?
<srhb> ^
<nh2> just deleting that entire file?
<srhb> both of the binary-cache* files.
<Myrl-saki> Not really fond of doing that though, since you have to reload the whole binary cache metadata again.
<srhb> I suppose you can knock yourself out with sqlite too. :)
<srhb> But who's got time for that when you have orbital weaponry.
<nh2> Myrl-saki: should be faster than actually building stuff though I guess
<nh2> srhb Myrl-saki: thanks everyone!
<aszlig> steveeJ: you mean like having a vmWithBootLoader as a test node? you can use createMachine for that, eg. like it's done in tests/boot.nix
<srhb> nh2: The recent narinfo-cache-positive/negative-ttl options might also help
<srhb> nh2: I imagine setting the negative one to zero for one command might force a recheck
<srhb> nh2: (It's one hour by default)
Ericson2314 has joined #nixos
ronin7z has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #47220 → php: set mysql socket path if mysql[i] or pdo_mysql support is enabled → https://git.io/fAFtp
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAFG8
<alex``> Who use custom shells are their main shell here?
<alex``> like Elvish
<alex``> I have some trouble having it as main shell
<{^_^}> [nixpkgs] @Mic92 pushed commit from @flokli to release-18.09 « php: set mysql socket path if mysql[i] or pdo_mysql support is enabled »: https://git.io/fAFGR
<alex``> when logging without display manager, PATH is not set like it is for Bash
<alex``> so I get an unusable shell
<Ericson2314> git diff upstream/master upstream/release-18.09 nixos/doc/manual/release-notes/rl-1809.xml
<Ericson2314> we got a problem, y'all
<srhb> Ericson2314: What's the problem?
<gchristensen> Ericson2314: looks like just a missed patch?
<Ericson2314> the release notes are out of sync
<Ericson2314> missed revert
<srhb> Ah, yes.
<srhb> Looks like just one commit.
<Ericson2314> the 2.0 change is only on master
<srhb> Yeah, it was reverted for 18.09
<Ericson2314> I was going to make a PR to move release notes for 19.03 for 2.0
<Ericson2314> that seem correct?
patrl has joined #nixos
<srhb> The previous discussion does seem to imply that we can certainly do the bump in 19.03
<Ericson2314> indeed
<{^_^}> [nixpkgs] @grahamc pushed commit from @matthewbauer to master « Revert "nixos docs: add release notes for nix 2.0 requiremnt bump" »: https://git.io/fAFGr
<gchristensen> nbd :)
<Ericson2314> :)
<Ericson2314> thanks
<srhb> Ericson2314: Since you're here, what on earth is going on with 344e6e229c29347db5a7fab07ee8392387adfc17 and 45f40f5fe02d71f9863e54277a50fe7e1dc46afa ? :P
<Ericson2314> srhb: that's the downside of my merge-base trick
<Ericson2314> there were two most-common ancestors, so I merged them and then merged that into each branch
<Ericson2314> making one common ancestor
<srhb> Ah, I see. I was super mystified. :P
<Ericson2314> (the trees were not changed with those merges)
<Ericson2314> I've had to do so much immediate-to-18.09-and-master small changes for reflex-platform
<Ericson2314> it very much helps
<nh2> srhb Myrl-saki: wrote it down at https://github.com/domenkozar/nix-cookbook/pull/5/files
<srhb> nh2: Thanks. :)
<srhb> nh2: Though the default cache is just one hour for negative lookups
<srhb> nh2: One month for positive, iirc.
<srhb> Which is tons of fun if your cache is garbage collected often :P
<srhb> Though I think there was a PR to recheck if there's a failure on a positive cache hit, which used to be a hard build error.
<srhb> Might already be in 2.1
Thra11 has quit [Ping timeout: 252 seconds]
<Ericson2314> hmm now the 19.03 release notes are missing the breaking changes section
<Ericson2314> there are also formatting differences
<gchristensen> run `make format` on both
* Ericson2314 finds makefile :)
<nh2> srhb: OK, I improved the wording to reflect that
<gchristensen> Ericson2314: did it work?
<Ericson2314> gchristensen: yes, thanks!
<gchristensen> good :)
<Ericson2314> making PR for nix 2.0 notes for 19.03 now
<{^_^}> [nixpkgs] @flokli opened pull request #47227 → php: set mysql socket path if mysql[i] or pdo_mysql support is enabled → https://git.io/fAFZM
<gchristensen> we should add a builtins.trace warning for nix1 on unstable, probably, so it isn't a surprise
<Ericson2314> gchristensen: agreed
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47228 → release-notes/19.03: add release notes for nix 2.0 requirement bump → https://git.io/fAFZp
rfold has joined #nixos
<rfold> It seems like nix-copy-closure always uses SSH. I want to copy the closure into a tar. I can do it in Nix with closureInfo, but is there a command-line utility for this?
haitlah has joined #nixos
<Ericson2314> ok docs up, whew
MinceR has quit [Ping timeout: 272 seconds]
MinceR has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47228 → release-notes/19.03: add release notes for nix 2.0 requirement bump → https://git.io/fAFZp
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to master: https://git.io/fAFnI
<Ericson2314> gchristensen, srhb: https://github.com/NixOS/nixpkgs/pull/41801#issuecomment-423827218 ok final release-notes mismatch issue
notlar has quit [Quit: notlar]
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
<perrier-jouet> any nixos maintainer ? I would like to know the framework or tools used to build nixos webpage https://nixos.org/
<perrier-jouet> any
<perrier-jouet> hi all any nixos maintainer ? I would like to know the framework or tools used to build nixos webpage https://nixos.org/
<perrier-jouet> hi allsorry for the repeat I was on another stuff
<Myrl-saki> nh2: Thanks.
<Myrl-saki> nh2: Starred.
<samueldr> perrier-jouet: any particular point of interest?
<manveru> perrier-jouet: seems like it's just some perl TemplateToolkit that produces static html
<samueldr> pretty much, manveru
<samueldr> there's some shenanigans to re-template the docbook manuals
<manveru> ah, yeah... and some js for stuff like the nixos options list
<manveru> but nothing i'd call a framework :)
<Ericson2314> I'm inclined to backport it
<Ericson2314> it's a new service
nckx has joined #nixos
<Ericson2314> so one coming from 18.03 will see a breaking change
<Ericson2314> and it already hit master
<Ericson2314> so release-18.09 right now is the anomaly
xeji has quit [Quit: WeeChat 2.1]
notlar has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed 21 commits to staging-18.09: https://git.io/fAFnw
<samueldr> Ericson2314: when you say "[users] coming from 18.03 will see a breaking change", that is before or after this fix, and what kind of breaking?
<perrier-jouet> manveru: this template seems popular because it has a clean and minimalist feeling
<perrier-jouet> manveru: are you sure they dont use a framework ?
<Ericson2314> samueldr: sorry that's backwards. they *won't* seee a breaking change
<Ericson2314> it's a new service
<samueldr> perrier-jouet: do you mean CSS?
<manveru> perrier-jouet: verify for yourself man :)
<Ericson2314> original author condones the change that PR made
michalrus has joined #nixos
<Ericson2314> the only breaking change is for people with custom mutable stuff coming from before-now release-18.03
<samueldr> Ericson2314: no worries, I was worrided about breaking things, but couldn't see anything described in the PR :)
<perrier-jouet> manveru: is this template the same ? https://sebmart.github.io/
<michalrus> Hey. Why can’t I do a module with `{ options = {}; config = mkMerge (map (_: {}) config.whatever; }`?
<Ericson2314> samueldr: /run -> /etc
<samueldr> yes
<michalrus> Getting infinite recursion…
<samueldr> and yes, since the other PR is in 18.09 (afaict) the additional fix should as well be backported
<manveru> perrier-jouet: that's bootstrap
<gchristensen> perrier-jouet: the website is based on bootstrap
<perrier-jouet> manveru: which template of bootstrap ? there are many
<samueldr> perrier-jouet: as far as styles and CSS, perrier-jouet, it's bootstrap 2 that's been used for the nixos website
<gchristensen> bootstrap2
<samueldr> and without "pre-made" themes, clean bootstrap2 with tweaks as needed
<michalrus> Why can’t mkMerge take a list from configuration.nix? :/
<manveru> perrier-jouet: do you know how to read html?
<{^_^}> [nixpkgs] @symphorien opened pull request #47229 → graphviz: fix CVE-2018-10196 → https://git.io/fAFnQ
<perrier-jouet> yes I know how to read html
<manveru> well, it's all in the <head> :)
<manveru> usually anyway, unless people go out of their way to obfuscate it
jtojnar_ has quit [Quit: jtojnar_]
jtojnar has joined #nixos
Kelppo has quit []
<{^_^}> [nixpkgs] @bhipple opened pull request #47230 → Remove dead code from stdenv check-meta license logic → https://git.io/fAFcP
<{^_^}> [nixpkgs] @symphorien opened pull request #47231 → agedu: 20180522.5b12791 -> 20180918.80c7beb → https://git.io/fAFc1
<{^_^}> [nixpkgs] @Ma27 opened pull request #47232 → python3Packages.pyftgl: fix build → https://git.io/fAFc9
Fare has joined #nixos
ixxie has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fAFCc
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAFCl
sigmundv has joined #nixos
acarrico has quit [Ping timeout: 245 seconds]
juhe has joined #nixos
sigmundv has quit [Remote host closed the connection]
<juhe> shrb: thanks for tip how to make shell script properly via writeShellScriptBin function, I made it working.
<juhe> shrb++
<{^_^}> shrb's karma got increased to 1
<gchristensen> srhb :)
rfold has quit [Ping timeout: 260 seconds]
<emily> srhb++
<{^_^}> srhb's karma got increased to 19
<emily> shrb-- for being an imposter
<emily> dang, illbegotten karma kept forever
<srhb> Haha
<srhb> Thanks. :)
<{^_^}> [nixops] @Chakerbh opened pull request #1011 → Support persistent spot requests → https://git.io/fAFC7
<juhe> oh damn... Can't remember even nick of a guy who helped me... Shame on me!
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to release-18.09: https://git.io/fAFWI
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/5bb85cd45ce (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
simukis has joined #nixos
<{^_^}> [nixpkgs] @bhipple closed pull request #47230 → Remove dead code from stdenv check-meta license logic → https://git.io/fAFcP
<gchristensen> I <3 nixops' dry-activate
<gchristensen> it is so good
<juhe> gchristensen: is it also in 18.03 release (I didn't dare to update to 18.09 yet)?
<{^_^}> [nixpkgs] @bhipple reopened pull request #47230 → Remove dead code from stdenv check-meta license logic → https://git.io/fAFcP
<gchristensen> it has been there for a long time I think
<juhe> oh, ok. I never used it (yet), though will try next time when updating cluster of machines being maintained by nixops.
<gchristensen> I have my deployment automatically done, and it automatically does a dry-activate, and then rquires a push-button confirmation to do the real activation
<{^_^}> [nixpkgs] @oxij opened pull request #47233 → treewide: mass rebuild noop cleanups → https://git.io/fAFWw
<steveeJ> sphalerite: any epiphanies since earlier today? :D
<juhe> gchristensen: yes, that sounds useful
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAFWD
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging-18.09: https://git.io/fAFWS
<{^_^}> [nixpkgs] @Ma27 opened pull request #47234 → tig: fix zsh completion → https://git.io/fAFln
<{^_^}> [nix] @yegortimoshenko closed pull request #2422 → Place global lock on fetchGit → https://git.io/fAXI4
<gchristensen> on one hand, fancy hardware is fun. on the other, compiling kernels is not
rfold has joined #nixos
michalrus has left #nixos ["WeeChat 1.9.1"]
<samueldr> you can't leave us hanging :)
<sphalerite> steveeJ: unfortunately not :/
<steveeJ> sphalerite: with the help of tracing I found out that it is system which is set
<gchristensen> it is jus tthe typical mallanox NICs on the Packet devices
<{^_^}> [nixpkgs] @oxij opened pull request #47235 → libcardiacarrest: 12.1-6 -> 12.1-7 → https://git.io/fAF8c
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @oxij opened pull request #47236 → bluez-alsa: init at 1.3.0 → https://git.io/fAF82
mizu_no_oto has joined #nixos
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon2 is now known as Mateon1
<steveeJ> in case somenone's around now who's really familiar with the module system I'll repaste. I'm trying to build a VM image and swap its packages out for externally specified ones like so: https://gitlab.com/steveeJ/nix-expressions/blob/staging/tests/buildvmwithbootloader/build-vm.nix when I build this, I'm getting an assertion failure: https://gist.github.com/steveeJ/cacca3e42e13f2f80010e0a6dff27cfb
<steveeJ> some module is setting impure's localSystem and system argument, but they're not supposed to be set at the same time
<{^_^}> [nixpkgs] @7c6f434c merged pull request #47235 → libcardiacarrest: 12.1-6 -> 12.1-7 → https://git.io/fAF8c
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fAF8x
<{^_^}> [nixpkgs] @bhipple opened pull request #47237 → WIP: Factoring out unfree non-redistributable vs. unfree redistributale licenses → https://git.io/fAF4e
<{^_^}> [nixpkgs] @garbas closed pull request #46901 → NetworkManager VPN plugins are broken on master (and 18.09) → https://git.io/fA97l
<gchristensen> just set system instead of localsystem?
<{^_^}> [nixpkgs] @garbas merged pull request #47212 → openvpn plugins: use absolute paths to configuration gui → https://git.io/fAFTB
<{^_^}> [nixpkgs] @garbas pushed commit from @symphorien to master « openvpn plugins: use absolute paths to configuration gui »: https://git.io/fAF4s
<steveeJ> gchristensen: I'm not sure where and how they get set. I'm not passing any of them knowingly
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47238 → lib: Make `overrideScope` take arguments in the conventional order → https://git.io/fAF4G
worldofpeace has joined #nixos
<worldofpeace> Can anyone merge/review #46959 ? (currently 'broken' without this fix)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/46959 (by worldofpeace, 3 days ago, open): nixos/emby: ensure plugins are writeable
<{^_^}> [nixpkgs] @Mic92 merged pull request #47234 → tig: fix zsh completion → https://git.io/fAFln
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAF4W
<{^_^}> [nixpkgs] @samueldr merged pull request #43390 → electron-cash: 3.1.6 -> 3.3.1 → https://git.io/fNIKe
<{^_^}> [nixpkgs] @samueldr pushed 5 commits to master: https://git.io/fAF48
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47239 → lib: Make `overrideScope` take arguments in the conventional order → https://git.io/fAF4B
<{^_^}> [nixpkgs] @dtzWill merged pull request #47119 → libinput: 1.11.3 -> 1.12.0 → https://git.io/fA5Yu
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to staging: https://git.io/fAF4w
<{^_^}> [nixpkgs] @Mic92 pushed commit from @Ma27 to release-18.09 « tig: fix zsh completion »: https://git.io/fAF4i
haitlah has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill merged pull request #47147 → mesa: 18.1.8 -> 18.2.1 → https://git.io/fA59t
<{^_^}> [nixpkgs] @dtzWill pushed 5 commits to staging: https://git.io/fAF4y
<{^_^}> [nixpkgs] @dtzWill merged pull request #47120 → xf86-input-libinput: 0.26.0 -> 0.28.0 → https://git.io/fA5YX
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fAF4S
<gchristensen> surely this compile will finish sometime
<{^_^}> [nixpkgs] @srhb merged pull request #45161 → teamspeak_server: 3.0.13.6 -> 3.3.0 → https://git.io/fNhzj
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAF45
Izorkin has quit [Read error: Connection reset by peer]
<srhb> gchristensen: One day..
<Ericson2314> I got to run, but interested in feedback on https://github.com/NixOS/nixpkgs/pull/47239
<{^_^}> #47239 (by Ericson2314, 6 minutes ago, open): lib: Make `overrideScope` take arguments in the conventional order
<Ericson2314> srhb gchristensen, for example ^
sigmundv has joined #nixos
<gchristensen> I'd love some line-breaks in there
<samueldr> gchristensen: you solved the halting problem?
<gchristensen> (docs)
<srhb> Ericson2314: Well, always a fan of harmonizing things, but is that really the only place it's used?
<Ericson2314> srhb: the ones I listed?
<Ericson2314> I did a grep
<srhb> And ime it's a bit late to go for 18.09. Great for 19.03 though. But I guess release managers can deal with that :)
<gchristensen> yeah I agree with it being a tad late for .09, is it onerous to not backport it?
<gchristensen> samueldr: lol.
<clever> Ericson2314: ah, its been bothering me that one of them took it in the other order, and i also couldnt remember what
<Ericson2314> fixed the indent
<Ericson2314> also i mistakenly linked you all the back port one oops
<{^_^}> [nixpkgs] @srhb merged pull request #46959 → nixos/emby: ensure plugins are writeable → https://git.io/fAQIB
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAFBt
<srhb> Ericson2314: I've begun to only open backport PRs after the master one is merged, seems to help avoid fracturing discussion :P
<Ericson2314> makes sense
<{^_^}> [nixpkgs] @Ericson2314 closed pull request #47239 → lib: Make `overrideScope` take arguments in the conventional order for 18.09 → https://git.io/fAF4B
<srhb> During release it's especially fun if you end up having a three-way conversation :D
asymmetric has joined #nixos
<worldofpeace> srhb: thx :)
<gchristensen> where is the main PR?
<{^_^}> #47238 (by Ericson2314, 19 minutes ago, open): lib: Make `overrideScope` take arguments in the conventional order
<Ericson2314> I was motivated in part to backport because I also want to land https://github.com/NixOS/nixpkgs/pull/45328
<{^_^}> #45328 (by thefloweringash, 5 weeks ago, open): [WIP] xorg: allow overriding via overrideScope
<Ericson2314> which uses makeScope
<Ericson2314> and which doesn't break any changes
nDuff has joined #nixos
<Ericson2314> and that would be good to backport for sake of any future (e.g. security) backports as it touches lots of lines
<{^_^}> [nixpkgs] @joakim1999 opened pull request #47240 → quodlibet: add glib-networking dep → https://git.io/fAFBW
Izorkin has joined #nixos
fendor has joined #nixos
<samueldr> seems to be the last super:.*self: in the codebase
<nDuff> Are patches to nixpkgs that make systemd dependencies optional (to make more of the tree buildable with musl) likely to be accepted, or does that fall into the unwanted-maintenance-complexity category?
<Ericson2314> samueldr: good catch!
fendor has quit [Ping timeout: 252 seconds]
<steveeJ> welp
chrisaw has joined #nixos
<chrisaw> Can anyone tell me what I'm doing wrong in my config here? I'm trying to remove an interface from being managed by networkd. My config line is: systemd.network.links."eno2".linkConfig = { Unmanaged = true; }; which is based on info from https://github.com/NixOS/nixos/blob/master/modules/tasks/network-interfaces.nix but I am getting: error: The option value `systemd.network.links.eno2.linkConfig' in `/etc/nixos/server/network.nix' is n
<chrisaw> ... of type `attribute set of systemd options'.
fendor has joined #nixos
palo_ has joined #nixos
reinzelmann has joined #nixos
<chrisaw> Oops - nope: it's based on info from https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/networkd.nix - there we go. :)
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/efd74a6575d (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<sphalerite> chrisaw: maybe it needs to be "yes" rather than true
<chrisaw> sphalerite: I thought that and did try it - tried it with "true" as well but no dice. Same error. :(
<sphalerite> oh ok
<chrisaw> steveeJ: Cheers, looks like that's network-manager though - my problem is with networkd. :)
<steveeJ> ah, sorry
<steveeJ> no clue about that
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/19e8f7c977b (from 34 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<sphalerite> chrisaw: aah unmanaged is for the linkConfig of a network, not of a link, which is admittedly rather confusing
<sphalerite> systemd.network.networks.<name>.linkConfig.Unmanaged = true; should work. Not sure how that's supposed to work really
<sphalerite> but yeah looking at man systemd.network and man systemd.link seems to confirm this
<emily> nDuff: I don't know but I'd love to see that!
<emily> nDuff: maybe ask on the discourse or something
<{^_^}> [nixpkgs] @oxij opened pull request #47241 → nixos/networking: add hostname to /etc/hosts by default, simplify → https://git.io/fAFRB
<sphalerite> nDuff: I think it's mostly that while many people would like to do it, nobody's really done it yet
<sphalerite> except MichaelRaskin. I wonder where he's been
arjen-jonathan has quit [Ping timeout: 252 seconds]
<gchristensen> I'm speaking as one person, but I don't see that being a likely direction for the nixpkgs repo
<emily> :(
sigmundv has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @grwlf closed pull request #42807 → mxnet: 1.1.0 -> 1.2.0 → https://git.io/fRL0t
<samueldr> the general sentiment I've seen is "it would be hard to keep maintained, so without the right people maintaining it on top of all the maintaining it can't really happen"; so such contributions can't be pump, dump and go away; they'd need care, thought and collaboration to stay relevant :/
<samueldr> (still, no official word, just one person talking)
Ralith_ has joined #nixos
<sphalerite> nDuff: oh yeah, the SLNOS thing ("suckless nixos") is probably worth mentioning. Idk if it's dead or just happening in secret
<sphalerite> the suckless community is weird.
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fAFRH
<{^_^}> [nixpkgs] @jtojnar merged pull request #47240 → quodlibet: add glib-networking dep → https://git.io/fAFBW
<{^_^}> [nixpkgs] @worldofpeace opened pull request #47242 → solargraph: 0.27.1 -> 0.28.1 → https://git.io/fAFR5
<chrisaw> sphalerite: got it - very odd. Clearly that's not what I need then! Thanks - I'll do some more research!
<sphalerite> nDuff: https://www.mail-archive.com/nix-dev@lists.science.uu.nl/msg34206.html this thread contains pretty much all the public stuff about SLNOS as far as I know
<avn> nDuff: I believe these patches can be at least discussed, and possible accepted if they not break anything
<nDuff> *nod*, thanks -- I'll see what it takes to get something together, and can go from there.
<{^_^}> [nixpkgs] @dtzWill merged pull request #46888 → llvm7 → https://git.io/fA90B
<{^_^}> [nixpkgs] @dtzWill pushed 13 commits to master: https://git.io/fAF0T
<nDuff> The particular dependency I'm looking at fixing is for a tool under a Free license that gets commercial use, so I could promise to take care of it for as long as I'm remaining in my current job position, still bundling that tool in our product, &c. Couldn't make that commitment across more of the repo than the parts I can justify spending day-job time on.
notlar has quit [Quit: notlar]
<sphalerite> nDuff: oh yeah, not-os is also worth mentioning — it's not so much for general-purpose stuff as nixos AFAIK, but it runs without systemd https://github.com/cleverca22/not-os/
<sphalerite> and is built on top of nixpkgs
<gchristensen> nDuff: what package?
<nDuff> gchristensen, nwipe. The problematic dependency chain is parted -> lvm2 -> systemd
<gchristensen> ah yeah
ixxie has quit [Remote host closed the connection]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
reinzelmann has quit [Quit: Leaving]
Thra11 has joined #nixos
Thra11 has quit [Ping timeout: 252 seconds]
jD91mZM2 has quit [Quit: WeeChat 2.0]
Ericson2314 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @veprbl opened pull request #47243 → pyjet: init at 1.3.0 → https://git.io/fAFEm
<{^_^}> [nixpkgs] @aszlig opened pull request #47244 → stdenv: Improve ELF detection for isELF → https://git.io/fAFEO
<steveeJ> aszlig: ideally I'd want the packages in the VM to be built from a different nixpkgs set than the VM tools which assemble and run the image
<nDuff> Hmm. I was under the impression that using overrideAttributes to remove references to systemd would implicitly remove it from buildInputs, but that seems not to be the case.
<sphalerite> nDuff: no — you'd need to pass in a new buildInputs without it.
<steveeJ> sphalerite: I'm a step further now! the imports seem to be correct now, i.e. there are no failed assertions and it builds a runnable VM, yet the result is not what I'm aiming for. https://gitlab.com/steveeJ/nix-expressions/blob/staging/tests/buildvmwithbootloader/build-vm.nix
<sphalerite> nDuff: what you could do is override it with { systemd = null; }
<sphalerite> nDuff: that way it doesn't have a way to refer to systemd — and stdenv is fine with having nulls in buildInputs
<sphalerite> nDuff: that is, using .override instead of (or as well as) overrideAttrs
<nDuff> Hmm. I tried that earlier, but presumably got the syntax wrong; going to take another shot at it.
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fAFEa
<rawtaz> O HAI
<sphalerite> nDuff: if you need both, you need some extra parens, like (foo.override {systemd = null;}).overrideAttrs (o: {mkDerivation arg overrides here;})
<sphalerite> rawtaz: o/
<{^_^}> [nixpkgs] @dtzWill opened pull request #47245 → coreutils: try 8.30 again, fix bootstrap tools expression motivating revert before → https://git.io/fAFEK
mbrgm has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to release-18.09: https://git.io/fAFE6
<asymmetric> i don't understand the difference between nix-build and nix-instantiate
<asymmetric> don't they both save derivations in the store?
<manveru> asymmetric: that's because nix-build is a wrapper for nix-instantiate
<manveru> as the manpage says: "nix-build is essentially a wrapper around nix-instantiate (to translate a high-level Nix expression to a low-level store derivation) and nix-store --realise (to build the store derivation)."
<asymmetric> ah, i see
<asymmetric> but the man page for nix-instantiate says "The paths of the resulting store derivations are printed on standard output."
<asymmetric> and the man page for `nix-build` says that it's nix-instantiate + nix-store --realize
<manveru> derivations aren't derivation outputs
<manveru> you have to realize them to actually do the build
<manveru> a derivation is basically the blueprint
<asymmetric> ah, got it
<nDuff> Are there tools for pretty-printing a derivation?
<manveru> nDuff: `nix show-derivation` is one
<manveru> also there's `:p` in `nix shell`, but not sure how well it works for derivations
<steveeJ> sphalerite: it's working \o/
<sphalerite> yaaaaay!
rfold has quit [Quit: leaving]
<sphalerite> What was the key?
juhe has left #nixos ["PART #nixos :PING 1537733745"]
<{^_^}> [nixpkgs] @manveru opened pull request #47246 → terraform-provider-gandi: init at 0.0.1 → https://git.io/fAFuq
<nDuff> okay, so the changes I've made successfully changed systemd from ["dev", "out"] to just ["dev"]
<nDuff> however, it's not buildable at all with musl, so having it a build dependency isn't workable either.
<steveeJ> sphalerite: I updated the expressions on gitlab
patrl has quit [Ping timeout: 264 seconds]
<sphalerite> nDuff: you could always use an overlay that replaces systemd with null for the entirety of nixpkgs. Of course that means building everything from source and likely a large amount of failures, but this sounds like a cost you'll have been anticipating anyway :)
<steveeJ> in short, it's only importing the qemu-vm module from a different path, everything else is from the pkgs from which the VM packages should come from
<{^_^}> [nixpkgs] @danme opened pull request #47247 → nvidia-x11: Fix vulkan VK_KHR_xcb_surface → https://git.io/fAFuZ
<steveeJ> the 'pkgs' argument to the qemu-vm module is what ultimately gets into the image
tobiasBora has quit [Quit: WeeChat 1.6]
<steveeJ> but it also uses the qemu from those pkgs which possibly breaks compatibility between the module and the qemu version, so it's very prone to breakage
orivej has joined #nixos
<{^_^}> [nixpkgs] @dtzWill pushed to master « 19.03: fix section id »: https://git.io/fAFuR
<nDuff> sphalerite, ...hmm. Putting in an overlay would at least make it easier to track where that build-time dependency is coming from. And "building everything from source" already happened last night when I attempted to do my first musl-based package build, so eh, why not do it again? :)
<{^_^}> [nixpkgs] @danme opened pull request #47248 → nvidia-x11: Fix vulkan VK_KHR_xcb_surface → https://git.io/fAFuE
<steveeJ> it would be helpful to make a clear distinction in the qemu-vm package between build pkgs and target-vm pkgs
abueide has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47242 → solargraph: 0.27.1 -> 0.28.1 → https://git.io/fAFR5
<{^_^}> [nixpkgs] @xeji pushed commit from @worldofpeace to master « solargraph: 0.27.1 -> 0.28.1 (#47242) »: https://git.io/fAFui
lord| has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @xeji merged pull request #46995 → mwic: 0.7.5 -> 0.7.6 → https://git.io/fAQoM
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mwic: 0.7.5 -> 0.7.6 (#46995) »: https://git.io/fAFuQ
<{^_^}> [nixpkgs] @Mic92 opened pull request #47249 → stdenv: make isELF more precise → https://git.io/fAFu7
lord| has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47030 → libmediainfo: 18.08 -> 18.08.1 → https://git.io/fA7ek
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « libmediainfo: 18.08 -> 18.08.1 (#47030) »: https://git.io/fAFuA
lord| has quit [Client Quit]
<{^_^}> [nixpkgs] @xeji merged pull request #47231 → agedu: 20180522.5b12791 -> 20180918.80c7beb → https://git.io/fAFc1
<{^_^}> [nixpkgs] @xeji pushed commit from @symphorien to master « agedu: 20180522.5b12791 -> 20180918.80c7beb (#47231) »: https://git.io/fAFup
<{^_^}> [nixpkgs] @xeji merged pull request #47232 → pythonPackages.pyftgl: fix build → https://git.io/fAFc9
<{^_^}> [nixpkgs] @xeji pushed commit from @Ma27 to master « pythonPackages.pyftgl: fix build (#47232) »: https://git.io/fAFze
<{^_^}> [nixpkgs] @xeji pushed commit from @Ma27 to release-18.09 « pythonPackages.pyftgl: fix build (#47232) »: https://git.io/fAFzJ
<alex``> How to get environment variables?
<alex``> If I don’t start with a display-manager or Bash, I don’t get any variables
<{^_^}> [nixpkgs] @xeji merged pull request #47243 → pyjet: init at 1.3.0 → https://git.io/fAFEm
<{^_^}> [nixpkgs] @xeji pushed commit from @veprbl to master « pyjet: init at 1.3.0 (#47243) »: https://git.io/fAFzI
<alex``> PATH is the most problematic
<alex``> Also, in SDDM, PATH seems not be set in sddm.setupScript
<alex``> So I can’t call normally scripts in there
<{^_^}> [nixpkgs] @xeji merged pull request #46999 → mono-addins: 1.2 -> 1.3.3 → https://git.io/fAQi9
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mono-addins: 1.2 -> 1.3.3 (#46999) »: https://git.io/fAFzm
<steveeJ> alex``: you can refer to a binary directly via e.g. ${pkgs.busybox}/bin/busybox. the path after the pkg name is relative to it's $out
<alex``> ${pkgs.busybox} can be ${busybox} directly?
<alex``> like when we refer in the Package list
<alex``> or it has to be pkgs.PACKAGE
<steveeJ> alex``: it works like that in the pkgs list because of the 'with pkgs;' before the list
<alex``> I can do like that, but it’s mostly scripts in my /home/alex/configuration/bin/
<alex``> I can give a full path, but the scripts in, will call other bin inside :/
<steveeJ> are you writing a systemd service?
<alex``> Oh nice
<alex``> environment.systemPackages = with pkgs; [
<alex``> steveeJ: Nope
<steveeJ> what's the use-case?
<alex``> I just want my variables set when using Elvish
<alex``> I have no·thing
<steveeJ> how do you run that shell? if you set it as your user shell it should work out of the box
<alex``> PATH=/bin/:/usr/bin
<alex``> I set like this
<alex``> steveeJ: It does not work without the display-manager
<alex``> I think because it source the xsession or something like that
<{^_^}> [nixpkgs] @basvandijk pushed to master « haskellPackages.Euterpea: fix build by using PortMidi == 0.2 »: https://git.io/fAFzo
<steveeJ> you mean it doesn't work on the virtual-terminal?
<alex``> and in the display-manager config (sddm), the option startupScript, the xsession is not sourced yet when the commands are executed
<alex``> so I got an almost empty PATH
<alex``> steveeJ: yep virtual-terminal
<steveeJ> you can try to source /etc/profile
<alex``> where?
<alex``> in startupScript ?
<alex``> `source /etc/profile`
<alex``> ?
<steveeJ> I'd expect your shell to have a defaultrc somewhere
lord| has joined #nixos
<steveeJ> mh yeah, try the startup script. can't break that hard
Fare has quit [Ping timeout: 252 seconds]
<alex``> so Elvish, as user shell, can’t work without a display manager?
<{^_^}> [nixpkgs] @basvandijk pushed to release-18.09 « haskellPackages.Euterpea: fix build by using PortMidi == 0.2 »: https://git.io/fAFz9
<steveeJ> alex``: I wouldn't say so. just try to login in the VT and manually 'source /etc/profile'
<steveeJ> source should be a shell-builtin
<alex``> Elvish is not POSIX
<alex``> I can’t make him to source /etc/profile
<steveeJ> how is it initialized?
<alex``> the workaround would be to keep Bash as user shell
<alex``> and in bashrc
<alex``> exec elvish
<alex``> but doesn’t feel a good idea
<steveeJ> if it can't source a profile that's bad
<steveeJ> so you're past good ideas already ;-)
<alex``> how the display manager make it to work?
<alex``> with it, Elvish works fine
<steveeJ> I assume it just inherits the environment from the parent process
<alex``> yep
<steveeJ> and systemd-logind or whatever is used on the VT doesn't have all the things
<steveeJ> it relies on the shell to initialize itself
<alex``> hm
<steveeJ> that's what /etc/profile is for
<emily> you could also just spawn a sh that sources /etc/profile then outputs its environment
<steveeJ> something even NixOS sticks to :D
<emily> IIRC fish has special stuff specifically for doing this
<alex``> the best recommendation if I don’t want a login manager, would be to keep bash, and run elvish in it from my bashrc?
<emily> you should be able to do the same thing in whatever /etc file elvish reads for login shells
<samueldr> emily: I was just searching for that :)
<emily> that'd be the "cleanest" way to do it
<steveeJ> alex``: that seems to be the case yeah
<emily> and I'd love if you upstreamed that into NixOS since I ran into the same problem
<alex``> hi from Kakoune o/
<emily> alex``: kakoune-based IRC client?
<emily> or do you just mean recognising me :p
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/ef9e8bd9335 (from 61 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> [nixpkgs] @lopsided98 opened pull request #47250 → raspberrypi-bootloader: allow custom target directory and support 64-bit Raspberry Pi 3 → https://git.io/fAFgm
<alex``> emily: it could be with ii :p
simukis has quit [Quit: simukis]
hakujin has joined #nixos
stanibanani has quit [Ping timeout: 252 seconds]
georges-duperon has quit [Ping timeout: 252 seconds]
catid has joined #nixos
<catid> good afternoon all. i'm looking into switching to linux kernel 4.18+ as there are several improvements there for my laptop, but i don't see a package for it in "nix search" - any hints on how to upgrade?
<sphalerite> catid: boot.kernelPackages = pkgs.linuxPackages_latest; generally speaking. However, "latest" in 18.03 (or whatever release happens to be the current stable) may well not be the actual latest kernel release
<steveeJ> catid: your best bet is ` boot.kernelPackages = pkgs.linuxPackages_latest;` in you rconfig
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/19e8f7c977b (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<sphalerite> catid: you may want to try the 18.09 beta or the unstable channel.
<sphalerite> s/the unstable channel/one of the unstable channels/
<catid> thanks!
arjen-jonathan has joined #nixos
<{^_^}> [nixpkgs] @lopsided98 opened pull request #47251 → valgrind: enable debug info → https://git.io/fAFgd
mayhewluke has quit [Ping timeout: 272 seconds]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @lopsided98 closed pull request #45130 → Fix documentation of default option priority → https://git.io/fNhL9
<{^_^}> [nixpkgs] @xeji opened pull request #47252 → nixos/network-interfaces-scripted: fix a container networking bug → https://git.io/fAFgj
<{^_^}> [nixpkgs] @xeji merged pull request #47141 → jackline: 2017-12-24 -> 2018-05-11 → https://git.io/fA5iT
<{^_^}> [nixpkgs] @xeji pushed 4 commits to master: https://git.io/fAF2L
Ariakenom_ has joined #nixos
catid has quit [Ping timeout: 244 seconds]
<alex``> emily: Can you link me your nix/dotfiles config?
<emily> for the elvish stuff? I actually just gave up and stuck with bash for now :<
<alex``> XD
<emily> my full config is kind of a mess, I need to get it into a publishable state sometime
Ariakenom has quit [Ping timeout: 244 seconds]
fendor has quit [Read error: Connection reset by peer]
<alex``> for the Elvish stuff / Kakoune stuff as well
palo_ is now known as palo
<alex``> you have a Kakoune.nix to keep it to the last commit?
Anton-Latukha has quit [Quit: Leaving.]
arjen-jonathan has quit [Ping timeout: 252 seconds]
<alex``> currently I have a basic shell.nix with [pkgconfig ncurses] in my ~/prj/kakoune/src
<alex``> I’m sure there is better to do, but I don’t know Nix enough
<alex``> like the overlay or rewriting packages, etc.
<sphalerite> alex``: you should be able to use `nix-shell '<nixpkgs>' -A kakoune` to get a shell suitable for building kakoune
<emily> I just use the packaged version because I'm uncool :<
<alex``> the feb version is too old
<alex``> I’ve already updated post breaking changes
chrisaw has quit [Ping timeout: 256 seconds]
hakujin has quit [Ping timeout: 252 seconds]
<sphalerite> alex``: (in case that was in response to what I wrote, if not ignore ;) ) a shell for *building* kakoune
<alex``> Oh THANKS
<alex``> Can you bissect what the command do?
<alex``> nix-shell '<nixpkgs>'
<alex``> then --attr kakoune
abueide has quit [Ping timeout: 245 seconds]
<alex``> I was doing that before
<alex``> but your solution is a way nicer
<sphalerite> alex``: nix-shell, generally speaking, enters an approximation of the environment used for building a derivation
<sphalerite> your mkShell thing evaluates to such a derivation (one that doesn't actually build)
<sphalerite> but since we have kakoune packaged, we can just reuse the environment for that
<alex``> what does <nixpkgs>?
<sphalerite> nix-shell '<nixpkgs>' -A kakoune means get the shell for the derivation that's at the "kakoune" attribute of the expression you get when importing "<nixpkgs>"
<alex``> and attr kakoune
<sphalerite> and '<nixpkgs>' in turn means "the entry named nixpkgs on NIX_PATH"
<sphalerite> it's the same thing that's used for other nix commands in other ways. You might have done `nix-env -iA nixpkgs.foo` at some point, which is related but suffers from nix-env weirdness
<sphalerite> but in each of the cases, at some point you're calling into nixpkgs, the nix package collection, which contains several thousand packages, and selecting something within it
<sphalerite> There are lots of inconsistencies in the UI which make this less obvious, but one day the new `nix` command will cover all the functionality of the "legacy" nix-* commands and everything will be wonderful. At least that's how I imagine it ;)
<{^_^}> [nixpkgs] @Mic92 closed pull request #47249 → stdenv: make isELF more precise → https://git.io/fAFu7
<sphalerite> alex``: yes exactly that file plays a key role
<sphalerite> it's called by pkgs/top-level/all-packages.nix (unfortunately github chokes on that file because it's too big), which "fills in" the arguments that the kakoune expression takes
<sphalerite> > viewSource kakoune
<{^_^}> "all-packages.nix:3439 kakoune = callPackage ../applications/editors/kakoune { };"
jtojnar_ has joined #nixos
<sphalerite> that magic happens in the callPackage function
<alex``> nix-shell --expr 'with import <nixpkgs>; callPackage kakoune' is correct too?
<alex``> I guess nix-shell is well suited for compiling
<alex``> but how about Ruby?
<alex``> ~/prj/bulk/
<Mic92> How does viewSource work?
<alex``> it has some dependencies
Thra11 has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47209 → hdf4: fix build on aarch64-linux → https://git.io/fAFeS
<{^_^}> [nixpkgs] @xeji pushed commit from @andrew-d to master « hdf4: fix build on aarch64-linux (#47209) »: https://git.io/fAFab
<alex``> How I can call the `bin/bulk` to make it work
<alex``> with the gems dependencies
<Mic92> alex``: as a package or from the source directory?
<alex``> on other systems, I used to have a symlink of bulk to my ~/bin/
<{^_^}> [nixpkgs] @xeji pushed commit from @andrew-d to release-18.09 « hdf4: fix build on aarch64-linux (#47209) »: https://git.io/fAFVJ
<alex``> and dependencies installed in ~/.gem/
<emily> instead, you'll write a derivation for your package, and include it in your system (or user) packages
<emily> not-me people are more qualified to advise on the details
<alex``> Mic92: idk
<Mic92> alex``: packaging it with bundix would be the easiest: https://github.com/manveru/bundix
<alex``> I have defined a gemspec
<alex``> but I guess it’s not the way to do on Nix
<alex``> as the dependencies would end up in my ~/.gem
<sphalerite> > :v viewSource
<{^_^}> viewSource = attr: let apos = attr.attrPos; in "${lib.last (lib.splitString "/" apos.file)}:${toString apos.line} ${getLineNumber (apos.line - 1) 0 (builtins.readFile apos.file)}"
<alex``> and for npm?
<Mic92> alex``: it has a Gemfile, so you can use bundix
<sphalerite> Mic92: ^
<Mic92> sphalerite: thanks
* infinisil has invited Mic92 to #nix-lang
<{^_^}> [nixpkgs] @cstrahan opened pull request #47254 → Update ycmd for go 1.11 → https://git.io/fAFVt
<alex``> Mic92: Thanks o/
<Mic92> alex``: for npm there is npm2nix
Ariakenom has joined #nixos
Dedalo has joined #nixos
<palo> does this work for anybody ? `cabal install wai-app-static`
<infinisil> Mic92: I can explain viewSource further in nix-lang if you're interested
echel0n_ has quit [Quit: WeeChat 2.0]
<palo> the linker can't find zlib it seems.
Thra11 has quit [Ping timeout: 252 seconds]
<Mic92> > :v getLineNumber
<{^_^}> getLineNumber = n: start: str: let nextLine = getLine start str; in if nextLine == null then null else if n == 0 then nextLine else getLineNumber (n - 1) (start + lib.stringLength nextLine + 1) str
<Mic92> > :v getLine
<{^_^}> getLine = start: str: let n = untilNewline start str 30; in if n == null then lib.substring start (-1) str else removeExtraNewlines n
<{^_^}> [nixpkgs] @xeji pushed commit from @andrew-d to master « xloadimage: init at 4.1 (#47198) »: https://git.io/fAFVO
<{^_^}> [nixpkgs] @xeji merged pull request #47198 → xloadimage: init at 4.1 → https://git.io/fAd7A
<alex``> Mic92: {project-name}.gemspec is for installing in ~/.gem/ user directory the dependencies, and the Gemfile takes that gemspec to bundle the dependencies?
<Mic92> infinisil: I would be interested in the source
Ariakenom_ has quit [Ping timeout: 252 seconds]
<srhb> palo: Why not use the already-packaged version?
<infinisil> (it's a lot of functions, I'd prefer not to spam this chat)
<Mic92> infinisil: A link is enough
<alex``> Mic92: You know where the dependencies are stored using Bundler?
<infinisil> There is no link, the implementation is in the bot only
<palo> srhb: because I'm running `cabal install --only-dependencies`
Ariakenom_ has joined #nixos
<Mic92> alex``: they get also installed into ~/.gem when you use the bundle command
<infinisil> (unless somebody writes it out)
<srhb> palo: We can do that too, that's essentially nix-shell '<nixpkgs>' -A haskellPackages.wai-app-static.env
<palo> srhb: I ran a nix-shell -p haskellPackages.wai-app-static but same issue
abueide has joined #nixos
<srhb> Oh really.
<alex``> Mic92: :OO
<srhb> palo: Oh, you mean using cabal install again? That's expected, still.
<palo> srhb: I'll try your command, just a sec
<alex``> I was thinking Bundler was designed to avoid the mixing
<Mic92> infinisil: so somebody also hacked the whole thing into a chat?
<samueldr> alex``: they do the right thing to not mix and match
<infinisil> I did lol, was just experimenting with it
<srhb> palo: If you configure it from within the above shell, it'll work.
<samueldr> (outside of nixos)
<samueldr> the gems are installed in a per-ruby-version folder, and bundler will refer to the right versions
<Mic92> alex``: it does on a project level, they are seperated. but the storage is shared in ~/.gem
<samueldr> what I did: chmod a-rwx ~/.gem
<samueldr> (whilc clearing it first)
<justanotheruser> what font pack do I need if I'm missing a ton of unicode fonts?
<srhb> palo: I'd recommend not using cabal for installing haskell packages at all though. :)
<Mic92> justanotheruser: dejavu_fonts is a good start
Ariakenom has quit [Ping timeout: 245 seconds]
<srhb> (cabal-install, that is)
<palo> srhb: the -A and -p commands cant be mix easily, ...
<srhb> palo: What are you actually trying to do?
Ariakenom has joined #nixos
<palo> srhb: want to code a servant-server
<Mic92> justanotheruser: unifont, if you need more then that
<palo> I have no experiance with stack
<srhb> palo: Why not skip cabal-install completely and just use nix?
<palo> I don't understand
<srhb> palo: you don't have to ever run cabal install (or any cabal command) using Nix to manage your project.
<srhb> palo: Or install a haskell executable.
Ariakenom_ has quit [Ping timeout: 272 seconds]
<palo> srhb: so what is the alternative for cabal run ?
<justanotheruser> looks like dejavu_fonts gave me what I know was missing
<justanotheruser> I'll comment unifont in case I need it, thanks!
<srhb> palo: You _can_ use that in a nix project just fine, fwiw
<srhb> palo: Generally, if you have a cabal file, just use cabal2nix . --shell > shell.nix
<srhb> Then enter the shell with nix-shell
<srhb> palo: Inside, cabal commands should work for you. (or just plain ghc commands)
<palo> ah I see
<palo> I'll try that
Ariakenom_ has joined #nixos
<srhb> palo: It also has the benefit of not needing to compile any of the dependencies when you do it like that :)
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/9b4d87cec5f (from 85 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<palo> srhb: ok the -A haskellPackages....env thing worked so far
<srhb> palo: Yup, the shell.nix method essentially does the same thing (but with your project's dependencies rather than just one package from haskellPackages)
<palo> srhb: yeah
Ariakenom has quit [Ping timeout: 260 seconds]
Ariakenom has joined #nixos
<palo> the cabal2nix . --shell way works also perfectly fine
Ariakenom_ has quit [Ping timeout: 260 seconds]
<srhb> palo: I recommend sticking with that. :) It scales really well once your project grows.
notlar has joined #nixos
<alex``> emily: Keeping Bash as user shell, you could add in your ~/.profile `exec elvish`
<palo> hmm but I can't find the executable anymore with the cabal2nix version
<palo> srhb: I thought the executables are installed this way
<alex``> I think it would work (not tested yet though)
<srhb> palo: Not unless you explicitly do so
<srhb> palo: Generally I'd just avoid installing anything.
<emily> alex``: yeah but that feels uglier somehow.
<alex``> There is no solution unless writing a parser
<palo> srhb: I don't mean that I can run the executables i defined in the project.cabal file
Ariakenom has quit [Ping timeout: 240 seconds]
<palo> s/don't/do/
<{^_^}> [systemd] @flokli opened pull request #23 → nspawn: chown() the legacy hierarchy when it's used in a container → https://git.io/fAFVp
Rovanion has quit [Ping timeout: 244 seconds]
<alex``> sphalerite: Is there a way to fil an entry-point to nix-shell?
<alex``> I would like it to run `make debug=no`
<alex``> when entering in the shell
<sphalerit> justanotheruser: unifont iirc is a bitmap font which has great coverage but is also really ugly. To close that gap, the various parts of noto are nice
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @andrew-d opened pull request #47255 → boost: limit concurrent jobs to the maximum supported number → https://git.io/fAFwm
<sphalerit> alex``: nix-shell ... --run 'make debug=no'
<sphalerit> ?
<alex``> `make debug=no; strip --strip-all kak; exit`
<alex``> Thanks :)
<emily> alex``: you should just live inside your nix-shell, ideally
<srhb> palo: Huh? Why not?
<emily> and run your build commands from there
<alex``> --run can be supplied multiple times?
<alex``> is run with the shell?
<alex``> or just cmd
brejoc has quit [Ping timeout: 260 seconds]
abueide has quit [Remote host closed the connection]
notlar has quit [Quit: notlar]
notlar has joined #nixos
abueide has joined #nixos
alex`` has quit [Quit: WeeChat 2.2]
<palo> srhb: the binary is not in the nix-shell available but I can run cabal run
<palo> works like charm!
<palo> thank you
graphene has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/f753852e11d (from 18 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
Ariakenom has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
PyroLagus has quit [Quit: ZNC / WeeChat]
PyroLagus has joined #nixos
jluttine has quit [Ping timeout: 260 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
jluttine has joined #nixos
thc202 has quit [Ping timeout: 272 seconds]
<mog> i have a nix-shell i dont want to be garbage collected. i tried running nix-instantiate shell.nix --indirect --add-root .nix-gc-roots/shell.drv
<mog> and then gabage collected everything was gone
hakujin has joined #nixos
justanotheruser has joined #nixos
justanotheruser has quit [Ping timeout: 252 seconds]
carlosdagos has joined #nixos
jtojnar has quit [Remote host closed the connection]
jtojnar_ is now known as jtojnar
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
<{^_^}> nix#2208 (by goodwillcoding, 15 weeks ago, open): nix-shell dependencies can be garbage collected any time now / persistent nix-shell envs
<mog> oh good to know im not crazy
<{^_^}> [nixpkgs] @matthewbauer merged pull request #47204 → nixos: make firefox the default browser → https://git.io/fAdAp
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAFKf
<{^_^}> [nixpkgs] @matthewbauer merged pull request #47205 → kde: add kdoctools to default environment → https://git.io/fAdxM
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAFKU
<{^_^}> [nixpkgs] @matthewbauer merged pull request #47207 → perl: disallow cc in perl → https://git.io/fAdpk
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fAFKI
<{^_^}> [nixpkgs] @matthewbauer merged pull request #47206 → nixos: set nixos in nixPath → https://git.io/fAdxH
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAFKL
hakujin has quit [Ping timeout: 240 seconds]
nDuff has quit [Quit: zzz]
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to release-18.09: https://git.io/fAFKs
jackdk has joined #nixos
justanotheruser has joined #nixos
Rovanion has joined #nixos
wpcarro has quit [Ping timeout: 252 seconds]
notlar has quit [Quit: notlar]
<jackdk> is there a way to ask the new `nix build` command to build a specific attribute, like `nix-build -A`?
goibhniu has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.19-rc4 -> 4.19-rc5 »: https://git.io/fAFKg
<{^_^}> [nixpkgs] @basvandijk pushed 4 commits to master: https://git.io/fAFKa
<samueldr> jackdk: nix-build -f . attr_name
<samueldr> (or -f default.nix, which is the same as any given folder, it will try default.nix)