<disasm> iqubic: yeah, the answer to your questions, is with existing nixos code,I don't see anyway to change the splash screen with systemd-boot whereas grub has a splashImage, font and fontSize attrs, so if this is about cosmetics, with nixos at least I would say just use grub.
<iqubic> disasm: What are the other differences between grub and systemd?
notdaniel is now known as _notdaniel
dkh has joined #nixos
_notdaniel has quit [(Client Quit)]
<sphalerite> iqubic: Grub is a bootloader and systemd does everything
<disasm> sphalerite: I think he was talking about systemd-boot :)
<sphalerite> disasm: it's not just nixos, systemd-boot is very limited in general and just plain doesn't support stuff like fonts
<Unode> I use lightdm and awesomewm as login and window manager. Every once in a while, when I login right after boot, I get sent to a 'fallback' session where I see a term (xterm I think) and no window decorations. Has anyone ever experienced this and do you have any suggestions on how to fix/workaround it? Most often logging out and back in fixes it but it's annoying...
<disasm> sphalerite: well, arch and other distros have the ability to set a splash screen :)
<sphalerite> disasm: and as a result its code is tiny. Especially compared with grub
<sphalerite> With systemd-boot?
<iqubic> Effing hell. I keep mixing up systemd and systemd-boot
<Unode> iqubic: nixos works fine with grub. save yourself some time and just use it.
<disasm> although I'm not taking the effort to add that to nixos, I care very little for aesthetics of my boot manager, lol
<iqubic> disasm: I dn't want to do that either.
<sphalerite> Yeah same, I just care that it boots my system
<iqubic> I might submit and FR though.
<Unode> I'm with disasm on that. For something I see less than 2 seconds a day.
<disasm> Unode: a day, try a month, lol :)
<Unode> disasm: I do have dual boot ;)
<disasm> sphalerite: so, got a usb, how do I make a live usb with zfs enabled on it? :)
<sphalerite> Didn't know that
<iqubic> Like I want to switch, but I also don't want to.
<disasm> Unode: I have triple boot, doesn't mean I ever leave nixos, lol :)
<sphalerite> disasm: make a configuration.nix with imports = [<nixpkgs/nixos/modules/installer/cd-dvd/iso-minimal.nix>]; boot.supportedFilesystems = [ "zfs" ]; then nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage
<disasm> osx/nixos/arch :)
<sphalerite> disasm: that's from memory and typed on my phone so it may have some mistakes
ris has quit [(Ping timeout: 240 seconds)]
<sphalerite> Oh yeah, needs -I nixos-config=configuration.nix
<disasm> ooh :)
<infinisil> Gotta love nixos
<infinisil> I don't think other distros have it as easy to build a custom iso
<sphalerite> I'd be really impressed if that actually worked as I wrote it though
<sphalerite> That I actually managed to remember it right
<disasm> haha, if I knew it was this easy, I wouldn't have procrastinate for months, lol
<disasm> sphalerite: so that should have the wifi modules the minimal nix live cd has too right?
<avn> sphalerite: btw, why we haven't zfs in default install media?
<disasm> avn: legal reasons
<avn> it make iso non-redustributable?
<infinisil> the same reason ZoL isn't in linux
<sphalerite> disasm: yeah I think si
<sphalerite> avn: yep. Zfs (CDDL) is GPL-incompatible so bundles of software under both licences aren't redistributable
<Unode> sphalerite: this systemd timers stuff is interesting. Thanks for the reference
<avn> sphalerite: damn. So always "rescue media" with recent zfs version -- is a dances with building fresh image on notebook :/
<Unode> on nixos if I want to monitor why lightdm (or X) defaulted to a bare xterm, what file/log should I look at?
<Dezgeg> you can nixos-rebuild in the live cd
<Unode> Is this something that would also end up on systemd journal?
<sphalerite> Unode: NP :) timer stuff would, yes. Lightdm is broken and doesn't log to the journal
<sphalerite> avn: yeah as Dezgeg says you can use the regular iso and just build the zfs module on there
<sphalerite> It's just if you want to avoid the extra effort and have a zfs-capable install medium immediately available
<Unode> sphalerite: so... any suggestion as alternative to lightdm? I don't mind going old-school with login on console and startx (that's how I still have it on gentoo)
<iqubic> Does 17.09 stable have any Coq compilers
<Unode> or the official one on nixos.org
<avn> sphalerite: I think about writing expression to build install media with zfs+git+... and add it to standard configuration for all machines in my home. So each update will update image as well
<disasm> sphalerite: can't seem to get that syntax to work...
<sphalerite> Unode: I use sddm. xinit might work too but I don't know anything about that, particularly how it behaves logging-wise
<sphalerite> disasm: details?
<Unode> sddm, will check.
takle has joined #nixos
<disasm> sphalerite: error: file ‘nixpkgs/nixos/modules/installer/cd-dvd/iso-minimal.nix’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /home/sam/nixos-vm-config/usb.nix:2:14
dkh has quit [(Ping timeout: 258 seconds)]
<disasm> command I'm running is nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=/home/sam/nixos-vm-config/usb.nix
<disasm> oh... ls: cannot access '/home/sam/nixpkgs/nixos/modules/installer/cd-dvd/iso-minimal.nix': No such file or directory
<disasm> got it
* Unode scratches his head
<disasm> it's installation-cd-minimal.nix
<Unode> is lightdm the default nixos login manager?
<disasm> no, slim is
<sphalerite> Unode: no, slim is
<iqubic> Why are we using slim?
<Unode> ah so that's what I'm using. Though it was lightdm. :S
<sphalerite> disasm: so close!
<disasm> sphalerite: thanks for the help :)
<iqubic> slim is no longer being maintained.
<Unode> sphalerite: so rephrasing what I asked before. journalctl for slim?
<sphalerite> Unode: that explains why it does the xterm thing
<Unode> sphalerite: please do tell more :)
<sphalerite> It'll do that if you got your password wrong
<Unode> really? xD
<sphalerite> Idk why but yeah
<disasm> iqubic: i think because there's no light weight alternative yet and it just works :)
<Unode> what the heck...
sophiag has joined #nixos
<sphalerite> You can change it back by pressing f1 iirc
<Unode> ok sddm then
<sphalerite> But sddm is better :p
<infinisil> sddm looks way too fancy for me
<sphalerite> disasm: just works... Apart from the bits that don't :p
<disasm> but... kde, lol :)
<Unode> oh so sddm is also the kde default?
<sphalerite> disasm: glad I could help
<sphalerite> Unode: yes
<iqubic> Unode: Yes
<sophiag> wow, so after crashing due to upgrading to 17.09 i tried disabling my graphics card in bios as MichaelRaskin suggested and learned i cannot do that on this machine...i have no options to disable either the card or integrated, only the memory allocated to integrated :p
<Unode> wasn't this kdm or something?
<sphalerite> Jeez, it's 1:30am?
<Unode> I haven't used kde in a while.
<sphalerite> Unode: previously, yes.
<Unode> sphalerite: 2:30 here :x
<disasm> sphalerite: nah, it's only 8:30 PM, your in the wrong timezone :)
<sphalerite> I should sleep.
<Unode> and now I feel like disabling the whole X thing and login from terminal. But I'm guessing systemd is going to get in the way
<sphalerite> No, systemd-logind should actually cause that to work in spite of X not being setuid :)
<sphalerite> I think.
<sphalerite> Anyway
<sphalerite> Gnight all!
<Unode> sphalerite: cheers sphalerite thanks for all the help
orivej has quit [(Ping timeout: 248 seconds)]
<disasm> night sphalerite!
<disasm> sophiag: sounds like a crappy laptop...
dkh has joined #nixos
<disasm> there's a reason I went with the intel variant when I got my macbook :) and it wasn't because it was cheaper
<disasm> well, see ya'll on the flip side! time to destructively wreck my laptop :)
dkh has quit [(Read error: Connection reset by peer)]
<Unode> reading on the nix cheatsheet, "nix-store --query --referrers $(which emacs)" is mentioned as the command to find reverse dependencies of a 'package'. The command actually takes a file from a package. Is there any other variant that accepts a package name or attribute?
<iqubic> disasm: Are you actually going to destroy your laptop?
<Unode> With the update to 17.09 I had to create a security exception for old samba. I'm trying to figure out what depends on it.
sigmundv__ has joined #nixos
<sophiag> disasm: fancy gaming laptop i got from a friend :(
<sophiag> much more confusing is after building 17.09 i've lost a ton of packages
<sophiag> like the build succeeded, but a bunch of packages are nowhere to be found...
<sophiag> removing my password manager was a nice touch :/
contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
<iqubic> sophiag: You have a password manager?
<iqubic> What is called
<sophiag> pass
<iqubic> Ah. I hear a lot of people like using pass.
<iqubic> I use LastPass. Is that the same thing?
<iqubic> I mean is it the same program.
<iqubic> ?
dieggsy has joined #nixos
<sophiag> no, but it does the same thing
<sophiag> i may switch to LastPass because i'm trying to get everyone in my company to use it as policy
<disasm> iqubic: well, wipe out the main disk (btrfs) and replace with zfs
<disasm> but I'm going to eat dinner first to think of anything outside of home and /etc/nixos I might care about
<iqubic> disasm: Why are you telling me what to do?
<iqubic> I have already switched to nixos.
<iqubic> I'm using ext4
<sophiag> ah, i suspect my issue with pkgs missing after upgrading to 17.09 was because i foolishly set allowBroken to true
<sophiag> or not? changing that didn't fix it :(
ryantrinkle has joined #nixos
Enzime has joined #nixos
<dieggsy> Hmm... I had a custom exa nix expression to track exa master, and I also had a custom rust-packages.nix to help this, but recently I've been getting 'failed to load source for a dependency on ...' (usually either `datetime` or `zoneinfo_compiled`). anyone know anything about this?
<kkini> I'm trying to install nix on a machine behind a firewall, so a proxy is necessary. I've set and exported $all_proxy in my shell, but the install fails during what seems to be a `nix-channel --update` call. Am I missing something?
fader_ has quit [(Read error: Connection reset by peer)]
fader_ has joined #nixos
asdfoiawe has quit [(Ping timeout: 246 seconds)]
asdfoiawe has joined #nixos
fader_ has quit [(Read error: Connection reset by peer)]
fader_ has joined #nixos
<disasm> iqubic: you asked if I was really going to destroy my laptop :)
<disasm> I was clarifying what I meant by destroy :)
<iqubic> Ah I see.
jgertm has quit [(Ping timeout: 248 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/a90e6c9399 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
asdfoiawe has quit [(Ping timeout: 258 seconds)]
marusich has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
<iclanzan> Hi all, I upgraded to 17.09 and now I am encountering a couple of bugs that seem to be related to Xorg. Does anyone know how I can use an older version?
<iclanzan> And older version of X that is
Ivanych has quit [(Ping timeout: 260 seconds)]
<sophiag> iclanzan: welcome to the club :p
<iclanzan> sophiag: are you having trouble with X too?
<sophiag> i'm not sure tbh. i very much thought that at one point but now i think it's a video driver issue
<sophiag> also, this has been happening since i upgraded to 17.03 so hopefully not at all similar to what you're dealing with
<iqubic> I have no X issues at all.
<iqubic> Using ASUS Zenbook UX305FA and NixOS 17.09
<iclanzan> The problems I am dealing with where not present in 17.03
<iqubic> iclanzan: What problems are you getting exactly
<iclanzan> iqubic: first issue is that the power button is not triggering an event with a keysym anymore so I can’t bind to it in i3. The second problem is the cursor when hovering over links is the grabbing cursor instead of the pointer. I am on a Macbook Retina 2015.
<iclanzan> these problems did not exist in 17.03
<iqubic> Those seem like minor issues.
<iqubic> I never use the power button to turn off my machine,
<iqubic> I just issue poweroff from the command line.
<iclanzan> I use it to lock the computer
<iclanzan> but now it doesn’t work :(
hiratara has quit [(Ping timeout: 255 seconds)]
iqubic has quit [(Remote host closed the connection)]
iqubic has joined #nixos
<iqubic> looks like the power button shuts off my machine.
<iqubic> Can I have it lock my machine instead?
hiratara has joined #nixos
<iqubic> And to be clear, this isn't a setting I set in my WM config. This binding was set by nixos somehow.
<iclanzan> iqubic: to have the power button do something else you first have to make it not turn off the machine by adding `services.logind.extraConfig = "HandlePowerKey=ignore"`
<iclanzan> and then you can bind to it using the "XF86PowerOff" sym and make it do whatever you want
<kkini> Unode: thanks, I'll try it
<iqubic> iclanzan: can I use services.logind.extraConfig to run a screen locker program?
<iclanzan> Oh, good question... that would solve my problem. Lemme look into it
lambdamu_ has joined #nixos
csingley has joined #nixos
lambdamu has quit [(Ping timeout: 240 seconds)]
<iqubic> Are there any options I can set in configuration.nix to handle screen locking?
hellrazo1 has joined #nixos
<iclanzan> not that I know of, you have to use an external package, like i3lock
<kkini> Hmm, didn't seem to work.
<kkini> In fact, I can't find any reference to CURL_NIX_FLAGS on github at all, which is odd
<clever> /home/clever/apps/nixpkgs/pkgs/build-support/fetchurl/builder.sh: $NIX_CURL_FLAGS"
<iqubic> I use XMonad, but will soon switch to EXWM.
<clever> /home/clever/apps/nixpkgs/pkgs/build-support/fetchurl/default.nix: "NIX_CURL_FLAGS"
<iqubic> Not sure what screen locker I want to use.
<clever> kkini: one passes it to curl, the other tells nix to let it into the sandbox
hellrazor has quit [(Ping timeout: 260 seconds)]
<kkini> clever: thanks. I guess github's code search isn't very thorough...
<clever> yeah
Wizek_ has quit [(Ping timeout: 248 seconds)]
thc202 has quit [(Ping timeout: 260 seconds)]
iclanzan has quit [(Quit: WeeChat 1.9.1)]
csingley has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 258 seconds)]
Arcaelyx_ has joined #nixos
mbrgm has joined #nixos
Arcaelyx has quit [(Ping timeout: 246 seconds)]
mrkgnao has joined #nixos
<kkini> Hmm, does `nix-channel --update` actually use fetchurl, though? I traced the error to nix-prefetch-url which seems to be a C++ program
<kkini> Or actually wait, I see a curl call in nix-channel which is for some reason *before* it prints the message about downloading nix expressions
<kkini> lol, this is extra confusing since apparently nix-channel was rewritten in C++ in august, which I guess hasn't made it into the latest nix release (?)
<clever> kkini: which version of nix are you using?
Supersonic112 has quit [(Disconnected by services)]
<kkini> depends on what you mean by "using"
<clever> which one did nix-channel come from?
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<clever> kkini: nix-channel calls curl without any sandboxing, so the normal env vars that curl obeys will work
<kkini> I ran `bash <(curl https://nixos.org/nix/install)` as suggested at https://nixos.org/nix/manual/#chap-installation , and this apparently downloaded nix 1.11.15; also, when it failed partway through the installation it left a /nix/store lying around with nix 1.11.15 installed in there
<iqubic> So what screen locker should I use.
<clever> kkini: did you run it as root or a normal user?
<kkini> normal user
rosa has joined #nixos
<iqubic> Currently my WM is XMonad, but I'm switiching to EXWM soon
<kkini> also that's not the line I found in nix-channel, hang on...
<rosa> why does nix os install with no wifi driver
<iqubic> rosa: It does have a wifi driver
<rosa> how do i enable it
<kkini> clever: this is where it's failing, at least judging from what I see in the terminal: https://github.com/NixOS/nix/blob/1.11-maintenance/scripts/nix-channel.in#L157-L160
<iqubic> rosa: What problems are you running into?
<kkini> I see the "downloading Nix expressions from" message, which leads me to believe the error is coming from the call of `nix-prefetch-url` on the following line, but maybe I'm wrong?
<rosa> no wifi
<clever> kkini: ah, thats where it downloads the actual channel
<clever> kkini: its downloading it with just bare curl
<clever> oh wait...
<clever> it uses curl to query the redirect, the nix-prefetch-url to download, fun
<kkini> ah, the --head
<kkini> I was skimming that line looking for -I and didn't see it, but I guess --head is the long form of -I, haha
<clever> it does funny things like this, because the directory on the server is a symlink
<clever> and it wants to atomicly download 2 things from the same directory
<gchristensen> clever: can you take this for a spin? https://github.com/NixOS/nixpkgs/pull/30397
<clever> so it has to first follow the redirect, then read both things from it
rosa_ has joined #nixos
<gchristensen> clever: I'm going to bed. let me know what you think :)
<kkini> It looks to me like that call of curl is only used to find out what its exit code is, no?
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ git checkout grahamc/nix-help
<clever> gchristensen: lol, i already have you added as a remote!
<gchristensen> oh hehe cool!
<gchristensen> I'll wait for you to test, then
<iqubic> Does systemd have a screen locker service?
<rosa> if i set nixos to use boot flag will that cause its grub to be loaded instead of fedora's grub?
<kkini> From what I can tell it seems like it's trying to check for the presence of the .xz file on the server and then falling back to .bz2 if the .xz didn't exist
<iqubic> rosa: nixos has no control over what grub is run. You need to set that up via the bios.
<rosa> how do i do that
<gchristensen> clever: ok I'm going to bed, let me know what you think :)
<clever> gchristensen: ive got output for 2 machines
<rosa> im gonna see if copying /mnt/boot to /boot lets me boot nix
<grahamc> clever can you run both with -m too?
<clever> grahamc: gist updated
<ldlework> infinisil you around?
<infinisil> I am
<infinisil> But I don't have much time, it's rather late
<grahamc> Nice, are they correct clever?
<ldlework> which works real good
<ldlework> but now I want to switch to an org-mode based config, so I need to run emacs with a few commandline options against a file init.org to produce the init.el that should be eventually symlinked
<kkini> I guess nix-prefetch-url doesn't call the curl executable, but rather uses libcurl
<clever> grahamc: at a glance it all looks correct
<infinisil> grahamc: If you want another data point: https://git.io/vd1Xv
<kkini> Does it still obey the same proxy environment variables? And if so, is nix correctly propagating the environment variables to nix-prefetch-url...? hmm
<infinisil> which is correct
<grahamc> infinisil all correct?
<grahamc> Cool!
<ldlework> infinisil basically, instead of using home.file directly, how can I execute emacs on one of the files and then add the output?
<grahamc> Thank you both for testing!
<kkini> oh wow, I might have been missing something important -- the error actually says "SSL connect error" rather than a timeout
serhart has quit [(Quit: serhart)]
<kkini> here's the actual output: http://sprunge.us/bBcL
<infinisil> ldlework: Something like home.file."foo".source = readFile "${((pkgs.runCommand "init" {} '' emacs <foobar> > $out/init.el '').outPath}/init.el");
<rosa_> can nix boot entirely in RAM?
* ldlework tries to parse this
<infinisil> ldlework: But I thought org mode didn't require this, seems a bit annoying to do
<rosa_> As in the live os
<ldlework> infinisil you need to export org to el so emacs can load it
<rosa_> Can it boot and operate entirely in ram
Nobabs27 has joined #nixos
Nobabs27 has quit [(Remote host closed the connection)]
<ldlework> infinisil ugh I don't quite understand this syntax
<grahamc> Clever does anything stick out as very important, basic info needed for helping people on IRC? If not I think it is ready to merge and replace the issue template.
<clever> grahamc: where the config.nix comes from
<grahamc> Oh? :o
<infinisil> grahamc: NIX_PATH?
<infinisil> ldlework: Read through the nix syntax section in the nix manual
<ldlework> I have!
<ldlework> are your quote right?
<infinisil> maybe a bit off, i didn't run this
<rosa_> I meant as in can the nix live graphical cd boot entirely in ram leaving the cd drive or usb free to use for other purposes
<clever> rosa_: both the kexec and netboot images run 100% from ram
<clever> rosa_: this build of nixos, contains just a kernel, initrd, and the kernel cmdline
<clever> rosa_: and all you need to add, is a way to boot that, and then it can run without the boot media
<clever> my kexec script just runs that via kexec
<rosa_> Ok
<ldlework> infinisil I don't understand what the first argument to run command is
<infinisil> ldlework: The name of the derivation, can be anything
<ldlework> I see
<ldlework> infinisil so I guess this is run once emacs is already installed?
<ldlework> or do I use the set (second arg) to set builtInputs?
<ldlework> (also where is runCommand documented?)
<eqyiel[m]> how can I prevent gdm from restarting every time I run nixos-rebuild switch? afaict, this is the cause of it: https://github.com/NixOS/nixpkgs/pull/28053#issuecomment-325196778 but I don't think gnome would work at all in its current state if I just got rid of all instances of config.system.path
<ldlework> I think I get it ....
<ldlework> ninja'd
<clever> ldlework: runCommand "name" { buildInputs = []; } "script";
<ldlework> Will the derivation inherit the buildInputs of the parent derivation
<ldlework> like if I've "enabled" the Python package with home-manager, will this derivation use the installed emacs?
<clever> nope
<ldlework> So I do need to add emacs as a build input if I'm going to run emacs in this derivation
<rosa_> Does nix just use symlinking?
<clever> infinisil: yeah
<rosa_> Or does it take advantage of unionfs
<clever> rosa_: symlinks as far as the eye can see!
<ldlework> Nix with Union filesystems would be neat
<rosa_> Lol
<clever> rosa_: nix can also use hardlinks to handle dedup
hexamod has joined #nixos
sigmundv__ has quit [(Ping timeout: 240 seconds)]
serhart has joined #nixos
<infinisil> I just used hardlinks today to organize my ripped movies into a folder structure like ./quality/{bluray,dvd} ./format/{mp4,mkv} ./language/{ger,eng,jpn}
<infinisil> works rather well
<ldlework> infinisil do you have a blog
roconnor has joined #nixos
roconnor_ has joined #nixos
roconnor has quit [(Ping timeout: 248 seconds)]
<infinisil> I do not
marusich has quit [(Ping timeout: 255 seconds)]
mkoenig has joined #nixos
<Drakonis[m]> remember that nixpkgs fork that tried to support freebsd? they dropped freebsd and now focuses on linux
paraseba has quit [(Remote host closed the connection)]
<infinisil> lol, link?
roconnor_ has quit [(Quit: Konversation terminated!)]
taktoa has joined #nixos
rosa_ has quit [(Quit: rosa)]
<ldlework> Hmm somehow my shell got messed up and I can't run home-manager switch anymore
<ldlework> it says that NIX_PATH is not set
<ldlework> what happened?!
<ldlework> what even set NIX_PATH in the first place...
<ldlework> infinisil any idea?
rosa has quit [(Remote host closed the connection)]
paraseba has joined #nixos
contrapumpkin has joined #nixos
hexamod has quit [(Ping timeout: 240 seconds)]
<ldlework> Is there a thing I'm supposed to source?
Wizek_ has joined #nixos
<infinisil> I'm not sure how it works on osx
xdelv has quit [(Ping timeout: 240 seconds)]
<infinisil> but there should be something in ~/.nix-profile to source
<infinisil> I think the installation process should mention it
tmaekawa has joined #nixos
iqubic_ has joined #nixos
<ldlework> I see source $HOME/.nix-profile/etc/profile.d/nix.sh but it doesn't exist
iqubic_ has quit [(Remote host closed the connection)]
iqubic_ has joined #nixos
iqubic_ has quit [(Remote host closed the connection)]
<infinisil> weird, no idea about that
tmaekawa has quit [(Client Quit)]
<ldlework> I'll just reinstall it
iqubic_ has joined #nixos
iqubic has quit [(Ping timeout: 255 seconds)]
iqubic_ has quit [(Remote host closed the connection)]
<infinisil> maybe taking a look at the installation script would help
iqubic has joined #nixos
riclima has joined #nixos
schoppenhauer has quit [(Ping timeout: 240 seconds)]
schoppenhauer has joined #nixos
<ldlework> This fails unless I comment out the line 22
<ldlework> It says "/private/tmp/nix-build-init.drv-0/.attr-0: line 1: /nix/store/svkr5myyqvygznm0s5nid3k65kcvr9lx-init/init.el: No such file or directory"
<infinisil> ldlework: Does this emacs command output the compiled version to stdout?
<infinisil> and you need to mkdir -p $out too
<ldlework> yeah it does
<ldlework> that got me further
<ldlework> :)
<infinisil> ldlework: Oh and you can also do `readFile ./.emacs.d/init.el` instead of the sting thing there
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/874a3c033c (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<infinisil> ldlework: Unless you need something dynamic with strings
<ldlework> what line?
riclima has quit [(Ping timeout: 248 seconds)]
<infinisil> 8, but you're not using this line here really, so I'm not sure what you need
<ldlework> oh
<infinisil> just thought I'd let you know that this works too
nh2 has quit [(Quit: Leaving.)]
<ldlework> now it says that it can't find assets/org-build.el during the init derivaition build
<ldlework> does the inner build not have access to the files relative to this nix file?
<infinisil> It does not have access to the actual files, but you can use ${assets/org-build.el} instead of "assets/org-build.el" in the build command to make it work
<ldlework> what does that do exactly?
<infinisil> this will import assets/org-build.el into the nix store, and put the path /nix/store/<hash>-org-build.el at ${assets/org-build.el}'s place
ivanivan has joined #nixos
<ldlework> huh
<infinisil> where assets/org-build.el is right next to the nix file you've written this in
<ldlework> right
<infinisil> That's why you can also do `home.file.".emacs.d/init.el".source = ./init.el; where an init.el is next to that nix file
<ldlework> yeah
<ldlework> infinisil what if I want to import a file into that build without referring to it?
<ldlework> like I don't have a bash command that needs that file denoted at the cli
<ldlework> but that file needs to exist
<infinisil> i don't get that
<ldlework> like we used the "${ }" syntax to ensure that the file referred to was copied int othe build and made available
<ldlework> how can I get another file into the build without referring to it in the build script?
<infinisil> You can't
<infinisil> Nix lives in a sandbox
<ldlework> IE without using the "${ }" syntax
<ldlework> lol
<ldlework> Sure, but I can't import a file with something in the env set?
<infinisil> the builtins commands are the only thing that can talk to the environment, which are evaluated pre-nix-evaluation
<ldlework> I have to do `touch ${init.org}` just so it exists?
<srhb> Does anyone else experience the vim nix syntax support tends to count indents in comments and screw up everything? Is there a workaround?
<ldlework> infinisil but you see how that's inconvinenet right?
<srhb> (like, say you had a comment such as # foo = { ... -- it will actually count the { as increasing the indentation of the following non-comment-line_
hamishmack has joined #nixos
<infinisil> ldlework: Nix can't write files
<infinisil> to ~ or so
<iqubic> Why is it that my computer goes suspends itself after being idle for some time? Is that a native property of the linux kernel, or a NixOS thing.
<ldlework> infinisil I just mean whatever happens to with "${ }" to make that file available!
<ldlework> obviously nix does ^
<iqubic> Because this also happened on Gentoo too.
<ldlework> we just went over it
<infinisil> ldlework: Nix isn't made for that, it's not a general purpose language
<ldlework> I have no idea what you're talking about lol
<ldlework> in the bash
<ldlework> the derivation build script
<ldlework> I did `emacs somefile.el`
<ldlework> and you were like the file isn't there
<iqubic> ldlework: You can't write games in nix.
<ldlework> but wrap it in "${somefile.el}"
<infinisil> ldlework: It can only put stuff in /nix/store, and only with the correct hash via derivations
<ldlework> and it'll be there
<ldlework> yes!
<ldlework> so
<ldlework> there should be a way to add a file to the store for a runCommand build
<iqubic> why are we talking about emacs? What is the issue here?
<ldlework> without having to refer to the file in a string template in the build script
<ldlework> via ${} syntax
<srhb> ... why?
<infinisil> ldlework: Why do you want to include a file in a build if you're not going to use it?
<ldlework> because I don't need to actually DO anything to that file in the bash script
<ldlework> something ELSE already expects that file to exist
<ldlework> something ELSE already expects that file to exist
<ldlework> so doing
<ldlework> ''touch ${somefile.el}; somescript"
<iqubic> Why do you need somefile.el to exist?
<infinisil> I don't get it
<ldlework> its stupid
<ldlework> infinisil I am going to use the file
<ldlework> I just don't need to refer to the file as a command line argument
<ldlework> holy shit
<infinisil> Can you make a concrete example with a usecase?
<ldlework> this is mind bending lmao
<ldlework> infinisil we -literally just went over an example-
<ldlework> and you said use "${}" to get the file into the build
<ldlework> I just so happened to need to pass that filename as a commandline argument to that script
<ldlework> I have another script which DOES NOT ACCEPT AN ARGUEMNT
<ldlework> but nonetheless relies on another file with a known filename
<ldlework> just like the first file we imported with "${}" I need that file in the build
<ldlework> so when I run script_with_no_args
<ldlework> it can find it...
* ldlework headdesks
<iqubic> This is not a concrete example, but rather an abstract explanation.
<infinisil> then you do cp ${./somefile.el} .
<infinisil> then you do cp ${./somefile.el} somefile.el *
<ldlework> infinisil doesn't referring to the file already copy it there?!
<infinisil> nope, referring to it just inserts the /nix/store/<hash>... string there
<ldlework> Aha
<infinisil> if you need it in the current directory you need to copy it manually
<ldlework> neat OK that makes sense
<infinisil> actually symlinking would be better
<ldlework> OK
<ivanivan> I'd like to use NixOS at work, but haven't figured out how to write custom nix expressions for some of our internal tooling.
<ivanivan> Is it feasible to introduce the nix package manager on Ubuntu and continue using things like apt-get and pip for some things, while using nix for others?
<srhb> ivanivan: Yeah, absolutely.
<iqubic> Sure.
<ivanivan> My end goal is to switch to NixOS, but I need to make it a gradual transition.
<iqubic> There are instructions on how to do that on the nix home page.
<srhb> ivanivan: What I've done is mostly package up things for myself (for consumption on my NixOS laptop) and eventually I just snuck the expressions into the repos themselves, making them immediately supported for nix on other OS'es.
<srhb> That's just random for-work tooling.
<infinisil> srhb: Regarding your vim nix problem, you could try out the other vim nix plugin, there are at least 2 out there :)
<srhb> infinisil: Oh, I didn't realize that.
sigmundv__ has joined #nixos
<iqubic> ldlework: Why do you need emacs and somefile.el?
<iqubic> What are you doing?
<ivanivan> srhb: great advice, thanks!
<ldlework> infinisil you are seriously one of the most helpful people I've run into in a long time its crazy ❤️
<infinisil> Heh thanks ;P
<ldlework> iqubic I'm building my init.org file into init.el before adding to my home directory with home-manager
<vaibhavsagar> ivanivan: we run NixOS in production and my boss (the head of the DevOps team) runs Nix on Ubuntu and refuses to switch
<ldlework> using runCommand I'm doing that inside of an inner-derivation build and the nature of the environment is just foggy to me still since I'm very new
<srhb> vaibhavsagar: People are weird :-)
<ivanivan> vaibhavsagar: what's his reason?
<vaibhavsagar> he has a setup that he likes a lot
<ivanivan> ah, yeah that can be hard to let go of
<ivanivan> i've been transitioning from mac to linux, and jumping straight into NixOS was too big a leap all in one go
<vaibhavsagar> I think it's a net benefit to Nixpkgs because he tries to fix breakages with Nixpkgs on Ubuntu
<vaibhavsagar> same here, I have a NixOS laptop (this one) and an Ubuntu laptop with Nix on it
<vaibhavsagar> my solution to changing computing environments: get a new laptop and transition incrementally
<infinisil> I went from mac to nixos in one leap, took me while until I felt comfortable with it though
<ldlework> I'm using Nix on OSX!
<infinisil> Occasionally I still have to use macOS because some programs don't (yet?) run on NixOS
<srhb> ugh, nixifying my home config is a looot of work.
<ivanivan> the biggest hurdle I hit with nixos so far was trying to build a python application
<infinisil> That is, android-studio, which doesn't work on my nixos, possibly due to not having any DE because it works in a VM with KDE. And matlab, which is pretty big and would take a while to package
<srhb> ivanivan: Oh?
<srhb> ivanivan: In my experience, the python buildPackage and friends are very neat.
<ivanivan> yeah, could be the fact that I know very little python
* srhb nods
<vaibhavsagar> I've had a couple of dealbreakers resolve as I've gotten better at Nix
<ivanivan> vaibhavsagar: that's encouraging to hear
<vaibhavsagar> my current one is that my external audio DAC doesn't seem to work on NixOS
<ldlework> srhb are you using home-manager?
<ldlework> its pretty awesome
<ldlework> Oh you're probably on NixOS
<srhb> ldlework: Just started using it the other day. I only have git config and a few others so far. Now starting with Vim.
<vaibhavsagar> don't really think I can fix that one with more Nix
<srhb> ldlework: home-manager is still relevant on NixOS.
<ldlework> srhb nice me too :D
<infinisil> I'm particularily proud of this of my home-manager vim config: https://github.com/Infinisil/home/blob/master/console.nix#L153-L154
<srhb> infinisil: Yes, that's useful. :)
<infinisil> This fetches the rust source code and puts it into vims config for racer
<srhb> Reminds me of my "hmm, how do I serve the riot web client from a server -- oh right, I'm using Nixos"
iyzsong has joined #nixos
<srhb> Just substitute in the riot web package as the http root and presto.
<srhb> That feeling never gets old :-P
<infinisil> Ohh, similar to what I'm doing here: https://github.com/Infinisil/system/blob/master/modules/ssh.nix#L25
<srhb> Yep, exactly.
<infinisil> So beautiful
<infinisil> Going to bed now, see ya (no I'm not american, it's 06:45 for me :P)
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<srhb> infinisil: Sleep well (just got up, same time here :-P)
<infinisil> heh thanks
serhart has quit [(Read error: Connection reset by peer)]
hellrazor has joined #nixos
serhart has joined #nixos
hellrazo1 has quit [(Ping timeout: 258 seconds)]
<srhb> Hmm. programs.vim.plugins = [ "github:LnL/vim-nix" ] and similar github plugins don't seem to work in home-manager, what gives?
<srhb> error: attribute ‘github:LnL7/vim-nix’ missing
<ldlework> I have the following, and my init.el is getting rendered out correctly, however I'm not getting any emacs packages in my .emacs.d https://gist.github.com/dustinlacewell-wk/cb1a0cef348c752907ef3f514ae14703
<ldlework> pretty sure it was installing packages for me before...
<ldlework> hrmm
* ldlework scratches head
notdaniel has joined #nixos
zraexy has quit [(Quit: Leaving.)]
<srhb> Oh, the name is just the last part..
zraexy has joined #nixos
<srhb> ldlework: less `which emacs`
<srhb> ldlework: I think you'll see an added site lisp path including your packages.
<srhb> ldlework: They don't get merged into ~/.emacs.d afair
<ldlework> oh huh, my nix-profile isn't on the path wtf
<srhb> O_o
riclima has joined #nixos
<ldlework> oh I see
<srhb> That seems.. Suboptimal :D
<Enzime> has anyone dealt with compiling Java through an IDE with AWT?
<ldlework> wait hmm
<Enzime> I'm getting java.lang.UnsatisfiedLinkError for libXxf86vm.so.1
rosa_ has joined #nixos
<rosa_> once nix is installed how do I enable wifi
leat has quit [(Ping timeout: 248 seconds)]
<rosa_> also how do i install firefox in the mnt nix
<srhb> rosa_: Nix, as in just the package manager?
<srhb> rosa_: This sounds like things that work on NixOS, not Nix itself.
<rosa_> NixOS
<srhb> Ah, okay.
<srhb> Do you want to use network manager?
<rosa_> Yes
endformationage has quit [(Quit: WeeChat 1.9.1)]
<srhb> Especially networking.networkmanager.enable
<rosa_> is there a reason it is not enabled by default?
<srhb> rosa_: Yes, there are other possible choices.
<srhb> rosa_: You might want wpa supplicant, or connman, or (...)
<srhb> And network-manager is only a typical choice for laptops and desktops, really, not servers.
<rosa_> so do i add it in the nix config then re run nixos-install
<srhb> rosa_: Are you inside your booted system or on the installer iso?
<rosa_> installer iso
<srhb> rosa_: Then yes, you can just rerun nixos-install
<rosa_> ok
<srhb> On your booted system it will be nixos-rebuild switch, just for reference.
<rosa_> what happens if i change grub version to 1
<srhb> rosa_: It won't support efi boots, for instance.
<srhb> There are probably other version differences between grub 1 and 2.
<rosa_> would it be possible to boot grub2 from grub legacy
<srhb> No idea.
<rosa_>
<rosa_> ok
notdaniel has quit [(Quit: Leaving)]
jgertm has joined #nixos
roi_du_silence has joined #nixos
<rosa_> it says i cannot use networking.networkmanager with networking.wireless
<srhb> rosa_: Which is true, networking.wireless is the wpa_supplicant driven wifi.
<rosa_> ok
<iqubic> That's a really stupid name for that option.
<srhb> Yes.
<iqubic> I ran into that pitfall when getting NixOS up and running myself
<srhb> iqubic: It shouldn't be too hard to make a PR changing that :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg opened pull request #30428: docbook: put DTDs in $out/share/xml instead of $out/xml (master...f/docbook) https://git.io/vd1SC
NixOS_GitHub has left #nixos []
<srhb> It should probably come with a proper deprecation warning though.
<iqubic> srhb: I don't really care all that much to be honest
<srhb> OK.
<rosa_> "Created 21408 symlinks in environment" lol
<srhb> rosa_: yay nix. ;-)
<rosa_> Lel
isHavvy has joined #nixos
<rosa_> could u make it so nixos-install skips all packages if they are already installed rather then attempting to install then skipping
<rosa_> including downloading
<srhb> It will skip anything that's already downloaded, afaik.
Havvy has quit [(Ping timeout: 248 seconds)]
<rosa_> But it still downloads every package
<srhb> Only the needed ones.
<rosa_> when nix os install is ran again after a installation where does it read it is progress from
<rosa_> its*
<srhb> It's installing into /mnt/nix/store usually, anything that's already present need not be updated.
<rosa_> if i installed nix then rebooted then attempted to install nix again on the exact same partition i installed nix why does it download all the packages again
riclima has quit [(Ping timeout: 255 seconds)]
<srhb> rosa_: Oh, hm, I didn't think it did. It might actually do some bootstrapping things.
<rosa_> it should have an install log that lists all installed packages in the same location as it is config file then skip downloading packages that are already present
<srhb> rosa_: My approach is to just set up things for booting and networking connectivity and then boot the new system as soon as possible, meaning I can use nixos-rebuild switch instead.
<srhb> I doubt that's a priority as that functionality is already offered by nixos-rebuild.
<srhb> And the log approach would probably not be deemed very nixy.
<rosa_> what does nixos rebuild do that nixos install doesnt
<srhb> Exactly what you're requesting.
<srhb> No redownloads of anything already present.
<rosa_> Why not make the install able to do that aswell?
<srhb> I'm not saying it's a bad idea.
<rosa_> or if the install detects a already present nix use nix rebuild instead of continuing
riclima has joined #nixos
<srhb> It can't use it *instead* since it needs to do more things than nixos-rebuild to bootstrap the system.
<srhb> Otherwise it would be trivial to fix.
Mateon1 has quit [(Ping timeout: 240 seconds)]
<rosa_> Ok
<rosa_> Wait if that is the case then why does it even skip installing packages already present
<srhb> rosa_: There's two different mechanisms at play. One part is bootstrapping done by nixos-install, as far as I know, and apparently (per your tests) that does not skip packages
<srhb> rosa_: The other is nixos-install calling nixos-rebuild
<srhb> rosa_: nixos-rebuild uses the regular nix mechanisms to avoid doing work twice.
<srhb> rosa_: (That is, skip already present store paths)
<ldlework> srhb :( I am executing the emacs that gets installed and I don't get any packages :(
<ldlework> open -n -a ~/.nix-profile/Applications/Emacs.app
<ldlework> where would those site packages even be installed?
<srhb> ldlework: In the store
<ldlework> How is emacs accessing them though?
<rosa_> then why cant is check for existing packages before it attempts to download them
<srhb> ldlework: In my case, my `which emacs` contains an export EMACSLOADPATH containing that store path
<rosa_> as it basically downloads them for nothing
<ldlework> what do you mean `which emacs` contains it?
<rosa_> also why doesnt xorg auto start when booting nix os
<srhb> rosa_: You can check nixpkgs/nixos/modules/installer/nixos-install.sh to figure it out if you're interested in fixing it :)
<srhb> rosa_: It does if you enable it.
<rosa_> How do i enable it
<srhb> rosa_: Check man configuration.nix or the nixos options page
<srhb> rosa_: It has a rather spiffy search feature
<srhb> rosa_: You might want to also look for your desktop environment of choice, etc.
<srhb> ldlework: I mean the file that's presumably similar to Emacs.app on MacOS
<ldlework> srhb I also have a terminal emacs in bin/ but it doesn't have req-package or use-package either
<srhb> ldlework: Here's the contents for me: http://lpaste.net/6929055684776427520
<srhb> ldlework: That store pat you see, ending with -emacs-packages-deps contains the packages I specified in home-manager.
<srhb> path*
<iqubic> Emacs for me is in /run/current-system/sw/bin/emacs
<iqubic> Is that bad?
<adisbladis> iqubic: That's normal
<srhb> iqubic: Well I doubt that's your profile path.
<ldlework> srhb OK I have the same thing and the packages are in there
<iqubic> srhb: No I don't think it is.
<ldlework> so wtfff
<srhb> iqubic: It's usual for your system wide installation, but not user.
<rosa_> Its already enabled https://i.imgur.com/VwxBzMv.jpg
<srhb> ldlework: Are you sure home-manager sets up loading of the packages? I mean, doesn't it just make it available?
<iqubic> srhb: I only install stuff system wide.
<srhb> rosa_: Did you nixos-rebuild switch with that?
<srhb> iqubic: Then it's normal, yes.
<ldlework> srhb nah it uses emacsWithPackagesNG
<ldlework> whatever that is
<ldlework> srhb and afterall the packages are there
<ldlework> and it does seem that I can require them now
<ldlework> I'm super confused haha
<srhb> OK, so everything is working as intended. :-P
<ldlework> maybe its too late for nix
<srhb> rosa_: Oh, I just noticed the error at the bottom.
<srhb> rosa_: That doesn't look good!
<srhb> rosa_: Do you perhaps require special drivers for your graphics card?
<srhb> rosa_: We might need to see some logs from X
<rosa_> ill try booting with nomodeset
jgertm has quit [(Ping timeout: 248 seconds)]
<srhb> rosa_: OK :) If you want to persist that, it's boot.kernelParams = [ "nomodeset" ];
<rosa_> ok
<rosa_> By the way how do u auto patch executables
<srhb> patchelf and friends.
<neonfuz> anyone here use wayland on nixos?
<neonfuz> can I just make it a new lightdm entry? or no
<fearlessKim[m]> I've got a failing python test "out = subprocess.check_output(['ps', 'xo', 'pid,cmd'], stderr=DEVNULL)", I think it fails because it can't find the "ps" binary. How can I get the path to "ps" ? pkgs.ps is the wrong package it seems
<srhb> fearlessKim[m]: procps
<srhb> fearlessKim[m]: protip: readlink -f `which ps`
<fearlessKim[m]> right I did find the path in store but my brain erased the "proc" part straight to the "ps" part xD
<srhb> fearlessKim[m]: Oh :-P
Isorkin has quit [(Ping timeout: 240 seconds)]
<srhb> phew, that's vim nixified...
<srhb> only (oodles) to go.
roi_du_silence has quit [(Ping timeout: 248 seconds)]
jbgi has joined #nixos
roi_du_silence has joined #nixos
<rosa_> actually u should use -e instead of -f
<srhb> rosa_: Oh?
* srhb reads the manual
<rosa_> -e makes sure all paths exist, f makes sure all paths EXCEPT the last path exist
<srhb> I see, thank you. :)
<srhb> If one of them does not exist, Nix is broken though.
<rosa_> lol
<srhb> But I'll try to remember to use -e, that seems more sensible.
<rosa_> take a look at me script for an example https://github.com/mgood7123/UPM/blob/master/Files/Convertmulti
<rosa_> my*
<srhb> My god, so much shell script :D
<rosa_> cx
Mateon2 has joined #nixos
<rosa_> although i just realized that uses -f instead of -e
<rosa_> is their an alternative to nix-env -i
spacekitteh[m] has quit [(Changing host)]
spacekitteh[m] has joined #nixos
spacekitteh[m] has quit [(Changing host)]
spacekitteh[m] has joined #nixos
<srhb> rosa_: What do you mean an alternative?
<srhb> rosa_: What do you want it to do?
<rosa_> install git
<srhb> As your user? On your system?
<srhb> What's wrong with nix-env -i ?
<srhb> For all I know, firefox is an alternative to nix-env -i, without more criteria :-P
<rosa_> lol
<srhb> How is it that often, systemctl status unit or journalctl -f unit is missing lines, but if I run the ExecStart manually, those lines really are sent to stdout/stderr ?
<srhb> So mysterious...
<srhb> er, journalctl -u unit
rosa_ has quit [(Quit: rosa)]
odi__ has joined #nixos
jbgi has quit [(Ping timeout: 260 seconds)]
<mcicon> :q
mcicon has quit [(Quit: leaving)]
rosa_ has joined #nixos
<rosa_> It took 6 mins to install git ._.
<srhb> rosa_: Time spent where?
<srhb> Downloading?
odi_ has quit [(Ping timeout: 248 seconds)]
roi_du_silence has quit [(Read error: Connection reset by peer)]
kkini has quit [(Remote host closed the connection)]
<rosa_> no
kkini has joined #nixos
<srhb> Perhaps you want gitMinimal
<rosa_> doing nothing, probably 1 min spend downloading and installing
<rosa_> spent*
<srhb> Is your disk with the /nix/store partition slow?
<rosa_> i dont know
<srhb> Oh well. I do not experience slow installs.
<srhb> But /nix is also SSD backed here.
<rosa_> weird, 26 seconds to display "installing kate"...
<rosa_> 45 seconds to start the actual download
<srhb> Oh ok
<srhb> I think I know what's going on
<srhb> try nix-env -iA nixos.kate
<srhb> When you use -i all packages have to be evaluated up to their name
<srhb> By using -iA you're going by attribute path.
<srhb> Which means less evaluation.
<rosa_> ok
<srhb> At least, that cuts down on the first time before it even picks the derivation :)
<rosa_> Ok
zraexy has quit [(Quit: Leaving.)]
CHIPPY has joined #nixos
zraexy has joined #nixos
<rosa_> why doesnt it just background download them
<srhb> It downloads once it knows what to download. What would background downloading help?
<rosa_> 1second downloading and 1 second fetching is 2s per package
<srhb> You can download multiple at a time, if you want
<rosa_> How
<srhb> Let me look up the options for you...
<rosa_> at the moment yum is the only package manager that has background downloading of packages (although it is 3 max background per package
<srhb> This should affect parallel downloads as well.
<srhb> And no, yum is not the only one. :-)
<rosa_> ok
<rosa_> how do i aquire virtualbox on nix
<srhb> nix-env -qaP | grep virtualbox
<rosa_> ok
<srhb> That searches for packages with virtualbox in them
<srhb> It might be unfree.
<srhb> In which case you'll want to enable unfree packages
<rosa_> god i really need to unclutter my repo
<rosa_> 47237 files total in my git repo
<srhb> Ouch!
<rosa_> x.x
<srhb> 1472 in my config repo and going down.
<rosa_> 28% 127mb
ambro718 has joined #nixos
leat has joined #nixos
<rosa_> 70% 180gb
<fearlessKim[m]> I've just added an outputs = ["out" "man"] and "cp file $outputMan" but then I get "failed to produce output path '/nix/store/z52vkx4ndwc7nabxbnh1553z6rfzmygr-alot-0.6-man' ?!
<rosa_> mb*
iqubic has quit [(Remote host closed the connection)]
<srhb> fearlessKim[m]: Does man actually exist in the original result?
<rosa_> 82% 202mb
<fearlessKim[m]> srhb: id est ? there is no man folder created if that's what you are asking
<rosa_> 86% 250mb
<srhb> rosa_: What is this you're spamming us with? :)
<srhb> fearlessKim[m]: I think we need more context on what you're doing.
<fearlessKim[m]> I created $out/man and the error disappeared :s
<rosa_> 89% 329mb
<srhb> fearlessKim[m]: Ah, good.
<rosa_> 100% 347.70 mb total in my git repo (◉-◉)
<rosa_> omg wtf was i boot into the live iso the entire time?
<srhb> rosa_: Why?
<srhb> rosa_: That would certainly explain the slowness...
<srhb> check the output of mount
<srhb> heh :P
<srhb> Yeah, looks like it.
<srhb> Yep, looks like the iso.
<rosa_> oh yea i logged on to the live iso to add the nomodeset config option
<rosa_> x.x
<srhb> Well, things should go a bit faster once you're on your real system :P
* srhb finds this a bit funny :-P
<rosa_> n now i do not have it ;-;
<rosa_> stupid irc ;-;
<srhb> Have what?
<rosa_> gimme my history ;-;
<srhb> boot.kernelPackages = [ "nomodeset" ]; ?
riclima has quit [(Ping timeout: 240 seconds)]
b has quit [(Quit: Lost terminal)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] teto opened pull request #30429: init gpg python bindings + Alot: 0.5.1 -> 0.6.0 (master...alot) https://git.io/vd1Qf
NixOS_GitHub has left #nixos []
zarel has joined #nixos
<rosa_> i use nixos-rebuild switch right?
<srhb> rosa_: Are you booted or in the iso?
<srhb> rosa_: nixos-rebuild switch should be ran from the installed system, not the iso.
<rosa_> Iso
<sphalerite> srhb: I haven't noticed that comment indentation behaviour, but I also have some issues with its indentation in general...
<srhb> sphalerite: I think LnL's version is behaving slightly better for now...
<sphalerite> Oh, just saw infinisil answered as well
<srhb> At least, my trivial tests didn't show the same problem.
<sphalerite> Righg
<sphalerite> Right*
jbgi has joined #nixos
<sphalerite> What bothers me about the one I'm using is that it doesn't like having comments indented on an otherwise empty line
<srhb> Oh.
<srhb> Which one are you using?
<sphalerite> I think it's LnL's but I'm not sure (vim-nix from vimPlugins)
<srhb> Yeah, that's the one.
<srhb> Is anyone using taffybar with home-manager? I just get a blank bar. Am I supposed to inject my configuration elsewhere?
JosW has joined #nixos
<sphalerite> infinisil: huh, you still didn't get android-studio working? That's weird... Was it DWM you're using?
<srhb> rosa_: What's your configuration.nix ?
<srhb> rosa_: I might have misremembered.
riclima has joined #nixos
ma27 has joined #nixos
<sphalerite> Enzime: I've done some AWT things and some swing things for uni and haven't encountered that issue... Which IDE?
<rosa_> ill just try booting xorg without nomodeset to see if I actually require a driver
<srhb> Okay.
arjen-jonathan has joined #nixos
arjen-jonathan has quit [(Client Quit)]
rosa_ has quit [(Quit: rosa)]
riclima has quit [(Ping timeout: 248 seconds)]
<sphalerite> fearlessKim: there's something like moveToOutput or copyToOutput in stdenv for that sort of thing as well
<sphalerite> And I think the name of the variable that the output path goes to is $man, not $outputMan
<fearlessKim[m]> sphalerite arf I first used $man then found $outputMan in https://nixos.org/nixpkgs/manual/#chap-multiple-output
orivej has joined #nixos
schoppenhauer has quit [(Read error: Connection timed out)]
rosa_ has joined #nixos
<sphalerite> I'm not sure, I might be wrong about that last bit
rosa_ has quit [(Client Quit)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/eef496f01c (from 22 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
rosa_ has joined #nixos
<rosa_> booting up xork tok 721 seconds
<rosa_> took*
<rosa_> (Or over 24 mins)
<rosa_> 14*
M-gst has joined #nixos
<hyper_ch> no idea what xork is but seems you need a faster computer :)
<rosa_> xorg*
<hyper_ch> newer cpu and more ram helps :)
<hyper_ch> also 960 pro ssd ;)
<srhb> 14 minutes is not normal on any hardware, I'd say.
<rosa_> xorg always takes ages without nomodeset
<srhb> Not here.
<srhb> Anyway, if that fixes it, I guess enabling that is the answer.
<rosa_> lol
schoppenhauer has joined #nixos
<hyper_ch> (or try wayland)
<sphalerite> rosa_: that's pretty terrible! What's your hardware?
<rosa_> i dont know
<srhb> cat /proc/cpuinfo; free -h
<srhb> To start...
<srhb> Though I really can't imagine this is just a "slow hardware" issue.
<fearlessKim[m]> looks like some systemd blocking service timeout, like when you are blocked waiting for dhcp
<srhb> Except it's X blocking, as far as I can see.
<srhb> So presumably some graphics shenanigans.
<hyper_ch> you're in 17.09? there have been issues with dhcp
<srhb> That doesn't look related.
<hyper_ch> because fearlessKim[m] mentioned dhcp
* sphalerite sent a long message: sphalerite_2017-10-15_08:04:37.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/VlUJYWwEckwDZzIRwSOhhEmz>
<sphalerite> disasm_: ^
<adisbladis> rosa_: What graphics hardware do you have?
<sphalerite> hyper_ch: yeah dhcp wouldn't cause those hung task warnings.
<hyper_ch> sphalerite: the inner workings of computers are unbeknownst to us mere mortal human beings
<sphalerite> srhb: lscpu is shorter to type than `/proc/cpuinfo` and doesn't replicate the same info for each core ;)
<srhb> sphalerite: Oh, thanks.
<hyper_ch> didn't know about lscpu either
<sphalerite> rosa_: I mean which laptop model? (assuming it is a laptop by pictures)
rosa_ has quit [(Ping timeout: 258 seconds)]
rosa_ has joined #nixos
sophiag has quit [(Ping timeout: 248 seconds)]
<rosa_> installing kate takes 4:44 mins
<sphalerite> with nix-env -iA nixos.kate?
<rosa_> no
<srhb> With what, then?
<sphalerite> because that's how you should install it if you're using imperative installation
<rosa_> installing git takes 1:14 mins
<srhb> rosa_: *how* are you installing things?
<rosa_> nix-env -i
<sphalerite> Use nix-env -iA
<sphalerite> nix-env -i is slow because it evaluates all packages. Someone mentioned this to you earlier as well.
<rosa_> but then it might install the wrong package
<srhb> What, why?
<srhb> Only if you give it the wrong package.
<rosa_> because it doesnt evaluate them
<srhb> In fact, -i is more likely to give you something unpredictable.
<srhb> That's nonsense.
<sphalerite> it's more likely to install the wrong thing without -A
<srhb> -iA specifies an exact attribute path.
<rosa_> ok
<srhb> But four minutes still seems slow (I got about 30 seconds on kate with a lot of X stuff already installed)
<srhb> We will need to know more about your hardware to figure out if your timings are normal.
<sphalerite> rosa_: nixpkgs is like a dictionary/hashmap/map, with strings as keys and lazily evaluated packages as values. If you use nix-env -i it will go over *all* the values and evaluate them. If you use nix-env -iA it will get the particular entry you specified and evaluate only that.
<srhb> If it's a laptop, you can just tell us the model name, otherwise you will need to run some of the suggested commands and paste their output
pie_ has joined #nixos
jbgi has quit [(Ping timeout: 248 seconds)]
<rosa_> ok
<srhb> Hm, do my user overlays not use "upstream" packageOverrides from the global nixpkgs.config ?
rosa_ has quit [(Quit: rosa)]
<srhb> That's... Unintuitive.
rosa_ has joined #nixos
<rosa_> konversation should appear in kde applications menu but it doesnt
rosa has joined #nixos
<rosa> hi
<rosa> wtf /sysinfo isnt working
<rosa> ;-;
<srhb> What's /sysinfo?
<srhb> Never heard of it.
<rosa_> This
<rosa_> System Info: Model: iPad 4 · iOS: 10.3.3 · RAM: 987 MB · Disk Space: 26.72 GB · GPU: PowerVR SGX 554 · Screen Resolution (Portrait): 1536x2048 · Battery: 64% · Uptime: 3d · Theme: Midnight · Font: System Default/16pt · Client: Mutter 1.18 (Build 1725900)
<srhb> Is it a mac thing?
takle has quit [(Remote host closed the connection)]
<rosa_> i think nix is making conversation run slow ;-;
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vd15f
<NixOS_GitHub> nixpkgs/master 4eb6e84 Vincent Laporte: ocamlPackages.javalib: 2.3.3 -> 2.3.4
NixOS_GitHub has left #nixos []
takle has joined #nixos
<srhb> Unlikely.
<srhb> Nix doesn't do anything when you're not installing or removing things.
<tilpner> You can configure automatic optimise and gc, but that probably doesn't apply
<rosa_> well konversation is lagging when it shouldnt be
<srhb> Am I understanding this correctly: System wide nixpkgs.config.packageOverrides do not modify the package set used as nixpkgs for a user?
<srhb> rosa_: Couldn't that be caused by the X server issues you're experiencing?
<srhb> rosa_: Or did you fix that?
<rosa_> apparently so is the kde start menu itself
<srhb> rosa_: Here's my suggestion: Give us the logs from the x server. Give us the information of your laptop make/model or hardware info, specifically GPU information. Fix the xserver. Then see if things are still slow.
<LnL> sphalerite: srhb: yeah that's my plugin
<srhb> rosa_: Without this information, we can't help you.
takle has quit [(Remote host closed the connection)]
<rosa_> ok
<rosa_> n ill just deal with the lag for now i guess
<srhb> That sounds... Unfuriating :-)
<srhb> Infuriating*
<rosa_> Lol
<sphalerite> srhb: yes, that's correct
<rosa_> seems that both cpu's spike to 100 when it lags
<srhb> sphalerite: can I alter this behaviour?
<srhb> rosa_: You'll drive me up the walls if you keep giving us the wrong debug information when I've requested the right debug information :P
<sphalerite> srhb: not really. Best way I can think of is to have a file just for the packageOverrides and import it from both the nixos config and your user nixpkgs config
<srhb> sphalerite: Yeah, making that as we speak. Sadface! I think it's weird that the system nixpkgs isn't what my user uses, somehow.
<sphalerite> Or do nixpkgs.config = import /home/srhb/.nixpkgs/config.nix :)
orivej has quit [(Ping timeout: 258 seconds)]
<srhb> I don't know why I expected that though.
<srhb> sphalerite: Hm, yes...
<rosa_> fk terminal is lagging on auto completion
<srhb> Actually, I can live with that, yes. Thanks. Hadn't considered that. :)
<rosa_> even*
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd158
<NixOS_GitHub> nixpkgs/staging b1d32c0 Vladimír Čunát: aegisub: fixup build with icu-59...
NixOS_GitHub has left #nixos []
* srhb flails
<sphalerite> rosa_: we get it, it's slow. Please stop complaining or help us help you.
<rosa_> wtf i cant execute my executable
<sphalerite> Also consider not working in X until you've fixed it
<rosa_> Fk bash doesnt have "file"
<sphalerite> rosa_: did you build it on nixos?
<sphalerite> nix-env -iA nixos.file
Oida has quit [(Ping timeout: 260 seconds)]
<sphalerite> Executables built for non-nix systems will not work out of the box on nixos because of how its filesystem is organised
<rosa_> ;-;
asdfoiawe has joined #nixos
<rosa_> how do i make it work without recompiling the executable
Oida has joined #nixos
<srhb> The easiest way is recompiling the executable, however, look into patchelf if you *cannot* do that.
CHIPPY has quit [(Ping timeout: 240 seconds)]
<sphalerite> Using patchelf shenanigans or running it in a FHS user env. Both are nasty solution and you should prefer rebuilding it.
ma27 has quit [(Quit: WeeChat 1.9)]
<rosa_> somehow aria2 works on nix out of the box
ma27 has joined #nixos
<rosa_> even though it shouldnt as i am assuming application compiled on nix onlynwork on nix
<rosa_> Even as static
<rosa_> although it seems like my other application still work ._.
<rosa_> Or at least SOME of them
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd15M
<NixOS_GitHub> nixpkgs/staging 7cdbc8b Vladimír Čunát: firebirdSuper: fixup build by using older icu again
NixOS_GitHub has left #nixos []
asdfoiawe has quit [(Ping timeout: 246 seconds)]
<rosa_> guessing because it is dynamically linked instead of statically linked
<rosa_> if i compile an application as statically linked on nixos will or work on non-nix os's
<rosa_> wait i cant because the graphical cd is 64 bit
<srhb> rosa_: Generally it will not work on another system.
<rosa_> ;-;
<adisbladis> Of course a static application will work.
<adisbladis> But generally you don't do that.
<rosa_> Lol
<rosa_> how do i get gcc to compile for 32 bit os on a 64 bit os
<srhb> Do people actually bake in libc and friends when statically linking? I wasn't aware.
<adisbladis> srhb: Typically not with glibc
<adisbladis> More common with musl & friends
* srhb nods
<adisbladis> I do it all the time with go applications. But static linking with go is super easy
<rosa_> go can be compiled? (◉-◉)
<adisbladis> I even do some .deb and .rpm packaging on nix for a client project :3
<rosa_> though go was just a scripting language
<adisbladis> rosa_: No. Go is a compiled language.
<rosa_> (◉-◉)
<adisbladis> Thanks to static linking I don't have to use either distribution :)
rosa has quit [(Ping timeout: 255 seconds)]
<srhb> adisbladis: Yeah, I can't even imagine what it would do to make it work on Haskell...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd1dO
<NixOS_GitHub> nixpkgs/staging 21034a4 Vladimír Čunát: mailcore2: fixup build by using older icu again
NixOS_GitHub has left #nixos []
<srhb> Lots of work.
<rosa_> how do i configure nix for a 32 bit os instead of a 64 bit os
<rosa_> like as an additional config in grub2
takle has joined #nixos
<rosa_> like rebuild
<adisbladis> srhb: Yeah static linking tends to be a bit of a pain with most languages
<adisbladis> srhb: Another thing with go which is great when it comes to packaging is cross compilation. Provided you are not using cgo it's just an environment variable which os/arch you want to target
<srhb> adisbladis: I've had to build a few go projects at work and noticed that that part was very easy and nice.
<srhb> Props to them for that.
thc202 has joined #nixos
ma27 has quit [(Quit: WeeChat 1.9)]
ma27 has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/0f01f8b882 (from 15 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<rosa_> how do i recompile nix config for 32 bit os
<sphalerite> rosa_: gcc compiles for 32-bit with -m32 I beliebe
<sphalerite> Believe
<rosa_> ok
<sphalerite> rosa_: nixpkgs/nixos is generally losing support for 32-bit
<srhb> I think nixpkgs.system = "i686-linux" will theoretically get you there.
<srhb> But I'm not sure how much will break if you just switch it.
<rosa_> Why would it break?
<sphalerite> So I wouldn't recommend it on a 64-bit capable machine
<srhb> I'm not sure it will. I just think the amount of tests and testers compared to 64 bit is very low indeed.
<LnL> that or run nixos-rebuild with --argstr system i686-linux
<adisbladis> And nowadays you won't get any binary packages on i686.
<sphalerite> Yes, and it's not very well maintained simply due to lack of people who need it and care to maintain it
<rosa_> wtf
<sphalerite> adisbladis: that's not quite true, quite a bit of stuff is still built
<rosa_> it doesnt have gcc (◉-◉)
<sphalerite> But yeah, far from everything
hotfuzz_ has joined #nixos
mortum5 has joined #nixos
<adisbladis> sphalerite: Ah. I was under the impression it was no longer happening.
<sphalerite> rosa_: nix-shell -p gcc will get you a shell with gcc available
<rosa_> what is nix's version of gcc
<adisbladis> Anyway. Why would you ever build for i686 on an amd64 machine.
<LnL> the default is 6 but you can get a bunch of different versions
<srhb> rosa_: We have several, The default on unstable 6.4.0
rosa has joined #nixos
<sphalerite> adisbladis: I think it is, just not everything
<rosa_> o god it is downloading gcc
hotfuzz has quit [(Ping timeout: 240 seconds)]
<srhb> Well, of course... You have to rebuild everything.
<rosa_> ill just do nix-env -i gcc
<srhb> What are you trying to achieve?
<srhb> Everything you've said in here today makes very little sense without (and perhaps even with) context.
<srhb> Perhaps we can help you achieve what you're actually trying to do a little easier.
<srhb> Otherwise I will venture that this will be a short jaunt in nix-land indeed.
<rosa_> how closely will gcc "emulate" 32 bit if the -m32 flag is given compared to actually compiling on a real 32 bit os
<sphalerite> rosa_: installing gcc will likely not behave the way you want it to when it comes to linking against libraries.
<sphalerite> All that -m32 does is generate 32-bit code. It likely won't work with linking against libraries (including the libc I think) because you need 32-bit versions available
<LnL> you can install 32bit versions of packages without building them yourself
<LnL> nix-env -f '<nixpkgs>' -iA pkgsi686Linux.hello
<sphalerite> rosa_: resume the previous nix-shell process.
<sphalerite> Cancel that one and resume the old one
<rosa_> how
<hyper_ch> who was it again who unlocks encrypted root zfs remotely?
<sphalerite> And as a general rule, don't stop processes and just leave htem lying around
<adisbladis> hyper_ch: I think it was Mic92
<sphalerite> ctrl-c to stop the current one
<srhb> fg, ctrl+c, or kill %1
m0rphism has quit [(Quit: WeeChat 1.9.1)]
<hyper_ch> adisbladis: can't find it in my log
<sphalerite> fg to bring the old one back into the forground
<adisbladis> Found it in my browser history
<hyper_ch> thx
<rosa_> how do i resume
<hyper_ch> testing this now
<sphalerite> rosa_: again, fg
<rosa_> is 500mb normal for average memory usage
<adisbladis> hyper_ch: Tell me how it goes :) Getting a new home file server in the next couple of weeks so I'm pretty interested in trying it out
<rosa_> for a full graphical distro
<Mic92> hyper_ch: I added it to the wiki
<hyper_ch> adisbladis: testing it on my old notebook
<hyper_ch> Mic92: awesome
<sphalerite> rosa_: memory usage is usually pretty meaningless. Sounds about right for plasma with a couple of applications though
<hyper_ch> Mic92: what I do for not freaking out is provide different UserKnownHostsFile
<hyper_ch> so I can use the same port though
<rosa_> where is the default include directory located
<Mic92> hyper_ch: use a different port
<adisbladis> Super difficult to get the hardware I want for that server though..
<rosa_> for gcc
<rosa_> on nix
jb55 has quit [(Ping timeout: 248 seconds)]
<rosa_> Os
<hyper_ch> Mic92: then more ports need to be opened on the firewall ;)
<srhb> rosa_: Depends on the exact version of gcc, and the exact options used to build it.
<srhb> rosa_: And there's usually not one global include directory at all.
<rosa_> 4.6
<srhb> That doesn't help.
<srhb> rosa_: Try readlink -e `which gcc` as we talked about earlier
<srhb> rosa_: You'll see that it has a specific nix store path based on its exact inputs (dependencies-ish)
phreedom has quit [(Ping timeout: 240 seconds)]
<srhb> Oh, that's the wrapper even..
dywedir has joined #nixos
<srhb> rosa_: Don't make a global include directory in NixOS.
<rosa_> ok
<hyper_ch> Mic92: how does it know to use dropbear?
<hyper_ch> will it automagically use dropbear because it's for the initrd?
<srhb> rosa_: You should read the nixpkgs manual and see how the GNU Hello derivation works.
Itkovian has joined #nixos
<sphalerite> rosa_: again, you should probably consider not working in X since it's so broken on your machine.
<adisbladis> Thinking to make a secondary module using openssh instead of dropbear
<hyper_ch> Mic92: I'm reading it... that's why I have the question but I guess enabling ssh in initrd will default to dropbear
<adisbladis> That's where everthing ssh is defined
MP2E has quit [(Remote host closed the connection)]
<rosa_> o god even tty1 itself lags
<sphalerite> rosa_: did you actually stop X?
<rosa_> as in Alt+F1
<sphalerite> yeah I don't think working in a tty will help if you don't also stop X
<rosa> ill just download the fk nvm
<rosa> is it possible to use network manager without xorg
<sphalerite> yes, using nmcli and nmtui
<rosa_> ok
<TimePath> hm, somehow I have ‘samba-3.6.25’ in my configuration, but I'm not sure where from
<TimePath> I didn't enable it
<sphalerite> TimePath: as a system package, or just in the system closure?
<TimePath> in the system closure, I see a warning when I try to nixos-rebuild
Oida has quit [(Ping timeout: 240 seconds)]
<TimePath> `nix-env -qaP | grep samba` only shows version 4
cfricke has joined #nixos
<sphalerite> it's probably a transitive dependency of something or other. `nix-store -q --tree /run/current-system` can probably help you find it
<TimePath> ooh, fancy
<sphalerite> nix-env -qaP not showing it is odd. It should be there under the attribute name samba3
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 5 new commits to master: https://git.io/vd1F6
<NixOS_GitHub> nixpkgs/master 18774fb Timo Kaufmann: sqldeveloper: 4.1.1 -> 17.2.0
<NixOS_GitHub> nixpkgs/master f824462 Timo Kaufmann: Merge remote-tracking branch 'upstream/master'
<NixOS_GitHub> nixpkgs/master 1e6662d Timo Kaufmann: sqldeveloper: Add a detailed requireFile message
NixOS_GitHub has left #nixos []
<TimePath> it's coming from wine of all things
Oida has joined #nixos
<sphalerite> ah right, probably to implement some obscure old windows API
<srhb> samba has some surprising dependents.
<srhb> I think vlc will also pull it in.
<TimePath> winetricks too
<adisbladis> srhb: Not all that surprising imo
<TimePath> that's more obvious why though :)
<srhb> adisbladis: Eye of the beholder :P
<rosa_> anyway where is the include path for gcc
<TimePath> cheers, I can update to `17.09-beta-1547-g2231575a7d` now
<clever> rosa_: are you using nix-shell?
<rosa_> Yes
<adisbladis> srhb: Playing smbfs urls is not unreasonable for a media player that does networking ;)
<srhb> adisbladis: I suppose not :)
<clever> rosa_: why do you want to find the gcc headers?
<rosa_> so i can include my header
<clever> rosa_: ?
<sphalerite> rosa_: you should be passing a -I flag to the compiler instead probably. Or better, using a proper build system
<rosa_> also
<sphalerite> cmake isn't beautiful but it gets the job done and it's easier than autotools
<hyper_ch> hmm, 1 authorized key required.... but for some reasons it doesn't like providing it with builtins.readfil /root/.ssh/authorized_keys
<TimePath> sphalerite: being not beautiful is a feature
<TimePath> see scons hell
<Enzime> sphalerite: I encountered that issue using IntelliJ IDEA
m0rphism has joined #nixos
<Enzime> I'm using IntelliJ to build/run the program though
<sphalerite> Enzime: huh, that's what I'm using too. Did you get it from nixpkgs?
<Enzime> yep
<Enzime> I just ended up modifying the project settings
<sphalerite> then I have no idea…
<Enzime> sphalerite: it's alright
<clever> rosa_: OS error code 104: Connection reset by peer
<clever> rosa_: try the same command again
<TimePath> I think you can pass --fallback to build from source, too. But, building firefox from source...
<clever> retry is better in that case
<sphalerite> TimePath: will still need to download the source, which might fail in the same way.
<TimePath> true
<TimePath> ironically the source is probably bigger than the binary
<srhb> TimePath: Plus build dependencies..
ma27 has quit [(Quit: WeeChat 1.9)]
ma27 has joined #nixos
<hyper_ch> what does the builtins.readFile fail here https://paste.simplylinux.ch/view/raw/578497b1 ?
<clever> hyper_ch: authorizedKeys must be a list of strings
<clever> as the error says
<rosa_> so basically nixos just compiles everything just like GoboLinux does?
<hyper_ch> ohs... so I can't just readfile it and out put :(
<clever> hyper_ch: you need to put that whole string inside a list
<clever> hyper_ch: add [ and ] around it
<sphalerite> rosa_: it's vaguely similar
<hyper_ch> cool :=
<sphalerite> rosa_: except everything has its output path determined by a hash of the complete build specification, rather than just the name and version number
<rosa_> lol
<rosa_> xD
<hyper_ch> Mic92: cp: cannot stat '/run/keys/initrd-ssh-key': Permission denied --> I tried 0644, 0666 and even 0777 on that file - still Permission denied
<Mic92> hyper_ch: is the directory readable?
<clever> Mic92: nix sandboxes
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd1b4
<NixOS_GitHub> nixpkgs/staging 3932a91 Vladimír Čunát: mapnik: fix build with new icu via upstream patch
NixOS_GitHub has left #nixos []
<hyper_ch> Mic92: 0750 for root:root fro whom must it be readable?
<Mic92> clever: makes sense
<hyper_ch> changed it to 0754 - still Permission denied
<clever> hyper_ch: the problem is that the nix builds happen in a sandbox, and lack access to any files on the host
<Mic92> hyper_ch: remove the quotes around the filename
takle has quit [()]
<hyper_ch> Mic92: I have no quotes around the filename
<hyper_ch> oh wait
grumble2 has left #nixos []
<hyper_ch> that worked
<clever> that will copy the private key into /nix/store and make it world-readable
<clever> and nix will know its a dependency
<hyper_ch> should then the wiki also be adjusted?
<clever> which wiki did you read?
<clever> that was probably tested with sandboxes disabled
<clever> or the key was handled differently
<hyper_ch> testing now if it works
<clever> hyper_ch: read the descriptions on https://nixos.org/nixos/options.html#boot.initrd.network.ssh.host
<hyper_ch> what for?
<clever> it explains the hostkeys
<hyper_ch> it makes it readable... but fail to understand why you point this out to me now
<clever> it also mentions the bootloader secrets
Wizek has joined #nixos
rosa_ has quit [(Quit: rosa)]
<hyper_ch> still fail to understand why you point this out
rosa_ has joined #nixos
<clever> rosa_: what about nix-env -iA nixos.firefox ?
pie_ has quit [(Ping timeout: 260 seconds)]
<rosa_> fk how do i acquire gnu/stubs-32.h
<sphalerite> rosa_: I wouldn't be surprised if htis was related to the locking-up issue
<sphalerite> that is, the firefox failure
<clever> rosa_: how did you enable networing?, dhcp or static ip?
<rosa_> clever: by using networkmanager
<clever> rosa_: did you set networkmanager to manual ip or automatic ip?
<rosa_> i dont know
<sphalerite> clever: did you see that rosa_ also has issues with X hanging and stuff? I suspect it might be just general hardware interaction problems that are causing the downloads to fail
<clever> rosa_: what IP does "ifconfig" say you have?
<clever> and what interface is that IP on?
<sphalerite> clever: https://i.imgur.com/eAduxI3.jpg
<clever> sphalerite: that is a strange error
<sphalerite> indeed. rosa_ still hasn't told us what their hardware is though so no progress on that front
seanparsons has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<clever> sphalerite: the network failures feel like an IP address collision to me
<sphalerite> oh?
<rosa_> even rm is slow
<clever> sphalerite: randomly, the other machine gets a reply for a connection it wasnt expecting, and tells the server to go away
<clever> sphalerite: then when this box retries, the server says the connection is already dead
seanparsons has joined #nixos
<sphalerite> fair enough
asdfoiawe has joined #nixos
mortum5 has quit [(Ping timeout: 240 seconds)]
mortum5 has joined #nixos
ericsagnes has quit [(Ping timeout: 255 seconds)]
ericsagnes has joined #nixos
<srhb> rycee: Are you using the taffybar module in home-manager? I only see your name in the commit log for the file. The unit simply fails for me with no log output.
<hyper_ch> Mic92: I can't get it to wrok... after reboot at zfs password, I can't ping nor ssh into the computer
<srhb> rycee: Nevermind that, I clearly did something wrong. It's working now.
<rosa_> what is 'lc' in C/C++
<clever> mono.out 233 x /nix/store/2ks0wgl55pxfil5yxdz93si65k945b14-mono-4.0.4.1/bin/lc
<clever> rosa_: looks like its part of mono
<hyper_ch> Mic92: tried port 22 and 2222 https://paste.simplylinux.ch/view/raw/74149840
<rosa_> ok
<rosa_> also nix-env -iA nixos.firefox fails aswell
<clever> rosa_: still waiting for the IP stuff i asked above
<rosa_> mono seems to be downloading altho it 83 mb x.x
<sphalerite> rosa_: we can't help you if you don't answer our questions. This applies both to the hardware question to work out why it keeps hanging, and to the networking question to resolve the download failures.
<rosa_> i dont know
<Mic92> hyper_ch: I cannot help you here, you should be able to udhcpc in the boot in the log. your server might get a different ip depending on your dhcp setup
simendsjo has joined #nixos
<rosa_> i am trying
<clever> 2017-10-15 07:18:01 < clever> rosa_: what IP does "ifconfig" say you have?
<rosa_> but if i cant re compile my application then i cant help
<sphalerite> rosa_: what brand is the laptop? Is there a label on the bottom that has a model number?
<sphalerite> rosa_: why not?
<rosa_> asus
<TimePath> if `ifconfig` is missing, `ip a`
<rosa_> downloading mono did not fix it
<hyper_ch> Mic92: server should provide dhcp according to the mac address
<Mic92> hyper_ch: "should"
<hyper_ch> maybe I just ping the whole network ;)
<hyper_ch> gotta get something to eat now
<rosa_> even though mono contains bin/lc
<TimePath> are you sure you didn't mean `-lc` or `ld`?
<simendsjo> I have a Roccat mouse, and I'm an old closed PR as the source for my hacky roccat-tools package. Is anyone else using roccat-tools with nixos and have a better package?
<Mic92> hyper_ch: it is also printed on the screen
<clever> rosa_: that source code does not appear to be valid
<clever> where did you download it from?
<sphalerite> clever: it's https://github.com/mgood7123/UPM
<sphalerite> I believe
<sphalerite> Which seems like a bit of amess
<TimePath> rosa_: example.c is not a valid C program for starters
<rycee> srhb: Glad it worked out for you. I do indeed use the taffybar module, it is quite simple. In particular it doesn't do anything about configurations so anybody using it would have to create the `.config/taffybar/taffybar.hs` file themselves.
<clever> sphalerite: yep, thats invalid c
<srhb> rycee: So I noticed. I'm not sure what went wrong exactly, but I'm still puzzled by the lack of logs.
<sphalerite> rosa_: why are you trying to build a package manager anyway? You have nix :p
<srhb> (As in, nothing in journalctl --user-unit=taffybar)
<clever> sphalerite: half of line 127 belongs in a different function, 100 lines away from it
<TimePath> especially one that has glaring compilation issues
<sphalerite> heh
<clever> sphalerite: ctrl+f for lc and youll find a batch of similar function calls in the 50s
<rosa_> should not be corrected (do not even know how that line got fked up)
<TimePath> sphalerite: it looks more like an IRC client...
<rosa_> now*
<sphalerite> The repo looks like a bit of a disastrous attempt at something like Linux From Scratch tbh
<rosa_> i know, i need to clean it up lol
<sphalerite> UPM/C/Documents and Settings/Jonathan Ezekiel Cornflour/My Documents/My Music/My Personal Rips/2007/Technological/Operating System Symphony Orchestra/The GNOME Musical Men/I Married Her For Her File System/test_32_bit
<rycee> srhb: Hmm, yeah that's a bit odd.
<sphalerite> What
<srhb> rycee: Yo're seeing the same thing?
<TimePath> oh, now I see the bigger picture
<rosa_> ohh that is why it gave the lc error
<rycee> srhb: It does log a bit for me. Well, it's mainly gtk warnings :-)
<sphalerite> and the commit messages are all "-a" :(
<rosa_> as if i fix the line the error no longer appears
<srhb> rycee: Hm, okay. It _should_ log something for me.
seppellll has joined #nixos
<LnL> rycee: does home-manager have support for man outputs? somebody was having trouble with that yesterday, and I didn't see anything that configures it
<rycee> srhb: At least something like this should show up for you: Oct 15 11:42:23 beta taffybar[1551]: Launching custom binary /home/rycee/.cache/taffybar/taffybar-linux-x86_64
<srhb> rycee: Nope, nothing. Ugh, is my journalctl bork...
<rycee> LnL: Hmm, no I haven't paid any thought to man outputs. Haven't noticed any man pages missing, though.
ris has joined #nixos
<rycee> srhb: What about `Oct 15 11:42:23 beta systemd[1468]: Started Taffybar desktop bar.`?
<LnL> stuff that doesn't have a separate man output probably works
prietoj has joined #nixos
<TimePath> sphalerite: everything about this repository makes me cringe
<rosa_> why does it say "cannot find -lc" when i use -static
sigmundv__ has quit [(Ping timeout: 240 seconds)]
<sphalerite> rosa_: because there's no static libc available
<sphalerite> TimePath: +1
<rosa_> ;-;
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vd1AA
<NixOS_GitHub> nixpkgs/master b5610ed Matthew Bauer: sqitch: fix on Darwin...
<NixOS_GitHub> nixpkgs/master 210731c Daiderd Jordan: Merge pull request #30403 from matthewbauer/sqitch-fix...
NixOS_GitHub has left #nixos []
<TimePath> so just don't built it statically then?
<rosa_> ffs where is bash
<clever> rosa_: "which bash"
<srhb> rosa_: *everything* is in /nix/store
<rosa_> how do i paste from clipboard in nano
<rosa_> wait no ill just symlink instead
<clever> rosa_: middle click in xorg will paste the selection buffer
<rycee> LnL: Yeah, I guess I have mainly used man pages for packages without separate man output. I'll have a look at fixing it. Thanks for pointing it out :-)
Arcaelyx_ has quit [(Read error: Connection reset by peer)]
<LnL> I know how to fix it, did it a while back for nix-darwin
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/vd1xT
<NixOS_GitHub> nixpkgs/release-17.09 8d5f2ae Matthew Bauer: sqitch: fix on Darwin...
NixOS_GitHub has left #nixos []
<rycee> LnL: I will copy paste solution from nix-darwin ;-)
<srhb> rycee: Got it. All user units were unviewable due to some ACL shenanigans.
Arcaelyx has joined #nixos
<rosa_> for some reason my client keeps spamming it is input when it should not be
<rosa_> its*
<fearlessKim[m]> a package can not write anything in /etc ? I've got a hook postInstall = ''
<fearlessKim[m]> echo "include /etc/ipsec.d/*.secrets" >> /etc/ipsec.secrets
<fearlessKim[m]> ''; that looks useless
<rosa_> i dont even WANT to figure out why as it is highly likely that it is due to nix os
erictapen has joined #nixos
<rosa_> and at the moment i am not willing to make it work on nix os
<TimePath> sure, blame nixos, that's definitely the reason your code isn't working /s
leat has quit [(Ping timeout: 240 seconds)]
<srhb> rosa_: If I may be so blunt, why are you on NixOS at all? You don't seem to know anything about it, and you're trying explicitly to work around in rather than with it, so I'm curious about your motivations.
<rosa_> i dont even know either
* srhb nods
<rosa_> srhb:
<rosa_> it works fine on every other distro
<srhb> rosa_: NixOS is extremely different from other distros.
<srhb> Nothing works the way it usually does.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30425: Update git dit (master...update-git-dit) https://git.io/vd1u2
NixOS_GitHub has left #nixos []
<rosa_> x.x
<sphalerite> srhb: well that's a bit of an exaggeration
<srhb> I know.
<LnL> lol
<srhb> I'm trying to make it very, very clear.
<sphalerite> the "nothing works the way it usually does" bit
<srhb> Because they're currently going down a road that will bring lots and lots of pain :-P
<sphalerite> true
<rosa_> working WITH nix os to fix my irc client compatibility with nix os will be a nightmare since i dont even know what is causing the spamming
<sphalerite> rosa_: spamming?
<rosa_> although it might be that a fifo is continuously being sent data when it should not be
<gchristensen> what is your irc client?
<srhb> rosa_: Possibly the same issues that's causing your system to be, in a normal sense, in complete disrepair? broken https, broken xserver, choppiness, 14 minute startup time...
<rycee> srhb: Whew, glad you found the issue :-)
<rosa_> yup it is being continuously sent data
<rycee> LnL: Thanks!
<sphalerite> rosa_: it's normal for an IRC client to receive data all the time. It's getting messages.
<rosa_> i know but it is recieving data on its INPUT fifo
<rosa_> wich should not happen continuously
Mic92 has quit [(Quit: WeeChat 1.9)]
mrkgnao has quit [(Ping timeout: 240 seconds)]
<fearlessKim[m]> rycee: I was the one having problem with weechat manpage yesterday (using home-manager)
<rosa_> and i cant even start kate as a non root user
<ebzzry> I have a rogue package named “wacomtablet” that I can’t uninstall. Any clues?
<srhb> ebzzry: "package" ?
cfricke has quit [(Quit: WeeChat 1.9.1)]
<ebzzry> srhb: yes.
<srhb> rosa_: You're in roots X session, right?
<rosa_> yes
<clever> ebzzry: where exactly is it installed?
<srhb> ebzzry: can you qualify that?
<srhb> rosa_: Normal users can't usually write to other users' sessions like that.
<sphalerite> ebzzry: in a user profile with nix-env?
<clever> rosa_: only root can connect to the gui
<TimePath> the test user needs to access .Xauthority
mrkgnao has joined #nixos
<rosa_> ;-;
<LnL> rycee: you could just add extraOutputsToInstall = [ "man" ]; to the buildEnv if you don't want to add options for it
<TimePath> by default, /root is 700
<rosa_> how do i start kate as root
<sphalerite> by not launching it from a shell running it as the test user
<sphalerite> but you should really not be running everything as root either!
<ebzzry> sphalerite: Yes. It provides bin/kde_wacom_tablet
<sphalerite> ebzzry: what does nix-env -q say about it?
<TimePath> sphalerite: or within a shell spawned by sudo with default settings for that matter
<ebzzry> sphalerite: it says that the version is wacomtablet-2.1.0
<TimePath> you don't get asked to authenticate for sudo within that shell
<sphalerite> ebzzry: and `nix-env -e wacomtablet` doesn't remove it?
<sphalerite> TimePath: I don't see any use of sudo there.
<TimePath> sphalerite: just expanding on risks of root+sudo
<ebzzry> sphalerite: that works, now. odd.
Mic92 has joined #nixos
Mic92 has quit [(Client Quit)]
leat has joined #nixos
Mic92 has joined #nixos
<prietoj> Hello! I'm having issues compiling GHCJS in a project that uses stack, exactly the ones described here: https://github.com/NixOS/nixpkgs/issues/28037 . Does anyone know what's the status of the issue?
<bgamari> does anyone have an example of a simple usage of an overlays to define a set of project-specific packages?
<bgamari> ahh
b has joined #nixos
<bgamari> and this would be an appropriate top-level default.nix I suppose: https://github.com/yegortimoshenko/overlay/blob/master/default.nix
<LnL> that's a nixos config
Itkovian has quit [(Ping timeout: 248 seconds)]
<rycee> LnL: Hmm, shouldn't extraOutputsToInstall default to having at least "man" in there?
<bgamari> right
<rycee> LnL: I notice that the NixOS option also defaults to an empty list.
ison111 has quit [(Ping timeout: 255 seconds)]
<LnL> the man and info modules are enabled by default
<rycee> Ah, I see :-)
<LnL> otherwise you couldn't disable it without mkForce
<TimePath> LnL: what does the -r in nix-env do there?
<rycee> Cool. Have to step out for a moment. Will be back to fix in a little while :-)
<clever> TimePath: remove everything
<TimePath> welp, too late now :)
<clever> TimePath: nix keeps a history of everything and you can undo with nix-env --rollback
<TimePath> clever: it's okay, my user env is just for testing things. I keep all my main things in systemPrograms
<LnL> yeah it atomically clears out the previous packages
<LnL> so the idea is that you put everything in the lnl attribute, but you can still temporarily install something else
<TimePath> hadn't seen -r in the man pages before
bluehorizon has joined #nixos
<TimePath> I might start moving my systempackages into here
<rosa_> https://i.imgur.com/3uEz7lD.jpg and i do not see anything that would cause it to spam the input fifo https://i.imgur.com/olJkkND.jpg
<sphalerite> rosa_: I believe you just revealed your nickserv password
<sphalerite> Might want to change that ASAP
<rosa_> eh
<rosa_> i can always make a new one
Isorkin has joined #nixos
<gchristensen> you should do that now, rosa_
<TimePath> this room is logged publicly, too
<rosa_> lol
<rosa_> yall can have it
<TimePath> so you must use unique passwords everywhere then
<gchristensen> "NickServ (NickServ@services.): You may not ghost rosa_." I'll assume you already changed it :)
<bluehorizon> I have a newbie question about package updates, if I may. I "nixos-rebuild switch" my system yesterday and still have Firefox 55.0.3. FF 56.0 exists in nixpkgs on github for over a week now. Aren't packages upgraded during a nixos-rebuild?
<TimePath> how did you install firefox?
<TimePath> nix-env, or in systemPackages?
csingley has joined #nixos
<bluehorizon> in /etc/nixos/configuration.nix : environment.systemPackages = with pkgs; [ ... firefox ... ]
<Yaniel> You need to add —upgrade to fetch new package lists
<gchristensen> bluehorizon: what channel are you on? the channels are delayed due to build problems, but FF 56 should be out in most channels soonish
<Yaniel> Else it won’t notice that it’s outdated
MerelyAPseudonym has joined #nixos
<rosa_> unless it could be the binary file itself...
<bluehorizon> I am on nixos https://nixos.org/channels/nixos-17.09
<rosa_> but ill need to test on another distro to be certain
<bluehorizon> but with kernel 4.13 instead of 4.9, if that makes any difference
<gchristensen> bluehorizon: http://howoldis.herokuapp.com/ says
<gchristensen> oops
<bluehorizon> Yaniel: So, if I want package upgrades I always need to run "nixos-rebuild switch --upgrade"
<gchristensen> 17.09 is a bit out of date right now, and it is being resolved right now :)
<gchristensen> yes
<Yaniel> Yep
mrkgnao has quit [(Ping timeout: 264 seconds)]
<bluehorizon> Thanks! I just saw I can also use "system.autoUpgrade.enable = true;" in configuration.nix. If I wanted to upgrade to a new release (like 18.03) i'd still have to add the "18.03" channel for that right?
<gchristensen> right, it will keep your channel updated, and won't select a newer channel
mrkgnao has joined #nixos
<bluehorizon> Nice, thats just how I want. Thank you all. This IRC is simply amazing
<gchristensen> <3
<bgamari> Is there a nice example of how to cross-compile a simple nixos image?
* bgamari has an embedded board which needs a fairly barebones environment
sirkha_ has joined #nixos
<TimePath> you may be interested in this, then: https://github.com/cleverca22/not-os
<gchristensen> maybe something on nixos.wiki
<bgamari> ahh
<bgamari> lovely
<TimePath> it's not nixos, but it uses the same files
<rosa_> ok i fixed it
<bgamari> sure
<bgamari> it looks like a good model
<bgamari> thanks!
<rosa_> It was an error in the source code that caused it to repeatable write to the input
sirkha has quit [(Ping timeout: 264 seconds)]
<clever> bgamari: the main goal of not-os, was to create a heavily stripped down OS that could still be built with nix, and reuse some nixos logic
<clever> bgamari: it has automated x86 testing, and i have previously ran it on a raspberry pi
<bgamari> so I don't have particularly tight resource requirements
<bgamari> so I'll try to replicate a full nix environment
<bgamari> but seeing the basic setup is helpful
tazjin has joined #nixos
<hyper_ch> Mic92: ok, a bit closer.... I needed to enable useDHCP in networking and disabling network manager... problem ist, udhcpc: siocgifindex: no such device.... and only lo seems to have ben brought up
<Mic92> hyper_ch: you also need the network driver for you card in initrd
<hyper_ch> Mic92: ok, thx
<rosa_> so what file do i need to... acquire for the ip info and hardware info
Code has joined #nixos
mortum5 has quit [(Ping timeout: 246 seconds)]
<rosa_> oh god even the irc is slow on nix
<clever> rosa_: what does "ifconfig" say?
schoppenhauer has quit [(Read error: Connection timed out)]
<Code> running interperator: 'bash' command: 'ifconfig' location: './tmp.JcypZ8e0kB' arguments: '/! ifconfig --upload ' additional arguments: ''
manjaroi3 has joined #nixos
<TimePath> erm, I don't think ifconfig is supposed to say that
<Code> running interperator: 'bash' command: 'ifconfig' location: './tmp.DzesafxbPl' arguments: '/! ifconfig --upload ' additional arguments: ''
<TimePath> I seem to have upgraded to a channel with non-working firefox, failing to install flash because the link 404s
<TimePath> I haven't used flash in years
manjaroi3 has quit [(Quit: leaving)]
<Code> running interperator: 'bash' command: 'ifconfig ' location: './tmp.CEElug0pEs' arguments: '/! ifconfig ' additional arguments: ''
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd1hO
<NixOS_GitHub> nixpkgs/staging 75e4191 Vladimír Čunát: libreoffice(-still): fixup build by using older icu...
NixOS_GitHub has left #nixos []
<fearlessKim[m]> is there a way to create a folder without creating a stub file as in >environment.etc."ipsec.d/toto".text = "";
stabbmesiter has joined #nixos
<symphorien> you migt want to use systemd-tmpfiles.d
stabbmesiter has quit [(Client Quit)]
<TimePath> apparently I enabled flash at some point :)
<rosa_> ffs why is wgetpaste deciding to shit itself
<fearlessKim[m]> symphorien ok thanks
stabbmesiter has joined #nixos
<hyper_ch> Mic92: and how do I find out which kernel module that is? I mean nixos has detected my network card by itself... didn't need to configure anything
<Mic92> hyper_ch: lsmod and guessing
<rosa_> even with wgetpaste -c "ls /"
Code has quit [(Ping timeout: 246 seconds)]
schoppenhauer has joined #nixos
<clever> rosa_: why |& instead of just | ?
<hyper_ch> I use my own pastebin script and pastebin service :)
<clever> rosa_: try with ifconfig -a instead
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] selaux opened pull request #30430: Update selendroid (master...update-selendroid) https://git.io/vd1hu
NixOS_GitHub has left #nixos []
<Mic92> hyper_ch: modinfo gives you a human readable description
<Mic92> for each module
<hyper_ch> I think I found it already
<hyper_ch> I was first grepping for rtl, eth and net but I think it's r8169
stabbmesiter has quit [(Read error: Connection reset by peer)]
<rosa_> is nix's wgetpaste edited in any way that would allow it to work in nix os
<gchristensen> $ echo "hi" | wgetpaste --verbose
<gchristensen> Your paste can be seen here: https://paste.pound-python.org/show/KI3fFsx3SM7sA55cmE60/
<gchristensen> worked for mee
<clever> rosa_: try with ifconfig -a instead
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vd1hK
<NixOS_GitHub> nixpkgs/master 3ee33f3 Vladimír Čunát: Merge branch 'staging'...
NixOS_GitHub has left #nixos []
<rosa_> why doesnt wgetpaste get symlinked to bin
<rosa_> wget*
<sphalerite> rosa_: if you do `nix-env -iA nixos.wgetpaste` it should just work
<rosa_> i know
pie_ has joined #nixos
<rosa_> what changes where made to it in order to get it to work
<gchristensen> "$ echo "hi" | wgetpaste --verbose
<gchristensen> Your paste can be seen here: https://paste.pound-python.org/show/KI3fFsx3SM7sA55cmE60/
<gchristensen> oops
<gchristensen> "get symlinked to bin" which bin?
<rosa_> as even if symlinking it to /bin/wget it still fails
<gchristensen> oh very little goes in to /bin
<gchristensen> rosa_: try echo "hi" | wgetpaste --service gist
<hyper_ch> Mic92: got it working now :)
<bgamari> clever, I guess this doesn't use the new cross compilation infrastructure?
<sphalerite> rosa_: you shouldn't need to symlink anything yourself
Ralith_ has quit [(Ping timeout: 240 seconds)]
<clever> bgamari: correct, not-os is purely based on native compiles
<sphalerite> rosa_: if you `nix-env -iA nixos.wgetpaste` you should get wgetpaste installed into your user profile, which should be on your PATH
<clever> bgamari: so an arm build would require an arm build slave
<rosa_> ffs which bin do i need to symlink it to to be able to call wget without any relative or absolute paths
<bgamari> right
<sphalerite> i.e. you get a symlink ~/.nix-profile/bin/wgetpaste which points to /nix/store/<hash>-wgetpaste-<version>/bin/wgetpaste
* bgamari would like to try to bring up a cross compiled image
<gchristensen> rosa_: you should not do any symlinking, nix does the symlinking
<bgamari> since apparently I am a masochist
<adisbladis> hyper_ch: The dropbear stufF? :)
<hyper_ch> adisbladis: yes
<sphalerite> rosa_: just don't symlink it yourself. Install it using nix-env -iA nixos.wgetpaste and it'll be on your PATH and you should be able to run it with just `wgetpaste`.
<adisbladis> Cool
<rosa_> i did
<rosa_> but i want wget itself to be available in $PATH
<rosa_> not wgetpaste
<sphalerite> ooh right
<clever> bgamari: ive found that the cross-compile stuff is still a bit spotty and cant do an entire OS
<sphalerite> then do nix-env -iA nixos.wget
<bgamari> clever, oh?
<rosa_> ok
<bgamari> clever, you've tried then?
<clever> bgamari: ive used it to compile some things, and not everything builds right away
<bgamari> hmm, that is slightly disappointing
<rosa_> wtf why does my irc keep timing out after 248 seconds
<Mic92> hyper_ch: I added the hint regarding the kernel module.
<clever> rosa_: is the client responding to pings?
<adisbladis> hyper_ch: I have started customizing it to use openssh instead of dropbear
<rosa_> it should be
<hyper_ch> rebooted the wrong machine... not my old notebook but this one :)
<hyper_ch> adisbladis: why alter openssh
<hyper_ch> adisbladis: why alter openssh?
<adisbladis> hyper_ch: Because I want to use some of the extra features that come with openssh
<rosa_> how do i manually ping it
<hyper_ch> adisbladis: for early crypto unlocking?
<rosa_> like send it ping freenode.net
<hyper_ch> adisbladis: dropbear is only in the initrd... once the system is up, openssh runs
<gchristensen> rosa_: fwiw you've not lost a connection as far as I can see
<clever> rosa_: the irc server sends you pings at regular intervals, the irc client must respond with pongs
<clever> 2017-10-15 08:55:08 -!- Code [~Code@2405:7f00:8a01:5a00:c55e:e986:919a:c092] has quit [Ping timeout: 246 seconds]
<adisbladis> hyper_ch: Yes. I track key revocations and equivalence for one. This is using AuthorizedKeysCommand in openssh
<clever> gchristensen: his other client
<gchristensen> I'm so confused
<adisbladis> hyper_ch: I don't think this could be done easily with dropbear
<hyper_ch> adisbladis: actually, I modified it that way that it takes the authorized_keys from /root/.ssh/authorized_keys
<hyper_ch> and copies those authorized_keys into the initrd
fendor has joined #nixos
<hyper_ch> but why you want key revocation if the data is still encrypted?
prietoj has quit [(Ping timeout: 260 seconds)]
<adisbladis> hyper_ch: So that a compromised key cannot be used to gain access to the early boot process
<hyper_ch> adisbladis: up to you
<hyper_ch> as said, I read out the authorized_keys file from root
erictapen has quit [(Ping timeout: 240 seconds)]
bluehorizon has quit [(Quit: Page closed)]
fendoer has joined #nixos
<adisbladis> hyper_ch: That's fine for my home setup but for the work setup we want to use ecdsa keys and track revocations & recovery in a smart contract on ethereum
ShalokShalom_ has joined #nixos
fendor has quit [(Ping timeout: 240 seconds)]
<Unode> does anyone have speedcrunch running on nixos 17.09? I'm getting "Cannot mix incompatible Qt library (version 0x50900) with this library (version 0x50901)" and it fails to launch.
jbgi has joined #nixos
<hyper_ch> adisbladis: if you find some ethereum that belong to nobody... well, they are mine ;)
<hyper_ch> Mic92: what you think of my few additions below yours? https://nixos.wiki/wiki/NixOS_on_ZFS#Unlock_encrypted_zfs_via_ssh_on_boot
<rosa_> it recieved a ping but it didnt reply to it ._.
ShalokShalom has quit [(Ping timeout: 255 seconds)]
<hyper_ch> remote unlocking works :) sweet
ma27 has quit [(Quit: WeeChat 1.9)]
ma27 has joined #nixos
<symphorien> Unode: I tried "nix-shell -p speedcrunch --run speedcrunch" and it works, and on 17.09
<symphorien> but I am not a heavy qt user so that may have an influence
<Mic92> hyper_ch: probably this dependency on host dhcp could be dropped
csingley has quit [(Ping timeout: 264 seconds)]
<Mic92> but defacto this is true
<hyper_ch> Mic92: and shall I concatenate that authorizedKeys variant to one line?
<Unode> symphorien: I could swear this was running yesterday. As far as I can tell the only thing I did was install sddm which pulled some qt stuff. But this should interfere right?
<Unode> symphorien: that same command fails here
<symphorien> IIRC Qt is not pure : it still depends on an environment variable being set right at runtime
<symphorien> so pulling sddm would have done anything :/
<symphorien> *could
<Mic92> hyper_ch: I use the following for the ssh key: https://github.com/Mic92/dotfiles/blob/master/nixos/vms/modules/users.nix#L18
<Unode> :/
ShalokShalom_ is now known as ShalokShalom
<adisbladis> hyper_ch: I'll keep that in mind ;)
<symphorien> and besides I have not updated my system since yesterday
<freeman42x> there is no package for WhatsApp is it?
<hyper_ch> adisbladis: well, it does work now for me :)
jbgi has quit [(Ping timeout: 255 seconds)]
<hyper_ch> Mic92: and this really works for you? hostECDSAKey = "/run/keys/initrd-ssh-key"; I had to remove the quotes there
<clever> Mic92: which bootloader are you using, and what is the sandbox set to?
<palo> I try to install this package, but with version 1.3.16 (because I have only a license for this version ) https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/audio/bitwig-studio/default.nix
<Mic92> hyper_ch: I don't have sandbox enabled on this machine
<hyper_ch> Mic92: neither have I
<palo> I try to use overrideAttrs but it does not work, means it downloads the version 2.1.3
<clever> Mic92: bootloader?
<hyper_ch> `build-use-sandbox = false`
<Mic92> hyper_ch: the key is populated by nixops
<Mic92> systemd-boot
<rosa_> something about nix just refuses to work with scripts that work on non nix systems
<hyper_ch> rosa_: you need #!/usr/bin/env bash (or other shell) as shebang
<hyper_ch> there's no /bin/bash
<ma27> you might want to use `patchShebangs .` when placing this into a derivation
<Mic92> clever: does nixops add /run/keys/ to the build sandbox somehow?
<clever> Mic92: nope
rosa_ has quit [(Quit: rosa)]
<clever> Mic92: i think thats something to do with the bootloader, when generating the /boot files, it will read that path
rosa_ has joined #nixos
<Mic92> clever: is building initrd not independent from the bootloader code?
Ralith_ has joined #nixos
<clever> Mic92: the problem is more about generating the initrd content in a secure manner, because the pure nix side of things leaks secrets in the store
riclima has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdMee
<NixOS_GitHub> nixpkgs/master f7d308d Nikolay Amiantov: plyfile: init at 0.5
NixOS_GitHub has left #nixos []
<palo> Hmm made it work.
<palo> I have to overwrite a lot more :D
<rosa_> where do i specify "/bin/bash"
<rosa_> did*
<symphorien> in the shebang of the script
<symphorien> (the first line)
<rosa_> where
<rosa_> show me
<symphorien> the first line of the script must look like : #!/bin/bash
Oida has quit [(Ping timeout: 260 seconds)]
riclima has quit [(Ping timeout: 240 seconds)]
<clever> it needs to be changed to #!/usr/bin/env bash
ma27 has quit [(Quit: WeeChat 1.9)]
<rosa_> show me what script it is in
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar opened pull request #30433: CUDA-related updates and cleanups (master...cudatoolkit) https://git.io/vdMeY
NixOS_GitHub has left #nixos []
<clever> rosa_: all of them
ma27 has joined #nixos
<tazjin> on a system using the stable channel normally, how can I install specific packages from unstable in configuration.nix?
<rosa_> What you mean
Oida has joined #nixos
<hyper_ch> rosa_: what script are you trying to run?
<rosa_> hopefully it should now reply to pings
<Unode> when I click on a URL inside Thunderbird (Earlybird) nothing happens and I don't see any errors on the terminal. Is there any way to know what's causing this and how to fix it?
<Unode> I'd like to see a pop-up window prompting for which software to use when opening the URL but nothing is shown.
Code has joined #nixos
<freeman42x> is there a package for `pipreqs` ? hehe
<rosa_> !me waits for a ping
* Code waits for a ping
<joepie91> Unode: starting thunderbird from a terminal might leave you with errors about this on the terminal
<rosa_> meant to do /
<joepie91> Unode: alternatively, it probably uses xdg-open, so try `xdg-open <your URL here>`
<joepie91> and see if that produces an error
<rosa_> instead of !
<joepie91> Unode: if you happen to be on KDE: KDE does some weird stuff with "download the URL as a file first and then show it to the user" and that has a tendency of breaking for me
<joepie91> I haven't yet worked out how to fix that
<Unode> joepie91: xdg-open works fine. Running from terminal gives no error.
<Unode> In settings I had http->always ask. which I thought was correct. Removing the whole http target seems to have helped.
<Unode> no clue why it didn't work the way it was before.
<Unode> thanks for the help joepie91
<tazjin> followup: how can I set `allowUnfree` for packages from an imported channel in configuration.nix?
<hyper_ch> Mic92: you also use wireguard?
<tazjin> + side-note: how come firefox-beta-bin is considered unfree?
<Unode> on another note, seems like I'm still using gtk2 mostly everywhere, including with thunderbird. Is there any way to specify that I'd like to use gtk3 instead?
<MichaelRaskin> The package modifies an official-branding build of Firefox in a way not authorized for redistribution.
<Unode> I just noticed that the "default application" picker is different from what I'm used to.
<bgamari> does anyone recall where crossDrv is supposed to be defined?
<Unode> (used to = other distro)
ivanivan has joined #nixos
<ivanivan> If I'm running Gnome shell on NixOS, does it make any kind of sense (would it even work) to try running the gnome software updater?
CHIPPY has joined #nixos
CHIPPY has quit [(Max SendQ exceeded)]
<gchristensen> ivanivan: no I don't think so
CHIPPY has joined #nixos
CHIPPY has quit [(Max SendQ exceeded)]
CHIPPY has joined #nixos
CHIPPY has quit [(Max SendQ exceeded)]
CHIPPY has joined #nixos
CHIPPY has quit [(Max SendQ exceeded)]
<symphorien> is there any plan to add unfree packages to https://nixos.org/nixos/packages.html ?
<symphorien> or at least to add a warning above "unfree packages are not listed, use github search to find them, sorry" ?
<ivanivan> gchristensen: would I instead update my nix channel and rebuild?
<tazjin> @symphorien it's got free software like firefox that is considered unfree by nix
<tazjin> so there doesn't seem to be a technical limit like that
Ivanych has joined #nixos
<aminechikhaoui> hello, trying to install nixos on a machine and getting "Failed to probe partition scheme "/boot": Input/output error"
seppellll has quit [(Ping timeout: 248 seconds)]
<aminechikhaoui> any idea what can be the issue
cfricke has joined #nixos
<clever> aminechikhaoui: does dmesg say anything interesting?
Oida has quit [(Ping timeout: 264 seconds)]
<aminechikhaoui> I partionned with gdisk btw, so maybe something wrong with the boot partition ?
<aminechikhaoui> clever: nothing interesting, should I look for something specific
<clever> aminechikhaoui: what did you set the grub device to in the configuration.nix?
Oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar opened pull request #30434: Build Tensorflow from source (master...tensorflow) https://git.io/vdMe9
NixOS_GitHub has left #nixos []
<aminechikhaoui> clever: /dev/sda, but I'm getting the issue in nixos-install btw
<clever> aminechikhaoui: what partition number is /boot on?
<aminechikhaoui> sda1
<disasm> aminechikhaoui: is /boot vfat?
<clever> aminechikhaoui: what does "blkid /dev/sda1" say?
<aminechikhaoui> type vfat yeah but SEC_TYPE="msdos" is weird
<Unode> :/ so it seems like nixos sets "LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib" on my default user environment. If any app doesn't propagate this across binaries fail. Does nixos provide any mechanisms to avoid relying on LD_LIBRARY_PATH like this?
<Unode> I kind of hate this variable... about as much potential for fixing something as it has to break it the next second.
<gchristensen> opengl in particular
<clever> Unode: the main use of that variable, is to avoid re-compiling 90% of gui apps when you switch from nvidia to ati
<Unode> symphorien: and speedcrunch is back. Seems like I had a mix of nixos-17.09 (system) and nixos-unstable (user) interfering on QT libraries.
<Unode> clever: In this machine I don't see that ever happening :)
<bgamari> does anyone see what I'm doing wrong here? https://github.com/NixOS/nixpkgs/issues/30431
<Unode> clever: couldn't this simply be patchelf'ed ?
<clever> Unode: and also the secondary issue, that hydra would have to build 3 copies of everything
<aminechikhaoui> clever: should the SEC_TYPE be gpt maybe?
<clever> Unode: such changes have to occur when the package is being built
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vdMeN
<NixOS_GitHub> nixpkgs/master 26db832 Vladimír Čunát: qt56.qtwebkit: fix with icu-59 by upstream patch...
NixOS_GitHub has left #nixos []
<Unode> clever: then I may be misunderstanding something
<clever> aminechikhaoui: what does blkid say about sda?
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<aminechikhaoui> clever: for /dev/sda PTTYPE="gpt"
<clever> aminechikhaoui: what if you umount and then re-mount the boot partition?
<Unode> clever: from what I gathered over the years, LD_LIBRARY_PATH is a way to override the location where libs should be searched. It affects binaries both at compile-time and run-time. Once a binary is created, you could simply modify it to point to the location specified by LD_LIBRARY_PATH, therefore removing the requirement to have it set in the environment.
<clever> Unode: the issue, is that every single gui app in nix would have to be re-compiled, either with a thin patchelf wrapper, or fully rebuilt, to point to the right GPU drivers
<Unode> clever: I've done something similar with some manual compilation on a different system. There I used patchelf to have a single binary work on different machines that provided the same set of libs but on different locations.
<aminechikhaoui> clever: doing umout /mnt/boot then mount /dev/sda1 /mnt/boot results in the same output
<clever> aminechikhaoui: and what if you umount and run fsck.fat over it?
<rosa_> oh well, as long as it can upload it shouldnt matter if one of its commands is faulty
<Unode> clever: that something that is planned to happen? Right now I have software failing because it "unsets LD_LIBRARY_PATH" before spawning subprocesses. This is done for "safety" reasons since the software itself uses LD_LIBRARY_PATH to load some of its bundled libs.
<rosa_> anyway i needed ifconfig and what else
<aminechikhaoui> clever: same :/
<clever> Unode: that would have to be patched to restore the library path
<rosa_> proc/cpuinfo?
<clever> aminechikhaoui: can you gist the entire output of nixos-install?
<Unode> clever: sounds awfully contrived
<rosa_> hyper_ch
<rosa_> hyper_ch: i need ifconfig and /proc/cpuinfo right?
Code has quit [(Ping timeout: 255 seconds)]
<disasm> aminechikhaoui: how big is sda1?
<aminechikhaoui> clever: will try to paste it
<aminechikhaoui> disasm: 500M
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vdMvc
<NixOS_GitHub> nixpkgs/master 8619ae3 Franz Pletz: unifi: 5.6.16 -> 5.6.18
<NixOS_GitHub> nixpkgs/master 5190b05 Franz Pletz: fastd: disable aes128-ctr, fix build with new libsodium
NixOS_GitHub has left #nixos []
<disasm> aminechikhaoui: https://botbot.me/freenode/nixos/2017-01-22/?msg=79776209&page=9 LnL suggested to someone else that 512 MB was the minimum size you could have /boot
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to release-17.09: https://git.io/vdMvl
<NixOS_GitHub> nixpkgs/release-17.09 d22949e Franz Pletz: unifi: 5.6.16 -> 5.6.18...
<NixOS_GitHub> nixpkgs/release-17.09 d1b0513 Franz Pletz: fastd: disable aes128-ctr, fix build with new libsodium...
NixOS_GitHub has left #nixos []
<aminechikhaoui> clever: http://termbin.com/r90y
<disasm> although the next comment was 600 MB didn't work for the person either
<aminechikhaoui> disasm: hm my current machine has only 200M for example and nixos was installed correctly
<aminechikhaoui> but I can try, won't hurt ;)
<disasm> aminechikhaoui: yeah, doesn't seem like that's the solution...
<LnL> oh, I must have confused it with the legacy bios partition then
<clever> aminechikhaoui: what partition type did you set in gparted?
<aminechikhaoui> clever: I used gdisk, and sda1 is ef00 i.e "EFI System"
<clever> sounds completely normal
<LnL> is the boot flag on?
<LnL> or does that not matter for efi
<clever> LnL: i dont think GPT has a boot flag
<aminechikhaoui> LnL: it seems that it doesn't matter, as there are no a command for example like with fdisk
<LnL> yeah don't remember having to set that
<aminechikhaoui> :(
<tazjin> can I clone a git repo from configuration.nix? (specifically my emacs.d repo into $HOME/.emacs.d)
ma27 has quit [(Quit: WeeChat 1.9)]
serhart has quit [(Quit: serhart)]
ma27 has joined #nixos
<LnL> aminechikhaoui: pasting the output of fdisk -l or something might help
serhart has joined #nixos
serhart has quit [(Remote host closed the connection)]
serhart has joined #nixos
erictapen has joined #nixos
ris has quit [(Ping timeout: 260 seconds)]
<aminechikhaoui> LnL: http://termbin.com/ybx4 output of gdisk /dev/sda -l
<jluttine> can i concatenate paths somehow in nix? or are they just strings and concatenated with + ?
ma27 has quit [(Ping timeout: 264 seconds)]
<aminechikhaoui> huh just saw that warning "Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
<rosa_> That link doesnt work
<aminechikhaoui> verification and recovery are STRONGLY recommended."
<aminechikhaoui> but not sure if it matters
thblt has joined #nixos
<clever> aminechikhaoui: that implies that something corrupted your GPT tables
<rosa_> it fails to load
<aminechikhaoui> clever: hm
<jluttine> i have a path option and i want to get the path to a subdirectory under that path
<aminechikhaoui> interesting
stanibanani has joined #nixos
<infinisil> tazjin: I'm using home-manager (https://github.com/rycee/home-manager) to manage my $HOME files/packages/systemd services, works really well, similar to configuration.nix. There's nothing that can do that in nixos (well there is, but it's not very nice)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdMfO
<NixOS_GitHub> nixpkgs/master 9b2af18 Bjarki Ágúst Guðmundsson: astroid: 0.9.1 -> 0.10.2...
<NixOS_GitHub> nixpkgs/master 28b0dfa Joachim F: Merge pull request #30417 from SuprDewd/astroid-0.10.2...
NixOS_GitHub has left #nixos []
<LnL> aminechikhaoui: yeah something is not right there
<aminechikhaoui> ok trying to recover it, let's see what happens
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] stesie opened pull request #30435: Update plv8 (master...update-plv8) https://git.io/vdMfs
NixOS_GitHub has left #nixos []
ma27 has joined #nixos
ebzzry has quit [(Ping timeout: 240 seconds)]
Mateon2 has quit [(Quit: Mateon2)]
Mateon2 has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/68ef4b14bc (from 18 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
Mateon2 has left #nixos []
ivanivan has joined #nixos
<ivanivan> Is anyone making successful use of command history in nix-repl?
<ivanivan> i.e. ~/.nix-repl-history
<tazjin> @infinisil that looks interesting, but for a first POC I'll go for having a systemd oneshot unit cloning things!
<ivanivan> This commit added history support ~2 years ago:
<ivanivan> but I can't get any history working
<rosa_> welp imma watch anime
<infinisil> tazjin: You could use an activationScript in configuration.nix, which is the not really nice but working thing without any additional software
<infinisil> Some people here shared their activationscripts to do that some time ago
<LnL> don't do that
stanibanani has quit [(Ping timeout: 264 seconds)]
<LnL> the activation scripts also run during boot and you don't have network access there
<LnL> IIRC
<tazjin> @infinisil oh interesting, what's the order in which things are run? My other problem is that I'd like to run `nix-channel --add ...` before the "body" of `configuration.nix` is evaluated (to add the unstable channel & install a package from it)
<clever> LnL: ive even seen somebody try to do network there, and it entirely broke the ability to boot
<tilpner> ivanivan - History works for me in nixUnstable "nix repl"
rosa_ has quit [(Quit: rosa)]
<LnL> clever: yeah I know
<infinisil> LnL: Oh right
thblt has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<tilpner> My activation script just links everything into the right places, the git repo lives in the store
<infinisil> Hmm..
<tilpner> No actual cloning is done at activation time
p4cman has joined #nixos
<clever> yeah, just pkgs.fetchgit
<clever> then it wont be an issue
<ivanivan> tilpner: hmm... I'm on stable. I wonder if I just need to touch the file
<tilpner> ivanivan - FWIW, I have no .nix-repl-history
<LnL> I think you need to touch ~/.history for nix-repl
<rycee> fearlessKim: If you update your home-manager (assuming you use the master branch) then you should get your man pages now :-)
<ivanivan> tilpner: it preserves command history for you across repl sessions?
<tilpner> strace says "nix repl" uses ~/.local/share/nix/repl-history
<tilpner> And yes, it does
<infinisil> Oh rycee, what do you think of overlays for home-manager?
<ivanivan> tilpner: that's not what I'd expect from looking at the code, but I'll try it
<ivanivan> const string historyFile = string(getenv("HOME")) + "/.nix-repl-history";
<fearlessKim[m]> I think unstable creates the folder while stable doesn't: I had not history until I tried nixUnstable. and it kept working after reverting to nixStable
<tilpner> ivanivan - What code are you looking at?
<tilpner> That's not what I'm using
<fearlessKim[m]> rycee: <3 (it works)
<ivanivan> tilpner: different package?
<ivanivan> oh
<rycee> fearlessKim: Cool :-)
<aminechikhaoui> LnL: clever thanks guys, nixos installed now \O/
<tilpner> (With a very handy alia nir="nix repl '<nixpkgs>'")
<tilpner> *alias
<ivanivan> tilpner: i think i'm looking at the outdated code from before it made it into nix pkgs :P
<tilpner> ivanivan - This is not nixpkgs, this is the new version of nix (available in nixpkgs as nixUnstable)
riclima has joined #nixos
<ivanivan> ah, i see
<rycee> infinisil: Hmm, in which way? You mean something like `disabledModules`?
<ivanivan> tilpner: thanks for the help!
<tilpner> ivanivan - nix-repl uses the code you linked, "nix repl" uses the code I linked
<ivanivan> got it
markus1199 has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vdMJ2
<NixOS_GitHub> nixpkgs/master 1be825f Franz Pletz: pythonPackages.libnacl: 1.5.2 -> 1.6.0, fix new libsodum
<NixOS_GitHub> nixpkgs/master dc38f6c Franz Pletz: pythonPackages.jsmin: init at 2.2.2
<NixOS_GitHub> nixpkgs/master c100811 Franz Pletz: scudcloud: add jsmin dependency, fixes build
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to release-17.09: https://git.io/vdMJr
<NixOS_GitHub> nixpkgs/release-17.09 20efc1f Franz Pletz: pythonPackages.libnacl: 1.5.2 -> 1.6.0, fix new libsodum...
<NixOS_GitHub> nixpkgs/release-17.09 8864c82 Franz Pletz: pythonPackages.jsmin: init at 2.2.2...
<NixOS_GitHub> nixpkgs/release-17.09 d884852 Franz Pletz: scudcloud: add jsmin dependency, fixes build...
NixOS_GitHub has left #nixos []
<infinisil> rycee: I mean something like the nixpkgs.overlays option in configuration.nix
<rycee> infinisil: Something like `disabledModules` would be neat I guess, I haven't had a need for it myself, though. If I felt a module wasn't very good I just changed it in master ;-)
<Yaniel> can I convince nix to build my package with debug symbols?
<infinisil> rycee: Usecases I'm thinking of: Overlay for lib, so that there's no need to awkwardly import ../lib { inherit pkgs lib; }
riclima has quit [(Ping timeout: 240 seconds)]
<Yaniel> said package uses cmake for building and I'm setting cmakeBuildType = "Debug" in the expression
<infinisil> rycee: And an xdg overlay (which I've been wanting to do for a while), which wraps programs with certain options/env vars set so they write to the xdg locations
<infinisil> rycee: Pretty much a declarative ~/.config/nixpkgs/overlays[.nix]
<ivanivan> tilpner: also, turns out the nix-repl package is built from a commit that pre-dates the addition of history support
<rycee> infinisil: Ah, right. I've been meaning to do something like nixpkgs.overlays (and nixpkgs.allowUnfree, etc.).
iyzsong has quit [(Ping timeout: 255 seconds)]
fendoer has quit [(Ping timeout: 240 seconds)]
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<lejonet> gchristensen: I've now implemented an activation script that makes the /bin/bash and /bin/zsh symlinks, are they globally available? Because I'm getting a "/bin/bash: No such file or directory" when trying to login as a LDAP-only user :S
markus1189 has joined #nixos
<lejonet> and makeHomeDir doesn't seem to work, I've set security.pam.services.sshd.makeHomeDir = true (and the same with services.login.makeHomeDir) but its not creating that either
<lejonet> I must be doing something wrong, but I don't know what
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ciil opened pull request #30436: abella: 2.0.2 -> 2.0.4 (master...abella-update) https://git.io/vdMU4
NixOS_GitHub has left #nixos []
edef is now known as Dunkelkriegerin
<rycee> infinisil: It's a bit fiddly though, I don't have much insight into the overlay mechanisms but it seems like HM would need to write a function (or multiple functions) to the ~/.nixpkgs/config/overlays dir that loads the HM configuration to be able to read out and return the function(s) in the `nixpkgs.overlays` option.
<srhb> lejonet: No, they are not globally available.
<wmertens[m]> Hah, came here to ask about overlays :) Has anybody come up with a nice way to manage nixos config + nixpkgs version + own overlays?
<lejonet> srhb: how do I make it so that every user get those symlinks? I have defined the script as a system.activationScripts
<srhb> wmertens[m]: I've resorted to using overlays.nix, the same for system and my user
Oida has quit [(Ping timeout: 240 seconds)]
<srhb> lejonet: Sorry, I don't know that.
<infinisil> rycee: Going to look into how configuration.nix does it, import <nixpkgs> { overlays = [ ... ]; } works though
<wmertens[m]> srhb: hmm, do you have an example?
oida has joined #nixos
<clever> infinisil: all attributes under config.nixpkgs are passed to nixpkgs
<clever> infinisil: so you can set config.nixpkgs.overlays and config.nixpkgs.config
<infinisil> Ahh I see
<clever> and also config.nixpkgs.system
<infinisil> I actually just looked at that 30 minutes ago but couldn't figure out what it does
<Leo`> Is there a reference somewhere of all the possible attributes for the argument to mkDerivation?
<clever> Leo`: some are defined in nix, and others in bash scripts
<srhb> wmertens[m]: For now I'm simply symlinking the file in place, and defining its path in the system via nixpkgs.overlays
<clever> Leo`: others are random variables that https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh reads
<wmertens[m]> ok
<clever> Leo`: and the setup hooks in many things can accept more
<srhb> It's not super clean. I wish instead my user would inherit the system nixpackages after overrides and overlays.
<srhb> But that seems nonobvious to achieve.
ma27 has quit [(Quit: WeeChat 1.9)]
<elvishjerricco> Hm is there no way to make `nix-build` recurse down a tree? It's nice that you can do `nix-build` on, say, `{ a = drv1; b = drv2; }`, but if `a` is a nested attribute set of derivations, it won't recurse into it
<srhb> elvishjerricco: I wonder if this is what recurseIntoAttrs does.
<copumpkin> it is
<srhb> Well, what a tantalizingly proper name, then!
oida has quit [(Ping timeout: 255 seconds)]
<elvishjerricco> I do not know anything about that function =P Does it just produce a flattened attribute set? What are the field names?
<copumpkin> nix-build and friends look for a magic attribute on attrsets called recurseForDerivations
<copumpkin> or something like that
Oida has joined #nixos
<elvishjerricco> Oh. Gross, but it works =P
<copumpkin> if that is set, it'll look for more derivations in that attrset
<copumpkin> yeah pretty gross :)
mudri|srcf is now known as mudri
<srhb> aha, so recurseIntoAttrs is simply attrs : attrs / { recurseForDerivations = true ;}
<srhb> Simple!
<srhb> (And gross, but...!)
<rycee> infinisil: For an "xdg" overlay (which sounds like a good idea btw), though, it should be enough to do something like `home.file.".config/nixpkgs/overlays/xdg.nix".source = overlays/xdg.nix;`
<elvishjerricco> copumpkin: srhb: thanks!
stanibanani has joined #nixos
<infinisil> rycee: Hmm right, but that does feel rather sluggyish, and also it doesn't apply to the home-manager's pkgs immediately, only on the next build
<infinisil> i think
<rycee> Indeed.
<tilpner> infinisil - Is there a downside to using xdg-compliant locations? Is updating actual nixpkgs for compliance an option?
<mudri> I'm trying to get started with Rust using the Mozilla overlay. I'm building a library, but it fails with “error: could not exec the linker `cc`: No such file or directory (os error 2)”. Is there a package to provide that? I've tried some likely candidates, but they didn't work.
<infinisil> tilpner: What do you mean by updatingc nixpkgs?
<infinisil> I don't think there's any downside
<elvishjerricco> copumpkin: Hm what about having a nested *list* rather than an attribute set? I'm guessing that's just actually not possible?
<sphalerite> mudri: add gcc to your nix-shell
<tilpner> infinisil - Only users of the overlay would benefit from it. If you instead put those fixes/patches into nixos/nixpkgs, everyone would have them
<tilpner> Unless there's a lot of cost associated with fixing these paths, like we discussed some time ago (you asked about bubblewrap)
<infinisil> Well, if we patch pkgs in nixpkgs to use Xdg by default, then everyones dotfiles break, right?
<lejonet> srhb: it would seem like it was actually the fact that the user didn't have a homedir that was the problem, not the links :)
<infinisil> tilpner: and since home-manager manages your dotfiles, it shouldn't be a problem with it
<tilpner> Is that a problem? NixOS doesn't promise perfect backwards compatibility, and it would be mentioned in the release notes
<srhb> lejonet: Oh o_o
<infinisil> tilpner: Then everybody would have to manually move e.g. .zshrc to ~/.config/zsh, and that for all packages
<lejonet> srhb: my guess is that because it didn't have a homedir, it couldn't setup a path and thus it couldn't find the links, or something along those lines lol
<tilpner> infinisil - One could start with applications that not everyone customizes, but yes, I don't think I would mind
<mudri> sphalerite: I thought I'd tried that, but maybe not...
<tilpner> (Obviously that's a policy thing and might just not be okay)
<infinisil> tilpner: I think maybe it could be an option though, something like nixpkgs.enableXdgOverlay
<tilpner> No, that just duplicates effort during packaging and support
voiceftp has quit [(Quit: Leaving)]
<infinisil> Ah you mean because the overlay would have to modify each package individually
voiceftp has joined #nixos
<tilpner> That too
<infinisil> Okay how about this: Every package can specify something like meta.dirs = { config = ".ssh"; data = ".sshdata"; }
<infinisil> Then the overlay uses this to wrap everything with bubblewrap that translates these dirs to xdg variants
stanibanani has quit [(Ping timeout: 240 seconds)]
<sphalerite> seems like a lot of fuss about a pretty small issue
<tilpner> I was expecting config arguments to override, but that would result in losing binary caches if it's an overlay
<infinisil> sphalerite: This could also protect the user from programs accessing stuff they shouldn't in $HOME
<sphalerite> infinisil: that sounds more like something to use proper sandboxing for
<infinisil> sphalerite: Hmm maybe
<tilpner> Sandboxing is good, and I would like to have it by default for nixpkgs, but that's a much bigger project than what you initially proposed
* sphalerite uploaded an image: 2017-10-15-160341_1220x1635_scrot.png (149KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/gEcgBFnOcrhbitlksUCSQgRh>
<infinisil> Just having every program have it's own home with only certain files being mapped to the actual home sounds nice thougg
<sphalerite> fadenb: ^
<sphalerite> It still wants my non-public email addresses :(
<tilpner> infinisil - Better than having config arguments for those locations?
<tilpner> (Which could be pretty hard for some applications)
<infinisil> tilpner: Not sure what you mean, an example?
<tilpner> infinisil - You would wrap or patch an application so that it doesn't try to write to non-compliant paths anymore, but that's a lot of effort
<infinisil> ohhh yeah, i don't think that's feasible
<tilpner> For some applications simple search-and-replace would work, but others might be more involved
<sphalerite> android-style isolation (every app gets its own uid) would also be cool :p
<MichaelRaskin> I actually run every Firefox _instance_ under a fresh UID and fresh homedir
cfricke has quit [(Quit: WeeChat 1.9.1)]
<tilpner> MichaelRaskin - With an empty profile every time?
<MichaelRaskin> Nope, clones of a single pre-initialised profile
<wmertens[m]> how do you update the profile?
<wmertens[m]> or do you just log in a lot? :)
<MichaelRaskin> Mostly by editing the prefs js and rerunning profile initialisation.
<sphalerite> What's pkgs/build-support/vm/windows for?
<avn> MichaelRaskin: do you use some wrapper for it, or may be nsjail/firejail?
<MichaelRaskin> Custom wrapper based on unshare and a bit of socat.
<sphalerite> ugh firejail
<tilpner> sphalerite - Testing Nix in Cygwin? (Is that a thing?)
<MichaelRaskin> Most Firefox instances (not all, unfortunately — WebRTC etc has problems) are in an own namespace.
<MichaelRaskin> Networking namespace.
<MichaelRaskin> They can access the Squid proxy, and that also allows all of them to run Marionette without port management.
<MichaelRaskin> I can just connect to the needed socat to attach Marionette.
<bgamari> How is addErrorContext supposed to work?
sigmundv has joined #nixos
<LnL> nix-instantiate --eval -E 'builtins.addErrorContext "foo" (builtins.throw "bar")' --show-trace
<bgamari> I see
<bgamari> LnL, Is there any way to get a backtrace in the output of builtins.trace?
<Leo`> What's the difference between buildInputs and nativeBuildInputs?
<bgamari> Leo`, nativeBuildInputs are those that need to be present on the build machine
<LnL> don't know that
<bgamari> buildInputs are run-time dependencies
<bgamari> AFAIK
<Leo`> Ok.
<elvishjerricco> Leo`: bgamari: not quite. It's all about cross compilation
<bgamari> LnL, I'm pretty sure there isn't a way
<MichaelRaskin> Not exactly
<Leo`> But run-time dependencies must also be present on the build machine right?
<Leo`> elvishjerricco: Ha?
nh2 has joined #nixos
<elvishjerricco> buildInputs are dependencies that should run on the host of the derivation
<MichaelRaskin> for cross-compiling, buildInputs are libraries to link, and nativeBuildInputs are tools to run.
<elvishjerricco> that is, if I'm writing a derivation that cross compiles to arm, buildinputs are dependencies that should also be cross compiled to arm
<MichaelRaskin> In the sense that buildInputs are in output arch, and nativeBuildInputs are in build-time arch
<Leo`> Ha, I see.
<elvishjerricco> nativeBuildInputs are tools that you need during build time, like a C compiler that runs on the build machine.
sigmundv has quit [(Ping timeout: 240 seconds)]
<Leo`> So for example I'm writing a nix expression for a package that builds with CMake and uses libevent. CMake should be a nativeBuildInput and libevent a buildInput.
<Leo`> Correct?
<elvishjerricco> Sounds right
<MichaelRaskin> Yes
<Leo`> Got it. Thanks!
sigmundv has joined #nixos
<Leo`> For now it works with everything in buildInputs but I assume that it would break if someone ever tries to cross-compile it.
<elvishjerricco> This is a pretty widespread problem in nixpkgs currently: there are thousands and thousands of misuses of `buildInputs`, when `nativeBuildInputs` is actually required
<Leo`> I see.
<elvishjerricco> But yea, since not many people are cross compiling many things, it never really comes up
<Leo`> That's what I was about to do.
<Leo`> Glad I asked. :p
* bgamari is currently trying in vain to cross-compile
<bgamari> and feeling exactly this sort of issue
xdelv has joined #nixos
<bgamari> it's unfortunately quite tricky to even track down where things go awry
nh2 has quit [(Ping timeout: 240 seconds)]
<elvishjerricco> John Ericson (SonarPulse / Ericson2314) had to write some really insane splicing code to make it so that if you ever gave a derivation from your host nixpkgs as a nativeBuildInput, it would automatically find the corresponding build derivation, just because the preexisting state of cross compilation was so poor.
<elvishjerricco> It's gotten a ton better though.
* bgamari must be doing something terribly wrong; even trying to build shadow triggers an assertion
erictapen has quit [(Read error: Connection reset by peer)]
<bgamari> elvishjerricco, not quite
<bgamari> it's a bit trickier than that
<elvishjerricco> I _think_ that looks like the old style cross compilation stuff. I believe glibcCross is no longer a thing people should be using directly.
<elvishjerricco> Not sure how relevant that is to you
<bgamari> it very well may be
<bgamari> I'm actually using John's branch at the moment
<elvishjerricco> Which one? =P There are quite a few. It's hard to keep track of which work is where.
<bgamari> elegant-cross
<elvishjerricco> One should not expect things to be at their store paths on the target
<bgamari> elvishjerricco, oh is it?
<bgamari> elvishjerricco, funny because that's precisely what is triggering the assertion :)
<elvishjerricco> Pretty sure. If I'm cross compiling to Android, for example, that executable would not be at `/nix/store/....`
<bgamari> which is ultimately forced because the line that you point out (or rather, the assertion above it) forces glibc
<bgamari> through a non-trivial dependency chain
Alling has joined #nixos
<elvishjerricco> Yea, I think the `glibcCross` that `shadow/default.nix` has host, build, and target all equal to those of the `shadow` derivation you are trying to build
<bgamari> I'm waiting to see if things build after removing that preBuild bit
<Alling> How would I go about installing borgmatic (or a Python package in general) on NixOS?
Itkovian has joined #nixos
<bgamari> that might help
<elvishjerricco> bgamari: So ultimately, I think that if you have a `nixpkgsCross` with host=Android and target=Android, then `nixpkgsCross.glibcCross` will attempt to be built with `nixpkgsCross.gccSomethingOrOther`
<elvishjerricco> Because `glibcCross`, I believe, is a sort of special thing that's meant to run one stage later than the `nixpkgs` it is a part of
<Leo`> Another question: If the package I'm building is a library that provides a .pc file, how can I make sure it will be in PKG_CONFIG_PATH if I nix-shell with my package?
<Leo`> It's not, for the moment.
<bgamari> elvishjerricco, I see
<elvishjerricco> Leo`: Sorry, I have no idea =/
Itkovian has quit [(Read error: Connection reset by peer)]
<elvishjerricco> bgamari: That's why people aren't supposed to reference glibcCross anymore. It's only meant to be used when defining nixpkgs cross compilation stages, in order to provide the cross compilation stage with the glibc it needs, which has to be built by the previous stage
<elvishjerricco> That said, my confidence that I'm correct in all of this is only like 70% =P If you really wanna be sure, you probably need to ask John.
<bgamari> right I do wish he were around today
Isorkin has quit [(Read error: Connection reset by peer)]
Isorkin has joined #nixos
erictapen has joined #nixos
<Alling> bgamari: Thank you! Haven't read the entire chapter, but I tried this: environment.systemPackages = with pkgs; [ (python35.withPackages(ps: with ps; [ borgmatic ])) ];
<Alling> bgamari: But: error: undefined variable ‘borgmatic’ at /etc/nixos/configuration.nix:59:41 (use ‘--show-trace’ to show detailed location information)
<elvishjerricco> Alling: sounds like borgmatic hasn't been added to the nixpkgs python package set.
<elvishjerricco> Not sure where to check for that
<bgamari> indeed it does
<Alling> I'm not a Python dev, but does this mean I have to build it myself or something?
<Unode> what package provides aclocal?
<bgamari> Unode, autoconf perhaps?
<Unode> tried it but doesn't seem to. Google tells me autotools but I can't find that on nixpkgs
<bgamari> automake?
<bgamari> iirc automake provides it on debian
bennofs has joined #nixos
<Unode> bgamari: thanks automake is the right one
<Unode> all of these auto* :) confusing stuff
<elvishjerricco> Alling: there's probably a way to add it to the python package set yourself. But I'm not familiar with nixpkgs's python infrastructure
<bgamari> Unode, indeed
<bgamari> How are packages supposed to find the build environment compiler if one is needed?
<bgamari> e.g. flex's configure script seems to be looking for a C compiler for the build environment
<elvishjerricco> bgamari: There's a `buildPackages` attr in `nixpkgs` that refers to the previous stage.
seccus has quit [(Ping timeout: 240 seconds)]
<bgamari> I've added stdenv.cc to nativeBuildInputs thinking that might do the trick
<bgamari> but alas
<elvishjerricco> So `buildPackages.stdenv.cc` might be right
<elvishjerricco> Not totally sure the implications of that
SaganMan has joined #nixos
<bgamari> hmm
<bgamari> yeah, seem to hit an assertion if I add buildPackages.stdenv.cc
erictapen has quit [(Ping timeout: 240 seconds)]
<SaganMan> 639 people, woah, how come I not even heard of nixos
<SaganMan> I heard good things about nix package manager
<elvishjerricco> bgamari: Strange. That’s supposed to be the stdenv used by that entire package set, so it should be functional
<bgamari> oh, it's not in stdenv
<bgamari> my bad
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<bgamari> ahh, a bit farther
<bgamari> yay
<bgamari> one package down
<fadenb> sphalerite: yes, can only be changed by github. Every scope that has access to configured emails has access to all configured email addresses
<infinisil> Hey SaganMan :D
<SaganMan> hey infinisil
<sphalerite> SaganMan: with good reason ;)
Wizek_ has quit [(Ping timeout: 240 seconds)]
<SaganMan> btw infinisil, does nix need some special kind of compiler or some sort to run the nix binaries in other distros?
<infinisil> It does not
<infinisil> Um, I actually just need to go eat, may the others here answer you for now :)
<infinisil> *cough* sphalerite *cough*
<sphalerite> lol
<sphalerite> SaganMan: if you use nix on a non-nixos distro it'll use its own glibc and stuff, if that's what you mean?
<Unode> does anyone know of nice documentation to work with python+virtualenv on nixos? I'm trying to run something that uses twisted gtk and currently fails to find gobject. Tried adding it to the system profile but the virtualenv doesn't know it should look there.
<SaganMan> sphalerite: yeah
<SaganMan> so that's how nix is doing
<bgamari> Unode, I'm afraid I have no idea
<sphalerite> Unode: use nix-shell instead of virtualenv
<Unode> sphalerite: easier said than done. One of the dependencies is not on nixpkgs.
Alling has quit [(Ping timeout: 260 seconds)]
<Unode> I'm not sure how to handle that one.
<sphalerite> Unode: usually pypi2nix can fix that for you
<Unode> not on pypi either :P
<sphalerite> ah right
<Unode> github maybe
<sphalerite> I've often found that packaging that sort of thing is easier than trying to fudge it into using a non-nix-packaged version
<Unode> currently on a local dir. with pip install it worked fine.
<sphalerite> And it has a setup.py?
<Unode> yes
<Unode> it works 'the python way' just not quite the 'nix way'.
seccus has joined #nixos
<sphalerite> Then you should be able to nix it with something like `pythonPackages.buildPythonPackage {name = "foo"; src = lib.cleanSource /path/to/local/dir;}`
<Unode> hum... and how do I then depend on that?
<sphalerite> ^ the nix expressions I built up during some software archaeology I was doing the other day
<sphalerite> the result of that call is a derivation which you can just stick in propagatedBuildInputs/buildInputs/nix-shell like any other
<sphalerite> fadenb: and without email it doesn't even have access to the public addresses? That's a pain
<Unode> thanks, I'll give that a try
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3ee33f35f8 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/5a21efdcdf (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<zarel> I would like to debug an issue: since I have swapped to 17.09 I cannot see the LUKS prompt anymore. If I boot the old system profile, it works. Any hint?
<aminechikhaoui> on a custom hydra server deployment, is it possible to see logs of narinfo requests from other clients ?
<aminechikhaoui> I want to basically check the timestamps of requests done by remote "nix-store -r <path> --option binary-caches <cache-server>`
<aminechikhaoui> on the <cache-server>
markus1189 has quit [(Ping timeout: 255 seconds)]
<aminechikhaoui> hm actually nevermind, the unit hydra-server should show that I guess, but somehow I'm not seeing that
markus1189 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] berdario opened pull request #30442: Add Pipenv, update pew (master...pipenv-pew) https://git.io/vdMmV
NixOS_GitHub has left #nixos []
ivanivan has joined #nixos
serhart has quit [(Remote host closed the connection)]
<ivanivan> I notice the install-nix-from-closure script automatically subscribes the user to the unstable channel.
<ivanivan> Curious why that's chosen over stable?
Isorkin has quit [(Read error: Connection reset by peer)]
serhart has joined #nixos
<tilpner> I don't think single-user Nix has stable channels
markus1189 has quit [(Ping timeout: 260 seconds)]
markus1189 has joined #nixos
Isorkin has joined #nixos
<MichaelRaskin> Well, it can use stable channels just as well
Isorkin has quit [(Client Quit)]
<tilpner> But why would it use NixOS specific channels?
<Unode> Does anyone here know why the extensions folder in tor-browser's user profile folder is a symlink to nix/store? It makes it impossible to install addons inside tor.
Isorkin has joined #nixos
<bgamari> hmm, it seems that the binutils-wrapper package doesn't expose an `ar` wrapper
<bgamari> how is one supposed to use ar in this case?
* infinisil is back
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30435: Update plv8 + build against V8 6.x (master...update-plv8) https://git.io/vdMfs
NixOS_GitHub has left #nixos []
<ivanivan> tilpner: I don't understand why single-user nix would default to the unstable channel.
<ivanivan> I can see how it's less risky to default to unstabl for single user than for multi-user, but it still seems... bold :)
<sphalerite> Unode: probably to allow setting extensions via nix. Not sure though
<tilpner> ivanivan - IIRC nixpkgs-unstable is the only supported channel for Nix on systems that are not NixOS or Darwin
<ivanivan> tilpner: fair enough. i'm about to install it on my ubuntu system, so i was looking at the install script(s)
markus1189 has quit [(Ping timeout: 246 seconds)]
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<Unode> sphalerite yeah that's also what I'm getting at. Although, is it common practice to break functionality for such a goal?
<sphalerite> I don't think so, usually that sort of setup would be behind a .configure function or something. AFAIK.
joepie91___ has joined #nixos
joepie91___ has quit [(Changing host)]
joepie91___ has joined #nixos
<elvishjerricco> bgamari: That definitely does not sound like the intended behavior. `ar` is definitely used in the cross compilation setup that `reflex-platform` uses.
joepie91 has quit [(Ping timeout: 246 seconds)]
<bgamari> elvishjerricco, I think I worked it out; you need to use $crossPrefix-ar
joepie91___ is now known as joepie91
<elvishjerricco> Ah yea, that's definitely needed
markus1189 has joined #nixos
sigmundv has quit [(Quit: Leaving)]
<DIzFer[m]> how would one make a derivation depend on an overriden version of another derivation? I just found out the reason Civilization Beyond Earth isn't running is because of a lack of gnutls support in curl. I know how to make steam depend on curl, but not how to have it require gnutlsSupport = true
jbgi has joined #nixos
fendoer has joined #nixos
<infinisil> DIzFer[m]: you use (curl.override { ... }) in buildInputs
<infinisil> or wherever it's needed
<DIzFer[m]> gotcha, testing right now
orivej has joined #nixos
joepie91 has quit [(Quit: Konversation terminated!)]
ixxie has joined #nixos
<DIzFer[m]> I was missing the parenthesis and the syntax checker was screaming at me, that looks better
joepie91___ has joined #nixos
joepie91___ has quit [(Changing host)]
joepie91___ has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<sphalerite> DIzFer: it may also just work in the steam FHS environment — if you nix-env -iA nixos.steam-run and then steam-run path/to/executable
<sphalerite> If the curl override doesn't help
Isorkin has quit [(Read error: Connection reset by peer)]
fendoer has quit [(Ping timeout: 240 seconds)]
joepie91___ has quit [(Client Quit)]
iqubic has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30424: piwik: 3.1.1 -> 3.2.0 (master...piwik-3.2) https://git.io/vd1uk
NixOS_GitHub has left #nixos []
joepie91___ has joined #nixos
joepie91___ has quit [(Changing host)]
joepie91___ has joined #nixos
<DIzFer[m]> I had to also disable openssl support, but it's now building. And didn't have to rebuild half my system, so victory for nix and hashed outputs. Let's see if Civ notices the change...
joepie91___ is now known as joepie91
<Unode> sphalerite: on sddm. do you know how I can customize the keyboard layouts listed on the interface? US is not my default but it's the only one displayed.
<iqubic> Anyone able to answer a few EXWM questions?
<sphalerite> Unode: I don't have a list, and it uses the right keyboard layout for me… do you have one set like services.xserver.layout = "gb"; ?
<iqubic> Why is it that NixOS creates a seperate emacs init file to use for EXWM?
jbgi has quit [(Ping timeout: 248 seconds)]
<joko> Hello, could anyone help me with optional dependencies?
<Unode> sphalerite: yes. I have exactly 'gb'. But sddm still shows 'US'
<Unode> sphalerite: although the keyboard actually seems to have behaved like GB.
<Unode> sphalerite: the list is on the top left corner. Next to the kind of session. (can't see it now since I'm logged-in :) )
jb55 has joined #nixos
<sphalerite> I'm just trying to take a screenshot of it but don't know how xD
<Unode> sphalerite: did you customize anything on sddm?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #29819: pythonPackages.MechanicalSoup: 0.4.0 -> 0.7.0 (master...mechanicalsoup-0.7.0) https://git.io/vdtKM
NixOS_GitHub has left #nixos []
<Unode> I enabled it and got all of what I mentioned.
<sphalerite> no, but I do have plasma enabled, and I think that affects the greeter
<sphalerite> hang on, I'll just take a photo of the screen xD
<dgpratt> pardon the noobish question (and more likely to follow), but running "nix-env -iA nixos.firefox" produces an error "attribute `nixos` in selection path `nixos.firefox` not found" -- I suspect something's not set up right, any ideas?
ison111 has joined #nixos
* sphalerite uploaded an image: file1508087302945.jpg (32KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/GiPBeYnfATRcdMXSdxjurUEQ>
<sphalerite> Unode: ^
<elvishjerricco> dgpratt: You probably are using the wrong channel name. By default, nix's package repo comes from "channels," which you add to your system and name. When you use `-A`, you have to reference what channel you want by the name you gave it.
<Unode> sphalerite: oh wow, that looks nothing like what I have
<sphalerite> Unode: right, it's probably a different greeter then
<elvishjerricco> dgpratt: So your channel probably just wasn't named nixos. You can check your user's channels with `nix-channel --list`
<iqubic> Unode: That's the Plasma greeter.
<infinisil> sphalerite: ${pkgs.imagemagick}/bin/import -window root "$HOME/Pics/screenshots/$(${pkgs.coreutils}/bin/date +%F-%T).png"
<infinisil> screenshot ^^
<sphalerite> elvishjerricco: `nix-env -f '<nixpkgs>' -iA firefox` is what works most consistently
<elvishjerricco> On NixOS, root has its own, which is what everyone else's defaults to by default
<Unode> sphalerite: mine looks more like http://www.auplod.com/u/aldopu54ce3.png
<elvishjerricco> sphalerite: Yes but that's a tad annoying and not super beginner friendly =P
<Unode> with different colors and such
<sphalerite> infinisil: I use scrot usually, the issue is I don't know how to screenshot the display manager. I tried just scrot with DISPLAY=:1 as root, but it seems to be missing an Xauthority and I don't know where to look for it
<dgpratt> ok, thanks elvishjerricco et al -- "nix-env -qaP firefox" suggests it's under "nixpkgs"
<iqubic> And I'm sitting here using plain LightDM
<sphalerite> elvishjerricco: nix-env is a tad annoying and not beginner-friendly :p
<iqubic> sphalerite: That is the truth.
<Unode> sphalerite: xset can workaround that, or is it xauth... There's one that opens up an X session publicly. i.e. all users on local machine.
<pie_> does this work for anyone?
<Unode> sphalerite: xhost actually.
<sphalerite> Unode: yeah, but that's a bit of a bootstrap problem… xhost also needs to auth to the X server xD
<Unode> oh heh, right
<iqubic> pie_: I think it should work. What issues are you having?
<pie_> lags out my whole browser
<dgpratt> more noobish questions as promised: suppose I have nix installed on Ubuntu running gnome, is there a straightforward way to install firefox from nix and run it in the desktop environment?
<pie_> well the UI anyway, the pages themselves seem to stay mostly working
<pie_> idk if it does something that makes it break when you have a lot of tabs open maybe?
* pie_ tries with a smaller session
<infinisil> sphalerite: Ah i see, wouldn't know that either
<Unode> I'm getting some really weird graphical glitches with chromium... After some minutes new tabs become garbled and only a browser restart fixes it.
<sphalerite> infinisil: :)
<Unode> sphalerite: so about sddm, any suggestions on how to customize the layouts? I saw something on the web but the files mentioned don't exist on nixos (or maybe they live elsewhere).
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vdM37
<NixOS_GitHub> nixpkgs/master 8f95aef Yegor Timoshenko: meson: do not strip RPATH...
<NixOS_GitHub> nixpkgs/master db11d7f Yegor Timoshenko: xf86-input-libinput: 0.25.1 -> 0.26.0
<NixOS_GitHub> nixpkgs/master 12f460e Yegor Timoshenko: libinput: 1.7.3 -> 1.8.3...
NixOS_GitHub has left #nixos []
<sphalerite> Unode: probably using what you found on the web and https://nixos.org/nixos/options.html#sddm+extr ?
<pie_> iqubic, ok its not broken in a different profile
<pie_> either one of my other adodns breaks it or the 2000 unloaded tabs :(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #29784: libinput update (master...libinput-update) https://git.io/vdIG5
NixOS_GitHub has left #nixos []
<iqubic> I think it's all the tabs you have open
<iqubic> Why so many tabs open all at once?
<Unode> sphalerite: try running sddm-greeter :)
<pie_> i kind of use tabs as a todo list (yeah i know bookmarks are a thing)
hotfuzz has joined #nixos
Oida has quit [(Ping timeout: 258 seconds)]
<pie_> they arent all actually loaded though
Oida has joined #nixos
<sphalerite> Unode: oh neat :D so, two interesting observations…
<sphalerite> 1. It's using the theme that you also have.
<sphalerite> 2. It's showing gb (and gb only) in the keyboard layout list
<Unode> 2. really? XD mine shows US
Alling has joined #nixos
<Alling> Does anyone know how I can add a custom Python package to NixOS (specifically borgmatic)?
<Unode> wait... I spoke too soon.
<Unode> now I'm wondering if I'm seeing things
<Unode> should have taken a screenshot
hotfuzz_ has quit [(Ping timeout: 246 seconds)]
<hodapp> Alling: 'custom Python package' meaning one that's not in nixpkgs?
<joko> Hello, could anyone help me with optional dependencies? I'm talking about "? null" on top of nix files
<sphalerite> Unode: `sddm-greeter --theme /run/current-system/sw/share/sddm/themes/breeze` gets me the same greeter as for my actual login screen
<Alling> hodapp: Exactly.
<Unode> sphalerite: I don't have any themes
<Unode> I mean ..sw/share/sddm doesn't exist
iqubic has quit [(Remote host closed the connection)]
iqubic has joined #nixos
<hodapp> Alling: you can use something like buildPythonPackage to just define the package (local to a specific expression, even)
<Alling> infinisil: Thanks. I'm not a Python dev, but I am a programmer, so I can probably figure it out if you could point me in the right direction. Is "9.11.1.2. Developing with Python" what I want?
<sphalerite> Unode: the plasma desktop module sets sddm's theme to that
<hodapp> Alling: http://lpaste.net/4174437396844118016 is something I did for a shell.nix along similar lines
<infinisil> Alling: Yeah
<Unode> sphalerite: I don't have KDE/plasma so that's probably why.
<Alling> hodapp: Cool! I'll have a look.
<Unode> anyway, thanks I'll poke this a bit more. Something will show up.
<Unode> It's going a bit crazy though, for every 3 tabs I close another 5 show up :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to staging: https://git.io/vdMsc
<NixOS_GitHub> nixpkgs/staging 8e53ca9 Symphorien Gibol: kexectools: 2.0.14 -> 2.0.15
<NixOS_GitHub> nixpkgs/staging 0435298 Jörg Thalheim: Merge pull request #30413 from symphorien/kexec...
NixOS_GitHub has left #nixos []
bennofs has quit [(Ping timeout: 246 seconds)]
* bgamari has a cross-compiled build up to openjpeg
jbgi has joined #nixos
<Alling> hodapp: How does that snippet fit into configuration.nix?
<hodapp> Alling: you can treat that buildPythonPackage definition as you would any other Python package
<hodapp> what existing system-wide Python stuff do you have in your configuration.nix?
jb55 has quit [(Ping timeout: 248 seconds)]
Dunkelkriegerin is now known as edef
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cocreature closed pull request #30214: ghcjs/ghcjsHEAD: Use separate patch files to fix build of ghcjs (master...ghcjs) https://git.io/vdz6L
NixOS_GitHub has left #nixos []
<dgpratt> I installed nix to play around with isolated environments for dev, but then I thought nix being so great, maybe I should install other apps with it also, e.g. firefox, but maybe that's not what folks do? Maybe I shouldn't expect such things to work "out of the box" if I'm not running NixOS?
<ArdaXi[m]> That should work fine, why wouldn't it?
<infinisil> What folks do is switch to NixOS :P
<ArdaXi[m]> Sure, but Nix should work fine as a drop-in replacement for a package manager
athaller has quit [(Remote host closed the connection)]
<dgpratt> ArdaXi[m]: I'm not sure, I suspect I'm doing (or did) something silly. Might've been me installing the Gnome desktop environment through apt and then expecting that I could install e.g. "firefox" through nix and expect them to play nice together
thblt has joined #nixos
<ArdaXi[m]> What's not working?
<dgpratt> infinisil: that's an option; this is all running in a VM and historically I've had the best luck running Ubuntu in VirtualBox
<adisbladis> dgpratt: That should be fine.
<joko> ArdaXi[m]: it is a bit difficult for me to set up graphics for nix packages outside of nixos; besides that, I don't think there is anything wrong using non-dev packages
ixxie has quit [(Quit: Lost terminal)]
nschoe has joined #nixos
<ArdaXi[m]> I've only used nix as a package manager on OS X but everything worked fine there
<dgpratt> maybe I'm just not launching FF the right way. Suppose I "nix-env -iA nixpkgs.firefox", how do I run it in the graphical environment?
mrkgnao has quit [(Quit: WeeChat 1.9.1)]
<adisbladis> dgpratt: Oh are you expecting the desktop entries to be pointing to your nix installed version?
<dgpratt> if I run firefox from a non-graphical tty, I get "GDK_BACKEND does not match available displays"
Isorkin has joined #nixos
riclima has joined #nixos
zarel has quit [(Quit: Leaving)]
JosW has quit [(Ping timeout: 248 seconds)]
<ArdaXi[m]> A non-graphical tty?
<dgpratt> rather than make a further idiot of myself, let me just ask (again): Given "nix-env -iA nixpkgs.firefox", how do I run firefox from the Gnome desktop?
<ArdaXi[m]> You'd have a .desktop file in your current profile, would be `/run/current-system/sw/share/applications` on nixos
<ArdaXi[m]> Not sure where it would be in user mode
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ciil opened pull request #30444: rstudio: 1.1.351 -> 1.1.383 (master...rstudio) https://git.io/vdMZI
NixOS_GitHub has left #nixos []
<ArdaXi[m]> But really, you should just be able to run `firefox`, in a terminal for example
bennofs has joined #nixos
<ldlework> Does anyone here use the MacPort of emacs distributed by Nix?
JosW has joined #nixos
<iqubic> ldlework: What issues are you running into?
<ldlework> iqubic When I switch to Mission Control spaces that have emacs running, even if it is the only app on that space, mission control focuses Finder, everytime
<ldlework> And I have to click into emacs. Its a minor issue, but I am a heavy Mission Control user and its starting to grate my nerves
<Alling> hodapp: OK. My configuration.nix now looks like this: let borgmatic = buildPythonPackage rec { ... } in { ... environment.systemPackages = with pkgs; [ (python36.withPackages(ps: with ps; [ borgmatic ])) ]; }
<Alling> error: undefined variable ‘buildPythonPackage’ at /etc/nixos/configuration.nix:11:15 (use ‘--show-trace’ to show detailed location information)
<iqubic> ldlework: That doesn't seem like a nix issue.
<Alling> So I guess I'm missing some boilerplate.
<ldlework> iqubic it doesn't happen with the brew installed emacs
<iqubic> But I'm not a Mac user, so I wouldn't know.
<ldlework> or the one I built myself
<ldlework> I guess this is the point I stop using GUI emacs lol
<iqubic> ldlework: That should not be the conclusion you jump to.
<ldlework> I guess I can try the GTK vesion
<dgpratt> ArdaXi[m]: your mention of .desktop files was the hint I needed, thanks
<infinisil> Alling: { pkgs, ... }: let borgmatic = pkgs.pythonPackages.buildPythonPackage rec { ... }; in { environment.systemPackages = with pkgs; [ (python36.withPackages (p: [ borgmatic ])) ] }
<dgpratt> btw, this is a barebones Ubuntu install, so no terminal emulator installed (yet)
<infinisil> Something like that ^^
<infinisil> Alling: Maybe you need python3Packages instead though, not sure
<iqubic> dgpratt: I think Ubuntu ships with a terminal emulator.
<iqubic> But you can always use a TTY if needed.
Wizek has quit [(Quit: Connection closed for inactivity)]
<ArdaXi[m]> Trying to launch X programs from a TTY isn't easy, though
<iqubic> No, it isn't
fendoer has joined #nixos
<ldlework> just a matter of exporting the right DISPLAY right?
* ldlework can faintly remember being in such situations before
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lejonet closed pull request #30025: sudo and sssd: Enable sssd support in sudo and building of sudo library in sssd (master...master) https://git.io/vdc19
NixOS_GitHub has left #nixos []
Arcaelyx_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lejonet opened pull request #30445: Sssd sudo integration (master...sssd-sudo-integration) https://git.io/vdMne
NixOS_GitHub has left #nixos []
Arcaelyx has quit [(Ping timeout: 240 seconds)]
jb55 has joined #nixos
<Unode> are there any common practices on running a binary on nixos (i.e. something that expects /lib64/ld-linux.so.2, among others)
<ldlework> Docker?
<ldlework> :)
JosW has quit [(Ping timeout: 264 seconds)]
jtojnar has joined #nixos
abrar has joined #nixos
<Unode> ldlework: erm :)
<ldlework> lol
Arcaelyx_ has quit [(Read error: Connection reset by peer)]
fader_ has left #nixos ["Leaving"]
<Unode> oh wow, that wiki mentions exactly the tool I'm trying to run. What are the odds of that.
Arcaelyx has joined #nixos
<ArdaXi[m]> That should save some time
<infinisil> Unode: MasterPDFEditor?
<iqubic> Let's say I have large C++ project that my company is working on.
<tilpner> Unode - For a few uses, steam-run usually works well
jb55 has quit [(Ping timeout: 240 seconds)]
<iqubic> How would I get Nix to compile that program.
<Unode> I'm surprised though, I can't find master-pdf-editor on nixos.org search.
<iqubic> All I have is the code and the Make file + a list of extrenal deps for this project.
<iqubic> How do I make sure that all the libraries needed are in scope?
<infinisil> Unode: Huh, weird indeed
<symphorien> iqubic: put them in buildInputs
<iqubic> buildInputs for what?
<iqubic> I have no idea how to write a derivation in the first place.
<ldlework> its not hard
<Unode> infinisil: https://github.com/NixOS/nixpkgs/pull/27790 and that is why
<Unode> sometimes I wonder why nixos makes it that hard :P
<symphorien> iqubic: then start by reading nix and nixpkgs manuals and start learning with the examples provided there
SaganMan has quit [(Quit: WeeChat 1.6)]
<iqubic> Will that work for a C++ project and a Make file?
<lejonet> Hmm, what is the easiest way to get around a package calling scripts (with non-nixos-compliant shebangs ofc) during the build phase?
fendoer has quit [(Ping timeout: 252 seconds)]
<Unode> iqubic: https://learnxinyminutes.com/docs/nix/ and the links at the end might help.
<lejonet> I've tried to do a symlink in the preBuild phase, but its not liking me :( :P
<ArdaXi[m]> As long as it's a standard ./configure && make && make install sort of thing, the standard builder should be fine
<iqubic> ArdaXi[m]: It's not as simple as that.
<symphorien> lejonet: I think you can call patchShebang in preConfigure
<ldlework> lejonet why not just add the interpreters in the buildInputs so the scripts work?
<iqubic> I need to write my own builder too.
<Alling> infinisil: Thank you! When I do ` src = pkgs.pythonPackages.fetchPypi { inherit pname version; sha256 = "..."; };` what is sha256?
<infinisil> iqubic: What does the project use to build?
<iqubic> And that builder needs some certain packages in scope that it probably won't have as defaults.
<ldlework> iqubic yeah but doing that is like overriding one of the build steps with a string containing bash.
<ArdaXi[m]> Chapter 3 of the Nixpkgs manual should have pretty much all you need
<ldlework> its super flexible
<lejonet> ldlework: I have done that, but I guess I should've removed the preBuild hook then
<iqubic> infinisil: This: https://ninja-build.org/
<ArdaXi[m]> iqubic: That's what `buildInputs` does, it puts them in scope
<lejonet> symphorien: ah there is a function fo it, ofc there is, this can't be an uncommon problem :P
riclima has quit [(Quit: riclima)]
<ArdaXi[m]> Might also be worth looking in nixpkgs itself at a project with similar dependencies
<ldlework> you literally just define a build step that does whatever you would normally do with ninja to build
<ldlework> the default builder just has some bash that -literally just calls ./configure, make, make install0
<ldlework> so just write a derivation that gets your stuff, gets the dependencies into the input, and then write the build script
<lejonet> symphorien: awesome, if it doesn't work with just inputting the interprenter in buildInput I'll try that one :)
<symphorien> lejonet: I think patchShebang is called automatically on $out/bin at the end
<ArdaXi[m]> iqubic: https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/darwin/swift-corefoundation/default.nix This is one example of a derivation that uses ninja
<clever> symphorien: it is
<iqubic> ldlework: How do I make sure that the right tools and library dependecies are in scope?
<lejonet> symphorien: well, I need it during the build phase :)
<symphorien> so call it by hand before
<ldlework> iqubic by writing them into the derivation as per the documentation for derivations
<lejonet> because the build phase calls a perl script to generate bash completion
<lejonet> symphorien: that is exactly what I'm gonna do
<ldlework> IE, by passing { buildInputs = [ whatever ] } to the derivation
<symphorien> :)
<infinisil> Actually, you probably just need to put ninja in the build inputs iqubic and it should do the ninja thing
sigmundv has joined #nixos
<ldlework> Yeah exactly
<ldlework> put ninja in there, then just call whatever normal ninja build scripts you would call if you were using ninja to install this project to your host or whatever
<Alling> infinisil: "1 dependencies couldn't be built" so I guess I need something in buildInputs ... but what?
<ldlework> Nix isn't like alpine with a unique Clib and a whole different tool chain and stuff
<iqubic> infinisil: I'll try that.
<ldlework> It is all your normal tooling, and it all works the same
<iqubic> I assume the build inputs needs to contain all the dependencies of this project too, right?
<infinisil> Alling: What's the error?
<ldlework> iqubic those are the only depnedencies it needs
<ldlework> oyu don't need to specify ninja's dependencies, etc
<ldlework> because including ninja in the inputs will get ninja properly installed, configured etc
<ldlework> so if your project depends on libpng or something, then that would go inthere
<ldlework> then in the build script just build it with normal commands
<iqubic> Like any libraries needed for the ninja script to actually compile the C++ project properly. Right?
<ldlework> yes
<ldlework> I think it could help to read the bit in the manual about Profiles to understand what is happening when you build a derivations.
<iqubic> Yeah. I think that would be helpful.
<infinisil> and you can just read through examples in nixpkgs, just search for "ninja" and you'll find lots of examples
<lejonet> Well this was interesting, mkdir whines that it cannot create lib/systemd/system in its store-path, because "Permission denied" dafuq?
<iqubic> Can I get a link to that part of the manual?
<symphorien> lejonet: I bet you are in a nix-shell building a derivation which is already present in the store
<lejonet> symphorien: well, I'm not building a derivation that is already present, but it has systemd as a dependency
<iqubic> ldlework: I first need to create the derivation before I can build this project.
<ldlework> iqubic chapters 8, 9, 14, 15 and you'll know all you need to know
<lejonet> I have yet to get a successful build, but it seems like I'm close now lol
<infinisil> Ohh, Nix is on HN's frontpage again ^.^ https://news.ycombinator.com/item?id=15478209
<ldlework> iqubic I would read them in the order, 8, 9, 15, 14
<Alling> infinisil: So it does say something about wrong hash.
ris has joined #nixos
<lejonet> I guess I should double check what --enable-systemd means for the project and see if its any that I will need anyway (my guess is that it "only" triggers to put a unitfile somewhere and such)
tempeh has joined #nixos
<clever> lejonet: some services link into systemd for sd_notify
<clever> and you would obviously not want that if you lack systemd headers
<infinisil> Alling: Replace the hash 07zvw... with 1zass...
<lejonet> well, I've thrown in systemd in the buildInputs, so it should have what it needs for that part, but it seems like the install phase tries to put stuff in /lib/systemd/system, and my guess is unitfiles
<iqubic> Do I need to set-up a docker container for this project, or is that too over the top?
<Alling> infinisil: I don't think 07zvw is anywhere in my configuration.nix. I have this, though: src = pkgs.pythonPackages.fetchPypi { inherit pname version; sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd"; };
<Alling> And that hash may very well be totally wrong. I don't know what hash I should put there.
<clever> Alling: just put in any hash, nix will tell you the right one when it fails
<infinisil> Alling: Hmm not sure about that then, I haven't done much python stuff
<infinisil> clever: See his gist
Nobabs27 has joined #nixos
<ldlework> iqubic only if you want the execution of that project to be isolated from the rest of the system
<ldlework> Nix doesn't do process isolation
mortum5 has joined #nixos
<ldlework> All the processes running in a given profile are sharing the filesystem, etc
chreekat has quit [(Quit: quitting)]
<iqubic> ldlework: This project won't mess with my system too much, I don't think.
<clever> iqubic: systemd does have some sandboxing options, and there are also nixos containers
<ldlework> Using Docker and Nix together is a thing because they do entirely different things.
<ldlework> s/Docker/containers
elasticdog has quit [(Ping timeout: 246 seconds)]
<iqubic> How hard is it to set-up a docker container for nix?
elasticdog has joined #nixos
jb55 has joined #nixos
simukis has joined #nixos
Nobabs27 has quit [(Quit: Leaving)]
<ArdaXi[m]> Depends slightly on what you mean by "a docker container for nix"
<ldlework> iqubic do you mean Docker on NixOS, or NixOS as the image OS
<ldlework> hehe yeah
<ldlework> they're both trivial really
<iqubic> ldlework: Docker on NixOS.
<iqubic> I think.
<iqubic> I'm not too sure really.
<ldlework> I'm guessing if you did nix-env -i docker it would work
<iqubic> What would that do?
<ldlework> iqubic do you want to use docker on your NixOS machine? Or do you want to construct a Docker container that is running NixOS inside which is the environment for some software you want to deploy as a container?
<LnL> you can enable the dockerd in your configuration
<ArdaXi[m]> Docker is slightly more than a binary, I think
<ldlework> `nix-env -i docker` does the former
<ArdaXi[m]> On NixOS you'll really want to do `virtualization.docker.enable`
<ldlework> Sure, its also a daemon and a number of binaries
<iqubic> I have no idea what I want to do.
<LnL> ^ nix-env would only install the client
<ldlework> Really?
<iqubic> I hardly know what docker even is.
<ldlework> I figured that nix pkgs could be more complex than deploying a single binary
<ldlework> iqubic then I wouldn't worry about it and just focus on Nix
<ArdaXi[m]> I think you might be trying to do a few too many new things at once, yeah
<iqubic> Alright. I'm going to read up on how to write a derivation then.
<ldlework> read chapters 15 and 8, 9 and then finally 14
<ldlework> 👍
<iqubic> I will.
<ldlework> make sure you read 8 and 9 too tho
<ldlework> because they explain how the symlinking and stuff works
<ldlework> You'll understand that Nix is actually a typical linux distribution, but with a layer of indirection
<ldlework> afaict
Alling has quit [(Ping timeout: 260 seconds)]
riclima has joined #nixos
<infinisil> ldlework: Ah you left a comment on HN :)
<ldlework> yup
<hodapp> my favorite is Bocker, most of Docker's functionality implemented completely in bash
<infinisil> Ah and taktoa is there too
<elvishjerricco> Has anyone tried to get memtest86+ working with systemd-boot? There's a nice nixos option for enabling it in grub, but not for systemd-boot.
<lejonet> clever: from what I can see, it was only used to install systemd stuff, so I'm just going to remove that flag, because I'll have to write a nix service for it anyway
riclima has quit [(Client Quit)]
<hodapp> elvishjerricco: oh, I feel like I did this on my desktop somehow, but on Arch... but I think it hangs around in my boot menu
* hodapp digs
<hodapp> huh, well, there, I did it with efibootmgr & bootctl, along with Shellx64.efi
<tilpner> LnL - dockerd would be installed too, but I think it shouldn't be
<tilpner> (There will be no service set up for you though)
<elvishjerricco> hodapp: Hm there does seem to be a lot of content on the internet about doing it in Arch linux. Can't be too hard to port to NixOS =) Thanks!
<ldlework> "nix-env -i docker" should probably result in a fully working installation of Docker
riclima has joined #nixos
riclima has quit [(Client Quit)]
<LnL> well if you configure and start the daemon yourself it would work
<iqubic> hodapp: What did you do in with efibootmgr & bootctl?
<ldlework> A thing that's starting to bother me with Nix though, is everytime I try to google "Nix <thing I want to know about>" the first 5 or so results on google are source code
<ldlework> 😂
<tilpner> ldlework - No. nix-env should never configure and start services for you
<ldlework> tilpner no?
<hodapp> iqubic: I set up the EFI boot menu to have a couple things like Shellx64.efi and memtest86.efi.
<hodapp> alongside my normal Linux boot, of course.
<iqubic> What are those things?
goibhniu has joined #nixos
mithsv has quit [(Read error: Connection reset by peer)]
mithsv has joined #nixos
Itkovian has joined #nixos
<hodapp> iqubic: Shellx64 is some sort of minimal EFI shell, IIRC (I believe it allows me to do some NVRAM configuration and possibly to have it load other things - partitions perhaps); memtest86+ does some extensive RAM testing to find errors, and memtest86.efi is just a version of this compiled to an EFI binary.
<Acou_Bass> infinisil: yeah!
<infinisil> Acou_Bass: I just left a comment, you can check the systemd logs with `journalctl -u znc -e`
<infinisil> -u znc just selects the unit znc, and -e scrolls to the bottom
<Acou_Bass> ohh yeah hehe i did find the problem, the config file was duff so znc wouldnt read it
<Acou_Bass> but i never found a way to make nix write it correctly
<infinisil> duff?
<Acou_Bass> yeah you know
<Acou_Bass> rubbish
<infinisil> Ah
<Acou_Bass> my znc config works fine without the bindhosts
<Acou_Bass> its the bindhosts i want though :P
goibhniu has quit [(Ping timeout: 248 seconds)]
<tilpner> ldlework - Currently it won't, and changing it to do that... would be hard. How do you setup Docker portably on NixOS, Darwin and Ubuntu?
<infinisil> Acou_Bass: I see, haven't used those
<Acou_Bass> basically so i can connect to my ZNC via a subdomain
<Acou_Bass> rather than an internal IP
civodul has joined #nixos
nschoe has quit [(Ping timeout: 255 seconds)]
endformationage has joined #nixos
<ldlework> tilpner with three different derivations?
<ldlework> You can't really install Docker on OSX anyway
<tilpner> ldlework - That's not what I meant. How are you going to configure and start a service with just Nix? NixOS was built to also handle services, but Nix can't do that
<ldlework> Ah
<ArdaXi[m]> With a bunch of hacking you could have Nix do that, but then… you're really just reimplementing NixOS and I don't think anyone would bother
<ArdaXi[m]> But it is certainly possible
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdMlu
<NixOS_GitHub> nixpkgs/master 19997f0 Tim Steinbach: linux-copperhead: 4.13.6.a -> 4.13.7.a
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdMlz
<NixOS_GitHub> nixpkgs/release-17.09 d76720f Tim Steinbach: linux-copperhead: 4.13.6.a -> 4.13.7.a...
NixOS_GitHub has left #nixos []
<tilpner> Exactly, which is why we should leave that sort of management to NixOS, not try to cram it into nixpkgs
<ldlework> I mean I guess that's what home-manager is doing
<ArdaXi[m]> You'd end up basically rebuilding something like nixos-rebuild
<ldlework> And what NixUP want's to be
nschoe has joined #nixos
Itkovian_ has joined #nixos
Itkovian_ has quit [(Client Quit)]
<tilpner> ldlework - Hold on, now you're changing the argument. We were talking about nix-env, and home-manager needs more than nix-env
<tilpner> I'm not saying there can't be a way to configure Docker on Ubuntu with Nix, just that nix-env shouldn't do it
<BlessJah> disasm: you around? it seems that nixos-17.09-small was downgraded from 17.09.1535.1fdca25ee8 to 17.09.1716.68ef4b14bc
Itkovian_ has joined #nixos
<BlessJah> disasm: regular 17.09 channel points to 17.09.1547.2231575a7d
k2s has joined #nixos
<ldlework> til, sure I get what you're saying - nix-env is firmly a store management utility. home-manager uses native bash in order to manage OSX.
k2s has quit [(Client Quit)]
<ldlework> like services
Itkovian has quit [(Ping timeout: 255 seconds)]
ma27 has joined #nixos
<infinisil> What are the advantages of NixOS?
<infinisil> Writing a comment, I already have the module system and generations
<srhb> infinisil: Over plain nix?
<infinisil> Over other distros
<srhb> Ah.
<srhb> I think those encapsulate it pretty well, but it also hides a lot of the awesomeness (eg. declarativeness)
<ldlework> infinisil the problem is that those features are available on any OS which Nix is available
<infinisil> Hmm, right, I'll add something about not having to run a bunch of odd commands when you set up a new machine
<srhb> ldlework: Modules not so much.
<ldlework> I'm using modules with home-manager though I thought
<srhb> Right, home-manager modules only.
<ldlework> Yeah but that's just a library issue
<ldlework> So you should frame it with that nuance if you are going to mention it
<tilpner> infinisil - Ehh, we still have to do partitioning manually, when many others use graphical installers. It might not be such a good point to bring up?
<srhb> I wouldn't want to try and do the manual cleanups required to allow this to exist in a non-NixOS system
<srhb> You'd be fighting everything.
<ldlework> "allow this"?
<srhb> Ripping out the existing systemd, for instance.
ma27 has quit [(Quit: WeeChat 1.9.1)]
<srhb> You're left with - well, NixOS.
<infinisil> tilpner: True, but that's rather small of a price to pay for what nixos can set up
<ldlework> I dunno what you're saying, sorry
<srhb> ldlework: Remember when you have a file lying around that prevents home manager from applying your configuration?
<srhb> ldlework: And you have to get rid of it manually.
taktoa has quit [(Remote host closed the connection)]
<ArdaXi[m]> Honestly, I've always seen NixOS more as an Ansible replacement
<ldlework> I mean that's what you want
<srhb> ldlework: Now imagine this in a tightly interlocking distro scale.
<srhb> ArdaXi[m]: hissss :)
<ldlework> I don't know what strawman you're attacking...?
<tilpner> infinisil - Absolutely, but installation is not really one of the best features of NixOS, so you shouldn't get anyones hopes up. Focus on declarativeness :)
<ldlework> Did I say something about this that you're disagreeing with?
<srhb> ldlework: Uh, I'm not trying to attack you or a strawman at all, sorry if I'm not explaining it well though.
<ldlework> All I said was that the module system is available in Nix, there just are not the same amount of modules.
<ArdaXi[m]> What? On my own time I can get really excited about purity and such, but when I just want to get things done I don't care so much about the OS and far more about config management ^.^
<srhb> ldlework: I'm agreeing with you that it's a "library issue" and disagreeing that there's anything "just" about that.
<ldlework> So you shouldn't present the module system as something that NixOS has over Nix because Nix has it too.
<tilpner> Nix doesn't have modules
<LnL> infinisil: one other cool feature is that you can test configuration changes in a vm with a single command
<ldlework> I don't get it.
<infinisil> tilpner: Alright, I'll say "If you have a new *nixos* machine, blablabla not bunch of commands blablabla declarative"
<infinisil> LnL: Ohh good point
<infinisil> tilpner: nix can use the module system in nixpkgs, which is what home-manager does
<tilpner> infinisil - nixpkgs has modules, nix itself doesn't
<infinisil> yeah
<tilpner> (We're already being pedantic here, might as well make that distinction too)
<ldlework> The point stands, NixOS doesn't have "modules" as an advantage to not using NixOS
<ldlework> ya
<ldlework> its good
<ldlework> the only reason I understand anything is infinisil's patience is explaning all that pedantry, its valuable
<infinisil> home-manager is pretty niche niche, modules haven't been used for something like that very often
<ArdaXi[m]> NixOS doesn't exclusively have the idea of modules, but nixos' modules are pretty valuable in their own right
<tilpner> (And technically, <nixpkgs/nixos> has modules, <nixpkgs> only does insofar as it contains <nixpkgs/nixos>)
<ldlework> ArdaXi[m] that's the way it should be presented
<infinisil> ArdaXi[m]: Agreed, there's tons of them
<infinisil> tilpner: Actually, the modules are in nixpkgs/lib
<tilpner> Oh? Huh
<ekleog> the code for merging modules*, isn't it?
<infinisil> nixpkgs/lib/{options,modules,types}.nix
<tilpner> You're right. I always entered via nixos/lib/eval-config.nix, never noticed that
<tilpner> Thanks! :)
<infinisil> :)
thblt has quit [(Ping timeout: 240 seconds)]
goibhniu has joined #nixos
<infinisil> Okay, here's my comment, hope i got everything right: https://news.ycombinator.com/item?id=15478759
<bgamari> anyone know what is going on here?
<bgamari> /nix/store/y28z7zxp09gjwzh5mr40lnm6d7cca7hm-arm-unknown-linux-gnueabihf-binutils-2.28.1/bin/arm-unknown-linux-gnueabihf-ld: warning: libdl.so.2, needed by /nix/store/z8sqw1qc8jhfapsy7gibj1rrsan0pib2-linux-pam-1.2.1-arm-unknown-linux-gnueabihf/lib/libpam_misc.so, not found (try using -rpath or -rpath-link)
jb55 has quit [(Ping timeout: 240 seconds)]
<bgamari> the .so's in question appear to exist
<bgamari> and objdump says that the RUNPATH in libpam_misc.so is sane
<bgamari> RUNPATH /nix/store/z8sqw1qc8jhfapsy7gibj1rrsan0pib2-linux-pam-1.2.1-arm-unknown-linux-gnueabihf/lib:/nix/store/rnm818740hd28s8zkl6cj4dp4dvdaj32-glibc-2.25-49-arm-unknown-linux-gnueabihf-arm-unknown-linux-gnueabihf/lib
MercurialAlchemi has joined #nixos
iqubic has quit [(Remote host closed the connection)]
iqubic has joined #nixos
<ldlework> Hmm I created this second runCommand build called "docs" but it doesn't get built: https://gist.github.com/dustinlacewell-wk/62f7a23f79150fe47e7418f4b864177e
<disasm> BlessJah: wouldn't that be upgraded?
<srhb> ldlework: You're not referencing it anywhere, are you?
<ldlework> its a lazy language!
<srhb> ldlework: Right, exactly. :-)
<ldlework> eh
nschoe has quit [(Ping timeout: 255 seconds)]
<ldlework> heh
<BlessJah> disasm: me cannot into math, sorry for that
<BlessJah> I've seen no upgrades recently and when I saw change from xx47 to xx16 I immidiately jumped to conclusion that was downgrade
<disasm> BlessJah: no problem :)
<BlessJah> be vigilant ;)
jb55 has joined #nixos
<disasm> tilpner, infinisil: I'm not sure nixos is well suited for anyone that is scared of manually setting up their partitions. I think infinisil point still stands. After your disks are setup the way you want them and mounted, it's 2 commands and a reboot
<samueldr> I'm looking through the nixos-homepage issues, there's a need for triage there as many bugs are either fixed or outdated
<Unode> I'm having some issues with GTK3 apps and several warnings on the logs about inability to save dconf settings. I tried adding dconf to the system but it was insufficient. I still can't save dconf settings with my user. Is there any service that provides proper dconf behavior? (I'm not running KDE nor GNOME).
jb55 has quit [(Quit: WeeChat 1.9)]
jb55 has joined #nixos
<Unode> every time I try to do a change I get "The name ca.desrt.dconf was not provided by any .service files"
<infinisil> Unode: I actually got that error too while i was using konsole, I couldn't resolve it though, I just switched to a different terminal
p4cman has quit [(Quit: Connection closed for inactivity)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lo1tuma opened pull request #30447: nodejs: 8.6.0 -> 8.7.0 (master...nodejs-8.7.0) https://git.io/vdM4H
NixOS_GitHub has left #nixos []
<Unode> infinisil: :/ it looks like this should be something fixable by installing dconf but I still get the warning
acowley_away has quit [(Ping timeout: 240 seconds)]
simendsjo has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<sphalerite> Unode: you may need to lgo out and back in
<sphalerite> To get your dbus session daemon restarted
<Unode> ok
<Unode> this seems to also affect other packages. For instance meld can't save any settings.
<Unode> sphalerite: would adding dconf to systemPackages suffice?
acowley_away has joined #nixos
<Unode> I also found some line that enabled dconf specifically on dbus but the issue reported this shouldn't be necessary
marusich has joined #nixos
<Unode> anyway, re-log it is
<sphalerite> Yes, add it to systemPackages or your user env
<sphalerite> Not sure if you need to relog, you can try without first
data has joined #nixos
dieggsy has joined #nixos
data is now known as Guest10280
<disasm> Ugh, can't get broadcom_sta working on live CD :(
<sphalerite> Broadcom_sta? shiver
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grwlf opened pull request #30448: Browsermob (master...browsermob) https://git.io/vdMBg
NixOS_GitHub has left #nixos []
<gchristensen> disasm: do you have an android?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hhomar opened pull request #30449: mpv: enable dvb on Linux (master...mpv-enable-dvb-linux) https://git.io/vdMBw
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grwlf closed pull request #30448: Browsermob (master...browsermob) https://git.io/vdMBg
NixOS_GitHub has left #nixos []
<disasm> Yeah, I know, works fine on my system but even with the config added for wl module and kernel packages, doesn't work on us stick
<disasm> gchristensen: I do
<gchristensen> you can plug-and-play tether
riclima has joined #nixos
<disasm> gchristensen: using the wifi on the Android?
<gchristensen> no, plug in over USB it should "just work"
<disasm> Ooh, got it!
<gchristensen> that feature makes me wish I used android :)
<infinisil> plug-and-play tether sadly doesn't just work for iOS :(
<gchristensen> yeah
<infinisil> Is there something you can do to make it work?
<gchristensen> as far as I can tell? buy an android :(
<gchristensen> it is the price we pay for The Most Beautiful Phone Yet
<disasm> I got a pixel XL, so it's pretty beautiful looking too :)
<samueldr> gchristensen: according to archlinux's wiki it seems(seemed) possible with usbmuxd/libimobiledevice/ifuse
* hodapp grumbles something about his Blackberry and sighs
<infinisil> samueldr: (which i just linked a message ago)
<samueldr> oh, should've read!
<samueldr> which reminds me that I have an usbmuxd/libimobiledevice updated I should upstream
<gchristensen> yeah but android's PnNP is wonderful
<samueldr> oh sure
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
<disasm> Here goes nothing... Bye bye btrfs, hello zfs
<infinisil> \o/
<samueldr> you shouldn't wish "nothing" when talking about filesystems
<infinisil> Why are you switching?
<lejonet> disasm: switching for the native encryption? :P
<hyper_ch> quite a few updates were pushed to unstable small
Nergal has joined #nixos
<ldlework> infinisil how can I change the docsEnv so that I can add an emacs package to it like HM does? https://gist.github.com/dustinlacewell-wk/0395a5012f42d744aaaf1c301262da2e
<infinisil> ldlework: If you wanna know how HM does it, just look at the source: https://github.com/rycee/home-manager/blob/master/modules/programs/emacs.nix
<infinisil> :)
<ldlework> hmm
<hodapp> disasm: <3 ZFS
<iqubic> Why do people love ZFS?
dieggsy has quit [(Read error: Connection reset by peer)]
<disasm> Not yet lejonet, so I'll get to do this again in a year or so lol
<lejonet> disasm: xD
<infinisil> iqubic: Because it's so much better than conventional FS's
<sphalerite> disasm: welcome to a new world!
<gchristensen> I'm presently cursing ZFS, but only because my rescue OS doesn't support it on a busted system
<sphalerite> A world that's kind of like that of btrfs
<lejonet> I'm going to wait a bit for the native encryption to get some more review, then I might consider switching back to ZFS
<sphalerite> But with z instead of btr
<pbogdan> gchristensen: am I correct in assuming the timestamps in https://channels.nix.gsc.io/*/history are AuthorDate of the respective commit?
leat has quit [(Ping timeout: 240 seconds)]
<iqubic> What is the rescue OS gchristensen?
<samueldr> pbogdan: yes, UTC
<hodapp> iqubic: Sun Microsystems put in a huge amount of good research and design into it, and as a result it's likely the best combination you'll find anyplace of stability, speed, and overall capability.
<infinisil> Will want to use ZFS encryption too, maybe once it's in the next stable release
<pbogdan> samueldr: thanks
<gchristensen> iqubic: the one from Packet.net when your server appears to be busted
<lejonet> hodapp: too bad that it will never be merged with the kernel :/
<iqubic> hodapp: Better than ext4?
<sphalerite> iqubic: snapshots, compression, raidz, and the multiple dataset thing
<hodapp> iqubic: depending on what you're using it for, yes.
<sphalerite> iqubic: ext4 does none of those
<gchristensen> no inode limit is nice
<hodapp> though I still use ext4 as my root FS
<infinisil> hodapp: Why so?
<iqubic> When I get a new laptop I will look into all the different filesystems and decide what to use for each partition.
<hodapp> infinisil: why use ext4 for my root FS?
<infinisil> yeah
<hodapp> infinisil: so, there's a very complicated reason that it will take me a bit of time to explain here, as it involved a lot of research.
<hodapp> infinisil: ah, wait, no there's not, it's just because I'm lazy.
<infinisil> Heh lol
<sphalerite> iqubic: the only things ext4 has over zfs is simplicity, (much easier to set up) and better fragmentation and near-capacity properties, and GPL licencing (so installer images that support it are redistributable)
<infinisil> Yeah I know it, once i have a working setup, I'll take me some convincing to change it again
<lejonet> Where are config.ids.uids defined? And how would I get about fixing a uid in there, for a service I'm adding?
<ldlework> infinisil so I'm a bit confused. At the top they define "cfg = config.programs.emacs" but then they define an "options" set which defines the same "config.programs.emacs" structure. Is this the options/module merging at work?
<ldlework> Like are the extending the emacs module options?
<hodapp> iqubic: to give an example of some things that are pretty central to ZFS, one is the ability to make snapshots of a filesystem, while it's live, with no delay and minimal slowdown. You can then browse these snapshots as you could any other filesystem (read-only, of course), you can merge them back in, and you can trivially get differential changes between two snapshots.
<sphalerite> ^ and you can copy the snapshots to another pool for backup
<hodapp> iqubic: snapshots are fast enough that you can (for instance) do them hourly, and then expire older ones (leaving enough so that you have daily snapshots, then weekly, then monthly), without the slowdown ever being visible to people using the filesystem.
<ldlework> is zfs a unionfs?
<infinisil> ldlework: cfg is just a convention to refer to the final relevant config, config.programs.emacs in this case
<sphalerite> Or even send them to tape if you have the backup-to-tape sort of daya
<sphalerite> ldlework: no
<hodapp> these snapshots only take up space for what's changed, as well - so they're very efficient in terms of space
<ldlework> infinisil sure, I just mean, it appears that config.programs.emacs already exists before the options set is defined?
<infinisil> ldlework: the config attribute at the top are the values of all merged options, the final resolved config in a sense
<ldlework> Do the options defined in this file get "merged" with whatever what there before?
<infinisil> Kinda hard to explain
<ldlework> no kidding
<sphalerite> ldlework: its the magic of lazy evaluation and recursion
<hodapp> with zfs send/recv, you can send just the changes between two snapshots and keep two ZFS filesystems in sync very efficiently (once witnessed a case where rsync would take 15+ hours just to reconcile the local & remote volumes, not even to start the copy, but zfs send/recv could do it all in a mattre of hours)
<infinisil> hodapp: Ohhh, that's nice to hear, I didn't know what was faster
<infinisil> ldlework: It's really just loeb and moeb
<hodapp> infinisil: the main difference is that ZFS was tallying up all the changes as they happened, and then the snapshot already had all that - whereas rsync had to compute those changes each time
<sphalerite> infinisil: of course it is. Zfs already knows what's changed, rsync has to check
<ldlework> infinisil would you do me a solid and fork the gist to show how you'd use emacsWithPackages in the "docs" runCommand derivation, with the package set to emacs25-nox ?
<hodapp> I've heard that some folks make extensive use of snapshots when they put their root filesystem on ZFS
<hodapp> but I've never done this
<hodapp> seems a little superfluous with NixOS
b has quit [(Quit: Lost terminal)]
<sphalerite> Yeah I snapshot my home and my /etc/nixos and /var/lib if I have anything there but the rest of the stuff is already handled
Wizek_ has joined #nixos
<hodapp> sphalerite: this was impressive to see. Two offices, 60 miles apart, kept two ~16 TB volumes at each site in sync daily across a slow (probably single-digit megabits) DSL link
Wizek has joined #nixos
<gchristensen> nice
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<infinisil> ldlework: (emacsPackagesNgGen emacs25-nox).emacsWithPackages (epkgs: [ epkgs.magit ])
<lejonet> Yeah, only copying what you need is a really awesome way to make sure your bandwidth need is very low :P
<lejonet> especially if you can send the diffs in a binary encoded format that is heck a lot more efficient than most other protocols
<ldlework> infinisil that's the value I pass to builtInputs?
<lejonet> (squashing superfluous 0 anyone? :P )
<ldlework> infinisil also what is that syntax at the end?I would expect you would pass a set to emacsWithPackages, how can you specify a key like epkgs in a parens like that?
<infinisil> ldlework: Yeah you can pass that to buildinputs
<hodapp> lejonet: it wasn't foolproof, but the way they worked around this was just to start the send/recv and if it didn't complete by 7 AM the next day it would fire off an alert and dump the incremental changes to a drive for someone to physically take (some people would be in the remote office one day a week or something)
<sphalerite> hodapp: that is cool!
b has joined #nixos
<lejonet> hodapp: Mhm, that is the usual way to handle that
<infinisil> ldlework: emacsWithPackages is a function that accepts a function f, where f takes the emacs packages and outputs an array of the selected ones
<sphalerite> lejonet: re efficient binary format — rsync has that too
<lejonet> "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway."
leat has joined #nixos
<lejonet> sphalerite: but it uses SSH as a transport, which adds a lot of unneeded overhead
<sphalerite> lejonet: same for determining what to copy. Just that determining what to copy is a lot quicker if you don't have to read all the data in to do so
<lejonet> sphalerite: indeed
Arcaelyx_ has joined #nixos
<hodapp> in this case I think zfs send was going over an SSH link anyway
<infinisil> ldlework: emacsWithPackages (emacsPackages: [ emacsPackages.the-one-you-want emacsPackages.another-one ])
<disasm> sphalerite: what to set config.networking.hostId to? The hostname?
<lejonet> hodapp: ah, then its a moot point :)
<ldlework> oh right that's the function syntax
<sphalerite> disasm: see the docs iirc
<hodapp> the issue wasn't that rsync was inefficient with bandwidth, but that it took forever to actually *start* the bulk copy
<sphalerite> It's a random hex string
<hodapp> because it had to reconcile the changes
<gchristensen> disasm: printf "00000000%x" $(cksum /etc/machine-id | cut -d' ' -f1) | tail -c8
<sphalerite> Reading 16TB might take a while :D
<hodapp> it has some heuristics to speed this up I think, but kind of iffy
<infinisil> like modify time of the files?
<sphalerite> gchristensen: neat!
<sphalerite> Yeaj
Arcaelyx has quit [(Ping timeout: 240 seconds)]
<infinisil> gchristensen: Why not just tail -c8 /etc/machine-id ?
<gchristensen> I dunno
<infinisil> I never understood why such a complicated function is used
<infinisil> I have no idea what hostId is even used for
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
<gchristensen> zfs
<infinisil> Heh yeah
<infinisil> i mean concretely
<sphalerite> infinisil: identifying which machine has a pool imported
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
<sphalerite> Right, I should sleep. Don't want a repeat of yesterday.
<sphalerite> Gnight!
<infinisil> Me too actuall, night!
<disasm> gchristensen: thanks :)
<ldlework> infinisil thanks
jb55 has quit [(Ping timeout: 246 seconds)]
Itkovian has joined #nixos
Alling has joined #nixos
<Alling> Having problem adding Python packages that are not in the NixOS pkgs. Apparently one is supposed to do something like ` src = pkgs.pythonPackages.fetchPypi { inherit pname version; sha256 = "07zvwfs1r7q8hgplr8plnzrva0cjmx5drr8czad5ms2fqq7lrb0k"; };` but I don't understand how to know what sha256 should be.
<Alling> (That code snippet goes into buildPythonPackage rec.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jamesthompson opened pull request #30450: kubectl: init at v1.8.1 (master...kubectl) https://git.io/vdM0M
NixOS_GitHub has left #nixos []
dejanr_home has joined #nixos
jkolp has joined #nixos
<jkolp> Is it possible to create a live nixos disk that runs from ram?
goibhniu has quit [(Ping timeout: 255 seconds)]
jbgi has quit [(Ping timeout: 255 seconds)]
<samueldr> it should, since the installation media now allows it
dejanr has quit [(Ping timeout: 240 seconds)]
<bgamari> clever, would you happen to know how the binutils wrapper's rpath mangling is supposed to work?
Nergal has quit [(Remote host closed the connection)]
<bgamari> or anyone else for that matter
Nergal has joined #nixos
* bgamari is seeing configure checks fail with missing -l dependencies
<bgamari> adding, for instance, -ldl to the failing command line allows the thing to proceed
<bgamari> however, I don't see why this should be necessary
ma27 has joined #nixos
<jkolp> samueldr: thanks, but doesn't that item point list refer to ". If you cannot use dd for a UEFI installation, you can also mount the ISO, copy its contents verbatim to your drive, then either: ", meaning its UEFI only? Or it works in MBR?
<samueldr> I'm referring to the `copytoram` option
<jkolp> yes, but it always works? UEFI, MBR?
<jkolp> the way the manual is formatted it looks it only applies to UEFI, but I think it's just the manual being unclear
<jkolp> btw that kernel parameter list link is dead
<samueldr> manual being unclear I would think
Sonarpulse has joined #nixos
iqubic has quit [(Remote host closed the connection)]
ambro718 has quit [(Ping timeout: 255 seconds)]
leat has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rardiol opened pull request #30451: doc/installing-usb.xml: fix dead kernel parameter link docs. (master...patch-1) https://git.io/vdME6
NixOS_GitHub has left #nixos []
MercurialAlchemi has quit [(Ping timeout: 248 seconds)]
<samueldr> :(
<samueldr> :)
<samueldr> I'm too slow it seems
<jkolp> :P
<jkolp> but copytoram doesn't show up in the kernel docs. Is that something special for nixos? And does it work on any nixos system or only on the special installer?
<samueldr> see one of the two commits I linked
<samueldr> it's used by the stage 1 script to know it should copy the iso to ram
jb55 has joined #nixos
<bgamari> Sonarpulse, ping
<Sonarpulse> bgamari: hi
<samueldr> I don't think it will work as-is without being a disk image
<bgamari> Sonarpulse, I have a few questions for you if you have a bit
<bgamari> I've been working on cross-compilation
<Sonarpulse> bgamari: sure!
<bgamari> I nearly have systemd built
<Sonarpulse> glad to hear it!
<bgamari> Sonarpulse, first, I've been using your elegant-cross branch
<bgamari> is this the right thing to be working off of?
<Sonarpulse> bgamari: ios-refresh2 has a bit more stuff
<Sonarpulse> less cleaned up
<samueldr> jkolp: even though the modules build installation disks by default, it is possible work off of installation-cd-base.nix and make your own image for anything
<Sonarpulse> but what we actually use for haskell
<bgamari> Sonarpulse, I see
<bgamari> alright
<Sonarpulse> cross-elegant is great if you can get away with it
<bgamari> It seems to be working out thusfar
<Sonarpulse> cool
<bgamari> other than a bunch of fixes
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<bgamari> which perhaps I'll push, one moment
<Sonarpulse> cool
<Sonarpulse> hopefully eventually there will be a hydra job doing an entire cross-compiled package set
<bgamari> Sonarpulse, what are your thoughts on these?
<Sonarpulse> bgamari: checking them out
<bgamari> in particular, the "don't run tests when cross compiling"
<bgamari> it seems like there are a lot of these
<bgamari> I've only handled those that I've encountered thusfar
<bgamari> the shadow change is also "interesting"
<Sonarpulse> bgamari: heh I was trying to edit the url to get that
<Sonarpulse> but something went wrong
<Sonarpulse> bgamari: so far looks great
<Sonarpulse> with tiny nit that I want to get rid of crossAttrs
<bgamari> ahh
<jkolp> samueldr: just use this https://nixos.org/nixos/manual/index.html#sec-building-cd and modify as needed then? ok thanks
<bgamari> Sonarpulse, instead just using conditionals everywhere?
<Sonarpulse> yeah
<Sonarpulse> when you say it that way, it sounds worse :D
<bgamari> heh
<samueldr> jkolp: never did it, only customized an image with the installation stuff, but I wouldn't see why this wouldn't work
<bgamari> well, I do feel like the "doCheck = (stdenv.buildPlatform == stdenv.hostPlatform)" pattern may get old after a while
<Sonarpulse> but crossAttrs isn't obviously build != host vs host != target or something else, for example
<bgamari> fair point
<Sonarpulse> yes doCheck is annoying
<Sonarpulse> the old gccCrossWrapper
<Sonarpulse> would just force it false
<Sonarpulse> no matter what
<bgamari> perhaps some shortcut like `canRunBinaries` would be an improvement?
<bgamari> hmm
leat has joined #nixos
<bgamari> also quite imprecise though
<bgamari> so perhaps not
<bgamari> Sonarpulse, anyways, more importantly, what is the situation with glibcCross?
<Sonarpulse> bgamari: I wish we could just make doCheck = buildPlatform == hostPlatform the default everywhere
<Sonarpulse> hahaha
<Sonarpulse> glibcCross
<Sonarpulse> oh what a nightmare
<bgamari> that change is a hack
<bgamari> but was quite necessary
<bgamari> yet I'm not entirely sure I understand why
<Sonarpulse> I'm not sure why either
<Sonarpulse> shadow doesn't use libc in a weird way does it?
<Sonarpulse> just some old cruft there?
<Sonarpulse> stdenv.cc.libc is the best way to get libc
<bgamari> Sonarpulse, the only reason it's needed is the substituteInPlace
<Sonarpulse> probably don't need assert
<bgamari> which I just removed
<Sonarpulse> gotcha
<bgamari> and also don't quite undersatnd
simukis has quit [(Ping timeout: 248 seconds)]
<Sonarpulse> `getBin stdenv.cc.libc`
<bgamari> it needs to know where nscd, which is provided by glibc, is
<Sonarpulse> got it
<bgamari> cool
<bgamari> alright
<bgamari> Sonarpulse, then there is the question of how these patches should make their way upstream
<bgamari> Sonarpulse, should I just go ahead and start PRing them to master?
<Sonarpulse> bgamari: they look quite harmless to me!
<bgamari> or would like you to take them through your tree?
<Sonarpulse> nah feel free to go to master
<bgamari> cool
<Sonarpulse> actually :)
<bgamari> then there is the question of what I'm currently stuck on:
<Sonarpulse> so with nixpkgs being kind of broken, we should fine a good base branch for you to make your PR from
<bgamari> nixpkgs is broken?
<Sonarpulse> well hydra.nixos.org only tests commits after the fact
<Sonarpulse> so stuff happens
<Sonarpulse> then I can rebase my stuff on top of the PR branch *not* merge commit
<Sonarpulse> and be in a known good state
<bgamari> right
<bgamari> sounds good to me
<bgamari> just let me know what to rebase onto
<Sonarpulse> a982b20c3601e5376aa6508b8cadc809b05542b8
<bgamari> sure
<Sonarpulse> was nixpkgs-unstable channel a few days ago
<Sonarpulse> I got some WIP stuff on that
<bgamari> lovely
<Sonarpulse> I was trying to build binutils and libbfd separately
<bgamari> so I'm quite confused about how ld interacts with rpath and the wrapper
<Sonarpulse> ah ok
hiratara has quit [(Ping timeout: 246 seconds)]
<Sonarpulse> the wrapper does some crude guess where -lfoo will be resolved
<Sonarpulse> then adds an -rpath for each pseudo-resolved -l
sirkha_ has quit [(Ping timeout: 248 seconds)]
<Sonarpulse> (if only a .a could resolve it, the pseudo resolution will fail and no rpath will be added)
<bgamari> perhaps answer this:
<bgamari> if libssl.so depends upon libdl
<bgamari> should a package which links against libssl.so need to link with -ldl
sirkha has joined #nixos
<bgamari> it seems in practice the answer is "yes"
<bgamari> but I suspect something is wrong
<Sonarpulse> bgamari: that does seem off
<bgamari> for instance, I see
<bgamari> /nix/store/y28z7zxp09gjwzh5mr40lnm6d7cca7hm-arm-unknown-linux-gnueabihf-binutils-2.28.1/bin/arm-unknown-linux-gnueabihf-ld: warning: libdl.so.2, needed by /nix/store/bn42y6zd01s4f2b4ag8959gbfbxmk9a1-openssl-1.0.2l-arm-unknown-linux-gnueabihf/lib/libssl.so, not found (try using -rpath or -rpath-link)
<bgamari> when I try to link against libssl.so
<Sonarpulse> bgamari: the "cross adapter" in pkgs/stdenv/adapters.nix
hiratara has joined #nixos
<Sonarpulse> had some big note about making all buildInputs propagated
<bgamari> libssl.so has
<Sonarpulse> and rpath-link
<bgamari> NEEDED libdl.so.2
<bgamari> as well as
<bgamari> /nix/store/y28z7zxp09gjwzh5mr40lnm6d7cca7hm-arm-unknown-linux-gnueabihf-binutils-2.28.1/bin/arm-unknown-linux-gnueabihf-ld: warning: libdl.so.2, needed by /nix/store/bn42y6zd01s4f2b4ag8959gbfbxmk9a1-openssl-1.0.2l-arm-unknown-linux-gnueabihf/lib/libssl.so, not found (try using -rpath or -rpath-link)
<bgamari> oops, rather
<bgamari> RUNPATH /nix/store/bn42y6zd01s4f2b4ag8959gbfbxmk9a1-openssl-1.0.2l-arm-unknown-linux-gnueabihf/lib:/nix/store/rnm818740hd28s8zkl6cj4dp4dvdaj32-glibc-2.25-49-arm-unknown-linux-gnueabihf-arm-unknown-linux-gnueabihf/lib
<Sonarpulse> but I never understood why -rpath-link would be some cross-specific thing
<bgamari> and /nix/store/rnm818740hd28s8zkl6cj4dp4dvdaj32-glibc-2.25-49-arm-unknown-linux-gnueabihf-arm-unknown-linux-gnueabihf/lib/libdl.so.2
<bgamari> exists
<bgamari> yeah, I don't understand this
<Sonarpulse> bgamari: yikes
<Sonarpulse> me neither
<Sonarpulse> there's that ldtree thing
<bgamari> ldtree?
<Sonarpulse> I don't think it gives better error messages
<ldlework> If this my top-level home-manager module, https://gist.github.com/dustinlacewell-wk/be6b0f78ca778909fcd5c6005bfe1df6, can I just add data to config so that I can access it later in the imported modules?
<Sonarpulse> ldd-tree? I forget exact name, can find
<Sonarpulse> recursively resolves shared object
<Sonarpulse> and prints out tree
<bgamari> hmm
<Sonarpulse> lddtree in pax-utils
<bgamari> alright, cool
<bgamari> Sonarpulse, so does the wrapper propagate these dependencies?
<Sonarpulse> bgamari: ld-wrapper?
<bgamari> yep
<Sonarpulse> I don't think it propagated dependencies
<ldlework> How can I set some global data that can be later used in an imported module?
<bgamari> Do you know whether ld is supposed to respect the RUNPATH of shared objects that it links against?
<bgamari> Sonarpulse, so ld-wrapper doesn't add any -l flags?
<Sonarpulse> bgamari: I would have thought so
<Sonarpulse> yeah
<Sonarpulse> just -L
<ldlework> maybe home.sessionVariables?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdMzc
<NixOS_GitHub> nixpkgs/master 50ef776 Nikolay Amiantov: python.pkgs.Keras: remove default backend...
NixOS_GitHub has left #nixos []
<Sonarpulse> but no that you mention it, I recall having trouble on mac with not looking at children's -rpath
<bgamari> ahhh
ebzzry has joined #nixos
<bgamari> Sonarpulse, ld(1) says this:
sirkha_ has joined #nixos
<Sonarpulse> bgamari: I have a branch for cleaning up the linux kernel, btw
<bgamari> The linker uses the following search paths to locate required shared libraries:
<bgamari> ...
<bgamari> 6. For a native ELF linker, the directories in "DT_RUNPATH" or "DT_RPATH" of a shared library are searched for shared libraries needed by it. The "DT_RPATH" entries are ignored if "DT_RUNPATH" entries exist.
<bgamari> note the "for a native linker" bit
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] flokli opened pull request #30452: modemmanager: rename ModemManager.service to modem-manager.service (master...modem-manager) https://git.io/vdMzB
NixOS_GitHub has left #nixos []
<bgamari> Sonarpulse, oh, which branch would this be?
mortum5 has quit [(Ping timeout: 248 seconds)]
sirkha has quit [(Ping timeout: 255 seconds)]
<Sonarpulse> bgamari: ah!
<Sonarpulse> wow
<Sonarpulse> shame on LD for special-casing
<bgamari> that being said, this just affects the search path
<bgamari> I don't see why adding -ldl is working around the issue
<Sonarpulse> bgamari: true...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vdMzS
<NixOS_GitHub> nixpkgs/master 2d44e72 Robert Helgesson: httpie: remove superfluous field
NixOS_GitHub has left #nixos []
<bgamari> Sonarpulse, does the ld-wrapper filter out -v?
<bgamari> ahh, no it doesn't
<bgamari> Sonarpulse, do you know how to ask nix to use ld.gold instead of bfd?
<bgamari> it seems like ld.bfd may just be broken
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 3 new commits to master: https://git.io/vdMge
<NixOS_GitHub> nixpkgs/master 843e099 Shea Levy: Partition all-cabal-hashes into case-insensitive-safe components....
<NixOS_GitHub> nixpkgs/master 3ef3fc4 Shea Levy: partition-all-cabal-hashes: cross-compile safe
<NixOS_GitHub> nixpkgs/master ad6b8f4 Shea Levy: Merge branch 'all-cabal-hashes-components'
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #30290: Partition all-cabal-hashes into case-insensitive-safe components. (master...all-cabal-hashes-components) https://git.io/vdwfV
NixOS_GitHub has left #nixos []
<Sonarpulse> bgamari: I think the wrapper default.nix will need to be changed to wrap ld.* too
<bgamari> Sonarpulse, well, if I pass -fuse-ld=gold to my compiler it links
<Sonarpulse> hah alright!
<Sonarpulse> no wrapper needed?
<bgamari> Sonarpulse, oh, I see what you are saying
<bgamari> maybe it only linked because it was using system libraries
<bgamari> although, the verbose output suggests otherwise
<Sonarpulse> ah yeah perhaps
<Sonarpulse> oh huh
<bgamari> lddtree on the resulting executable says that things resolve as expected
Arcaelyx_ has quit [(Ping timeout: 240 seconds)]
Oida has quit [(Ping timeout: 252 seconds)]
<bgamari> Sonarpulse, oh, NIX_DEBUG=8 produces output when I use -fuse-ld=gold
<bgamari> so presumably gold is already wrapper
<bgamari> wrapped
oida has joined #nixos
<Sonarpulse> bgamari: whew!
<bgamari> Sonarpulse, so do you know of a switch to set the default linker?
Arcaelyx_ has joined #nixos
* bgamari is very willing to believe that this is just a ld.bfd bug
Nergal has quit [(Quit: Nergal)]
sirkha has joined #nixos
Guest10280 has quit [(Read error: No route to host)]
sirkha_ has quit [(Ping timeout: 240 seconds)]
Alling has quit [(Quit: Page closed)]
<joepie91> uh oh
<joepie91> Nix article in #1 on hacker news
<gchristensen> oohh
* gchristensen unblocks the orange site to go see it
hiratara has quit [(Quit: ZNC - http://znc.in)]
slack1256 has joined #nixos
hiratara has joined #nixos
<gchristensen> what will finish first, compiling a kernel on my laptop, or provisioning a (slow-to-provision) server on packet.net. race!
<joepie91> gchristensen: is this a trick question and is the kernel actually a microkernel?
<joepie91> :P
<gchristensen> it is an honest question, I don't know the answer
<gchristensen> though it looks like the server will win ... but it takes ages to boot, so we'll see!
<joepie91> gchristensen: oh hey, my own issue thread popped up in there
<joepie91> (in the HN thread)
<gchristensen> :)
<joepie91> gchristensen: it's weird, this happens to me on a regular basis now
<joepie91> reading about some problem or idea somebody has, going "hey, I wrote an issue thread about tha- oh, somebody already linked it"
<gchristensen> a coworker saw nixos on linux.com the other day
<bgamari> Sonarpulse, alright, I think I have it
<Sonarpulse> bgamari: great!
<Sonarpulse> ah
<Sonarpulse> sorry missed your /me above
<gchristensen> oh, the server won
nix-gsc-io`bot has joined #nixos
<bgamari> Sonarpulse, never mind
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/d76720f5ba (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<bgamari> Sonarpulse, I'm still terribly confused
<Sonarpulse> bgamari: :(
<bgamari> for one, it seems my object files are for armv5 soft-flat
<Sonarpulse> there was an issue with arm when I tried to pass --build and --host for native
<Sonarpulse> if you look at gcc and binutils you will see an arm special-case as a temp hack
<bgamari> which is surprising given that the triple is arm-unknown-linux-gnueabihf
<Sonarpulse> bgamari: this might solve a few problems
<Sonarpulse> but is, sadly, longer term
<Sonarpulse> binutils at least can be configured with --enable-targets=all
<Sonarpulse> to be multi-target
<Sonarpulse> I was thinking of trying to do that everywhere
<Sonarpulse> after my bfd + opcodes split-out
csingley has joined #nixos
<bgamari> Sonarpulse, the strange thing is that
<bgamari> $ arm-unknown-linux-gnueabihf-gcc --verbose says
<bgamari> Target: arm-unknown-linux-gnueabihf
<bgamari> hmm, arm-unknown-linux-gnueabihf-ld --verbose says
<bgamari> Supported emulations: armelf_linux_eabi, armelfb_linux_eabi
<ldlework> Is there anyway to add things to lib?
endformationage has quit [(Ping timeout: 240 seconds)]
<Sonarpulse> bgamari: yeah the binutils "emulation" names are kind of funky
<Sonarpulse> I hope with --enable-targets=all
<Sonarpulse> gcc can properly translate
<Sonarpulse> or whatever
<bgamari> Sonarpulse, so how does the wrapper figure out these rpaths?
<bgamari> it seems to invoke the linker more than once?
<Sonarpulse> don't think so
<Sonarpulse> in shell
<Sonarpulse> look at ld-wrapper.sh
<Sonarpulse> it comes through the -L directories looking for matching .so
<Sonarpulse> about moving away from this rpath trickery
mkoenig_ has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
<Sonarpulse> bgamari: unfortunately I need to step out to get dinner
<Sonarpulse> I stopped pushing so hard on upstremaing lately
<Sonarpulse> mainly cause other work
<Sonarpulse> + getting my NY haskell talk up
<bgamari> sure
<Sonarpulse> + nixcon around the corner
<Sonarpulse> in hopes that with better conveying what I was doing I could get more input
thc202 has quit [(Ping timeout: 248 seconds)]
<Sonarpulse> so sorry yet again there's like pieces just waiting to be put into the puzzle
<bgamari> heh
<bgamari> quite alright, thanks for everything you've done so far
<bgamari> it's a bit project
<bgamari> big*
<Sonarpulse> indeed!
<Sonarpulse> and thank you for going the distance to try it out
<Sonarpulse> ttyl!
<ldlework> How can I make a module importable globally like <foo>?
bennofs has quit [(Ping timeout: 258 seconds)]
<ben> gotta have a foo= entry in your NIX_PATH env var i think
<ldlework> I see yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #30451: doc/installing-usb.xml: fix dead kernel parameter link docs. (master...patch-1) https://git.io/vdME6
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdMau
<NixOS_GitHub> nixpkgs/master d549243 Nikolay Amiantov: epson-escpr: 1.6.12 -> 1.6.16
NixOS_GitHub has left #nixos []
csingley has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #30453: robotfindskitten: install req'd data and put bin in $out/bin (master...fix/robotfindskitten) https://git.io/vdMaD
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
iqubic has joined #nixos
<disasm> Laptop is hung with us 2-3 device not accepting address after entering passphrase for luks
<disasm> S/us/usb
<disasm> Nm just booted
<iqubic> So it takes a few seconds to boot?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] eqyiel opened pull request #30454: flow: 0.57.0 -> 0.57.2 (master...flow-0.57.2) https://git.io/vdMVt
NixOS_GitHub has left #nixos []
proteus-guy has joined #nixos
sigmundv has quit [(Ping timeout: 240 seconds)]
<ldlework> does { ... } : let foo = var; in { ... }; work?
asdfoiawe has quit [(Ping timeout: 258 seconds)]
<gchristensen> is `{ ... }` literally that, or are you going to put something else in there?
proteusguy has quit [(Ping timeout: 240 seconds)]
<bgamari> Sonarpulse, what is stdenv.platform supposed to mean?
<ldlework> I'm goign to put something else there
<ldlework> at least in the second one
<gchristensen> then I think maybe
<ldlework> but basically can you use a let clause as a body of a function?
<ldlework> neat
<gchristensen> oh yes
<iqubic> ldlework: Did you get emacs to work properly?
<ldlework> yeah
<gchristensen> ldlework: the only "maybe" I have is with the specific semantics of `...` in a function definition's attreset ( the { ... }: bit)
<ldlework> sure, I mean I'll have args there
<ldlework> OK next question
<ldlework> I'm trying to build up some library code to make things cleaner
<ldlework> which is basically building my init.org into an init.el
<ldlework> I would like (mostly for learning sake) to understand how to change the code here so that I can take replace init.org and init.el filenames with variables.
<ldlework> (after adding two new parameters to the function of course)
<gchristensen> joepie91: fwiw my kernel is still not compiled, despite a `-j40`
<iqubic> gchristensen: How many cores do you have?!?!? Hot Damn.
<gchristensen> 48 on this particular box
<iqubic> gchristensen: Huh? What are you running? A super computer?
<ldlework> basically I ask because I don't understand how the interpolation works with variables exactly
<gchristensen> Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
<iqubic> Wow.
<gchristensen> ldlework: in "${buildResult}/init.el"; should do the rick
<iqubic> How long have you been compiling your kernel for?
<gchristensen> your buildOrg is confusing, ldlework
<ldlework> gchristensen I want to change the init.el part to a variable
<ldlework> so the name of the files are not hard coded
<ldlework> gchristensen did you refresh for the updated version?
<ldlework> its a function that has a let clause that performs a build, then returns a string
dejanr_home has quit [(Read error: Connection reset by peer)]
dejanr has joined #nixos
<gchristensen> then you don't have to know a filename inside a dir, the result of the runCommand is just a file
<joepie91> gchristensen: not a microkernel then
<gchristensen> joepie91: full-blown linux
<gchristensen> joepie91: plus special modules for some NICs I have
<gchristensen> iqubic: I canceled it a few times because I got bored and up'd the `-j` I passed :P
orivej has quit [(Ping timeout: 240 seconds)]
<ldlework> gchristensen nice
<iqubic> So how long has it been going for?
<gchristensen> ~15min? ~20min?
<gchristensen> but I first tried about an hour ago. I
<gchristensen> expected it to be done before I came back from a walk
<ldlework> gchristensen can you see how to make init.org with a variable?
<ldlework> then I can build any org file
markus1199 has joined #nixos
<gchristensen> sorry?
<gchristensen> oh
dywedir has quit [(Ping timeout: 264 seconds)]
<ldlework> thank you
<iqubic> ldlework: Why do you need to be able to build org files?
<iqubic> How are you building org files?
<ldlework> gchristensen its because for a name to be a path it has to have a slash right?
<gchristensen> yeah
<ldlework> so just ${init} is not interpreted as a path, but the variable "init"
<iqubic> That's right.
<iqubic> ldlework: use ./${init} if you need to.
<iqubic> That will get you the file in the current working directory with the name ${init}
<gchristensen> `/` isn't a valid character inside variables
markus1189 has quit [(Ping timeout: 240 seconds)]
<iqubic> Are we trying to put a whole path into a variable?
<ldlework> we're good :)
<iqubic> Oh, did you get the thing to work?
<disasm> iqubic: about 5 minutes it hangs on that. Playing with remove some usb kernel modules to fix it.
<ldlework> the choice of ; as the keyval delimeter is fucking up hard
<iqubic> Ah. Why nt just try making an initramfs?
<ldlework> fucking me up*
<iqubic> ldlework: Can you change the delimeter?
<gchristensen> oh the other thing is nix doesn't have a `/` operator
<ldlework> its nix syntax so I doubt it
<ldlework> gchristensen its the ` / ` operator right?
<gchristensen> nix doens't have `/` as an operator
<ldlework> I have spaces
<gchristensen> what is wrong with `/`?
Ivanych has quit [(Ping timeout: 260 seconds)]
<ldlework> gchristensen I have spaces in mine
<gchristensen> no, to divide you have to do builtins.div
<ldlework> hmm I thought I read somewhere that spaces worked
<ldlework> ohwell
<gchristensen> sorry, I meant
<gchristensen> what is wrong with `;`?
<ldlework> oh usually its ,
<iqubic> Why is it that I can only fire up a nix-shell if I have a default.nix in the current working directory?
<ldlework> so I keep typing ,
<gchristensen> iqubic: you can also do it if you have a shell.nix
<gchristensen> iqubic: but most importantly, nix-shell creates a shell with packages available, and without passing `-p`, or having a ./default.nix or a ./shell.nix, it has nothing to do
<gchristensen> so you could do `nix-shell -p ghc` for example to have a shell withghc
<iqubic> Oh, I get it
<iqubic> Is there a certain format default.nix needs to be in?
<ldlework> relative paths are relative to the file right?
<ldlework> the file the code appears in
<iqubic> yes.
<iqubic> That's why ./foo works to give you a file named foo in the same dir as the nix file.
dtzWill has joined #nixos
<iqubic> What does nix-shell -p do?
jkolp has quit [(Ping timeout: 258 seconds)]
<iqubic> It just tried to install some stuff onto my machine, so I cancelled it.
Arcaelyx_ is now known as Arcaelyx
<ldlework> how do you call a function that you want all the defaults from?
<ldlework> empty set I guess
iqubic has quit [(Ping timeout: 252 seconds)]