NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/v7rlx
<NixOS_GitHub> nixpkgs/master acb9ca3 Michael Weiss: gns3-gui: init at 2.0.3
NixOS_GitHub has left #nixos []
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
takle has joined #nixos
gnuhurd has quit [(Remote host closed the connection)]
<Olgierd> will it work ootb if I create a couple of nginx vhosts with subdomains (example.com, www.example.com, git.example.com etc.) and enableACME all of them?
sary has quit [(Ping timeout: 260 seconds)]
<simpson> Olgierd: It has worked for me.
<simpson> My configuration is more than just those two things, though, so YMMV.
takle has quit [(Ping timeout: 260 seconds)]
gnuhurd has joined #nixos
drakonis has quit [(Read error: Connection reset by peer)]
mao_ has quit [(Ping timeout: 260 seconds)]
jgertm has joined #nixos
arximboldi has quit [(Quit: arximboldi)]
mounty has quit [(Ping timeout: 276 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
mounty has joined #nixos
ambro718 has joined #nixos
takle has joined #nixos
zeus_ has joined #nixos
rpifan has joined #nixos
mounty has quit [(Ping timeout: 240 seconds)]
mudri has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
<adelbertc> fresh NixOS install on my desktop, I enabled X11 with `services.xserver.enable = true;` and xmonad with `services.xserver.windowManager.xmonad.enable = true;`. When I reboot I get the splash screen w/ login, I login and then the screen just goes black
<adelbertc> might this be because the OS is having trouble detecting graphics card drivers or something? I have an AMD card but I havent enabled AMD drivers..
zeus_ has quit [(Ping timeout: 258 seconds)]
<adelbertc> but I do get the graphical login prompt
<clever> adelbertc: which display manager did you enable?
<adelbertc> nothing explicitly. according to the manual it has a default, SLiM ?
<clever> slim is disabled by default
thc202 has quit [(Ping timeout: 240 seconds)]
<adelbertc> hm.
<clever> oh wait
<adelbertc> wait my understanding is the display manager is the thing responsible for the login prompt
<adelbertc> which i do see
<clever> the default for slim, is the current value of services.xserver.enable
<clever> which means, the default on https://nixos.org/nixos/options.html#xserver.displaymanager is "wrong"
<adelbertc> i dont follow
<clever> f1 in slim will let you cycle between the enabled window and desktop managers
<clever> try using f1 and see which combo works
<adelbertc> let me boot up again
<adelbertc> hm ok weird now it works
<adelbertc> i hve a terminal now
<adelbertc> coolio, thanks!
<adelbertc> how do i logout...
ebzzry_ has joined #nixos
<adelbertc> i tried to type `logout` and it told me to `exit` instead and now i just have a black screen
<clever> you probably have to use an xmonad binding to make xmonad itself quit
<sphalerite> I'm guessing your black screen is actually xmonsr
<sphalerite> Xmomad
<sphalerite> Xmonad
<adelbertc> yep it is
<adelbertc> i was always hitting the wrong Enter key
<adelbertc> the joys of using an Ergodox
<clever> sphalerite: and whats the hotkey to make xmonad quit?
<adelbertc> mod+shift+q
<clever> adelbertc: and if you hit that, does it go back to the login page?
<adelbertc> yessir
<clever> sounds normal
<adelbertc> oh sorry i thought i came back and said it worked
<adelbertc> but yeah all good now
<adelbertc> thank you!
<clever> there should also be another binding to spawn a new terminal
<adelbertc> mod+shift+enter
mounty has joined #nixos
<Lisanna> Hi guys, have another question - I have a buildInputs line that looks like buildInputs = [ foo ]; where foo is from nixpkgs. I can use ${foo} to get a path to foo's install. But if I put an import statement in buildInputs, how do I resolve the path to that file's $out? e.g. buildInputs = [ (import ./foo.nix) ];
slyfox has quit [(Ping timeout: 240 seconds)]
<clever> Lisanna: if foo is a derivation, you can just do (import foo)
<clever> if you can gist an example and any errors you have i can look at it
<Lisanna> clever: but how do I get the $out? would it be ${(import ./foo.nix)}
<clever> if foo is a derivation, it will just automatically return $out as a string
<Lisanna> let me gist it...
<clever> and what is the contents of foo.nix?
<Lisanna> it's also a derivation
<Lisanna> stdenv.mkDerivation
<clever> is it also using with import <nixpkgs> ?
<Lisanna> yes
<clever> a: then the code in the hastebin should just work
<Lisanna> when I try the example given it complains that it can't coerce a function to a string
<clever> b: loading nixpkgs twice makes the whole thing slower
<clever> pastebin the contents of foo.nix
Supersonic112 has quit [(Ping timeout: 240 seconds)]
Supersonic112 has joined #nixos
<sphalerite> You probably want callPackage ./foo.nix
<clever> 2017-08-05 22:06:18 < clever> is it also using with import <nixpkgs> ?
<clever> 2017-08-05 22:06:24 < Lisanna> yes
<clever> the error and the answers dont agree with eachother
Turion has quit [(Ping timeout: 260 seconds)]
<sphalerite> Err, callPackage ./foo.nix {}
<clever> Lisanna: line 1-3 defines a function, that takes a single argument (with a default value)
<clever> Lisanna: so you must do import ./foo.nix {}; to call that function
<clever> then foo will contain the derivation on line 12-33
<sphalerite> ^
<clever> Lisanna: also, your still importing nixpkgs twice, which will cause slowdowns and problems down the line
<sphalerite> I should sleep.
<Lisanna> clever: that looks like it solved my problem. How do I avoid importing nixpkgs twice? Sometimes I want to build just foo, and sometimes I need to build foo-user, which needs foo
<clever> Lisanna: typing that up now
<clever> Lisanna: line 1 of default.nix does the import of nixpkgs, line 3 then creates a new instance of callPackage, that will search self first, then nixpkgs
<clever> Lisanna: line 5 and 6 then define 2 packages, foo and other
<clever> other.nix can now depend on foo in the exact same way that everything else in nixpkgs depends on other things
gnuhurd has quit [(Remote host closed the connection)]
_rvl has quit [(Ping timeout: 246 seconds)]
<Lisanna> clever: okay, thanks a ton!
iyzsong has joined #nixos
ambro718 has quit [(Quit: Konversation terminated!)]
<adelbertc> so i installed Firefox and when i started it it prompted me to set it as the default browser so i was like sure, and then I got a bunch of "Failed to execute child process 'update-mime-database' (No such file or directory)"
<adelbertc> what's up with that
<clever> there are some minor problems with the paths because of how nixpkgs wraps things
<clever> so even if firefox is the default, it doesnt think its the default, and will ask every time its started
<adelbertc> i figured... nothing to worry about then?
<clever> i just turn the confirmations off
takle has joined #nixos
<adelbertc> clever: separate q: do you run any sort of anti-virus/malware software?
<clever> only the kind that is installed in my brain
<clever> i know when things look phishy and just dont click them
<adelbertc> :)
<adelbertc> fair enough
<clever> and i keep an eye on https://www.reddit.com/r/netsec/
<clever> nixos also does a great deal to help, just by the fact that it breaks all unpatchef ELF files
<clever> nothing the attacker sends you will run
Turion has joined #nixos
<adelbertc> hah true
zraexy1 has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
zraexy has quit [(Ping timeout: 260 seconds)]
pxc has joined #nixos
slyfox has joined #nixos
jtojnar_ has quit [(Ping timeout: 260 seconds)]
<adelbertc> :|
<clever> basically, there is an api to let you detect near-touch events
<clever> and it can be used by a background service
<clever> and every touch has a near-touch before/after, so you basicaly have a keylogger, lol
ertes has joined #nixos
<adelbertc> Oh fun
takle has joined #nixos
<clever> adelbertc: funnily enough, apps like facebook messenger open a special popup window that allows multi-tasking, and android refuses to let me accept any security question while that is open
<clever> adelbertc: and you have to disable a crap-ton of things to just allow one app
takle has quit [(Ping timeout: 240 seconds)]
zovt_ has joined #nixos
<zovt_> hey, quick question. Is there any way to configure gnome / NixOS to add entries in the gnome application launcher for user-level packages?
<zovt_> packages installed with `sudo nix-env -i` show up properly
<clever> zovt_: i think only things installed only in environment.systemPackages and nix-env (without sudo) show up in gnome
<zovt_> ah, ok then. Thanks!
wigust has joined #nixos
athan has quit [(Ping timeout: 240 seconds)]
zeus_ has joined #nixos
zeus_ has quit [(Ping timeout: 276 seconds)]
takle has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 268 seconds)]
<adelbertc> Lol wow
<adelbertc> Interesting
<clever> yeah
takle has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
takle_ has joined #nixos
takle_ has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
mguentner has quit [(Ping timeout: 248 seconds)]
Nobabs27 has joined #nixos
<Nobabs27> I have an issue with lxappearance - it works in xfce, but if I switch to i3 it does not...
<clever> Nobabs27: it may need xfconfd running to work right?
<Nobabs27> clever: so install it yeah?
<clever> not just install, it probably has to be ran on login
<clever> xfce just does that automatically
takle has quit [(Ping timeout: 255 seconds)]
<Nobabs27> clever: still no change in i3, main issue is lxappearance I think - I think it's ignoring gtk2 all together
takle has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<Nobabs27> even if I add this line "gtk-theme-name="Arc-Dark"" still no effect
contrapumpkin has joined #nixos
inflames has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
eacamero_ has joined #nixos
nix-gsc-io`bot has joined #nixos
eacamero_ has quit [(Read error: Connection reset by peer)]
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/acb9ca3006 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
eacameron has joined #nixos
<tilpner> Nobabs27 - I'll send you the relevant parts of my config (also on i3)
eacameron has quit [(Ping timeout: 240 seconds)]
Turion has quit [(Ping timeout: 240 seconds)]
<adelbertc> how does one change the font in a terminal (brought up by xmonad)? is it the i18n property?
<clever> adelbertc: depends on what terminal emulator your using
<adelbertc> i assume this is xterm
<clever> ps aux | grep xterm
<adelbertc> yep
<clever> one option is to just change xmonad to run a different emulator
eacameron has joined #nixos
<adelbertc> hm.
<clever> adelbertc: also, there are some hidden menus in xterm, hold control and hold right click
takle has joined #nixos
<adelbertc> woaaaa
<clever> yeah
<clever> left and middle click also have their own menus
<adelbertc> it made the ugly font bigger
<adelbertc> :P
<clever> yeah, lol
<clever> back when i started linux, gnome-terminal was horid slow (my cpu was only ~600mhz), so i used xterm
<clever> ive now been on xterm for over a decade, and i cant use any other terminal
takle has quit [(Ping timeout: 260 seconds)]
Turion has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edanaher opened pull request #27973: urweb: 20170105 -> 20170720 (master...update-urweb) https://git.io/v7rzm
NixOS_GitHub has left #nixos []
ebzzry has joined #nixos
ebzzry_ has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
<NickHu> How can I select which wifi firmware I want to use in nixos?
<NickHu> My qca6174 is giving me troubles
<Nobabs27> you mean NickHu ?
<clever> oops
<Nobabs27> lol
<NickHu> Yes, the package linuxFirmwareNonfree contains a bunch of firmware files for my device
<NickHu> I think the one it picks is broken though
<NickHu> I would like to try to select some of the other ones
<clever> it will always load the one the driver asks for, so you cant easily make it load a different file
<clever> the driver sends a special message down to udev, saying which file it wants, and udev must then supply that file
<clever> what does dmesg say and what is not working right?
<NickHu> I get a firmware crash every time I try to switch AP/suspend
<NickHu> Google suggests that different firmwares might help
<NickHu> I think (not sure) that about a year ago I didn't really have this issue
<clever> dmesg should say what file is using and give more info
<NickHu> I am pretty sure I know which file it is using
<clever> can you pastebin the output of dmesg?
<NickHu> Sure
<NickHu> http://lpaste.net/357452 dmesg | grep ath10k_pci
<NickHu> Traditional advice seems to be to put the one you want to load in /lib/firmware/...
<NickHu> I guess this isn't the correct approach for nixos
<clever> Nobabs27: re-run that grep with -C5
<Nobabs27> ??
<clever> Nobabs27: dmesg | grep ath10k_pci -C5
<clever> oops, did it again, lol
<clever> NickHu: ^^^
<Nobabs27> lol
<clever> NickHu: and also you need to create a derivation that puts files at $out/lib/firmware, and then push that derivation into hardware.firmware
<NickHu> I guess I could do that, but I don't even know how it was loading the firmware before in the first place, seeing as I wasn't giving hardware.firmware any packages previously
<NickHu> Does it default to linuxFirmwareNonfree or something?
<NickHu> (Currently I have it to a singleton list of linuxFirmwareNonfree)
zovt_ has quit [(Ping timeout: 240 seconds)]
<clever> from https://nixos.org/nixos/options.html#hardware.firmware i click "declared in" and search for that, no default in this file, but you may have other things
<clever> NickHu: what is in your configuration.nix and hardware-configuration.nix?, anything named detect?
<clever> [ 7.071837] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
<clever> NickHu: given what i read recently about broadcom chips, and this error, i suspect it might not be finding any firmware, and then defaulting to the firmware in the chip's rom
<clever> though that naming is a bit off
<NickHu> No, nothing except installer/scan/not-detected.nix in hardware-configuration.nix imports
<NickHu> I'm guessing I should try to use firmwares from the same hardware version
<clever> NickHu: because #1 is in your imports, everything under #2 is active
<NickHu> Doesn't that only load broadcom-bt-firmware then?
<clever> line 36 is has an or in it
<NickHu> oh so that's how the assertion works
<clever> the || on 36
<clever> the literal "or" on 46 is another thing
<NickHu> Yes I see
<clever> so the file "scan/not-detected.nix" doesnt scan for anything, it just blindly enables everything
<clever> $ ls -lh /nix/store/vkf6qyph8sc433sz714bzdhwhi827x3p-firmware-linux-nonfree-2017-03-11/lib/firmware/ath10k/QCA6174/
<clever> and if i cross-reference the firmware package and your dmesg, i can see its loading from this region
<NickHu> okay so now I know why it was loading firmware
<NickHu> I don't know the nice way to force it to load a particular one though
<NickHu> Maybe a package override that removes all but the one I want
leat has quit [(Ping timeout: 248 seconds)]
Nobabs27 has quit [(Quit: Leaving)]
<clever> yeah
<NickHu> or maybe line 9 of the paste, I can put something there
<NickHu> [ 7.071860] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/cal-pci-0000:01:00.0.bin failed with error -2
<clever> i'm guessing thats calibration data
<NickHu> oh
<clever> it also has the pci bus-id in the name
<clever> which is very weird
<clever> each slot in the machine will load a different firmware file
<clever> core.c: scnprintf(filename, sizeof(filename), "cal-%s-%s.bin",
<NickHu> I see
<NickHu> When overriding a derivation, how should I go about adding an additional source (from where I intend to download my alternative firmware) and then probably I want to just put some cp commands in the postInstall
<clever> if you remove the scan file, you can just do something like this
<clever> let foo = runCommand "bar" {} "mkdir -pv $out/lib/firmware; cp ${./input-dir} $out/lib/firmware/output" in ...
<clever> hardware.firmware = [ foo ];
imalsogreg has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
<NickHu> foo gives a derivation?
<clever> yeah
<NickHu> Why?
<NickHu> I mean, where is runCommand documented
cybrian has quit [(Quit: cya)]
cybrian has joined #nixos
<NickHu> I see
<NickHu> I think I'd rather try overriding the linux firmware package though
<NickHu> I'm just thinking about how to get past the sandboxing
<NickHu> The firmware I want to try is in a git repo
leat has joined #nixos
<clever> you will either want to add a pkgs.fetchgit, pkgs.fetchFromGitHub, or just clone it by hand and refer to it via ./input-dir
<NickHu> How can I do that with overrideAttrs without rewriting src?
<clever> the runCommand above creates an entirely new firmware package
<NickHu> The git repo I want to checkout just contains a bunch of blobs, it hasn't got the same structure as the normal firmwareLinuxNonfree git repo
<clever> let foo = runCommand "bar" { src = pkgs.fetchFromGitHub { ... }; } "mkdir -pv $out/lib/firmware; cp $src $out/lib/firmware/output" in ...
<NickHu> I understand that, but if I have two separate derivations there's no way to give precedence no?
<clever> the cp command in here will adjust copy it from one area to another
<clever> you will need to adjust the mkdir and cp to recreate the right layout
<mpcsh> hey all, anyone here use neofetch? it's crashing for me :/
<clever> 2017-08-06 01:01:09 < clever> if you remove the scan file, you can just do something like this
<NickHu> Yes but I want to continue loading firmwareLinuxNonfree
<clever> NickHu: and removing the enableAllFirmware bit will prevent the conflict
<clever> ah
<NickHu> I guess there's precedence provided by the the order of the list passed to hardware.firmware... right?
<clever> the order of entries in hardware.firmware will control that then
<clever> but i'm not sure where all-firmware.nix will put it
<clever> so its best to hardware.enableAllFirmware = false; and then hardware.firmware = [ foo pkgs.firmwareLinuxNonfree ];
<clever> so you have clear control of the order
<NickHu> I guess the only firmware loaded in this way that really matters on linux laptops these days is wifi anyway
Mateon3 has joined #nixos
<clever> NickHu: and if you read /etc/modprobe.d/nixos.conf, you will find the path to the firmware, after nixos has merged foo and non-free
<clever> you will want to check in that resulting path, both to confirm it symlinked the right version, and that the files are in the right area
<NickHu> Can I evaluate hardware.firmware on my running system?
athan has joined #nixos
Mateon2 has quit [(Ping timeout: 240 seconds)]
<clever> NickHu: yeah, nix-repl '<nixos/nixos>' and then "${config.hardware.firmware}"
ebzzry has quit [(Ping timeout: 240 seconds)]
<clever> maybe :b config.hardware.firmware
<clever> and :r to reload every time you change the config files
Mateon3 is now known as Mateon2
robot has joined #nixos
<robot> Anybody manage to get qemu up and running on nixos?
alx741 has quit [(Quit: alx741)]
<clever> robot: it just works out of the box
<NickHu> clever: Fantastic, it worked! Thanks for all of the help :)
<NickHu> I feel like my wifi signal is now weaker, but I guess not hanging the system makes it worth it... I would guess that changing the firmware alone wouldn't make a huge amount of difference to performance
<clever> yay
takle has joined #nixos
endformationage has joined #nixos
takle has quit [(Ping timeout: 276 seconds)]
<robot> clever: are you sure? virt-manager doesn't seem to be able to detect it
<clever> ah, you didnt mention that
<clever> qemu works fine, when ran directly
jgertm has joined #nixos
<robot> Do I have to enable it in my config?
<clever> robot: virtualisation.libvirtd.enableKVM maybe
<inflames> how can I install global npm packages like 'create-react-app'?
<clever> though it defaults to true
takle has joined #nixos
<clever> robot: did you also virtualisation.libvirtd.enable ?
<robot> Ah nvm, I do have qemu
<robot> Nope, I'm going to try that
<clever> This option enables libvirtd, a daemon that manages virtual machines. Users in the "libvirtd" group can interact with the daemon (e.g. to start or stop VMs) using the virsh command line tool, among others.
<clever> robot: turning it on will auto-configure everything, and install libvirt
takle has quit [(Ping timeout: 255 seconds)]
Lisanna has quit [(Ping timeout: 260 seconds)]
<robot> clever: thanks a lot, seems to be in working order now
<robot> but looks like a reboot might be needed
robot has quit [(Remote host closed the connection)]
robot has joined #nixos
takle has joined #nixos
<robot> Works!
<robot> Sweet
zeus_ has joined #nixos
contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
takle has quit [(Ping timeout: 240 seconds)]
<NickHu> Where am I supposed to report that the newest firmware is broken for me? A downgrade was required to make my wifi not crash all the time
<cocreature> how can I check whether installing a package would pull it from the cache or build it locally?
zeus_ has quit [(Ping timeout: 246 seconds)]
<clever> NickHu: if i eval firmwareLinuxNonfree.meta.position in nix-repl, i get pkgs/os-specific/linux/firmware/firmware-linux-nonfree/default.nix:28"
sary has joined #nixos
<clever> NickHu: so you want to check both the git history on this file, the maintainers, and possibly open an issue on nixpkgs and/or debian.org
takle has joined #nixos
<clever> NickHu: line 7-13 also explains how the repo is made
takle has quit [(Ping timeout: 246 seconds)]
justanotheruser has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
joehh has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
filterfish has quit [(Remote host closed the connection)]
eacameron has joined #nixos
filterfish has joined #nixos
hellrazor has joined #nixos
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
takle has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
filterfish has quit [(Remote host closed the connection)]
pxc has quit [(Quit: WeeChat 1.9)]
filterfish has joined #nixos
<robot> I'm really loving nixos so far, I wonder why it hasn't gotten more traction
<robot> Especially with the devops crowd
<grantwu> It's new, it's different, the documentation isn't superb, the UI is sometimes obtuse
eacamero_ has joined #nixos
<grantwu> every time I hear "you should use -iA instead of -i" I despair a little more
eacameron has quit [(Ping timeout: 248 seconds)]
<clever> grantwu: at least twice, ive seen people run nix-build in the root of something like nixpkgs
<clever> and nix-build happily tries to build everything
filterfish has quit [(Remote host closed the connection)]
<clever> then throws out every broken package in the entire set
filterfish has joined #nixos
<grantwu> Er
<robot> grantwu: New? Isn't it from 2003?
<grantwu> Are you not supposed to run nix-build in the root of nixpkgs?
<robot> Wasn't the initial release in 2003*?
<clever> grantwu: they omited the -A argument
<clever> grantwu: and since you didnt tell nix-build what to build, it builds everything in the set
<grantwu> robot: Well, it seems new
eacameron has joined #nixos
takle has quit [(Remote host closed the connection)]
<grantwu> https://nixos.org/~eelco/pubs/phd-thesis.pdf was written in 2006, so it's definitely older than I thought it was
eacamero_ has quit [(Ping timeout: 246 seconds)]
<grantwu> clever: I see. Well, I'm not quite sure what you mean by telling me that.
<grantwu> My -iA instead of -i thing refers to installing packages with nix-env
takle has joined #nixos
<grantwu> Oh yeah, add in the fact that Nix on non-NixOS distributions sometimes feels like a second class citizen
eacamero_ has joined #nixos
<grantwu> If there's anything nice I can say about apt, it's that 80% of the time it's dead simple compared to Nix
eacameron has quit [(Ping timeout: 260 seconds)]
mao_ has joined #nixos
<clever> grantwu: its another silly mistake that new users have done repeatedly
eacameron has joined #nixos
eacamero_ has quit [(Ping timeout: 246 seconds)]
takle has quit [(Remote host closed the connection)]
<grantwu> another? was there a silly mistake I gave as an example o.O
zeus_ has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
<clever> grantwu: just related to -i vs -iA
<grantwu> I see
zeus_ has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
robot has quit [(Ping timeout: 240 seconds)]
LinArcX has joined #nixos
Ivanych has joined #nixos
takle has joined #nixos
<LinArcX> Hi. I have a question. I want to set special label for every time, rebuild configuration.
noam has quit [(Quit: Leaving)]
<LinArcX> Just like set tag in git for each commit.
takle has quit [(Ping timeout: 260 seconds)]
jgertm has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle_ has joined #nixos
takle has quit [(Ping timeout: 276 seconds)]
<srhb> LinArcX: What is a label?
takle_ has quit [(Ping timeout: 260 seconds)]
<LinArcX> Tag for each rebuild. To recognize theme in grub.
<LinArcX> This question ask before in September 2015.
<LinArcX> Is there a way to tag or name generations? I am starting to play around with the configuration and channels a bit more and it would be nice to name them in the boot menu to know which is safe to return to when things go bad at the least. At best I would love to tag each generation with something describing the change. Like a git commit?
takle has joined #nixos
filterfish has quit [(Ping timeout: 276 seconds)]
takle has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] elitak opened pull request #27974: bitcoinarmory: init at 0.96.1 (master...armory) https://git.io/v7rrV
NixOS_GitHub has left #nixos []
LinArcX has quit [(Remote host closed the connection)]
rpifan has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/v7rrQ
<NixOS_GitHub> nixpkgs/master 7cc0ef8 Gabriel Ebner: goldendict: fix build by upgrading to qt 5.9
NixOS_GitHub has left #nixos []
zeus_ has joined #nixos
<srhb> LinArcX: How about --profile-name ?
<jluttine> is there an easy way to write and install a python module in nix expressions? i just need a settings module for my django project. i tried pkgs.writeTextDir "mysettings.py" "foobar = 42", but that didn't work because the directory structure should be something like lib/pythonXX/site-packages/mysettings.py or so. just wondering if there is some nice supported way before i do something hackish
takle has joined #nixos
filterfish has joined #nixos
<jluttine> or do i just need to write a proper python package with setup.py outside nix configuration?
zeus_ has quit [(Ping timeout: 276 seconds)]
LinArcX has joined #nixos
<LinArcX> srhb. No. Profile name create another directory in grub. I want to tag every rebuild, without put theme in specific categories.
<LinArcX> Another submenu indeed!
simukis has joined #nixos
takle has quit [(Ping timeout: 248 seconds)]
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
LinArcX has quit [(Remote host closed the connection)]
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/v7roa
<NixOS_GitHub> nixpkgs/master e619ace Gabriel Ebner: perlPackages.TextBibTeX: fix build
NixOS_GitHub has left #nixos []
<peti> Profpatsch: You don't need it. GHC can install packages simply by comiling their Setup.hs file and running that. Cabal-install is a convenience tool that adds extra features, but the compiler itself doesn't need it.
endformationage has quit [(Quit: WeeChat 1.9)]
<jluttine> or more generally, is there any guide on setting up django web sites on nixos?
Infinisil has joined #nixos
Infinisil has quit [(Client Quit)]
Infinisil has joined #nixos
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
hellrazor has quit [(Quit: WeeChat 1.9)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v7rKK
<NixOS_GitHub> nixpkgs/staging f779df8 Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
zeus_ has joined #nixos
LinArcX has joined #nixos
blahdodo has quit [(Quit: Bye bye)]
zeus_ has quit [(Ping timeout: 246 seconds)]
* Infinisil doesn't really get what the staging branch does
blahdodo has joined #nixos
mao_ has quit [(Ping timeout: 260 seconds)]
<jluttine> i'm trying to develop a python package with this instructed setting: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.md#develop-local-package but i get an error when running nix-shell in that directory: "error: value is a function while a set was expected"
<Infinisil> jluttine: That expression has an error in the first line, it should be `with import <nixpkgs> {};`
<Infinisil> jluttine: I'm gonna make a PR to fix it
<jluttine> Infinisil: thanks, works now!
zraexy1 has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Infinisil opened pull request #27976: docs: fix error in nix expression (master...fix-python-doc) https://git.io/v7r6c
NixOS_GitHub has left #nixos []
joehh has joined #nixos
mudri has joined #nixos
takle has joined #nixos
thc202 has joined #nixos
ryan_nix has joined #nixos
<ryan_nix> Ok, laptop turns on again - lets see if I can fix the touchpad issue
takle has quit [(Ping timeout: 240 seconds)]
gnuhurd has joined #nixos
<LinArcX> Hi there. How find list of all installed packages?
<Infinisil> LinArcX: nix-env -q
<Infinisil> If you mean user packages
<LinArcX> No. I want System packages + user packages.
<Infinisil> LinArcX: I don't really see the point tbh, do you need this just to have a look or for something else?
eacameron has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 2 new commits to master: https://git.io/v7riy
<NixOS_GitHub> nixpkgs/master 8e16cee Domen Kožar: double-conversion: remove patch superseeded by ghc patch...
<NixOS_GitHub> nixpkgs/master 71bebd5 Domen Kožar: {fs,h}notify: move to configuration-nix.nix
NixOS_GitHub has left #nixos []
<Infinisil> There is a bash command to get the final environment.systemPackages
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
eacameron has quit [(Read error: Connection reset by peer)]
<LinArcX> infinisil: Look. I copy all mpv configuration from my arch Linux system to .conf in user home directory. But every video I play, mpv tell me pulse not installed. I want to install pulse audio and I want to sure know if any equivalent sound packages installed before, use theme.
moesasji has joined #nixos
<Infinisil> LinArcX: You can install pulseaudio by setting hardware.pulseaudio.enable = true;
<Infinisil> LinArcX: Usually every package installs all dependencies it needs, you shouldn't worry about it. Pulseaudio is a bit special in that regard
<LinArcX> infinisil: it mean that pulse audio installed before and I just enable it?
<LinArcX> Or this command download pulse audio and install ity
<Infinisil> LinArcX: You are on NixOs, right?
<LinArcX> Yes
ryan_nix has quit [(Quit: Konversation terminated!)]
<Infinisil> LinArcX: Then you just need to put a line with `hardware.pulseaudio.enable = true` into your configuration.nix and pulseaudio will be installed correctly after a nixos-rebuild
<LinArcX> Thanks :)
filterfish has quit [(Ping timeout: 248 seconds)]
<Wizek> Hello! If nix-build tells me "waiting for locks or build slots...", what is it waiting for? For some lock files to be deleted?
<Wizek> and if so, where are those located?
<LinArcX> infinisil: Another question. How nix handle user configuration files. I mean all dot files reside in home directory. Is there any mechanism for Handel theme or I should copy/paste theme from old machine?
<tilpner> Wizek - Are you building multiple things concurrently?
<Wizek> tilpner: afaict not at the moment
<Wizek> I think a previous build might have left the lock on by error
<tilpner> I don't know where the locks are, but this might be relevant: https://nixos.org/nix/manual/#ssec-multi-user
<Infinisil> Wizek: You can find out what files a process has open with `lsof`
Jackneill has joined #nixos
LinArcX has quit [(Remote host closed the connection)]
dywedir has joined #nixos
ryan_nix has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/v7rPB
<NixOS_GitHub> nixpkgs/master dcf651b Silvan Mosberger: docs: fix error in nix expression
<NixOS_GitHub> nixpkgs/master 4cd46c1 Daiderd Jordan: Merge pull request #27976 from Infinisil/fix-python-doc...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v7rPg
<NixOS_GitHub> nixpkgs/master a5e135e Vladimír Čunát: release.nix: fix a typo from #27923, build stdenv...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to release-17.03: https://git.io/v7rPo
<NixOS_GitHub> nixpkgs/release-17.03 8f17e41 Silvan Mosberger: docs: fix error in nix expression...
NixOS_GitHub has left #nixos []
<Wizek> tilpner, Infinisil, it seems I've had a nix-build suspended with ^z in the background. found it via `pgrep nix | xargs --no-run-if-empty ps fp | less`, and after killing that my main build started
<Infinisil> Wizek: I can highly recommend htop, it's very useful for such things
<tilpner> But you were building different things?
<Wizek> tilpner: I was, yesterday, didn't quite remember that I still had that suspended or killed since then.
<tilpner> Wizek - With multiple build users, you should be able to build several things concurrently. You might want to check/fix that
LinArcX has joined #nixos
<Infinisil> And if you really do have too few build users, you can increase the amount with nix.nrBuildUsers
zeus_ has joined #nixos
LinArcX has quit [(Remote host closed the connection)]
moesasji has quit [(Ping timeout: 260 seconds)]
zeus_ has quit [(Ping timeout: 246 seconds)]
<jluttine> i have a script in nix store. i'd like to create another script which just wraps it by defining a few env variables. how to do it? i found some wrappers but they're shell scripts so it confuses me how to use them to define the wrapper script in nix
moesasji has joined #nixos
<LnL> there's a makeWrapper helper
<Infinisil> Yeah, something like `pkgs.runCommand "name" { buildInputs = [ pkgs.makeWrapper ]; } "makeWrapper ${pkgs.actualPackage}/bin/test $out/bin/test --set MY_ENV_VAR SOME_VALUE"`
globin has quit [(Quit: WeeChat 1.6)]
globin has joined #nixos
lambdael has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v7rXI
<NixOS_GitHub> nixpkgs/staging 67b6b7e Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7rXm
<NixOS_GitHub> nixpkgs/master 145be4e Robin Gloster: Merge commit 'ad83979e5986fa3bb0d254c2be9482c12a8743b9' from staging
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to staging: https://git.io/v7rXs
<NixOS_GitHub> nixpkgs/staging 2bbfac7 Robert Helgesson: expat: fix build on aarch
NixOS_GitHub has left #nixos []
<jluttine> Infinisil: thanks, that worked!
<Infinisil> jluttine: Nice :)
<avn> feeew, I pick perfect time to rebase my local branch on master ;)
<jluttine> now i need to solve how to add python packages to that env so that the script finds them..
elurin has joined #nixos
<jluttine> adding it to propagatedBuildInputs doesn't apparently add it to pythonpath so i must do something else :S
<Infinisil> jluttine: You might wanna use buildPythonApplication/buildPythonPackage
<Infinisil> That is, pythonPackages.buildPythonApplication
<Infinisil> These set up everything for python to work
<Infinisil> something like pythonPackages.buildPythonApplication { name = "test"; src = <src>; propagatedBuildInputs = with pythonPackages; [ the packages you need ]; format = <one of "wheel", "flit", "setuptools" or "other", default is "setuptools">; }
<sphalerite> Switching from a manually installed/managed nixos to nixops isn't complicated, right? I've got a new server to set up and want to use nixops for it eventually but for now just install and manage it manually
tokudan has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
<Infinisil> sphalerite: Don't think so
<Infinisil> If you're using configuration.nix for everything then it's pretty much the same
mpcsh has joined #nixos
<Infinisil> Only once I've experimented with NixOps, but that's what I got out of it
<LnL> yeah, and you can use the 'none' backend to manage existing machines
<sphalerite> cool, thanks
<Infinisil> <test>
<Infinisil> Damnit
<Infinisil> My nick gets aligned wrongly for some reason
<jluttine> Infinisil: ok.. but isn't that for proper python packages? not sure how to use that for my simple script wrapping.. uh.. my head just doesn't work
<jluttine> i tried setting unpackPhase, checkPhase, buildPhase, configurePhase to empty strings but it still wants src to be defined
<jluttine> i just wanted to have installPhase where i use makeWrapper to write my wrapped script
<jluttine> probably not the right way
<Infinisil> jluttine: Ahh
<sphalerite> jluttine: set unpackPhase to ":"
<sphalerite> it won't actually override it if it's an empty string for some reason
<sphalerite> but the easiest way to make a simple script is probably writeScript/writeScriptBin
<Infinisil> jluttine: Wait, what exactly are you doing?
<LnL> urgh, the queue monitor: std::bad_alloc is back
<Infinisil> Do you want to set the PYTHONPATH env var?
<sphalerite> oh wait you want to use makeWrapper. In that case runCommand is probably the easiest way
<jluttine> Infinisil: i have a python package which has manage.py script. i want to wrap that script so that an env variable DJANGO_SETTINGS_MODULE is set to mywebsite.settings. if i use makeWrapper, i somehow also need to add the python package mywebsite to the python path because it's not part of the original python package that contained the manage.py script..
<sphalerite> Also, any zfs wizards who can recommend a setup for a server with one 240GB SSD and two 3TB HDDs? I want some sort of mirroring between the two HDDs, and for the SSD to improve performance, and probably also to install the bootloader on the SSD
<jluttine> or maybe i'm doing this totally wrong.. i just want to use the manage.py of my django website..
<jluttine> i couldn't find any instructions on how to use django with nixos so i'm just coming up with things myself
<sphalerite> Probably easiest to use it in a nix-shell
<sphalerite> nix-shell -p 'python.withPackages (ps: with ps; [django and other deps])'
<jluttine> i can use manage.py easily when developing by using nix-shell, but the actual production configuration i find more difficult to use :S
<jluttine> sphalerite: hmm.. ok. i'll see if i can make that work
<sphalerite> you can also add a nix-shell shebang to the manage.py itself, don't know the details of how to do that though. Should be in the nix manual
<moesasji> With lightdm set to enabled and working I get "dm-tool" not installed when trying to do "dm-tool lock" on a terminal.
<Infinisil> sphalerite: SSD as a cache, and some raid/mirroring on the HDDs, I don't know a lot about raidz, so not sure if it's even possible for 2 disks
<moesasji> dm-lock is part of lightdm. Any thoughts on why lightdm shows up as not installed despite it running?
anelson has quit [(Ping timeout: 255 seconds)]
<Infinisil> sphalerite: Actually I'm pretty sure mirroring is the best you can do with only 2 disks
<sphalerite> Infinisil: mirroring should be possible, I think it's just parity that you need more than 2 for
<Infinisil> Yeah
<avn> sphalerite: cache/zil on ssd, possible partition for each of them.
<avn> sphalerite: zpool create tank mirror /dev/sda /dev/sdb cache /dev/sdc1 log /dev/sdc2 (probably, my memory can lie about order of paramteres and exact wording)
<Infinisil> moesasji: Just try to install the package manually, should work
<sphalerite> avn: cool, thanks
<Infinisil> avn: What's a log device good for even?
<sphalerite> oh yeah, and I want to encrypt the HDDs so rather than sda/sdb I'll use /dev/mapper/crypt1 and /dev/mapper/crypt2 or something
<Infinisil> avn: Never mind, found the manpage section
<avn> sphalerite: actually what I have myself. Except that I have one more unmirrored hdd with ext4 for torrents ;)
<sphalerite> And should I split the SSD evenly between ZIL/cache? (and cache = l2arc, right?)
<Infinisil> sphalerite: And the cache would need to be encrypted as well of course
<moesasji> @infinisil: it indeed works when installed manually. I'm just puzzled why that is needed?
<avn> sphalerite: Actually 4-6G is more than enough for ZIL
<avn> also if you plan to have some swap, better do it on ssd partition as well
zeus_ has joined #nixos
<sphalerite> Infinisil: not sure how useful encrypting the cache would be, as I intend to store the key for the HDDs on the SSD (boot partition)
<sphalerite> so the server can boot independently
<Infinisil> sphalerite: Encryption on the main storage doesn't use anything when the cache is unencrypted
<Infinisil> Ohh
<avn> pfff, why you need encryption at all?
<Infinisil> The encryption is propagated isn't it
<sphalerite> the main reason for encrypting the HDDs is so if they don't get disposed of correctly all the data doesn't end up available to whoever gets their hands on them
<avn> just wipe them before sell to second hands ;)
<sphalerite> I figure it's a lot less likely that they'll get the SSD and one of the HDDs
<Infinisil> (encryption isn't propageted)
<sphalerite> Infinisil: I'm using luks, not zfs encryption so no
<Infinisil> Yeah
<Infinisil> I don't know, I don't see much point in encrypting the HDDs without the cache
<avn> I am actually not see any point in encryption, if you not on laptop and want protect your data from banal thieving
<Infinisil> avn: Well encryption is something you might wanna have sometimes, sensitive data and so
zeus_ has quit [(Ping timeout: 246 seconds)]
<Infinisil> There is an sshd for initrd on NixOS, so you can log into a server in stage1(.5?) and enter the password to decrypt disks
<Infinisil> While it's in theory still possible for unauthorized people to get the data, it's much harder like this
<avn> Infinisil: But it 100% require human interaction, and also not 100% proof (you can ssh to mock and enter password ;)
<Infinisil> avn: Yeah, but it's better than just putting the unencrypted key on the disk :)
takle has joined #nixos
<sphalerite> The main scenario I want to guard against is improper disposal of the disks
<Infinisil> sphalerite: Hmm.. don't know what to think of this threat model
ambro718 has joined #nixos
<Infinisil> sphalerite: What's the data for?
<sphalerite> lots of different things
<Infinisil> personal server?
<sphalerite> yeah, shared with my dad -- he uses it for his research and stuff, and I get to use it for whatever I want in exchange for doing all the sysadmin work :p
takle has quit [(Ping timeout: 246 seconds)]
ryan_nix has quit [(Quit: Konversation terminated!)]
ryan_nix has joined #nixos
qknight has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
<Infinisil> Heh, nice contract
<ryan_nix> Anyone know why a touchpad would work in Wayland, but not in X?
<Infinisil> sphalerite: Well I'd try to encrypt the cache as well, doesn't really hurt anyone, it's up to you
<sphalerite> yeah I'd do that if I can do it with the TPM
<Infinisil> TPM?
<sphalerite> ryan_nix: maybe X is using synaptics and that doesn't work
jtojnar_ has joined #nixos
<sphalerite> Infinisil: ^
<ryan_nix> sphalerite: hmm, I do have libinput enabled.. I had synaptics enabled, but that didn't work either
<Infinisil> sphalerite: Fancy
<ryan_nix> xinput -devices shows the touchpad as a synaptics touchpad
<ryan_nix> (which I think it is?)
<ryan_nix> Not sure if that denotes the driver though
hellrazor has joined #nixos
<jluttine> sphalerite: the problem in using nix-shell is that i'm defining the packages in my configuration.nix so i don't know how i could activate a nix-shell using them
<sphalerite> ryan_nix: then I don't really know, sorry
<Infinisil> ryan_nix: I'm using xserver.multitouch.enable = true; in my config and the touchpad works under X
<sphalerite> jluttine: you could put them in an overlay
<ryan_nix> Infinisil: let me try that
<Infinisil> jluttine: You shouldn't specify the packages in configuration.nix
<Wizek> can I somehow pass --allow-newer to cabal via a nix derivation?
<jluttine> Infinisil: where should i specify them?
<Wizek> I tried adding `allowNewer = true` without success
<Infinisil> jluttine: In the shell.nix/default.nix file you use for a nix-shell
<jluttine> Infinisil: i'm defining them just for some uwsgi processes so i don't need to access them, just some services use them
<jluttine> Infinisil: but how can my service definitions in configuration.nix then use those packages?
<Infinisil> jluttine: I'm a bit lost on understanding what you really want to do
http_GK1wmSU has joined #nixos
Myrl-saki has joined #nixos
<Myrl-saki> How do I get the output file of a derivation?
<Infinisil> Myrl-saki: You mean from a .drv file?
<jluttine> Infinisil: :) i'm trying to set up my django website. i wrote an uwsgi service which uses one django python project and my settings python project. this uwsgi service seems to work nicely. but i need to use manage.py script from the command line to manage my website. this script is part of the django website package but in order to use it i need to have my settings python package in the python path too.
<Myrl-saki> Yeah.
<Myrl-saki> Output directory, I mean.
<LnL> not sure if there's a nice way to package django at the moment
http_GK1wmSU has left #nixos []
<Infinisil> Myrl-saki: nix-store -q --binding out /nix/store/xxx.drv
<jluttine> i wouldn't want to copy-paste those python package definitions to some shell.nix because that's just duplication
<Infinisil> jluttine: You can write a file with the pythonPackage stuff you need, then `import path/to/that/file` in configuration.nix and do whatever you need with it
<Infinisil> Nix is very flexible in that regard
<Infinisil> E.g. put (import path/to/file) into systemPackages
<Wizek> Found it! `configureFlags = ["--allow-newer"];`
<Infinisil> Or you could just use nix-env: nix-env -f path/to/file -i
<thblt> jluttine: More generally, Nix is designed with modularization/reuse in mind.
ryan_nix has quit [(Quit: Konversation terminated!)]
<thblt> jluttine: so you never have to copy-and-paste
ryan_nix has joined #nixos
<ryan_nix> It worked!
<ryan_nix> Kind of...
<ryan_nix> Behaves pretty strangely, seems to not alway register movement
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v7rDY
<NixOS_GitHub> nixpkgs/master 332a60c Vladimír Čunát: release.nix: resurrect stdenvBootstrapTools...
NixOS_GitHub has left #nixos []
<thblt> ryan_nix: palm detection threshold, side scrolling, or something like that maybe?
<ryan_nix> Might be
<sphalerite> you should be able to set those using xinput
<thblt> I have the opposite problem on my test laptop but I've given up fixing it :)
<ryan_nix> Yeah, it seems like the bottom half doesn't take any input
<ryan_nix> Unless it starts from the top
<ryan_nix> Is KDE's touchpad configurator disabled intentionally?
<sphalerite> it might only work with synaptics and/or libinput
takle has joined #nixos
<ryan_nix> It works with both on Arch - not sure for Nix
<ryan_nix> Anyhow I'll play with the conf, thanks
<Infinisil> ryan_nix: Good luck
takle has quit [(Ping timeout: 246 seconds)]
<ryan_nix> Where would be a good place to document the required setting for my laptop model? (for other lost souls in the future?)
<Infinisil> ryan_nix: Blog post, or maybe https://github.com/NixOS/nixos-hardware
eacameron has joined #nixos
<Infinisil> But nixos-hardware seems pretty inactive
<ryan_nix> Might do both :)
<Infinisil> I personally put such stuff here: https://github.com/Infinisil/system/tree/master/guides
<Infinisil> Not optimal, but it works if I want to refer someone to it
eacameron has quit [(Ping timeout: 246 seconds)]
takle has joined #nixos
lhart has joined #nixos
<Infinisil> And it's not really maintained well.. I should update some of these guides
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v7ryG
<NixOS_GitHub> nixpkgs/master 7960bbf Daiderd Jordan: gnutls: fix darwin build
NixOS_GitHub has left #nixos []
ison111 has quit [(Ping timeout: 240 seconds)]
<lhart> Hi! Does anyone here use qutebrowser with qtwebengine? I'm trying to install but it always launches with qtwebkit. Fyi i use `nix-env -iA nixos.qutebrowser withWebEngineDefault true`. Am I doing something wrong? Thanks.
takle has quit [(Ping timeout: 276 seconds)]
<Infinisil> lhart: I'm pretty sure that's not a valid command
zeus_ has joined #nixos
http_GK1wmSU has joined #nixos
http_GK1wmSU has left #nixos []
<lhart> Infinisil: ha, my bad I indeed use -arg option to pass my args.
<Infinisil> lhart: Yeah that doesn't work either, hold on a sec
<lhart> Thank you. I tryed to look at the package definition but I'm not familiar enough with wrapProgram. :/
zeus_ has quit [(Ping timeout: 276 seconds)]
dbe has joined #nixos
<Infinisil> Weird, I can't seem to get it to work with nix-env
Capprentice has quit [(Remote host closed the connection)]
<lhart> I tried to build it myself with nix-build. I didn't get better results.
Capprentice has joined #nixos
<Infinisil> lhart: (with import <nixpkgs> {}).qutebrowser.override { withWebEngineDefault = true; } works in a nix file
<Infinisil> Oh wait
<dbe> how does builtin.fetchurl work? any documentation available somewher?
<Infinisil> I thought something like nix-env -i -E '(with import <nixpkgs> {}).qutebrowser.override { withWebEngineDefault = true; }' should work, but it doesn't
<lhart> (using qutebrowser --backen webengine manually do work, btw)
<lhart> Could it be the wrapProgram that doesn't work?
<Infinisil> lhart: No idea
roundhouse has joined #nixos
<Infinisil> lhart: Just putting the above mentioned expression into a nix file and building it works
<roundhouse> hi, has anybody a working configuration for the vim plugin "UltiSnippets" on nixos? vim/nvim is both fine.
<Infinisil> Or you could just have (qutebrowser.override { withWebEngineDefault = true; }) in systemPackages if you're using it
<lhart> Infinisil: ok, thank you! I think i'll use the latter. Maybe i'll also try to modify the package definition. I'll see. Have a nice day!
<Infinisil> roundhouse: What doesn't work?
<roundhouse> exanping a snippet
<roundhouse> expanding*
mudri has joined #nixos
<dbe> nvm I got it. it's a dead-simple "builtin.fetchUrl 'url'".
<roundhouse> I've tried removing all plugins but Ultisnippets, and using an empty vimrc only consisting of the setting the expandtrigger to <TAB>. Still it does not work
<Infinisil> roundhouse: No idea
<Infinisil> roundhouse: Maybe you could ask in #nix
<Infinisil> roundhouse: Umm, #vim i mean
<Infinisil> dbe: Yeah there are two versions, preferrably the other one (not builtin) is used, due to it's reproducibility
<roundhouse> I'll try that but I have the strong suspicion this is nix related. I can't get it to work with either vim or neovim
<Infinisil> roundhouse: There must be a way to debug vim to get an error or so
<dbe> Infinisil, this is evaluated outside nixpkgs, so I don't have 'the good one' available
<Infinisil> If it's a "file not found" or "permission error" then it may be a nix related thing
<Infinisil> dbe: nixpkgs is always available via `import <nixpkgs> {};`, or are you actively trying to avoid it for whatever reason?
<Infinisil> You can't do much without nixpkgs..
<roundhouse> Infinisil: I'll see if I can find something
<dbe> roundhouse, seems the vim version in nixpkgs does not have python support... does yours?
eacameron has joined #nixos
<dbe> Infinisil, something like that :)
<roundhouse> dbe: +python -python3
<roundhouse> could that be the problem?
<dbe> roundhouse, then your version is better then mine. I don't have either version on mine
<dbe> roundhouse, I get an error though, that ultisnips requires python py2 or py3. so I guess not.
<sphalerite> roundhouse: how are you currently configuring it?
eacameron has quit [(Ping timeout: 240 seconds)]
<roundhouse> sphalerite: https://pastebin.com/D2kV1Uzj is vim vim.nix, which I include via (import ./vim.nix) in my packages
<roundhouse> dbe: the strange thing is, I dont customize my vim. how come I have python, u don't?
mguentner has joined #nixos
eacameron has joined #nixos
Capprentice has quit [(Remote host closed the connection)]
<avn> qt not builds: `/nix/store/zdivkazf707sr5rfhh7s5xqq4a3lf3il-binutils-2.28/bin/ld: unrecognized option '-Wl,--gc-sections'`
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<sphalerite> roundhouse: I've just added UltiSnips to my neovim config, what do you do to trigger the error? Is it on load?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/v7rSh
<NixOS_GitHub> nixpkgs/master 4b0afc1 Michael Weiss: zpl*: Fix the attribute name of the license...
NixOS_GitHub has left #nixos []
<sphalerite> https://github.com/lheckemann/dotfiles/blob/master/neovim.nix is what my config looks like (+ ultisnips just now)
lhart has quit [(Quit: Page closed)]
<roundhouse> sphalerite: does it work? I.e. can you expand snippets?
<sphalerite> how do I try that? I have no idea how to use UltiSnips
<roundhouse> sphalerite: open a file of any type (but that has the filetype set. Go to :UltiSnipsEdit, add a snippet such as "snippet ala\n trololol\n endsnippet". Go back to file insert "ala" and hit tab
<roundhouse> sphalerite: or whatever your exapnd key is set to
eacamero_ has quit [(Ping timeout: 276 seconds)]
<sphalerite> \n literally or an actual line break?
<roundhouse> line break
eacameron has joined #nixos
lassulus has quit [(Ping timeout: 248 seconds)]
<dbe> roundhouse, I guess we're on different channels. I'm on nixos-17.03. I guess I should add another channel though, I'd don't have neovim in my channels either
http_GK1wmSU has joined #nixos
http_GK1wmSU has left #nixos []
anelson has joined #nixos
calvinx has joined #nixos
<roundhouse> dbe: I'm perplexed. "nixos https://nixos.org/channels/nixos-17.03" "neovim-0.1.7 (nixos.neovim)" :)
<dbe> roundhouse, oh.. uh.
<roundhouse> sphalerite: any luck?
<sphalerite> I still haven't managed to get it to try to expand a snippet >_>
eacameron has quit [(Ping timeout: 260 seconds)]
<sphalerite> I've removed all other plugins to make sure nothing else is grabbing tab, but it still just inserts a tab when I press tab after typing ala
eacameron has joined #nixos
<dbe> roundhouse, updated my channels, installed neovim. my ultisnips is working now
<roundhouse> sphalerite: this is the very same problem I'm having.
ryan_nix has quit [(Quit: Konversation terminated!)]
<roundhouse> dbe: config please :)
<sphalerite> I thought you said it couldn't detect python or something
<roundhouse> sphalerite: nono. This was a suggestion by someone else
<sphalerite> ooooooh
<sphalerite> yeha then I have no idea
erictapen has joined #nixos
<roundhouse> sphalerite: thanks anyway!
wigust has quit [(Ping timeout: 260 seconds)]
<dbe> I guess the only relevant options I have is "Plug 'SirVer/ultisnips'" and "let g:UltiSnipsExpandTrigger="<C-l>""
<dbe> roundhouse, full dotfiles is at github.com/dbeecham/dotfiles
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
ryan_nix has joined #nixos
elurin has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
zeus_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
lassulus has joined #nixos
ryan_nix has quit [(Quit: Konversation terminated!)]
zeus_ has quit [(Ping timeout: 276 seconds)]
ryan_nix has joined #nixos
<dbe> roundhouse, by the way, to test, I open up a test.c, write 'inc' and hit ctrl-l.
<roundhouse> dbe: It works. I have no clue why it works now but not before
<dbe> roundhouse, great. :)
<roundhouse> maybe the <tab> is problematic
<roundhouse> anyway
<roundhouse> I'll star your rep ^^
<roundhouse> thanks alot
roundhouse has left #nixos []
ryan_nix has quit [(Remote host closed the connection)]
ryan_nix has joined #nixos
<sphalerite> Did github just break for anyone else? Specifically, fonts are broken and I can't see most of the text on it anymore
* sphalerite uploaded an image: 2017-08-06-132924_2081x1964_scrot.png (83KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/RUwkzbyEmxhBjHNSxZsbXohc>
<tilpner> There's a spike in page build failures: https://status.github.com/
<ryan_nix> Hmm, so the multi-touch fix doesn't seem to persist after rebooting
<ryan_nix> only if I rebuild-switch, logout and log back in does it work :|
<sphalerite> tilpner: so there is... As a workaround I'm adding * {font-family: mono;} to be able to see stuff again x)
joehh has quit [(Quit: WeeChat 1.7.1)]
<ryan_nix> Infinisil: Sorry to bother, but any insight re. this?
ryan_nix has quit [(Quit: Konversation terminated!)]
ryan_nix has joined #nixos
<ryan_nix> Yeah, reproducible
<ryan_nix> Feels like a dependency problem
<ryan_nix> Does the order in which you enable services matter in your nixos/config?
<Infinisil> Damnit, racer on nixos-unstable fails to build for some reason
<Infinisil> I don't even know why it's building anything, should be cached
<Infinisil> And nixos-unstable doesn't update yet again
eacameron has joined #nixos
<lassulus> what are people using to connect with their umts modems?
<makefu> i just saw that wvdial was removed from nixpkgs, what is the alternative for it?
<makefu> (i am currently using wvdial from an old nixpkgs branch where it still worked)
<sphalerite> my guess is ModemManager, but I have no idea really
<sphalerite> ModemManager+NetworkManager might well work if you don't hate poettering too much :p
eacameron has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/v7rQ2
<NixOS_GitHub> nixpkgs/master b0a2ea0 Michael Weiss: python3Packages.zodb: Fix the build...
NixOS_GitHub has left #nixos []
ryan_nix has quit [(Remote host closed the connection)]
joehh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] symphorien opened pull request #27977: par2cmdline: 0.6.13 -> 0.7.3 (master...update_par2) https://git.io/v7rQP
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] makefu opened pull request #27978: influxdb module: collectd.port is now called bind-address (master...module/influxdb/bind-fix) https://git.io/v7rQD
NixOS_GitHub has left #nixos []
lukego has joined #nixos
<lukego> anybody fancy helping me to troubleshot styx-static installation?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] georgewhewell opened pull request #27979: openssl 1_1_0: fix build on aarch64 (master...fix-openssl-aarch64) https://git.io/v7rQA
NixOS_GitHub has left #nixos []
<v0|d> spacekitteh[m]: have you been able to compile aosp? i have a sigsegv on my screen.
ryan_nix has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
<ryan_nix> Hrm, I set xserver.autorun to false, but ldm still starts after reboot. Is it possible that my current nix config isn't being booted?
<Infinisil> Holy shit, pkgs.racer is *not* the rust completion thing, it's a game..
<Infinisil> No wonder it had a ton of dependencies
<Infinisil> rustracer is what I'm looking for..
<ryan_nix> Aren't games namespaced?
<Infinisil> Hmm wait
babic has joined #nixos
<Infinisil> Why is my local master different than the nixpkgs master??
justbeingglad has joined #nixos
<LnL> git pull?
zeus_ has joined #nixos
justbeingglad has left #nixos []
<Infinisil> LnL: I did
lukego has quit [(Quit: Page closed)]
<Infinisil> I have the latest commit from master
<Infinisil> But yet, I can see e.g. racer = callPackage ../games/racer { } in my local checkout, but not on github
<Infinisil> In all-packages.nix
<LnL> it's in master
<Infinisil> Ohh
ryan_nix has quit [(Quit: Konversation terminated!)]
<Infinisil> Then my firefox search failed me
<Infinisil> Goddamnit
<Infinisil> Can't even trust firefox to search something correctly
jtojnar_ is now known as jtojnar
eacameron has joined #nixos
<Infinisil> LnL: Okay, but hold on, how many lines does pkgs/top-level/all-packages.nix have for you? My local one says it's 19252 lines, but there's only 16111 on github
zeus_ has quit [(Ping timeout: 240 seconds)]
<LnL> same, I wouldn't trust github for things like this with large files
<Profpatsch> How to self.doc in passthru?
<Infinisil> LnL: Okay I just used curl, it's indeed the same count
babic has quit [(Ping timeout: 240 seconds)]
<Profpatsch> I’d like to generate a value pointing to a subfolder of the doc output.
<Profpatsch> And put it in passthru
<Infinisil> LnL: And I also was able to find 'racer = ...' with curl
<jtojnar> What format does Nix print hashes in? Is it base 36 or something more complex?
babic has joined #nixos
<Infinisil> jtojnar: A custom base32 of the sha256 hash
<Infinisil> Wait
<Infinisil> No that's for /nix/store/.links
eacameron has quit [(Ping timeout: 240 seconds)]
<LnL> just base36, store paths is something custom
zarel has joined #nixos
<seequ> Ooi, in general, should I set a preferred stdenv in default.nix?
filterfish has joined #nixos
<seequ> A known-good
takle has joined #nixos
<Infinisil> Profpatsch: That's not possible
<Infinisil> I think
<LnL> pretty sure you can just do that with a let
<LnL> Profpatsch: let drv = stdenv.mkDerivation { passthru.foo = "${drv}/foo"; }; in drv
<Infinisil> LnL: Ohh, passthru is not included in the .drv then, right?
<LnL> yep, something like is is exactly what it's for :)
takle has quit [(Ping timeout: 240 seconds)]
<Infinisil> LnL: Ah nice, didn't know that
<Infinisil> Ah, that's why pkgs.foo.out and .dev and .doc works
dbe has quit [(Quit: Lost terminal)]
<LnL> outputs might work differently but the idea is the same
<Profpatsch> Yeah, passthru gets folded directly into the drv attrset
eacameron has joined #nixos
<Profpatsch> (derivation { …; passthru.foo = "hello" }).foo == "hello"
<Infinisil> Yeah
<Infinisil> but i didn't know it wouldn't be included in the derivation
<Profpatsch> What is not included in the derivation?
<Infinisil> Profpatsch: The passthru attributes
<Profpatsch> Yes, they are.
<LnL> yes and it's not used by the builder so it can depend on the drv
<Profpatsch> Ah, you mean they don’t change the hash.
<Profpatsch> Yes.
<Infinisil> Wait, are they included in the derivation or not now?
<LnL> drv is overloaded so it depends :p
<Profpatsch> They do not influence the .drv file
<seequ> If I depend on stdenv to provide the compiler, can I expect it to provide a working compiler on all setups?
<Profpatsch> But they can be accesed from within nix expressions.
<LnL> ^ a drv in nix is just an attrset with { type = "derivation"; ... }
<Infinisil> Profpatsch: Ohhkay, influence drv but no incluence hash, got it
Phillemann has joined #nixos
<Profpatsch> LnL: No, .drv file
<Phillemann> Does anyone by chance use spacemacs in nixos and has figured out how to un-shittyfy the modeline icons?
<Infinisil> Profpatsch: That's the instantiation of the derivation
<Profpatsch> A derivation in nixexprs is an attrset.
<sphalerite> avn: any particular reason for the use of the name "tank" for the zpool example you showed me?
<Profpatsch> I always make a point to call the lazy language nixexprs. d)
eacameron has quit [(Ping timeout: 255 seconds)]
<Infinisil> sphalerite: Nope, it's just a common thing to call it like this
<LnL> yeah, that makes it more clear
<avn> sphalerite: lol, just common zfs example name.
<sphalerite> ok
<Infinisil> I named mine 'main'
<avn> sphalerite: but some folks recommend include host name to pool name like myhost-tank
<Infinisil> And my big external disk is named 'betty'
babic has quit [(Remote host closed the connection)]
<Profpatsch> clever: Curious: Why did you make split doc/data outputs configurable?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/v7r5G
<NixOS_GitHub> nixpkgs/master 357b93e Gabriel Ebner: anki: 2.0.36 -> 2.0.46
NixOS_GitHub has left #nixos []
<Infinisil> seequ: I think so
<Profpatsch> It complicates the generic builder somewhat.
<Profpatsch> What happens with the documentation if I set the splitDocs to false?
<Profpatsch> I’d be in favour of completely disabling non-split outputs.
<Profpatsch> domenkozar: ^
<Profpatsch> peti: ^
<Infinisil> I agree, Profpatsch
<Profpatsch> That is removing the bool flags.
<Profpatsch> Should reduce the possible error points and edge cases.
dywedir has quit [(Remote host closed the connection)]
<sphalerite> Sometimes the docs/data will refer to the binaries' paths and vice versa, which will make a build fail completely
<sphalerite> clever had to do a great deal of fiddling about to fix those issues for his haskellPackages thing
<fpletz> roblabla: you can also always ask me here if you need help with packaging gitlab :)
<sphalerite> where was the blog post or whatever it was about zfs-for-/ again?
<Infinisil> sphalerite: The old wiki zfs article?
<sphalerite> Oh, was it on the old wiki?
<sphalerite> Are there any more up-to-date articles on it?
<sphalerite> Or should I use the archived copy
<sphalerite> oh btw clever this project seems to be similar to petitboot and you might be interested https://github.com/osresearch/heads
<Infinisil> sphalerite: I'm using something like this for zpool and dataset creation: https://gist.github.com/Infinisil/074b3725a26a03c2b6d1d440c6f4e769#file-default-nix-L54-L76
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #27980: Update some mate packages (master...upd.mate) https://git.io/v7r5Q
NixOS_GitHub has left #nixos []
LinArcX has joined #nixos
erictapen has joined #nixos
<Infinisil> sphalerite: The article does some extra things with pool/root/nixos for / instead of just using pool directly, no idea why, it's not needed
<Infinisil> And I've set compress=on and mountpoint=legacy on the root pool, so these properties get inherited by default, so I don't need to specify it for all other datasets I'm creating
gnuhurd has quit [(Ping timeout: 240 seconds)]
<LinArcX> Hi. Is there any mechanism to delta upgrade just like in fedora. I mean instead of downloading all source or binaries, only differences between two update download.
joepie91_to_go_ has joined #nixos
<joepie91_to_go_> having a really weird issue - any binaries I build with Rust on NixOS will *only* work on NixOS machines
<joepie91_to_go_> build with Cargo *
<Infinisil> LinArcX: Generally not, no
<joepie91_to_go_> despite not linking against system libs
<joepie91_to_go_> at least, not as far as I know
<sphalerite> joepie91_to_go_: strings binary | grep /nix/store ? :D
Phillemann has left #nixos ["WeeChat 1.9"]
<sphalerite> Maybe they're still referencing nixos's loader?
<LinArcX> Infinisil: why? I live in country that Internet speed is very slow(because my government don't allow people to get higher speed ) . Every time I upgrade the system, I must wait 2 or 3 hours to download all packages.
<joepie91_to_go_> sphalerite: it is :|
<sphalerite> :)
<Infinisil> LinArcX: The nixos cache server's don't provide delta's. And considering how many versions of packages nix provides, that's not even feasible
<joepie91_to_go_> sphalerite: hm, any ideas on how to fix that? there's a few nix store paths in there...
<sphalerite> joepie91_to_go_: I don't think it's possible to fix it in a way that makes it work on both nixos and non-nixos
<sphalerite> bar building it with nix and using one of the things that build an AppImage or whatever
<sphalerite> which I suspect isn't what you want :)
<joepie91_to_go_> sphalerite: I'm pretty okay with a build flag that builds a non-NixOS-compatible binary
<joepie91_to_go_> optionally
<joepie91_to_go_> the point here is mostly just to be able to run it on somebody elses remote server :P
<srhb> Install Nix on it! :-)
<joepie91_to_go_> srhb: won't necessarily fix it if the loader path isn't the same :P
<sphalerite> I don't really know enough about rust and cargo to say
<sphalerite> Install nix on it and build the software in question with nix!
<sphalerite> Then you can just copy it with its closure
<joepie91_to_go_> trying to figure out a way to build a static binary that can just be rsynced over without needing any kind of local build :P
<srhb> That's not trivial.
<joepie91_to_go_> it's an unusual usecase; a game at SHA2017 :)
<srhb> Maybe you can create a FHS environment and build it from there. Or more easily, just build it on non-nix.
<Infinisil> LinArcX: You may be the one to come up with a practical solution for delta upgrades on NixOS ;)
<sphalerite> umm... filesystem 'tank/root' cannot be mounted at '/mnt' due to canonicalization error 2.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #27961: grml-zsh-config: 0.12.4 -> 0.14.2 (master...update/grml-zsh-config) https://git.io/v7wND
NixOS_GitHub has left #nixos []
<sphalerite> LinArcX: IPFS support will probably help with your issue once it's done
<Infinisil> sphalerite: mkdir /mnt
<sphalerite> *facepalm* thanks Infinisil
<sphalerite> Weird error message though.
<Infinisil> it's such a weird error
<Profpatsch> Infinisil: sphalerite: I haven’t seen you two in this IRC channel before, did you join #nixos in the last one/two months?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #27954: Document timezone changes in release notes (master...timezone-release-notes) https://git.io/v7wQF
NixOS_GitHub has left #nixos []
<sphalerite> Profpatsch: I joined around October or November last year
<mguentner> joepie91_to_go_: https://github.com/matthewbauer/nix-bundle or just AppImage (haven't tried it yet)
<Profpatsch> Ah, nice.
erictapen has quit [(Ping timeout: 260 seconds)]
<LinArcX> sphalerite : IPFS? what is it? Can you explain more about it?
<thblt> I'm trying to install NixOS with zfs. From the installer iso, I ran nix-env -i zfs-kernel-0.6.5.10-4.9.40, then modprobe zfs, which fails with module not found. What am I missing?
<thblt> thanks :)
<sphalerite> LinArcX: I don't know that much about it myself. Check out https://ipfs.io/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #27969: atom: Add paxmark (master...atom_paxmark) https://git.io/v7rtL
NixOS_GitHub has left #nixos []
<LinArcX> Thanks dudes:)
<Infinisil> Profpatsch: Pretty much
* mguentner first needs a server to reevaluate nixipfs-scripts against w/ ipfs 0.4.10+
LinArcX2 has joined #nixos
http_GK1wmSU has joined #nixos
<sphalerite> Is there a way to "split" a zfs when the splitting has been poorly considered in the past?
<sphalerite> e.g. if /nix is on the same fs as / and I want to move it to its own
Infinisil has quit [(Ping timeout: 276 seconds)]
http_GK1wmSU has left #nixos []
Infinisil has joined #nixos
<Infinisil> Oh damnit, I talked into the void
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #27970: linux: Expand hardened config (master...expand_hardened_config) https://git.io/v7rYU
NixOS_GitHub has left #nixos []
takle has joined #nixos
zeus_ has joined #nixos
<Infinisil> What I said: Something like NixOS + IPFS + Nix build system would be my dream
<Infinisil> Relevant regarding nix build system: https://github.com/awakesecurity/ninja2nix
<Infinisil> thblt: You want to set boot.supportedFilesystems = [ "zfs" ] in configuration.nix and then rebuild
LinArcX has quit [(Remote host closed the connection)]
LinArcX2 has quit [(Remote host closed the connection)]
<thblt> Infinisil: I can rebuild the install ISO?
eacameron has joined #nixos
<Infinisil> thblt: Yes
<thblt> Ho cool. I didn't expect that
<thblt> Thank you!
lambdael has quit [(Quit: WeeChat 1.7.1)]
<Infinisil> thblt: Np :)
athan has quit [(Ping timeout: 258 seconds)]
athan has joined #nixos
takle has quit [(Ping timeout: 276 seconds)]
erictapen has joined #nixos
zeus_ has quit [(Ping timeout: 276 seconds)]
<Infinisil> Profpatsch: You've been here a bit longer I assume?
eacameron has quit [(Ping timeout: 240 seconds)]
<joepie91_to_go_> mguentner: hm, that might be an option, thanks
<Profpatsch> Infinisil: Yeah, something like 2 years now.
<Profpatsch> Or maybe longer.
takle has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
<Infinisil> Profpatsch: Nice :D
Supersonic112 has quit [(Ping timeout: 255 seconds)]
Supersonic112 has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #27973: urweb: 20170105 -> 20170720 (master...update-urweb) https://git.io/v7rzm
NixOS_GitHub has left #nixos []
erictapen has joined #nixos
_Vi has joined #nixos
<sphalerite> Anyone know how I could debug the boot on a Hetzner server? They offer a rescue system which contains qemu, and I'm trying to do `qemu-system-x86_64 -nographic -drive file=/dev/sda,media=disk -drive file=/dev/sdb,media=disk -drive file=/dev/sdc,media=disk`, but that seems to be too optimistic of me
<_Vi> How do I make "nix-env --upgrade" continue even if one of packages fails compilation? ("sorry, unimplemented: 64-bit mode not compiled in")
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v7rbD
<NixOS_GitHub> nixpkgs/master aec9f1b Symphorien Gibol: par2cmdline: 0.6.13 -> 0.7.3
<NixOS_GitHub> nixpkgs/master 6b9b08e Jörg Thalheim: Merge pull request #27977 from symphorien/update_par2...
NixOS_GitHub has left #nixos []
<srhb> _Vi: I don't think there's such an option.
<_Vi> Trying "--prebuilt-only"...
<srhb> Oh, yeah, that could circumvent it.
<sphalerite> _Vi: you can list the names of the ones that will upgrade successfully
<sphalerite> but yeah --prebuilt-only sounds nicer
<_Vi> Shall I report each uninstallable package to some bug tracker?
<Profpatsch> Suddenly: colored man!
<Profpatsch> #justNixosUpdateThings
<Infinisil> Profpatsch: I want that too, but I couldn't get it to work previously
<Profpatsch> Infinisil: It’s in the newest master.
<Profpatsch> No idea how long it’s been there.
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
ptotter[m] has joined #nixos
Ivanych has quit [(Ping timeout: 240 seconds)]
<_Vi> How defragment/balance/dedupe intaract with btrfs-send/btrfs-recv? Nicely or data getting needlessly retransferred?
<ptotter[m]> can anyone tell me if it's possible to install nixos so that /boot is encrypted?
<_Vi> (Sorry wrong channel)
<sphalerite> Paul: Yes, it is possible. I don't know how though.
<ptotter[m]> ok, next would've been question for link to tutorial =)
<sphalerite> I'm sure someone here has one :p
<Infinisil> ptotter[m]: I haven't done this, but it should be as simple as encrypting the disk you wanna use for /boot with luks, then mount it to /boot and run nixos-generate-config
Turion has quit [(Ping timeout: 276 seconds)]
<Infinisil> Or maybe not
<ptotter[m]> Infinisil: sounds suspiciously easy, it was a bit of a bother to get it working with debian
<seequ> The trend with nixos tends to be that it's super easy if someone has needed it before and an incredible pain otherwise. :P
<seequ> And encrypting /boot seems like fairly common
<Infinisil> ptotter[m]: What I don't really understand is how grub is supposed to decrypt the disk if it's on an encrypted partition to begin with
<fpletz> ptotter[m]: you can set boot.loader.grub.enableCryptodisk to true, then grub will ask you at boot to unlock the boot partition (or root if you don't have a boot :))
<sphalerite> re my previous question — managed to get it working by copying the kernel and initrd out of the boot partition and passing the kernel and initrd and kernel commandline to qemu
<thblt> What does /boot encryption protects from, exactly?
<fpletz> thblt: modifying initrds is trivial, manipulating the boot loader not so much :)
<ptotter[m]> thblt: generally, full disk encryption protects against there not being any places where you can accidentally place unencrypted files
<Infinisil> This has been autogenerated by nixos-infect
<Infinisil> for a server that had qemu running on the original OS
<sphalerite> Infinisil: not really, because I wasn't in a position to build the nixos config or anything
<Infinisil> Ahh right
erictapen has quit [(Ping timeout: 255 seconds)]
<Infinisil> ptotter[m]: But there will always have to be some unencrytped part of the disk to get it started, can't boot from only a 100% encrypted disk
<Infinisil> A solution would be to put unencrypted /boot on a memory stick. then you can have full disk encryption
<Infinisil> Or am I missing something
<Infinisil> I guess the firmware could in theory have a module for decrypting disks, but I haven't seen that
takle has quit [(Remote host closed the connection)]
<thblt> Yes, that was my question. I don't see how sensitive stuff could end up on /boot
moesasji has quit [(Ping timeout: 260 seconds)]
<thblt> But better safe than sorry, I guess.
eacameron has joined #nixos
<Infinisil> thblt: I guess it's also so that nobody can modify /boot and install a keylogger
<Infinisil> Okay but how does encrypted /boot even work. It needs to start somewhere unencrypted, you can't run encrypted code
<thblt> Infinisil: SecureBoot is better at that :)
<thblt> Infinisil: that's the issue, mostly. There's always going to be some cleartext part where you can put malware.
eacameron has quit [(Ping timeout: 260 seconds)]
Turion has joined #nixos
takle has joined #nixos
<sphalerite> but if that cleartext part is the ROM I think it's fair to say you're reasonably safe :D
<Infinisil> sphalerite: Hmm, but how does it get there? Do computers have some ROM code that does decryption?
<sphalerite> Infinisil: chromebooks for instance have coreboot on them, with the "depthcharge" payload, which doesn't do decryption but signature verification
<sphalerite> If you're alright with letting an attacker read your bootloader code that's sufficient, but otherwise you could put your own payload in to do decryption as well
<Infinisil> sphalerite: Right, that would work
zeus_ has joined #nixos
eacameron has joined #nixos
<Infinisil> Oh, so the ESP needs to be unencrypted
<Infinisil> Is what every encrypted /boot tutorial turns out to
* Infinisil is not convinced
<sphalerite> You can have encrypted /boot with BIOS boot though
<Infinisil> sphalerite: Ohh, so I can use a legacy system to boot which makes my system more secure lol
eacameron has quit [(Ping timeout: 240 seconds)]
<Infinisil> because BIOS can't do anything
<LnL> exactly :p
<sphalerite> well your MBR is still unencrypted so it's not even that useful
zeus_ has quit [(Ping timeout: 246 seconds)]
<Infinisil> That is so wrong
<Infinisil> sphalerite: What can an attacker do with an unencrypted MBR?
<sphalerite> Replace it :)
<sphalerite> it all depends on what your threat model is
<zarel> I had encrypted /boot and a separate bootloader in the BIOS (i.e. grub in libreboot), then I had encrypted /boot without libreboot but the problem is that it takes 15 seconds to present the list of the kernels :p
<zarel> so I thought that having an unencrypted boot was worth the risk :)
<simpson> Infinisil, sphalerite: There is a simple proof that you can get a machine to the point where the first thing that it does is ask you for an AES key which you must type from memory, and then after that the machine's security depends critically on the secrecy of that AES key.
<simpson> This is the sort of construction that Tahoe-LAFS uses to turn GiB of uploaded data into a single tweet.
gnuhurd has joined #nixos
<sphalerite> if you want to stop someone who steals your laptop from accessing your data, you don't even need to encrypt /boot
<Infinisil> simpson: Sure, I can remember 256 bits :D
<simpson> But, as we say in the capability-security world, you can only sharpen your secret knowledge to a fine point; you can't get rid of it entirely.
<Infinisil> 256 isnt' even that much
<sphalerite> if you want to stop someone who temporarily gets access to your hardware without your knowledge, then it's harder :)
<thblt> *This* threat model is very, very hard to deal with. Hardware can be replaced, too.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hhomar opened pull request #27981: linux-common-config: add CONFIG_HOTPLUG_PCI_ACPI (master...linux-common-config-hotplug-pci-acpi) https://git.io/v7rAM
NixOS_GitHub has left #nixos []
<simpson> Infinisil: I am sad to note that I cannot memorize Tahoe-LAFS caps without massive effort, and I have resorted to more traditional backups. After all, it's not easy to remember URI:CHK:h2bfkbufdlnuxxtf2b4qyyqt6y:jdrjht3qifq7hjv7l42woqtkxznapxn6xgtxd2v6xynslbsj3q4q:3:10:3221
<Infinisil> I'll just put /boot on an external stick I'll carry on myself the whole time, problem solved (also this sounds pretty cool. And you can even use multiple sticks if one of them breaks)
<Infinisil> simpson: Heh, My passwords are all random numbers,letters and symbols, I think I could manage such a key.. if you give me long enough time to memorize :P
leat has quit [(Ping timeout: 268 seconds)]
eacameron has joined #nixos
<simpson> Infinisil: There is one such key for *every* stored file and directory. Rather than memorizing, I have an encrypted backup.
<sphalerite> I can remember the 16-digit numeric wifi password at my grandma's house because I've had to type it way too many times. That's 53 bits IIUC
<Infinisil> simpson: Well you'd only need one to boostrap
<simpson> Infinisil: Exactly. The sharpest point.
<simpson> sphalerite: Human memory is amazing sometimes. I have dozens to hundreds of songs in my head that I know well enough to play. That's gotta be MiB and MiB of data.
<Infinisil> Probably such a password consisting of many words would be easier to memorize
<simpson> And yet I have trouble keeping down a single small train of digits.
<simpson> I *did
<sphalerite> simpson: true, me too
contrapumpkin has joined #nixos
<simpson> I *did* once encode bits as music, and it was far easier to remember. Our poor guitarist hated it though.
eacameron has quit [(Ping timeout: 240 seconds)]
<sphalerite> I'm pretty certain I know the lyrics to several hundred songs off by heart and can probably play somewhere between 60 and 100 on the piano
leat has joined #nixos
eacameron has joined #nixos
<simpson> sphalerite: https://github.com/MostAwesomeDude/jazz-charts/blob/master/download.ly#L110-L113 The intro and post-chorus melodies encode the 09F9 key.
<simpson> And that post-chorus tag has a G that is on the funniest beat.
<sphalerite> I can't read lilypond D:
contrapumpkin has quit [(Client Quit)]
<sphalerite> What does it sound like?
<Infinisil> Whoa, is that a music programming language?
<Infinisil> Ohh, it's probably latex isn't it
<Infinisil> for rendering
<simpson> Infinisil: It is Lilypond.
* Infinisil googles lilypond
robot has joined #nixos
eacameron has quit [(Ping timeout: 276 seconds)]
<Infinisil> simpson: Where is the default.nix file though, yo
iyzsong has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hhomar opened pull request #27983: openelec-dvb-firmware: init at 0.0.51 (master...openelec-dvb-firmware) https://git.io/v7rx3
NixOS_GitHub has left #nixos []
<simpson> Infinisil: This band broke up over half a decade ago. I was still using Gentoo, I think.
<Infinisil> simpson: Ah
<simpson> sphalerite: ONE-ee-and-uh TWO-ee-and-uh three-ee-and-uh four-EE-and-uh
<sphalerite> I see
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 4 new commits to master: https://git.io/v7rx4
<NixOS_GitHub> nixpkgs/master 15bf0f6 Michael Weiss: pythonPackages.aiohttp-cors: init at 0.5.1
<NixOS_GitHub> nixpkgs/master f17cada Michael Weiss: pythonPackages.zipstream: init at 1.1.4
<NixOS_GitHub> nixpkgs/master 2bc9269 Michael Weiss: pythonPackages.aiohttp: 1.1.6 -> 1.3.5
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #27984: pluma: init at 1.18.2 (master...new.pluma) https://git.io/v7rx2
NixOS_GitHub has left #nixos []
<Infinisil> `man ghc`
<Infinisil> No manual entry for ghc
eacameron has joined #nixos
<Infinisil> No man pages..
<sphalerite> Infinisil: ghc doesn't come with a manpage from upstream.
<sphalerite> See the note at the bottom of the one generated by debian http://manpages.ubuntu.com/manpages/trusty/man1/ghci.1.html#contenttoc34
<Infinisil> Damn
<Infinisil> Not having a manpage always makes me sad
takle has quit [(Remote host closed the connection)]
<LnL> it's not in the doc output?
<sphalerite> gchristensen: I like how grahamc.com just redirects to your article on putting nixos on the xps 15 :p
<grahamc> Haha it is because it is my most recent post :)
pie_ has quit [(Ping timeout: 240 seconds)]
<Infinisil> grahamc: I'd expect some kind of index to be at the main site
<Infinisil> :P
eacameron has quit [(Ping timeout: 268 seconds)]
<grahamc> I guess you'll have to make your own blog
<grahamc> :p
<sphalerite> I really need to make a blog at some point
<sphalerite> but... effort...
<grahamc> No kidding. I think i have 8 posts over 8 years.
<Infinisil> Same, I really wanna get into Hakyll eventually
<sphalerite> Infinisil: but https://github.com/styx-static/styx/
<Infinisil> sphalerite: Ohh, didn't know about this
<grahamc> Static site generation is the easy part. A cool generator won't make it easier to write posts and I find the cool new tech motivates me to write exactly 1 post.
takle has joined #nixos
<thblt> Infinisil: I've started converting my Hakyll site/blog to "just Haskell" because of Hakyll limitations, and it's really, really easy.
<thblt> Mostly because pandoc is amazing.
<Infinisil> sphalerite: Not sure about it though, Haskell has much more powerful abstraction and an actual type system
<sphalerite> but nix :p
<sphalerite> grahamc: it's just like with real docs
<Infinisil> A static-site generator might be in the domain of nix though
<grahamc> Exactly
<Infinisil> thblt: Hakyll limitations? I don't know much about Hakyll, but I often hear it being the most flexible of all
eacameron has joined #nixos
<thblt> Infinisil: It has a very, very smart dependency management system. But this means that a page cannot be built using the metadata of *all* documents (eg to make a menu) because it would mean a circular dependency.
deltasquared has joined #nixos
thetaepsilon has joined #nixos
<thblt> You'll almost never see an Hakyll blog with a navigation menu with position indicators, and if you find one, the menu is somehow hardcoded.
<Infinisil> thblt: I can't really believe this
calvinx has quit [(Quit: calvinx)]
deltasquared has quit [(Remote host closed the connection)]
<Infinisil> thblt: I'll have to check out how Hakyll does its stuff
takle has quit [(Ping timeout: 246 seconds)]
<thblt> Infinisil: I may be wrong! But I've looked, and haven't found a way.
<thetaepsilon> blog software? oh fun
<thetaepsilon> waaaait hold on a minute
<sphalerite> grahamc: although actually I wrote most of a blog post on my attempts to cross-compile software for windows using nixpkgs, and still haven't published it because I couldn't be bothered to work my way through setting up a static site generator…
gnuhurd has quit [(Remote host closed the connection)]
thetaepsilon is now known as deltasquared
gnuhurd has joined #nixos
<Infinisil> This seems to suggest it works
eacameron has quit [(Ping timeout: 240 seconds)]
<thblt> Infinisil: That's not what I mean. This makes a list of posts.
<thblt> But you cannot show, eg, a list of posts in every single post.
<Infinisil> Ohh, so e.g. a list of posts with the same tags or so
drakonis has joined #nixos
takle has joined #nixos
<thblt> I think there's builtin support for tags.
<Infinisil> I still think that's possible
<Infinisil> Maybe it would require a bit more than just sticking together Hakyll's building blocks though
Neo-- has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
erictapen has joined #nixos
<Infinisil> On second thought, a blog really doesn't need Haskell and I'm probably off better by using styx
robot has quit [(Quit: Changing server)]
eacameron has quit [(Ping timeout: 240 seconds)]
<Infinisil> But then again, I'd love to get more accustomed to Haskell..
Neo-- has quit [(Ping timeout: 240 seconds)]
et4te has quit [(Read error: Connection reset by peer)]
drakonis has quit [(Remote host closed the connection)]
gnuhurd has quit [(Remote host closed the connection)]
et4te has joined #nixos
drakonis has joined #nixos
takle has joined #nixos
gnuhurd has joined #nixos
eacameron has joined #nixos
zeus_ has joined #nixos
pie_ has joined #nixos
gnuhurd has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
zeus_ has quit [(Ping timeout: 246 seconds)]
<seequ> Has anyone used D with Vim?
<seequ> I'm kind of curious as to how I should set up dutyl
joepie91_to_go_ has quit [(Remote host closed the connection)]
eacameron has joined #nixos
ison111 has joined #nixos
<seequ> (or any arbitrary vim module for that matter)
Jackneill has quit [(Ping timeout: 276 seconds)]
hellrazor has quit [(Ping timeout: 255 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
hellrazor has joined #nixos
Neo-- has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<Infinisil> seequ: There is vim_configurable in nixpkgs
<thblt> Infinisil: I'm really not sure you can, but as I said, maybe I'm wrong. But I've *really* looked :)
<Infinisil> seequ: But a normal .vimrc should work on NixOS no problem
Jackneill has joined #nixos
<Infinisil> thblt: I'll think of it when trying it out, maybe you're right, but I can't believe it ;)
<seequ> Infinisil: I'm using vim_configurable and have no idea how to actually use it :p
<Infinisil> Tries to find LnL's vim config
<seequ> And, uh, I didn't think it mixed well with .vimrc
<Infinisil> seequ: Well I've been using a normal .vimrc for a while now
<Infinisil> Okay I'm using neovim which uses .config/nvim/init.vim, but still
<Infinisil> Why wouldn't this work?
<seequ> Does it append to or replace the one in vim_configurable?
takle has joined #nixos
<Infinisil> seequ: Depends on how vim handles both system config and user config, probably append
<Infinisil> As in just load both
takle_ has joined #nixos
<sphalerite> How do I add a file to my initrd again?
takle has quit [(Ping timeout: 248 seconds)]
<simpson> sphalerite: boot.initrd.prepend maybe?
takle_ has quit [(Ping timeout: 260 seconds)]
<sphalerite> simpson: that's apparently a list of strings, I don't know how to represent my file and the path it's meant to go to as that
<simpson> sphalerite: No idea either, sorry; I just searched through $(man configuration.nix).
[0x4A6F] has joined #nixos
<sphalerite> well I managed to fix my issue by putting "${/path/to/file}" rather than /path/to/file in my expression, then nix did the necessary magic :)
darlan has joined #nixos
<Infinisil> Weird.. /path/to/file without quotes should work already
takle has joined #nixos
<sphalerite> no, because that won't import the file into the store
<Infinisil> Ahh
<Infinisil> Then I'm confused, what forces a path to be put into the store?
slyfox has quit [(Quit: no need to cry)]
<Infinisil> Normally foo and is the same foo as in "${foo}"..
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #27985: elementary-icon-theme: 4.1.0 -> 4.2.0 (master...upd.elementary-icon-theme) https://git.io/v7rjy
NixOS_GitHub has left #nixos []
takle has quit [(Ping timeout: 240 seconds)]
<Infinisil> bbl
deltasquared has quit [(Remote host closed the connection)]
<LnL> vim_configurable won't look at ~/.vimrc by default anymore but you can do this
<seequ> Hmm, is dfmt not packaged?
<LnL> seequ: vim_configurable.customize { vimrcConfig.customRC = ''source $HOME/.vimrc''; }
zovt_ has joined #nixos
slyfox has joined #nixos
matt___ has joined #nixos
<sphalerite> Infinisil: "${/tmp/asdf}" -> /nix/store...-asdf ; toString /tmp/asdf -> "/tmp/asdf"
<sphalerite> seequ: looks like it isn't
takle has joined #nixos
<zarel> is this the right place to ask about nixops or there is another channel?
<simpson> zarel: This is the channel.
<zarel> simpson: thank you :) I have no questions, yet
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v7oey
<NixOS_GitHub> nixpkgs/master 147cd29 Daiderd Jordan: rustc: remove gdb dependency for darwin
NixOS_GitHub has left #nixos []
<roblabla> I am super confused about the gitlab situation
takle has quit [(Ping timeout: 260 seconds)]
<roblabla> `gitlab-bundle gem list` returns all the installed gems including `mysql2`
<LnL> yes? you can run gitlab against a mysql database if you want
<roblabla> but `gitlab-bundle exec rake` returns `Could not find mysql2-0.3.20 in any of the sources
<roblabla> `
<roblabla> Gitlab doesn't work on unstable
<LnL> oh :/
<roblabla> It seems like something changed in the way `bundleEnv` works between something like 6 month ago and now, that broke the gitlab package
<roblabla> I'm hunting the bug down, but given my knowledge of ruby and bundler is close to 0... I'm mostly grasping at straws
longrin has joined #nixos
longrin has left #nixos []
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
rpifan has joined #nixos
zovt_ has quit [(Quit: WeeChat 1.7.1)]
zeus_ has joined #nixos
sibi_ has quit [(Quit: Connection closed for inactivity)]
endformationage has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ciil opened pull request #27987: seafile-client: 5.0,7 -> 6.1.0 (master...fix-seafile-ccnet) https://git.io/v7ov2
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #27988: oil: init at 0.0.0 (master...oil) https://git.io/v7ova
NixOS_GitHub has left #nixos []
zeus_ has quit [(Ping timeout: 276 seconds)]
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
ambro718 has quit [(Ping timeout: 268 seconds)]
gnuhurd has joined #nixos
<sphalerite> Is anyone else encountering the font issue that I am on github?
<sphalerite> Where almost all the text is invisible?
gnuhurd has quit [(Remote host closed the connection)]
_rvl has joined #nixos
takle has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/145be4e340 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
gnuhurd has joined #nixos
Capprentice has joined #nixos
matt___ has quit [(Quit: Page closed)]
<zarel> in nixops, when the deplyment is towards a machine that already runs on NixOS, what happens to the existing configuration on the machine? will it be overwritten? must I copy the hardware-configuration on the machine running nixops?
rpifan has quit [(Ping timeout: 260 seconds)]
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
<zarel> okay I answered myself: the whole configuration must be handled by nixops, including the filesystems specification. the tool was kind enough to tell me :)
pie_ has quit [(Ping timeout: 276 seconds)]
faffolter has quit [(Ping timeout: 255 seconds)]
zeus__ has joined #nixos
zeus__ has quit [(Ping timeout: 246 seconds)]
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
jonte_ has joined #nixos
pie_ has joined #nixos
wigust has joined #nixos
http_GK1wmSU has joined #nixos
http_GK1wmSU has quit [(K-Lined)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 2 new commits to master: https://git.io/v7oUe
<NixOS_GitHub> nixpkgs/master 1ff2c65 Robin Gloster: phantomjs2: don't use bundled qt
<NixOS_GitHub> nixpkgs/master f14c27d Robin Gloster: cmus: fix build...
NixOS_GitHub has left #nixos []
Ivanych has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] benley opened pull request #27989: jsonnet: 0.8.9 -> 0.9.4 (master...jsonnet-0.9.4) https://git.io/v7oUq
NixOS_GitHub has left #nixos []
GK1wmSU-deepbook has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7oUO
<NixOS_GitHub> nixpkgs/master e85a855 georgewhewell: openssl 1_1_0: fix build on aarch64
NixOS_GitHub has left #nixos []
tmaekawa has joined #nixos
GK1wmSU-deepbook has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7oUc
<NixOS_GitHub> nixpkgs/master 5ac0026 Heitham Omar: linux-common-config: add CONFIG_HOTPLUG_PCI_ACPI
NixOS_GitHub has left #nixos []
ambro718 has joined #nixos
watersoul has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v7oU2
<NixOS_GitHub> nixpkgs/master 434d370 Linus Heckemann: oil: init at 0.0.0
<NixOS_GitHub> nixpkgs/master 46e691e Jörg Thalheim: Merge pull request #27988 from lheckemann/oil...
NixOS_GitHub has left #nixos []
watersoul has joined #nixos
alx741 has joined #nixos
<seequ> Can I make fetchFromGitHub not delete .git?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/3049ac21ef (from 26 hours ago, history: https://channels.nix.gsc.io/nixos-17.03)
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/8f17e414be (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
<ben> doesn't it fetch an archive of the tree without .git to begin with?
nix-gsc-io`bot has quit [(Client Quit)]
<simpson> seequ: What do you want it for?
<seequ> simpson: DCD uses `git log` as a part of its build
<simpson> seequ: Unfortunate. Can it be patched out? Does it just want to know which commit it's being built from?
<seequ> It generates a hashfile from it.
covux has joined #nixos
<covux> hi, i have several ld-linux-x86-64.so.2 in my nix-store. how do i know, which is the right one for my current environment?
ikwildrp1pper has joined #nixos
sary has quit [(Remote host closed the connection)]
ndash_ has joined #nixos
ajp_ has joined #nixos
colabeer has joined #nixos
puffnfresh_ has joined #nixos
<LnL> cat $(nix-build '<nixpkgs>' -A stdenv.cc)/nix-support/dynamic-linker
abcrawf_ has joined #nixos
Khetzal_ has joined #nixos
rjsalts` has joined #nixos
<seequ> simpson: Apparently the hash is the current revision, yes
<covux> @LnL thanks
sary has joined #nixos
ncode_ has joined #nixos
ncode_ has quit [(Changing host)]
ncode_ has joined #nixos
<simpson> seequ: Then yeah, since you already have that information from your fetchToGitHub call, I'd just reuse that information in a substitution and patch out the call to git.
rsa has joined #nixos
pierron_ has joined #nixos
Foul has joined #nixos
<sphalerite> Why does networking.firewall.rejectPackets default to false :(
Bane^^ has joined #nixos
slabity_alt has joined #nixos
<seequ> simpson: It happens to do it separately for each submodule, outputting to the same file. :/
srhb- has joined #nixos
Neo-- has quit [(Ping timeout: 255 seconds)]
ncode_ is now known as ncode
<simpson> seequ: Adorable! Well, it's your call for how to fix it. Checking all of .git into the Nix store isn't the end of the world, but it does suck a little since git object equivalency isn't the same as Nix derivation equivalency.
puffnfresh_ is now known as puffnfresh
Bane^^ is now known as Bane^
<seequ> I _could_ get the hashes by hand for each submodule and patch all uses..
oahong has joined #nixos
mpcsh has quit [(Ping timeout: 240 seconds)]
goodwill has quit [(Ping timeout: 240 seconds)]
srhb- is now known as srhb
goodwill has joined #nixos
mpcsh has joined #nixos
manveru has joined #nixos
codedmart has joined #nixos
bhipple[m] has quit [(Ping timeout: 240 seconds)]
sargon[m] has quit [(Ping timeout: 246 seconds)]
corngood has quit [(Ping timeout: 240 seconds)]
Elephant454[m] has quit [(Ping timeout: 240 seconds)]
Wysteriary[m] has quit [(Ping timeout: 240 seconds)]
dtz has quit [(Ping timeout: 240 seconds)]
Dezgeg[m] has quit [(Ping timeout: 240 seconds)]
wmertens[m] has quit [(Ping timeout: 240 seconds)]
abbafei[m] has quit [(Ping timeout: 240 seconds)]
adisbladis[m] has quit [(Ping timeout: 240 seconds)]
a123123123[m] has quit [(Ping timeout: 240 seconds)]
StuK[m] has quit [(Ping timeout: 240 seconds)]
herzmeister[m] has quit [(Ping timeout: 240 seconds)]
kainospur[m] has quit [(Ping timeout: 240 seconds)]
lecorpsnoir[m] has quit [(Ping timeout: 258 seconds)]
matrixkrav has quit [(Ping timeout: 258 seconds)]
JameySharp[m] has quit [(Ping timeout: 255 seconds)]
yochai[m] has quit [(Ping timeout: 255 seconds)]
tommyangelo[m] has quit [(Ping timeout: 255 seconds)]
seif[m] has quit [(Ping timeout: 255 seconds)]
zimbatm has quit [(Ping timeout: 255 seconds)]
jlle[m] has quit [(Ping timeout: 240 seconds)]
mhsjlw[m] has quit [(Ping timeout: 240 seconds)]
sziszi[m] has quit [(Ping timeout: 240 seconds)]
DIzFer[m] has quit [(Ping timeout: 240 seconds)]
WinterFox[m] has quit [(Ping timeout: 240 seconds)]
sudoreboot[m] has quit [(Ping timeout: 240 seconds)]
jack[m]2 has quit [(Ping timeout: 240 seconds)]
berot3[m] has quit [(Ping timeout: 240 seconds)]
musicmatze[m] has quit [(Ping timeout: 240 seconds)]
benkolera has quit [(Ping timeout: 240 seconds)]
aspiwack[m] has quit [(Ping timeout: 240 seconds)]
Kirill[m] has quit [(Ping timeout: 240 seconds)]
alain[m] has quit [(Ping timeout: 240 seconds)]
admin[m] has quit [(Ping timeout: 240 seconds)]
mith[m] has quit [(Ping timeout: 240 seconds)]
mtncoder[m] has quit [(Ping timeout: 240 seconds)]
ptotter[m] has quit [(Ping timeout: 240 seconds)]
wak-work[m] has quit [(Ping timeout: 240 seconds)]
spacekitteh[m] has quit [(Ping timeout: 240 seconds)]
hl has quit [(Ping timeout: 240 seconds)]
fpletz[m] has quit [(Ping timeout: 246 seconds)]
Drakonis[m] has quit [(Ping timeout: 246 seconds)]
xj9[m] has quit [(Ping timeout: 246 seconds)]
dash has quit [(Ping timeout: 258 seconds)]
retrry[m] has quit [(Ping timeout: 258 seconds)]
hedning[m] has quit [(Ping timeout: 258 seconds)]
timclassic has quit [(Ping timeout: 258 seconds)]
Khorne[m] has quit [(Ping timeout: 264 seconds)]
Barnabas[m] has quit [(Ping timeout: 264 seconds)]
TimePath has quit [(Ping timeout: 264 seconds)]
icetan has quit [(Ping timeout: 255 seconds)]
Oo[m] has quit [(Ping timeout: 255 seconds)]
dalaing has quit [(Ping timeout: 255 seconds)]
unlmtd has quit [(Ping timeout: 255 seconds)]
danielrf has quit [(Ping timeout: 255 seconds)]
ycy[m] has quit [(Ping timeout: 255 seconds)]
thematter[m] has quit [(Ping timeout: 255 seconds)]
pstn has quit [(Ping timeout: 255 seconds)]
BurNiinTRee[m] has quit [(Ping timeout: 240 seconds)]
revoltmedia[m] has quit [(Ping timeout: 240 seconds)]
Magnap[m] has quit [(Ping timeout: 240 seconds)]
bennofs[m] has quit [(Ping timeout: 240 seconds)]
primeos[m] has quit [(Ping timeout: 240 seconds)]
florianjacob has quit [(Ping timeout: 240 seconds)]
jyp[m] has quit [(Ping timeout: 240 seconds)]
peterhoeg has quit [(Ping timeout: 240 seconds)]
Exee7uvo[m] has quit [(Ping timeout: 240 seconds)]
baconicsynergy[m has quit [(Ping timeout: 240 seconds)]
M-liberdiko has quit [(Ping timeout: 240 seconds)]
chominist[m] has quit [(Ping timeout: 240 seconds)]
myklam[m] has quit [(Ping timeout: 246 seconds)]
AlanPearce[m] has quit [(Ping timeout: 246 seconds)]
Kallegro[m] has quit [(Ping timeout: 246 seconds)]
necronian has quit [(Ping timeout: 246 seconds)]
sphalerite has quit [(Ping timeout: 258 seconds)]
rycee[m] has quit [(Ping timeout: 258 seconds)]
Yaniel has quit [(Ping timeout: 258 seconds)]
pie_ has quit [(Remote host closed the connection)]
jsv[m] has quit [(Ping timeout: 276 seconds)]
qrilka[m] has quit [(Ping timeout: 276 seconds)]
zeus__ has joined #nixos
NickHu has quit [(Ping timeout: 255 seconds)]
indefini has quit [(Ping timeout: 255 seconds)]
grahamc has quit [(Ping timeout: 255 seconds)]
scott2 has quit [(Ping timeout: 255 seconds)]
cwopel has quit [(Ping timeout: 255 seconds)]
sirius[m] has quit [(Ping timeout: 255 seconds)]
copumpkin has quit [(Ping timeout: 255 seconds)]
dibblego[m] has quit [(Ping timeout: 255 seconds)]
octalsrc[m] has quit [(Ping timeout: 264 seconds)]
trikl[m] has quit [(Ping timeout: 264 seconds)]
reactormonk[m] has quit [(Ping timeout: 264 seconds)]
bendlas has quit [(Ping timeout: 264 seconds)]
davidar has quit [(Ping timeout: 264 seconds)]
ninegua[m] has quit [(Ping timeout: 255 seconds)]
sk23[m] has quit [(Ping timeout: 255 seconds)]
hendrik[m]1 has quit [(Ping timeout: 255 seconds)]
ArdaXi[m] has quit [(Ping timeout: 255 seconds)]
edef[m] has quit [(Ping timeout: 255 seconds)]
cornu[m] has quit [(Ping timeout: 255 seconds)]
pie_ has joined #nixos
etcinit[m] has quit [(Ping timeout: 276 seconds)]
offlinehacker[m] has quit [(Ping timeout: 276 seconds)]
zeus__ has quit [(Ping timeout: 255 seconds)]
Ivanych has quit [(Ping timeout: 255 seconds)]
inflames has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7oIK
<NixOS_GitHub> nixpkgs/master 41492ab Robin Gloster: qt56.qtbase: fix build
NixOS_GitHub has left #nixos []
<Infinisil> seequ: Set fetchSubmodules = true; and deepClone = true;
<simpson> Infinisil: Nice.
<Infinisil> Then fetchFromGitHub fetches all of it
zarel has quit [(Quit: Leaving)]
_rvl has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/v7oLv
<NixOS_GitHub> nixpkgs/master 19c64b5 zimbatm: minikube: 0.20.0 -> 0.21.0
NixOS_GitHub has left #nixos []
goibhniu has joined #nixos
<seequ> Infinisil: If only I knew of this before wrting a patch
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to staging: https://git.io/v7oLI
<NixOS_GitHub> nixpkgs/staging b679e14 Vladimír Čunát: release.nix: resurrect stdenvBootstrapTools...
NixOS_GitHub has left #nixos []
<Infinisil> seequ: This feature is admittedly very hidden
<clever> it was also only added recently
<clever> simpson: ive also heard that the .git folder isnt very deterministic, so the hash will just randomly break
<Infinisil> Ouch
<LnL> yes, but that's only for keepDotGit I think
<clever> yep
<clever> git will keep track of branches you didnt ask for, so the latest rev of those can change
<Infinisil> LnL: { ..., keepDotGit ? deepClone, ... }
colabeer has quit [(Ping timeout: 240 seconds)]
<clever> the git server will also refuse to let you fetch a given revision directly
<clever> so you have to fetch a branch that contains that rev
<LnL> well that has the same problems then
<clever> leading to .git containing more history
Gravious has joined #nixos
<simpson> clever: Exactly. The equivalence classes that git and Nix see are different.
<Gravious> I'm sorry but I really need to rant about what a piece of crap google groups is.
<Infinisil> Gravious: ++
<LnL> :p
<Infinisil> I try to stay away from everything google does
<Gravious> it just published an old name of mine because it somehow associates my *current* email address with an ancient google account i had from a decade ago
<Gravious> As a result of this Google groups openly published my old legal name to a public list without asking me.
<Gravious> Why on earth they would associate the subscription from one email address (not even a Gmail address) with another Google account is completely fucking beyond me.
<Infinisil> Gravious: I really don't like that they somehow let you automatically switch between all your logins.. kinda makes separate logins pointless when google exactly knows it's all you
jgertm has joined #nixos
<Gravious> anyway I seem to have eventually managed to get it to work by unsubscribing, resubcribing, deleting the ancient google account, (which then unsubscribed my current email address), so I needed to resubscribe *again*
<Infinisil> Hey LnL, have you used vim-racer by any chance? I just can't seem to get how completion is supposed to work
<Gravious> I was then luckily allowed to go and delete the post that had my old legal name in, but it has surely been delivered via mail to all on that list.
<Gravious> So yeah, thanks google... you piece of fucking shit.
<Gravious> </rant>
<Infinisil> Google--
<LnL> was just going to say let's end the rand here
<LnL> Infinisil: no I use youcompleteme, that has support for racerd
<clever> LnL: ive noticed a weird problem with ycmd in vim, if i quit vim too quickly, while ycmd is starting, vim segfaults
<LnL> now that you mention that, I also might have seen that
<Infinisil> Sadly I haven't ever used completion in vim, because I have no idea how it's supposed to work
<Infinisil> And I have 0 vim debugging skills
<clever> it happens the most when i "git commit --amend" and dont want to change the commit msg
<clever> and because it segfaults, git just aborts the ammend
Ivanych has joined #nixos
<LnL> I usually commit with fugutive
<grantwu> clever: git commit --amend --no-edit
<grantwu> I know someone who aliases git gud to git commit --amend -a --no-edit
<Infinisil> Or with oh-my-zsh shortcuts: `gcn!`
<clever> grantwu: heh
<clever> temp1: +74.2°C (high = +70.0°C)
<clever> that might explain the high cpu fan speeds
jgertm has quit [(Ping timeout: 246 seconds)]
<Infinisil> Lol, I wondered why stdio:: didn't complete in rust..
<Infinisil> (it's std::, and racer works)
<clever> Infinisil: i never got around to properly configuring ycm, ive found it can only complete words already present in the open files
<Infinisil> clever: I think vim without plugins already does that..
<clever> it never did that until i turned on ycm
<clever> but the ycm may have enabled the built-in autocomplete that had previously been disabled
<LnL> it's like C-x C-n but automatically
<LnL> the main feature of ycm is language completion like c/rust/go/python
* Infinisil looks for LnL's vim config to see how ycm needs to be configured
<clever> i also need to get around to doing that
<LnL> nothing special, it should just work for those langauges
<clever> every now and then it tells me i need to make a config file somewhere in my home dir
<clever> g:ycm_seed_identifiers_with_syntax looks handy
<LnL> yeah maybe that does something useful
<LnL> I think it adds the filetype syntax keywords to the completion list
<Infinisil> Wait, where is this vim module that lets you set plugins
<Infinisil> nixos/modules/programs/vim.nix isn't it
dhess` has joined #nixos
<LnL> that's only in nix-darwin
<Infinisil> Ohh
<DavidEGrayson> I'd appreciate having a feature in nix-collect-garbage where it would treat an entire set of derivations as roots, even if some have not been built yet. Basically, I want nix-collect-garbage to not delete anything that running "nix-build" in my current directory would have built.
sary has quit [(Ping timeout: 268 seconds)]
<LnL> you can create a root for a local drv with nix-instantiate --indirect --add-root $PWD/result.drv
<Infinisil> LnL: I don't think that's what he needs
<clever> LnL: but will that root the build-time deps of everything in the build-time closure?
<clever> ive only found that hydra can root things to that level
<DavidEGrayson> I guess somehow it would call "nix-instantiate" to get the list of derivations, and read each derivation to find out what output paths it produces.
<DavidEGrayson> Because I'm working on a set of derivations that involves some packages that take 40+ minutes to build.
dhess has quit [(Ping timeout: 240 seconds)]
<LnL> that should keep everything in the build time closure alive
<clever> DavidEGrayson: the only other trick, nix-store -r --add-root foo.root --indirect /nix/store/foobar
<clever> DavidEGrayson: manualy run this on things you know take 40 minutes, to create a root on them
<LnL> a derivation has pointers all the way back to the stdenv
<DavidEGrayson> LnL, clever, thanksI'll have to look into that, but I don't like manual stuff to remember.
sary has joined #nixos
<DavidEGrayson> As far as I can tell, you're both talking about adding roots to the global state of Nix, and I'll have to remember to remove those roots in the future to save disk space, so I'll essentially have to garbage collect my set of roots myself.
<clever> hmmmm, and nixops did nothing to root its own builds, so i have another 400mb to dl
<DavidEGrayson> Oh, the --indirect thing could be useful I guess, since I cna store roots outside of the GC roots directory.
<clever> yep
<clever> thats what nix-build uses behind the scenes
<Infinisil> DavidEGrayson: Yeah, you can have it in the directory you're developing, then the root will disappear when you delete the directory
jsv[m] has joined #nixos
<DavidEGrayson> So are you thinking that I run "nix-instantiate" to make a bunch of derivations, make a directory full of symlinks to those derivations, and then add each symlink as an indirect root? I suppose I could make a script that does that.
<Infinisil> I should probably use VAM for vim..
<clever> DavidEGrayson: i think just one link to the derivation at the root is enough
zeus__ has joined #nixos
etcinit[m] has joined #nixos
<DavidEGrayson> clever: OK, thanks. Well, I'm interested in a whole set of derivations and I don't have a single derivation that refers to all of them. My set contains things "GCC for Windows", "GCC for Linux", "Qt for Windows", etc. The whole set is interesting to me.
Ivanych has quit [(Ping timeout: 246 seconds)]
<DavidEGrayson> I often use the trick of running nix-collect-garbage while I'm doing a long build, but that only protects part of my set.
<clever> DavidEGrayson: ah, one option is to create a new derivation, that just passes all 3 gcc's to buildEnv
<clever> DavidEGrayson: then make a root for that buildEnv derivation
<DavidEGrayson> indeed
<Infinisil> clever: Are you sure that nix-store -r --add-root --indirect (which results in a .drv) prevents GCing of build products? Becaus I don't think it does
zeus__ has quit [(Ping timeout: 246 seconds)]
<DavidEGrayson> thanks
<clever> Infinisil: nix-store -r will try to build whatever you point it to
<clever> Infinisil: if you point it to a .drv, it will build it, and protect the default output only
<clever> Infinisil: and if pointed to an already built storepath, it only protects that and its runtime closure
<Infinisil> clever: Ahh
<clever> i think nix-instantiate has its own flag to make roots
<clever> i'm cheating a bit by using nix-store -r to create roots
drakonis has quit [(Read error: Connection reset by peer)]
<clever> ive also got another datapoint on things (git and make) randomly deadlocking on nixos: https://gist.github.com/cleverca22/b8c04ac38a05660539a9b2157a9fa0d7#file-make-txt
phinxy has joined #nixos
<clever> i discovered it, because hydra says i have been building linux for 2 days 12 hours
<Infinisil> That's.. too long
<DavidEGrayson> yikes
<clever> the make process locked up, and hasnt been doing anything for days
<clever> process tree and backtraces in the gist
tmaekawa has quit [(Quit: tmaekawa)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch opened pull request #27991: fix `hoogleLocal` and `hoogle.nix` WIP (master...hoogleLocal-fix) https://git.io/v7omc
NixOS_GitHub has left #nixos []
<Profpatsch> clever: ^
<Profpatsch> clever: See also backlock
<Profpatsch> *log
<clever> Profpatsch: how far back?
<clever> ah, i wasnt 100% sure on where the docs had to be within $doc
goibhniu has quit [(Ping timeout: 255 seconds)]
<Profpatsch> Profpatsch | clever: Curious: Why did you make split doc/data outputs configurable?
<clever> Profpatsch: i believe if you turn off split docs, they just land in $out or $data
<Profpatsch> Profpatsch | clever: Curious: Why did you make split doc/data outputs configurable?
<Profpatsch> Ah, fail.
<Profpatsch> clever: Yeah, but why would there be a boolean flag in any case
Exee7uvo[m] has joined #nixos
necronian has joined #nixos
<clever> if the package doesnt have any docs, it will result in an empty $doc output
<Profpatsch> It complicates the file a lot and turning it off is not supported and means everything falls back to implicit output.
ptotter[m] has joined #nixos
ninegua[m] has joined #nixos
sziszi[m] has joined #nixos
<Profpatsch> What’s empty mean? Just a dir or just some base files or some empty haddock html file??
berot3[m] has joined #nixos
<Profpatsch> s/??/s?/
<clever> just an empty directory
Guest98651 has joined #nixos
edef[m] has joined #nixos
Wysteriary[m] has joined #nixos
<Profpatsch> Well, that should be solvable. Is it created by the build process?
<Profpatsch> We can just add a rmdir to the fixup or postInstall
<Profpatsch> And could remove the two flags completely.
<clever> the problem is that nix will fail the entire build if you dont create $doc
<clever> so if you say you have a doc output, you must make $doc
<Profpatsch> Ah, I see.
<Profpatsch> Is an empty doc folder so bad though?
<clever> was thinking it might lead to confusion, like you grabbed foo.doc, and then you dont have any docs???
<Profpatsch> Also it will be created anyway right now for the vast majority that have no docs, right?
<clever> nix staying that foo.doc doesnt exist will at least tell you, it probably doesnt have docs
<Profpatsch> Because it’d have to be overwritten manually for each package (except maybe for the ones with dontHaddock)
<clever> peti had made changes to cabal2nix, that scan the cabal file, and figure out if it has docs or not
<clever> to set it correctly for all of haskellPackages
<Profpatsch> clever: Those change doHaddock, correct?
<clever> dont remember right now
<Profpatsch> There’s no use of enableSeparateDocOutput anywhere, but hundreds of dontHaddock.
<clever> ah, i see now, enableSeparateDocOutput isnt used currently and defaults to doHaddock
<Profpatsch> I’m pretty positive we can remove that.
<clever> one reason i can think of to keep it, is to fix cycle problems
<Profpatsch> The other is set to false right now, but not sure what the reasoning is.
<clever> down the road, somebody may create docs that refer to $out
<clever> and $out has a haddock path in it
<clever> and nix will fail the build hard
pie_ has quit [(Ping timeout: 240 seconds)]
<clever> doHaddock = true; enableSeparateDocOutput = false; would solve that
<Profpatsch> How would such docs look like?
pie_ has joined #nixos
<clever> the Paths_ module in cabal already causes that problem
<clever> 334 for x in $doc/share/doc/html/src/*.html; do
<clever> 335 remove-references-to -t $out $x
<clever> i had to nuke all references to $out in the html to get rid of the cycles
tommyangelo[m] has joined #nixos
a123123123[m] has joined #nixos
jlle[m] has joined #nixos
kainospur[m] has joined #nixos
sargon[m] has joined #nixos
<Profpatsch> Yeah, but those are manually removed so it shouldn’t cause a problem, right? Except for the docs not working as expected.
cwopel has joined #nixos
<LnL> ^ debugging output cycles is very annoying
endformationage has quit [(Quit: WeeChat 1.9)]
Infinisil has quit [(Quit: leaving)]
jyp[m] has joined #nixos
spawnthink[m] has joined #nixos
matrixkrav has joined #nixos
ArdaXi[m] has joined #nixos
<clever> Profpatsch: yeah, but new packages may introduce new cycles in different files
bachp has joined #nixos
<clever> and rather then force them to debug/fix them entirely, you can just enableSeparateDocOutput = false; to merge the docs into another output
<dtzWill> puffnfresh: noticed this commit: This is needed to get Nix compiled using Android NDK.
<dtzWill> EEP
<dtzWill> well
Infinisil has joined #nixos
cornu[m] has joined #nixos
<Profpatsch> clever: If something references $out in $doc the only thing that increases is the closure size, right?
<dtzWill> and it contains the mentioned quote above
<dtzWill> what are you doing, sir?! :D:D
<dtzWill> *m'am
<clever> Profpatsch: one minute...
<Profpatsch> There shouldn’t be any infinite recursions.
Nobabs27 has joined #nixos
<clever> lib/ghc-8.0.2/package.conf.d/shake-0.15.11-JGGEmqTyo9u3rsNdYtylaz.conf:haddock-interfaces: /nix/store/18w3lpr7dvwgid5m6la2jb4n744gx2dv-shake-0.15.11-doc/share/doc/html/shake.haddock
<clever> lib/ghc-8.0.2/package.conf.d/shake-0.15.11-JGGEmqTyo9u3rsNdYtylaz.conf:haddock-html: /nix/store/18w3lpr7dvwgid5m6la2jb4n744gx2dv-shake-0.15.11-doc/share/doc/html
<clever> Profpatsch: a .conf file within $out has the paths to haddock files in $doc
<clever> so $doc must never refer back to $out
<Profpatsch> Ah, the realization phase will abort.
<clever> Profpatsch: i also wonder if this conf file would fix your problems?, it always points to wherever cabal was told to put docs
<Profpatsch> phew, not sure.
<Profpatsch> I’d like to set it with a nixexpr variable if possible.
<Profpatsch> Since the doc target is already specified on the nixexpr level.
<clever> nix-repl> haskellPackages.shake.docs or "not there"
<clever> "not there"
<clever> if a given attr is missing, use the 2nd value
<Profpatsch> So, if we leave the flag we should at least make the output folder explicit for the `false` case.
<clever> nix-repl> (haskellPackages.shake.doc or haskellPackages.shake.out) + "/share/doc/html"
<clever> "/nix/store/18w3lpr7dvwgid5m6la2jb4n744gx2dv-shake-0.15.11-doc/share/doc/html"
<clever> so the question becomes, where do the docs land if we dont split
<Profpatsch> That’s what lib.getOutput "foo" does, yes.
<clever> nix-repl> :b haskell.lib.overrideCabal haskellPackages.shake (drv: { enableSeparateDocOutput = false; })
<Profpatsch> I’d keep it the same, probably? Since we are in nix, we should not need the path containing the compiler? Maybe?
<clever> oh, this reminds me, there is a bug in cabal itself
<clever> if the --data-dir= contains the string "ghc", the docs go into it
<clever> but if ghc is not present, the docs land in --prefix=
<Profpatsch> Depends on whether it should be possible to combine package docs from multiple ghc versions, really.
<clever> also setting --doc-dir and --html-dir prevents that problem
<clever> the crazy part, is that --data-dir=/fooghcbar/ will contain the docs
<clever> but --data-dir=/foobar/ wont contain the docs
<Profpatsch> oh god
<clever> yes
<Profpatsch> I see the ‘fun’ you must have had.
<clever> the castle of purity is built upon a mountain of impurities
<LnL> haha
thc202 has quit [(Ping timeout: 260 seconds)]
<clever> also, enableSeparateDocOutput = false breaks the build
<Profpatsch> Tel that to your package manager (scnr)
<clever> the docs land in $data/share/ghc-8.0.2/doc/x86_64-linux-ghc-8.0.2/shake-0.15.11/html/src/Paths_shake.html
<Profpatsch> clever: In general?
<clever> and $out refers to data
<clever> and data refers to out
<Profpatsch> wow
<clever> heh
<Profpatsch> (note to self: don’t copy link targets from google search)
<clever> i'm thinking, we must always provide --docdir
<clever> because the default when absent isnt stable
<Profpatsch> Yes!
<clever> and putting it in data causes a cycle
<Profpatsch> docdir = docoutput: docoutput + "/share/doc";
<clever> (optionalString enableSeparateDataOutput "--datadir=$data/share/${ghc.name}")
<clever> and this part explains the $data/share/ghc-8.0.2 prefix
<clever> ah yeah, i tried to get rid of the double ghc in that path, and thats when i discovered the instability
<Profpatsch> "--docdir=${if enableSeparateDocOutput then docdir "$doc" else docdir "$out"}
<clever> then the docs would land directly in $out/html
<clever> nix-repl> :b haskell.lib.overrideCabal haskellPackages.shake (drv: { enableSeparateDocOutput = false; enableSeparateDataOutput = false; })
<clever> this variant does build
<Profpatsch> not coupled with docdir = docoutput: docoutput + "/share/doc";
<clever> ahh
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ ls -lh /nix/store/sp11wb69bhy00g7wqhls4md9mdi1qzdm-shake-0.15.11/share/x86_64-linux-ghc-8.0.2/shake-0.15.11/html/
<clever> and if i disable all split-output, the docs land here
<clever> aka, $out//share/x86_64-linux-ghc-8.0.2/shake-0.15.11/html
erictapen has joined #nixos
herzmeister[m] has joined #nixos
<clever> Profpatsch: testing a build with the new expression...
<Infinisil> Great, using vim_configurable I can't delete anything in insert mode..
<LnL> past your insert position? that's the default for vim
<clever> Profpatsch: did you see my test-ghc.nix expression?
dash has joined #nixos
JameySharp[m] has joined #nixos
chominist[m] has joined #nixos
fpletz[m] has joined #nixos
Khorne[m] has joined #nixos
<Infinisil> LnL: Damn, that's a bad default by my standards
thematter[m] has joined #nixos
musicmatze[m] has joined #nixos
spacekitteh[m] has joined #nixos
<LnL> Infinisil: set backspace=indent,eol,start
<covux> hi, i have installed a new board with board-manager of arduino-ide (digistump). as expected, i had to manually patchelf all the binaries to get the compiler working. how could i package this, to do the patching automatically?
trikl[m] has joined #nixos
peterhoeg has joined #nixos
ycy[m] has joined #nixos
lecorpsnoir[m] has joined #nixos
mith[m] has joined #nixos
regnat[m] has joined #nixos
myklam[m] has joined #nixos
revoltmedia[m] has joined #nixos
offlinehacker[m] has joined #nixos
<Infinisil> LnL: Yeah found that too
sk23[m] has joined #nixos
pstn has joined #nixos
Kallegro[m] has joined #nixos
wak-work[m] has joined #nixos
M-liberdiko has joined #nixos
retrry[m] has joined #nixos
seif[m] has joined #nixos
unlmtd has joined #nixos
<LnL> I removed that at some point, forces you to use insert mode less
icetan has joined #nixos
bennofs[m] has joined #nixos
<Infinisil> LnL: What did you bind to escape?
<clever> LnL: while trying to unpack some vmware bundles, i was using replace mode to change it from running the unpatchef elf to just unpacking, and i discovered vim appending a \n to the end of the file, breaking it
rycee[m] has joined #nixos
danielrf has joined #nixos
alain[m] has joined #nixos
adisbladis[m] has joined #nixos
benkolera has joined #nixos
AlanPearce[m] has joined #nixos
jack[m]2 has joined #nixos
indefini has joined #nixos
Oo[m] has joined #nixos
<clever> LnL: it was some weird combo of bash, tar, and something custom, and the ELF inside the tar handles the custom part
aspiwack[m] has joined #nixos
baconicsynergy[m has joined #nixos
dalaing has joined #nixos
<LnL> there's also an option for that IIRC
timclassic has joined #nixos
<clever> yeah, stackoverflow stopped that from happening
reactormonk[m] has joined #nixos
sudoreboot[m] has joined #nixos
florianjacob has joined #nixos
zeus__ has joined #nixos
WinterFox[m] has joined #nixos
wmertens[m] has joined #nixos
Kirill[m] has joined #nixos
<Profpatsch> clever: I need to go to bed now, if you conjure something up just mention me.
Barnabas[m] has joined #nixos
bhipple[m] has joined #nixos
Magnap[m] has joined #nixos
v0|d has quit [(Remote host closed the connection)]
<Profpatsch> If not, I can try including it in the hoogle PR tomorrow.
Elephant454[m] has joined #nixos
<LnL> Infinisil: my capslock is ctrl + esc
<Profpatsch> gn8
NickHu has joined #nixos
davidar has joined #nixos
<clever> Profpatsch: nn
<Infinisil> I just haven't remembered enough vim commands to not use insert mode as often
zimbatm has joined #nixos
hedning[m] has joined #nixos
mtncoder[m] has joined #nixos
admin[m] has joined #nixos
TimePath has joined #nixos
Ralith has joined #nixos
AmineChikhaoui[m has joined #nixos
<Infinisil> LnL: Hmm, my capslock is delete..
qrilka[m] has joined #nixos
octalsrc[m] has joined #nixos
hendrik[m]1 has joined #nixos
Drakonis[m] has joined #nixos
Dezgeg[m] has joined #nixos
<Infinisil> But that ctrl + esc is nice
simukis has quit [(Ping timeout: 240 seconds)]
yochai[m] has joined #nixos
eqyiel[m] has joined #nixos
primeos[m] has joined #nixos
copumpkin has joined #nixos
StuK[m] has joined #nixos
DIzFer[m] has joined #nixos
<Infinisil> Oh wait, I have a swiss keyboard which has an extra key that I never use, right below the "A" :D
sirius[m] has joined #nixos
<Infinisil> Just need to figure out how to remap that
Yaniel has joined #nixos
corngood has joined #nixos
scott2 has joined #nixos
sphalerite has joined #nixos
dibblego[m] has joined #nixos
dtz has joined #nixos
abbafei[m] has joined #nixos
xj9[m] has joined #nixos
hl has joined #nixos
mhsjlw[m] has joined #nixos
Sovereign_Bleak has joined #nixos
bendlas has joined #nixos
BurNiinTRee[m] has joined #nixos
<Infinisil> LnL: Is esc instantly or does it have a delay because of the ctrl combination?
<LnL> it's triggered on keyup I think
<LnL> if no other key was pressed
zeus__ has quit [(Ping timeout: 255 seconds)]
<Infinisil> LnL: I see, how did you do it? With xkb?
<LnL> don't know if I have it configured like that on linux
<Infinisil> LnL: Ohh right, you probably use karabiner on osx
<LnL> yeah, so on my nixos box it's just ctrl I think
<LnL> but if you find some way to do that let me know :)
<clever> LnL: part of the problem with escape in a terminal, is that things like the arrow keys send escape and another key
<clever> so the program must wait and see if there is more
<Infinisil> Accepted answer with -1 score lol
zeus__ has joined #nixos
mbrgm has joined #nixos
<avn> LnL: at least, it make some emacs default keys more logical
beanmachine has joined #nixos
<LnL> yeah, I don't understand why the capslock key ended up in one of the best locations for a modifier key
<clever> ive got a keyboard like this, but control/capslock are in the "right" place: http://xahlee.info/kbd/i/kb/sun_keyboard_left.jpg
<clever> and the super/alt are also swapped
<LnL> :)
<clever> esc is also in the right spot
mbrgm has quit [(Ping timeout: 248 seconds)]
<clever> i recently noticed that the giant help button opens the help in vim
LinArcX has joined #nixos
<Infinisil> Argh, where is the /usr/share/X11/xkb/ directory on nixos
<clever> Infinisil: in the xkb package
<Infinisil> Ohh
<LnL> that's awesome
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 4 new commits to master: https://git.io/v7osA
<NixOS_GitHub> nixpkgs/master f963014 Joachim Fasting: linux-hardened-config: various fixups...
<NixOS_GitHub> nixpkgs/master 4a65f9e Joachim Fasting: dnscrypt-proxy: enable parallel building
<NixOS_GitHub> nixpkgs/master d56361f Joachim Fasting: pigz: 2.3.3 -> 2.3.4
NixOS_GitHub has left #nixos []
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ nix-store -qR /run/current-system | grep keyboard
<clever> /nix/store/5nidmghgw700wkj4pycg9a80q25qbxzb-xkeyboard-config-2.21
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ ls /nix/store/5nidmghgw700wkj4pycg9a80q25qbxzb-xkeyboard-config-2.21/share/X11/xkb/
<Infinisil> Thank
<avn> Infinisil: is also an option, to symlink it to /etx/X11/xkb (let me look)
mbrgm has joined #nixos
<avn> Infinisil: services.xserver.exportConfiguration = true;
<Infinisil> Oh, interesting, haven't ever seen that
<avn> Infinisil: but xkbcomp looking to default' xkeyboard-config, I done patch years ago
<clever> ive also had to deal with this when running xnest, xephyr, and xvnc
<avn> clever: I still prefer custom loading of keymap with `xkbcomp -I$HOME/.xkb $HOME/.xkb/main.xkb $DISPLAY`
<LinArcX> Hi. I install tor but I want to define configurations declarative. something like "congratulations.nix" . how do this work?
<clever> avn: Xephyr demands a valid xkb dir on the command-line
<clever> LinArcX: https://nixos.org/nixos/options.html#services.tor.extraconfig and also .enable
<Infinisil> avn: Do you happen to know how I can remap a keycode to ctrl?
<LnL> I have services.xserver.xkbOptions = "ctrl:nocaps";
<Infinisil> Key code is 94, there is an alias (?) defined in evdev: <LSGT> = 94
<Infinisil> LnL: But I have no idea where these names ctrl and nocaps come from
<LnL> yeah same
<LnL> not really familiar with think kind of stuff, mainly use my nixos machine headless
<avn> Infinisil: include `ctrl(nocaps)` to my list of includes ;)
<Infinisil> Ohh, alias <ESC> = 94 should work
<sphalerite> Anyone know a PIM that works nicely on nixos? I'm starting to lose hope in thunderbird because of its abominably poor DAV sync capabilities
<avn> Infinisil: xkb_symbols { include "pc(pc105)+pc(editing)+keypad(x11)+keypad(overlay)+keypad(oss)+us(sun_type6)+my_bksp(bksp)+ctrl(nocaps)+terminate+sun_vndr/solaris(defaults)+ru(legacy):2+f12(toggle)"};
<avn> my current (and not so complete) list of symbols includes
<Infinisil> What does ctrl(nocaps) do?
<LinArcX> clever: how pass extra config? Should I address another file or hardcode configuration in string format ?
<sphalerite> I'm not sure I even want to try evolution, based on past experience and the knowledge that GNOME stuff on nixos isn't in the best of states anyway
<sphalerite> does KDE's stuff work nicely?
<avn> Infinisil: find `ctrl` file inside symbols/ and find nocaps declaration ;)
<avn> Infinisil: I not dig there so often
<avn> and my settings is bad regarding keypad
tommd has joined #nixos
hiratara has quit [(Ping timeout: 255 seconds)]
<clever> LinArcX: the type is string, so you need to either embed it right into configuration.nix as a string, or use builtins.readFile
<tommd> I'm obviously missing something wrt nix-env. For example, while I can install z3 fine I get errors with lots of packages (suggesting they don't even exist often), such as cvc4 or wireshark-gtk.
<LinArcX> clever:thanks :)
<tommd> I expect I am missing some basics, sound about right?
tokudan has quit [(Quit: Leaving)]
<clever> tommd: nix-env -iA nixos.wireshark-gtk
hiratara has joined #nixos
<tommd> clever: Yes, for example that outputs `error: attribute ‘nixos’ in selection path ‘nixos.wireshark-gtk’ not found`
<clever> tommd: are you on nixos or another distro?
zeus__ has quit [(Read error: Connection reset by peer)]
<tommd> I'm on Darwin using nix for packaging.
<clever> tommd: then you want nix-env -iA nixpkgs.wireshark-gtk
<clever> the name before the . comes from the names in "nix-channel --list"
<tommd> So 'nixpkgs' is a channel which forms a heirarchy?
zeus__ has joined #nixos
<tommd> AH, thanks
contrapumpkin has joined #nixos
<avn> clever: for git checkout -- default attribute is pkgs. right? (I am defined it for myself, but not sure for advicing to others)
<clever> avn: for a git checkout, you just want nix-env -f /home/clever/apps/nixpkgs -A wireshark-gtk
<clever> avn: the entire nixpkgs set contains a pkgs attribute, that points to itself
<LnL> you can do something similar for channels that works everywhere with -f '<nixpkgs>'
<clever> i also recently read the code behind .nix-defexpr, and can now do fun things with it
<clever> [clever@amd-nixos:~]$ cat .nix-defexpr/test/foo/default.nix
<clever> import /home/clever/apps/nixpkgs
dywedir has joined #nixos
<clever> because of this file, i can now do nix-env-iA foo.wireshark-gtk, and it grabs it from master
<avn> clever: I have my default NIX_PATH=nixpkgs=/path/to/checkout ;)
<clever> avn: nix-env basicaly ignores the search path
<clever> so you have to -f '<nixkgs>' every time
<clever> the file i pasted above solves that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #27820: nixos/piwik: clarifies setup documentation (master...piwik-install-doc-fix) https://git.io/v7B81
NixOS_GitHub has left #nixos []
<avn> clever: pff, I can't remember, when I used nix-env last time, only nix-shell and/or nixos-rebuild ;)
<LnL> oh interesting, that should work around the weird nix-env behaviour
<avn> Just curious, can we do something with chromium, to make it builds faster?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #27985: elementary-icon-theme: 4.1.0 -> 4.2.0 (master...upd.elementary-icon-theme) https://git.io/v7rjy
NixOS_GitHub has left #nixos []
<avn> except buy more cores/more memory ;)
<clever> avn: incremental builds, one derivation per .o file
<puffnfresh> dtzWill: I've got Nix on my Android phone :)
<clever> that basicaly re-implements ccache using the nix store
<avn> clever: not sure, if this not be overkils, and make too big impact on store. But may be per-component incremental build helps
<dtzWill> eeeee ^_____^ that'd be sweet
<clever> avn: taktoa has been working on a project that turns a ninja file into a dervation with one .o per dervation
<dtzWill> puffnfresh: ty for the link :D that's excellent
<clever> dtzWill: i'm also not quite sure you even need the android ndk
<clever> dtzWill: its sort of like building a /usr/bin/nix-build for ubuntu
<avn> clever: Interesting, but putting 25k derivations in can make massive slowdown of everything
<clever> 98% of the time, your going to replace it with a nix-built version anyways
<dtzWill> ah, indeed. I just am @.@ at Nix on my phone or something haha
<clever> avn: yeah
<dtzWill> haha indeed
<clever> dtzWill: yeah, once you switch over to a nix built by nix, it may get upset at the lack of /etc/
<clever> but you probably want a chroot anyways
phreedom has quit [(Remote host closed the connection)]
<avn> clever: cutting it (chromium) to subprojects/use system components can helps (I believe)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/v7oZ3
<NixOS_GitHub> nixpkgs/master 0149578 Tomas Hlavaty: sbcl: 1.3.19 -> 1.3.20
<NixOS_GitHub> nixpkgs/master 638b671 Michael Raskin: Merge pull request #27812 from tohl/master...
NixOS_GitHub has left #nixos []
phreedom has joined #nixos
<puffnfresh> clever: yeah, that's about right
<clever> oh, and something else you can then try, boot.isContainer = true; and build nixos
Nobabs27 has quit [(Quit: Leaving)]
<clever> that will remove the kernel component and re-configure a few things
<clever> so it will more happily run in a container, with full systemd
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Nadrieril opened pull request #27993: rsync service: allow running as user plus some tweaks (master...rsync-run-as-user) https://git.io/v7oZc
NixOS_GitHub has left #nixos []
<clever> this is a related thing i worked on
<clever> the goal was to be able to launch a systemd-nspawn like container, without systemd on the host
<clever> as long as the host has mkdir, mount, touch, mknod, and chroot in $PATH, it can enter the container
<avn> clever: next step would be something, which will be pid1, but not systemd? ;)
<clever> avn: thats more in the area of not-os, where i used runit
<avn> btw, silly questyion folks -- are anyone here familiar with polkit?
<avn> I need allow one user to kill (.TerminateUser) user sessions for users in specific group
<clever> avn: last i looked at it, the policies are just javascript files running in spidermonkey, that take in some state and return true/false
<avn> clever: Yea, but may be someone have working snippet. I add snippet which should log any request, but it didn't works ;)
<Infinisil> avn: Where do you have your xkbcomp command in configuration.nix?
<avn> Infinisil: in .xsession, from my dotfiles. Possible I should move it somewhere, but I am too lazy
<Infinisil> avn: Ah, I think there's some session option for that
<avn> Infinisil: yea, but also formally -- it a host dependent stuff, so should live in configuration.nix ;)
<Infinisil> Actually I can't find it..
<Infinisil> I just want to run some extra commands in the session..
<Infinisil> Oh actually, services.xserver.displayManager.sessionCommands might work
Myrl-saki has quit [(Ping timeout: 260 seconds)]
dywedir has quit [(Ping timeout: 260 seconds)]
Infinisil has quit [(Quit: leaving)]
faffolter has quit [(Ping timeout: 258 seconds)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
hiratara has joined #nixos
jpdoyle has joined #nixos
Myrl-saki has joined #nixos
<jpdoyle> I'm trying to test a nixos config on AWS, and when I try to install `cudatoolkit` I get the error: "/dev/tty: No such device or address"
Infinisil has joined #nixos
Infinisil has quit [(Client Quit)]
Infinisil has joined #nixos
v0|d has joined #nixos
takle has quit [(Remote host closed the connection)]
silver_hook has quit [(Ping timeout: 258 seconds)]
Guest98651 is now known as grahamc
grahamc has quit [(Changing host)]
grahamc has joined #nixos
grahamc has quit [(Changing host)]
grahamc has joined #nixos
mguentner has quit [(Ping timeout: 260 seconds)]
joehh has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
covux has quit [(Quit: Page closed)]
takle has quit [(Ping timeout: 240 seconds)]
jpdoyle has quit [()]
Infinisil has quit [(Quit: leaving)]
markus1199 has joined #nixos
jonte_ has quit [(Ping timeout: 268 seconds)]
takle has joined #nixos
capisce has joined #nixos
capisce_ has quit [(Ping timeout: 240 seconds)]
markus1189 has quit [(Ping timeout: 240 seconds)]
CodeWarrior has quit [(Ping timeout: 240 seconds)]
greymalkin has quit [(Ping timeout: 240 seconds)]
eschnett has quit [(Quit: eschnett)]
takle has quit [(Ping timeout: 240 seconds)]
alpounet has quit [(Ping timeout: 268 seconds)]
greymalkin has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] richardlarocque opened pull request #27997: nixos/mosquitto: Fix instructions for password gen (master...mosquitto_hashed_pass_docs) https://git.io/v7och
NixOS_GitHub has left #nixos []
alpounet has joined #nixos
katyucha_ has joined #nixos
Infinisil has joined #nixos
<Infinisil> Whew, finally got it how I want it
CodeWarrior has joined #nixos
katyucha has quit [(Ping timeout: 248 seconds)]
Turion has quit [(Ping timeout: 276 seconds)]
LinArcX has quit [(Ping timeout: 260 seconds)]
ebzzry has joined #nixos
takle has joined #nixos
LinArcX has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #27949: linux-common-config: Refactor, clean up (master...common_kernel_config) https://git.io/v7w2N
NixOS_GitHub has left #nixos []
erictapen has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #27876: libsodium: 1.0.12 -> 1.0.13 (master...libsodium-1_0_13) https://git.io/v7uh1
NixOS_GitHub has left #nixos []
takle has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v7oC4
<NixOS_GitHub> nixpkgs/master ff9479c Tim Steinbach: linux: 4.12.4 -> 4.12.5
NixOS_GitHub has left #nixos []
takle has joined #nixos
rjsalts` is now known as rjsalts
takle has quit [(Ping timeout: 260 seconds)]
filterfish has quit [(Read error: Connection reset by peer)]
rpifan has joined #nixos
takle has joined #nixos
filterfish has joined #nixos
gnuhurd has quit [(Ping timeout: 248 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
jgertm has joined #nixos
<NickHu> I How do I do a gcc -static compile in nixos?
<clever> NickHu: you need to either find or create static libraries for everything: https://github.com/cleverca22/nix-misc/blob/master/qemu-user.nix
<clever> NickHu: or just use dynamic, nix solves nearly all of the typical reasons you would want static for
takle has joined #nixos
<Infinisil> clever: NickHu: What about glibc.static?
rtjure has joined #nixos
<NickHu> Infinisil: exactly what I was looking for, thanks
<clever> that is in the qemu expression i linked
<clever> but you may also run into other libraries that lack static files
<NickHu> Just wanted to see the difference in size between glibc and others for hello world statically compiled
<clever> ah
<NickHu> Does nixos have decent support for something like musl libc?
<clever> NickHu: this copies the ELF programs and the .so files into a new derivation, then patchelf's the rpath to fix it
<clever> so you have the dynamic libs, but none of the other junk (locales, docs, share files ...)
<clever> thats uses by nixos to create the initrd images
<Infinisil> Am I right in that a static build assembles all libraries and other dependencies into a single binary, making it standalone so to say?
<clever> yeah
takle has quit [(Ping timeout: 240 seconds)]
v0|d has quit [(Remote host closed the connection)]
<Infinisil> Ah so like nix-store --export $(nix-store -qR <outputPath>) > closure
<Infinisil> Just worse
<clever> in theory, you can just tar up a static ELF and ship it to any distro, without having to drag nix along
<clever> thats about the only benefit it has
<NickHu> depends what you mean
<NickHu> it'll be lighter (I imagine)
<Infinisil> clever: And that if you already have nix on the other system, paths could be shared
<NickHu> fwiw hello world, with glibc, is about 4x bigger statically compiled and stripped than on openbsd
<clever> i can only think of one area in nixpkgs that absolutely requires a static binary, it has a staticly linked busybox, not even in a tar, grabbed by call to <nix/fetchurl.nix>
<clever> which it used to unpack and patchelf the bootstrap tools
<clever> NickHu: but 99% of the time, you already have glibc in your nix store, so your not really saving space by trying to exclude it
takle has joined #nixos
<timclassic> Okay, next challenge. Is anyone successfully using Kerberos + NFS4 as a client on NixOS?