gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<_0mpts> pie__: https://pastebin.com/sQufBZ5d the whole log
<nDuff> (Caveat: I know GRUB moderately well, and UEFI much better than I'd like to, but *don't* know NixOS's management/customization/build/use of either of those things).
<Aleksejs> When I'm in EFI mode I see grub, I choose the last generation, it tries to mount partition, fails, then offers restart or continue. If I choose to continue it just halts
Xyliton has quit [Remote host closed the connection]
<nDuff> okay, so you're getting to the menu == GRUB itself is successfully loading.
<nDuff> Can you drop to the GRUB CLI? I want to say the keypress to do that is "c".
<nDuff> ...though if when you say "tries to mount partition" you mean the *Linux kernel* trying to mount the filesystem, then by that time the bootloader / EFI miscellany has all done its work successfully
<nDuff> and you have a separate problem that's not likely to be bootloader/related.
<ldlework> My current issue with Steam on NixOS is that games don't seem to save their settings.
<Aleksejs> nDuff: I think the problem is with UEFI because windows doesn't start as well
jtojnar has quit [Quit: jtojnar]
<Aleksejs> I cannot boot from live usb in uefi mode as well
<Aleksejs> When I boot in EFI mode I don't see my partitions
<nDuff> I could conceive of hardware failures (f/e) that could have that effect.
<ldlework> "Steam was unable to sync your files for Streets of Rogue with the Steam Cloud"
<nDuff> anyhow, if you're getting stuck in the initrd unable to mount the root filesystem, you can at least check dmesg, probe sysfs for the state of available hardware, etc.
vidbina has quit [Ping timeout: 250 seconds]
Xyliton has joined #nixos
<Xyliton> What could be a reason for MPD refusing to play audio?
Dedalo has joined #nixos
<samueldr> Aleksejs: did you update your bios/uefi/firmware or reset the settings of it?
<samueldr> and what did you mean by "UEFI manager"?
<Aleksejs> samueldr: no I didn't
dermetfan1 has quit [Ping timeout: 245 seconds]
<infinisil> Xyliton: Um, many many things? That's too vague of a question
<Xyliton> infinisil: the problem is I have no idea what is going on either
<Aleksejs> samueldr: I mean the partition used by UEFI
<Xyliton> infinisil: it won't play any audio. when trying to change the volume in a client I get "no mixer"
<Xyliton> I'm pretty sure that it worked a while ago though
<Xyliton> and I didn't change anything in the config regarding mpd
<samueldr> Aleksejs: can you verify in your UEFI settings in what mode the SATA controller is in?
<samueldr> (I'm looking at a past discussion in january 2018)
smove has joined #nixos
<Aleksejs> It's intel rst premium
<samueldr> were you able to boot from nixos while it's set to RST? https://logs.nix.samueldr.com/nixos/2018-01-04#1515029400-1515030765;
<Aleksejs> I'll try to switch to ahci
<samueldr> while you didn't reset the options, maybe *something* made a mess of the UEFI options :/
<samueldr> (I have a laptop here which *loves* to reset its NVRAM seemingly randomly :/)
<Aleksejs> I think I know what it is. I googled that after some recent windows updates it might change this
<Aleksejs> I set it to ahci and I'm able to boot into windows now however Linux UEFI partition is still not visible in BIOS setup
<{^_^}> [nixpkgs] @worldofpeace pushed to master ยซ pythonPackages.update-copyright: disable tests, add homepage ยป: https://git.io/fhIoV
<infinisil> Xyliton: No errors? What have you tried? Can other programs play audio?
Synthetica has quit [Quit: Connection closed for inactivity]
<infinisil> It's hard to help with this little info..
<Aleksejs> But it works now via EFI
<samueldr> Aleksejs: just to be clear, now stage-1 (after grub) works once you switched to AHCI?&
<Aleksejs> samueldr: thanks!
<samueldr> you're welcome, though you did all the hard work earlier this year :)
<Aleksejs> Now I'm able to boot nixos and everything works. But I still don't see "Linux UEFI Manager in boot menu"
<Xyliton> yes. everything else works. only mpd refuses to output.
<Aleksejs> Probably I killed it while trying to repair windows
<samueldr> ah, if it's something that somehow changed nvram things (maybe reset it), it's possible the system's boot menu has been emptied at the same time
<samueldr> it's possible that `sudo nixos-rebuild switch --install-bootloader` might fix that
<samueldr> nixos will not know it needs to touch the UEFI boot options
<Xyliton> infinisil: it looks like mpd is unable to access the music directory because of permission problems
<infinisil> So.. is there an error?
<Xyliton> yes
<Xyliton> `exception: Failed to access /home/paul/Music: Permission denied`
<Xyliton> it isn't a "breaking" error though
<infinisil> No idea what a "breaking" error is supposed to be
<Aleksejs> It printed "Created EFI boot entry Linux Boot Manager"
<Xyliton> the program still starts after displaying that error
<infinisil> Xyliton: But yeah, do you know how to fix permissions?
<Aleksejs> I'll try to enter boot menu again
<Xyliton> infinisil: I'm not sure in what way the permissions are messed up :/
<infinisil> Well the mpd process can't access the directory
sanscoeu_ has joined #nixos
<Aleksejs> samueldr: it helped, thanks!
<samueldr> Aleksejs: ๐ŸŽ‰
<samueldr> Aleksejs: drill this into your subconcious for time (in what, 11.8 months) sata controller cannot be RST :)
<samueldr> for next time*
<samueldr> I know I now write down any weird thing I needed to do in the system firmwares
<Aleksejs> :) I just didn't expect that Windows would try to change that setting or that it updates firmware automatically while installing windows updates
shibboleth has joined #nixos
<infinisil> Xyliton: What are the permissions of that directory?
sanscoeur has quit [Ping timeout: 250 seconds]
<samueldr> Aleksejs: oooh, right, recent windows will do that, update firmwares -_-
<samueldr> annoying at worst if it resets settings
<samueldr> Aleksejs: did it reset the F1-F12 without pressing Fn?
sanscoeu_ has quit [Ping timeout: 244 seconds]
<Xyliton> infinisil: drwxr-xr-x
<Aleksejs> Funny thing - it didn't. Maube because that option is set via windows program
<samueldr> Xyliton: `namei -l` that directory to see if any directory in the hierarch doesn't have read rights
ensyde has joined #nixos
init_6 has joined #nixos
<infinisil> Oh yeah that's probably it, your music directory is in your home, which I think is always reset to have exclusive permissions to your user
m15k has joined #nixos
lokado has quit [Quit: WeeChat 2.3]
<samueldr> (namei is amazing for that)
<infinisil> samueldr: I didn't know about that, pretty neat
erictapen has joined #nixos
<infinisil> Xyliton: Solution: `services.mpd.user = "paul"`
<Xyliton> ohh
<infinisil> Not sure why it worked previously though
<m15k> Hi. I wonder if someone could deliver some input to that issue: https://github.com/NixOS/nixpkgs/issues/43781
<{^_^}> #43781 (by AndrewMorsillo, 23 weeks ago, open): Prebuilt lxc/lxd images of nixos?
<Xyliton> I tried chowning a file for mpd:mpd and from there it could play
<Xyliton> *folder
freeman42x[nix] has quit [Ping timeout: 250 seconds]
<Xyliton> infinisil: using my user gives me an error regarding setting the group not being permitted
<Xyliton> I used "paul" as user and "audio" as group and made sure I'm part of that group
<infinisil> What error and where do you see it
<Xyliton> right after doing the rebuild; from systemd; `fatal_error: Failed to set group 17: Operation not permitted`
<infinisil> In what systemd service, mpd I assume?
<samueldr> m15k: wrote a quick reply
<Xyliton> yea. Setting the group to "users" fixed it
Rusty1 has joined #nixos
<m15k> samueldr: Thanks. Missed that.
<samueldr> m15k: *just* posted it, so there's nothing missed :)
nDuff has quit [Quit: zzz]
<Xyliton> how would I set the visualizerSupport option for ncmpcpp?
<Xyliton> I tried `ncmpcpp.override { visualizerSupport = true;}` but that didn't work
<Xyliton> oh, had to wrap it in `()`
Mr_Keyser_Soze has joined #nixos
<infinisil> Okay Xyliton, you need to ask better questions. Always post the error you get, and there will almost all the time be an error. And also post what steps you took and such. It's really hard to help otherwise
<infinisil> If you posted the syntax error in this case, about 10 people in here would have been able to help immediately
<{^_^}> smart-questions defined
<Xyliton> Oh, sorry
<infinisil> No problem ;)
<infinisil> Sorry for being so direct about it
<Xyliton> don't worry. If you weren't I would wander around asking bad questions :p
<infinisil> Maybe :P
<vaibhavsagar> @elv
niksnut has quit [Ping timeout: 245 seconds]
<vaibhavsagar> elvishjerricco: thanks for the suggestion but `nix show-config` doesn't show the old binary cache
<vaibhavsagar> the machine it was hosted on has been terminated and I can't figure out how to do anything on this laptop because it keeps trying to hit a URL that no longer exists :(
<elvishjerricco> vaibhavsagar: The try just deleting that cache file I mentioned. It's safe to do so
<elvishjerricco> Make sure to delete the journal file as well
<vaibhavsagar> I did!
<vaibhavsagar> it just comes back :(
<elvishjerricco> Oh. Huh
<vaibhavsagar> is this the one at `/root/.cache/nix` or somewhere else?
<elvishjerricco> vaibhavsagar: How often do you restart your computer? Your daemon may not have been restarted since you changed it. Also what OS are you on?
<vaibhavsagar> I'm on NixOS, and I restarted multiple times yesterday trying to fix this :)
<elvishjerricco> vaibhavsagar: The cache files should be the one in your user's home directory, but hitting root is a good idea just to be sure
<vaibhavsagar> I even rebuilt and updated my channel
<vaibhavsagar> there aren't any binary-cache files in my home directory
<vaibhavsagar> aha, when I run `sudo nix show-config` it shows up
<elvishjerricco> Ok.
<vaibhavsagar> but I don't understand how that's different?
eadwu has joined #nixos
Xyliton has quit [Quit: Lost terminal]
<elvishjerricco> vaibhavsagar: Check ~root/.config/nix
<elvishjerricco> vaibhavsagar: Files there can configure nix
eadwu has left #nixos [#nixos]
<vaibhavsagar> bingo
<vaibhavsagar> thank you elvishjerricco!
<elvishjerricco> vaibhavsagar: Sweet :)
<vaibhavsagar> no idea how that file got there in the first place
eadwu has joined #nixos
erictapen has quit [Ping timeout: 246 seconds]
eadwu has quit [Ping timeout: 268 seconds]
shibboleth has quit [Quit: shibboleth]
<infinisil> Hey, a lot of NixOS services use hardcoded uids/gids, what's the reason behind this anyways?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates ยซ hackage-packages.nix: automatic Haskell package set update ยป: https://git.io/fhIKp
<infinisil> ,find ids.nix
vidbina has joined #nixos
<infinisil> A comment in this file at the top by Mic92 says "We only add static uids and gids for services where it is not feasible to change uids/gids on every start, in example a service with a lot of files"
ddellacosta has quit [Remote host closed the connection]
<infinisil> But I know that NixOS uses the stateful /var/lib/nixos/{g,u}id-map to track uids/gids over the lifetime of a system to have them fixed
<infinisil> So, when are these hardcoded ones actually needed?
<samueldr> the configuration might need to build files having the GIDs/UIDs while being in a situation it cannot read the statefule files?
<samueldr> (frankly I don't really know)
<infinisil> Not entirely sure what you mean
<infinisil> I'm thinking maybe it's needed when people reinstall their config onto a new system and only transfer the services folder
<samueldr> possible too I guess
<infinisil> But I think if they do such a (partial) backup restoration, they can also restore /var/lib/nixos
<infinisil> Also, shouldn't this be in the users responsibility to ensure working permissions when they do such a restoration? That's stateful stuff
<infinisil> I feel like there's some really convincing "Aha!" reason somewhere
<samueldr> will nixos/modules/config/update-users-groups.pl properly re-use a uid on a virgin system if it is in uid-map?
<samueldr> looks like it's the only nixos-bit that uses uid-map
<infinisil> I'd think so, assuming /var/lib/nixos is intact
* infinisil checks
<samueldr> a57bcd38b49bfe9d048b12de3c839bc72b298d2e is relatively recent
<infinisil> Ah at the top of it: "# Keep track of deleted uids and gids."
<samueldr> infinisil: I think it's simply "too new"?
kisonecat has joined #nixos
<infinisil> Oh I see, yeah that might be it, maybe the static ids aren't needed anymore with this
<samueldr> though I guess there's something about multiple systems where having the same UIDs GIDs for a given service is good
<infinisil> And the static ids are quite a bit older than that
<samueldr> I mean, other distros also allocate static UIDs and GIDs for known use
<infinisil> Hmm..
<infinisil> Maybe I'll ask around in other distro's too then
<infinisil> I want to know concrete use cases
<samueldr> I'm interested too
<infinisil> samueldr: Do you know which distro's do that?
thc202 has quit [Ping timeout: 246 seconds]
<samueldr> (I can't find a better source for debian)
<samueldr> hmm, even the archlinux one I linked isn't the one I was thinking about
<infinisil> Thanks, that's better than nothing
<infinisil> Okay I'll go to #arch and ask for reasons there
<infinisil> Um, #archlinux
* elvishjerricco follows infinisil, watching this conversation with great interest, having nothing to add
<infinisil> :P
sigmundv_ has joined #nixos
<samueldr> report back with illumination or lack thereof
<Church_> lol
<pie__> avn, ping: I do have some runtime problems: I cant unmount the overlays till the wine has stopped running
<pie__> do you have a solution for that
<Church_> I need to get vagrant set up.
<pie__> and by "wine has stopped running" i mean wineserver and who knows what else gets started
taohansen has quit [Remote host closed the connection]
<infinisil> I'll also ask in #debian
<avn> pie__: I use pam_mount, and unmount all at session shutdown. Also I have reaper script, which finish unfinished processes (if any), and forceful umount dangling mounts (if any)
eadwu has joined #nixos
<pie__> avn, what does using pam_mount bring ot the table for this?
<Church_> Anybody use vagrant?
<pie__> you run things under different users and get automatic mounts or...? im just basing off a quick google
<Church_> Which is easier to use with it on nixos? quemu?
<Church_> Vbox?
<pie__> Church_, afaik nixos has some amount of qemu integration but otherwise ive never used vagrant. until someone that has shows up, have you been able to check the manuals or google yet?
<pie__> avn, i was considering reaper scripts but im not sure yet. Id have to have a good way to keep track of who belongs to who
<Church_> Checked google, nothing specific on it. So guess I'll just go through vagrant docs since I have vbox set up
<pie__> or i could try using somthing like lsof or fuser or what was it
<pie__> Church_, any reason you would need to do anything specific on nixos for it to work?
<pie__> there does seem to be a package for it, have you tried it?
<Church_> pie__: Eh I just remember it being and a half to set up... and I'm thinking of Vbox on debian. Nevermind
<Church_> lol
<pie__> :pp
* Church_ is gonna go do some pentesting
<pie__> good luck in any case
* Church_ has missed that
<Church_> Aye
<pie__> heh. maybe start packaging tools for nixpkgs :P who needs backtrack anyway right? :P
<pie__> or kali or whatsit
<Church_> God Backtrack
<Church_> That takes me back
<pie__> :P
* Church_ remembers Backtrack 4
<Church_> pie__: Going through the list of kali tools and seeing what's in nixpkgs
<Church_> So I can just write a .nix to add them to systemPackages
<avn> pie__: Well, is a question of priorities really. I was need fast and bulletproof solution. 95% of sessions stops clean, but other 5% make some mess, and I need fast and bulletproof cleanup routines, so I just mark sessions as invalid, then process them by cronjob
<pie__> avn, yeah so i will try to find a clean solution and then somehting more forceful maybe
<pie__> my main problem is it feels dirty to kill a process without input from the process or the user (in case the process hung)
<avn> pie__: systemd.TerminateUser() usually clean ;)
<pie__> oh true if they log out from your thing or whatever then yeah that basically means its fine :P unless there needs to be some files saved implicitly or something
<pie__> and im assuming there doesnt
<Ankhers> Is there a way for me to move a nixops deployment to another machine? The nixops files appear to be binary files.
<pie__> avn, it looks like wineserver -w exists, which might be exactly what i want
<avn> pie__: yup, so save first, then logout (or use sustemd shutdown routines if they run (not sure in it))
<avn> pie__: probably wineserver -k is what you want
<Ankhers> Basically I am migrating computers and I don't care to use nixops on computer A anymore, at least for current deployments.
_giskard has quit [Ping timeout: 256 seconds]
<pie__> avn, probably wineserver -w with a timeout somehow, winserver -k, etc with increasing severity
<avn> pie__: but my app have no persistent data, and make a lot of mess in registry and files, so do clean room each time is easiest.
<pie__> yeah that sounds reasonable
m15k has quit [Quit: Page closed]
kisonecat has quit [Ping timeout: 240 seconds]
miaoski_tw has quit [Quit: Connection closed for inactivity]
simukis has quit [Quit: simukis]
<pie__> avn, ok so im mounting an overlay on my prefix, any all the files are still read only, im not sure about the cause
<pie__> is it because the files were originally read only in the original filesystemรŸ
<infinisil> samueldr: Actually yeah, multiple machines wanting to use the same directory is a good reason, thinking some more about it
<infinisil> But I'm thinking maybe that could be solved differently
vidbina has quit [Ping timeout: 250 seconds]
sigmundv_ has quit [Ping timeout: 244 seconds]
<infinisil> I mean, this problem happens with all kinds of directories, not only service directories
<avn> pie__: is a bug (or more probably misimplementation) of unionfs. Is a good way to add +w to all dirs/files which backed by writeable dir.
<infinisil> And the way I would solve this for any directory is to make sure the uids/gids for both machines are the same for the relevant user, then fix the permissions manually once
<avn> pie__: bindfs is your friend
<infinisil> Okay, simple solution, just change the permissions at the service start every time they're wrong!
<infinisil> Yes, it might take a while with a lot of files, but this will happen only very very rarely anyways
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bd98a3d770e (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
msuperdock has joined #nixos
<msuperdock> Hey all, is anyone able/willing to help me get a Brother printer (HL-L2350DW) working on nixos? I can share a handful of things I've tried, but at this point I'm stuck and needing help.
ma9e has quit [Quit: Lost terminal]
<pie__> avn, i uhhhh might try combining with bindf
<pie__> bindfs
<pie__> or just use unionfs proper
<pie__> well the thing is things in the nix store are also owned by root
<pie__> hm
* pie__ goes to try something
<pie__> the problem is if i chown stuff they will probably all get copied to the top level
<pie__> hm but for that i will probably definitely need root..
<eadwu> msuperdock, if you're using CUPS, I'm not seeing a driver for that printer in nixpkgs, so you probably need to create a derivation for it
<msuperdock> The brlaser package doesn't work for me, so I tried downloading the PPD file directly from Brother. They provide .rpm and .deb packages, so I downloaded the .rpm package and extracted the files with rpm2cpio, to get the PPD file. Tried loading the PPD file directly into CUPS, modified it with the paths of the filters it needed, but then got stuck with a CUPS error "Unable to execute pdftocairo for form flattening."
<msuperdock> Thanks eadwu, I'm happy to try creating a derivation (I've done it for a package providing an executable before), but am not really sure where to start for something like this.
<avn> pie__: fix unionfs is a proper solution, but I use bindfs first, and then unionfs
<pie__> avn, ok i just realized you already told me you use bindfs
<avn> pie__: I done working prototype in a week, I believe you cut couple of days ;)
<msuperdock> There's an Arch AUR package for this printer. There's also a nix derivation for a similar printer here: https://github.com/NWuensche/NixDriverBrotherMFC5440CN/blob/master/MFC5440CN.nix
<pie__> avn, ;P HAXXXX
<msuperdock> Alternatively, I would be happy if I could understand why the "Unable to execute pdftocairo for form flattening" error is happening. One of the filters listed in the PPD file seems to be calling pdftocairo and running into trouble. But I do have pdftocairo available on my system and can run it with no problems.
<avn> pie__: I feel fix unionfs is better way, but I always have more-broken-things to fix ;)
<pie__> also, \o/ was sitting next to a dude and we finally got nix to compile on FreeBSD, working on adding to ports and stuff, continuing with that tomorrow, w00t \o/
Church_ has quit [Ping timeout: 246 seconds]
<avn> pie__: do they have sandboxed builds on bsd? Is would be nice to have nixos-on-bsd ;)
kisonecat has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
<eadwu> Found the AUR package, trying to find the download page on Brother's website
<eadwu> Can't say anything about the error since I'm not sure off the top of my head
pie_ has joined #nixos
pie__ has quit [Ping timeout: 268 seconds]
<pie_> we are unsure as to the current status of things, but probably largely unmaintained
<msuperdock> (I should also say that all I did was unpack to a directory in $HOME and modify the PPD file to point to the filter scripts within that directory--I was doing this outside of the nix store, which may have led to the error.)
<eadwu> There's a driver for Brother HL-L2390DW in nixpkgs,
<eadwu> Looking at it, you probably need to do a bit of patching to make it work
<msuperdock> Could you send a link to it?
<infinisil> Haha, I've never seen anybody use this formatting style of Nix: https://github.com/barrucadu/nixfiles/blob/master/hosts/innsmouth.nix#L49
<infinisil> Looks pretty weird
<pie_> bindfs still feels like kind of a hack though
<msuperdock> OK, nice. Can you give me any advice on how to get started? In the past I have loosely followed this (https://nixos.wiki/wiki/Packaging/Binaries), but there I was able to try running the binary, see the error, make an adjustment. Here I'm not sure what to do to test.
<msuperdock> Alternatively I guess I could try just translating the file you linked.
<eadwu> Well, seeing the other derivation, you might want to try using `ldd` and `file` on the executables to see if you need use `patchelf` on anything
<eadwu> For the pdftocairo, you can wrap the executable that needs it while prefixing it with the PATH
<eadwu> Gonna try to patch it, no promises though
<msuperdock> Great, thank you!! I'll be playing with it also.
ddellacosta has joined #nixos
<pie_> clever, avn, i have a horrible alternative idea to my mount hacks: ...which also involves mount hacks. I could have things in the store stored as archives that can preserve permissons, and then mount the archives
<eadwu> The derivation for L2390DW looks like it can be applied to L2350DW
<clever> pie_: lol
<pie_> clever, i mean that in some sense seems better than normal mount hacks, becazse as it stands all write permissions are clobbered?
<pie_> hm, but i would still need to mask the ownership
<Ralith> does anyone have bluetooth file transfers via obex working?
<pie_> i guess overlay+bindfs is inevitable...
<pie_> hmm
<eadwu> msuperdock, try changing the derivation name, src, adjusting the printer name, adding it to all-packages.nix, including it in services.printing.drivers, and configuring CUPS to see if it works
<pie_> im trying to figure out whether i actually need to change the ownership or not
<clever> pie_: you should look into fuse
<clever> pie_: you could make a fuse layer that does whatever you want
<pie_> clever, yeah but thats probably unnecessary
<msuperdock> OK, will do. I agree that the deb packages look very similar.
<clever> like change perms, owners, and add an overlay
<pie_> clever, i do actually have an amazingly horrible unrelated fuse idea :D
<eadwu> msuperdock, my diff in case you need it https://pastebin.com/raw/4jykZet5
<eadwu> Builds locally but can't actually test it
<msuperdock> OK, just finished editing and about to try in my configuration.nix.
eadwu has quit [Quit: WeeChat 2.3]
eadwu has joined #nixos
<samueldr> clever: fun thing I threw together in ~30 minutes with fuse https://stuff.samueldr.com/screenshots/2018/12/20181228223920.png
<samueldr> it takes all known .desktop files from the currently running system and allows them to be mounted somewhere, e.g. /Applications
<pie_> clever, also probably introduce security vulns? :D
<samueldr> (though that's a read-only view)
<clever> samueldr: heh, darwin much? :P
<clever> samueldr: ive done 2.5 things with fuse
<samueldr> much better, clever, that's nixos https://stuff.samueldr.com/screenshots/2018/12/20181228224045.png
<pie_> samueldr, lmao nic
<pie_> nice
<clever> that lets you mount a dir full of .nar files, as a nix store
<pie_> samueldr, you seem to do lots of weird things :D
<samueldr> s/weird/fun/
<clever> samueldr: oh dang, i made the other one a private github repo
<pie_> tru :D
<clever> the one i cant link, is a sqlite backed filesystem
<samueldr> with how easy nixos makes 'em, it's fun to go crazy
<samueldr> when I was an archlinux user, it was simply way too much hassle to use that
<samueldr> nixos doesn't free me from the kernel compilation it requires, but it does free me from having to manage it
<msuperdock> Having a bit of trouble... tried using `services.printing.drivers = [ pkgs.callPackage (import ./brother.nix) ];` where `brother.nix` is the modified derivation, but am getting an error, "cannot coerce a function to a string."
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53017 โ†’ strace: 4.25 -> 4.26 โ†’ https://git.io/fhIBF
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fhIPv
<samueldr> oh, and if one wants to mount their media in /Volumes instead of in /media, well it's not *really* possible, but one can make everything think it is https://gitlab.com/samueldr/nixos-configuration/blob/master/profiles/desktop.nix#L200-223
<clever> msuperdock: lists are weird in nix, that is a list containing a function and whatever was in brother.nix
<eadwu> msuperdock, if I can do stuff off the top of my head, I'm pretty sure it should be (pkgs.callPackage ./brother.nix { })
<samueldr> (going from memory, but udisks has /media hardcoded or something along the lines)
<clever> msuperdock: you want [ (pkgs.callPackage ./brother.nix {}) ]
eadwu has quit [Quit: WeeChat 2.3]
<pie_> clever, unrelated infrastructure idea: run all bash scripting in nixpkgs through shellcheck
<msuperdock> Nice, thanks eadwu & clever, that worked.. should be able to say whether the driver works now in a minute.
<msuperdock> It works!!! Thanks eadwu & clever, I really appreciate it.
<msuperdock> Anything I should do now? I've never contributed to the nixpkgs repo, but am happy to do it if you give me a bit of direction.
ryantrinkle has joined #nixos
<pie_> avn, whats the difference between bindfs and a bind moubnt
<pie_> mount
eadwu has joined #nixos
<eadwu> msuperdock, if you want to contribute it to nixpkgs, you're going to have to make some changes before creating a PR
<avn> pie_: bindfs transforms permission/uids/gids/(probably timestamps, I not sure here)
<avn> pie_: bootstrap issue with shellcheck, it require ghc to builds ;)
<avn> (sleep time for me)
<eadwu> msuperdocker: you should take a look at my diff, the file should be located at pkgs/misc/cups/drivers/hll2350dw-cups/default.nix while you need to add an attr that points to it in all-packages.nix
<msuperdock> OK, will do.
<eadwu> After that it should be pretty much ready
<eadwu> msuperdock: You might also want to take a look at https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md, the commit should probably be called hll2350dw-cups: init at 4.0.0-1
<msuperdock> Yep, looking at that now, thanks.
<pie_> avn, oh i thought you can do the same thign with bind moutns
eadwu has quit [Quit: WeeChat 2.3]
<pie_> avn, good nght
lassulus_ has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.2]
lassulus has quit [Ping timeout: 246 seconds]
lassulus_ is now known as lassulus
jasongrossman has joined #nixos
jasongrossman has quit [Remote host closed the connection]
Anton-Latukha has quit [Quit: Leaving.]
alex`` has quit [Quit: WeeChat 2.3]
kisonecat has quit [Ping timeout: 244 seconds]
pie_ has quit [Ping timeout: 250 seconds]
<siraben> Is there plans to add a torrent download for the ISO?
<siraben> are there*
<samueldr> it probably cannot happen
<siraben> Why not?
<samueldr> the iso is updated every time the channels update
<siraben> Ah
mmlb has quit [Ping timeout: 246 seconds]
<samueldr> at least, if it were to happen, something would need to be figured out here
<samueldr> there are no discrete releases
<samueldr> if you download the 18.09 image today, it's an image "Released on 2018-12-28 07:31:14"
<samueldr> (UTC)
<samueldr> and while I said today, I should have said "now"
<samueldr> it might as well update soon
<siraben> Well the user can always upgrade to the latest version
pie_ has joined #nixos
<DigitalKiwi> arch also has a rolling release but has torrents ;p
mmlb has joined #nixos
<siraben> Exactly, a weekly/month/quarterly torrent would be nice
<pie_> oh "bindfs โ€ mount --bind in user-space"
lokado has joined #nixos
<infinisil> It's not done or anything, but I've started writing some (opinionated) guidlines for NixOS services: https://github.com/infinisil/nixos-services
ryantrinkle has quit [Ping timeout: 250 seconds]
slyfox has quit [Ping timeout: 244 seconds]
slyfox has joined #nixos
<pie_> i just caused something weird https://bpaste.net/show/8ac6d3731d78
<pie_> i think im mixing up some directories... *pokes around*
<pie_> or not. yeah not sure whats going on ther
<pie_> avn, finally ran into something odd :P
<msuperdock> I'm in the process of creating a pull request, and I created my branch from my local version of NixOS (as recommeded here: https://nixos.org/nixpkgs/manual/#submitting-changes-making-patches). Should the base branch be master, or the branch corresponding to my local version?
<pie_> ok the issue is with the fuse user_allow_other or --no-allow-other
<pie_> well thats kind of funky.
<pie_> might be avoidable with fuse overlay mounts
<samueldr> msuperdock: most probably master
<samueldr> you may need to rebase on master if you e.g. started on something based off of release-18.09
drk_lrd_877_ has joined #nixos
<msuperdock> samueldr: OK, that makes sense. Will rebase.
<samueldr> generally, there won't be fixes only for release branches, it'll generally go to master, and if needed, into release-18.09 (for fixes)
<samueldr> new packages are generally never backported (unless a dependency to an update)
<msuperdock> btw, thanks for making the derivation for the Brother printer HL-L2390DW; the pull request is for the HL-L2350DW and it would have been a lot tougher if you hadn't already made yours.
<samueldr> hey
<samueldr> check your print
<samueldr> mine is bad
<msuperdock> What do you mean?
<samueldr> either I don't know how to configure cups (possible) or brother's drivers are bad; whenever I print, it prints as if it was an A4 paper, even if it's a letter paper that's configured
<samueldr> I had to patch some scripts to force it to letter :/
<samueldr> (which makes me regret having contributed the possibly bad driver)
<samueldr> again: it could be me being bad with printers
<msuperdock> oh, strange. I haven't checked carefully enough to tell whether I have the same issue, let me check.
<samueldr> it took me a few prints, but a millimeter-precise print I was doing was getting cut off awkwardly from the page, IIRC
<msuperdock> You are right, mine does the same.
<msuperdock> One strange thing is that originally for me CUPS was putting A4 as the default on the "default options" page. But once I used your derivation, it put letter as the default.
<msuperdock> samueldr: Can you share the script patches?
<samueldr> that's the last line
<samueldr> uh, last link*
<samueldr> the `sed` invocation
<msuperdock> Got it. Is this just a diff between your current config and the one in nixpkgs?
<samueldr> I haven't touched the nixpkgs-one, keeping it as brother made it, so that should be the diff between what's in nixpkgs and what I'm using locally
<msuperdock> OK, great.
<msuperdock> I'll test that change with my printer now. Assuming it fixes the issue for me, what do you recommend I do with the pull request I was about to submit? Scrap it? Submit with/without the extra change?
<samueldr> I really don't know
pie_ has quit [Ping timeout: 250 seconds]
<msuperdock> I guess it is a hacky fix... prevents user from using a4 at all, right?
<samueldr> I don't know either :(
<samueldr> I hate printers :)
<samueldr> printers probably hate me back
<msuperdock> true, I'm with you.
<samueldr> one thing to check would be if the same behaviour happens on the intended distro for the drivers
<msuperdock> Well, the fix worked for me too, for what it's worth.
Rusty1 has quit [Quit: Konversation terminated!]
t[m] has joined #nixos
palo1 has joined #nixos
<msuperdock> samueldr: would it be useful if I file an issue in nixpkgs about the brother printer driver? I could document the a4/letter issue and share my nix derivation for my model, in case someone else comes looking for it. Let me know if you think that makes sense.
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
<samueldr> msuperdock: it can't hurt I guess
tzemanovic has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 250 seconds]
itscaleb has joined #nixos
tzemanovic has quit [Ping timeout: 244 seconds]
ensyde has quit [Ping timeout: 268 seconds]
lokado has quit [Quit: WeeChat 2.3]
endformationage has quit [Quit: WeeChat 2.3]
msuperdock has quit [Quit: Page closed]
phreedom__ has quit [Remote host closed the connection]
phreedom has joined #nixos
orivej has joined #nixos
ddellacosta has quit [Remote host closed the connection]
smolboye has quit [Ping timeout: 268 seconds]
smolboye has joined #nixos
Lears has joined #nixos
Lear has joined #nixos
[Leary] has quit [Ping timeout: 250 seconds]
Lears has quit [Ping timeout: 250 seconds]
pointfourone has joined #nixos
pointfourone has quit [Client Quit]
hpoussin has joined #nixos
pie_ has joined #nixos
niksnut has joined #nixos
justanotheruser has joined #nixos
justan0theruser has joined #nixos
justanotheruser has quit [Ping timeout: 252 seconds]
lokado has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #53028 โ†’ gcc-4.8: fixup cross compilation after merging #15867 for 18.09 โ†’ https://git.io/fhIMX
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #53029 โ†’ lib: Fix Mingw on 32-bit ARM โ†’ https://git.io/fhIMy
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
markus1189 has quit [Remote host closed the connection]
jmeredith has quit [Quit: Connection closed for inactivity]
psy3497 has joined #nixos
<psy3497> Hello! Anyone knows how long build outputs remain in Hydra's binary cache? If I were to the latest nixpkgs today, how many days until I'll have to do a lot of recompilation myself?
<psy3497> Is there a determined amount or it varies so much that it doesn't make sense to even ask?
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon3 is now known as Mateon1
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 244 seconds]
makefu has quit [Ping timeout: 250 seconds]
shpx has joined #nixos
makefu has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<elvishjerricco> psy3497: I have no idea, to be honest. But nixos-15.09 still provides the `hello` package from the binary cache. I'm assuming this stuff is pretty darn long term
dermetfan1 has joined #nixos
shpx has quit [Ping timeout: 246 seconds]
<psy3497> elvishjerricco: I see! thanks for that!
<psy3497> Was anyone successful in installing dropbox recently? when it opens the browser and I log in to link the account it tells me the cilent is too olld.
<psy3497> But I can't seem to upgrade the link without linking an account first.
<wedens> is it possible to somehow pass a value of a nix expression to xmonad configuration?
<psy3497> I can change the version in dropbox's nix expression, but I don't want to maintain a separate nix expression for dropbox for that. How do other people install Dropbox without changing the nix expression in nixpkgs?
<elvishjerricco> wedens: It's possible to create the Haskell file from Nix. But more conventionally, you'd make a config file with Nix and have the Haskell file read that with aeson or something
Ridout has quit [Quit: Lost terminal]
<wedens> the later makes sense. thanks
ggarek has joined #nixos
psy3497 has quit [Ping timeout: 250 seconds]
ottidmes has joined #nixos
cyphase has quit [Ping timeout: 244 seconds]
init_6 has quit [Ping timeout: 240 seconds]
<wedens> btw, how can I edit xmonad configuration with dante/HIE in emacs? I'm pretty sure it's possible to share packages between nix configuration and nix-shell, but It'd b nice to see an example
ambro718 has joined #nixos
lawlesseel has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @wkpatrick opened pull request #53030 โ†’ synapse-bt 2018-06-04 -> 2018-10-17 โ†’ https://git.io/fhIy4
<wedens> I use home-manager to set up xmonad, if it makes any difference
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @netixx opened pull request #53032 โ†’ openvswitch: 2.5.4 -> 2.9.2 โ†’ https://git.io/fhIyy
ggarek has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @netixx opened pull request #53033 โ†’ openvswitch: better integration with systemd โ†’ https://git.io/fhIyN
<{^_^}> [nixpkgs] @netixx closed pull request #35127 โ†’ nixos/openvswitch : upgrade 2.5.4 -> 2.9.2 and vlans โ†’ https://git.io/vA8Wg
rprije has joined #nixos
cyphase has joined #nixos
lawlesseel has joined #nixos
LysergicDreams has quit [Ping timeout: 245 seconds]
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed to master ยซ haskell packages: RSA test suite doesn't compile on GHC 8.6 ยป: https://git.io/fhIS4
tzemanovic has quit [Remote host closed the connection]
jomik has joined #nixos
arjen-jonathan has joined #nixos
jomik has quit [Client Quit]
jomik has joined #nixos
LysergicDreams has quit [Ping timeout: 250 seconds]
tzemanovic has joined #nixos
Lears has joined #nixos
Lear has quit [Read error: No route to host]
LysergicDreams has joined #nixos
alex`` has joined #nixos
rprije has quit [Ping timeout: 244 seconds]
[Leary] has joined #nixos
Lears has quit [Read error: No route to host]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
thc202 has joined #nixos
orivej has joined #nixos
<jomik> What is a dag entry? :O
jtojnar has joined #nixos
hotfuzz_ has joined #nixos
<lokado> virtualbox with guestaddition in the nixos-unstable channel broken?
miaoski_tw has joined #nixos
simukis has joined #nixos
iyzsong has joined #nixos
pie_ has quit [Ping timeout: 268 seconds]
hotfuzz has quit [Ping timeout: 268 seconds]
vidbina has joined #nixos
rain1 has joined #nixos
rain2 has quit [Ping timeout: 245 seconds]
owickstrom has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #52959 โ†’ dockerTools.example.runAsRootParentImage: init โ†’ https://git.io/fhkq6
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fhI9i
<jomik> OH.... It is literally a DAG... Okay.. Lol XD
<jomik> tilpner: Thanks!
glebiuskv has joined #nixos
<glebiuskv> Hi! I have a problem with xfce + whisker menu.
lawlesseel has quit [Ping timeout: 256 seconds]
vidbina has quit [Ping timeout: 250 seconds]
<glebiuskv> When i add this widget to panel it is not visible/
<glebiuskv> When i add this widget to panel it is not visible.
<jomik> I don't get how infinisil uses the `exec` attribute here https://github.com/Infinisil/system/blob/master/config/emacs/module.nix#L46
<jomik> Shamelessly pinging him :D
<{^_^}> [nixpkgs] @FRidh merged pull request #52978 โ†’ wget: 1.20 -> 1.20.1 (CVE-2018-20483) โ†’ https://git.io/fhk85
<{^_^}> [nixpkgs] @FRidh pushed commit from @delroth to master ยซ wget: 1.20 -> 1.20.1 (CVE-2018-20483) ยป: https://git.io/fhI9H
<{^_^}> [nixpkgs] @FRidh closed pull request #53019 โ†’ wget: 1.20 -> 1.20.1 โ†’ https://git.io/fhIRq
<jomik> I just don't see anywhere where he refers to it. So it seems like he just gets this script in his store..
<tilpner> jomik: Line 103
<jomik> Yeah, he propagates it out.
<jomik> But nowhere else is it referred to.
<jomik> He refers to the `emacs` attribute elsewhere.
freeman42x[nix] has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #52997 โ†’ tup: 0.7.5 -> 0.7.8 โ†’ https://git.io/fhkHO
<{^_^}> [nixpkgs] @FRidh pushed commit from Dmitry Bogatov to master ยซ tup: 0.7.5 -> 0.7.8 ยป: https://git.io/fhI9x
vidbina has joined #nixos
<mupf> For some reason I ran into this problem again after updating my system: https://paste.ubuntu.com/p/4ShsBFdfhn/ any idea?
<{^_^}> [nixpkgs] @FRidh merged pull request #52813 โ†’ python37Packages.aioamqp: 0.11.0 -> 0.12.0 โ†’ https://git.io/fhUyv
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master ยซ python37Packages.aioamqp: 0.11.0 -> 0.12.0 ยป: https://git.io/fhI9j
glebiuskv has quit [Quit: Page closed]
<tilpner> jomik: infinisil doesn't have to use it, perhaps it's a left-over from another approach
<tilpner> jomik: All exec does is start emacs with initFile. But https://github.com/Infinisil/system/blob/master/config/new-modules/emacs/default.nix#L27 makes that unnecessary
<jomik> That's true. I just noticed that he has a folder called new-modules, where he creates a init.el at the standard location, so that is probably the cse :D
<jomik> Yeah, thanks :)
<jomik> I like his method here, it looks neato.
* jomik steals
glebiuskv has joined #nixos
glebiuskv has quit [Client Quit]
glebiuskv has joined #nixos
glebiuskv has quit [Remote host closed the connection]
alex`` has quit [Quit: WeeChat 2.3]
rfold has joined #nixos
immae has quit [Ping timeout: 246 seconds]
hotfuzz_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jtojnar merged pull request #53016 โ†’ gnome3.gvfs: Add TLS support โ†’ https://git.io/fhIno
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fhIHt
hotfuzz_ has joined #nixos
immae has joined #nixos
<{^_^}> [nixpkgs] @couchemar opened pull request #53034 โ†’ gitAndTools.hub: 2.6.1 -> 2.7.0 โ†’ https://git.io/fhIHZ
<chris|> I am trying to build an overlay to an existing derivation that needs to pull in a second input (git) and replace certain files in the result of the overlayed derivation. Is that even possible at all?
hotfuzz has joined #nixos
hotfuzz_ has quit [Ping timeout: 268 seconds]
travelion has joined #nixos
<jomik> Is there a nice way for me to merge options and config from a set or
<jomik> Is there a nice way for me to merge options and config from a set of modules, into my module, without the modules I am merging in having to specify "config.programs.emacs" etc.
<jomik> Kind of what imports does in the root, just for a "sub-attribute set", such that I can essentially take "config" from the imported set, and add it to my "config.programs.emacs"
<jomik> Same for options.
<jomik> I guess I should see if I couldn't find a nicer way to extend the emacs options/config though, just figured it would be easy to simply import everything in a folder.
lawlesseel has joined #nixos
<jomik> Can I not do `import "${.modules}/${name}" {}` ?
<jomik> It says that value was a string while a set was expected..
<tilpner> You have an attrset? So servics.emacs = your-attrset;?
<jomik> This is what I currently have https://git.io/fhIQt
<jomik> But yes.
lawlesseel has quit [Ping timeout: 256 seconds]
philippD has joined #nixos
lawlesseel has joined #nixos
b has joined #nixos
bagus has joined #nixos
<jomik> Pretty certain it is the import that gives an error, because I am passing it a string.
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jomik> But neither builtins.toPath or builtins.toFile works.
philippD has joined #nixos
<jomik> `import (./modules + "/${name}") { inherit lib config pkgs; }` doesnt work either.
bagus has quit [Remote host closed the connection]
philippD has quit [Client Quit]
<{^_^}> [nixpkgs] @adisbladis merged pull request #53022 โ†’ fish: 2.7.1 -> 3.0.0 โ†’ https://git.io/fhIzb
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fhIQ6
bagus has joined #nixos
kim0 has joined #nixos
fusion809 has quit [Remote host closed the connection]
hpoussin has quit [Ping timeout: 252 seconds]
<infinisil> jomik: tilpner: Am here now :)
<{^_^}> [nixpkgs] @BenBals opened pull request #53036 โ†’ udev rules to support U2F security keys โ†’ https://git.io/fhIQF
<jomik> infinisil: I like your emacs setup. The nix stuff I mean!
alex`` has joined #nixos
<jomik> I am trying to generalize it a bit so that we can PR it into Home-Manager.
<jomik> Thus, I'd like to be able to add these modules, the same way you do, by importing your folder.
<jomik> While, also exposing an attribute that the user can set, and we do the same with that.
<infinisil> jomik: The exec attribute is such that I can do `nix-build -A exec` and then `result/bin/myemacs` to run an emacs with the config
<jomik> (Though, I don't think the user can set stuff that should be imported, in an option, and then use options by that import :(
<jomik> OH!
<infinisil> This way I don't need to build the whole NixOS/HM configuration and can test emacs very fast
<jomik> Clever!
<Orbstheorem> Hello!, any thoughts on why hie is not in haskellPackages?
<jomik> Will have to add that.
<infinisil> jomik: I see. I actually haven't used this emacs module stuff too much, but that's just because I haven't needed to configure emacs often
<jomik> I am just switching back to emacs, so... I'll do all my configuration there :P
<jomik> I think it'd be neat if we can make some default modules..
<infinisil> jomik: One problem with the approach I'm using is: These configuration snippets every module can add can be dependent on each other and stuff
<jomik> Though, I realize, I probably shouldn't actually import it. I should just sort of take a list of pacakge.
<jomik> Yeah, I was pondering that too.
<infinisil> And you'd need to test emacs with all kinds of combinations of those to make sure that the dependencies are correct, which seems like a pain
<jomik> But can't you get around that, by splitting it up? So that you have 2 modules, each isolated, and then anothere module, that just depends on the two you made.
<infinisil> Otherwise you end up like me, just enabling all of them
philippD has joined #nixos
<jomik> I think I got an idea now ! :D
orivej has quit [Ping timeout: 250 seconds]
<jomik> If we want a PR for HM though, I'd need to make a way to disable nix handling the init file tho
<infinisil> jomik: An example is evil stuff: I want vim configuration for all kinds of things, so if emacs.evil = true; I might want to change the configuration for emacs.haskell.true too (by changing some key bindings). With the module system you can do that (by just referring to config.emacs.haskell.enable), but then you have 2 config paths and you'll only test one of them realistically
philippD has quit [Client Quit]
<jomik> Well, I guess I would just make "packages" instead, and they take an attribute for customization.
<infinisil> How do you mean?
<jomik> Well, sort of just like how extraPackages work.
<jomik> Because, we can't easily allow the user to add modules.
<{^_^}> #34447 (by Infinisil, 47 weeks ago, closed): haskell-ide-engine broken
kisik21 has quit [Ping timeout: 272 seconds]
<infinisil> Orbstheorem: I think there's plans to eventually have hie in hackage too, which means it would automatically end up in hackagePackages
<infinisil> jomik: What extraPackages?
hotfuzz has quit [Ping timeout: 250 seconds]
kisik21 has joined #nixos
<jomik> From home-manager. But, nvm. I think my explanation is... way off.. I was distracted by my daughter waking up :)
hotfuzz has joined #nixos
<jomik> What do you realistically want to depend on though? Evil makes sense. It should change a lot of things - sort of like how spacemacs does it
vidbina has quit [Ping timeout: 268 seconds]
<infinisil> Hmm yeah there might be only a couple of those
<infinisil> My dream is of course to encode every known fix/tweak/preference for any combination of packages into such a Nix based module system
<jomik> home-manager has "extraPackages" for adding packages to emacs. Similarly for overrides.
kisik21 has quit [Ping timeout: 250 seconds]
eadwu has joined #nixos
<infinisil> jomik: But what do you mean with an "attribute for configuration"? Where would that go? With the module system you usually want to create options instead
freeman42x[nix] has quit [Ping timeout: 272 seconds]
<jomik> Yeah, you are right. I think I will just replicate your setup.
rfold has quit [Ping timeout: 245 seconds]
<jomik> Users will just add to init if they need to add a package.
<infinisil> jomik: Not sure how init would work, since that's exclusively for the init file. You didn't mean the packages option?
<jomik> Sorry, no. I mean that they will just have to set programs.emacs.extraPackages and programs.emacs.init :D
<infinisil> Ah you mean extraPackages because it exists already instead of `packages`?
<jomik> Still have the issue with importing files in my modules dir.. https://gist.github.com/Jomik/35786fa81ced8ee4209d752a57d57740#file-default-nix-L27
<jomik> Yes
<jomik> I would prefer just specifying options and config properties, instead of options.programs.emacs and config.programs.emacs.
<jomik> So minor though.
vidbina has joined #nixos
<{^_^}> [hydra] @Ma27 opened pull request #629 โ†’ hydra-eval-jobs: fix maintainer resolution โ†’ https://git.io/fhI7g
<infinisil> If only submodules would work with imports..
<infinisil> I've tried to add support for that before but didn't succeed entirely
periklis has joined #nixos
<jomik> Yeah . that's what I wanted
orivej has joined #nixos
kisonecat has joined #nixos
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
<infinisil> jomik: One thing that should probably be changed in my emacs thing: The `pkgs` phase should be in front of all other phases in any case. This way there's no need to do `dag.entryAfter [ "pkgs" ]` almost everywhere
<jomik> I figured I'd just actually have that string literal there
<jomik> and then append the dag from init after
<infinisil> Actually since most phases don't depend on each other, you can just use strings directly (they'll get converted to dag.entryAnywhere)
<jomik> Ah, yah. It's just important that they are behind pkgs.
<infinisil> Yea
<{^_^}> [nixpkgs] @timokau opened pull request #53037 โ†’ gap: 4r8p10 -> 4.10.0 โ†’ https://git.io/fhI7S
<jomik> So yah, figured I'd do that literally, ouotside the dag
<infinisil> Ah yeah exactly
<ottidmes> infinisil: about submodules not working with imports, what was the exact problem again?
<infinisil> ottidmes: There's multiple problems, fixing one gets you to the next
<infinisil> The first one is that everything set in a submodule gets put into a `config` entry
<infinisil> You can fix that by either using `foo.submoduleoption = { ... }: { imports = [ ... ]; }` or fixing the check
bagus has quit [Ping timeout: 252 seconds]
<ottidmes> infinisil: so the normal behavior of top-level modules with config/options/etc does not apply they all get put in config = ...?
<infinisil> Yea
<infinisil> I can't remember the next problem
<infinisil> What I'm ultimately hoping to achieve is being able to use NixOS imports in submodules
<ottidmes> so basically make them behave like any other module?
<infinisil> Yeah
<ottidmes> but scoped
<infinisil> Oh another problem somewhere along the line is that when you have e.g. `fileSystems."/".options = [ ... ];`, there's no way to know whether you want to declare new options or assign to the `options` option, because everything implicitly got put into `config` previously
<infinisil> I might give this another go today
<infinisil> Well maybe not today
<infinisil> But soon
<ottidmes> the trick you do with emacs, is that not basically what you want to achieve for submodules?
<infinisil> Not sure what you mean
kisonecat has quit [Ping timeout: 268 seconds]
rfold has joined #nixos
kp__ has joined #nixos
<{^_^}> [nixpkgs] @CrazedProgrammer opened pull request #53038 โ†’ riko4: init at 0.1.0 โ†’ https://git.io/fhI5o
philippD has joined #nixos
jomik has quit [Ping timeout: 250 seconds]
philippD has quit [Client Quit]
toppler has quit [Remote host closed the connection]
toppler has joined #nixos
philippD has joined #nixos
jomik has joined #nixos
philippD has quit [Client Quit]
lokado has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @timokau opened pull request #53039 โ†’ python.pkgs.cysignals: 1.8.0 -> 1.8.1 โ†’ https://git.io/fhI5A
<ottidmes> infinisil: I meant if you want submodules to behave exactly like modules, except be in their own namespace, it is kind of like what you did with emacs, calling evalModules for the submodules, but it's probably more complicated than that
<{^_^}> [nixpkgs] @gebner closed pull request #52780 โ†’ python37Packages.shippai: 0.2.4 -> 0.3.0 โ†’ https://git.io/fhUzc
iyzsong has quit [Ping timeout: 252 seconds]
<wedens> I'm haveing a difficulty in understanding the difference between `import` and `imports`
<tilpner> wedens: import is part of the Nix language, imports is part of the nixpkgs module system
<wedens> `imports` seems to be more like "include" and `import` is a function call?
<tilpner> import reads a Nix file and returns the expression contained within
<tilpner> imports is a list of modules to also consider in this evaluation
<wedens> and `imports` merges it with the current scope?
<wedens> why I can't `import` something that has `imports`?
<tilpner> Something that has "imports" is likely a module. Modules are functions, which can be "import"ed
lawlesseel has quit [Ping timeout: 256 seconds]
<tilpner> However, after you imported these modules, you can't just pass your config, pkgs, etc. to them and expect everything to work
<tilpner> It's better to let the module evaluator from nixpkgs lib evaluate modules
<tilpner> ,find modules.nix
jomik has quit [Ping timeout: 268 seconds]
<wedens> when I try to `import` a module I get something like `error: The option `x.imports' defined in `/etc/nixos/configuration.nix' does not exist.`
<tilpner> You generally don't want to "import" a module
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #53037 โ†’ gap: 4r8p10 -> 4.10.0 โ†’ https://git.io/fhI7S
<{^_^}> [nixpkgs] @timokau pushed to master ยซ gap: 4r8p10 -> 4.10.0 (#53037) ยป: https://git.io/fhIdl
<wedens> parameters in modules are inherited, right?
owickstrom has quit [Quit: Leaving]
jomik has joined #nixos
<{^_^}> [nixpkgs] @FRidh reopened pull request #52780 โ†’ python37Packages.shippai: 0.2.4 -> 0.3.0 โ†’ https://git.io/fhUzc
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #52916 โ†’ capstone: 3.0.5 -> 4.0 โ†’ https://git.io/fhT8X
<{^_^}> [nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/fhIdB
lawlesseel has joined #nixos
lawlesseel has quit [Remote host closed the connection]
Delf has left #nixos [#nixos]
<ottidmes> wedens: when you import a module via Nix import you just get back a Nix value, NixOS modules are implemented in Nix, and not as part of the language. The imports attribute of a module is part of the NixOS modules implementation, so there they will be interpreted as NixOS modules
ddellacosta has quit [Ping timeout: 250 seconds]
<ottidmes> wedens: that imports implementation in turn calls import (Nix language feature) on paths: https://github.com/NixOS/nixpkgs/blob/master/lib/modules.nix#L109
<wedens> home-manager implements its own module system simillar to nixos one?
<Church-> Huh yeah that makes sense.
<ottidmes> wedens: it does not AFAIK: https://github.com/rycee/home-manager/blob/6aa44d62ad6526177a8c1f1babe1646c06738614/modules/default.nix#L22 lib.evalModules is what is used by NixOS as well
<ottidmes> wedens: but it is a different scope
<{^_^}> [nixpkgs] @timokau merged pull request #51039 โ†’ sage: 8.4 -> 8.5 โ†’ https://git.io/fpEsP
<{^_^}> [nixpkgs] @timokau pushed 16 commits to master: https://git.io/fhIFk
<ottidmes> wedens: could you elaborate "parameters in modules are inherited", do you mean the attrset passed to modules, i.e. { config, pkgs, ... }: ? if so, what you mean inherited in that context?
<{^_^}> [nixpkgs] @timokau merged pull request #53039 โ†’ python.pkgs.cysignals: 1.8.0 -> 1.8.1 โ†’ https://git.io/fhI5A
<{^_^}> [nixpkgs] @timokau pushed to master ยซ python.pkgs.cysignals: 1.8.0 -> 1.8.1 (#53039) ยป: https://git.io/fhIFq
<wedens> ottidmes: yeah. "attrset" is the word. is it inherited from the current module?
<ottidmes> wedens: they are determined in this line: https://github.com/NixOS/nixpkgs/blob/master/lib/modules.nix#L163 hence you can set your own via config._module.args.name = value;
periklis has quit [Ping timeout: 250 seconds]
cnidario has joined #nixos
<ottidmes> wedens: the function f here https://github.com/NixOS/nixpkgs/blob/master/lib/modules.nix#L158 corresponds with the module function { config, pkgs, ... } where the attr names "config" and "pkgs" are extracted from the function to prevent making its evaluation to strict (implementation detail, dont worry about it), and they are then looked up in the previous line I linked to, i.e. config._module.args and the
<ottidmes> args defined here (config, options, lib, and what is passed as specialArgs) https://github.com/NixOS/nixpkgs/blob/master/lib/modules.nix#L158
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzzโ€ฆ]
<{^_^}> [nixpkgs] @dywedir merged pull request #53030 โ†’ synapse-bt 2018-06-04 -> 2018-10-17 โ†’ https://git.io/fhIy4
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fhIFB
<wedens> ottidmes: `config._module.args` is like "implicit" parameter passing?
<wedens> attributes that are not defined in the signature
kp__ has quit [Quit: WeeChat 2.3]
kp__ has joined #nixos
<ottidmes> wedens: more like you can conceptually see it as if the module with the following attribute set: config._module.args // { inherit config options lib; } // specialArgs
<ottidmes> wedens: is called with, I mean
<jomik> infinisil: https://git.io/fhIFX :D
<jomik> Naive theme!
<wedens> ottidmes: where `config._module.args` is a mutable variable within the module? (sorry for my bad non-nix vocabulary) is module like a function with a state?
<infinisil> jomik: Hehe neat
<jomik> I thought at least. LOL. I celebrated too soon. It doesn't actually load the theme xD
<{^_^}> [nixpkgs] @gebner opened pull request #53040 โ†’ vdirsyncer: 0.17.0a3 -> 2018-08-05 โ†’ https://git.io/fhIF7
<jomik> Oh... Wait... My bad, I probably used the wrong emacs...
<jomik> Had to do ... `result/home-path/bin/emacs -q -l result/home-files/.emacs.d/init.el`
<ottidmes> wedens: no, not mutable, its like any other config option in NixOS. I can imagine it being a bit confusing, but your configurations (i.e. NixOS modules) can also determine the parameters being passed to them, but of course you have to be very careful not to end up with infinite recursion. _module is just like any NixOS module as you can see here:
<wedens> ottidmes: ah, `config` is both an attribute and it defines other attributes passed to the module
jmeredith has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout opened pull request #53041 โ†’ Add nixos cpufreq max min options โ†’ https://git.io/fhIFh
fusion809 has joined #nixos
<ottidmes> wedens: config the argument being passed to modules is the end result, and config defined in a NixOS module is just the bit that that particular modules is contributing the the config value as a whole. There are many ways to define a NixOS module, see here for more info: https://nixos.wiki/wiki/NixOS_Modules
<{^_^}> [nixpkgs] @exi opened pull request #53042 โ†’ wireguard-tools Add proper dependencies โ†’ https://git.io/fhIbk
<wedens> ottidmes: it's called "nixos module", but if it's available to home-manager, it's not nixos-specific, right?
MichaelRaskin has joined #nixos
<ottidmes> wedens: its a bunch of library functions that define a module system that is used to define what modules are in NixOS. They are created for that purpose, but there is nothing inherently NixOS specific to them, that is why home-manager can leverage them too.
freeman42x[nix] has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
jomik has joined #nixos
<{^_^}> [nixpkgs] @exi opened pull request #53043 โ†’ nixos/modules/networking/wg-quick Add wg-quick options support โ†’ https://git.io/fhIbC
jomik has quit [Client Quit]
jomik has joined #nixos
<jomik> infinisil: Curious, why are you setting direnv-mode in 'theme' ?
<{^_^}> [nixpkgs] @Infinisil pushed to revert-48844-svc/ddclient ยซ Revert "nixos/ddclient: make RuntimeDirectory and configFile private" ยป: https://git.io/fhIb8
<{^_^}> [nixpkgs] @Infinisil opened pull request #53045 โ†’ Revert "nixos/ddclient: make RuntimeDirectory and configFile private" โ†’ https://git.io/fhIbu
<infinisil> jomik: Probably just laziness haha
<{^_^}> [nixpkgs] @FRidh opened pull request #53046 โ†’ Declarative wrappers โ†’ https://git.io/fhIbg
<jomik> Damn! :D
<jomik> Lol
<jomik> So, you should just move it like... 5 lines down xD
<infinisil> Yeah, I haven't spent too much time configuring emacs
<infinisil> Ah yeah
<infinisil> :P
<wedens> ottidmes: thanks. now I have better understanding of how modules work :)
<{^_^}> [nixpkgs] @Infinisil merged pull request #53045 โ†’ Revert "nixos/ddclient: make RuntimeDirectory and configFile private" โ†’ https://git.io/fhIbu
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhIba
<{^_^}> [nixpkgs] @Infinisil pushed 0 commits to revert-48844-svc/ddclient: https://git.io/fhIbr
<Church-> wedens: Writing a module?
<wedens> Church-: refactoring my home-manager configuration
<wedens> by splitting it into modules
<Church-> Ah fun
<Church-> wedens: Definitely post when done. I want to see that
<Ankhers> Is there a way for me to "migrate" nixops deployments to a new deployment machine? I'm changing computers/OS and no longer need to use the old one, but I would rather not destroy the currently deployd machines and star over.
<wedens> Church-: I'm copying what this (https://github.com/rvolosatovs/infrastructure/tree/master/home) guy does :) At least now I have a better understanding of what's happening
<Church-> Cool
<Ankhers> Also, if anyone has access to the nixops GH, there is a typo in the digitalocean topic tag.
<chris|> Is there an easy way to plug ccache into derivation builds?
kp__ has quit [Quit: WeeChat 2.3]
<simpson> chris|: Not really. Which package are you building?
<chris|> firefox
kp__ has joined #nixos
<chris|> actually, I have an overlay that defines a postFixup phase
<chris|> and I did not set buildCores correctly... );
oida has quit [Remote host closed the connection]
oida has joined #nixos
bagus has joined #nixos
<infinisil> Ankhers: Just restore the deployments.nixops file
<Ankhers> infinisil: Restore as in just move it to the new machine?
<infinisil> Yeah, that's where the nixops state is stored
<Ankhers> Thanks. I just wasn't sure if there was more to it. I'll give that a go shortly.
<jomik> I have very mixed results using --show-trace. Sometimes it tells me stuff, often it just does nothing...
<jomik> I get the error "value is a list while a set was expected", from nixos/lib/options.nix line 123.
<jomik> Happens when I enable evil.
<jomik> And I have noooo clue why :D
endformationage has joined #nixos
bagus has quit [Ping timeout: 252 seconds]
<jomik> Huh okay. So when I have two modules enabled it gets mad, is why..? XD
bagus has joined #nixos
eadwu has quit [Quit: WeeChat 2.3]
<jomik> Anyone have any idea why I get this error? Here is my current home-manager setup: https://github.com/Jomik/dotfiles/blob/emacs/.config/nixpkgs/programs/emacs/modules/evil.nix
<jomik> It happens when I enable both my theme.nix and my evil.nix module. Thus I believe it may be due to some import thingy..?
<jomik> Exact error message is `error: value is a list while a set was expected, at /nix/store/hy6xy3w8p628ai84kph1grj49m4aznkp-nixos-18.09.1806.928ff62213b/nixos/lib/options.nix:123:23`
<infinisil> Debugging Nix is a pain tbh..
<jomik> Especially because it wont show a trace. So I have no clue when it happens.
<{^_^}> [nixpkgs] @bgamari opened pull request #53047 โ†’ nextpnr: 2018.10.17 -> 2018.12.29 โ†’ https://git.io/fhINj
<Church-> NixOS: It's Gentoo but worse.
<wedens> jomik: how do you enable them? just `imports = [ ./theme.nix ./evil.nix];` ?
<infinisil> jomik: Can you paste other relevant files too? I don't see anything wrong with evil.nix
<{^_^}> [nixpkgs] @bgamari opened pull request #53048 โ†’ WIP: gitlab-runner: Allow reload instead of restart on configuration change โ†’ https://git.io/fhIAv
<jomik> These are the relevant parts, I think.
<jomik> So, essentially that, wedens :D
<jomik> I am going AFK to walk the dogs, get some air, maybe my brain suddenly comes up with a reason :D
orivej has joined #nixos
cyounkins has joined #nixos
<ghostyy> how do i get opengl to work in a nixos container?
<ghostyy> i have hardware.opengl.enable = true; and services.xserver.videoDrivers = ["nvidia"]; but when i do glxinfo inside the container it says libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast Error: couldn't find RGB GLX visual or fbconfig
<ghostyy> i also dont have /run/opengl-drivers
cyounkins has quit [Ping timeout: 250 seconds]
<ghostyy> oh, turns out i had to restart the container
<ghostyy> and not just do a rebuild
<{^_^}> [nixpkgs] @Lucus16 opened pull request #53049 โ†’ quassel: 0.12.5 -> 0.13.0 โ†’ https://git.io/fhIA0
fusion809 has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 260 seconds]
eadwu has joined #nixos
shazow has joined #nixos
alex`` has quit [Quit: WeeChat 2.3]
lokado has joined #nixos
vidbina has joined #nixos
<shazow> Hi there, I'm trying to install NixOS to another partition from within Arch Linux. When running nixos-install --root /mnt/nixroot, I get "error: while setting up the build environment: getting attributes of path '': No such file or directory" - any suggestions for how to debug where the '' is coming from? --show-trace doesn't add anything
justan0theruser has quit [Read error: Connection reset by peer]
MightyJoe has joined #nixos
olto has joined #nixos
cyraxjoe has quit [Ping timeout: 240 seconds]
kisonecat has joined #nixos
<ottidmes> shazow: could you share your config through some paste service (e.g. GitHub's gists)?
<tilpner> shazow: strace if you're really desperate, -vvvv might do something, but I never tried that on nixos-install. Also paste "mount" and your config
<tilpner> shazow: That error comes from Nix's src/libstore/build.cc::runChild
bagus has quit [Remote host closed the connection]
<tilpner> But that could mean anything :/
<lopsided98> shazow: I've run into this error when sandbox-paths is not set correctly in nix.conf
<tilpner> Do you have sandboxing enabled? If so, you probably need user namespaces, which I don't know if Arch has enabled
bagus has joined #nixos
<lopsided98> with sandboxing enabled
bagus has quit [Remote host closed the connection]
capnp has joined #nixos
bagus has joined #nixos
<jomik> wedens, infinisil Did you manage to come up with a reason why the getValues thingy fails? >.o
vidbina has quit [Ping timeout: 272 seconds]
<shazow> hiya
<shazow> er wrong window
<shazow> one sec
<jomik> Heya shazow !
<shazow> ottidmes: my config and details are here: https://github.com/shazow/nixfiles/issues/3
<{^_^}> shazow/nixfiles#3 (by shazow, 23 minutes ago, open): Install failure
<shazow> welcome to comment in the issue if that's easier :)
* shazow brb in an hour or two, sorries.
<jomik> I am at a complete loss... I don't understand why having two of these modules causes it to fail, but not one...https://github.com/Jomik/dotfiles/blob/emacs/.config/nixpkgs/programs/emacs/default.nix
<jomik> value is a list while a set was expected at getValues in nixos/lib/options.nix.
mcnesium has joined #nixos
capnp has left #nixos [#nixos]
<jomik> Apparently the programs.emacs.extraPackages fails if it is declared at multiple places.
<jomik> Can it not merge it, because it is a function?
zukaboo has joined #nixos
<makefu> ,locate bin glxinfo
Church_ has joined #nixos
<{^_^}> Found in packages: glxinfo, virtualgl, virtualglLib, driversi686Linux.glxinfo
<jomik> So for some reason defs is a list of lists.. O.o
<Church_> Hey is there a way for me to a pip package via github using python3.WithPackages()
<mcnesium> lassulus: danke fรผrs nixos zeigen :)
<infinisil> jomik: One of the few reliable ways to debug Nix is to just remove everything you can to still reproduce the error
<jomik> I haven't a clue where to start with that though. As this happens with home-manager. I guess I'd have to isolate it and import <nixpkgs> or something.
<infinisil> jomik: Can you show the full trace?
<infinisil> from --show-trace
<jomik> I have already. It adds nothing.
<jomik> Literally nothing.
<infinisil> Huh
<infinisil> What command are you using?
<jomik> home-manager build --show-trace
<jomik> `error: value is a list while a set was expected, at /nix/store/hy6xy3w8p628ai84kph1grj49m4aznkp-nixos-18.09.1806.928ff62213b/nixos/lib/options.nix:123:23`
<infinisil> Oh, home-manager probably doesn't propagate the --show-trace
<jomik> Probably not.
<jomik> Though, I am not sure how to work around it, considering it depends on home-manager stuff.
olto has quit [Remote host closed the connection]
<infinisil> jomik: Oh, add `-v`
<infinisil> It's a bit weird, but home-manager calls --show-trace in nix if you give it -v
<jomik> I tried, doesn't give more.
<infinisil> Hmm..
<{^_^}> [nixpkgs] @ajs124 opened pull request #53050 โ†’ sshd: Add restartTrigger for sshd_config โ†’ https://git.io/fhIpO
erictapen has joined #nixos
<jomik> Oh...
<jomik> It has to be INFRONT of build.
kisonecat has quit [Ping timeout: 246 seconds]
kisonecat has joined #nixos
<infinisil> Ohh :/
<zukaboo> Is anyone interested in linux audio?
ddellacosta has joined #nixos
<zukaboo> It would be nice to make https://github.com/falkTX/Carla/ work properly in NixOS
ddellaco_ has joined #nixos
<jomik> infinisil: https://git.io/fhIpl
<zukaboo> I wrote a nix file.
<zukaboo> Standalone carla works fine, but there's a problem with using carla as a vst plugin.
<zukaboo> It cannot find PyQt5 to draw the UI.
<jomik> This looks like it is my service thingy causing the error though!
Mr_Keyser_Soze has joined #nixos
lokado has quit [Quit: WeeChat 2.3]
<infinisil> jomik: Where's finalPackage defined?
<jomik> Ah, no, it still happens without it. It is something with the emacs-packages-deps
ddellacosta has quit [Ping timeout: 244 seconds]
<jomik> in home-manager's module.
<jomik> infinisil: Though, I don't see why that can influence that?
<infinisil> The line I'm looking at is "while evaluating the attribute 'ExecStart' at /home/jomik/.config/nixpkgs/programs/emacs/default.nix:59:11:"
<infinisil> This means it's stemming from that line there
<jomik> Oh, yeah. That is my service thing. I disabled that.
<jomik> I have this now.. https://git.io/fhIpr
<infinisil> Then this part shouldn't even be accessible though? What's the error if you disable it?
<infinisil> Ah
<betaboon> does anyone have qspectrumanalyzer packaged ?
<jomik> Which points at something in emacs-with-packages.
<infinisil> jomik: Oh!
<infinisil> You can't merge functions
<infinisil> Or at least there's no proper merger implemented by default
<infinisil> There's no type defined for this option ^
<infinisil> Which means it uses a default merger or so
<jomik> default merger shoulud be fine though?
<infinisil> Huh
<infinisil> Oh snap
<jomik> That should be wnat we want, right?
<infinisil> Maybe try specifying the type for it anyways
<infinisil> It has to do something with that
<infinisil> It matches the "it only doesn't work when I enable both modules" thing
<infinisil> Hmm, relevant discussion: https://github.com/NixOS/nixpkgs/pull/44601
<{^_^}> #44601 (by basvandijk, 20 weeks ago, closed): lib/types: add the selectorFunction type
<infinisil> The reason for closing it seems unreasonable to me though
<jomik> But it fails because the defs is a list of lists, not a list of sets
<jomik> The motivation seems to be exactly the issue I have
<infinisil> Wait, so xmonad.extraPackages actually doesn't merge correctly in master?
duckwho has joined #nixos
<infinisil> :/
<jomik> hmmm. Apparently not. Lol...
<jomik> I was just thinking... "We don't want functions in NixOS options". But I have seen them many places :/
<jomik> I still do not understand why it doesn't work xD
<jomik> So I guess rather than say "choose from this selection of packages", we want them to be able to scope a selection of packages out of pkgs.
<jomik> Basically doing what you are doing in your config infinisil
<infinisil> Hmm yeah maybe
<infinisil> But what I'm doing is kinda hacky
<infinisil> Eh I guess it's okay actually
<jomik> I dunno why it is better to say that the user should use emacsPackagesNg rather than the argument we give to the function, which should be exactly emacsPackagesNg.. :O
<jomik> Dammit, that sucks :D
<infinisil> jomik: Yeah function options exist, and that's why I'm annoyed at nbp (ping?) closing this issue. We *have* function options already, we can't just ignore them now
<jomik> Yeah.. I still don't understand why they don't merge though!
<jomik> mergeDefaultOption should handle them properly, in my heah..
<jomik> head*
<mupf> damn, I had to go afk quite sudden. Not sure if someone replied me. Sorry. I try again:
<mupf> For some reason I ran into this problem again after updating my system: https://paste.ubuntu.com/p/4ShsBFdfhn/ any idea?
<mupf> I can't hibernate my system as non-root anymore.
vidbina has joined #nixos
erictapen has quit [Ping timeout: 246 seconds]
Dedalo has joined #nixos
Dedalo has quit [Client Quit]
<jomik> Bummer~
<jomik> I mean, the mergeDefaultOption does do exactly what the selector type in that PR accomplishes infinisil , so why is this an issue? :O
akl has left #nixos [#nixos]
rfold has quit [Ping timeout: 268 seconds]
wucke13 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Infinisil reopened pull request #44601 โ†’ lib/types: add the selectorFunction type โ†’ https://git.io/fNMNd
<infinisil> jomik: Um, hold on I'll check if that fixes the xmonad extraPackages error
arjen-jonathan has quit [Ping timeout: 250 seconds]
wucke13 has joined #nixos
random_yanek has quit [Ping timeout: 250 seconds]
<infinisil> It does indeed
<jomik> Hurray!
<infinisil> (I hope @Jomik is you on IRC)
<infinisil> s/IRC/GitHub
<jomik> Yep :)
<infinisil> Oh haha I see your github username in the dotfiles you linked, duh
<jomik> :thumbsup:
<{^_^}> [nixpkgs] @betaboon opened pull request #53051 โ†’ soapysdr: fix modules-directory for extraPackages โ†’ https://git.io/fhIjO
<jomik> Quick! Push it into release-18.09! Lolol
zukaboo has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #52577 โ†’ gnugrep: 3.1 -> 3.3 โ†’ https://git.io/fhvkW
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to staging: https://git.io/fhIj3
<{^_^}> [nixpkgs] @dtzWill closed pull request #52891 โ†’ gnugrep: 3.1 -> 3.3 โ†’ https://git.io/fhTOH
<infinisil> Heh
kp__ has quit [Quit: WeeChat 2.3]
bagus has quit [Ping timeout: 260 seconds]
<infinisil> jomik: Try setting the type in home-manager's extraPackages option and see if that fixes your erro
<infinisil> r
<{^_^}> [nixpkgs] @dtzWill merged pull request #52576 โ†’ gnused: 4.5 -> 4.7 โ†’ https://git.io/fhvTA
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to staging: https://git.io/fhIjn
kp__ has joined #nixos
<infinisil> (You'll need to clone home-manager for that)
<jomik> Yeah, I do have that cloned. Though I don't use it locally.
<jomik> Maybe I should. IIRC I can just set home-manager.path to my fork.
<jomik> I guess.
<jomik> A function that takes two arguments :P
ryantrinkle has joined #nixos
<infinisil> Ah, will have to write a separate type for that one
<infinisil> Should just be a simple extension from the one-argument case though
<jomik> Yeah, I believe so.
erictapen has joined #nixos
random_yanek has joined #nixos
erictapen has quit [Ping timeout: 250 seconds]
erictapen has joined #nixos
<Church_> Hey what does nixos use for dns?
<Church_> Trying to flush my cache
rfold has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
imdoor has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed to master ยซ add elm2nix ยป: https://git.io/fhLeO
<ottidmes> Church_: that would depend on your configuration, but I believe the default is openresolv
<{^_^}> [nixpkgs] @domenkozar pushed to release-18.09 ยซ add elm2nix ยป: https://git.io/fhLec
<infinisil> 99 bottles of beer on..
<infinisil> Oh wait
<infinisil> 991 PRs on the feed, 991 PRs...
<timokau[m]> infinisil:
<infinisil> Take one down and pass it around, 994 PR's on the feed
<timokau[m]> Damn where did those 100 additional prs come from suddenly?
<samueldr> 823 not WIP, 747 neither WIP nor from r-ryantm
<timokau[m]> I could swear it was 800 something just yesterday
<samueldr> >> is:pr is:open NOT WIP in:title -label:"2.status: work-in-progress" -author:r-ryantm
<infinisil> It's crazy!
eadwu has left #nixos ["WeeChat 2.3"]
alex`` has joined #nixos
aanderse has joined #nixos
<{^_^}> [nixpkgs] @timokau closed pull request #52931 โ†’ boehmgc: 8.0.0 -> 8.0.2 โ†’ https://git.io/fhTwm
<{^_^}> [nixpkgs] @timokau merged pull request #52927 โ†’ alembic: 1.7.9 -> 1.7.10 โ†’ https://git.io/fhT2S
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master ยซ alembic: 1.7.9 -> 1.7.10 (#52927) ยป: https://git.io/fhLeb
<{^_^}> [nixpkgs] @timokau merged pull request #52926 โ†’ ansifilter: 2.12 -> 2.13 โ†’ https://git.io/fhT2z
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master ยซ ansifilter: 2.12 -> 2.13 (#52926) ยป: https://git.io/fhLeh
<exarkun1> What determines what nixpkgs `nixops deploy` uses?
<exarkun1> Or what is best practice for managing this?
* shazow is back
<{^_^}> [nixpkgs] @timokau merged pull request #52915 โ†’ commonsLang: 3.3.2 -> 3.6 โ†’ https://git.io/fhT8U
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to staging ยซ commonsLang: 3.3.2 -> 3.6 (#52915) ยป: https://git.io/fhLvk
<infinisil> exarkun1: nixpkgs an NIX_PATH
<infinisil> I think the only way to manage this is to just set NIX_PATH to something different
erictapen has quit [Ping timeout: 240 seconds]
<infinisil> Personally I'm using a nixops wrapper anyways, I could just add the NIX_PATH override there
<exarkun1> What nixops wrapper are you using?
<infinisil> exarkun1: Oh you can of course use the -I option to set nixpkgs directly too (as with all nix commands)
erictapen has joined #nixos
<infinisil> Well my nixops wrapper actually doesn't set nixpkgs, but here it is: https://github.com/Infinisil/system/blob/master/deploy/rb
<infinisil> Just add `-I nixpkgs=/path/to/nixpkgs` to set it
<{^_^}> [nixpkgs] @timokau merged pull request #52920 โ†’ bison: 3.2.2 -> 3.2.3 โ†’ https://git.io/fhTEY
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to staging ยซ bison: 3.2.2 -> 3.2.3 (#52920) ยป: https://git.io/fhLv8
<exarkun1> okay, I guess that works. seems like it might be nice to be able to stick that into the network definition somehow, though.
<{^_^}> [nixpkgs] @timokau merged pull request #52903 โ†’ cherrytree: 0.38.6 -> 0.38.7 โ†’ https://git.io/fhTnq
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master ยซ cherrytree: 0.38.6 -> 0.38.7 (#52903) ยป: https://git.io/fhLvV
<{^_^}> [nixpkgs] @Infinisil closed pull request #52885 โ†’ gdb: 8.2 -> 8.2.1 โ†’ https://git.io/fhTmb
<{^_^}> [nixpkgs] @timokau merged pull request #52905 โ†’ looking-glass-client: a11 -> a12 โ†’ https://git.io/fhTc6
<{^_^}> [nixpkgs] @timokau pushed commit from @jchv to master ยซ looking-glass-client: a11 -> a12 (#52905) ยป: https://git.io/fhLv1
<{^_^}> [nixpkgs] @gilligan opened pull request #53052 โ†’ polybar: 3.2.1 -> 3.3.0 โ†’ https://git.io/fhLvM
<{^_^}> [nixpkgs] @Infinisil closed pull request #53052 โ†’ polybar: 3.2.1 -> 3.3.0 โ†’ https://git.io/fhLvM
<infinisil> Sorry gilligan haha
<jomik> Damn, that was instant.
<{^_^}> [nixpkgs] @dtzWill merged pull request #52584 โ†’ llvm7: 7.0.0 -> 7.0.1 โ†’ https://git.io/fhvOq
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhLvH
<{^_^}> [nixpkgs] @timokau merged pull request #52917 โ†’ dolphinEmuMaster: 2018-09-24 -> 2018-12-25 โ†’ https://git.io/fhT4J
<{^_^}> [nixpkgs] @timokau pushed commit from @ashkitten to master ยซ dolphinEmuMaster: 2018-09-24 -> 2018-12-25 (#52917) ยป: https://git.io/fhLvb
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to staging ยซ clipmenu: 5.5.0 -> 5.6.0 (#52913) ยป: https://git.io/fhLvx
<{^_^}> [nixpkgs] @timokau merged pull request #52913 โ†’ clipmenu: 5.5.0 -> 5.6.0 โ†’ https://git.io/fhTlT
<jomik> infinisil: I still get the error.. But I think I may not actually be on my local fork for some reason.. O.o
<jomik> I did update programs.home-manager.path - but it didn't seem to actually rebuild home-manager.
<jomik> I am not really sure how to point it at my own though, if this doesn't work xD
kisonecat has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @timokau merged pull request #52910 โ†’ dhewm3: 1.4.1 -> 1.5.0 โ†’ https://git.io/fhTWU
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master ยซ dhewm3: 1.4.1 -> 1.5.0 (#52910) ยป: https://git.io/fhLfT
<{^_^}> [nixpkgs] @Infinisil merged pull request #52751 โ†’ polybar: 3.2.1 -> 3.3.0 โ†’ https://git.io/fhUTw
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhLfI
<{^_^}> [nixpkgs] @timokau merged pull request #52909 โ†’ crispyDoom: 5.3 -> 5.4 โ†’ https://git.io/fhTCi
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master ยซ crispyDoom: 5.3 -> 5.4 (#52909) ยป: https://git.io/fhLft
eadwu has joined #nixos
vidbina has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @timokau merged pull request #52907 โ†’ cool-retro-term: 1.0.1 -> 1.1.0 โ†’ https://git.io/fhTCU
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master ยซ cool-retro-term: 1.0.1 -> 1.1.0 (#52907) ยป: https://git.io/fhLfY
cyphase has quit [Ping timeout: 250 seconds]
zukaboo has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #52899 โ†’ e2fsprogs: 1.44.4 -> 1.44.5 โ†’ https://git.io/fhTG7
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to staging ยซ e2fsprogs: 1.44.4 -> 1.44.5 (#52899) ยป: https://git.io/fhLfc
zukaboo has quit [Client Quit]
cyphase has joined #nixos
<infinisil> jomik: Try `NIX_PATH=home-manager=/path/to/home-manager:$NIX_PATH home-manager build`
<jomik> Ah, but my home-manager isn't in my NIX_PATH
<jomik> Didn't work :(
<{^_^}> [nixpkgs] @dtzWill merged pull request #52809 โ†’ bison: 3.2.2 -> 3.2.4 โ†’ https://git.io/fhUMh
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhLfo
vidbina has joined #nixos
__monty__ has joined #nixos
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhLfX
<{^_^}> [nixpkgs] @dtzWill merged pull request #53018 โ†’ zstd: 1.3.7 -> 1.3.8 โ†’ https://git.io/fhIRU
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6b1a429df33 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<jomik> Dammit, that sucks :D
<jomik> And I can't override the option in my own config either. Lol.
<jomik> Or can I? With an overlay?
Lingjian has joined #nixos
<infinisil> jomik: Oh, try cloning it to ~/.config/nixpkgs/home-manager
eadwu has quit [Ping timeout: 252 seconds]
jomik1 has joined #nixos
erictapen has quit [Ping timeout: 246 seconds]
jomik has quit [Ping timeout: 245 seconds]
eadwu has joined #nixos
Lingjian has quit [Ping timeout: 268 seconds]
vidbina has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @timokau merged pull request #52980 โ†’ why3: 1.1.0 -> 1.1.1 โ†’ https://git.io/fhkBp
<{^_^}> [nixpkgs] @timokau pushed commit from @vbgl to master ยซ why3: 1.1.0 -> 1.1.1 (#52980) ยป: https://git.io/fhLJL
<jomik1> Is there a way I can just completely override a module? I would be fine essentially just replacing programs.emacs with my own by now.. Lol
<jomik1> I can't get my home-manager to point at my local checkout for some reason..
erictapen has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #51704 โ†’ purple-hangouts: 2018-03-28 -> 2018-12-02 โ†’ https://git.io/fpSBI
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhLJZ
<infinisil> jomik1: Maybe you missed my messages
<infinisil> jomik: Oh, try cloning it to ~/.config/nixpkgs/home-manager
<infinisil> But if that also doesn't work, you could try just installing home-manager from the clone
<jomik1> Ah yeah. I guess I could. But, annoys me that it wouldn't be where I specified it though
<jomik1> I must have missed the message tho :D
<{^_^}> [nixpkgs] @dtzWill closed pull request #51698 โ†’ mercurial: 4.8 -> 4.8.1 โ†’ https://git.io/fpS49
<jomik1> I'll try!
<jomik1> I guess... The issue may be that it is not updating my home-manager, because it can not build it with the old version.. xD
<jomik1> Yeah, that was why. Woops..
<infinisil> Heh
mjacob has joined #nixos
<jomik1> infinisil: Hi5!
<jomik1> Hope that PR gets merged, and into 18.09 :P
<infinisil> o/
<infinisil> Does it work then?
<jomik1> It works now, yup.
<infinisil> Neat
<infinisil> Yeah that PR would be nice
<infinisil> (#44601 if anybody is wondering what we're talking about)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/44601 (by basvandijk, 20 weeks ago, open): lib/types: add the selectorFunction type
eadwu has quit [Quit: WeeChat 2.3]
bbarker has quit [Ping timeout: 250 seconds]
eadwu has joined #nixos
vidbina has joined #nixos
<jomik1> infinisil: In your config, you have some "requires", are they still necessary? I thought package-initialize essentially did what they do?
mjacob has left #nixos [#nixos]
<infinisil> jomik1: Yeah some are still required. I think packages can have more of these requires things, and the packager gets to decide what is enabled by default
<jomik1> Aaah.
mjacob has joined #nixos
<infinisil> Not entirely sure though, I'm not an emacs expert
jomik1 is now known as jomik
<jomik> Oh, this is the reason I joined #emacs. Woops :D
<jomik> It's been like... 2 years xD
kisonecat has joined #nixos
<Izorkin> infinisil: how to realise configFile option ?
<infinisil> Izorkin: You create a new option as normal
<jomik> infinisil: Was there a reason that you don't use `use-package` here? Does it fetch stuff impurely? I forgot :P
<infinisil> Nah, I never used use-package, no idea how to use it and what the benefit is over package-initialized (which is a thing by nix itself, so it might be better integrated)
<{^_^}> [nixpkgs] @timokau merged pull request #52525 โ†’ qlcplus: 4.11.2 -> 4.12 โ†’ https://git.io/fpjYo
<{^_^}> [nixpkgs] @timokau pushed commit from @Vskilet to master ยซ qlcplus: 4.11.2 -> 4.12 (#52525) ยป: https://git.io/fhLUc
<jomik> package-initialize is an emacs thing tho?
<infinisil> Oh it is?
<infinisil> Nvm then haha
<jomik> IIUC use-package allows you to defer package loading and group stuff neatly, etc.
<jomik> I'll look at it then I guess :D
<infinisil> Hmm that does sound nice, my emacs does start a bit slow
<jomik> You could use the daemon to fix that too probably though
ddellaco_ has quit [Remote host closed the connection]
redj has quit [Disconnected by services]
redj has joined #nixos
Lingjian has joined #nixos
eadwu has quit [Ping timeout: 260 seconds]
vidbina has quit [Ping timeout: 250 seconds]
<Izorkin> infinisil: command - nano $(nix-build '<nixpkgs/nixos>' -A config.services.dovecot2.extraConfig) - not worked, error expression does not evaluate to a derivation (or a set or list of those)
erictapen has quit [Ping timeout: 250 seconds]
eadwu has joined #nixos
ensyde has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #48911 โ†’ nodejs: init at 11.5.0 โ†’ https://git.io/fxXJz
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhLTf
kisonecat has quit [Ping timeout: 250 seconds]
Lingjian has quit [Ping timeout: 252 seconds]
emilsp has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #53034 โ†’ gitAndTools.hub: 2.6.1 -> 2.7.0 โ†’ https://git.io/fhIHZ
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhLT4
vidbina has joined #nixos
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @dtzWill closed pull request #52966 โ†’ llvm7: 7.0.0 -> 7.0.1 โ†’ https://git.io/fhkCX
ddellacosta has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #51231 โ†’ lit: 0.6.0 -> 0.7.0 โ†’ https://git.io/fpV1M
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/fhLTP
colabeer has joined #nixos
erictapen has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
jomik has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #53053 โ†’ lit: 0.7.0 -> 0.7.1 โ†’ https://git.io/fhLT5
vk3wtf has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @Infinisil merged pull request #52513 โ†’ vim-lsc: init at fe6d3bd โ†’ https://git.io/fphKF
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhLkU
arjen-jonathan has joined #nixos
erictapen has quit [Ping timeout: 250 seconds]
Mr_Keyser_Soze has quit [Ping timeout: 272 seconds]
<colemickens> darcs (graphviz) aren't tested for nixos-unstable?
<colemickens> bites me a few times a year, always surprises me
shibboleth has joined #nixos
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #53054 โ†’ newsboat: 2.13 -> 2.14 โ†’ https://git.io/fhLkR
kisik21 has joined #nixos
Dedalo has joined #nixos
iqubic has joined #nixos
<ghostyy> how do i hack on nixos? https://github.com/NixOS/nixpkgs/tree/master/pkgs/games/steam this is broken and i want to fix it
<{^_^}> [nixpkgs] @dtzWill merged pull request #53053 โ†’ lit: 0.7.0 -> 0.7.1 โ†’ https://git.io/fhLT5
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhLkS
<{^_^}> [nixpkgs] @dtzWill merged pull request #52730 โ†’ gdb: 8.2 -> 8.2.1 โ†’ https://git.io/fhJ5b
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhLkH
<infinisil> ghostyy: Clone nixpkgs, cd into it, change what you want, then `nix-build -A <attribute to build>`
<infinisil> E.g. `nix-build -A steam` if you want to rebuild steam
<ghostyy> thx m8
<infinisil> ghostyy: Check out existing issues though, and consider filing one yourself
<iqubic> Does anyone have any idea how to link emacs and haskell? I can't seem to get it to work together properly.
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<iqubic> I can't get emacs to find the haskell dependencies properly.
Lingjian has joined #nixos
reinhardt has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #51829 โ†’ octoprint-plugins: remove redundant platforms โ†’ https://git.io/fpHnB
<{^_^}> [nixpkgs] @Infinisil pushed 3 commits to master: https://git.io/fhLkA
eadwu has quit [Ping timeout: 250 seconds]
Mr_Keyser_Soze has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/0a8f35c998f (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @Ma27 merged pull request #53042 โ†’ wireguard-tools Add proper dependencies โ†’ https://git.io/fhIbk
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fhLIT
<rain1> hey
<rain1> the nix language is pure like haskell?
<rain1> does it use monads?
justan0theruser has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<MichaelRaskin> It is purer than Haskell so monad use is not mandatory.
<elvishjerricco> rain1: It is pure. It does not have monads. There are a couple of "impurities" that actually behave a bit like some of the most common haskell monads. In particular, you can ask for environment variables, so in that sense the entire language is a Reader monad with your environment variables as the argument being passed everywhere. And it has `throw` and `tryEval`, which make the entire language behave like the `Either`
<elvishjerricco> monad
<MichaelRaskin> And I think nobody actually does, because it is not the best fitting abstraction type for Nix domain
<rain1> thank you
<MichaelRaskin> Nix can read external files/environment variables, but treats them as ontological equals to source code that defines string constants
jmeredith has quit [Quit: Connection closed for inactivity]
erictapen has joined #nixos
<colemickens> nixos-unstable has a newer version of Rust than nixpkgs-unstable? This is also surprising to me.
Ariakenom has joined #nixos
<samueldr> colemickens: somehow nixpkgs-unstable got stuck while nixos-unstable updated two days ago
<samueldr> I don't know if anyone looked into why nixpkgs-unstable is sticking
<colemickens> samueldr: aha, okay, thanks for the heads up
<Church_> I need docker-compose to die
<Church_> In a fire
<Church_> Violently
<samueldr> colemickens: weird, https://hydra.nixos.org/build/86521971 eval of 1497827 is complete... though I see an aborted job; I'm not sure whether aborted jobs would stop a channel from updating
* samueldr restarts it
<samueldr> the error was that it wasn't able to connect to that (darwin) builder
<Church_> I'm going to tear my hair out I think finally.
<Church_> That's an odd error
Mr_Keyser_Soze has quit [Remote host closed the connection]
justan0theruser has quit [Read error: Connection reset by peer]
ar has joined #nixos
Dedalo has quit [Ping timeout: 240 seconds]
<iqubic> johnw: I know this might be a longshot, but I was wondering if you could help me figure out how to link nix, emacs, and haskell
cyounkins has joined #nixos
<iqubic> I have this issue where I'm finding it nearly impossible to get emacs to find the haskell libraries I have installed via nix.
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
endformationage has joined #nixos
<{^_^}> [nixpkgs] @timokau closed pull request #52900 โ†’ dzen2: 0.9.5 -> 1379930259.488ab66 โ†’ https://git.io/fhTZ4
erictapen has quit [Ping timeout: 250 seconds]
cyounkins has quit [Ping timeout: 272 seconds]
reinhardt has quit [Quit: Leaving]
<jomik> infinisil: I am pondering how useful it is to create these modules for emacs in nix. At least for the public. I like the idea for my own config, but I am pondering if it really makes sense to make it general enough that everyone can use it. I mean.. Bindings and all that varies a lot :o
Lingjian has quit [Ping timeout: 260 seconds]
<infinisil> jomik: Yeah, I'm wondering too
<infinisil> I guess you could just not have personal preferences for the public
<infinisil> evil mode can still rebind things to make sense though
hellrazor has joined #nixos
<infinisil> But yeah it's kinda hard
eadwu has joined #nixos
<jomik> Well, otherwise we should make each module its own sorta thing. Like evil.enable, evil.init, evil.config. To allow customizations in those hooks (for use-package)
Acou_Bass has quit [Ping timeout: 268 seconds]
<colemickens> samueldr: is there a place where these sorts of infra issues are tracked? Should I open a bug on nixpkgs and ask for a certain label, or did you find out that this was expected behavior?
<jomik> I think it sorta makes sense to have a keybindings attrset that can then be mapped to actual keybindings. May be nicer to write in Nix.
<samueldr> colemickens: I don't know of an actual location, and I don't know for sure if my interpretation of the situation is right
Acou_Bass has joined #nixos
<jomik> Same sort of issue with Xmonad though... Probably don't want to have any haskell code inside nix. Still not sure what I will do about that.
lucus16 has joined #nixos
<infinisil> jomik: Yeah, I guess emacs and xmonad go into the same category of "configurations that can't be fully expressed with Nix values"
Lingjian has joined #nixos
<jomik> Probably because it becomes more verbose doing it in nix anyway :P
Church_ has quit [Ping timeout: 244 seconds]
<jomik> The "theme" one makes sense though! I'll ponder it some more tonight. It's just about bed time her.
<jomik> Thanks for the help :)
<infinisil> Well, I think mainly because elisp/Haskell are full languages, in contrast to most other configuration formats like json/yaml which are a subset of Nix in a way
<infinisil> Np, good luck :)
eadwu has quit [Ping timeout: 252 seconds]
obfusk has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
<ivan> how do I fix a persistent hydra build abort caused by a 'Aborted: NAR info file 'jdapj6zwjpgbp2v57j854bn1pwfp0m02.narinfo' is corrupt'?
<clever> ivan: try quering that file, on every binary cache you have
Ariakenom_ has joined #nixos
<ivan> clever: thanks I found an empty .narinfo and removed it, hopefully that will be enough
<ivan> (in my hydra cache)
Ariakenom has quit [Ping timeout: 252 seconds]
cyounkins has joined #nixos
__monty__ has quit [Quit: leaving]
rprije has joined #nixos
colabeer has quit [Ping timeout: 268 seconds]
Lears has joined #nixos
justan0theruser has joined #nixos
[Leary] has quit [Read error: No route to host]
<schopp0r> hi. is there still someone at the ccc nixos assembly?
Lears has quit [Read error: No route to host]
Lears has joined #nixos
<schopp0r> ok, at least noone in this chat
<samueldr> timokau[m]: if you were observing nixpkgs-unstable updates, when the "Queued jobs" is empty (and fully built) for this eval it might update https://hydra.nixos.org/eval/1497846#tabs-unfinished
<{^_^}> [nixpkgs] @Infinisil merged pull request #52930 โ†’ system-path: set implicitly installed packages to be low-priority โ†’ https://git.io/fhTVd
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhLtW
freeman42x[nix] has quit [Ping timeout: 268 seconds]
Rusty1 has joined #nixos
Lingjian has quit [Ping timeout: 250 seconds]
Ariakenom_ has quit [Ping timeout: 252 seconds]
erictapen has joined #nixos
pie_ has joined #nixos
ottidmes has quit [Ping timeout: 245 seconds]
rfold has quit [Quit: leaving]
pie_ has quit [Remote host closed the connection]
erictapen has quit [Ping timeout: 272 seconds]
pie_ has joined #nixos
rfold has joined #nixos
rfold has quit [Client Quit]
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
justan0theruser has quit [Read error: Connection reset by peer]