<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)
<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
<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
<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?
<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?
<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
<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>
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_>
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
<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
<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."
<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
<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
<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
<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]
<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;?
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.
<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`?
<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.
<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]
<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
<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
<{^_^}>
[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
<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?
<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
<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
<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
<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
<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.
<{^_^}>
[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.
<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.
<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
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
<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
<{^_^}>
#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:
<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 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)
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]
<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?