zimbatm changed the topic of #nixos to: NixCon 2018 - 25-27 Oct in London 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
[Leary] has joined #nixos
Lears has quit [Read error: Connection reset by peer]
Rusty1 has quit [Quit: Konversation terminated!]
<Lisanna> emily jasom yep that was it... ugh
<Lisanna> -f flag is what I needed
<Lisanna> hope nix-env gets replaced soon
* emily suggests just not using it
Rusty1 has joined #nixos
endformationage has quit [Ping timeout: 252 seconds]
alp has quit [Ping timeout: 244 seconds]
Dedalo has joined #nixos
karltk has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @peterhoeg merged pull request #47823 → elisa: 0.2.80 -> 0.3.0 → https://git.io/fxtZl
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fxtRW
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxtRz
thc202 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @magnetophon opened pull request #47833 → camomile: 0.8.7 -> 1.0.1 → https://git.io/fxtRK
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
acarrico has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @magnetophon opened pull request #47834 → WIP liquidsoap update → https://git.io/fxt0Y
<samueldr> still looking for review / approvals to the updated partitioning instructions https://github.com/NixOS/nixpkgs/pull/47697
<{^_^}> #47697 (by samueldr, 22 hours ago, open): Manual: reviews partitioning steps
<samueldr> {^_^}++
<{^_^}> {^_^}'s karma got increased to 137
iyzsong has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d6ff529d05d (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<jackdk> samueldr: I can't approve but I can and have dropped you some bikeshed comments; HTH.
sir_guy_carleton has joined #nixos
<gchristensen> wow I'm going to fly {^_^} to nixcon sooner than I expected
<gchristensen> samueldr: reviewing!
<gchristensen> samueldr: how much do you want nits to be picked?
<samueldr> gchristensen: as much as needed in the partitioning, the others were lightly touched so they shouldn't need to
<samueldr> and thanks to both of you
<gchristensen> ok well disregard any feedback you don't feel like following :P
<samueldr> gchristensen: definitely :)
<gchristensen> I'm doing all my comments in a "review" so I don't spam it... don't worry about my comments not showing up yet.
<samueldr> jackdk: I may answer to some of your comments with *ouf ot scope*, don't take it personally the instructions under 2.3 did not change anything at all; though I do take note for a future refactor of the whole installation instructions
<samueldr> oh, and jackdk, this is docbook; <command> is a thing in docbook ;)
<gchristensen> I think he's saying you missed one :)
<jackdk> I will be grossly offended if you don't cater to my every whim! (not really)
<samueldr> oh right silly me!
_deepfire has quit [Ping timeout: 252 seconds]
<samueldr> (and jackdk, while it won't show a green tick, you can approve a PR with a gray tick with github, with the "Review changes" button under "Files changed")
<samueldr> anyways, brb 30~60 minutes
<jackdk> good to know. I'm not deep enough into nixos dev to think my opinion has that sort of weight just yet
<gchristensen> PS: you can test partitioning instructions via `dd if=/dev/zero of=./localfile bs=1G count=4` and then run `parted` on ./localfile
<gchristensen> "everything is a file" is pretty cool ;)
<{^_^}> [nixpkgs] @nicknovitski opened pull request #47835 → nodePackages_8_x: add gulp-cli → https://git.io/fxtEh
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<{^_^}> [nixpkgs] @bhipple opened pull request #47836 → cpplint: init at 1.3.0 → https://git.io/fxtut
lassulus_ has joined #nixos
jtojnar has joined #nixos
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
<sir_guy_carleton> what is the correct nixos image for the raspberry-pi 3 b+: aarch64 or armv7l?
<gchristensen> rpi3b+ is aarch64
<sir_guy_carleton> wait, i mean the first rpi3
silver has quit [Read error: Connection reset by peer]
<samueldr> sir_guy_carleton: AArch64
<samueldr> though I never tested it, it reportedly could work with armv7l, but uh, nixos support with armv7l isn't there since there's no build infra for armv7l
jtojnar has quit [Ping timeout: 252 seconds]
<sir_guy_carleton> samueldr: okay, thanks
<{^_^}> [nixpkgs] @grahamc merged pull request #47688 → nixpkgs docs: breakout functions → https://git.io/fxIU0
endformationage has joined #nixos
<{^_^}> [nixpkgs] @grahamc pushed 10 commits to master: https://git.io/fxtz4
jb55 has joined #nixos
<{^_^}> [nixpkgs] @grahamc pushed 9 commits to release-18.09: https://git.io/fxtzF
<{^_^}> [nixpkgs] @grahamc opened pull request #47837 → nixpkgs: Start documenting library funtions in XML → https://git.io/fxtgY
jb55 has quit [Quit: WeeChat 2.1]
catern has quit [Excess Flood]
<gchristensen> samueldr: let's do a final patch of edits and merge that sucker
<samueldr> gchristensen: you have other comments?
* samueldr just finished updating
<gchristensen> samueldr: can you re-render?
<{^_^}> [nixpkgs] @peterhoeg opened pull request #47838 → kcheckpass: it is in kscreenlocker, not plasma-workspace → https://git.io/fxtgd
<samueldr> it already is?
* gchristensen must be running on cache
<gchristensen> ship 👏 it 👏
mizu_no_oto has joined #nixos
<{^_^}> [nix] @bhipple opened pull request #2468 → Docs: update fixed output hashes → https://git.io/fxt25
q3k has quit [Remote host closed the connection]
jtojnar has joined #nixos
jb55 has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<gchristensen> samueldr: do you need someone to press the button?
<gchristensen> s/need/want/
<samueldr> I kinda feel silly merging my own things. still not used to all the power
<gchristensen> no problem
<{^_^}> [nixpkgs] @grahamc pushed 5 commits to master: https://git.io/fxtaR
<{^_^}> [nixpkgs] @grahamc merged pull request #47697 → Manual: reviews partitioning steps → https://git.io/fxI44
<{^_^}> [nixpkgs] @grahamc pushed 4 commits to release-18.09: https://git.io/fxtaV
<gchristensen> samueldr: backported
<samueldr> haha thanks, I was literally pulling branches on my pristine working copy of nixpkgs
<samueldr> gchristensen++
<{^_^}> gchristensen's karma got increased to 32
<gchristensen> I have some helper scripts :)
<gchristensen> ok past my bed time and it has been an exhausting week. see y'all in the morning :)
<samueldr> 'night!
<{^_^}> Night!
<gchristensen> https://github.com/NixOS/nixpkgs/pull/47837 I'd love an eye or three on this, but it doesn't have to be this week.
<{^_^}> #47837 (by grahamc, 58 minutes ago, open): nixpkgs: Start documenting library functions in XML
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @magnetophon opened pull request #47840 → tambura: init at 1.0 → https://git.io/fxtaA
jperras has quit [Ping timeout: 272 seconds]
sevanspowell has joined #nixos
<sevanspowell> Hey, does anyone have resources on creating your own private nixpkgs?
<sevanspowell> I'm looking to extend nixpkgs with a number of private packages.
jperras has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #47841 → tetra-gtk-theme: 0.1.6 -> 0.2.0 → https://git.io/fxtVu
<matthewbauer> sevanspowell: This is pretty good place to start: https://nixos.wiki/wiki/Overlays
jperras has quit [Ping timeout: 252 seconds]
sb0 has quit [Quit: Leaving]
<sevanspowell> matthewbauer: Thanks, so overlays are the way to go? I'll have a mix of Haskell and non-Haskell projects.
jperras has joined #nixos
<matthewbauer> yeah i think so. here is a good example of how to structure it: https://github.com/mozilla/nixpkgs-mozilla
jperras has quit [Ping timeout: 252 seconds]
<sevanspowell> matthewbauer: Great, I'll look more at it. Thank you :)
jperras has joined #nixos
matthewbauer has quit [Ping timeout: 240 seconds]
matthewbauer has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/fxtwz
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.9.130 -> 4.9.131 »: https://git.io/fxtw2
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.14.73 -> 4.14.74 »: https://git.io/fxtwV
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.18.11 -> 4.18.12 »: https://git.io/fxtwr
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to release-18.03: https://git.io/fxtwK
jperras has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fxtwh
<{^_^}> [nixpkgs] @matthewbauer merged pull request #42846 → nixos/xserver: Implement configuration of NVIDIA Optimus via PRIME → https://git.io/frVZe
<sir_guy_carleton> how recently have the sha256 for the arm images been updated?
jperras has joined #nixos
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
redj has quit [Disconnected by services]
kyren has quit [Ping timeout: 250 seconds]
redj has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
matthewbauer has quit [Ping timeout: 252 seconds]
jperras has quit [Ping timeout: 260 seconds]
freeman42y has quit [Quit: Leaving]
endformationage has quit [Quit: WeeChat 1.9.1]
voice_ftp has joined #nixos
freeman42x has joined #nixos
<{^_^}> [nixpkgs] @jtojnar closed pull request #47704 → gnome3.webkitgtk: 2.20.5 -> 2.22.2 → https://git.io/fxIaG
voice_ftp_ has quit [Ping timeout: 252 seconds]
redj has quit [Ping timeout: 252 seconds]
apeyroux has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @peterhoeg opened pull request #47842 → nixos system-activation: support activation scripts run in a user context → https://git.io/fxtrM
leotaku has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/91c3bc1dfe7 (from 83 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
redj has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #47382 → zita-njbridge: init at 0.4.4 → https://git.io/fAxwo
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fxtoq
MP2E has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47843 → checkSSLCert: 1.72.0 -> 1.73.0 → https://git.io/fxtoZ
liori has quit [Remote host closed the connection]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f2b3bbe44e4 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<kalbasit[m]> I'm trying to bring a function from lib over on nixpkgs-unstable with this overlay `self: super: { lib = super.lib // { assertMsg = nixpkgs-unstable.lib.assertMsg; }; }` but it does not seem to work, how can I do this then?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47844 → aubio: 0.4.6 -> 0.4.7 → https://git.io/fxtoa
Rusty1 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47845 → bowtie2: 2.3.4.2 -> 2.3.4.3 → https://git.io/fxto6
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e13c2086659 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
amosbird has quit [Remote host closed the connection]
amosbird has joined #nixos
amosbird has quit [Excess Flood]
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
amosbird has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47846 → bubblewrap: 0.3.0 -> 0.3.1 → https://git.io/fxtop
<infinisil> ,dnw kalbasit[m]
<{^_^}> kalbasit[m]: "Does not work" isn't very helpful: What doesn't work? What's the error?
Ridout has quit [Quit: Lost terminal]
<kalbasit[m]> infinisil: In my configuration.nix I make use of `lib.assertMsg`, and it says `error: attribute 'assertMsg' missing`
<kalbasit[m]> even with the overlay above
<infinisil> Ah yeah, i suspected something like this
<infinisil> Can't be solved easily
<infinisil> Overlays only have an influence on pkgs
<infinisil> So pkgs.lib will have it, but using it might give you infinite recursion
<kalbasit[m]> oh
<kalbasit[m]> infinisil: so maybe within where I use it, I'll import it from nixpkgs-unstable?
<kalbasit[m]> let me give that a shot
<Myrl-saki> Eh, hm.
<Myrl-saki> kalbasit[m]: Ping
<infinisil> kalbasit[m]: yeah that would work
<Myrl-saki> I added this as my pkgOverrides.
<Myrl-saki> lib = pkgs.lib // {return1 = 1;};
<Myrl-saki> And it works.
<kalbasit[m]> interesting
<kalbasit[m]> Myrl-saki: can you gist your try?
<infinisil> Myrl-saki: it won't be in the lib you get from the argument list { lib, ... }: in a nixos module
<Myrl-saki> infinisil: Ah, yes.
<Myrl-saki> export HISTSIZE=-${toString lib.return1}
<Myrl-saki> Doesn't work.
<Myrl-saki> ${toString pkgs.lib.return1}
<Myrl-saki> Does though.
jperras has joined #nixos
<kalbasit[m]> thx
<infinisil> ldlework has been frustrated with this too
<infinisil> It's possible to solve this problem (the need to import it in each file) in multiple ways
<infinisil> (None of them simple though)
<kalbasit[m]> so I'm importing <nixpkgs-unstable> in two places in my system now, I wonder how much of hit the eval is going to take
<infinisil> kalbasit[m]: ah actually, you can just do `(import <nixpkgs-unstable/lib>).assertMsg`
<infinisil> Will
<infinisil> Be fast
<kalbasit[m]> oh
<kalbasit[m]> let me try that
Lisanna has quit [Quit: Lisanna]
<ldlework> i have resolved to using overlays only for derivation related things, and I have a single utils expression which contains all my helper code which I just import to avoid all this stuff
<sir_guy_carleton> hmm, the sha256sums in the nixos arm images was updated before the aarch64 was. this is probably why the checksum don't match?
<kalbasit[m]> ldlework: is your project public?
jperras has quit [Ping timeout: 246 seconds]
Ariakenom has joined #nixos
<kalbasit[m]> thanks
hyper_ch2 has joined #nixos
<CMCDragonkai> If I want to use something like `sudo mount -t nfs4 ...` what kind of Nix packages do I need?
<CMCDragonkai> The other distros just ask for `nfs-common`.
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c4eddcf2407 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<infinisil> ,locate bin mount.nfs4
<{^_^}> Found in packages: nfs-utils
<infinisil> CMCDragonkai: ^
<infinisil> But
<CMCDragonkai> That's it?
<CMCDragonkai> No changes required in configuration.nix?
<infinisil> You can just do boot.supportedFilesystems = [ "nfs" ]
<infinisil> Which will set everything up correctly
<CMCDragonkai> I'm not sure what the difference is between that?
<CMCDragonkai> It seems `boot.supportedFilesystems [ "nfs" ];` is for nfs server
<CMCDragonkai> while `nfs-utils` should be enough to be a nfs client?
<infinisil> I mean you can try, I'm not saying it doesn't work. But the standard way to have nfs support in nixos is throught what i mentioned
<infinisil> Check out the source to find out what it does
iyzsong has quit [Ping timeout: 252 seconds]
<CMCDragonkai> ,locate bin mount.nfs4
<{^_^}> Found in packages: nfs-utils
<CMCDragonkai> locate bin mount.nfs4
<{^_^}> [nixpkgs] @vbgl opened pull request #47847 → unoconv: fix reference to libreoffice → https://git.io/fxt9B
<sphalerite> CMCDragonkai: I'd think that supportedFilesystems is for the client
<CMCDragonkai> Then what is `nfs-utils` for?
Ariakenom has quit [Read error: Connection reset by peer]
<sphalerite> CMCDragonkai: meanwhile services.nfs.server.enable will be for the server I guess
<sphalerite> CMCDragonkai: it's the package containing the utilities. It's used by the modules
<sphalerite> CMCDragonkai: also if you specify an nfs mount in your fileSystems you don't need to explicitly add nfs to supportedFileSystems
<sphalerite> you can see it referred to in "nixpkgs/nixos/modules/tasks/filesystems/nfs.nix"
<kalbasit[m]> ldlework: your dotfiles are awesome, learned a lot already, thx!
<kalbasit[m]> ldlework: any particular license for your utils?
<ldlework> no
<ldlework> and i had a lot of help, but thank you
<kalbasit[m]> awesome
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47848 → arangodb: 3.3.15 -> 3.3.16 → https://git.io/fxtHq
jackdk has quit [Disconnected by services]
jackdk has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47849 → bfs: 1.2.3 -> 1.2.4 → https://git.io/fxtH8
jperras has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47850 → babeld: 1.8.2 -> 1.8.3 → https://git.io/fxtH0
<{^_^}> [nixpkgs] @dywedir opened pull request #47851 → imagemagick7: 7.0.8-6 -> 7.0.8-12 → https://git.io/fxtHE
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47852 → bzflag: 2.4.14 -> 2.4.16 → https://git.io/fxtHM
jperras has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47853 → buildbot-worker: 1.3.0 -> 1.4.0 → https://git.io/fxtHQ
copumpkin has quit [Ping timeout: 252 seconds]
brejoc has joined #nixos
brejoc has quit [Ping timeout: 252 seconds]
<sevanspowell> Hey, can I enter a `nix-shell` with a custom nixpkgs? i.e. `nix-shell -f '<mypkgs>' -p 'haskellPackages.ghcWithPackages (hp: [hp.a_package])'`
<sevanspowell> given 'mypkgs' is on my NIX_PATH as mypkgs=/path/to/mypkgs/folder
<infinisil> -I nixpkgs=/the/path/nixpkgs
<infinisil> sevanspowell: ^
<infinisil> nix-shell -p ... -I nixpkgs=...
<sevanspowell> Darn, my default.nix in the 'mypkgs' path must be incorrect. I've tried that. I'll investigate a little more.
civodul has joined #nixos
Ariakenom_ has joined #nixos
<sevanspowell> infinisil: Ooh actually, can I pass an overlay instead?
<infinisil> Not like that
<Myrl-saki> I think Nix will actually be a good language to write a (life) schedule on.
<infinisil> But you can nix-shell any expression with `nix-shell -E '....'`
<Myrl-saki> Oh wow.
<Myrl-saki> Isn't Nix kinda like a modern Lisp, without the Lispiness?
<infinisil> sevanspowell: (But then you need something like mkDerivation in it with buildInputs as the -p's)
<infinisil> Myrl-saki: Do you know lisp?
<Myrl-saki> infinisil: Nope.
<{^_^}> [nixpkgs] @teto opened pull request #47854 → khard: fixup zsh autocompletion → https://git.io/fxt5V
<Myrl-saki> infinisil: But homoiconicity and stuff!
<infinisil> Myrl-saki: I thought so xD, nah nix really doesn't have any lispyness in it
<Myrl-saki> infinisil: :C
<Myrl-saki> But I wanna believe. ' ^ '
<Myrl-saki> Anyways, that aside, I think Nix will be pretty cool for a schedule planner.
<Myrl-saki> You can write it out as a TeX file, if you try hard enough.
<infinisil> Myrl-saki: How exactly would this look?
<sevanspowell> infinisil: Yeh :) Thanks. I'm just trying to create a private nixpkgs for work. I used an overlay, but now I want to pin nixpkgs for the entire private nixpkgs and overlays aren't for pinning. They just overlay :P
<infinisil> Myrl-saki: Ohh, so as a markup language?
<Myrl-saki> infinisil: Kinda. You "compile" the Nix to a markup language.
brejoc has joined #nixos
<Myrl-saki> infinisil: But ultimately, it's just a set of `{ start = ...; end = ...; }`
<infinisil> sevanspowell: indeed :P
<Myrl-saki> I'll give it a try.
<Myrl-saki> This would be a very nice example of "Nix without nixkpgs" IMO.
<Myrl-saki> At least all-packages.nix
<Myrl-saki> Would still be using lib/* though.
<Myrl-saki> I think I'm thinking more of "Nix without derivations"
<infinisil> Yeah, it might be a cool idea to create a nixpkgs-lib repo, which you can use instead of nixpkgs if you only need lib
<Myrl-saki> Give me a few, like 30 mins to write this out. I kinda need something like this.
Itkovian has joined #nixos
<Myrl-saki> This kinda makes me happy, considering that I was in a programming slump because "everything I want has already been made."
<{^_^}> [nixpkgs] @vcunat pushed 7 commits to release-18.09: https://git.io/fxtF8
<infinisil> I'm having a slump because there's so many things to do nobody else has done before, but I don't have the time for it all lol
<Myrl-saki> Hm, how the hell do I parse time though, gdi.
<Myrl-saki> There's no time to epoch in Nix, right?
<Myrl-saki> There's builtins.currentTime though.
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/6cbd1ec4b04 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> [nixpkgs] @garbas merged pull request #47798 → girara: 0.3.0 -> 0.3.1 → https://git.io/fxLpN
<{^_^}> [nixpkgs] @garbas pushed commit from @r-ryantm to master « girara: 0.3.0 -> 0.3.1 »: https://git.io/fxtFd
<Myrl-saki> Meh, I'll just make this weekly.
<{^_^}> [nixpkgs] @garbas merged pull request #47797 → haproxy: 1.8.13 -> 1.8.14 → https://git.io/fxLxJ
<{^_^}> [nixpkgs] @garbas pushed commit from @r-ryantm to master « haproxy: 1.8.13 -> 1.8.14 »: https://git.io/fxtbe
<Myrl-saki> That's what I need it for anyway.
<Myrl-saki> The nice thing about FOSS is that you only have to implement what you need. :)
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon2 is now known as Mateon1
<Myrl-saki> Ah, right, Nix doesn't do let destructuring. :(
<benkolera> Is there anyone around that has nixops experience? I seem to be having a bad interaction between resources.sshKeyPairs and deployment.keys. Pebcak? Bad idea? Four files in this gist showing the nix expressions, expectations and logs. https://gist.github.com/benkolera/7e782505d552408102a84f85d832eb86
<Myrl-saki> Lmao, found another gem on nixpkgs.
<Myrl-saki> lowerChars = stringToCharacters "abcdefghijklmnopqrstuvwxyz";
<Myrl-saki> toLower = replaceChars upperChars lowerChars;
periklis has joined #nixos
copumpkin has joined #nixos
thc202 has joined #nixos
<{^_^}> [nixpkgs] @roconnor opened pull request #47855 → Bitcoin: 0.16.3 -> 0.17.0 → https://git.io/fxtNf
<Myrl-saki> Oh yeah, what the hell is addContextFrom for?
<CMCDragonkai> @sphalerite Ok so if I were to be running an NFS server, I just enable the service, and that should automatically do `boot.supportedFilesystems = [ "nfs"];`. But if I just wanted to run as client declaratively, I just put it in my `fileSystems` setting in `configuration.nix`. But If I want to run as a client interactively, then I need both `boot.supportedFilesystems = [ "nfs" ];` AND also `nfs-utils` package.
<Myrl-saki> I don't get the technical meaning, but what is the use case?
<sphalerite> CMCDragonkai: I don't think you need to add nfs-utils in addition to the supportedFilesystems bit to make it work interactively
<mightybyte> Is it possible to change which version of cabal-install is used when nix-build builds Haskell packages?
sir_guy_carleton has quit [Ping timeout: 268 seconds]
<sphalerite> CMCDragonkai: I'm not 100% sure though. I'd just try it :)
iyzsong has joined #nixos
lopsided98 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #47846 → bubblewrap: 0.3.0 -> 0.3.1 → https://git.io/fxtop
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « bubblewrap: 0.3.0 -> 0.3.1 »: https://git.io/fxtAT
<Myrl-saki> canonHour = read (builtins.elem canon 0);
<Myrl-saki> Lmao, clearly I love Haskell too much.
lopsided98 has joined #nixos
jperras has joined #nixos
<CMCDragonkai> having `boot.supportedFilesystems = [ "nfs" ];` enables the client side but also installs the `nfs-utils` as a system package
<sphalerite> it does? I don't see that in that file
<CMCDragonkai> and that's separate settings from `services.nfs.server.enable`
<sphalerite> it does add it to fsPackages
<sphalerite> and systemd.packages
<sphalerite> and systemd.generatorPackages
<sphalerite> but not systemPackages :p
<sphalerite> I imagine that will put it in a place where mount will find it though
<sphalerite> if not on the PATH
<CMCDragonkai> yea... what does nfs-utils provide as actual binaries?
kyren has joined #nixos
<sphalerite> blkmapd mount.nfs mountstats nfsdcltrack nfsiostat osd_login rpc.gssd rpc.mountd rpc.statd sm-notify umount.nfs exportfs mount.nfs4 nfsconf nfsidmap nfsstat rpcdebug rpc.idmapd rpc.nfsd showmount start-statd umount.nfs4
<Myrl-saki> infinisil: [myrl@myrl-lappy:~/Development/Planner]$ nix eval '(import ./default.nix)'
<Myrl-saki> { sched = [ [ { lenMin = 120; startMin = 450; } ] ]; }
<Myrl-saki> infinisil: Getting somewhere!
<Myrl-saki> I could also technically represent these as a set of integers.
<Myrl-saki> But, eh.
<infinisil> Cool
<Myrl-saki> infinisil: Right? :D
<infinisil> I implemented an ISO8601 date to epoch converter once
<infinisil> Maybe that would be of use?
<Myrl-saki> infinisil: Got a link to it?
<infinisil> Hmm somewhere, i'll look for it
<Myrl-saki> infinisil: Thanks!
<Myrl-saki> infinisil: The end goal of this is that this should be an infinite list starting from "today"
<Myrl-saki> And provide combinators like `weekly` that's just `weekly x = x ++ weekly x`
<Myrl-saki> And some asserts.
carlosdagos has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @peterhoeg opened pull request #47856 → tree-wide: /var/run -> /run → https://git.io/fxtAo
<Myrl-saki> Hm, does Nix support modulo?
jperras has quit [Ping timeout: 240 seconds]
<Myrl-saki> Or remainder.
<Myrl-saki> There's lib.mod, I'll just use that.
reinzelmann has joined #nixos
jperras has joined #nixos
<sphalerite> infinisil: wow, taking into account all the weirdness like leap seconds and stuff?
<infinisil> sphalerite: Yup
<infinisil> Wait
<infinisil> No, only the date part
<infinisil> It does take into account leap years
<sphalerite> ah so it will drift off from the right values over the years
<Myrl-saki> startHour = startMin/60;
<Myrl-saki> Spot the mistake!
<sphalerite> Myrl-saki: spaces needed around the / ?
<Myrl-saki> Yep. :P
<sphalerite> yay path syntax
<infinisil> sphalerite: My implementation doesn't
<sphalerite> infinisil: how so?
<infinisil> It's just YYYY-MM-DD -> unix epoch
<infinisil> No time
<sphalerite> yes, but leap seconds do affect that
<infinisil> Oh
<infinisil> Haven't accounted for that then!
<{^_^}> [nix] @edolstra merged pull request #2468 → Docs: update fixed output hashes → https://git.io/fxt25
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fxtAF
<sphalerite> time arithmetic is like cryptography, implementing your own will only end in suffering :p
<Myrl-saki> [myrl@myrl-lappy:~/Development/Planner]$ nix eval '(import ./default.nix).pretty'
<Myrl-saki> [ [ "7:30 -- 9:30" ] ]
<Myrl-saki> Starting to get something working. :)
<Myrl-saki> infinisil: Holy crap. Thanks.
<infinisil> sphalerite: I guess builtins.exec would be profitable if one would really want to not implement it in nix
<Myrl-saki> infinisil: Didn't expect it to be in nix!
<Myrl-saki> TIL builtins.exec.
<infinisil> Hehe
johanot has joined #nixos
<Myrl-saki> Wait, what.
<sphalerite> infinisil: or a plugin
<Myrl-saki> nix-repl> builtins.exec "echo 1"
<Myrl-saki> error: attribute 'exec' missing, at (string):1:1
<Myrl-saki> Did I get bamboozled? :C
<sphalerite> Myrl-saki: it's guarded behind a special option
<sphalerite> because it's such a bad idea :p
<Myrl-saki> Ah.
<sphalerite> I think it might be called __exec as well?
<sphalerite> > builtins.__exec
<{^_^}> attribute '__exec' missing, at (string):196:1
<Myrl-saki> > builtins.__exec "./run_ethereum_miner.sh.exe"
<{^_^}> attribute '__exec' missing, at (string):196:1
<Myrl-saki> :P
<sphalerite> Myrl-saki: allow-unsafe-native-code-during-evaluation
<Myrl-saki> That's one long flag...
<infinisil> Just found it too
<infinisil> Rightfully so!
aristid has quit [Ping timeout: 250 seconds]
<sphalerite> I'm very confused, it seems to take as an argument ah, uh, list, containing first the name of the executable as a string, then *a nix expression* as a string which is evaluated and passed as a string to the executable?
<sphalerite> builtins.exec [ "echo" "(a: a) 5" ] => 5
<Myrl-saki> Lol
<infinisil> I'm just confused by it as well
<Myrl-saki> It would actually also be pretty nice to write this in Prolog or something.
<infinisil> $ nix-instantiate --eval -E 'builtins.exec ["date" "--date" "2018-09-10"]' --option allow-unsafe-native-code-during-evaluation true
<infinisil> error: syntax error, unexpected ':', expecting $end, at (string):1:14
jperras has quit [Ping timeout: 252 seconds]
<infinisil> ??????
<Myrl-saki> Lmao
<clever> infinisil: it expects the program to emit valid nix
<infinisil> Ahh like that
<infinisil> That's weird
<infinisil> HMm nah it makes sense
<Myrl-saki> Now I know why it's bad lol
<sphalerite> oooh I see
<infinisil> Because exec should be the 'ultimate weapon of flexibility', it needs to support returning arbitrary nix values
<infinisil> not just string
<Myrl-saki> Yeah.
<clever> the gist gives an example
<Myrl-saki> It's pretty much a plugin or something.
<clever> Myrl-saki: full plugins give you more
<sphalerite> anyway, I feel like a nicer way to do this would be using plufins
<sphalerite> yea
<Myrl-saki> clever: Guess what I'm working on. :P
<clever> sphalerite: for example, i added a builtins.sublist, that does the same as lib.sublist
<clever> sphalerite: it improved the performance of an expression massively
<Myrl-saki> clever: Or you could just watch the backlog. :C
<Myrl-saki> But that's cheating.
jperras has joined #nixos
<clever> too much backlog as well :P
<Myrl-saki> Does Nix have a sortBy/
<clever> yeah, one min
<clever> Myrl-saki: builtins.sort
<sphalerite> if only nix were implemented in a language that has very useful purity properties :D
<Myrl-saki> Thanks.
<sphalerite> if only nix weren't a DSL :D
<clever> > builtins.sort (a: b: a > b) [ 1 2 3 4 ]
<{^_^}> [ 4 3 2 1 ]
<Myrl-saki> I'm quite comfortable with where Nix is at, TBH. :P
<clever> > builtins.sort (a: b: a < b) [ 1 2 3 4 ]
<{^_^}> [ 1 2 3 4 ]
aristid has joined #nixos
<clever> of note, if you use < then nix wont even call your function, and just compare in c++
<clever> so you get better performance
<Myrl-saki> Ah.
<sphalerite> yeah nix is great!
<sphalerite> but its evaluation performance isn't :p
<Myrl-saki> So, Nix is technically an optimizing compiler?
<sphalerite> interpreter, no?
<clever> this optimization happens at runtime
<Myrl-saki> Optimizing interpreter. :P
mayhewluke has quit [Ping timeout: 260 seconds]
<Myrl-saki> Hm.
<Myrl-saki> Wait, let me just write it out.
<clever> also, `function a b` is sometimes slower then `let f = function a; in f b`
<clever> depending on the situation
<sphalerite> infinisil: re leap seconds — AFAIUI, your function will actually return a unix timestamp 37 seconds before the start of today if you put 2018-10-04 in
mayhewluke has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
<infinisil> sphalerite: Well, I rooted the conversion at 2018-01-01
patrl has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxtpW
<{^_^}> [nixpkgs] @Mic92 merged pull request #47854 → khard: fixup zsh autocompletion → https://git.io/fxt5V
<sphalerite> infinisil: huh, it seems that date doesn't take it into account either..?
<sphalerite> I don't think that number should end in 00…
<{^_^}> [nixpkgs] @peterhoeg merged pull request #47838 → kcheckpass: it is in kscreenlocker, not plasma-workspace → https://git.io/fxtgd
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fxtp0
jperras has joined #nixos
<infinisil> sphalerite: Maybe unix epoch doesn't count leap seconds
<clever> infinisil: i think that depends on if your amazon
<clever> normally, unix epoch only ever goes up and thats it
<{^_^}> [nixpkgs] @4z3 opened pull request #47857 → sec: 2.8.0 -> 2.8.1 → https://git.io/fxtpD
<{^_^}> [nixpkgs] @srhb merged pull request #47833 → camomile: 0.8.7 -> 1.0.1 → https://git.io/fxtRK
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fxtpy
<clever> ive heard that the amazon ntp servers will go backwards during leap seconds
<infinisil> Sounds like fun
<srhb> Sounds horrible, why would they do that :P
<clever> yeah
jperras has quit [Ping timeout: 264 seconds]
<sphalerite> right so if unix time *is* monotonous, then the leap seconds should be reflected by it being 37s higher than the "naïve" 2018-01-01 timestamp, shouldn't it?
brejoc has quit [Quit: Leaving]
<infinisil> ,exec = builtins.exec is a hidden unsafe impure Nix 2.0 feature that can be used to execute arbitrary commands during a Nix evaluation. Use with caution! Enable with `--option allow-unsafe-native-code-during-evaluation true`, simple example: https://gist.github.com/Infinisil/bb59b5258ccf17801179c249a9bb3342 More info: https://github.com/NixOS/nix/commit/0bb8db25
<{^_^}> exec defined
<sphalerite> because there were more than (2018-1970)*365(+leap days)*24*60*60 seconds in between the years
alp has joined #nixos
<Ariakenom_> sphalerite: even a monotonous counter can stop for an hour to correct. or jump one.
<srhb> sphalerite: Not because of monotoneity alone.
<srhb> That ^
<Myrl-saki> brb
<Myrl-saki> What should I name this?
<Myrl-saki> brb again
<Myrl-saki> this being foo
<sphalerite> oh yeah true
jackdk has quit [Ping timeout: 244 seconds]
<clever> infinisil: did you see my gist? it has a bigger example
brejoc has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/f2b3bbe44e4 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<infinisil> clever: Wanted to have an example where it takes an argument
<infinisil> But I guess my example doesn't output a nix expression
<srhb> sphalerite: Also it just isn't monotonous...
<clever> could just link both
<sphalerite> srhb: that's what clever said though
<srhb> sphalerite: Maybe if you only look at seconds :-)
<infinisil> clever: I'll merge our examples into one and link that, sound good?
<clever> sure
<srhb> sphalerite: See the table "unix time across midnight when a leap second was inserted ..." https://en.wikipedia.org/wiki/Unix_time#Leap_seconds
<srhb> 915148800.75 -> 915148800.00
kyren has quit [Remote host closed the connection]
kyren has joined #nixos
<srhb> At least we haven't had any negative leap seconds yet... :D
<etu> srhb: oh god. it's already bad enough. don't give "them" any ideas.
<srhb> etu: :3
<srhb> "In the theoretical case when a negative leap second occurs, no ambiguity is caused, but instead there is a range of Unix time numbers that do not refer to any point in time at all."
<srhb> That's... fun...
rembo10 has quit [Remote host closed the connection]
rembo10 has joined #nixos
rembo10 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @pSub merged pull request #47815 → disorderfs: 0.5.3 -> 0.5.4 → https://git.io/fxtqd
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fxtjJ
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fxtjT
<{^_^}> [nixpkgs] @pSub merged pull request #47800 → fswatch: 1.12.0 -> 1.13.0 → https://git.io/fxLhE
<{^_^}> [nixpkgs] @pSub merged pull request #47790 → help2man: 1.47.6 -> 1.47.7 → https://git.io/fxL5I
<{^_^}> [nixpkgs] @pSub pushed 2 commits to staging: https://git.io/fxtjL
<sphalerite> yeah time sucks :p
<infinisil> Let's get rid of it!
<etu> It's about time.
<clever> look at the documentation about hypothetically
<clever> that allows you to run any IO expression in zero time :P
<colemickens> so I definitely have a bunch of "option i915 ..." in boot.extraModprobeConfig but it doesn't seem to work.
<colemickens> how can I debug this>
<clever> colemickens: if the driver loads too early, it may not obey that config file
<colemickens> like if I have it in initrd
<clever> colemickens: but if you put modname.optionname=value in the kernel params, it will override the default
<clever> and also lets you set options for modules that arent modules anymore (compiled into the kernel)
<srhb> clever: The Acme namespace is glorious.
<clever> radeon.cik_support=0 amdgpu.cik_support=1 is what ive got in my cmd line
rembo10 has joined #nixos
<clever> srhb: yeah
<colemickens> clever: given that I'm in NixOS, and I assume that the moduel respects kernel params even if not loaded in initrd... is there ever a reason to prefer extraModprobeConfig?
<colemickens> it seems like I'd always just want to use boot.kernelParams
<clever> colemickens: extraModprobeConfig? can be changed at runtime and doesnt need a reboot
philippD has joined #nixos
<colemickens> oh, ok
<colemickens> thank you
<clever> theres likely also a size limit for the kernel cmd line
goibhniu has joined #nixos
<clever> on closer inspection, i dont think it has a real limit, its just a null terminated string
<clever> so as long as it fits within ram, lol
<clever> oh wait, line 620
<clever> 4 byte field i think, so 4gig max size
<srhb> I think COMMAND_LINE_SIZE is way smaller...
periklis has quit [Ping timeout: 240 seconds]
<clever> it mentions near line 620, that the limit was 255 prior to the addition of that field
<srhb> Oh. Interesting.
<clever> srhb: and my laptop has a 334 byte cmdline, due to nixos
<clever> BOOT_IMAGE=(hd0,gpt1)//kernels/pz0019qxr96m1p827y088f150fd2ivy2-linux-4.14.63-bzImage systemConfig=/nix/store/wni0gw45vcli3b9i4qhkz6n12zzd2sbg-nixos-system-system76-18.09pre149415.8395f9aa85e init=/nix/store/wni0gw45vcli3b9i4qhkz6n12zzd2sbg-nixos-system-system76-18.09pre149415.8395f9aa85e/init loglevel=4 panic=30 boot.panic_on_fail
<clever> 3 store paths, and boom, you broke the old 255 limit :P
<srhb> Yeah :P
<sphalerite> srhb: wow this is great, I didn't know about this. I like https://hackage.haskell.org/package/ACME-0.0.0.1/docs/src/Acme-Pirates.html as well
<clever> so the limit is likely 4gig now, but your bootloader and memory layout is going to break that first
<clever> sphalerite: when Acme.Error flips the table over, it even flips the error message over
<sphalerite> ahahaha
<srhb> I was pretty sure that actually referred to the kernel command line parameters
<clever> srhb: oh, it may be another limit, after the 4 byte wide field
<clever> srhb: its used in many places, and appears to mostly be a staticly sized buffer
<srhb> Hnnngh. :-)
<clever> it likely needs to copy the cmdline, before it has a proper heap
<clever> but also, every platform deals with that differently, so it depends on your arch
<srhb> sphalerite: Funny thing, there's a System.IO.Unsafe.Really.IMeanIt in ACME, but that doesn't even compare to the names of the _really_ unsafe IO operations that occupy base :P
<srhb> clever: Yeah
<clever> srhb: and bytestring
<srhb> Oh yeah. accursedUnutterable?
<clever> yep
<srhb> That thing is scary.
<clever> they had to include a list of 5 bugs it cuased in the warnings :P
<clever> and i know somebody that used it, on purpose, and has yet to have a bug
<srhb> iirc at one point it had a "people who thought they knew how to use this" counter in the comments
<clever> lol
<sphalerite> https://hackage.haskell.org/package/acme-cofunctor is also pretty good, I might end up actually using this one
<srhb> Why is that in acme :-P
<sphalerite> oh my goodness there's even a numberwang one
<sphalerite> srhb: look at it closely.
<srhb> LOL
<srhb> Ok, got it...
<srhb> Good one :P
<Myrl-saki> Okay, back.
<Myrl-saki> Anyone got a comment for my function?
<srhb> sphalerite: The comment is great: "Since beginning his investigations, the author of this package has discovered that this pattern is at least as commonly used as Functor."
<sphalerite> :)
<Myrl-saki> Or questions.
yayforj has joined #nixos
<Myrl-saki> It's basically sort, then make sure that each element has a relation to the next element.
<clever> Myrl-saki: i also suspect that builtins.sort has a bug, and you may trigger it with that gist, lol
rembo10 has left #nixos [#nixos]
<Myrl-saki> clever: Doesn't matter, used to use Arch Linux, I'm used to that! :P
* Myrl-saki hides
<clever> if the root node of the AST is a < operator, it will do the compare in c++
<clever> it doesnt check what the arguments to < is
<Myrl-saki> Oh.
<Myrl-saki> Aaaaa
rembo10 has joined #nixos
<Myrl-saki> What the fuck
<clever> i havent confirmed that yet
<clever> give it an out-of-order list and see what happens
NickHu has joined #nixos
<Myrl-saki> Yeah, give me a few.
<sphalerite> srhb: https://hackage.haskell.org/package/acme-memorandom aaaah this is a goldmine
<Myrl-saki> clever: FWIW.
<NickHu> Hi, is anyone with commit access free to go over a couple small pull-requests that are picking up dust?
<clever> Myrl-saki: https://github.com/NixOS/nix/blob/master/src/libexpr/primops.cc#L319-L342 will be used to compare in that case
<Myrl-saki> clever: nix-repl> { x = 1; } < { x = 2; }
<Myrl-saki> error: cannot compare a set with a set
<clever> yeah, it should fail then ...
<clever> oh wait
<Myrl-saki> Maybe I'm invoking UB, who knows.
<clever> the root node of `a: b: a < b` is a function that takes a!
<Ariakenom_> sphalerite: "but that of course lacks all the benefits of memoization."
<clever> the only way to trigger the optimization, is to run `builtins.sort builtins.lessThan ...`
<Myrl-saki> clever: Oh, right, nice catch. :P
<clever> Myrl-saki: so the bug isnt possible
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/c4eddcf2407 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<Myrl-saki> clever: Yeah. :D
<sphalerite> clever: aka not a bug :D
<Myrl-saki> clever: And `(a: b: a < b)` also won't be optimized. :P
<clever> correct
jperras has joined #nixos
<{^_^}> [nixpkgs] @pmiddend opened pull request #47858 → yapf: 0.22.0 -> 0.24.0 → https://git.io/fxqfG
<Myrl-saki> builtins.readFile "${runCommandNoCC "a" {} "echo a > $out"}"
<sphalerite> it'll eliminate all the runtime bugs!
<Myrl-saki> NIX REPL AS A SUBSTITUTE TO BASH
<{^_^}> [nixpkgs] @flokli opened pull request #47859 → [Backport] nextcloud module: init → https://git.io/fxqfl
<clever> Myrl-saki: it will also cache the result of the commands!
<Myrl-saki> clever: And don't get me started with lazy evaluation!
<Myrl-saki> ... oh fuck, wait.
<etu> clever: That would make it faster! :)
<etu> shell with built in cache for response of commands, what a great plan
<Myrl-saki> I feel a bit dirty inside seeing this.
<clever> Myrl-saki: there is also a flag you want, one min
<clever> preferLocalBuild = true; allowSubstitutes = false;
<clever> the first stops it from trying to farm things out to your build slaves, network is slow
<clever> the 2nd one stops it from using the binary cache entirely
<Myrl-saki> Ah, right.
<clever> and thanks for the push, i need to add those to snack
<Myrl-saki> Meh.
<Myrl-saki> I think I shouldn't just make a `foo` function.
<Myrl-saki> Wait.
<Myrl-saki> Beta reduce?
<Myrl-saki> Yeah.
<sphalerite> Myrl-saki: the best thing is that you can use it to cache random numbers for much improved performance
<Myrl-saki> I'll just beta reduce `foo` into verifyTime.
<etu> Myrl-saki: If you have nix-repl as shell, you could have a hydra to cache results for multiple systems ;)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3f81cb1b278 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<clever> this generates an initrd, with a haskell binary as /init
<clever> and it has a basic example repl in it
<clever> you are free to add more haskell code to it, and make it into a fully working linux distro
<clever> say goodbye to GNU/linux and go haskell/linux!
<Myrl-saki> clever: That's.. fucking amazing.
ThatDocsLady has joined #nixos
<Myrl-saki> clever: Emacs/Linux...
<Myrl-saki> Tho, it's GNU.
<Myrl-saki> Dammit.
<adisbladis> I did exactly that for emacs a long time ago =)
<adisbladis> It wasn't great
<Myrl-saki> adisbladis: Any things you felt should be improved?
<clever> adisbladis: compiled vs interpreted? :P
<Myrl-saki> adisbladis: It should be possible to start Emacs as a server, and have that as your init system. But why would you do that
<adisbladis> Myrl-saki: Tons.. It didn't really do most of what an init is supposed to do
<adisbladis> Myrl-saki: It was just for fun, nothing practical
<clever> adisbladis: same with haskell-init, it mounts /proc /dev and /sys, and it has an ls and quit command, thats it, lol
<adisbladis> What more do you need =)
<clever> and it uses raw pattern matching to deal with the "arguments" to ls
jperras has quit [Ping timeout: 252 seconds]
<Myrl-saki> Is there something that's like assert+throw?
jperras has joined #nixos
Butterfly^ has quit [Quit: Leaving]
<Myrl-saki> assert (all verifyTime sched || throw "Why");
<Myrl-saki> Technically.
sb0 has joined #nixos
<srhb> Myrl-saki: Um... Assert?
<srhb> Or are you looking for the error message specifically?
<elvishjerricco> srhb: Thought they meant "assert with error message", in which case `assert (assertMsg cond msg)` is what you're looking for Myrl-saki
<srhb> Ah. :)
<clever> nixos modules also have a different way of dealing with asserts
jperras has quit [Ping timeout: 272 seconds]
georges-duperon has joined #nixos
<elvishjerricco> clever: Yea module assertions are quite nice
kyren has quit [Read error: Connection reset by peer]
<clever> i believe they are specific to nixos though, not the module framework itself
<elvishjerricco> aww
<clever> its basically just an option that takes a list of sets
<clever> and then the root derivation will throw if any are true
<clever> and then the module system just does its thing, and allows the asserts option to refer to other options!
kyren has joined #nixos
LysergicDreams has quit [Ping timeout: 260 seconds]
Twey has joined #nixos
LysergicDreams has joined #nixos
<infinisil> I thought about implementing warnings and assertions as a general nixos module thing
<infinisil> Along with the ability to disable specific ones
<infinisil> This would implicitly also allow the usage of mkRemovedOptionModule inside submodules, so options like `fileSystems.<name?>.options` could be deprecated easily
Khetzal has joined #nixos
ravloony has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @zimbatm opened pull request #47861 → terraform: add plugins tests → https://git.io/fxqIg
sigmundv__ has joined #nixos
<infinisil> ,exec = builtins.exec is a hidden unsafe impure Nix 2.0 feature that can be used to execute arbitrary commands during a Nix evaluation. Use with caution! Enable with `--option allow-unsafe-native-code-during-evaluation true`, simple example: https://gist.github.com/Infinisil/65dfd6f4b09e9779ba97130c16765c22 More info: https://github.com/NixOS/nix/commit/0bb8db25
<{^_^}> exec redefined, was defined as: builtins.exec is a hidden unsafe impure Nix 2.0 feature that can be used to execute arbitrary commands during a Nix evaluation. Use with caution! Enable with `--option allow-unsafe-native-code-during-evaluation true`, simple example: https://gist.github.com/Infinisil/bb59b5258ccf17801179c249a9bb3342 More info: https://github.com/NixOS/nix/commit/0bb8db25
Wharncliffe has joined #nixos
jperras has joined #nixos
fyuuri has joined #nixos
<fyuuri> Hi. One nix packages page it says the xml2rfc package is available; but running "nix-env -iA nixos.python36Packages.xml2rfc" just yields "error: attribute 'xml2rfc' in selection path 'nixos.python36Packages.xml2rfc' not found". Does anybody know the reason?
<clever> > xml2rfc
<{^_^}> "<derivation /nix/store/hj6810911kig836mvrrc8s8qxsqr7bh6-python2.7-xml2rfc-2.9.8.drv>"
<clever> its at the top level, in pkgs
<clever> i also see some others, let me confirm...
<clever> > python36Packages.xml2rfc
<{^_^}> "<derivation /nix/store/yr3a5gpnya8d48x6rf8hdyagjg01s520-python3.6-xml2rfc-2.10.0.drv>"
<clever> fyuuri: i suspect your channel is just too old to have that package
<fyuuri> my channel list is: nixos https://nixos.org/channels/nixos-18.03
<fyuuri> thx for the answers :)
<{^_^}> [nixpkgs] @zimbatm pushed commit from @Mic92 to release-18.09 « Merge pull request #47407 from kalbasit/nixpkgs_add-terraform-provider-nixos »: https://git.io/fxqLP
<adisbladis> fyuuri: And pythonPackages.xml2rfc was added in june, so indeed 18.03 is too old.
<fyuuri> But 18.03 is the latest stable?
jperras has quit [Ping timeout: 252 seconds]
<adisbladis> fyuuri: Yes it is. You could use the unstable channel for just that package if you wanted to.
jperras has joined #nixos
<fyuuri> Thx a lot :)!
simukis has joined #nixos
yayforj has quit [Ping timeout: 252 seconds]
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg pushed to master « pykms: 20171224 -> 20180208 »: https://git.io/fxqqO
__monty__ has joined #nixos
<fyuuri> Thx a lot :)!
tg has quit [Excess Flood]
<teto> I've added " executableHaskellDepends = [ pkgs.jupyter ]; " to the ihaskell definition. If I do 'nix-shell -p haskellPackages.ihaskell' I can launch jupyter. If I run "nix-shell -p 'haskellPackages.ghcWithPackages(p: with p; [ ihaskell ])'", jupyter is not propagated :'(
<teto> (nixos-unstable)
patrl has quit [Quit: WeeChat 2.2]
<infinisil> Ah nice, alacritty 0.2.0 has arrived in nixos-unstable :D
<infinisil> Adds scrolling support
<srhb> Can we release soon so I can get back on unstable? :3
<infinisil> srhb: (are you replying this to me?)
<elvishjerricco> clever: There's also https://github.com/shlevy/nix-plugins, which gives you restricted access to `exec`. i.e. Nix code doesn't get arbitrary access; only the usages of exec in your own specified Nix
tg has joined #nixos
<jasongrossman> infinisil: Yay.
hxrts_ is now known as hxrts
jperras has quit [Ping timeout: 252 seconds]
hotfuzz_ has quit [Ping timeout: 252 seconds]
hotfuzz_ has joined #nixos
Itkovian_ has joined #nixos
reinzelmann has quit [Quit: Leaving]
Itkovian has quit [Ping timeout: 252 seconds]
<srhb> infinisil: Just speaking into the channel I think :P
<Myrl-saki> clever: Ping. Can you unplug after PXE boot has, well, booted.
<clever> Myrl-saki: depends on the rootfs
jperras has joined #nixos
<Myrl-saki> clever: The NixOS module that you made?
<clever> thats running from a ramdisk, so it should be fine
<Myrl-saki> I changed nothing except for setting the network options. :P
<Myrl-saki> clever: Thanks. Wanna hear a story?
<clever> sure
<Myrl-saki> clever: So, basically, I'm doing data recovery with ddrescue right now. Problem is, I don't have any disk that can fit it except my home directory.
<clever> ah
<Myrl-saki> clever: So I had to unplug my NixOS install and network boot my PC from my laptop.
<clever> ive used network booting before to image a pc before wiping and installing
georges-duperon has quit [Ping timeout: 252 seconds]
jasongrossman has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @pSub merged pull request #47603 → nixos/bitlbee: add pam option → https://git.io/fxUED
<{^_^}> [nixpkgs] @pSub pushed 3 commits to master: https://git.io/fxq37
<Myrl-saki> clever: Other options were buying a SATA cable + power, or buying a USB <-> SATA converter, but... EW SPENDING.
fendor has joined #nixos
<clever> yeah, lol
<Myrl-saki> clever: That aside. I'm not sure if a USB <-> SATA converter works well with a problematic drive.
<clever> probably wont help
<Myrl-saki> Hm, that's actually interesting.
<Myrl-saki> Would a USB<->SATA converter be seen as a SATA controller?
orivej has joined #nixos
<clever> they usually show up as usb mass storage devices
<clever> so you loose smartctl and stuff
m0rphism has quit [Quit: WeeChat 2.0]
<Myrl-saki> Yeah, same thought. And the block error handling would probably be handled by the converter.
<Ke> Myrl-saki: most often it would be usbstorage
<Ke> at best you can typically get USB attached SCSI
<Ke> if you can get some reasonably priced adapter that supports UAS, please mention
<Myrl-saki> Ke: I don't even know what UAS is, so...
<Ke> USB attached SCSI
<Myrl-saki> Ah. :P
<Myrl-saki> Either way, BRB!
m0rphism has joined #nixos
<{^_^}> [nixos-org-configurations] @zimbatm opened pull request #56 → terraform releases bucket → https://git.io/fxqsr
yayforj has joined #nixos
jperras has quit [Ping timeout: 245 seconds]
Twey has quit [Ping timeout: 246 seconds]
yayforj has quit [Ping timeout: 252 seconds]
jasongrossman has joined #nixos
yayforj has joined #nixos
Twey has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
georges-duperon has joined #nixos
jasongrossman has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
nckx has quit [Ping timeout: 240 seconds]
<Myrl-saki> I had to reboot to enable hot plug.
<Myrl-saki> Because it keeps dying. :/
init_6 has joined #nixos
<Myrl-saki> clever: Even more story.You know that NVidia card? Well it's a fucking bitch, so the only way I can control my desktop is with my laptop, so I have to reconnect it through LAN every now and then. Maybe.
<Myrl-saki> OTOH, I was able to blindly restart sshd and set my password while the monitor was ded.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4569dd753b8 (from 88 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
yayforj has quit [Ping timeout: 252 seconds]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jperras has joined #nixos
reinzelmann has joined #nixos
fenedor has joined #nixos
fendor has quit [Ping timeout: 264 seconds]
Wharncliffe has quit [Quit: Lost terminal]
jperras has quit [Ping timeout: 268 seconds]
sb0 has quit [Quit: Leaving]
jperras has joined #nixos
<{^_^}> [nixpkgs] @flokli opened pull request #47863 → terraform-providers.matchbox: init at 0.2.2 → https://git.io/fxq40
hlolli has joined #nixos
<{^_^}> [nixpkgs] @edwtjo pushed 2 commits to master: https://git.io/fxqBs
<{^_^}> [nixpkgs] @uskudnik opened pull request #47864 → brave: init at 0.24.0 → https://git.io/fxqBC
civodul has quit [Remote host closed the connection]
hlolli has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 252 seconds]
Twey has quit [Ping timeout: 268 seconds]
<philippD> Is there a way to increase so number of printed Log lines in the case of an error with Nix2?
<clever> Myrl-saki: lol
jperras has joined #nixos
jperras has quit [Ping timeout: 246 seconds]
nckx has joined #nixos
<rawtaz> when's Nix 2 going to be part of release?
<rawtaz> not in 18.09 afaik
<srhb> rawtaz: Nix 2 was part of stable from 18.03
johanot has quit [Quit: WeeChat 2.0]
<rawtaz> such shame
acarrico has joined #nixos
<rawtaz> very misinform
<rawtaz> i thought it was a cool upcoming thing, but i guess i'll have to aim for Nix 3 then :>
<srhb> rawtaz: you're probably thinking about the "nix" command-style interface? There's no *active* plan for it to supercede nix-build and nix-shell and things.
<srhb> rawtaz: Haha, that's the spirit.
<rawtaz> ah, that might be it
<rawtaz> srhb: what problems is it supposed to solve? the nix tools we have now seem to work fine from where i stand as a beginner
<srhb> rawtaz: The inconsistencies between nix-shell, nix-build and *particularly* nix-env make them hard to learn.
<rawtaz> right
<srhb> rawtaz: A unified interface could greatly reduce this pain, but right now the command-style interface isn't really there.
<rawtaz> yeah i never use nix-env, not sure why i should. i just define everying in the system wide config
<srhb> rawtaz: People use nix without NixOS. :)
<rawtaz> i see. sounds good, as long as it doenst burn out the devs
<rawtaz> true
<{^_^}> [nixos-homepage] @rbvermaa pushed to fastly « Add Fastly support »: https://git.io/fxqwy
<{^_^}> [nixos-homepage] @rbvermaa opened pull request #243 → Add Fastly support announcement → https://git.io/fxqwh
Synthetica has quit [Quit: Connection closed for inactivity]
<aminechikhaoui> wohoo, fastly FTW :-)
<ikwildrpepper> aminechikhaoui: shht, not yet on the homepage :p
<rawtaz> is fastly like cloudflare?
<aminechikhaoui> ikwildrpepper: oops :D
<ikwildrpepper> rawtaz: Fastly replaces AWS CloudFront
<ikwildrpepper> rawtaz: it's a CDN
jperras has joined #nixos
<rawtaz> hm ok
fenedor has quit [Read error: Connection reset by peer]
fendor has joined #nixos
<{^_^}> [nixos-homepage] @edolstra merged pull request #243 → Add Fastly support announcement → https://git.io/fxqwh
<{^_^}> [nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/fxqiA
<{^_^}> [nixos-homepage] @rbvermaa pushed to fastly « Don't forget to thank our friends at Infor »: https://git.io/fxqip
<{^_^}> [nixos-homepage] @rbvermaa pushed 2 commits to master: https://git.io/fxqPo
jperras has quit [Ping timeout: 268 seconds]
<andi-> wow, suddenly fastly? :)
<andi-> an no more IPv6 support :(
jperras has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/6cbd1ec4b04 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #47866 → taskell: init at 1.3.2 → https://git.io/fxqQc
jasongrossman has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixos-homepage] @rbvermaa pushed 0 commits to fastly: https://git.io/fxqFq
avn has quit [Read error: Connection reset by peer]
jperras has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @zimbatm merged pull request #47863 → terraform-providers.matchbox: init at 0.2.2 → https://git.io/fxq40
<{^_^}> [nixpkgs] @zimbatm pushed commit from @flokli to master « terraform-providers.matchbox: init at 0.2.2 (#47863) »: https://git.io/fxqN0
civodul has joined #nixos
jperras has joined #nixos
<{^_^}> [nix] @edolstra pushed to master « Remove unnecessary typecast »: https://git.io/fxqpK
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/be389593763 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
jperras has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
magnetophon has joined #nixos
asymmetric_ has joined #nixos
<magnetophon> I can't nixos-rebuild, nor repair paths anymore: "nixos-rebuild: cannot execute binary file: Exec format error" and over and over: "error: cannot repair path '/nix/store/foo"
<magnetophon> any ideas?
<magnetophon> I've tried rebooting into an older generation: no luck; same messages
Ariakenom_ has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
<jasongrossman> magnetophon: That must be frustrating. :-( Have you checked the root disk partition?
<jasongrossman> magnetophon: (I mean, checked it for disk errors.)
<magnetophon> jaso
<magnetophon> jasongrossman: ah, just about to ask what you meant
<magnetophon> lemme check
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/be389593763 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
Twey has joined #nixos
<jasongrossman> (I have to go - sorry - but hopefully someone else will pick this up.)
<magnetophon> jasongrossman: thanks so far!
<clever> magnetophon: 32bit? 64bit? arm?
jperras has quit [Ping timeout: 244 seconds]
<magnetophon> clever: 64
Rusty1 has joined #nixos
<clever> magnetophon: what happens if you run `nix-store -r /nix/store/ilf1nd7xvfska20pc7x8pslr7mw7lm2v-nix-2.0.4` ?
zemm has joined #nixos
<ikwildrpepper> andi-: fastly should support ipv6, perhaps it is disabled by default. we can look into this
Synthetica has joined #nixos
<magnetophon> clever: seems to work
<ikwildrpepper> not sure if it was enabled on CloudFront though
<clever> magnetophon: what path is it unable to repair?
<magnetophon> clever: seems like all of them: it just starts spitting out a list and keeps going
<clever> magnetophon: any idea what the cause might have been?
<magnetophon> clever: nope
<andi-> ikwildrpepper: they support ist, it isjust disabled :)
<andi-> it was enable on cloudfront.. I had (still have) a bunch of v6 only machines :/
<ikwildrpepper> andi-: sorry to hear that, we will look into it
Twey has quit [Ping timeout: 244 seconds]
<clever> magnetophon: one min
<magnetophon> clever: I was building an audio pkg, and then the terminal I did it in got garbled, and thats's when I noticed the problem
<andi-> ikwildrpepper: thank you :)
<clever> magnetophon: have you ran a memtest86 recently?
<magnetophon> clever: nope
<clever> magnetophon: try that first
jperras has joined #nixos
<magnetophon> clever: so reboot, hope I enabled memtest, run it?
<clever> magnetophon: yep
Twey has joined #nixos
<magnetophon> clever: ok, so I'll be back in a few hours then, right?
trevorriles has joined #nixos
<clever> magnetophon: possibly
<clever> depends on if its bad enough to trigger asap or not
<magnetophon> clever: ok, thanks so far!
magnetophon has quit [Remote host closed the connection]
v0|d has quit [Remote host closed the connection]
sgraf has joined #nixos
<sgraf> Hey, I'm using home-manager (https://github.com/rycee/home-manager/) and some package in my config pulls in cargo, rustc and LLVM. This makes builds horribly slow and doesn't really compile to begin with. So, is there a way to print out the dependency footprint of packages I have not (yet) installed?
magnetophon has joined #nixos
<sphalerite> sgraf: do you get a line "the following derivations will be built"?
<magnetophon> clever: hmm, I don't heve memtest enabled
<sphalerite> sgraf: also normally that sort of thing should be available in the binary cache…
<magnetophon> clever: so I guess I need a live usb stick
<magnetophon> right?
<sphalerite> magnetophon: memtester is also useful for it
<sphalerite> runs in userspace on a booted system
<magnetophon> sphalerite: thanks, I'm figuring out how to run it now
<sgraf> sphalerite: This is the initial output when I install `home-manager` as described on its site: http://www.heypasteit.com/clip/0INNZX E.g., the output of `nix-shell https://github.com/rycee/home-manager/archive/release-18.09.tar.gz -A install`
<sphalerite> magnetophon: just memtester <size>, e.g. memtester 6G if you have 8GB of RAM
<magnetophon> sphalerite: 6 when I hav 8? is that a typo?
<sphalerite> no, it's not — memtester can't allocate all the RAM in your system :)
<sgraf> sphalerite: I guess it's related to my configuration, because the default home.nix from the site bootstraps just fine. Weird. Thanks anyway and sorry for bothering
<sphalerite> I usually just start with the amount of memory in the system then reduce it until it doesn't crash (make sure not to have any swap enabled or your system will freeze)
v0|d has joined #nixos
endformationage has joined #nixos
<sphalerite> sgraf: I'd suggest using `nix-diff /nix/store/1wxp7p3qfd6q0ar03in4qb3ylcdlsbjl-rustc-1.27.0.drv $(nix-instantiate '<nixpkgs>' --arg config {} --arg overlays {} -A rustc)` to see the differences between the normal rustc and the rustc it's trying to build
<sphalerite> nix-diff is in the nix-diff package
<ikwildrpepper> andi-: OK, will need to update DNS to enable IPv6
<ikwildrpepper> andi-: will get that sorted
<andi-> ikwildrpepper: thank you very much :) releases.nixos.org will also be migrated I guess? How about v6 on nixos.org (the EC2 instance IIRC?) while you are at it? :D
<ikwildrpepper> andi-: binary cache was our first priority, as that one has the highest costs, we'll move the other cloudfront after this
magnetophon has quit [Read error: Connection reset by peer]
<andi-> ikwildrpepper: understood.
magnetophon has joined #nixos
<magnetophon> sphalerite: I got a few lines ending in "ok", and then: "Block Sequential : setting 43[1] 2649 killed memtester 6G"
<sphalerite> magnetophon: that sounds like a case of the OOM killer stopping it because it was eating too much RAM, you can check journalctl -e to be sure
<sphalerite> so try with 5G I guess :)
<sphalerite> or quit any browsers you may be running and try again
<clever> brb
<magnetophon> ah, yes
<Myrl-saki> The good old hit the drive until it works before ddrescue is very helpful.
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos
<{^_^}> [nixpkgs] @zimbatm opened pull request #47867 → elvish: provide the compiled version → https://git.io/fxmLs
sphalerite has quit [Ping timeout: 250 seconds]
sphalerite has joined #nixos
<{^_^}> [nixpkgs] @zimbatm pushed commit from @flokli to release-18.09 « terraform-providers.matchbox: init at 0.2.2 (#47863) »: https://git.io/fxmLD
astronavt has joined #nixos
das_j has quit [Quit: "Bye!";]
Dedalo has joined #nixos
<fyuuri> Hi. Has there been any work on the memory consumption of nix as of yet? I have a notebook with 4GB of ram and even without any any application open after a fresh reboot, nix-os rebuild switch --upgrade fails because of lacking memory.
<Myrl-saki> fyuuri: Fails with what error?
<Myrl-saki> fyuuri: And what do you have installed?
<Myrl-saki> fyuuri: And what channel are you on?
<fyuuri> I am on the 18.03 channel. I have quite a few packets installed. The error is nix-daemon out of memory.
rembo10 has quit [Remote host closed the connection]
rembo10 has joined #nixos
thc202 has quit [Ping timeout: 252 seconds]
thc202 has joined #nixos
<aminechikhaoui> fyuuri: nix 2.1 should fix those memory issues, should be the default in nixos-18.09 if I'm not wrong
reinzelmann has quit [Quit: Leaving]
<fyuuri> oh! nice!
sb0 has joined #nixos
<fyuuri> Do you know how it was solved and what the problem was?
<Myrl-saki> fyuuri: I don't know the exact problem, but it's kinda related to add-to-store or copy.
<fyuuri> When is the expected date for 18.09 be stable.
<fyuuri> thx
<{^_^}> [nixpkgs] @gebner pushed to master « elan: 0.5.0 -> 0.7.1 »: https://git.io/fxmYw
justanotheruser has quit [Ping timeout: 268 seconds]
mkoenig has quit [Ping timeout: 260 seconds]
iyzsong has quit [Ping timeout: 252 seconds]
mkoenig has joined #nixos
liori has joined #nixos
erasmas has joined #nixos
reinzelmann has joined #nixos
<magnetophon> clever, sphalerite: memtester completed it's first loop, so I guess bad RAM is unlikely to be the problem, right?
mayhewluke has quit [Ping timeout: 252 seconds]
<kreisys> does hydra have any sort of hooks mechanism? like what do I do if I want to push a docker image to a registry after it's built? couldn't find anything in the docs :(
mayhewluke has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lewo> kreisys: Hydra has plugins. I think there is a plugin that allows you to execute arbitrary bash code.
<lewo> kreisys: foreach (split(/\n/, $str)) {
<lewo> if (/START/../END/) {
<lewo> next if /START/ || /END/;
<lewo> print;
<lewo> }
<lewo> sorry :/
<kreisys> oh is that documented somewhere? last time I did perl was 20 years ago :|
<lewo> kreisys: Otherwise, you can use this trick to push image: https://github.com/nlewo/nixpkgs-cloudwatt/blob/master/pkgs/lib/image.nix#L13
<lewo> kreisys: I don't think it is documented...
<sphalerite> magnetophon: always good to leave it running for a good while, but yeah that does at least give *some* confidence that it may not be bad RAM :)
<magnetophon> sphalerite: i still have it running. what else could I try?
<sphalerite> magnetophon: see how the files are actually damaged, try `file <some-damaged-executable>
<magnetophon> sphalerite: it says nixos-rebuild is data...
<sphalerite> well then! nixos-rebuild is supposed to be a shell script iirc, try opening it in less or something to see what it's looking like :D
andromeda-galaxy has joined #nixos
<kreisys> lewo: thank you!
<sgraf> sphalerite: Now I'm trying to find out why it needs to compile rustc from source, but part of the command you pasted `nix-instantiate '<nixpkgs>' --arg config {} --arg overlays {} -A rustc` fails with error: value is a set while a list was expected, at /nix/store/73sd0sgq6zbb65zgf4b2m4jbxqqnhk7g-nixpkgs-19.03pre154023.89b618771ad/nixpkgs/pkgs/top-level/stage.nix:172:8
<sphalerite> sgraf: oops, it's supposed to be --arg overlays []
<sphalerite> my bad
<lewo> kreisys: I wonder which solution you'll choose. Would be nice to have a feedback if you write a Hydra plugin :)
<sgraf> sphalerite: Thanks, that worked. And I know where the changes are coming from: I'm compiling a custom version of openssh with certain extra flags enabled, which flows through git into rustc
<{^_^}> [nixpkgs] @Vskilet opened pull request #47868 → nixos/nextcloud : added options to customize the listening address/port → https://git.io/fxmnK
<andromeda-galaxy> I use nix to build a few projects, and was thinking about setting up CI/a binary cache. Could anyone clarify when I might want to use OfBorg vs Hydra? It seems like they are both billed as CI tools.
<kreisys> lewo: I don't see myself relearning perl lol but sure I'll give you a shout with whatever I end up doing!
<lewo> kreisys: :) thx!
<sgraf> I guess, the simplest way to make it work is to get rid of the custom ssh setup... it didn't work anyway
<sphalerite> sgraf: aaaah what a pain. Do you actually need the change to affect ssh's dependents? If not maybe you should install your patched ssh just in your profile rather than using an overlay to modify it
<sphalerite> or that :D
<magnetophon> sphalerite: it's a long string consisting of "^@" repeated
Ariakenom_ has joined #nixos
<sgraf> sphalerite: I'd love to do that! How do I do that?
<sphalerite> magnetophon: looks like all you have left is NULs, whoopee
<sphalerite> magnetophon: anyway, using the nix you downloaded with clever's command you should be able to repair the path
<magnetophon> sphalerite: I aslo tried downloading nixos-rebuild using that command directly, and got this file...
<sphalerite> magnetophon: one thing to test for the underlying cause (though you'll have to boot into some system where the device you're checking isn't mounted) is if your storage is broken, you can test that using badblocks -ns for a non-destructive read-write test
<sphalerite> magnetophon: huh..?
<magnetophon> sphalerite: I did "nix-store -r /nix/store/plwp97zfj51hgr3rv80jkqmwa8mdxv79-nixos-rebuild/bin/nixos-rebuild" and got a string of ^@'s
<sphalerite> sgraf: I don't know much about home-manager, but I'm guessing there's some equivalent of nixos's systemPackages and nixpkgs.overlays. I presume you're modifying your SSH in an overlay or something — just move whatever you're defining openssh as into the systemPackages equivalent
<sphalerite> magnetophon: yeah that won't help, nix-store -r won't redownload something if it's already there. Try nix-store --repair-path /nix/store/plwp97zfj51hgr3rv80jkqmwa8mdxv79-nixos-rebuild
Ariakenom has quit [Ping timeout: 272 seconds]
<magnetophon> sphalerite: yes, now I have a script.
<sphalerite> so that's the immediate problem fixed :) NULs can also often happen iirc if the filesystem isn't written cleanly on a shutdown, are you aware of a forced shutdown happening on that machine recently?
<magnetophon> sphalerite: now what? I'm running badblocks, to check the disk, but I'm not sure on how to proceed
<sphalerite> uh, you're running badblocks on a device with a filesystem mounted??
<sphalerite> please say it's a read-only test :x
<magnetophon> sphalerite: yes, I have done a few recently, cause my home wouldn't unmount.
<sphalerite> that sounds like a more likely culprit than a broken storage device then, yay!
<magnetophon> sphalerite: yeah, and badblocks finished: no errors. so now what?
<sphalerite> sgraf: out of curiosity, what did you change in openssh?
<sgraf> sphalerite: I'm actually just using a regular overlay in `.config/nixpkgs`. And home-manager's equivalent is probably home.packages. Ah, of course, that could work. I now have this in my config: http://www.heypasteit.com/clip/0INO0W, but it doesn't really work
<sgraf> sphalerite: activate support for Kerberos auth mostly, as you can see
<sphalerite> magnetophon: nix verify --all --no-trust to check if there are any more broken paths to fix, once you've fixed them all life can go on as normal :p
<sphalerite> sgraf: two issues there — firstly, this is a case where you want to use override, not overrideAttrs, since these are package args, not mkDerivation args
<sgraf> sphalerite: The error is The option value `home.packages.[definition 1-entry 13]' in `~/.config/nixpkgs/home/user-common.nix' is not of type `package'
<sphalerite> sgraf: and secondly, you need some parentheses around the whole thing :)
<magnetophon> sphalerite: 99 corupted and counting! What is the difference between this command and "nix-store --verify --check-contents --repair" (which doesn't repair anything at the moment)
<sphalerite> sgraf: so (pkgs.openssh.override { withKerberos = true; withGssapiPatches = true;})
<sgraf> sphalerite: Ah, makes sense :) Was used to Haskell's application precedence, but that doesn't really make sense when lists are delimited by space
<sphalerite> magnetophon: oh wow that's intense. The only difference is the fancy progress indicator and that it doesn't do any repairing
<sphalerite> sgraf: yep
<magnetophon> sphalerite: almost 500 corrupted now. maybe something else is wrong?
<sphalerite> magnetophon: that seems pretty bad. Try doing an offline badblocks -n test rather than just a read-only one
yayforj has joined #nixos
<sphalerite> Unless you did a badblocks -n test on the live filesystem?
<sphalerite> In which case that will have trashed it :p
<ikwildrpepper> andi-: DNS has been changed, so ipv6 should work shortly
<sphalerite> (though I think badblocks should refuse to do that)
<magnetophon> sphalerite: I did "badblocks -v /dev/sda2 > badsectors.txt "
<sphalerite> magnetophon: oh ok that's fine then. It may be an issue with writing though, for which you need to do an offline test
<magnetophon> sphalerite: OK, so I need to find a bootable usb, and run it from there, right?
<sphalerite> magnetophon: yeah that's probably the easiest option
<magnetophon> sphalerite: "nix-store --verify --check-contents --repair" gives many lines like: ath '/nix/store/3rpsjb4sxv98j6b8hiy2gsglc747fdf5-iputils-20180629.drv' was modified! expected hash 'sha256:04zcsys05fkhyl4ycf7h5wdw80d2j374xnqvnadljzchqyngknz9', got 'sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p'
<magnetophon> error: cannot repair path '/nix/store/3rpsjb4sxv98j6b8hiy2gsglc747fdf5-iputils-20180629.drv'
<sphalerite> magnetophon: anyway, I'm unsure at this point if it's not broken-disk after all. But this kind of stuff is also what happens when you force-shutdown :p not sure if the scale matches
<sphalerite> oh yeah, you can't repair drvs
<andi-> ikwildrpepper: thanks one more time :) It seems to work already
<ikwildrpepper> andi-: awesome, sorry for the inconvenience
<magnetophon> sphalerite: OK, so those aren't errors then?
<sphalerite> but a broken drv shouldn't be a major issue I think
<sphalerite> well they are
<sphalerite> but it shouldn't be a big problem AFAIK
<magnetophon> sphalerite: I have many of them
<sphalerite> might also be worth doing a gc
<magnetophon> sphalerite: doing that now
<{^_^}> [nixpkgs] @schneefux opened pull request #47869 → nodePackages.webtorrent-cli: add node-gyp dependency, fixes build → https://git.io/fxmRI
<magnetophon> sphalerite: ah, when I run repair after the gc, it doesn't spit out many things anymore, just the normal 3 lines so far...
<sphalerite> yeah it's always nice when the broken stuff wasn't actually needed :p
<{^_^}> #47862 (by teto, 4 hours ago, open): How to propagate some binaries in haskell (bug ?)
civodul has quit [Read error: Connection reset by peer]
civodul has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to master « nixos-option: fix #47722 when missing ~/.nix-defexpr/channels »: https://git.io/fxm0m
patrl has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-18.09 « nixos-option: fix #47722 when missing ~/.nix-defexpr/channels »: https://git.io/fxm03
<sgraf> sphalerite: Now everything works flawlessly! No unnecessary rustc rebuilds. Thanks a bunch!
<sphalerite> \o/
<magnetophon> sphalerite: your help is MUCH appreciated!!!
asymmetric_ has quit [Ping timeout: 252 seconds]
<sphalerite> :)
asymmetric_ has joined #nixos
Dedalo has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e4f4e9fd1d0 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<gchristensen> I have this PR which peple might want to check out https://github.com/NixOS/nixpkgs/pull/47837
<{^_^}> #47837 (by grahamc, 13 hours ago, open): nixpkgs: Start documenting library functions in XML
slack1256 has joined #nixos
<rawtaz> gchristensen: what's the use case? arent they documented elsewhere?
<gchristensen> so you don't have to read the source for docs
<gchristensen> and so they're documented with the rest of nixpkgs
<rawtaz> ok, so they are currently not documented elsewhere, this is about getting them documented like the other things at all
<gchristensen> they are documented, in the source code.
<magnetophon> I want to add memtest to my boot, but I only see it for grub, whereas I'm using efi. does that exist too?
<rawtaz> gchristensen: i mean outside of the source code.
<gchristensen> right
<rawtaz> i thought that "in XML" meant something like "in XML too", as if they were already documented in a format that was e.g. available on the website. i understand now what you mean. good idea!
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c02f213dfa6 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
init_6 has quit [Ping timeout: 252 seconds]
MrAngel has joined #nixos
<gchristensen> also note my intention is to just mereg it sometime today and assume it can be improved later :) (unless there is other feedback)
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<MrAngel> Has anyone seen this before? (output from me attempting to run stack upgrade --nix showing an error caused by not having zlib, which I'm pretty sure is installed)
<symphorien> ,library MrAngel
<{^_^}> MrAngel: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
alex`` has joined #nixos
<MrAngel> Ah, there we go. Thanks fam
<MrAngel> Am I going to find that Stack repeatedly breaks if I try and use it outside of nix-shell because it depends on libraries it won't get?
<clever> yeah
reinzelmann has quit [Quit: Leaving]
<MrAngel> Am I, in fact, going to find that trying to use Nix to manage everything else and then using Stack as an escape hatch for development work is really dumb and I'm going to suffer less just learning how Nix works properly?
<srhb> MrAngel: Opinions differ (but yes.)
<srhb> As in, the "yes" is my opinion :-P
<MrAngel> Darnit. I refuse to have come this far only to switch back to Arch now -_-
<MrAngel> Guess I'll just have to work out how the hell to use Nix for this
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> MrAngel: cabal2nix --shell > shell.nix, spin up a nix shell, start hacking (using cabal repl and friends, probably)
Dedalo has joined #nixos
<MrAngel> That almost works, except that a) nix shell breaks everything (probably because it's bash and I use zsh) and b) for some strange reason hdevtools can't find dependencies being provided by Nix
<srhb> MrAngel: stack is doable though, if you insist. I have less experience with that, for guidance, though.
<{^_^}> [nixpkgs] @dtzWill opened pull request #47870 → libinput: 0.12.0 -> 0.12.1 → https://git.io/fxmif
<srhb> MrAngel: "breaks everything" does sound rather annoying. :-)
<MrAngel> I say "breaks everything", I mean "doesn't respect my .zshrc for obvious reasons" :P
<srhb> Right.
<srhb> You can probably run zsh inside it if you want.
<MrAngel> You can, but I felt that zsh => tmux => bash => zsh was a level of inception I wanted to avoid if possible
<srhb> MrAngel: Just keep chanting "must go deeper" and eventually it'll feel normal.
<srhb> I think for hdevtools, you'll need to have it as a dependency in your shell as well. I don't *think* anything else should be required..
<MrAngel> One day I'll extend alacritty to add a little border for every running process :P
<srhb> :D
<symphorien> MrAngel: I usually run nix-shell --run "exec zsh"
<MrAngel> hdevtools itself works fine
<MrAngel> It just can't find my deps
<srhb> MrAngel: Right, but the hdevtools you're using from your environment probably knows about an entirely different ghc and package db
<srhb> MrAngel: A special ghc package db is built for each of your shell.nix environments like this.
<{^_^}> [nixos-weekly] @vcunat opened pull request #68 → 11: add Fastly → https://git.io/fxmPE
<MrAngel> Won't hdevtools just look wherever cabal puts libraries though?
<srhb> (I may be talking out of my butt since I don't use hdevtools, but that's what I would assume)
<srhb> MrAngel: The deps specified in shell.nix are not installed via cabal.
<srhb> MrAngel: They just live in /nix/store along with a ghc that has _just those packages_ in its package db.
<MrAngel> Ah
<MrAngel> cabal2nix doesn't seem like it's helping me very much at this point
<dhess> Mic92: your OpenWRT gist works great for me, thanks!
<MrAngel> Since I'm gonna need to add derivations for tools I wouldn't need to include as cabal deps
<dhess> now I need to figure out how to use their build system
<srhb> MrAngel: It's probably still useful for generating the initial shell.nix
<MrAngel> I'm doing a toy project from scratch, I don't even want to think about how I'd fix a non-trivial project right now
<srhb> MrAngel: Mmm. Okay. :) Well, I won't claim it's not a time investment. I can only say that it's very composable and easy to work with once you've spent that time..
<cocreature> after a "nixos-rebuild switch --upgrade" and a reboot (on unstable), I can’t start steam anymore. it fails with “glxChooseVisual”. Here’s the full cli output https://gist.github.com/cocreature/245ac8d43e0aaaf52894587324e40e75
<srhb> MrAngel: Especially for non-trivial projects.
<cocreature> any ideas on how to fix this (apart from rolling back)
<srhb> MrAngel: The payoff on small projects is way smaller, granted.
patrl has quit [Ping timeout: 252 seconds]
<Mic92> dhess: you are welcome
<MrAngel> Yeah. What interested me about Nix was having a sane, reproducible way to get an OS with the environment that I actually like (IDE-wise) up and all the dev tools installed
<MrAngel> And then I could just let Lein/Gradle/Stack do their crazy thing in directories
<MrAngel> I'm beginning to feel like that's not going to get me very far
<srhb> MrAngel: You can, though it's not as powerful as going fully declarative imo.. And there will be integration issues along the way anyway.
<srhb> MrAngel: (As you've noticed.)
<srhb> gchristensen: I like that it's this yesterday and not some other yesterday. :-)
<MrAngel> I agree completely that all of the named tools are very broken, but I'm very used to fixing them at this point :P
<srhb> gchristensen: (Also neat!!)
<srhb> MrAngel: Yeah. :)
<gchristensen> srhb: LOL. I made that typo/fix after ikwildrpepper was grumpy it was changed yesterday not "this morning"
<srhb> :-)
<MrAngel> I think I'm gonna boot arch to get this done and try and brush up on Nix more later, thank you kindly for all the help though!
<srhb> MrAngel: OK, good luke, hope you'll be back :)
<srhb> .. luck
<MrAngel> I'll be back for sure, this is a great idea. But much like Haskell and Clojure when I first learned them, it's a great idea that's nuking my immediate productivity :P
<dhess> gchristensen: I'm using the aarch64 commuity builder in my project Hydra now. That thing is fast!
jperras has quit [Ping timeout: 268 seconds]
<gchristensen> :D yeah, it is a very nice machine
<{^_^}> [nixpkgs] @edwtjo pushed to master « i2pd: 2.20.0 -> 2.21.0 »: https://git.io/fxmDP
<{^_^}> [nixpkgs] @erictapen opened pull request #47871 → notmuch: use test-database in checkPhase → https://git.io/fxmyf
avn has joined #nixos
grp has joined #nixos
MrAngel has quit [Ping timeout: 256 seconds]
trevorriles has quit [Ping timeout: 245 seconds]
jperras has joined #nixos
ThatDocsLady has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #47869 → nodePackages.webtorrent-cli: add node-gyp dependency, fixes build → https://git.io/fxmRI
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxmQo
<dhess> gchristensen: do you know what kind of aarch64 CPU that thing has? Like, A57, A72, etc?
<gchristensen> "this chip incorporates 32 Cortex-A72 cores operating at 2.4 GHz"
<dhess> that's exactly what I needed, thank you
<gchristensen> yep!
<gchristensen> I thought about making it part of hydra.nixos.org but we wouldn't use the armv7l features and our dear community certainly could
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dhess> just curious, why not use it for armv7l and actually get those into an official cache?
Dedalo has joined #nixos
yayforj has quit [Ping timeout: 276 seconds]
georges-duperon has quit [Ping timeout: 252 seconds]
magnetophon has quit [Remote host closed the connection]
georges-duperon has joined #nixos
<Synthetica> Is there a particular reason xorg-server isn't at 1.20?
waleee has joined #nixos
<waleee> Do the fstrim.service need the discard-option set on the ssd-partions or will it chug along happily either way?
Ariakenom_ has quit [Ping timeout: 268 seconds]
<sphalerit> dhess: because native building of armv7 drvs on aarch64 kernels is still very brittle
georges-duperon has quit [Ping timeout: 245 seconds]
aidan has joined #nixos
amosbird has quit [Quit: ZNC 1.7.0 - https://znc.in]
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
jtojnar has quit [Remote host closed the connection]
<aidan> I
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
Lisanna has joined #nixos
amosbird has joined #nixos
<samueldr> dhess: AFAIUI it's not possible (yet) to do like i686 on x86_64, for armv7l on AArch64
sigmundv__ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @primeos opened pull request #47873 → Minor security backports for 18.03 → https://git.io/fxmA5
jtojnar has joined #nixos
<aidan> I'm looking to setup Xorg to run without root, anyone here managed to do that?
asymmetric_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @andir merged pull request #47761 → [18.03] thunderbird: 52.9.0 -> 60, thunderbird-bin: 52.9.0 -> 60 → https://git.io/fxLGl
<{^_^}> [nixpkgs] @andir pushed 4 commits to release-18.03: https://git.io/fxmxE
yayforj has joined #nixos
Ariakenom has joined #nixos
apeyroux has joined #nixos
<apeyroux> hello
<apeyroux> i want to use containers with gitlab but at start i have timeout at nixos-container start ...
<apeyroux> how can I increase this timeout?
<{^_^}> [nixpkgs] @andir opened pull request #47874 → 18.09/thunderbird → https://git.io/fxmp4
Twey has quit [Ping timeout: 252 seconds]
ckauhaus is now known as ckauhaus[afk]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c78e3b7cfba (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> [nixpkgs] @samueldr closed pull request #46309 → Fix making the partition bootable instructions → https://git.io/fAz1m
<{^_^}> [nixpkgs] @samueldr closed pull request #39942 → nixos docs: Update installation partitioner instructions → https://git.io/vp2Np
slack1256 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @primeos merged pull request #47873 → Minor security backports for 18.03 → https://git.io/fxmA5
<{^_^}> [nixpkgs] @primeos pushed 4 commits to release-18.03: https://git.io/fxmha
<{^_^}> [nixpkgs] @vbgl opened pull request #47875 → ocamlPackages_latest.ocaml: 4.07.0 -> 4.07.1 → https://git.io/fxmhP
waleee has quit [Quit: WeeChat 2.2]
<kalbasit[m]> ldlework: I'm trying to understand where did you define `mine` in https://github.com/dustinlacewell/dotfiles/blob/master/modules/home/linux/workstation/default.nix#L8 but I can't seem to find it. I tried to add one to my system https://gist.github.com/30560b1d281543ca976c3141a1379c95 but I'm getting `error: Module `/code/personal/base/src/github.com/kalbasit/system/nixos/cfg/virtualisation.nix' has an unsupported attribute
<kalbasit[m]> `nixpkgs'. This is caused by assignments to the top-level attributes `config' or `options'.`
<{^_^}> #47773 (by xeji, 1 day ago, open): nixos/display-managers/startx: init
<aidan> Fantastic, thank you very much.
<infinisil> kalbasit[m]: You need to wrap the config settings into a config attribute
<infinisil> { options = { ... }; config = { ... }; }
<kalbasit[m]> oh I see, thx!
<infinisil> If NixOS can't find an options or config attribute in the module, it will convert it into a { options = {}; config = <the original value>; }
patrl has joined #nixos
<infinisil> > deepEval lib.unifyModuleSyntax "" "" { foo = 10; }
<{^_^}> { config = <CODE>; disabledModules = <CODE>; file = <CODE>; imports = <CODE>; key = <CODE>; options = <CODE>; }
<infinisil> > deepEval (lib.unifyModuleSyntax "" "" { foo = 10; })
<{^_^}> { config = { _type = "merge"; contents = [ { foo = 10; } { } ]; }; disabledModules = [ ]; file = ""; imports = [ ]; key = ""; options = { }; }
<infinisil> > deepEval (lib.unifyModuleSyntax "" "" { options.foo = 10; })
<{^_^}> { config = { _type = "merge"; contents = [ { } { } ]; }; disabledModules = [ ]; file = ""; imports = [ ]; key = ""; options = { foo = 10; }; }
<kalbasit[m]> awesome, thanks infinisil
waleee has joined #nixos
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
hotfuzz has joined #nixos
hotfuzz_ has quit [Ping timeout: 244 seconds]
charleshd has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @plutotulp opened pull request #47878 → kbd: Renamed norwegian dvorak keymap to dvorak-no. → https://git.io/fxYfA
waleee has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @avnik opened pull request #47879 → Wine update → https://git.io/fxYJF
<{^_^}> [nixpkgs] @pacien opened pull request #47880 → matrix-synapse: 0.33.5 -> 0.33.6 → https://git.io/fxYUn
Itkovian_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/26775934876 (from 61 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
Dedalo has quit [Quit: Textual IRC Client: www.textualapp.com]
shabius_ has joined #nixos
shabius has quit [Ping timeout: 240 seconds]
primeos has quit [Ping timeout: 252 seconds]
primeos has joined #nixos
<{^_^}> [nixpkgs] @primeos opened pull request #47881 → [18.03] fscrypt: 0.2.3 -> 0.2.4 (security, CVE-2018-6558) → https://git.io/fxYTX
aidan has quit [Quit: Leaving]
sie has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #47867 → elvish: provide the compiled version → https://git.io/fxmLs
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYTF
simukis has quit [Read error: Connection reset by peer]
Itkovian has joined #nixos
simukis has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed commit from @zimbatm to release-18.09 « elvish: provide the compiled version »: https://git.io/fxYkf
yayforj has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #47858 → yapf: 0.22.0 -> 0.24.0 → https://git.io/fxqfG
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYkP
<{^_^}> [nixpkgs] @dywedir opened pull request #47882 → iwd: 0.8 -> 0.9 → https://git.io/fxYkb
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.{dev,canary}: 3.3.0.11 -> 3.3.0.12 »: https://git.io/fxYIm
<{^_^}> [nixpkgs] @Mic92 merged pull request #47882 → iwd: 0.8 -> 0.9 → https://git.io/fxYkb
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYIb
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYLI
<{^_^}> [nixpkgs] @Mic92 merged pull request #47849 → bfs: 1.2.3 -> 1.2.4 → https://git.io/fxtH8
<{^_^}> [nixpkgs] @Mic92 merged pull request #47848 → arangodb: 3.3.15 -> 3.3.16 → https://git.io/fxtHq
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYL3
<{^_^}> [nixpkgs] @Mic92 merged pull request #47850 → babeld: 1.8.2 -> 1.8.3 → https://git.io/fxtH0
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYLc
<{^_^}> [nixpkgs] @nlewo opened pull request #47883 → Collecting systemd units execution times in NixOS tests → https://git.io/fxYL0
<{^_^}> [nixpkgs] @Mic92 merged pull request #47843 → checkSSLCert: 1.72.0 -> 1.73.0 → https://git.io/fxtoZ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYL2
<{^_^}> [nixpkgs] @Mic92 merged pull request #47841 → tetra-gtk-theme: 0.1.6 -> 0.2.0 → https://git.io/fxtVu
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYLr
<{^_^}> [nixpkgs] @Mic92 merged pull request #47845 → bowtie2: 2.3.4.2 -> 2.3.4.3 → https://git.io/fxto6
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYLo
<{^_^}> [nixpkgs] @Mic92 merged pull request #47852 → bzflag: 2.4.14 -> 2.4.16 → https://git.io/fxtHM
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYLN
<{^_^}> [nixpkgs] @primeos opened pull request #47884 → [18.09] gollum, jekyll (security backports) → https://git.io/fxYtY
<gchristensen> I have downloaded pandoc sooo many times this week.
coding2learn has joined #nixos
fendor has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @primeos merged pull request #47881 → [18.03] fscrypt: 0.2.3 -> 0.2.4 (security, CVE-2018-6558) → https://git.io/fxYTX
<{^_^}> [nixpkgs] @primeos pushed 3 commits to release-18.03: https://git.io/fxYta
<{^_^}> [nixpkgs] @andir merged pull request #47874 → [18.09] thunderbird: 60.0 -> 60.2.1, thunderbird-bin: 60.0 -> 60.2.1 → https://git.io/fxmp4
<{^_^}> [nixpkgs] @andir pushed 3 commits to release-18.09: https://git.io/fxYqp
<{^_^}> [nixpkgs] @nlewo merged pull request #47783 → kubernetes-helm: 2.10.0 -> 2.11.0 → https://git.io/fxLSJ
<{^_^}> [nixpkgs] @nlewo pushed commit from @r-ryantm to master « kubernetes-helm: 2.10.0 -> 2.11.0 »: https://git.io/fxYme
Mr_Keyser_Soze has joined #nixos
coding2learn has left #nixos ["ERC (IRC client for Emacs 26.1)"]
markus1189 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @primeos pushed 4 commits to release-18.09: https://git.io/fxYma
<{^_^}> [nixpkgs] @primeos merged pull request #47884 → [18.09] gollum, jekyll (security backports) → https://git.io/fxYtY
markus1189 has joined #nixos
Ariakenom_ has joined #nixos
yayforj has joined #nixos
trevorriles has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 272 seconds]
<infinisil> Would you believe me if I told you that I just created a lisp in Nix
<infinisil> Because I totally just did
<infinisil> Gisting it.
Ariakenom_ has quit [Ping timeout: 268 seconds]
jonge has quit [Quit: quit]
<infinisil> It's a bit rough around the edges, and no function definitions yet, but it works
<infinisil> And very hacky!
<LnL> but...
<sphalerite> infinisil: guix is that way → https://www.gnu.org/software/guix/
<sphalerite> xD
Adluc has quit [Excess Flood]
<{^_^}> [nixpkgs] @mmlb opened pull request #47887 → pythonPackages.dpath: init at 1.4.2 → https://git.io/fxYOs
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #47879 → Wine update → https://git.io/fxYJF
<{^_^}> [nixpkgs] @yegortimoshenko pushed 3 commits to master: https://git.io/fxYOW
<srk> infinisil: :D cool
<Synthetica> infinisil: I'm not sure if I should be amazed or terrified 😅
<emily> colemickens: btw, do you use sway on hidpi at all?
djhoulihan has quit [Max SendQ exceeded]
djhoulihan has joined #nixos
<infinisil> xD
<tilpner> Now do macros c.c
fragamus has joined #nixos
<sie> what runs pkgs/test/default.nix?
<gchristensen> I didn't know that existed until this week or so
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #47870 → libinput: 0.12.0 -> 0.12.1 → https://git.io/fxmif
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/fxYsI
<{^_^}> [nixpkgs] @7c6f434c merged pull request #47826 → cgal: 4.12.1 -> 4.13 → https://git.io/fxtnc
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fxYsY
Mr_Keyser_Soze has joined #nixos
jedahan has joined #nixos
Lisanna has quit [Quit: Lisanna]
yayforj has quit [Ping timeout: 260 seconds]
jtojnar has quit [Remote host closed the connection]
<sie> gchristensen, do you write the docbook xmls by hand?
jtojnar has joined #nixos
matthewbauer has joined #nixos
<infinisil> Same gist again, now functions are implemented: https://gist.github.com/Infinisil/d1ad923cb6ed7132a6c3f9275e86fb54
<infinisil> Enables to write our all time favorite program, a fibonacci number function, in nixlisp
<infinisil> tilpner: Are macros different than functions?
<infinisil> I'm no lisp expert
<tilpner> Yes, but that wasn't a serious suggestion
jasongrossman has quit [Ping timeout: 246 seconds]
<infinisil> I won't go any further, this is a rather pointless exercise :P
<{^_^}> [nixpkgs] @zimbatm merged pull request #47861 → terraform: add plugins tests → https://git.io/fxqIg
<{^_^}> [nixpkgs] @zimbatm pushed to master « terraform: add plugins tests (#47861) »: https://git.io/fxYZP
<gchristensen> sie: yeah, usually -- emacs and nxml-mode and yasnippets helps a lot. sometimes I use oXygen, but not often since I don't have a license.
Mr_Keyser_Soze has quit [Remote host closed the connection]
patrl has quit [Quit: WeeChat 2.2]
patrl has joined #nixos
matthewbauer has quit [Ping timeout: 264 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyren has quit [Quit: ZNC 1.7.1 - https://znc.in]
jonge has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
<demize> infinisil: Next: rewrite nixpkgs in nixlisp.
simukis has quit [Quit: simukis]
matthewbauer has joined #nixos
<infinisil> On it!
<{^_^}> [nixops] @Assassinkin opened pull request #1016 → [WIP] Improve ec2 security groups module: update to boto3 → https://git.io/fxYnd
<infinisil> Created a repo, so I won't forget about it https://github.com/infinisil/nixlisp
<infinisil> This is by far the coolest and most useless thing I did today
<Streetwalrus> the best kind of project
matthewbauer has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @timokau merged pull request #47659 → WIP emby: 3.5.2.0 -> 3.5.3.0 and migration from mono to dotnet → https://git.io/fxT1p
<{^_^}> [nixpkgs] @timokau pushed 5 commits to master: https://git.io/fxYcM
alex`` has quit [Ping timeout: 240 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Lisanna has joined #nixos
fragamus has joined #nixos
Lisanna has quit [Client Quit]
trevthedev has joined #nixos
<trevthedev> hi
<trevthedev> i was wondering, is there any way I can set my config with exwm?
sie has quit [Ping timeout: 244 seconds]
<trevthedev> like, exwm.config = ./exwm.el or something
<trevthedev> i cant find anything about this online, and I cant figure out how to configure exwm if i cant set any config other than defauklt
kyren has joined #nixos
<zimbatm> trevthedev: looks like it's not supported yet
<trevthedev> ;-;
<trevthedev> so i cant configure exwm?
<zimbatm> you can see that there is an "enableDefaultConfig" option but no custom config capabilities
<zimbatm> I don't know, maybe the default config loads from the home somewhere?
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<trevthedev> not sure how i can test that
<zimbatm> what is the definition of the (exwm-config-default) function?
<trevthedev> hm?
<trevthedev> how can i check xd
<grp> I'm trying to bump unbound's version, so I copied the current .nix into an overlay I have and did the trivial edition needed, but when I try to build it, it pulls A LOT of dependencies that have NOTHING to do AT ALL with it. https://pastebin.com/HDuuQit3 (all this just from unbound-1.8)
<wirew0rm> they also do not show up in nix search and https://nixos.org/nixos/packages.html
<grp> how can I check what's going on here, what's pulling what
<zimbatm> trevthedev: I don't know anything about exwm. I would look for the source code and grep for that function
<trevthedev> ill look into it, thanks
<lassulus> one could still write services.xserver.windowManager.session = [{ name = "my-exwm"; start = "${pkgs.emacsWithPackages []}/bin/emacs -l ${my-exwm-config}"; }]; services.xserver.windowManager.default = "my-exwm";
<goibhniu> ,unfree
<{^_^}> You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<goibhniu> wirew0rm: ^^
<lassulus> you would also have to define my-exwm-config then of course
<lassulus> trevthedev: ^^
<trevthedev> i tried doing something similar
<zimbatm> wirew0rm: Eg: `nix-env -f '<nixpkgs>' -iA bitscope.console`
<lassulus> I'm doing this for my customized xmonad
<trevthedev> but /bin/emacs doesnt exist and im too stupid to figure out how to fix that
<lassulus> oh, lets check
<trevthedev> lemme guess, simple mkdir /bin/emacs ?
<trevthedev> idk xd
<wirew0rm> goibhniu: oh m( my bad, sorry for the noise...
<goibhniu> no problemo
catern has joined #nixos
<catern> hey #nixos, why do store paths have to include hashes instead of UUIDs?
<catern> I realize that binary caches are indexed by the hash of the derivation, but why is that also the case for store paths?
<lassulus> trevthedev: ${pkgs.emacsWithPackages []}/bin/ecams does exist here
<lassulus> checked with: nix-build -E 'with import <nixpkgs> {}; pkgs.emacsWithPackages []'
<infinisil> catern: Not sure what you mean, it's a hash so the same input maps to the same store path
<infinisil> uuid's are per definition unique, which would mean unique amongst different machines, so everybody would have to rebuild everything for their own uuids, or something like that
<cransom> a hash is reproducible too. everywhere i've seen a uuid, it's randomly generated. you could stuff a hash into something that looks like a uuid, but why?
acarrico has quit [Ping timeout: 252 seconds]
<catern> infinisil: the same input maps to the same store path, but that doesn't matter if you're sending requests to a binary store
Ericson2314-work has quit [Remote host closed the connection]
<catern> binary cache*
<catern> like, why does the same input need to map to the same store path? there doesn't seem to be a fundamental reason, it doesn't break anything in the Nix model or cause additional rebuilds
<infinisil> catern: You won't know which binary store path you're supposed to query if you don't have the same store path for a derivation as the cache
<gchristensen> catern: how would you know how to dowload the path?
<trevthedev> what do i define "my-exwm" as?
<catern> infinisil: the binary store can be indexed by input rather than by store path
<gchristensen> catern: let's turn this on its head, why use uuids?
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/26775934876 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/8c2c14ac392 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<catern> gchristensen: no reason, I'm just trying to understand why not
<infinisil> catern: So you would use the .drv hash?
<catern> my point is that store path and hash of the derivation can be different
<gchristensen> catern: a derivation can be built multiple times, right?
<catern> output store path*
<lassulus> trevthedev: thats just the name for the default windowManager. you define it with services.xserver.windowManager.session and reference it with services.xserver.windowManager.default
<catern> gchristensen: hmm, yes, but you wouldn't build something again if it's already built
<gchristensen> but I could, right?
<catern> yes, interesting point
<gchristensen> and if I did, the output store path would be at a different location, right?
<trevthedev> `i already put those in and its saying its an undefined variable...
<catern> gchristensen: yes
<infinisil> catern: I see what you mean now, and I can't find a reason why that wouldn't work
<lassulus> uh, maybe I made a mistake, let me check again :D
<infinisil> Interesting idea
<trevthedev> alright, no worries
<trevthedev> i appreciate the help
<gchristensen> catern: A depends on B, how does B know what out path A used?
<infinisil> catern: (I have a feeling there's some catch we're not seeing yet though)
<catern> infinisil: right that's what I'm wondering too :) I'm expecting a catch
<catern> gchristensen: er do you have one of those As and Bs swapped? because why would B know what out path A used, if A is the one depending on B?
<gchristensen> right.
<catern> (B doesn't know about things that depend on it)
<gchristensen> catern: B depends on A, how does B know what out path A used?
<infinisil> gchristensen: Build all input drvs, get the uuid's from them, scan for uuids in $out
Ariakenom has quit [Read error: Connection reset by peer]
<catern> ^ that
<gchristensen> ok, so before you can construct the drv for B you must first fully build A?
<catern> ah, I see
<catern> wait, no
<gchristensen> no no let's not give up yet!
<catern> no, the drv for B refers to the drv for A, rather than the uuid for A
<infinisil> Yeah
<infinisil> No problem with that, drv's have drvs as deps
<gchristensen> ok, but at some point B needs to know where A put its output. how does it do that?
<catern> it builds A? (possibly by querying a binary cache and downloading A from there)
<gchristensen> ok, sure
Itkovian has joined #nixos
<lassulus> trevthedev: where do you get the error? from nix or from emacs?
<gchristensen> I have two binary caches from two different hydras and I use them both. 50% of the closure for derivation X comes from cacheA and 50% come from cacheB, how do I end up with a build for X which works?
<trevthedev> nix
<trevthedev> error: undefined variable 'my-exwm-config'
<lassulus> can you paste the part of your config somewhere?
<trevthedev> sure thing
mayhewluke has quit [Ping timeout: 244 seconds]
<lassulus> it seems to work here
<infinisil> gchristensen: That seems to be a catch indeed
<gchristensen> oh but I have another question ;)
<infinisil> catern: Also, we'd probably want the uuid's to be deterministic, and deterministic uuid's are pretty much just hashes xD
<gchristensen> I'm a paranoid hedge fund and I like to have eight hydras all build the same code and ensure they're bit-for-bit identical. how do I do this?
Itkovian has quit [Client Quit]
georges-duperon has joined #nixos
mayhewluke has joined #nixos
<lassulus> trevthedev: ah, yeah, it's getting late here, but you need to define your config somewhere, like in a let. here is an example: http://paste.krebsco.de/ENvcgHsT/+inline
<trevthedev> thanks mate
<lassulus> yw, night!
jtojnar has joined #nixos
<catern> gchristensen: hm, this is essentially the same problem as the intensional store though, isn't it?
<catern> maybe?
<catern> and so you could use hash rewriting to make the two closures match?
<trevthedev> no errors!!
<trevthedev> alright now my hopefully final question, how exactly do i configure it now? like, what file do i edit to configure, or?
<catern> gchristensen: also, you can still distribute the build over your 8 hydras, you just have to have only one of them build each thing? I admit that any chance of bit-reproducibility is lost under this scheme
<{^_^}> [nixpkgs] @alexherbo2 opened pull request #47888 → GRV: Fix typos in description → https://git.io/fxY8F
<catern> anyway to directly answer your question: if you have a binary cache from two different hydras which have both built the same thing, that doesn't work
<lassulus> ah, you edit the config file you define on top, you can also use lib.readFile instaed of pkgs.writeText and import any file you want. I don't know anything about exwm so you are on your own what to write into the config
<catern> but that doesn't seem that terrible?
kyren has quit [Quit: ZNC 1.7.1 - https://znc.in]
<catern> I mean, I pretty much never want to do that, AFAICT?
<trevthedev> so i assume i change pkgs.writeText to lib.readFile, then "./exwm-bla" right?
<lassulus> yep, that should work
<lassulus> (hopefully)
<trevthedev> so far have been getting an error, tring './exwm-bla' doesn't represent an absolute path, at /etc/nixos/desktop.nix:3:20
<trevthedev> string*
<trevthedev> got it when i didnt change it too
<trevthedev> well, crap xd
<trevthedev> something broke everything is okay
slack1256 has joined #nixos
<trevthedev> am in tty1 now xd
<lassulus> ah, it actually needs a file,
Lisanna has joined #nixos
<trevthedev> created one
<trevthedev> didnt work, so i created a directory
<trevthedev> also didnt work xd
<trevthedev> renamed and tried to get it to work xd
<lassulus> ok, even easier, you can just say: start = "${pkgs.emacsWithPackages []}/bin/emacs -l ${./exwm-bla}";
<trevthedev> where do i put that?
<lassulus> where the other start already is
<trevthedev> 1do i get rid of the let?
<trevthedev> okie
<lassulus> yes
grp has quit [Quit: box shutting down...]
<lassulus> instead of the other start of course
<catern> infinisil: why would we want it to be deterministic? not sure it's really beneficial
jedahan_ has joined #nixos
patrl has quit [Ping timeout: 240 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jedahan has quit [Ping timeout: 252 seconds]
<trevthedev> no error, yay
<catern> gchristensen: infinisil: wait a second, there's no issue if half the closure for a derivation comes from one cache and half the closure from another cache, as long as the two parts of the closure don't overlap
<gchristensen> in my 50% the definitely overlap
<catern> well, the two caches should/would ideally be talking to each other and pulling deps from each other so that they don't overlap in builds
<gchristensen> but how would they know? they have a valid NAR file for the derivation
<trevthedev> yay! time to configure it, thanks mate :D
<catern> if cache A is about to build, then it should look to see if cache B has the artifact
<lassulus> have fun!
<gchristensen> no, cacheA and cacheB built it entirely independently
<catern> and download it if so; and vice versa
jedahan_ has quit [Client Quit]
<cransom> if they both decided to build it at the exact moment, they both would check if it exists, and find that it doesn't exist. now you have a brand new set of distributed systems issues!
__monty__ has quit [Quit: leaving]
<__red__> if one appears to have hit an impasse with a committer, I'm guessing the only option left is to delete the PR?
<trevthedev> okay crap....
<trevthedev> so, where exactly does uh, the exwm-bla flle go?
<__red__> and work on something else instead
<trevthedev> it says it cannot find any files called $./exwm-bla
<catern> cransom: sure, that could happen, there's a race there
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/862fb5215f0 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<gchristensen> catern: ok, so what happens in my scenario?
<trevthedev> does it go in /bin/emacs , /etc/nixos , or $HOME ?
<catern> gchristensen: well, we have to either pick some arbitrary half of the closure to use, or use hash rewriting like in the intensional store
<gchristensen> catern: well, then, I think we've found why we don't do that
jperras has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 4 commits to release-18.09: https://git.io/fxYBE
<{^_^}> [nixpkgs] @vcunat merged pull request #47699 → nixos on hyperv: load proper modules and make installer use the module → https://git.io/fxIRl
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Neo--> __red__, you could try pinging someone impartial?
<lassulus> trevthedev: should be read-only in nix-store (that's what reading a File normally does in nix) altetnatively you can say ${toString ./exwm-bla} and then it should read ./exwm-bla relative to your configuration.nix
<catern> gchristensen: okay, yeah, it's a good point
nDuff has joined #nixos
<catern> I dunno, I was just thinking that something as fundamental as this would have an equally fundamental reason why, but this just seems like a relatively minor efficiency concern
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/cb08cb4333a (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<trevthedev> wait so how would be able to configure it if its read only...
<gchristensen> catern: it provides properties we want, like reproducible builds and consistency -- this is a very important fundamental property
nDuff has quit [Quit: ...]
<catern> that's true
<__red__> Neo--: I'm not sure how to do this - I'm very new to the project and I really don't want to be "that guy"
nDuff has joined #nixos
<__red__> but I'm just not sure what to do
<__red__> maybe I should just give it some more time
<catern> I guess then I say that it seems this would be lost anyway with a move to the intensional store
<gchristensen> mmm no I don't think consistency or reproducibility is lost
<lassulus> trevthedev: a new copy would be done everytime you say nixos-rebuild switch for example
LysergicDreams has quit [Ping timeout: 260 seconds]
<gchristensen> everything there is still a function of its inputs, not rand()
<catern> oh, yeah, good point
<catern> okay, I'm fully persuaded then
<Neo--> __red__, sleep on it a day or two and see if you see a new angle / approach :) other than that I can't help either, I'm relatively new to the project too :)
<trevthedev> well apparently changing it to toString doesnt work
<trevthedev> now its looking for a file called s
<catern> Another unrelated question! (I admit that these are just thoughts funneled from people discussing Nix internally at my company, but they don't know how to use IRC I guess :) )
<trevthedev> where its getting that, i do not know
<catern> A feature request that I think makes a lot of sense! It would be nice if when using --store or something, you could have sharing of disk space between multiple stores
LysergicDreams has joined #nixos
<__red__> Neo--: I'll take your advice - thanks.
<gchristensen> catern: sounds like magic would be needed for that
<lassulus> Huh, weird, can you paste the new config again?
<trevthedev> ill see what i can do
<catern> Namely, if there's some system-wide store at /nix, I could specify --store in such a way that I get my own private store in my home directory, which is just an overlay on top of the /nix store into which I can install whatever
<catern> gchristensen: I think it would fit pretty easily into the C++ Store abstraction
<gchristensen> what if ~/my-private-store is an nfs mount and shared with another system?
justanotheruser has joined #nixos
<catern> gchristensen: yeah? what is the problem with that? any problems with that are still a problem with any usage of --store, right?
<gchristensen> no, because ~/my-private-store is a complete store right now
<gchristensen> but if it is an overlay, it is no longer a complete store
Wharncliffe has joined #nixos
<nDuff> Hmm. I'm trying to enable build of a package from a private repo, but it's being a bit tricky. Created a deploy key, one copy per build user, owned by that user in a directory they can access; created a custom SSH config file that points to those keys, using "%u" in the IdentityFile directive to be substituted appropriately... but it's trying to use *my* username for the file, and thus using a filename the build user can't access.
<catern> gchristensen: ah, I see, good point... that breaks the store invariant...
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/cb08cb4333a (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/862fb5215f0 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<lassulus> trevthedev: weird, can't reproduce that, do you have an exwm-bla next to your configuration.nix?
<gchristensen> catern: your coworkers ask good questions :)
<trevthedev> yup
<trevthedev> when i start exwm it says it cannot find file, s
<{^_^}> [nixpkgs] @Mic92 merged pull request #47888 → GRV: Fix typos in description → https://git.io/fxY8F
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYRg
<lassulus> ah, so not an nix error?
<trevthedev> no
<trevthedev> but an error nonetheless..
<trevthedev> theres no s in exwm-bla
<trevthedev> im not sure why its trying to find s
<lassulus> hmm ¯\_(ツ)_/¯
<trevthedev> welp
<trevthedev> its my config actually
<trevthedev> my emacs config XD
<trevthedev> im dumb
<lassulus> alright, hopefully you good to go now, I'm gonna head to bed
<{^_^}> [nixpkgs] @Mic92 pushed commit from @alexherbo2 to release-18.09 « GRV: Fix typos in description »: https://git.io/fxYR6
<trevthedev> gn
jedahan has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYRA
<{^_^}> [nixpkgs] @Mic92 merged pull request #47831 → calc: 2.12.6.6 -> 2.12.6.8 → https://git.io/fxtWU
trevthedev has quit [Quit: WeeChat 2.0]
matthewbauer has joined #nixos
erasmas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @Mic92 merged pull request #47832 → arrow-cpp: 0.9.0 -> 0.10.0 → https://git.io/fxtlH
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxY0U
brejoc has quit [Ping timeout: 252 seconds]
teej has joined #nixos
<sevanspowell> Hi everyone, been asking lots of questions lately :S
<sevanspowell> I currently have an overlay of a bunch of private pkgs and haskellPackages that works great.
<sevanspowell> I want to make my own private package set that uses a specific pin of nixpkgs and overlays my overlay on top.
<sevanspowell> How might I go about doing this?
<ldlework> that's not too hard
<sevanspowell> Ideally I'd be able to access my private package set using `import <mypkgs> {}` and `nix-shell -p`
<ldlework> so
<sevanspowell> ldlework: I have alot of the pieces, but just can't quite make them fit.
<ldlework> see how I'm setting overlays here?
<ldlework> it says stable ++ unstable
<ldlework> stable is just a list of normal pkg overlays
<ldlework> but unstable is actually a pinned nixpkgs
<ldlework> And you'll see that I'm calling the pinned nixpkgs, which allows me to set ~its~ overlays!
<ldlework> in summary, you can have pinned nixpkgs, with their own overlays, AS an attribute on pkgs (like pkgs.unstable.* in this case)
Lears has joined #nixos
<sevanspowell> ldlework: OK great! Thank you. Now I need to distribute this to my team. So from my understanding that default.nix is still an overlay?
<sevanspowell> So I'd distribute it as you do with overlays?
<kalbasit[m]> is it possible for `#! nix-shell` from a specific channel?
[Leary] has quit [Ping timeout: 252 seconds]
<kalbasit[m]> so instead of using `nixpkgs` to resolve derivations, I want to use a different name
<infinisil> kalbasit[m]: nix-shell -p hello -I nixpkgs=channel:nixos-unstable
<ldlework> sevanspowell: hmm i didn't understand the question
<kalbasit[m]> oh! that's awesome, thx infinisil
<samueldr> kalbasit[m]: the arguments parser from nix-shell parses the lines starting with #!\s*nix-shell, so anything goes :)
srid has quit [Quit: Connection closed for inactivity]
<kalbasit[m]> samueldr: that I'm aware of, but somehow I never new about the `channel:<name>` thing :)
<samueldr> oh I see
<kalbasit[m]> samueldr: thx! :)
<sevanspowell> ldlework: Ah so, I would like my team to be able to do something like this: https://gist.github.com/sevanspowell/2a1dc0382074f4c7cfc3d2f204037b8c
<samueldr> (funny known trivia: #! nix-shell lines are not forced to be next to the initial line, but shhh)
<kalbasit[m]> I saw that issue too lol :)
<samueldr> issue?
<kalbasit[m]> I'm getting an error though: warning: Nix search path entry 'channel:publica-platform-nixpkgs' cannot be downloaded, ignoring
<samueldr> it's a feature!
<kalbasit[m]> samueldr: I meant regarding the documentation for it
<samueldr> ah right
<kalbasit[m]> `#! nix-shell -i bash -p docker -I nixpkgs=channel:publica-platform-nixpkgs` gives me `warning: Nix search path entry 'channel:publica-platform-nixpkgs' cannot be downloaded, ignoring`
<infinisil> sevanspowell: I'd go for an overlay that adds a whole nother package set
<samueldr> checking, but IIRC channel: is for nixos.org/channels only
kyren has joined #nixos
<kalbasit[m]> oh :(
<samueldr> you have a tarball?
<infinisil> sevanspowell: So `(import <nixpkgs> {}).mypinnedprivatepackages.haskellPackages.somepackage`
<kalbasit[m]> the channel I'm using is really nixpkgs under the hood but we are a team of linux/macs so I want to pin the nixpkgs revision
<sevanspowell> ldlework: It's just if I force my team to use an overlay with an overriden package set, wouldn't they always be stuck with that package set on their system?
<kalbasit[m]> currently inside shell.nix and direnv
<samueldr> >> You can now use channel:channel-name as a short-hand for https://nixos.org/channels/channel-name/nixexprs.tar.xz. For example, nix-build channel:nixos-15.09 -A hello will build the GNU Hello package from the nixos-15.09 channel. In the future, this may use Git to fetch updates more efficiently.
<kalbasit[m]> but I want it also pinned for the script when they are invoked while direnv is not loaded
<samueldr> (from nix 2.0's release notes)
<kalbasit[m]> I see
<kalbasit[m]> so how can I do the above then?
<infinisil> sevanspowell: Which can be achieved by just installing an overlay like `self: super: { mypinnedprivatepackages = let pkgs = import (fetchTarball "...") {}; in ... }`
<infinisil> ,pinning for more details
<samueldr> kalbasit[m]: if they're published, nixpkgs=https://example.com/publica-platform-nixpkgs/nixeprs.tar.xz (github tarball URLs would work)
<infinisil> sevanspowell: I guess more like `self: super: { mypinnedprivatepackages = import (fetchTarball "...") { overlays = [ <your overlays that add stuff> ]; } }`
<sevanspowell> That's a lot of good information, I'll give it a go and come back if I have any issues. Thank you everyone. Hopefully I'll know enough to actually contribute something at some point.
<kalbasit[m]> samueldr: the problem is that I have a shell.nix (https://gist.github.com/168db1be8ed8446057331b4e894325d4) that imports from a nixpkgs-version.json. I have another script that my team use to install nix and also setup the publica-platform-nixpkgs channel with the rev in nixpkgs-version.json and I want scripts to use whatever nixpkgs revision in nixpkgs-version.json
<kalbasit[m]> but I don't want to maintain tarball logic in every script
<kalbasit[m]> I'd rather have them all use nixpkgs-version.json
<kalbasit[m]> is it possible to do this?
<samueldr> hmm, I believe so, let me test something
<samueldr> if that script is always placed relatively at the same location to shell.nix, it should be easy
<kalbasit[m]> samueldr: yes, always relative to that script
<kalbasit[m]> s/that script/shell.nix/
* kalbasit[m] facepalm
<samueldr> when #! nix-shell is parsed; it assumes the file location is where relative paths are relative to
<samueldr> WAIT
<samueldr> I'm dumb
<samueldr> never tested it
<samueldr> s/dumb/quick triggered
<kalbasit[m]> :)
<samueldr> I did `nix-shell` and not ./test.sh when testing :)
<kalbasit[m]> well the `nix-shell` would work in this case
<kalbasit[m]> but will install everything, not just what I need
<samueldr> yes, it works, as long as you use `type` instead of `which` in that case
<samueldr> right, I see then
<kalbasit[m]> I mean, at the end of the day, it is not a big problem that it pulls everything, but I wish it's possible to do that
<samueldr> just verifying an assumption before making a butt of myself
<kalbasit[m]> maybe `channel:` should also look at the available channels already?
<kalbasit[m]> np
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/11068c62a57 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @magnetophon opened pull request #47889 → FIL-plugins: init at 0.3.0 → https://git.io/fxYuj
jluttine has quit [Ping timeout: 272 seconds]
rhitakorrr has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
jluttine has joined #nixos
<samueldr> kalbasit[m]: having a couple internet issues right now, but I think I have an answer ready
<kalbasit[m]> oh cool!
mayhewluke has joined #nixos
jluttine has quit [Ping timeout: 252 seconds]
mayhewluke has quit [Ping timeout: 244 seconds]
jluttine has joined #nixos
mayhewluke has joined #nixos
<dhess> Sorry, dumb question, but how do I get pyexpat as a Python package?
<kalbasit[m]> dhess: try `nix-shell -p pythonPackages.<tab>`
<kalbasit[m]> it should give you available packages
<dhess> I don't have autocompletion set up
<dhess> oh I do on a NixOS host
<dhess> Unfortunately all that demonstrates is what grepping around in Nixpkgs did, namely that pyexpat isn't there, or has a name I'm not expecting.
<dhess> no pyexpat, no expat
<dhess> Is it really not packaged?
<makefu> dhess: isn't it simply part of the stdlib?
<dhess> yeah seems like it is,
<dhess> it's weird, I have this build script that is failing trying to import it
<dhess> makefu: thanks
<samueldr> kalbasit[m]: maybe you can take inspiration from all that https://gist.github.com/906b93b00224c33756e2b7dc21225143
* samueldr just realized how badly indented this is)
<aanderse> samueldr: sounds like you guys are getting close to calling 18.09?
<samueldr> aanderse most likely this evening I'll send in the changes required to call it stable
<aanderse> samueldr: fantastic! thank you for all the work you guys have put in as release managers :)
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b4d7324678c (from 68 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<kalbasit[m]> samueldr: oh interesting!
<kalbasit[m]> this should work!
<samueldr> kalbasit[m]: while doing something else I had a lightbulb moment, understood what was going on
<samueldr> see how I made it a function (without args, etc)
<samueldr> that's because that "pin.nix" is called like "import <nixpkgs> {...}"
<kalbasit[m]> yea, why is that?
<kalbasit[m]> ohh
<kalbasit[m]> and then it returns the nixpkgs itself
<kalbasit[m]> given I remove the overlays, it should be good right?
<kalbasit[m]> let me give that a try
<{^_^}> [nixpkgs] @Mic92 merged pull request #47829 → appstream-glib: 0.7.12 -> 0.7.13 → https://git.io/fxtCi
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxYgN
<samueldr> yeah, so if you don't want to do anything to the params, your pin.nix can be `import (builitins.fetchTarball {...})` without the parameter to nixpkgs
<samueldr> here's an alternative one that only clobbers overlays https://gist.github.com/af181217e80746144249881dc381da88
<samueldr> (I wanted that overlay to make sure my test.sh was using the expected nixpkgs)
<kalbasit[m]> I will actually make use of the overlays to simplify the shell.nix
jackdk has joined #nixos
sigmundv__ has joined #nixos
matthewbauer has quit [Remote host closed the connection]
freepotion has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/b4d7324678c (from 82 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<kalbasit[m]> samueldr: `#! nix-shell -I nixpkgs=../lib/nix/nixpkgs.nix` and the script itself is inside `bin/`. This gives me an error (not found). Is the relative to the pwd where I'm executing the file, or where the file is or where I cd to before the #! nix-shell?
<samueldr> where the script itself is
<samueldr> but uh, never actually validated with -I
<samueldr> :o
<freepotion> Hey guys! Could you consider merging this PR if everything is okay? https://github.com/NixOS/nixpkgs/pull/47381
<samueldr> with -I it's CWD of the running process, so it's a no-go
<{^_^}> #47381 (by freepotion, 1 week ago, open): boohu: init at 0.10.0
<kalbasit[m]> samueldr: so if I `cd` somewhere else from within the script before I put `#! nix-shell` do you think that would work?
<samueldr> no, it's all run before the script is ran
<kalbasit[m]> oh I see
<kalbasit[m]> :(
<samueldr> nix-shell reads the script to finds all its #! nix-shell bits and bobs, then calls the interpreter with the script
<samueldr> best option is probably to go with a shell.nix file :/
jtojnar has quit [Ping timeout: 268 seconds]
<kalbasit[m]> I see
foldingcookie has joined #nixos
<samueldr> I'm not sure if this should be considered a bug with regards to some other semantics of nix-shell; it probably isn't due to the semantics of NIX_PATH handling elsewhere
<samueldr> it's currently coherent with how NIX_PATH is handled everywhere else (I think), but the not with the "file" semantics with regards to "./" in the path for shell.nix argument
freepotion has quit [Quit: Page closed]