newhoggy has quit [(Ping timeout: 258 seconds)]
maiklein has quit [(Ping timeout: 260 seconds)]
<sdll> simpson, unfortunately, I still have a trouble to understand how to write the necessary structure -- how can I create the directory subtree wicd/encryption/templates in /etc and then create a symbolic link to a template somewhere else?
<simpson> sdll: Why would you make a symlink? Why not just have the file included verbatim in /etc?
<sdll> I have one folder of dotfiles, so that I could manage them better
<simpson> Hm. I know that some folks here have various recipes for dotfiles, but I don't know the details.
<sdll> It seems that environment.etc supports that with the "source" field
ryantrinkle has quit [(Ping timeout: 268 seconds)]
[0x4A6F] has quit [(Ping timeout: 268 seconds)]
mudri has quit [(Quit: WeeChat 1.7)]
byteflame has quit [(Ping timeout: 260 seconds)]
Tipping_Fedora has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
[0x4A6F] has joined #nixos
<sdll> Is it simpler to symlink straight into the package dir with {pkg.wicd} reference?
thetet has quit [(Quit: Leaving.)]
<simpson> No, the Nix store really isn't meant to be altered, and indeed you've probably discovered that you can't just edit it directly.
<sdll> True, simpson
<simp__> Does anyone use i3-gaps here?
<NixOS_GitHub> [nixpkgs] elitak opened pull request #25195: factorio: 0.14.21 -> 0.15.1 (master...factorio-version) https://git.io/v9tGr
<simp__> having some trouble getting it to work
vaibhavsagar has joined #nixos
<tilpner> Just i3, but maybe I can help too?
<tilpner> People prefer to see the question before offering blanket help, so just ask instead of asking to ask :)
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #25196: lib: Consolidate tests into one meta job (master...recursive-platform-tests) https://git.io/v9tGP
thc202 has quit [(Ping timeout: 260 seconds)]
Tipping_Fedora has joined #nixos
<simp__> alright icetan . I installed i3-gaps and configured it according to their wiki for nixos
<simp__> after rebooting, and logging in. there's nothing I can do
<simp__> Like, can't do mod+d to open dmenu or mod+2 to change workspace
<simp__> I'll post my config file. Also I'd appreciate general tips on good practices of configuration
<tilpner> Did it give you the wizard to choose which mod key you would like, or did you bring your config?
<simp__> Yes, it did
<tilpner> Did you check if dmenu is installed?
<simp__> Well I did nixos-env dmenu
<simp__> And it seemed to install
ryanartecona has quit [(Quit: ryanartecona)]
<simp__> I just installed the distro a few hours ago, so I'm not really sure if I'm doing things right
<simp__> Haven't gotten around yet to reading much of the manual
<tilpner> There's no nixos-env, you may mean nix-env. Try adding dmenu to your systemPackages
<simp__> yes nix-env
<simp__> Just "dmenu" right?
<tilpner> Yes
<simp__> Also, tilpner I noticed my layout is not set to portuguese when I'm able to type in i3
<tilpner> (And triple-check you're using the correct Mod key and that key works inside the terminal)
<simp__> I was expecting this to do it services.xserver.layout = "pt";
<simp__> So it made me think it might be a keyboard issue
Sonarpulse has quit [(Ping timeout: 260 seconds)]
<simp__> Also even without dmenu I should be able to do mod+enter
<simp__> to open a terminal
<tilpner> I don't see why your keyboard layout should shift your mod key around, but I don't know enough about X to say for sure. Did you try using another layout?
<tilpner> Also paste your ~/.config/i3/config please. I think the default is xterm, do you have that installed?
<sdll> simpson, would files added to /etc be read if I just create the whole subtree myself?
<simp__> Oh, I just deleted that, tilpner
<tilpner> The file or xterm?
<simp__> will go through the wizard again and choose alt key
<simp__> file
<simp__> also added dmenu
<simp__> will post in a second after rebooting
athan has joined #nixos
<tilpner> You shouldn't need to reboot, just i3 after activating the new config
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<tilpner> *just restart i3
<tilpner> (Though dmenu suggestions can get broken...)
<simp__> Well that worked for some reason
<simp__> I was on a rollback tilpner
<tilpner> ... :D
<simp__> Thanks though
<simp__> Time to configure i3
<simp__> Oh my layout is still messed
roconnor has joined #nixos
fnlkj has quit [(Disconnected by services)]
fnlkj_ has joined #nixos
fnlkj_ has quit [(Client Quit)]
vaibhavsagar has quit [(Ping timeout: 268 seconds)]
AllanEspinosa has joined #nixos
<timclassic> Has anyone managed to get nixpkgs functioning within one of Linux "distributions" that can be run on an Android device?
roconnor has quit [(Ping timeout: 268 seconds)]
<timclassic> I managed to get the nix tools built in GNURoot Debian, but the whole thing crashes as soon as I run [nix-env -f '<nixpkgs>' -iA hello]
<timclassic> I'm not sure yet if Termux has enough tooling to support building the nix tools
sdll` has joined #nixos
sdll has quit [(Ping timeout: 260 seconds)]
vaibhavsagar has joined #nixos
Wizek_ has quit [(Ping timeout: 240 seconds)]
joepie91 has quit [(Ping timeout: 264 seconds)]
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
puffnfresh has quit [(Ping timeout: 258 seconds)]
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
<simp__> Is there some "base-dev" package that install the standard dev tools?
AllanEspinosa has joined #nixos
simukis_ has quit [(Quit: simukis_)]
<mdash> Yes, stdenv
<Tipping_Fedora> hi guys, Im looking for a package that will provide lspci, but I cant find one, can I get some help please?
<simp__> Cannot take screenshot! `scrot' not in $PATH
<simp__> Something like this, do I fix it by manually adding it to $PATH or is some "nixos way" of doing it?
<simp__> like in the configuration file
roconnor has joined #nixos
sdll`` has joined #nixos
sdll` has quit [(Ping timeout: 258 seconds)]
mizu_no_oto has joined #nixos
<dash> simp__: simplest way on an ad-hoc basis is 'nix-shell -p scrot'
<simpson> simp__: I use scrot often enough that I did $(nix-env -i scrot)
sdll``` has joined #nixos
<dash> you can also put it in systemPackages
sdll`` has quit [(Ping timeout: 240 seconds)]
<simp__> I had done that though, simpson
<simp__> how does that command differ, dash, from simpson's?
<simp__> Still get the same error too
<dash> simp__: it starts a shell with scrot in $PATH but doesn't permanently change any settings.
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #24999: qemu module: add virtualisation.cores option (master...qemu) https://git.io/vSN0i
mbrgm has quit [(Ping timeout: 240 seconds)]
derjohn_mob has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
rcshm has joined #nixos
Supersonic112_ has joined #nixos
puffnfresh has joined #nixos
Supersonic112_ is now known as Supersonic112
newhoggy has quit [(Remote host closed the connection)]
<rcshm> hi, if i like to include a pkgs override which is a file like pkgs.scala.override { jre = pkgs.oraclejdk8; }; for scala = (import ./scala); but that does not seem to be valid.
newhoggy has joined #nixos
<rcshm> is there a way to define pkgs.override in a different file and include it in the main override file? thanks.
newhoggy has quit [(Ping timeout: 240 seconds)]
derjohn_mob has joined #nixos
sigmundv has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
<copumpkin> .override returns a derivation
<copumpkin> it's not going to modify anything
newhoggy has quit [(Ping timeout: 255 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
sellout- has joined #nixos
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
<aszlig> rcshm: you can use something like packageOverrides = super: { scala = super.scala.override { jre = super.oraclejdk8; }; }
mizu_no_oto has joined #nixos
<aszlig> rcshm: what do you mean with "main override file"? NIXPKGS_CONFIG maybe?
newhoggy has quit [(Remote host closed the connection)]
proteus-guy has quit [(Ping timeout: 260 seconds)]
byteflame has joined #nixos
proteus-guy has joined #nixos
<rcshm> aszlig i mean i like to have the statement super.scala.override { jre = super.oraclejdk8; }; in another file. and read it into the main override file.
<rcshm> by import ./scala
<rcshm> it is more of how i like organize different override in different file individually.
<aszlig> rcshm: well, there is nothing to stop you from doing scala = import ./scala super;
<rcshm> it doesn't seem to work somehow.
<rcshm> let me try again and i will get the error.
<aszlig> like for example packageOverrides = super: import ./foo-overrides.nix super // import ./bar-overrides.nix super
byteflame has quit [(Ping timeout: 255 seconds)]
<aszlig> or maybe even better: packageOverrides = super: fold (path: acc: acc // import path super) [ ./foo-overrides.nix ./bar-overrides.nix ]
<aszlig> please add the missing {} here ;-)
<Tipping_Fedora> How can I add my fedora install to NixOS's grub?
<aszlig> packageOverrides = super: fold (path: mergeAttrs (import path super)) {} [ ./foo-overrides.nix ./bar-overrides.nix ]
<aszlig> Tipping_Fedora: there is an extraEntries option
<rcshm> i am getting syntax error, unexpected ';', expecting $end
<aszlig> Tipping_Fedora: http://nixos.org/nixos/options.html#boot.loader.grub.extraentries
<rcshm> pkgs: let in pkgs.scala.override { jre = pkgs.oraclejdk8; }; in default.nix for scala folder.
spinus has quit [(Ping timeout: 240 seconds)]
roconnor has quit [(Ping timeout: 252 seconds)]
<aszlig> rcshm: can you pastebin the corresponding files somewhere?
acarrico has quit [(Ping timeout: 260 seconds)]
<rcshm> i do have packageOverrides = pkgs: rec { scala = import ./scala; } in the main.
<rcshm> scala = import ./scala pkgs; actually
initialPumpkin has joined #nixos
<rcshm> aszlig here is the pastebin https://pastebin.com/LxD15ffz
<initialPumpkin> Has anyone enabled grsecurity on NixOS Ec2 instances?
ryantrinkle has joined #nixos
<aszlig> rcshm: there is a ; at the end of the second file
<aszlig> rcshm: the ; delimits attribute key/values in an attribute set, but in this case it's not an attribute set
<copumpkin> initialPumpkin: yeah
<initialPumpkin> copumpkin: I'm having a problem where if I enable grsecurity, ssh is not working?
<Tipping_Fedora> aszlig, how would I go about using that?
<copumpkin> initialPumpkin: I haven't seen that before; check the console log in the EC2 web console?
<copumpkin> initialPumpkin: last time I tried turning it on in EC2 was a couple of releases ago though, so perhaps it's changed
<copumpkin> initialPumpkin: are you using any of the RBAC stuff or just the kernel?
jmsb has quit [(Ping timeout: 240 seconds)]
<aszlig> Tipping_Fedora: that depends how you want to load fedora... either via chainloading its bootloader or by directly providing the kernel/initrd
<Tipping_Fedora> aszlig, id like to chainload, as that seems a bit easier for me
<rcshm> i see.
<rcshm> that got it thru.
<rcshm> thanks so much aszlig.
<initialPumpkin> copumpkin: Just the kernel for nix. Literally just added `security.grsecurity.enable = true;` to configuration.nix, nixos-rebuild boot, reboot.
<copumpkin> initialPumpkin: you'll just have to look at the boot log, sorry :/
<copumpkin> initialPumpkin: also, our nicks seem somewhat related :P
<initialPumpkin> copumpkin: oh what a coincidence ;)
<aszlig> Tipping_Fedora: menuentry "Fedora" { chainloader (hdX,Y)+1; }
<copumpkin> initialPumpkin: are you someone I know? :)
dbmikus_ has quit [(Ping timeout: 260 seconds)]
<Tipping_Fedora> would /dev/sdb1 be hd1,1
<initialPumpkin> copumpkin: You bet.
<copumpkin> thought so :)
<aszlig> Tipping_Fedora: depends an the device map, but usually yes
<aszlig> s/an/on/
<Tipping_Fedora> aszlig, and I can just paste menuentry "Fedora" { chainloader (hdX,Y)+1; } (with supplied vaules) into my conf file?
<Tipping_Fedora> just as that?
<aszlig> Tipping_Fedora: nah
<Tipping_Fedora> oh
<Tipping_Fedora> aszlig, what do I need to do then?
<aszlig> Tipping_Fedora: more like: boot.loader.grub.extraEntries = "menuEntry \"Fedora\" {\n chainloader (hdX,Y)+1;\n}";
<aszlig> err, without the ;
<aszlig> boot.loader.grub.extraEntries = "menuEntry \"Fedora\" {\n chainloader (hdX,Y)+1\n}";
<Tipping_Fedora> and a nixos-rebuild switch?
<copumpkin> initialPumpkin: most of the folks here are in europe and are mostly asleep now unfortunately :)
<aszlig> copumpkin: except a few night owls ;-)
<Tipping_Fedora> welp
<Tipping_Fedora> time to reboot and try
<Tipping_Fedora> aszlig, no results
<Tipping_Fedora> My fedora does not show in NixOS grub
<Tipping_Fedora> just that standard Generatio * and my efi firmware
<aszlig> Tipping_Fedora: can you paste your configuration.nix somewhere?
<Tipping_Fedora> sure
<Tipping_Fedora> http://termbin.com/y9kt
<Tipping_Fedora> omg
<Tipping_Fedora> im dumb
<Tipping_Fedora> forgot to fill in the values
<initialPumpkin> copumpkin: Nothing obvious in the system/boot logs. Is section 19.1 here: https://nixos.org/nixos/manual/index.html#sec-grsec-enable all I need to do to get initially up and running?
<aszlig> Tipping_Fedora: oh, you're not using grub
<Tipping_Fedora> what?
<Tipping_Fedora> ...
<Tipping_Fedora> I thought I was...
<Tipping_Fedora> can I switch to that?
<copumpkin> initialPumpkin: I think so :(
<copumpkin> initialPumpkin: you using 17.03 or a custom image?
<Tipping_Fedora> (grub2 perfably)
<aszlig> Tipping_Fedora: you could... but apart from that... are you using grub for fedora?
<Tipping_Fedora> aszlig, I am
<initialPumpkin> copumpkin: Was using custom image, but then switched to ami-0940c61f from here: https://nixos.org/nixos/download.html to ensure I'm not doing anything stupid.
<aszlig> Tipping_Fedora: i suppose you're sharing the same efi boot partition with fedora, right?
<Tipping_Fedora> no
<Tipping_Fedora> totally seperate drives
<Tipping_Fedora> fedora is totally unaware of nixOS
<Tipping_Fedora> and Nix of fedora
<Tipping_Fedora> if I could also remove grub from fedora and have NixOS handle it all that would be my preference
<aszlig> Tipping_Fedora: i haven't much experience with grub and uefi, but there is an efiSupport option
<Tipping_Fedora> ok?
<aszlig> Tipping_Fedora: it might work by substituting systemd-boot with grub and add efiSupport = true
<Tipping_Fedora> ok
hexagoxel has quit [(Ping timeout: 250 seconds)]
<aszlig> Tipping_Fedora: but give me a sec, i'm testing this...
<Tipping_Fedora> ok
<Tipping_Fedora> also aszlig thank you for the help
<initialPumpkin> copumpkin: Found the problem I think. "modprobe: FATAL: Module xen-blkfront not found in directory /lib/modules/4.9.20-grsec" and "modprobe: FATAL: Module xen-netfront not found in directory /lib/modules/4.9.20-grsec"
<copumpkin> oh, that's annoying that it doesn't work by default
<copumpkin> I think there's a xen-enabled kernel
<copumpkin> I remember adding one a while back, but thought the default one would work too
<Tipping_Fedora> aszlig, just for some context it is fedora 24
<Tipping_Fedora> aszlig, fedora 25
Svarog has joined #nixos
hexagoxel has joined #nixos
<copumpkin> initialPumpkin: linux_grsec_server_xen
<initialPumpkin> copumpkin: Yup, although the two packages have the same package name but different attribute names?
<copumpkin> yeah, the package name means comparatively little except to humans and nix-en
<copumpkin> env
<copumpkin> how do we resolve between multiple mkForce?
<aszlig> Tipping_Fedora: might take a bit longer, because i'm extending the nixos tests because we don't have a test case for grub and uefi
<Tipping_Fedora> ok
<copumpkin> so `boot.kernelPackages = mkOverride 1 (pkgs.linuxPackagesFor pkgs.linux_grsec_server_xen);`
<copumpkin> or something
<Tipping_Fedora> aszlig, is it going to have results today?
<initialPumpkin> copumpkin: Lower number == higher priority?
<copumpkin> need to make that smoother
<copumpkin> yeah
<Tipping_Fedora> or is it a few day thing?
<aszlig> Tipping_Fedora: nah
<Tipping_Fedora> ok
<initialPumpkin> copumpkin: Will try. Thanks for all the help. Is it worth sending in a PR to choose between the two grsec kernels?
<Tipping_Fedora> I shall wait then
<copumpkin> initialPumpkin: yeah, definitely
<Tipping_Fedora> aszlig, also, both OS are install with UEFI support
<NixOS_GitHub> [nixpkgs] copumpkin opened pull request #25197: azure-image: switch to use the common make-disk-image.nix (master...azure-image-common) https://git.io/v9t4K
<Svarog> what do i need to add to the installed packages to stop nix-build/nix-shell from always downloading things like stdenv after i do nix-collect-garbage?
<Svarog> i currently added stdenv and stdenv.bootstrapTools and that helped a bit, it no longer tries to download busybox as far as i can tell
<Svarog> but it still downloads bash every time and i think it still also downloads stdenv, even though it shouldn't.
<NixOS_GitHub> [nixpkgs] copumpkin pushed 2 new commits to master: https://git.io/v9t4S
<NixOS_GitHub> nixpkgs/master d4fb8cf John Ericson: linux-headers: Remove stray linux headers 3.18 nix file...
<NixOS_GitHub> nixpkgs/master 3ae7f24 Daniel Peebles: Merge pull request #25187 from obsidiansystems/remove-stray-kernel-headers...
<copumpkin> any azure users around? :) https://github.com/NixOS/nixpkgs/pull/25197
<Tipping_Fedora> aszlig, is there anything I can do to help?
<simpson> Svarog: Sounds like your build tools got GC'd, that's all. It happens. If you don't want it to happen as often, don't GC as often.
<Svarog> yes i know that is what happened
<Svarog> what i am asking is what do i need to add to gc roots to stop that from happening
<Svarog> if the build tools are found under one of the roots then it shouldn't happen
<simpson> No idea; it's never really occurred to me to pin them.
<copumpkin> Svarog: there's an option to keep derivation (build) inputs in nix.conf
<simpson> Aha.
<Svarog> oh
<copumpkin> let me see if I can find it :)
<Svarog> thanks copumpkin
<copumpkin> see the example right under that anchor
<aszlig> copumpkin: that would GC it even for nix-shell
<copumpkin> oh, I wasn't saying to copy the = false
<copumpkin> just that those are the relevant options
<simp__> hello was here earlier trying to fix this "[[ ! ]] Cannot take screenshot! `scrot' not in $PATH" but none of the solutions worked
<dash> simp__: What did you do to get that message?
<simp__> screenfetch -s
<dash> simp__: where did 'screenfetch' come from?
<aszlig> Svarog: you could use nix-store --add-root for that, but it might be a better idea to add for example stdenv to environment.systemPackages
<aszlig> Tipping_Fedora: well, i'm waiting for the test to complete
<simp__> screenFetch-2016-10-11
<Tipping_Fedora> aszlig, oh, ok, how do you test that?
<simp__> That's the name of the package
<dash> simp__: ok, so a nix package you installed
<simp__> yeah
<Svarog> aszlig, yes i tried adding stdenv to a set of cached packaged that i have gc-roots to but that are not actually installed, for some reason it didn't work and it still gets downloaded - it did seem to work for stdenv.bootstrapTools though
<dash> simp__: hmm
<aszlig> Tipping_Fedora:
<aszlig> boot.loader.grub.efiSupport = true;
<aszlig> boot.loader.grub.device = "nodev";
<simp__> If I just do "scrot" it seems to be working fine
<aszlig> that should work for just grub with efi
<Tipping_Fedora> aszlig, that the result or the test?
<dash> simp__: yep, i see the problem
<simp__> So I'm guessing it's screenfetch's fault
<simp__> Ah
<simp__> You have it too?
<dash> simp__: screenfetch was not built by nix to have access to scrot
<aszlig> Tipping_Fedora: you just need to add that chainload entry from before
<Svarog> it seems i need gc-keep-outputs according to the link copumpkin pasted, if i'm reading that right
initialPumpkin has quit [(Quit: Page closed)]
<dash> simp__: so this would need to be fixed in nixpkgs
<dash> simp__: should be pretty easy, a good introduction to contributing to nix :-)
<simp__> Oh
<Tipping_Fedora> ok building and will soon switch
<Tipping_Fedora> brb
<aszlig> Svarog: gc-keep-outputs only is relevant if you're rebuilding something that's a dependency of stdenv in your case
<simp__> I would like to do that, but still pretty new to Nix
<Tipping_Fedora> testing
<simp__> Havent' started reading the manual yet, just stumbling around
<Svarog> "In general, outputs must be registered as roots separately. However, even if the output of a derivation is registered as a root, the collector will still delete store paths that are used only at build time (e.g., the C compiler, or source tarballs downloaded from the network). To prevent it from doing so, set this option to true."
systemfault has joined #nixos
<Tipping_Fedora> aszlig, It didnt work
<Svarog> collector will still delete store paths that are used only at build time unless that setting is on
<aszlig> Tipping_Fedora: you still have systemd-boot?
<Tipping_Fedora> aszlig, commented out
<aszlig> Tipping_Fedora: or just the chainload didn't work?
taktoa has joined #nixos
<Svarog> and i think that's what's happening - when i run nix-shell or nix-build, it downloads a few things like busybox, bash, stdenv
<Tipping_Fedora> I got the same menu as before
<Svarog> then when i do nix-collect-garbage later, it gets rid of them so next invocation of either nix-shell or nix-build tries to download them again
<Tipping_Fedora> aszlig, http://termbin.com/gnx7
<aszlig> Tipping_Fedora: ah, sorry... you need to rebuild with NIXOS_INSTALL_BOOTLOADER=1
<Tipping_Fedora> ahh on
<Svarog> i previously set up a nix-build environment to try to cache those but it only partially worked
<Tipping_Fedora> so
<aszlig> Tipping_Fedora: like so: NIXOS_INSTALL_BOOTLOADER=1 nixos-rebuild boot
<Tipping_Fedora> ok thanks
<Tipping_Fedora> now to try again
<aszlig> Svarog: are you nix-shell'ing with a different stdenv than your gcroot?
taktoa has quit [(Remote host closed the connection)]
<Svarog> i shouldn't be, i don't think
<Tipping_Fedora> nope
<Tipping_Fedora> still not there
<Tipping_Fedora> want another copy of my conf file?
<aszlig> Svarog: try to compare the store path of your gcroot with the one fetched during nix-shell
<Svarog> ok
<Svarog> but setting gc-keep-outputs should work and might be easier, right?
<aszlig> Tipping_Fedora: add boot.loader.grub.enable = true; and boot.loader.systemd-boot.enable = lib.mkForce false;
<Svarog> well.. having a specific root is a cleaner option so i'll still try that
<Tipping_Fedora> aszlig, to where?
<aszlig> Tipping_Fedora: be sure to add lib to the function args in the configuration.nix
<aszlig> Tipping_Fedora: because you might have systemd-boot in your hardware-configuration.nix
johnsonav has quit [(Ping timeout: 260 seconds)]
<Tipping_Fedora> so.. Im kinda lost
<aszlig> Tipping_Fedora: sec, lemme past that
schoppenhauer has quit [(Ping timeout: 258 seconds)]
<Tipping_Fedora> wait
<Tipping_Fedora> aszlig, http://termbin.com/enzy
schoppenhauer has joined #nixos
<Tipping_Fedora> ok 1 sec
<aszlig> Svarog: how did you add the gcroot btw?
<aszlig> Svarog: using --add-root to nix-shell?
<Tipping_Fedora> ok
<Tipping_Fedora> then the bootloader command again?
<aszlig> yep
<Tipping_Fedora> errors
<aszlig> which one?
<Tipping_Fedora> error: syntax error, unexpected '(', at /etc/nixos/configuration.nix:32:1
<Tipping_Fedora> (use ‘--show-trace’ to show detailed location information)
<Tipping_Fedora> current file coming up for paste
<Tipping_Fedora> http://termbin.com/8m15
<aszlig> #boot.loader.grub.extraEntries = "menuEntry \"Fedora\" {\n chainloader
<aszlig> (hd1,1)+1\n}";
<Tipping_Fedora> what?
<aszlig> the second line isn't commented out
<aszlig> also you forgot to add lib
<Tipping_Fedora> I cust cp'd what you had
<Tipping_Fedora> just#
<Tipping_Fedora> error: undefined variable ‘lib’ at /etc/nixos/configuration.nix:14:37
<Tipping_Fedora> (use ‘--show-trace’ to show detailed location information)
<Tipping_Fedora> is what I get now...
<aszlig> 05:36 < aszlig> also you forgot to add lib
<Tipping_Fedora> http://termbin.com/rus1
<Tipping_Fedora> what?
<aszlig> it still says "{ config, pkgs, ... }:"
<Tipping_Fedora> added lib
pxc has joined #nixos
<Tipping_Fedora> going down for reboot
<Svarog> aszlig, i created a default.nix with buildEnv { paths = [ <stuff i want cached> ]; }, then run nix-build
<pxc> how do I access the root of the nix store path from within a Nix package? I want to put /nix/var/nix/profiles/per-user/<username>/<somepath> in a text file output by a Nix package but I don't want to hardcode ‘/nix’ at the beginning of the path in case Nix was compiled with some other store path root
<NixOS_GitHub> [nixpkgs] nyarly opened pull request #25198: Xsession quoting (master...xsession_quoting) https://git.io/v9tRU
<NixOS_GitHub> [nixpkgs] nyarly closed pull request #25198: Xsession quoting (master...xsession_quoting) https://git.io/v9tRU
<aszlig> Svarog: hm, try comparing the store paths of nix-store -qR on the build result with the ones that you get during nix-shell
<Tipping_Fedora> well
<Tipping_Fedora> I have grub now
<Tipping_Fedora> but no fedora on it
<aszlig> Svarog: a better way however would be using nix-shell with something like --indirect --add-root foobar
<aszlig> Tipping_Fedora: okay, then we're at least one step further :-)
<Tipping_Fedora> yes
<aszlig> Tipping_Fedora: so the menu entry doesn't show up?
<Svarog> just wondering how is it different?
<Tipping_Fedora> correct
<aszlig> Svarog: depends on the nix expressions
<Svarog> what i wanted to do initially is cache a large set of packages without having them installed, and so far having these nix-build environments seems to work
<Svarog> i haven't found a better way of doing that yet
<aszlig> Svarog: are you on nixos?
<Svarog> yes
<aszlig> Svarog: there is an option called system.extraDependencies
<Svarog> oh
<aszlig> Svarog: these dependencies won't land in the system path
boxofrox has quit [(Quit: WeeChat 1.7)]
<Tipping_Fedora> aszlig, any ideas?
<aszlig> Tipping_Fedora: sec...
<Tipping_Fedora> aszlig, k
<simp__> NixOS just crashed on me. Is there any log files I can check to see what went wrong?
<Svarog> aszlig, thanks for that, that looks exactly like what i wanted :)
<aszlig> Tipping_Fedora: hm, menuentry might be case-sensitive, try making it lower-case
<pxc> is there any variable in stdenv or anything that represents the Nix prefix (e.g., ‘/nix’)?
<Tipping_Fedora> aszlig, then rebuild bootloader?
<aszlig> pxc: there is $NIX_STORE
<aszlig> Tipping_Fedora: no need to use NIXOS_INSTALL_BOOTLOADER this time, because it's already installed
<NixOS_GitHub> [nixpkgs] nyarly opened pull request #25199: Quoting "$vars" in xsession (master...xsession_quoting) https://git.io/v9tRB
<Tipping_Fedora> ok testing
<Svarog> unrelated question, i currently have to do iwconfig <device> power off on every boot, i am guessing network manager possibly turns it on every time? what is the nixos way of disabling this on boot? normally i'd mess with stuff under /etc/NetworkManager/conf.d
<Svarog> it's to disable power management for wifi
<Tipping_Fedora> error invalid EFI file path
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<aszlig> Tipping_Fedora: ah, okay... one second
<Tipping_Fedora> but the option IS there
<aszlig> Tipping_Fedora: chainloader (hd1,0)/EFI/...
<pxc> aszlig: I need the path to the Nix default profile (e.g. /nix/var/nix/profiles/default). Should I just do some hack to take the first dir in $NIX_STORE or is there something more appropriate? (& thank you btw)
<aszlig> Tipping_Fedora: i suppose it's the first partition on hd1, right?
<Tipping_Fedora> replace what with that?
<aszlig> Tipping_Fedora: the ESP partition i mean
<Tipping_Fedora> aszlig, yea, and the fedora FS is partition 2 and swap is 3
<aszlig> Tipping_Fedora: okay, do you know the path to the efi binary?
<Tipping_Fedora> no...
<Tipping_Fedora> I might be able to find it though
<aszlig> Tipping_Fedora: fedora 25, right?
<Tipping_Fedora> aszlig, yea
<Tipping_Fedora> fresh install
<Tipping_Fedora> I found an EFI folder on the boot partiton of fedora
<Tipping_Fedora> is that what Im looking for?
<aszlig> Tipping_Fedora: yeah
<Tipping_Fedora> ok
<aszlig> Tipping_Fedora: look for files ending with .efi
<Tipping_Fedora> I see none
pxc has quit [(Quit: WeeChat 1.7)]
<Tipping_Fedora> should I try the fedora FS?
<aszlig> pxc: what are you trying to achieve in the first place?
<aszlig> Tipping_Fedora: nah, it should be somewhere in the efi directory
<Tipping_Fedora> thats empty
<aszlig> oh
<Tipping_Fedora> yea...
<Tipping_Fedora> what next?
<aszlig> Tipping_Fedora: can you paste an ls -laR of the ESP of the fedora disk?
<Tipping_Fedora> umm
<Tipping_Fedora> let me try
whenov has joined #nixos
jsgrant__ has joined #nixos
<Tipping_Fedora> aszlig, http://termbin.com/ty9m
jsgrant__ has quit [(Remote host closed the connection)]
<Tipping_Fedora> aszlig, is that what you wanted?
jsgrant__ has joined #nixos
<aszlig> Tipping_Fedora: it looks like the ESP is on another partition on fedora
whenov has quit [(Quit: Leaving.)]
<Tipping_Fedora> aszlig, perhaps the main FS?
<aszlig> Tipping_Fedora: what do you get with: file -s /dev/sdb*
<Tipping_Fedora> command not found
<Tipping_Fedora> lol
<Tipping_Fedora> give me a sec
<aszlig> well, alternatively: fdisk -l /dev/sdb
<Tipping_Fedora> http://termbin.com/sfl7
<Tipping_Fedora> want me to sudo it?
<aszlig> yep :-D
<Tipping_Fedora> http://termbin.com/aval
<aszlig> oh
<Tipping_Fedora> ?
<aszlig> that's weird... it's not using GPT at all, are you sure this is an UEFI setup?
<Tipping_Fedora> I installed it as so
<Tipping_Fedora> hmm
<Tipping_Fedora> and it shows as it in bios boot menu
<aszlig> ah, okay... so i'm misinformed that UEFI needs GPT
<Tipping_Fedora> it perfers it
<Tipping_Fedora> on systems as debian and fedora it seems no to
<aszlig> was that ls -laR output from before from /dev/sdb1?
<Tipping_Fedora> I know windows does not
<Tipping_Fedora> no
<Tipping_Fedora> /dev/sdb*
<aszlig> i mean that one: http://termbin.com/ty9m
jsgrant has joined #nixos
<Tipping_Fedora> yea
<Tipping_Fedora> I think so
<Tipping_Fedora> working right from the partition
<Tipping_Fedora> opened a terminal there
<aszlig> so you explicitly mounted /dev/sdb1, right?
<Tipping_Fedora> yea
<Tipping_Fedora> well mounted it from the GUI
<aszlig> what does fdisk -l /dev/sdb say?
<Tipping_Fedora> sudo it?
<aszlig> yep
<Tipping_Fedora> http://termbin.com/8rpe
<aszlig> hmm... okay, let's try this a bit more explicit then
<aszlig> Tipping_Fedora: sudo sh -c 'mount -o ro /dev/sdb1 /mnt; ls -laR /mnt; umount /mnt'
<Tipping_Fedora> unmount it first?
<aszlig> if possible, yes
<Tipping_Fedora> wait
<Tipping_Fedora> what the shit?
<Tipping_Fedora> its reporting as sdb2 in the gui manager
<aszlig> ah, there we go :-)
<Tipping_Fedora> gparted reports it as partition 1
<Tipping_Fedora> im so confused
<aszlig> so they really have an ext4 boot partition in *addition* to the ESP
<Tipping_Fedora> seems so
<Tipping_Fedora> ehhh
<Tipping_Fedora> so hd1,2
<Tipping_Fedora> right?
<aszlig> no, hd1,0
<aszlig> because we need the efi image
<aszlig> Tipping_Fedora: the only thing that's left now is finding the actual efi binary
<Tipping_Fedora> test?
<Tipping_Fedora> test
<aszlig> Tipping_Fedora: so can you please paste an output of ls -laR of the ESP this time? =)
<Tipping_Fedora> error hd1,0 not found
<Tipping_Fedora> and ok
<Tipping_Fedora> mount: mount point /mnt does not exist
<Tipping_Fedora> ls: cannot access '/mnt': No such file or directory
<Tipping_Fedora> umount: /mnt: mountpoint not found
<Tipping_Fedora> Use netcat.
<aszlig> Tipping_Fedora: ah, wait... hd1,1
<Tipping_Fedora> ok then?
<Tipping_Fedora> thats a thing?
<Tipping_Fedora> so... it seems I dont have /mnt
<aszlig> Tipping_Fedora: yep, so:
MP2E has joined #nixos
<Tipping_Fedora> make it?
<Tipping_Fedora> mkdir /mnt?
<aszlig> Tipping_Fedora: yep, you can remove it afterwards if you want
<Tipping_Fedora> ok
<Tipping_Fedora> ill keep it though
<Tipping_Fedora> http://termbin.com/80jk
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
<aszlig> Tipping_Fedora: chainloader (hd1,1)/EFI/fedora/grubx64.efi
<Tipping_Fedora> +1?
<aszlig> Tipping_Fedora: without +1
<Tipping_Fedora> ok
<Tipping_Fedora> also I went to gnome and it seems my icons have deaulted to the script icons, it there a fix for that?
<Tipping_Fedora> (ill test in a sec for the fedora menu)
<aszlig> Tipping_Fedora: hm, no idea about gnome, sorry
<Tipping_Fedora> btw
<Tipping_Fedora> all lowercase
<aszlig> yeah
<Tipping_Fedora> welp rebooting for test
<Tipping_Fedora> aszlig, throws me to a grub recovery prompt
<Tipping_Fedora> (or a grub prompt in general, I cant tell the diffrenece usually)
<Tipping_Fedora> would it be easier just to boot fedora directly?
<aszlig> Tipping_Fedora: okay, another idea: (hd1,1)/EFI/BOOT/BOOTX64.EFI
<Tipping_Fedora> replace what with that?
<Tipping_Fedora> nvm
<Tipping_Fedora> I think I know
<Tipping_Fedora> testing
<aszlig> that uses in turns uses the fallback bootloader, which should be the same as if you get into the boot menu during POST
<aszlig> s/uses //
<Tipping_Fedora> ehhh
<Tipping_Fedora> now I get some not found errors
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
<Tipping_Fedora> and it flashes back to the nixo boot loader to fast for me to get a good look
<Tipping_Fedora> I get 4 not founds
<aszlig> you have "chainloader (hd1,1)/EFI/BOOT/BOOTX64.EFI" now, right?
<Tipping_Fedora> yea
<aszlig> then try to replace BOOTX64.EFI with fallback.efi
<Tipping_Fedora> test
<Tipping_Fedora> system boot order not found initilizing (instert thing here) and then the system reboots
<Tipping_Fedora> full post and everything
<Tipping_Fedora> I cant quite get what came after the initizlizing
<aszlig> Tipping_Fedora: okay, then let's forget about chainloading...
<Tipping_Fedora> ok
<aszlig> Tipping_Fedora: replace the chainloader command with: configfile (hd1,1)/EFI/fedora/grub.cfg
<Tipping_Fedora> test
<aszlig> that should directly use the grub config file from fedora
<Tipping_Fedora> well
<Tipping_Fedora> I get the fedora grub
<Tipping_Fedora> but
<Tipping_Fedora> 3 errors
<Tipping_Fedora> as follow
<Tipping_Fedora> error: no symbol tables
<Tipping_Fedora> error" cant find command 'lin*****efi'
<Tipping_Fedora> error: cant find initrdefi
<Tipping_Fedora> the *** is me not being able to me out this picture I took
<Tipping_Fedora> it might be linuxefi
<Tipping_Fedora> ideas?
vaibhavsagar has joined #nixos
<aszlig> i guess that's because the grub version fedora is using is a bit different then
stepho has joined #nixos
<aszlig> so the safest bet is getting back to chainloading
<Tipping_Fedora> ok...
stepho has quit [(Excess Flood)]
stepho has joined #nixos
<Tipping_Fedora> so... whats next?
<aszlig> Tipping_Fedora: well, we got to the fedora grub prompt before...
<aszlig> Tipping_Fedora: so one sec...
ditadi has joined #nixos
<Tipping_Fedora> I shall wait
CMCDragonkai has joined #nixos
CMCDragonkai is now known as Guest35620
Guest35620 is now known as CMCDragonkai
<Tipping_Fedora> aszlig, anything I can give you to help?
nicknovi1 has quit [(Ping timeout: 260 seconds)]
jacob has joined #nixos
jacob is now known as Guest60386
yee has joined #nixos
<aszlig> Tipping_Fedora: well, you could get into the grub shell and try to chainload different .efi files to see whether *something* works...
<Tipping_Fedora> ok
<Tipping_Fedora> lets start
<aszlig> you should be able to tab-complete through the directories
byteflame has joined #nixos
<Tipping_Fedora> ok let me try here
byteflame has quit [(Ping timeout: 258 seconds)]
<Tipping_Fedora> no far nothing
ditadi has quit [(Ping timeout: 260 seconds)]
yee has quit [(Quit: Textual IRC Client: www.textualapp.com)]
<Tipping_Fedora> well
<Tipping_Fedora> I got something
<Tipping_Fedora> 4 cant load messages
<Tipping_Fedora> or well cant find messages
<Tipping_Fedora> yea
<Tipping_Fedora> 1 sec
<Tipping_Fedora> test
<Tipping_Fedora> errors
<Tipping_Fedora> no symbol table
<aszlig> ah, the same errors
<Tipping_Fedora> cant find command 'linuxefi
<Tipping_Fedora> cant find command initrdefi
<Tipping_Fedora> those 3
<Tipping_Fedora> ideas>
<Tipping_Fedora> ?*
<Tipping_Fedora> test
<aszlig> Tipping_Fedora: at least it's the same size of the grubx64.efi but see https://unix.stackexchange.com/questions/195128/whats-the-difference-between-grubx64-efiand-gcdx64-efi
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v9tge
<NixOS_GitHub> nixpkgs/master b1750d6 Jason A. Donenfeld: linux-chromiumos: remove 3.14...
<NixOS_GitHub> nixpkgs/master bd47d04 Jörg Thalheim: Merge pull request #25146 from zx2c4/remove-old-chromiumos...
<Tipping_Fedora> IT WORKS
<Tipping_Fedora> FINALLY
<Tipping_Fedora> aszlig, Thank you so much for the help
<Tipping_Fedora> and for the love of god can we document this hell somewhere for future people
<aszlig> Tipping_Fedora: cool
<aszlig> Tipping_Fedora: i'll document this along with adding the test for grub-efi
<Tipping_Fedora> good
<Tipping_Fedora> cause geez
<Tipping_Fedora> most people would have given up on nixos cause of this
* Tipping_Fedora wont, and will enjoy even more now
<aszlig> Tipping_Fedora: now i'm not quite sure whether it was the weird gcdx64 thingy or the set root=...
<Tipping_Fedora> i think it was both
<aszlig> Tipping_Fedora: can you please test this again by replacing gcdx64 with grubx64?
<Tipping_Fedora> set root so it could find files at the least
<Tipping_Fedora> sure
MercurialAlchemi has joined #nixos
<Tipping_Fedora> test
<Tipping_Fedora> aszlig, I can now confirm it seems to be both
<aszlig> okay, so it really was the set root
<aszlig> damn...
<Tipping_Fedora> testing revert
<aszlig> so i'll document this with grubx64.efi
Shados has quit [(Ping timeout: 260 seconds)]
<Tipping_Fedora> and we work at revert
<Tipping_Fedora> aszlig, once again thank you for the help
<Tipping_Fedora> I shudder to think how long it would have taken me other wise
Shados has joined #nixos
<Tipping_Fedora> welp off to go configure fedora
<Tipping_Fedora> if you want/need me pm me and my znc client should catch it and then ill get it on desktop in the morning
marsel has joined #nixos
proteus-guy has quit [(Ping timeout: 260 seconds)]
justelex has joined #nixos
justelex has quit [(Excess Flood)]
justelex has joined #nixos
reinzelmann has joined #nixos
justelex has quit [(Client Quit)]
katyucha is now known as Guest21870
Guest21870 has quit [(Killed (verne.freenode.net (Nickname regained by services)))]
katyucha has joined #nixos
katyucha_ has joined #nixos
moet has joined #nixos
kuznero has joined #nixos
<simp__> How do I figure out the reason why NixOS is crashing?
<simp__> I'll go on for an hour or so of using and then it crases
<simp__> crashes*
<CMCDragonkai> first place would be the logs
<CMCDragonkai> journalctl --follow
<CMCDragonkai> or kernel logs, and observe what you are doing when it crashed
<simp__> journalctl --follow gives me the logs before the crash?
marsel has quit [(Ping timeout: 260 seconds)]
proteus-guy has joined #nixos
<phreedom> copumpkin: yes :)
sdll``` has quit [(Ping timeout: 255 seconds)]
ogkloo has quit [(Ping timeout: 260 seconds)]
freusque has joined #nixos
rinwa has quit [(Quit: Leaving)]
<NixOS_GitHub> [nixpkgs] ebzzry opened pull request #25201: Fix typo in trivial.nix (master...fix-typo) https://git.io/v9twq
justbeingglad has joined #nixos
delta__ has joined #nixos
sivteck has joined #nixos
<aszlig> simp__: to get the logs for the previous boot try journalctl -b -1
<simp__> thanks aszlig
<delta__> I just installed python2.7 and python2.7-Jinja2 but I when I try 'from jinja2 import Template' I get 'ImportError: No module named jinja2'. Can anyone help?`
<NixOS_GitHub> [nixpkgs] mt-caret opened pull request #25202: 3to2: init at 1.1.1 (master...3to2) https://git.io/v9two
<kuznero> How to install single package from unstable channel and keep other packages from stable?
<kuznero> as a system package I mean
<eacameron> Anyone have an example of using NixOS acme stuff to set up HTTPS with apache?
<eacameron> I have it with nginx but now I need apache
<kuznero> Ah, it perhaps might be running `nix-env -i` as root ;)
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/v9twd
<NixOS_GitHub> nixpkgs/master 72f2b50 aszlig: nixos/grub: Add another example for extraEntries...
nil has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
<kuznero> But is there any way to put some packages from unstable channel in my `systemPacakges` in my *.nix files?
<aszlig> kuznero: environment.systemPackages = with import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz) {}; [ pkg1 pkg2 ... ];
<aszlig> kuznero: of course you could also use channels for that
<kuznero> aszlig: thanks! That is exactly what I was looking for. I can indeed use channels, but then as far as I know I will have to use unstable for all my systemPackages, right?
<aszlig> kosmikus: no, you can just add another channel with a different name
<aszlig> kosmikus: eg. nixos-unstable instead of nixos
<aszlig> s/kosmikus/kuznero/
<aszlig> kuznero: also, if you want to have consistency in overrides, it might also make sense to use it like this:
MichaelRaskin has quit [(Quit: MichaelRaskin)]
<aszlig> kuznero: environment.systemPackages = with import <nixpkgs-unstable> { inherit (config.nixpkgs) config system; }; [ pkg1 pkg2 ... ];
oever has joined #nixos
oever is now known as vandenoever
<kuznero> aszlig: and how do I declare nixpkgs-unstable? Can it be done in *.nix files?
<aszlig> kuznero: nix-channel --add https://nixos.org/channels/nixpkgs-unstable
<aszlig> kuznero: by default the channels are available in NIX_PATH
<kuznero> aszlig: this is clear, but is there any way to do this from nix-expression or I have to use nix-channel utility?
<aszlig> from the nix expression like i wrote before with fetchTarball
<aszlig> you could also use it like this:
<aszlig> -I nixpkgs-unstable=https://github.com/NixOS/nixpkgs-channels/archive/nixpkgs-unstable.tar.gz
<aszlig> (-I to nixos-rebuild, nix-build, nix-instantiate, whatnot)
<kuznero> aszlig: thanks! will try to go with nix-expression
<aszlig> np, will try to go to sleep :-)
k2s has joined #nixos
k2s has quit [(Client Quit)]
endformationage has quit [(Quit: WeeChat 1.7)]
vandenoever has quit [(Remote host closed the connection)]
byteflame has joined #nixos
ogkloo has joined #nixos
justbeingglad has left #nixos []
taktoa has joined #nixos
taktoa has quit [(Remote host closed the connection)]
byteflame has quit [(Ping timeout: 260 seconds)]
nil has joined #nixos
dcz has joined #nixos
kampfschlaefer has joined #nixos
ambro718 has joined #nixos
bennofs has joined #nixos
gilligan_ has joined #nixos
marsel has joined #nixos
sivteck has quit [(Read error: Connection reset by peer)]
DutchWolfie has joined #nixos
thc202 has joined #nixos
isHavvy has joined #nixos
michiel_l_ has joined #nixos
adarqui has joined #nixos
tommyangelo has quit [(Ping timeout: 260 seconds)]
earldoug1as has joined #nixos
goibhniu has joined #nixos
engblom_ has joined #nixos
tinkyhol1oway has joined #nixos
Havvy has quit [(Remote host closed the connection)]
tg has quit [(Quit: Leaving)]
tinkyholloway has quit [(Write error: Broken pipe)]
engblom has quit [(Write error: Broken pipe)]
adarqui_ has quit [(Write error: Broken pipe)]
michiel_l has quit [(Write error: Broken pipe)]
[0__0] has quit [(Remote host closed the connection)]
earldouglas has quit [(Remote host closed the connection)]
tnias has quit [(Remote host closed the connection)]
tnias has joined #nixos
tg has joined #nixos
Tucky has joined #nixos
vandenoever has joined #nixos
moet has quit [(Ping timeout: 255 seconds)]
<vandenoever> i'd like to write some scripts to run tests on nix packages in a controlled environment, is there something for this?
<bennofs> vandenoever: nixos has some infrastructure to run VM tests
<bennofs> vandenoever: but i don't know how it works
<vandenoever> is there something with containers too? would be faster then ramping up vms
<gchristensen> what kind of tests? what kind of environment?
<gchristensen> what kind of packages?
<vandenoever> i'm trying for about a year to package kmail 5
<vandenoever> it has tons of packages and complex dependencies
<vandenoever> testing the packages is a lot of manual work and the packages interact with my environment
<vandenoever> which is error prone, so i'd like to have script that makes a start env, runs a command and exits
derjohn_mob has quit [(Ping timeout: 255 seconds)]
<vandenoever> the command could be anything. it should create some report
tommyangelo has joined #nixos
<gilligan_> Hm.. so enableParallelBuilding obviously impacts parallel make builds - i am confused though that it seems to use build-cores and not build-max-jobs ? I would assume that if I have enableParallelBuilding enabled that it would call `make` with `-j ${build-max-jobs}` ?
<gilligan_> that does not seem to be the case?
<Profpatsch> vandenoever: Look at the VM tests section in the nixpkgs manual
<Profpatsch> There’s also nixpkgs tests with no VM, but I haven’t pushed them yet.
<sphalerite> vandenoever: you can probably also just write them as plain nix expressions. If you set $HOME to the build directory and write the test report to $out that might work, unless the tests need access to X or D-Bus.
[0__0] has joined #nixos
<vandenoever> Profpatsch: is that in https://nixos.org/nixpkgs/manual/ ?
dcz has quit [(Ping timeout: 255 seconds)]
<sphalerite> vandenoever: but you should probably be able to spin up a D-Bus instance for it as well. Not sure about faking X though
<Profpatsch> vandenoever: aye
thetet has joined #nixos
<vandenoever> sphalerite: yes, they need dbus
<sphalerite> you can probably use dbus-launch and set the appropriate environment variables to have that working too
<vandenoever> using a nix expression is an interesting approach, there's 'fake' X clients too btw
<sphalerite> Well it'd be a fake X server in this case
<sphalerite> but yeah, I'm sure there is one out there
thetet has left #nixos []
<vandenoever> and i can use some nix expression practice, after years of nix use, they still scare me
FRidh has joined #nixos
<sphalerite> Anyway, as long as you keep everything inside the build directory it should not be affected by any outside factors — after all, the whole point of nix is to have package builds as pure as possible :)
ambro718 has quit [(Ping timeout: 260 seconds)]
<DutchWolfie> Hello, perhaps a stupid question to ask in here but I would love to get some guidance
mudri has joined #nixos
<DutchWolfie> Been using Linux distro's since 2006 and running one or more servers for different websites, using kvm vps
Itkovian has joined #nixos
<DutchWolfie> New to containers and found Nixos when in search for filesystem versioning, nixos mentioned on the wike page for NILFS2
deepwater has joined #nixos
<DutchWolfie> Need to study the technical stuff concerning containers but Nixos seems and feels as if it is somehow ahead of docker et all
<vandenoever> using the nix build system to run tests is an elegant idea, are there tests like that already? otherwise, i'll just start with an expression that writes 'hello world'
<DutchWolfie> Since there are only 24 hours a day, could you tell me what is the whise thing to do, dive into the container hype or spend time getting my head around Nix?
<srhb> DutchWolfie: Do both, sleep too little, cry that containers suck and you're not allowed to use NixOS in production.
<srhb> DutchWolfie: That's my approach at least.
sivteck has joined #nixos
__Sander__ has joined #nixos
JagaJaga has joined #nixos
<manveru> srhb: my life in one line :P
<srhb> manveru: I sympathize. :-)
jensens has joined #nixos
<manveru> at least i can build those containers with nix...
<srhb> manveru: I should try getting permission to do that at least...
<manveru> though everyone is like "why is that image from 47 years ago?" :)
<manveru> vandenoever: nixos tests are a thing
<gilligan_> manveru, hey there.. you are contributing to yarn2nix right?
<manveru> gilligan_: yeah
<gilligan_> manveru, want to give it a try yesterday but didn't get very far
<vandenoever> manveru: what's the way to run them?
<manveru> you made that issue?
<gilligan_> if "that" issue is the one I pasted then yes hehe
<manveru> yeah :)
<DutchWolfie> srhb: sleep deprived already :) is Nixos used that much in production then?
* vandenoever must be blind, i do not see the vm tests section in https://nixos.org/nixpkgs/manual/
<gilligan_> can someone confirm for me that enableParallelBuilding really only looks at the configured buildCores for what it passes on to `make -jN` ?
<srhb> DutchWolfie: No idea. Probably not.
<bennofs> vandenoever: not sure if that's documented :/
derjohn_mob has joined #nixos
<goibhniu> DutchWolfie: FWIW here's a list of companies using NixOS: https://www.reddit.com/r/NixOS/comments/5dz8fp/list_of_companies_using_nixos/
nschoe has joined #nixos
<manveru> gilligan_: there's only one place using `ln` in yarn2nix... and i have no idea how that might be caused there
<manveru> maybe on the js side...
<vandenoever> bennofs: thanks!
<manveru> gilligan_: any chance you could share the yarn.lock? even if it's anonymized
nslqqq has quit [(Ping timeout: 268 seconds)]
<gilligan_> manveru, i will try to take some time to create a minimal test case
<manveru> that'd be great :)
<manveru> sorry, but without that i can't really tell what's going on
<manveru> i use it in projects with a few thousands packages and it works fine
<gilligan_> I don't know. Am i using it wrong? it is somewhat awkward that you have to copy around stuff
<manveru> copy stuff?
<gilligan_> Well the buildYarnPackage is in the default.nix of the yarn2nix repo and that one also uses that nix/bin/something.js file
reinzelmann has quit [(Quit: Leaving)]
<manveru> i use it like this :)
<bennofs> manveru, gilligan_: hmm Profpatsch seems to be also working on yarn2nix? https://github.com/Profpatsch/yarn2nix/
<manveru> the package.json is a level higher, so you'd need to adjust the paths
<manveru> Profpatsch: that's not related
<manveru> err, bennofs
Ivanych has quit [(Quit: Leaving.)]
<manveru> it's haskell, so nobody will ever understand it anyway ;)
Tucky has quit [(Quit: WeeChat 1.7.1)]
<bennofs> manveru: does your yarn2nix have a derivation per node_module or only a derivation per app?
<manveru> it's one derivation for the whole app
<vandenoever> bennofs: unf, the first example already fails: nix-build '<nixpkgs/nixos/tests/login.nix>'
<vandenoever> machine# ioctl(KVM_CREATE_VM) failed: 16 Device or resource busy
guillaum2 has quit [(Ping timeout: 240 seconds)]
<bennofs> vandenoever: um sorry, i don't know anything about nixos tests at all, only that they exist :/
<vandenoever> bennofs: ok, np, i think perhaps i should try when virtualbox is not running
<bennofs> vandenoever: perhaps you need to setup libvirt as well?
<bennofs> only a wild guess
<vandenoever> '6 out of 6 tests succeeded' it was virtualbox running while i ran the tests
<bennofs> oh nice
<vandenoever> i guess there can be only one :-P
<gilligan_> manveru, do you by any chance have some working example that you could share? that would be helpful ;)
<gilligan_> Profpatsch, nice to see you also started some yarn2nix approach
<gilligan_> Profpatsch, it would really, really help if you used qualified imports or at least only imported the functions you are using from the respective modules.
<manveru> gilligan_: gimme a minute
Ivanych has joined #nixos
<gilligan_> Profpatsch, feeling lost looking at FromYarnLock.hs
nslqqq has joined #nixos
simukis_ has joined #nixos
Wizek_ has joined #nixos
systemfault has quit [(Quit: Bye!)]
<DutchWolfie> Nixos first it will be!
bennofs has quit [(Ping timeout: 260 seconds)]
nslqqq has quit [(Ping timeout: 252 seconds)]
<ben> Is it possible for a derivation to specify that its source gotta be fetched through a specific http proxy?
<manveru> it's amazing how many dependencies one needs to output a line of text :D
<gilligan_> lol
<gilligan_> manveru, thanks for the effort! i will give it a try
<manveru> i gotta get back to work, sorry
<gilligan_> same here
<gilligan_> meeting
<gilligan_> ;-)
<gilligan_> laters!
RayNbow` has quit [(Ping timeout: 268 seconds)]
goibhniu1 has joined #nixos
goibhniu has quit [(Ping timeout: 240 seconds)]
Tucky has joined #nixos
hamishmack has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
Infinisil has joined #nixos
makefu has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/v9t5q
<NixOS_GitHub> nixpkgs/master 10b95d7 Gabriel Ebner: emscripten: 1.37.9 -> 1.37.10
makefu has joined #nixos
thetet has joined #nixos
thetet has quit [(Remote host closed the connection)]
delta__ has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/v9t5g
<NixOS_GitHub> nixpkgs/master 9ff08d2 Gabriel Ebner: perlPackages.version: 0.9912 -> 0.9918
FRidh has quit [(Quit: Konversation terminated!)]
Svarog has quit [(Quit: Ex-Chat)]
peacememories has joined #nixos
byteflame has joined #nixos
thetet has joined #nixos
nslqqq has joined #nixos
gilligan_ has quit [(Ping timeout: 255 seconds)]
byteflame has quit [(Ping timeout: 260 seconds)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<vandenoever> to create a test for nix-build, can I avoid mkDerivation? because that needs a src
dcz has joined #nixos
CMCDragonkai has quit [(Ping timeout: 240 seconds)]
ThatDocsLady has joined #nixos
usoban has joined #nixos
<NixOS_GitHub> [nixpkgs] sigma opened pull request #25204: hugo: 0.20.2 -> 0.20.5 (master...pr/hugo-0.20.5) https://git.io/v9td2
nslqqq has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixops] 4levels opened pull request #653: Tag 1.5 (master...tag-1.5) https://git.io/v9tdr
justelex has joined #nixos
<NixOS_GitHub> [nixops] 4levels closed pull request #653: Tag 1.5 (master...tag-1.5) https://git.io/v9tdr
<usoban> how do I crate a package from binary which is on local filesystem? `src = /home/foobar/mybinary` does not seem to work (build directory stays empty)
makefu has quit [(Remote host closed the connection)]
makefu has joined #nixos
chakerbenhamed has joined #nixos
gilligan_ has joined #nixos
Mercuria1Alchemi has joined #nixos
<goibhniu1> usoban: maybe this helps https://nixos.org/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F
goibhniu1 is now known as goibhniu
MercurialAlchemi has quit [(Ping timeout: 245 seconds)]
maikklein has joined #nixos
<chakerbenhamed> I am trying to run mongodb instance inside of nix-shell. I installed it using nix-shell -p mongodb. When I try to run mongod I get "initAndListen: 29 Data directory /data/db not found., terminating". Even After creating the folder manually (wich I don't think is the right decision). I Get another error about lock.
<ben> Is there a sensible way to express "if the path exists, import the file, otherwise use this default expression" in nix?
<ben> pathExists I guess
eacameron has quit [(Remote host closed the connection)]
<simukis_> how do I use a custom nix package? Namely I’m interested in trying out 4.11-rc8. I’d expect it be something like me putting an appropriate `.nix` somewhere and specifying it somewhere in my configuration.nix
<simukis_> trying out linux 4.11-rc8
<simukis_> ideally stuff under linuxPackages(_4_11_rc8, or something) would still work fine
<maikklein> is https://github.com/NixOS/nixpkgs not the same as nix-env -qaP?
<maikklein> for version 17
<maikklein> Do I have to add it manually?
<goibhniu> maikklein: a "channel" is generated from the expressions in that repo ... so it's not the same
<goibhniu> you can add a channel, and/or use a clone of nixpkgs
nslqqq has joined #nixos
newhoggy has joined #nixos
<dcz> if a GUI package does not work in nix-shell, is this a bug?
ixxie has joined #nixos
<makefu> maikklein: it depends on your channel. nixos-unstable should be quite close to the master. the stable channels are different, e.g. 17.03 https://github.com/NixOS/nixpkgs/tree/release-17.03
<the-kenny> dcz: likely, what package is broken?
<steveeJ> clever: what is the magic in "${./.}" as opposed to a plain ./.? what function is called that causes it to snapshot the path in the nix-store?
<dcz> the-kenny: konversation does not start: http://wklej.org/id/3096460/
bennofs has joined #nixos
<dcz> I'm guessing this is a dbus message
afics has quit [(Ping timeout: 240 seconds)]
Infinisil has quit [(Quit: leaving)]
<the-kenny> dcz: konversation works for me in nix-shell (I'm on master)
<dcz> the-kenny: can the host OS make a difference?
<maikklein> makefu: Shouldn't teamspeak be in 17.03? The last change is 9months old
<the-kenny> Oh you're not on NixOS. Yeah, that's a possibility
<the-kenny> dcz: anyway, reporting this as a bug sounds reasonable to me :)
<dcz> the-kenny: okay, I'll see if I have the time first :P
<makefu> maikklein: teamspeak_client is in the 17.03 channel
<makefu> init of teamspeak is Date: Fri Dec 14 01:50:19 2007
<maikklein> I have added "nix-channel --add https://nixos.org/channels/nixos-17.03" and updated the channel
nslqqq has quit [(Ping timeout: 240 seconds)]
<dcz> does gcc default to -std=gnu++11 with nix? I haven't seeen that flag in my other builds
<makefu> maikklein: ~/nixpkgs git reset --hard 99dfb6dce37edcd1db7cb85c2db97089d9d5f442
<makefu> ~/nixpkgs nix-env -qaP -f . | grep -i teamspeak
<makefu> teamspeak_client teamspeak-client-3.0.19.4
<makefu> the git-rev is from the channel
sivteck has quit [(Read error: Connection reset by peer)]
exarkun has joined #nixos
gilligan_ has quit [(Quit: Leaving)]
<maikklein> makefu: I am super confused right now, should I have cloned the nixpgs repo to ~/ and then execute nix-env inside the repo? Is this documented somewhere?
<maikklein> All I found in the manual was https://nixos.org/nixos/manual/index.html#sec-ad-hoc-packages
kuznero has quit [(Quit: Page closed)]
<usoban> goibhniu: thanks, followed the code in the link, but now I'm stuck at some other error: `/nix/store/zz7zy695h8lrhbqm4p587ixz84bqkzda-stdenv/setup: line 882: 1: command not found`
deepwater has quit [(Ping timeout: 255 seconds)]
<makefu> maikklein: it was just for testing if the rev you are using right now contains teamspeak (which it does). i am not too fond with using channels, i explicitly pin the nixpkgs revision i use for all my machines. sorry for confusing you :)
<maikklein> do you have you configuration file on github?
<maikklein> or anywhere public?
<maikklein> or know any public non trivial configuration files?
<goibhniu> usoban: I'm afraid that's where it gets tricky, there's a helpful stackoverflow post about how to track down the missing libraries ... lemme see if I can find it
<makefu> yes, sure. it is a bit more complicated but you surely can get the gist when looking into it
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/v9txZ
<NixOS_GitHub> nixpkgs/master d25f7c9 Marius Bergmann: yarn: 0.22.0 -> 0.23.2 (#25189)
newhoggy has quit [(Remote host closed the connection)]
<makefu> this is the configuration of my laptop: http://cgit.euer.krebsco.de/stockholm/tree/makefu/1systems/x.nix
<usoban> ah so I'm missing the libraries :) Not obvious from the error message :)
<maikklein> makefu: thanks
nslqqq has joined #nixos
<makefu> the pinning is done by http://cgit.euer.krebsco.de/stockholm/tree/makefu/2configs/default.nix#n23 , the basic idea is to clone nixpkgs into /var/src/nixpkgs and setting the NIX_PATH=nixpkgs=/var/src/nixpkgs
<goibhniu> usoban: yeah, not at all! :D ... sorry, I can't find the post ... but objdump helps
<makefu> setting the configuration.nix can be done by "NIX_PATH=nixos-config=<path-to-my-config>"
<usoban> goibhniu: thanks for the direction :)
<NixOS_GitHub> [nixpkgs] edwtjo pushed 1 new commit to master: https://git.io/v9txF
<NixOS_GitHub> nixpkgs/master 45470c6 Edward Tjörnhammar: nixos: static ids for jackett, radarr, sonarr
<NixOS_GitHub> [nixpkgs] edwtjo closed pull request #25105: nixos: static ids for jackett, radarr, sonarr (master...jackett-radarr-sonarr-ids) https://git.io/v9Ud8
<makefu> then you can do `NIX_PATH=.... nixos-rebuild switch` and it will build exactly this system
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] orivej opened pull request #25205: Fix parsing @args.rsp compiler arguments (master...rsp) https://git.io/v9tp6
MP2E has quit [(Quit: sleep)]
bennofs has quit [(Quit: WeeChat 1.7)]
vaibhavsagar has joined #nixos
CMCDragonkai has joined #nixos
CMCDragonkai is now known as Guest45287
guillaum2 has joined #nixos
<sphalerite> vandenoever: if you set unpackPhase to ":" it won't need an src
dcz has quit [(Ping timeout: 240 seconds)]
thineye has joined #nixos
<vandenoever> sphalerite: thanks, i've found that setting builder also avoids the need for src
<sphalerite> yeah, although then you lose most stdenv functionality
<vandenoever> i've an expression now has only name and builder
<sphalerite> but if that's all you need then you could also just use the derivation builtin rather than stdenv
<vandenoever> sphalerite: i just want to run a script given a particular package
<vandenoever> sphalerite: would that be simple s/mkDerivation/derivation?
CcxWrk has quit [(Ping timeout: 260 seconds)]
<vandenoever> i also use nativeBuildInputs to get the package i want to test
<sphalerite> don't think so, I think the set passed to derivation also needs a system attribute or something. Probably easier to just stick with stdenv
<jophish> Are there any circumstances where `|| true` after a command wouldn't work?
<sphalerite> jophish: to achieve what?
<jophish> sphalerite: to ignore that command if it fails
<thineye> hi, I am trying to set file attributes in postInstall (user.pax.flags), and if I test it with getfattr in postInstall, everything ist ok. But if I test it after everything finished manually with getfattr on the file in the store....there is no attribute
<sphalerite> thineye: yeah, the store only supports a very limited set of filesystem attributes
<sphalerite> I think execute permission is all there is
<sphalerite> jophish: I don't think so, although you need to consider precedence if there's another || or an && somewhere in the command
<thineye> sphalerite: thanks. Can I manipulate it somehow, somewhere, that the store will support it?
<makefu> i just saw in https://nixos.org/nixos/manual/index.html#sec-customising-packages "Unfortunately, Nixpkgs currently lacks a way to query available configuration options." but there is nixos-option to query options, no?
<jophish> Hmm, I don't think so, the line is just: patchelf --set-rpath "${gccCrossStageFinal.gcc}/aarch64-linux-gnu/lib64" "$i" || true
<sphalerite> jophish: of course it also won't work with software that does exit codes all wrong
<jophish> it is in a for loop, perhaps that could do it
<sphalerite> makefu: that's for nixos options, not for nixpkgs options
<makefu> ah ok
<jophish> sphalerite: patchelf is returning 1 I think
<sphalerite> makefu: like allowUnfree
ixxie has quit [(Ping timeout: 260 seconds)]
CcxWrk has joined #nixos
<makefu> nixos-option nixpkgs.config.allowUnfree
<jophish> indeed when I check this in my shell `patchelf missing || true` returns 0
<makefu> does not work it seems but `nixos-option nixpkgs.config` works ...
<sphalerite> jophish: probably neater to make running patchelf conditional on the file's existence
<sphalerite> makefu: yeah. But within nixpkgs.config there's no way to query options, and that's what the bit you quoted fomr the manual means
<jophish> sphalerite: well, it fails when the file isn't an elf either
<jophish> (and that fixes toctou)
<jophish> not that I'm expecting that to be an issue
<sphalerite> if you've got toctou issues in a nix builder... I don't know
<jophish> heheh, I think that's really unlikely
<jophish> but the fact is that this is failing on a file which exists, but isn't an EFL
newhoggy has joined #nixos
<jophish> ELF*
orivej has joined #nixos
<sphalerite> tbh, it probably doesn't matter when patchelf fails
<jophish> this is the code btw
<jophish> I'm building again with parentheses around the patchelf line
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #25206: Update my pkgs (master...update-my-pkgs) https://git.io/v9qef
aloiscochard has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #25207: rtv: 1.14.1 -> 1.15.1 (master...update-rtv) https://git.io/v9qet
griff_ has quit [(Quit: griff_)]
ixxie has joined #nixos
nslqqq has quit [(Ping timeout: 260 seconds)]
<jophish> sphalerite: I think that this might be user error on my part, I redid the build and it worked
<jophish> not sure what changed
<sphalerite> jophish: that might not be what you want, if you're linking to other libraries as well
<jophish> sphalerite: I'd really like to have libgcc_s linked statically, I couldn't quite figure out how to do that though
<jophish> sphalerite: It does allow the code to be loaded on the target machine though, when previously it would not be able to find that library
<jophish> I've not tidied it up yet, so it'a a huge mess
<sphalerite> neat
<sphalerite> well
<sphalerite> what it does is neat ;)
maikklein has quit [(Ping timeout: 260 seconds)]
<domenkozar> jophish: where do you cross compile to?
<jophish> domenkozar: aarch64 at the moment
<jophish> I've done a build to armv7l too
thineye has quit [(Quit: Konversation terminated!)]
nslqqq has joined #nixos
<NixOS_GitHub> [nixops] domenkozar pushed 1 new commit to master: https://git.io/v9qfl
<NixOS_GitHub> nixops/master 07f7a22 Domen Kožar: README: add hacking and fix installation link
JagaJaga has quit [(Ping timeout: 240 seconds)]
byteflame has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
byteflame has quit [(Ping timeout: 260 seconds)]
dcz has joined #nixos
joestein has joined #nixos
joestein has quit [(Client Quit)]
reinzelmann has joined #nixos
byteflame has joined #nixos
rcshm has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
byteflame has quit [(Ping timeout: 260 seconds)]
nslqqq has quit [(Ping timeout: 260 seconds)]
proteus-guy has quit [(Remote host closed the connection)]
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
iyzsong has joined #nixos
engblom_ is now known as engblom
engblom has quit [(Changing host)]
engblom has joined #nixos
newhoggy has joined #nixos
JagaJaga has joined #nixos
mudri has quit [(Ping timeout: 260 seconds)]
ryantrinkle has quit [(Ping timeout: 255 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
nslqqq has joined #nixos
jluttine has quit [(Read error: No route to host)]
jluttine has joined #nixos
newhoggy has joined #nixos
athan has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to release-17.03: https://git.io/v9qOD
<NixOS_GitHub> nixpkgs/release-17.03 232e8a9 Dan Peebles: darwin.libSystem: fix intermittent impurity bug...
arjen-jonathan has joined #nixos
newhoggy has joined #nixos
athan has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v9q3D
<NixOS_GitHub> nixpkgs/master b553075 Armijn Hemel: bc: 1.06 -> 1.07.1
viric_ is now known as viric
newhoggy has quit [(Ping timeout: 260 seconds)]
<copumpkin> oh hi phreedom :) I was just going to ask if you knew what was going on with the weird azure size calculations
Guest45287 has quit [(Ping timeout: 260 seconds)]
<dcz> does gcc default to -std=gnu++how to specify a particular version of a dependency?11 with nix? I haven't seeen that flag in my other builds
<dcz> oops
<dcz> how to specify a particular version of a dependency?
newhoggy has joined #nixos
vaibhavsagar has joined #nixos
simp__ has quit [(Quit: Connection closed for inactivity)]
newhoggy has quit [(Ping timeout: 260 seconds)]
byteflame has joined #nixos
newhoggy has joined #nixos
gsora has joined #nixos
<phreedom> copumpkin: you mean something like this: https://bugs.launchpad.net/qemu/+bug/1490611 ?
<copumpkin> aha
<copumpkin> if only there had been a comment saying that :)
<copumpkin> is it still necessary?
<copumpkin> it looks like it was fixed
<copumpkin> but super recently
<copumpkin> so it seems like we can probably kill all the arithmetic if we use the latest qemu
<phreedom> copumpkin: I haven't tested anything recently :(
<copumpkin> phreedom: that's fine, if you're busy I'll sign up for an azure account in the next few days and try out my changes to the image
<copumpkin> just figured you might have some easy test available :)
<copumpkin> thanks for the link though!
<phreedom> you're welcome :)
<clever> steveeJ: if you do src = ./.; then nix will cast it to a string, and the 2 will work the same
<clever> steveeJ: and any time nix tries to cast a path to a string, it will copy the entire thing to /nix/store, if its not there already
gsora_ has joined #nixos
gsora has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub> [nixpkgs] bennofs force-pushed haskell-fix-override from 84e7bb1 to 61acbb1: https://git.io/vKAP7
<NixOS_GitHub> nixpkgs/haskell-fix-override b79e678 Benno Fünfstück: haskell: preserve overrideScope on override...
<NixOS_GitHub> nixpkgs/haskell-fix-override 61acbb1 Benno Fünfstück: haskell: add more callPackageWithScope docs
sellout- has quit [(Quit: Leaving.)]
<jophish> Hmm, pkgs.gcc can't be cross compiled on master
<jophish> fails in cc-wrapper/default.nix
cpennington has joined #nixos
<jophish> hopefully I can get away with gcc.cc
mudri has joined #nixos
peacememories has joined #nixos
nslqqq has quit [(Ping timeout: 268 seconds)]
vaibhavsagar has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] peti closed pull request #25201: Fix typo in trivial.nix (master...fix-typo) https://git.io/v9twq
ryantrinkle has joined #nixos
<CcxWrk> Is there something in nix for building cross toolchains? Eg. for bare-metal I'd want gcc-arm-none-eabi, etc.
<clever> CcxWrk: that was an example i made a few months ago, that skips making a libc capable gcc
<CcxWrk> Hmm, probably need binutils too, but that should do it.
<jophish> CcxWrk: please report back on any success and failure!
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever> CcxWrk: line 13 gets the cross binutils and gcc
<unlmtd[m]> how shoud I refer to a certain binary in a config file?
kuznero has joined #nixos
nslqqq has joined #nixos
earldoug1as is now known as earldouglas
dbmikus_ has joined #nixos
<unlmtd[m]> like a vimrc
earldouglas has quit [(Changing host)]
earldouglas has joined #nixos
<unlmtd[m]> I understand that I can give the hashed path, but maybe theres a better way
<clever> unlmtd[m]: if the config is in a nix file, you can just do ${vim}/bin/vim
<unlmtd[m]> right but not if it isnt
<clever> unlmtd[m]: then you need a derivation that can apply sed to it
Guest45287 has joined #nixos
<unlmtd[m]> I get the idea
<unlmtd[m]> not so simple
kuznero has left #nixos []
<unlmtd[m]> thanks
<clever> unlmtd[m]: its as simple as doing @foo@ in the config, and then setting foo="${vim}/bin/vim";
<clever> and you can read the state-1-init.sh in the same dir to see the usage
<unlmtd[m]> ill take a look
<unlmtd[m]> youre like this person I knew who had a used bookstore crammed with books, and knew almost all the inventory
<clever> heh
<unlmtd[m]> a living grep
<clever> ive also memorized the source for the kernel as well
Guest45287 has quit [(Ping timeout: 240 seconds)]
jmiven has quit [(Quit: WeeChat 1.7)]
<unlmtd[m]> have you looked at magenta https://github.com/fuchsia-mirror/magenta
<Profpatsch> manveru: Ah, I missed your project. Darn.
<Profpatsch> But I really like per-package caching.
<manveru> Profpatsch: i wouldn't complain about it, but it's pretty damn hard
<clever> unlmtd[m]: havent seen that before
<Profpatsch> manveru: What do you use to construct nix packages? The npm package by Sander?
<manveru> no, only yarn
<Profpatsch> I kind of took the pain to write a parser, since the hnix package for working with nix expressions in Haskell is just too good.
<manveru> it alreayd has a yarn.lock parser built in
<Profpatsch> It’s basically a complete DSL.
<Profpatsch> Yes, even the official parser.
<Profpatsch> But to construct the nix file?
<clever> Profpatsch: is it possible to turn a nix file into an AST, then turn it back into a nearly identical nix file?
<Profpatsch> clever: you mean for editor formatting?
<clever> Profpatsch: i'm thinking of automated editing of a nix file
<Profpatsch> I don’t know. But having a parser like that you need to annotate the AST way more.
<copumpkin> niksnut: do you have a version of nix-repl that works with nixUnstable?
<clever> Profpatsch: for example, i want a program that can set boot.loader.grub.device = "/dev/sda"; in a configuration.nix string
<copumpkin> niksnut: or actually is repl built into 1.12 now?
<manveru> Profpatsch: i think it's just a bunch of prints :P
<Profpatsch> manveru: Oh, ok.
<Profpatsch> clever: There’s some kind of annotation scheme you can use to annotate the layers of your fix point: https://hackage.haskell.org/package/hnix-0.3.4/docs/Nix-Expr.html#t:Ann
<Profpatsch> So maybe that can be used.
<clever> Profpatsch: ah
<Profpatsch> You’d have to edit the parser of coruse.
<Profpatsch> jwiegley (not here) can give you more info
jmiven has joined #nixos
<Profpatsch> Maybe ask him here https://github.com/jwiegley/hnix/issues
<LnL> johnw: ^
<LnL> :)
sellout- has joined #nixos
<Profpatsch> Oh, right. thanks!
<Profpatsch> I searched for jwie*
<copumpkin> niksnut: in other news, I just tried builtins.fetchurl "s3://..." and it automatically used my IAM credentials and it was beautiful and I cried tears of joy
<copumpkin> (so thanks for that :P)
<LnL> oh! that works?
<copumpkin> in 1.12 yup
<Tucky> clever: when you do your install, after chown /nix to root, do you chown folders under /nix/var/nix/profiles/per-user/ to each users?
<LnL> nice, so much good stuff in 1.12 :D
<clever> Tucky: yeah
<Profpatsch> clever: Oh, you might be lucky
<niksnut> copumpkin: nice :-)
<Profpatsch> parseNixTextLoc gives you an NExprLoc
<Tucky> clever: with which right ?
<niksnut> the repl is not built in yet
<Profpatsch> Which is Fix (AnnF SrcSpan NExprF)
<clever> Tucky: each user needs write to their own per-user folder, so they can manage their profile and channels
<Profpatsch> And SrcSpan gives you the exact location of every sub-ast
<clever> Tucky: i mostly just wait for permission errors to remind me about what i missed
<clever> Profpatsch: ah, so there is only the issue of how it will serialize when i try to insert things in the middle
<Profpatsch> Hm, that’s an interesting problem.
<copumpkin> niksnut: cool, I just used nix-instantiate to test it :)
<Profpatsch> You could also have a parser that saves the original string for each element.
MichaelRaskin has joined #nixos
<Profpatsch> Or you pretty-print the parst of your source element that changed.
<clever> yeah
<Profpatsch> of course that might be too much of a text change.
<Profpatsch> s/parst/ast/
<Profpatsch> But it’s a hard problem.
<Profpatsch> hnix is probably closer to a final solution than most implementations for most languages.
<niksnut> ncurses should have a configure flag "only install terminfo files used in the 21st century"
<clever> niksnut: but then how will i get my physical vt100 terminal to work?!
<MichaelRaskin> clever: by not setting the flag?
<clever> that works
<clever> and screen was pretty glitchy even with all of them available
<NixOS_GitHub> [nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/v9qEG
<NixOS_GitHub> nixpkgs/master 9046e54 Dan Peebles: qt5: fix to work on LLVM 4...
<ben> how do you prettyprint .drv files?
<niksnut> there used to be a command called pp-aterm for that
<copumpkin> what would it take to bring it back? it seems like a pity
<copumpkin> or I guess we don't need to bring in that entire other package to get it
<copumpkin> actually nix itself probably has enough logic to pretty print them, right?
<LnL> I didn't even know something like that exited
<MichaelRaskin> As a stop-gap I would recommend any Racket (actually, any lisp will do) pretty-printing support your editor has
<ben> oh, heh
<ben> good idea
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 240 seconds)]
<CcxWrk> clever: I see, thanks. Where do I put it so Nix picks it up? (I just freshly installed Nix on top of Gentoo)
freusque has quit [(Quit: WeeChat 1.7)]
<clever> CcxWrk: if you run nix-build against that file, it should make a result symlink that contains the cross compiler commands
freusque has joined #nixos
<MichaelRaskin> 3D
lewo has quit [(Read error: Connection reset by peer)]
<Tucky> clever: well, first error on nix-env -qa firefox: error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<Tucky> clever: did you put this folder under a group nixusers or kindof?
<clever> Tucky: you must run nix-daemon as root and set NIX_REMOTE=daemon
<clever> Tucky: then it will relay such access to the daemon, that has write
<Tucky> clever: ok
boegel has quit [(Remote host closed the connection)]
boegel has joined #nixos
drasich has joined #nixos
<CcxWrk> clever: It compiled … something. :) How do I link it to my default profile now?
therp has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel closed pull request #25151: kile: build with okular for embedded viewer (master...zraexy-kile) https://git.io/v9kJY
Mercuria1Alchemi has quit [(Ping timeout: 252 seconds)]
<NixOS_GitHub> [nixpkgs] peti pushed 7 new commits to master: https://git.io/v9qan
<NixOS_GitHub> nixpkgs/master 0f10417 Peter Simons: LTS Haskell 8.12
<NixOS_GitHub> nixpkgs/master 2a34188 Peter Simons: hackage2nix: update list of broken packages
<NixOS_GitHub> nixpkgs/master 9fa927f Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<ben> Hm, is nix-prefetch-url file:///some/local/directory non-obvious to use? it seems to write an empty file to the store
<joachifm> gchristensen: pong
<NixOS_GitHub> [nixpkgs] peti closed pull request #9336: haskell: preserve overrideScope on override (master...haskell-fix-override) https://git.io/vsqd1
strfry has left #nixos ["WeeChat 1.6"]
<ben> I guess it only works for single files?
<NixOS_GitHub> [nixpkgs] peti deleted haskell-fix-override at 61acbb1: https://git.io/v9qaK
<clever> CcxWrk: you can also run nix-env -i ./result and i believe it will install it into the profile
<clever> ben: there is also a nix-store --add or --add-fixed
<NixOS_GitHub> [nixpkgs] ttuegel pushed 3 new commits to master: https://git.io/v9qa5
<NixOS_GitHub> nixpkgs/master 34f492d Jos van den Oever: kdeFrameworks: 5.32.0 -> 5.33.0
<NixOS_GitHub> nixpkgs/master 10d329a Jos van den Oever: kdeApplications: 16.12.3 -> 17.04.0
<NixOS_GitHub> nixpkgs/master de260d8 Thomas Tuegel: Merge pull request #25094 from vandenoever/kdeapps-17.04...
newhoggy has quit [(Remote host closed the connection)]
thetet has left #nixos []
ixxie has quit [(Ping timeout: 240 seconds)]
cmacrae has joined #nixos
<ben> clever: yeah that's starting to look more reasonable ;)
<ben> thanks
romildo has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
<ben> What manpage documents --add-fixed?
<clever> ben: nix-store
<clever> oh, its not there
<ben> Hm, I'm not sure it likes directories either
<ben> Right now my workaround is --unpack file://<(tar cz .)
<ben> ah, cheers
ravloony has joined #nixos
tommyangelo has quit [(Ping timeout: 240 seconds)]
<romildo> After updating NixOS unstable to nixos-17.09pre106117.c90998d5cf nixos-rebuild fails at the test phase of perl-Module-Metadata-1.000027. Has anybody else seen this
<romildo> ?
<ben> hmmm, i kinda wanted to use --name tho
newhoggy has joined #nixos
orivej has quit [(Read error: Connection reset by peer)]
<romildo> or better, it is perl-version-0.9912 (a dependency of perl-Module-Metadata-1.000027) which fails.
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/v9qrG
<NixOS_GitHub> nixpkgs/master 17b689c Robert Helgesson: perl-version: add meta section
newhoggy has quit [(Ping timeout: 258 seconds)]
<cmacrae> Hey guys - I'm having a bit of trouble tirggering custom acpid events, I've chucked together a quick gist to explain it clearly. If people have a couple minutes, I'd really appreciate any pointers on it. If not, I'll likely raise an issue
drasich has quit [(Ping timeout: 260 seconds)]
dridus has joined #nixos
erasmas has joined #nixos
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 252 seconds)]
cmacrae has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
proteusguy has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
cmacrae has joined #nixos
newhoggy has joined #nixos
dannyg has joined #nixos
justelex_ has joined #nixos
justelex has quit [(Ping timeout: 260 seconds)]
justelex_ has quit [(Client Quit)]
newhoggy has quit [(Ping timeout: 240 seconds)]
cmacrae has quit [(Read error: Connection reset by peer)]
newhoggy has joined #nixos
Sonarpulse has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 1 new commit to 1.11-maintenance: https://git.io/v9q1z
<NixOS_GitHub> nix/1.11-maintenance 5d59ec8 Eelco Dolstra: Bump version to 1.11.9
cmacrae has joined #nixos
Oo[m] has quit [(K-Lined)]
primeos[m] has quit [(K-Lined)]
sziszi[m] has quit [(K-Lined)]
Dezgeg[m] has quit [(K-Lined)]
xj9[m] has quit [(K-Lined)]
corngood has quit [(K-Lined)]
M1000teslas[m] has quit [(K-Lined)]
grahamc[m] has quit [(K-Lined)]
regnat[m] has quit [(K-Lined)]
jlle[m] has quit [(K-Lined)]
spacekitteh[m] has quit [(K-Lined)]
ArdaXi[m] has quit [(K-Lined)]
musicmatze[m] has quit [(K-Lined)]
timclassic has quit [(K-Lined)]
philipp[m] has quit [(K-Lined)]
saintaquinas[m] has quit [(K-Lined)]
Ralith has quit [(K-Lined)]
andrew[m] has quit [(K-Lined)]
Yaniel has quit [(K-Lined)]
Khorne[m] has quit [(K-Lined)]
hendrik[m] has quit [(K-Lined)]
peterhoeg has quit [(K-Lined)]
wak-work[m] has quit [(K-Lined)]
lfont[m] has quit [(K-Lined)]
sargon[m] has quit [(K-Lined)]
teh[m] has quit [(K-Lined)]
Magnap has quit [(K-Lined)]
bendlas has quit [(K-Lined)]
qrilka[m] has quit [(K-Lined)]
icetan has quit [(K-Lined)]
aspiwack[m] has quit [(K-Lined)]
copumpkin has quit [(K-Lined)]
shanemikel[m] has quit [(K-Lined)]
scott2 has quit [(K-Lined)]
M-liberdiko has quit [(K-Lined)]
dtz has quit [(K-Lined)]
jascot[m] has quit [(K-Lined)]
cornu[m] has quit [(K-Lined)]
spawnthink[m] has quit [(K-Lined)]
indefini has quit [(K-Lined)]
bachp has quit [(K-Lined)]
offlinehacker[m] has quit [(K-Lined)]
jack[m]1 has quit [(K-Lined)]
zimbatm has quit [(K-Lined)]
jyp[m] has quit [(K-Lined)]
davidar has quit [(K-Lined)]
Exee7uvo[m] has quit [(K-Lined)]
NickHu has quit [(K-Lined)]
alain[m] has quit [(K-Lined)]
herzmeister[m] has quit [(K-Lined)]
eqyiel[m] has quit [(K-Lined)]
mdash has quit [(K-Lined)]
edef[m] has quit [(K-Lined)]
rdesfo[m] has quit [(K-Lined)]
danielrf has quit [(K-Lined)]
Criena[m] has quit [(K-Lined)]
moonarch has quit [(K-Lined)]
MrAxilus[m] has quit [(K-Lined)]
hexkey[m] has quit [(K-Lined)]
mythmon- has quit [(K-Lined)]
unlmtd[m] has quit [(K-Lined)]
M-Rym has quit [(K-Lined)]
newhoggy has quit [(Ping timeout: 240 seconds)]
so has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nix] edolstra pushed 9 new commits to master: https://git.io/v9qDL
<NixOS_GitHub> nix/master 66577a1 Eelco Dolstra: Factor out --json
<NixOS_GitHub> nix/master 1bb87c0 Eelco Dolstra: Remove debug statement
<NixOS_GitHub> nix/master bcecc99 Eelco Dolstra: Restructure installables handling in the "nix" command
<niksnut> K-Lined? :o
<simpson> Wow. Wonder what Matrix did.
newhoggy has joined #nixos
ryanartecona has joined #nixos
spinus has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
cmacrae has quit [(Read error: Connection reset by peer)]
newhoggy has joined #nixos
spinus has quit [(Ping timeout: 240 seconds)]
<niksnut> Matrix?
<niksnut> oh
<hodapp> wait, they k-lined copumpkin too
hexkey[m] has joined #nixos
<niksnut> well, iirc, EC2 is also blocked for unauthenticated users
<simpson> Huh. Some kind of strange netsplit?
<joepie91> niksnut: simpson: hodapp: [17:05] <Fuchs> Arathorn: yes, it was set by accident. This occasionally happens to gateways. Should not, but can
<joepie91> it has been rectified since
<joepie91> but gateways may take some time to return
newhoggy has quit [(Ping timeout: 240 seconds)]
Itkovian_ has joined #nixos
<niksnut> ah
Itkovian_ has quit [(Client Quit)]
Itkovian has quit [(Ping timeout: 260 seconds)]
smw has quit [(Ping timeout: 255 seconds)]
ixxie has joined #nixos
<NixOS_GitHub> [nix] edolstra tagged 1.11.9 at 950ddb2: https://git.io/v9q9n
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to master: https://git.io/v9q9C
<NixOS_GitHub> nixpkgs/master e419094 Eelco Dolstra: nix: 1.11.8 -> 1.11.9
<contrapumpkin> niksnut: thank you!!
orivej has joined #nixos
regnat[m] has joined #nixos
spinus has joined #nixos
copumpkin has joined #nixos
<copumpkin> am I back?
<copumpkin> I guess so :)
<disasm> you are :)
<contrapumpkin> lots of matrix users on here nowadays
<contrapumpkin> (this is my non-matrix client)
xj9[m] has joined #nixos
indefini has joined #nixos
moonarch has joined #nixos
wak-work[m] has joined #nixos
jascot[m] has joined #nixos
teh[m] has joined #nixos
alain[m] has joined #nixos
herzmeister[m] has joined #nixos
primeos[m] has joined #nixos
jack[m]1 has joined #nixos
cornu[m] has joined #nixos
Yaniel has joined #nixos
bachp has joined #nixos
spacekitteh[m] has joined #nixos
MrAxilus[m] has joined #nixos
philipp[m] has joined #nixos
hendrik[m] has joined #nixos
M-liberdiko has joined #nixos
M-Rym has joined #nixos
sargon[m] has joined #nixos
edef[m] has joined #nixos
Exee7uvo[m] has joined #nixos
Khorne[m] has joined #nixos
mdash has joined #nixos
unlmtd[m] has joined #nixos
ArdaXi[m] has joined #nixos
aspiwack[m] has joined #nixos
bendlas has joined #nixos
offlinehacker[m] has joined #nixos
peterhoeg has joined #nixos
davidar has joined #nixos
timclassic has joined #nixos
mythmon- has joined #nixos
jyp[m] has joined #nixos
NickHu has joined #nixos
spawnthink[m] has joined #nixos
dtz has joined #nixos
saintaquinas[m] has joined #nixos
sziszi[m] has joined #nixos
zimbatm has joined #nixos
Magnap has joined #nixos
scott2 has joined #nixos
Ralith has joined #nixos
shanemikel[m] has joined #nixos
rdesfo[m] has joined #nixos
musicmatze[m] has joined #nixos
Oo[m] has joined #nixos
eqyiel[m] has joined #nixos
grahamc[m] has joined #nixos
icetan has joined #nixos
Dezgeg[m] has joined #nixos
M1000teslas[m] has joined #nixos
jlle[m] has joined #nixos
Criena[m] has joined #nixos
corngood has joined #nixos
qrilka[m] has joined #nixos
danielrf has joined #nixos
andrew[m] has joined #nixos
lfont[m] has joined #nixos
<clever> and thats why i know what matrix is, lol
<contrapumpkin> the [m] is the default nick modifier they apply
<contrapumpkin> but you can change it
<clever> thats harder to notice then the join-spam
<copumpkin> should be pretty rare, at least :)
digitus has joined #nixos
therp has quit [(Remote host closed the connection)]
<dtzWill> should have it treated like a netsplit
smw has joined #nixos
taktoa has joined #nixos
taktoa has quit [(Remote host closed the connection)]
vandenoever has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
* dtzWill welcomes dtz back :P
thaega has quit [(Ping timeout: 252 seconds)]
newhoggy has joined #nixos
romildo has quit [(Quit: Leaving)]
dannyg has quit [(Quit: dannyg)]
nicknovi1 has joined #nixos
therp has joined #nixos
newhoggy has quit [(Ping timeout: 245 seconds)]
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<therp> was anyone successful in switching the truetype rendering engine to version 35/38 using the FREETYPE_PROPERTIES environment variable?
spinus has quit [(Ping timeout: 240 seconds)]
<Tipping_Fedora> aszlig, hows that documentation?
chakerbenhamed has quit [(Ping timeout: 255 seconds)]
fresheyeball has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.03: https://git.io/v9qdT
<NixOS_GitHub> nixpkgs/release-17.03 3c65e6c Tuomas Tynkkynen: Revert "rustc: don't build on i686"...
<fresheyeball> is there a way to use ghcjs.override to add buildtools?
nicknovi1 has quit [(Ping timeout: 264 seconds)]
Itkovian has quit [(Read error: Connection reset by peer)]
newhoggy has joined #nixos
nicknovi1 has joined #nixos
stepcut has quit [(Remote host closed the connection)]
so has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
iyzsong has quit [(Ping timeout: 258 seconds)]
sellout- has quit [(Quit: Leaving.)]
nicknovi1 has quit [(Ping timeout: 255 seconds)]
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
marsel has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
nil has quit [(Ping timeout: 260 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
newhoggy has quit [(Ping timeout: 245 seconds)]
tommyangelo_ has joined #nixos
ravloony has quit [(Remote host closed the connection)]
DutchWolfie has quit [(Quit: Konversation terminated!)]
cpennington has quit [(Ping timeout: 260 seconds)]
<copumpkin> niksnut: are you protective about nixUnstable versions in nixpkgs? or is it okay if I randomly bump that periodically to follow nix master?
<Yaniel> is there an easy way to make nixos use wayland atm?
__Sander__ has quit [(Quit: Konversation terminated!)]
cpennington has joined #nixos
usoban has quit [(Ping timeout: 260 seconds)]
iyzsong has joined #nixos
newhoggy has joined #nixos
tv has quit [(Ping timeout: 240 seconds)]
orivej has quit [(Ping timeout: 255 seconds)]
<dcz> what's the best way to "freeze" a nixpkgs tree at a certain version, so that my environment is reproducible even if nixpkgs is updated?
iyzsong has quit [(Client Quit)]
<clever> dcz: use something like fetchurl or fetchFromGithub to download that revision, and import the result of the fetch
sellout- has joined #nixos
<dcz> clever: thanks
tv has joined #nixos
ambro718 has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
ryanartecona has joined #nixos
* hyper_ch thinks clever is true to his/her/its chosen nickname
thetet has joined #nixos
<copumpkin> singular "their" is widely accepted :)
<hyper_ch> you think clever has a split personality? oO
<copumpkin> singular
<copumpkin> it's been used that way for centuries now
<clever> i'm a dude :P
<hyper_ch> pic or I won't believe it :)
<copumpkin> I'm a dog
<hyper_ch> copumpkin: interesting :)
<copumpkin> shit, nobody was supposed to know
<copumpkin> I take that back
<hyper_ch> never knew about singular they
<hyper_ch> but then, english is only my 4th language
<simpson> English is terrible. Let's all use Lojban.
<Yaniel> it's funny how many people feel the need to bitch about and invent new pronouns instead of just using singular they and moving on
<copumpkin> anyway, didn't mean to derail :)
<copumpkin> just figured I'd note for future efficiency
<Yaniel> soo, wayland?
<copumpkin> I think we need systemd to take over more things
<joepie91> Yaniel: not really the same thing. usually 'custom' pronouns are meant to indicate a specific thing that isn't covered by another pronoun, whereas singular they is meant to indicate an *unspecified* thing (this is separate from my thoughts on the matter of custom pronouns in general, just pointing out the difference)
<Yaniel> can I just replace services.xserver with services.wayland or something?
<MichaelRaskin> Actually, without systemd running wayland is simpler
<joepie91> and yeah, probably a bit offtopic for here :P
<copumpkin> wayland could be waylan + d, and become part of systemd
siel has quit [(Ping timeout: 252 seconds)]
<copumpkin> the borg will assimilate you too
<joepie91> copumpkin: insert systemd_monster.gif here
<joepie91> :)
<vandenoever> simpson: xu do se glibau?
<copumpkin> you know I'm right
<copumpkin> it might not be this year
<joepie91> copumpkin: the year of the systemd wayland?
<Yaniel> at some point systemd developers will get an idea of modularizing things so that every part does only one thing, but does that one perfectly
<joepie91> okay, okay, I'll stop making jokes and let the discussion get back on topic :D
<copumpkin> :D
<joepie91> there's some significant pun potential in here though
<Yaniel> system-land
<simpson> vandenoever: ui mi merko .i ku'i ma'a lojbo
<joepie91> couldn't leave that *entirely* untapped
newhoggy has joined #nixos
siel has joined #nixos
newhoggy has quit [(Ping timeout: 245 seconds)]
fresheyeball has quit [(Quit: WeeChat 1.7)]
newhoggy has joined #nixos
tommyangelo_ has quit [(Ping timeout: 240 seconds)]
<joepie91> so, suggestion for the Factorio mod management issue (where modifying mods results in a full rebuild of the game) -- have three different derivations: 1) a mod derivation (subject to config), 2) an 'engine' derivation containing the actual game, and 3) a combined derivation that depends on both of the former, and whose only content is a wrapper script that invokes Factorio (from the engine derivation) with some sort of configuration flag/variable that
<joepie91> points at the current iteration of the mod dir
<joepie91> this would mean that the game derivation remains unchanged and only the mod dir and the light-weight combined wrapper are rebuilt (when mods are changed)
<joepie91> does anybody see any obvious issues with this approach?
<joepie91> (I don't yet know how the mod dir can be set on runtime, I will have to investigate this)
byteflame has quit [(Ping timeout: 240 seconds)]
<joepie91> cc clever in particular since you seem to know a lot about the weirder usecases :P
nschoe has quit [(Quit: Program. Terminated.)]
newhoggy has quit [(Ping timeout: 264 seconds)]
newhoggy has joined #nixos
<clever> joepie91: in the case of teamspeak plugins, it tries to follow any symlinks and find the real ts binary, then look relative to that
<clever> joepie91: so i had to copy the ts binary, and symlink everything that wasnt changing, just to put the plugins in a different derivation
<clever> joepie91: for chromium, i believe it accepts a cli arg, and its simpler to put stuff elsewhere
aneeshusa has joined #nixos
<joepie91> clever: right. but does the general approach sound sane to you?
<joepie91> of splitting it into 3 derivations
<clever> joepie91: yeah
<joepie91> --mod-directory :)
<clever> ah, that helps
<joepie91> couldn't really have been any easier, heh
goibhniu has quit [(Ping timeout: 260 seconds)]
* joepie91 might take a shot at implementing this soon-ish
<Tipping_Fedora> aszlig, you active? I may have another grub UEFI for us
<joepie91> clever: also, do you have any particular suggestions for implementing mod management? part of the issue is that it's not really doable to manually manage a list of mods in nixpkgs
<joepie91> there's quite a lot of them
<joepie91> clever: right now, this is the approach: https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/factorio/mods.nix
<joepie91> but this is quite obviously not scalable :)
nicknovi1 has joined #nixos
dcz has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Ping timeout: 264 seconds)]
<clever> joepie91: i think the user would need to provide a list of either fetchurl's or ./modfoo.zip's
siel has quit [(Ping timeout: 245 seconds)]
<joepie91> clever: hm. problem is that I think there's an auth wall for mod downloads
<clever> maybe also make those entries attrsets
<clever> so it can have deps
<clever> ah yeah
siel has joined #nixos
<clever> i also had to deal with the auth wall just for the game itself
<clever> ./modfoo.zip is one way around that
nevermind has joined #nixos
<joepie91> clever: can you elaborate on what you mean with that?
reinzelmann has joined #nixos
newhoggy has joined #nixos
<clever> if the user puts a set of mods into ~/.nixpkgs/ and then does factorio.override { mods = [ ./mod1.zip ./mod2.zip ./mod3.zip ]; } in config.nix
<joepie91> hrm.
<NixOS_GitHub> [nix] edolstra pushed 89 new commits to master: https://git.io/v9qjx
<NixOS_GitHub> nix/master e905699 Eelco Dolstra: Initial version of nix-repl...
<NixOS_GitHub> nix/master 287c88c Eelco Dolstra: Support adding variables to the scope...
<NixOS_GitHub> nix/master 3202206 Eelco Dolstra: Add a command :t for showing the type of an expression
thetet has quit [(Ping timeout: 245 seconds)]
<joepie91> clever: loosely related note... to install the Oracle JDK I need to nix-prefetch-url, but it appears that garbage collection automatically nukes the resulting file from the store and I have to re-add it every rebuild?
<joepie91> is there a flag I'm forgetting here?
siel has quit [(Remote host closed the connection)]
<simukis_> so I’m still unclear, and nobody’s answering my q for over a week now
<clever> nix-store -r /nix/store/foo.tar.gz --add-root /home/clever/jvm.root --indirect
<clever> joepie91: this lets you add a gc root to anything that is in the store or binary cache
<clever> and if its not yet in the store, it will fetch it from a binary cache
<simukis_> How do I make custom packages happen? Documentation for it? What do I type into configuration.nix for it to pick up my custom package .nix?
aloiscochard has quit [(Quit: Connection closed for inactivity)]
siel has joined #nixos
siel has quit [(Changing host)]
siel has joined #nixos
<clever> simukis_: nixpkgs.config.packageOverrides = pkgs: { package1 = pkgs.callPackage ./package1.nix {}; };
<simukis_> clever: does that work for *adding* entirely new packages?
newhoggy has quit [(Ping timeout: 240 seconds)]
<clever> simukis_: yeah
<simukis_> great! thank you
<joepie91> clever: not sure I understand how that interacts with the situation I'm describing. say that I have /home/sven/Downloads/jdk.tar.gz, and I want to permanently add that to the store. what's the full sequence of commands I need to run to accomplish that?
<joepie91> (such that it can be used by expressions that expect proprietary things)
<clever> joepie91: after you do nix-prefetch-url you will get a storepath for it
<clever> joepie91: then you run my cmd on the storepath, to create a symlink to it, that will become a gc root
newhoggy has joined #nixos
<joepie91> clever: okay, but I don't understand the role of eg. /home/clever/jvm.root
<joepie91> what does that path signify?
<clever> joepie91: that is the output path, the same as nix-build -o
<clever> joepie91: it will create an indirect root, that uses /home/clever/jvm.root
<joepie91> now I'm even more confused. the output path of what? isn't the output path in the store?
<clever> joepie91: indirect roots work by making a symlink chain from /nix/var/nix/gcroots/auto/ to <x> to /nix/store/<y>
<clever> joepie91: nix-build -o and nix-store --add-root <x> --indirect both create that type
<joepie91> right, but why can't you make a root directly to /nix/store/<y>?
<clever> joepie91: and if you delete <x>, the chain is broken, and it can gc <y>
<clever> but you dont need root to delete <x>
<clever> the root must be in an area you have write permissions to
<clever> as an example, say i have the storepath "/nix/store/jl72gxms9rg3czv3wj1rskw6n0h3k6gm-hello-2.10"
<clever> clever@c2d ~ $ nix-store -r /nix/store/jl72gxms9rg3czv3wj1rskw6n0h3k6gm-hello-2.10 --add-root /home/clever/hello.root --indirect
<clever> /home/clever/hello.root
<clever> lrwxrwxrwx 1 clever clever 54 Apr 25 14:09 hello.root -> /nix/store/jl72gxms9rg3czv3wj1rskw6n0h3k6gm-hello-2.10
<clever> i now have a symlink in my home dir, that points to the build of hello
<clever> and as long as that symlink remains there, hello cant be GC'd
<joepie91> clever: right. but:
<joepie91> [19:08] <clever> the root must be in an area you have write permissions to
<joepie91> why? this seems like an arbitrary requirement
<joepie91> or is there a technical reason?
<clever> mainly so you can delete it later
<clever> and i dont think it allows it in the store at all
<joepie91> clever: so is it a hard *requirement* to have that <x>, or is it just something you should do as a best practice?
<joepie91> because the latter I can understand
<joepie91> but the former remains unclear to me :P
<clever> it can be put anywhere you can write to
<clever> i just keep them in home
newhoggy has quit [(Ping timeout: 246 seconds)]
<joepie91> right, but I just don't understand why having <x> would be a technical requirement at all :p
<joepie91> it seems to serve no purpose other than "easier to delete"
<clever> if you dont make it indirect, it will get lost within /nix/var/nix
<clever> and youll never find it again
<clever> and there are more complex rules on where it has to go
<joepie91> right
newhoggy has joined #nixos
<joepie91> clever: btw, I had the idea to write a simple daemon that scrapes the Factorio mod portal and generates a Nix expression tarball on-the-fly (over HTTP) as people request it, so that they can eg. just import the 'repository' into their nixpkgs config and obtain mods from there
<joepie91> (I'd be hosting the daemon)
spinus has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<joepie91> clever: does this sound like a sensible strategy to you?
<clever> that does sound like it would help with things
<Tipping_Fedora> clever, can you help me with my UEFI duel boot? I need help finding my UEFI file to boot on the 2nd drive
<joepie91> clever: alright, thanks. your advice combined with that of somebody elsewhere has given me a useful path forward, I think :P
<clever> Tipping_Fedora: ive never gotten uefi to actualy boot on any of my systems, and i havent heard anything about how to configure it to dual-boot
<Tipping_Fedora> ehh
<clever> Tipping_Fedora: i had to entirely disable uefi to even make linux boot on my system
<Tipping_Fedora> me and aszlig got it to duel boot lastnight
<clever> it just ignored the boot priority if uefi was on
<Tipping_Fedora> clever, ok thank you though
<joepie91> I've had trouble with gummiboot
<joepie91> but it works fine with GRUB
<MichaelRaskin> I generally use two _separate_ UEFI partitions for separate OSes
<Tipping_Fedora> MichaelRaskin, thats what I have
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #25093: coyim: init at 0.3.7_1 (master...coyim) https://git.io/v9Jw2
newhoggy has quit [(Ping timeout: 245 seconds)]
<MichaelRaskin> «Duel boot»… I think you are trying to disclose some deep truth about Windows UEFI handling…
<simukis_> I can help with uefi :)
<simukis_> esp. if its one partition only
<MichaelRaskin> Then every partition has its own bootx64.efi
<simukis_> bootx64.efi is mostly irrelevant and legacy
<simukis_> or rather the default
<simukis_> actual installations do not use it
<MichaelRaskin> Well, most BIOS are broken and implement some weird version of legacy
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v9mfM
<NixOS_GitHub> nixpkgs/master 50ad243 Tristan Helmich: openvpn service: source up/down scripts...
<MichaelRaskin> efibootmgr could help. or not help…
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #25079: openvpn service: source up/down scripts (master...openvpn_source_scripts) https://git.io/v9faq
<clever> lrwxrwxrwx 1 clever clever 23 Apr 25 14:09 /nix/var/nix/gcroots/auto/6l1sr3ajddd5nwgjp09r69nyky0kwi2p -> /home/clever/hello.root
<clever> joepie91: also, all indirect roots land in here
<simukis_> Tipping_Fedora: did you look in your "bios" config whether the boot order is correct there? both options should exist there and you should easily be able to pick whichever thing you want it to boot
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/v9mfH
<NixOS_GitHub> nix/master 23aa161 Eelco Dolstra: Minor cleanup
<NixOS_GitHub> nix/master 6734c18 Eelco Dolstra: nix repl: Fix Ctrl-C
<clever> joepie91: and if i ls that on my main nixos box, i find 133 things with roots laying all over the system
<simukis_> Tipping_Fedora: note it will be not the regular "arrange your physical devices’ priorities" but rather some other option in that menu
<simukis_> most likely something with BBS in its name
xadi has quit [(Read error: Connection reset by peer)]
<MichaelRaskin> On ThinkPad I gave up and then used efibootmgr to put the entry into the list
xadi has joined #nixos
<MichaelRaskin> On ZenBook Asus actually does setup correctly
ryanartecona has quit [(Quit: ryanartecona)]
newhoggy has joined #nixos
<simukis_> yeah I prefer to use efibootmgr as well, but that does not help when windows intercepts your nix
<Tipping_Fedora> simukis_, i would like to add my 2nd os to the nixos grub menu
<simukis_> you could still use UEFI shell which is pretty much a cmd and boot whatever EFI want from there
<simukis_> no idea about grub, I use systemd’s bootloader
<MichaelRaskin> Well, efibootmgr usually has to be run from USB druve
<simukis_> MichaelRaskin: Why?
magnetophon has joined #nixos
<MichaelRaskin> Because once you can boot from the main drive, the problem efibootmgr solves is usually already solved?
acertain has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
ryanartecona has joined #nixos
<simukis_> MichaelRaskin: you can boot from the main drive via efi shell too
<simukis_> or whatever other drive
<simukis_> and efi shell is usually a built-in option in any UEFI system
<MichaelRaskin> If UEFI shell is that close to reasonable, it usually can just manage the entries as it is supposed to
newhoggy has joined #nixos
marsel has joined #nixos
<Tipping_Fedora> anyone know when aszlig is usually active?
JagaJaga has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 264 seconds)]
newhoggy has joined #nixos
endformationage has joined #nixos
newhoggy has quit [(Ping timeout: 245 seconds)]
newhoggy has joined #nixos
derjohn_mob has quit [(Ping timeout: 240 seconds)]
byteflame has joined #nixos
pbogdan has joined #nixos
pbogdan has left #nixos []
<copumpkin> he was active last night around 10pm eastern US
newhoggy has quit [(Ping timeout: 255 seconds)]
ixxie has quit [(Ping timeout: 245 seconds)]
mudri has quit [(Ping timeout: 260 seconds)]
byteflame has quit [(Ping timeout: 246 seconds)]
newhoggy has joined #nixos
pbogdan has joined #nixos
thaega has joined #nixos
byteflame has joined #nixos
newhoggy_ has joined #nixos
newhoggy has quit [(Ping timeout: 264 seconds)]
<sellout-> How can I get my nix-daemon up and running again? https://gist.github.com/sellout/5a814ef52aa4eefce6fef0ba6107eec3
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v9mLQ
<NixOS_GitHub> nixpkgs/master fce59d4 James Earl Douglas: jenkins: 2.53 -> 2.55
bennylb has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #25071: jenkins: 2.53 -> 2.55 (master...jenkins-2.55) https://git.io/v9fvT
<clever> sellout-: double-check ps aux to confirm its not already running, and if its gone, delete the socket
<clever> sellout-: oh, and what OS is this on?
aneeshusa has quit [(Ping timeout: 246 seconds)]
johnsonav has joined #nixos
newhoggy_ has quit [(Ping timeout: 240 seconds)]
<bennylb> Hey all
<bennylb> Had a problem with Emacs that's been bugging me since installing nixos a few weeks ago
<sellout-> clever: OS X. Ok, cool. Yeah, I checked that it’s not running – but wasn’t sure if I could just delete it. Thanks.
bigs has joined #nixos
<clever> sellout-: unix sockets are weird like that, they will persist on the filesystem, but its imposible to re-open them
<clever> so they have to be deleted when starting the program
<bennylb> Every time I ran M-x man I couldn't get man page name completion
<bennylb> Turns out mandb hadn't be run since install
<clever> bennylb: i have noticed that the whatis database is missing
<clever> bennylb: for things installed system wide, it would have to be done here: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/system-path.nix#L131
<sellout-> clever: All better. Thanks.
<johnw> LnL: hi
<LnL> hello
newhoggy has joined #nixos
<LnL> that reminds me, I should fix csdp
stepcut has joined #nixos
<bennylb> clever: thanks for the link. Is there no nixos-rebuild hook or a system service to update mandb?
<clever> bennylb: not currently, see the TODO on line 130
newhoggy has quit [(Ping timeout: 264 seconds)]
<simukis_> Is there a way for `fetchgit` to checkout a directory only?
<bennylb> clever: will do
<clever> bennylb: if you set programs.man.enable = false;, it will omit man-db from the system packages, and skip the .man output of every package in the systemPackages
<clever> idealy, man.nix would define a hook in a list, and system-pack.nix would run it
newhoggy has joined #nixos
<bennylb> clever: thanks for the info. I'll take a look at the links and see what I come up with
<johnw> LnL: I missed your earlier mention
<LnL> ah just somebody that was talking about hnix and used the wrong nick
newhoggy has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
<Mic92> mhm, File::Slurp (used in switch-to-configuration.pl) throws an ugly deprecation warning on unstable due a new version of perl
<Mic92> one of the few bits still written in perl
newhoggy has quit [(Ping timeout: 240 seconds)]
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
newhoggy has joined #nixos
pbogdan has joined #nixos
newhoggy has quit [(Ping timeout: 245 seconds)]
zraexy1 has quit [(Quit: Leaving.)]
zraexy has joined #nixos
newhoggy has joined #nixos
johnsonav has quit [(Ping timeout: 240 seconds)]
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
<joepie91> clever: right :PP
<joepie91> :P*
<clever> joepie91: about?
<joepie91> clever: your remark about all indirect roots
newhoggy has quit [(Ping timeout: 240 seconds)]
<joepie91> (I have much less indirect roots it seems)
<clever> ah
* joepie91 considers making a wrapper script for managing auto-added files
<clever> lrwxrwxrwx 1 root root 23 Mar 12 15:17 26kqyvvf6h9chi30fachc8hkx8553a54 -> /home/clever/srk/result
<joepie91> well
<joepie91> auto-retained
<clever> joepie91: when i check my box, i can find stuff i forgot about ages ago
bennylb has quit [(Remote host closed the connection)]
<joepie91> heh
<clever> which it refuses to gc
<clever> [root@amd-nixos:~]# nix-collect-garbage --max-freed 1m
newhoggy has joined #nixos
<clever> and you need to do a gc pass to make it clean up stuff in auto
<clever> but i also dont want to loose the entire cache
maikklein has joined #nixos
<clever> removing stale link from ‘/nix/var/nix/gcroots/auto/26kqyvvf6h9chi30fachc8hkx8553a54’ to ‘/home/clever/srk/result’
<maikklein> Can anyone help me with creating a sandbox? I am trying to build https://github.com/SaschaWillems/Vulkan This is what I wrote https://gist.github.com/MaikKlein/f0131f980930e17bf1821069b32bff40 I don't think that stdenv is the right thing here.
<maikklein> This results in "error: cannot auto-call a function that has an argument without a default value (‘stdenv’)"
ryanartecona has quit [(Quit: ryanartecona)]
<clever> maikklein: that is right, the file has to be loaded with callPackage
<clever> maikklein: nix-shell -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'
<bdimcheff> is there some standard for packaging electron apps? I'm trying to package nylas mail by cargo culting from atom, vstudio, and slack but idk if there's a better way
<simpson> bdimcheff: If you could figure out what they have in common, I bet that a `mkElectronApp` would be welcomed.
newhoggy has quit [(Ping timeout: 252 seconds)]
derjohn_mob has joined #nixos
newhoggy has joined #nixos
<bdimcheff> it's too bad that they're so hard to build from source deterministically... it feels really dirty to use binaries for all of these things but electron is crazy
freusque has quit [(Quit: WeeChat 1.7)]
afics has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
<clever> maikklein: i also have some experience attacking 3d rendering from an unusual direction
<clever> maikklein: i have done that triangle example, with custom drivers
<maikklein> clever: Can I do this directly in the default.nix file too? Sort of like this https://gist.github.com/MaikKlein/545688c81874e3b4dddba29d53e40bab ?
<clever> maikklein: close, let me fork and make a few examples
<maikklein> I think the examples I find on the web are all outdated
ixxie has joined #nixos
AllanEspinosa has joined #nixos
<maikklein> clever: Thanks!
newhoggy has joined #nixos
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<clever> 1 is the simplest, just skip the need for callPackage entirely
pbogdan has joined #nixos
zraexy has quit [(Quit: Leaving.)]
<clever> 2 is a modified form of 2, storing it in an attrset
bennofs has joined #nixos
<clever> 3 brings callPackage back, and uses up 2 files
<clever> maikklein: and here is a triangle example i did on the raspberry pi, with direct register access: https://www.youtube.com/watch?v=V6ogpgieJrQ
<NixOS_GitHub> [nixpkgs] earldouglas opened pull request #25214: jenkins: 2.55 -> 2.56 (master...jenkins-2.56) https://git.io/v9mna
zraexy has joined #nixos
ixxie has quit [(Ping timeout: 252 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
<copumpkin> niksnut: I saw you added lsof but not sure you saw my comment on the commit there. Also any thoughts on the explicit tar/xz/gzip/bz2ip deps?
maikklein has quit [(Ping timeout: 260 seconds)]
cpennington has quit [(Ping timeout: 246 seconds)]
tommyangelo_ has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
<copumpkin> no idea how I wrote bz2ip instead of bzip2 :)
maikklein has joined #nixos
<maikklein> .
<clever> copumpkin: right hand was a little too slow, i sometimes desync the hands when typing too fast
<maikklein> clever: I am also into Vulkan, I am maintaining a vulkan loader in Rust https://github.com/MaikKlein/ash
<LnL> yeah, I think something like basePackages with the default packages that are added now would be useful in some cases
ravloony has joined #nixos
kahiru has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
newhoggy has quit [(Ping timeout: 260 seconds)]
pbogdan has joined #nixos
thetet has joined #nixos
newhoggy has joined #nixos
tommyangelo_ has quit [(Ping timeout: 240 seconds)]
kahiru has joined #nixos
cpennington has joined #nixos
<maikklein> clever: I still get "fatal error: xcb/xcb.h: No such file or directory", do you know why this happens? Do I need to specify something else? Although cmake tells me "Found xcb: /nix/store/hz0gy5hhflfziaravsqpn64sx8si1kk2-libxcb-1.12-dev/include" which seems correct?
<maikklein> oh wait I think I still have libxcb in my global .nix file
ozer has joined #nixos
<Ralith> bdimcheff: my understanding is that an electron app is just a dir of web crap that you point electron at, so you can download (or theoretically build) the former and then just emit a script that points the standard nixpkgs electron at it
<Ralith> bdimcheff: see https://github.com/Ralith/riot-electron-nix for example
<bdimcheff> yeah i think the problem has a lot to do with node packages being not fully implemented in nix or something, idk i just have been marginally paying attention to various threads
newhoggy has quit [(Ping timeout: 258 seconds)]
<ozer> how to install Intel MKL (Math Kernel Library) on Nix?
<clever> bdimcheff: and xulrunner is pretty much the exact same thing, built on mozilla's JS engine
<clever> bdimcheff: firefox is just a large xulrunner based app
<dash> clever: or was, once
<dash> xulrunner sort of stopped being its own thing around 2012
<MichaelRaskin> dash: well, Firefox is still a xulrunner instance
<bdimcheff> this riot thing is interesting but yeah it won't be upstreamed
<MichaelRaskin> They just stopped supporting xulrunner builds with Firefox-specific stuff removed.
<jophish> What's the difference between these two calls to nix-build: https://gist.github.com/16175278cdb0ae6e025435c6badf61d5
<jophish> The one which uses `--arg` doesn't seem to work (it builds the native pkgs.hello)
Jackneillll has quit [(Ping timeout: 240 seconds)]
<clever> jophish: one sets crossSystem, the other sets crossPlatform
Dezgeg_ has quit [(Ping timeout: 240 seconds)]
Dezgeg_ has joined #nixos
<jophish> clever: ah, that was a typo. The behavior is still different when they are both crossSystem!
<jophish> I have amended the gist
byteflame has quit [(Ping timeout: 264 seconds)]
<clever> jophish: what about just -A hello ?
<clever> the pkgs. isnt required on either
<ozer> clever: it seems like gmsh checks for mkl being installed but there's no nixos mkl package?
<jophish> clever: exactly the same behaviour
<bennofs> jophish: is <nixpkgs> equal to ./.?
<clever> jophish: no idea then, i would expect those to work the same
<bennofs> jophish: perhaps try nix-build '<nixpkgs>' ...
<copumpkin> not sure if y'all saw, but nix-repl just moved into the nix repo :)
<bennofs> !m copumpkin
<[0__0]> You're doing good work, copumpkin!
<clever> copumpkin: ah, i did think it was odd to see that commit on that repo
<copumpkin> so nix repl will be a subcommand
<gchristensen> !m copumpkin
<[0__0]> You're doing good work, copumpkin!
<copumpkin> niksnut: do you envision nix <cmd> being semi-extensible like it is with git?
<copumpkin> bennofs: oh it's not me! it's all niksnut
<copumpkin> !m niksnut
<[0__0]> You're doing good work, niksnut!
<copumpkin> where'd the !m bot go
<copumpkin> oh there we go
<copumpkin> !m [0__0]
<[0__0]> You're doing good work, [0__0]!
<gchristensen> !m niksnut
<[0__0]> You're doing good work, niksnut!
<gchristensen> !m !m
<[0__0]> You're doing good work, !m!
<copumpkin> someone's full of themselves
<simpson> ,|m/
<jophish> bennofs: ./. is a nixpkgs root. I still get the native derivation with '<nixpkgs>' though
<jophish> bennofs, clever. I'll open an issue on nixpkgs
<clever> kk
<jophish> I'm relieved to hear that I'm not the only one who thinks this odd
marsel has quit [(Ping timeout: 246 seconds)]
newhoggy has joined #nixos
Infinisil has joined #nixos
<bennofs> jophish: it may have to do with --arg checking builtins.functionArgs to determine if the argument exists
<bennofs> jophish: (not sure if it does)
<Infinisil> Good evening
<Ralith> bdimcheff: yeah, it's a mess; I think node2nix got better recently but I haven't revisited it
<bennofs> jophish: and builtins.functionArgs does not work if you "passthrough" an arg like "args: f args"
thetet has quit [(Ping timeout: 260 seconds)]
<jophish> bennofs: might be a good idea to mention that on the issue: https://github.com/NixOS/nixpkgs/issues/25215
<Infinisil> It's somehow really nice to be able to write X2nix converters, not trivial I guess though
<Infinisil> Well i was amazed when i heard about them
cpennington has quit [(Ping timeout: 260 seconds)]
<maikklein> Do you know of any open source projects that have a default.nix sandbox?
<simpson> Infinisil: Most languages were not ready for Nix. They must be *tamed*.
<vandenoever> i've an expression that runs dbus which wants to read /etc/machine-id, is there a way to get a fixed value in there?
newhoggy has quit [(Ping timeout: 240 seconds)]
<jophish> maikklein: most of mine :)
<simpson> maikklein: I think that Wine needs an FHS-like environment?
<dash> maikklein: what do you mean by sandbox?
<maikklein> Is nix-shell a sandbox?
<maikklein> I thought it can pull all dependencies locally
<dash> I... don't know?
<joepie91> simpson: does it? afaik it only needs a virtual drive?
<dash> sure, running nix-shell will often fetch stuff
thetet has joined #nixos
<simpson> joepie91: Just going off the top of my head.
<maikklein> I am a bit stuck and would like to read other default.nix files
ryanartecona has joined #nixos
<schoppenhauer> if I need to patchelf something, what is the best way to find package names which provide a certain library?
* joepie91 is not an expert either
<LnL> some combination of grep, google and some luck?
<joepie91> heh
<schoppenhauer> usually, I just search through /nix/store
<schoppenhauer> but this is slow
maikklein has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
ozer has quit [(Quit: Page closed)]
radvendii has joined #nixos
<radvendii> Does anyone have mopidy-spotify working? It was working for me a while ago and then stopped working without any explanation (I don't even think it was after a nixos upgrade)
<Infinisil> (nope)
newhoggy has joined #nixos
thetet has quit [(Ping timeout: 240 seconds)]
cpennington has joined #nixos
newhoggy has quit [(Ping timeout: 268 seconds)]
reinzelmann has quit [(Quit: Leaving)]
ryanartecona has quit [(Quit: ryanartecona)]
Filystyn has quit [(Read error: Connection reset by peer)]
<jophish> Sonarpulse: ah, native llvm on aarch64 hasn't got libgcc_s.so statically linked
<Sonarpulse> wat
<Sonarpulse> as in the one on nixpkgs?
<Sonarpulse> *cache.nixos.org?
<benley> Anyone know what could be wrong if nix-env is barfing with "error: illegal option name/value"? It looks like that could only happen if there's something bogus in /etc/nix/nix.conf but I can't find anything that would explain it on my system
<benley> this is with nix 1.11.8, current nixpkgs-unstable on ubuntu 16.04, running with nix-ademon
<benley> *nix-daemon
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #25217: csdp: fix darwin build (master...darwin-csdp) https://git.io/v9mgw
<jophish> Sonarpulse: yeah
davidak has joined #nixos
<Sonarpulse> jophish: it's dynamically linked then?
<jophish> These are the objdump -x outputs for a native and cross compiled llvm
<jophish> note that the cross compiled one doesn't have the llvm lib output so it fails to run
<jophish> I think that something incorrect happens when patching the rpaths while cross compiling or something
<Sonarpulse> you mean the runpath?
<Sonarpulse> those look the same to me?
<alphor> does https://github.com/NixOS/nix/issues/8 also mean all users can see the contents of the entire nix store?
<jophish> Sonarpulse: They are not the same
newhoggy has joined #nixos
<Sonarpulse> jophish: oh derp
thineye has joined #nixos
<Sonarpulse> hmmm
<Sonarpulse> does that lib output actually contain libgcc?
<Sonarpulse> that would surprise me
<Sonarpulse> I'd expect compiler-rt cause llbm
thineye has quit [(Client Quit)]
<jophish> Sonarpulse: no, but it does contain libLLVM
<Sonarpulse> hmm
<Sonarpulse> i guess they both have gcc
<Sonarpulse> on runpath
<Sonarpulse> which would provide that
<jophish> correct
<Sonarpulse> and cross-built ghc didn't even have that
<Sonarpulse> let alone llvm
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<Sonarpulse> I forget which setup hooks would affect this
<NixOS_GitHub> [nixpkgs] expipiplus1 opened pull request #25218: Fix cross compilation of LLVM (master...cross-llvm) https://git.io/v9mae
<Sonarpulse> I know by using the same new cc wrapper everywhere
<clever> alphor: yeah, every user can see every file in the store, and any config/passwords that might be there
<Sonarpulse> that would help with *dep* references
<Sonarpulse> but I'm not sure about self-runpath
newhoggy has quit [(Ping timeout: 240 seconds)]
<alphor> clever: thanks. guess mutableUsers is a good idea.
<clever> alphor: you can still configure users declaratively, and just set the password manualy afterwards
newhoggy has joined #nixos
<jophish> Sonarpulse: you might be interested in this too https://github.com/NixOS/nixpkgs/issues/25212
<clever> alphor: or if you trust the password hashing, you can set an initialPasswordHash on a user
<clever> alphor: youll loose the benefit of shadow, but an attacker still has to brute-force the hash
stepcut has quit [(Remote host closed the connection)]
<alphor> hmm chpasswd mentions 'salt' once but passwd does not.
<Sonarpulse> jophish: what revision is that?
<jophish> Sonarpulse: HEAD
<Sonarpulse> ah
<jophish> well HEAD~2days
<clever> alphor: passwd will generate a random salt
<clever> alphor: and some of the security of the hash relies on the salt being randomized
<Sonarpulse> jophish: the shell part of cc-wrapper has never made sense to me
<Sonarpulse> though I haven't given it much thought either
newhoggy has quit [(Ping timeout: 240 seconds)]
<Sonarpulse> jophish: I'd look at the big WIP commit in https://github.com/NixOS/nixpkgs/pull/25047
newhoggy has joined #nixos
<alphor> clever: huh I see salts in /etc/shadow but not passwd
<clever> alphor: yeah, the point of shadow is to hide the hashes in /etc/shadow where only root can read them
<clever> alphor: so a non-root user can map user<->uid in /etc/passwd but not get your hashes
<alphor> oh neat
<clever> alphor: but when you start using users.users.foo.initialPasswordHash in nixos, the hash is visible under /nix/store/, so you loose the protection shadow gave
<clever> then a program like john the ripper can be used to brute-force the password
<clever> so it will depend on how good a password it is
byteflame has joined #nixos
<clever> nix-shell -p john to play with it
dridus has quit [(Quit: znc? wassat?)]
newhoggy has quit [(Ping timeout: 260 seconds)]
<Infinisil> Alright a seemingly actually really easy question: How can I set enableOfficialBranding to true in firefox? Have a look here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/firefox/default.nix#L16
cpennington has quit [(Ping timeout: 240 seconds)]
<Infinisil> I tried firefox.override { enableOfficialBranding = true; } but it says overridable is not an attribute
<benley> try using lib.overrideDerivation
<clever> benley: it is an override flag
<benley> oh, sorry
<clever> the issue is how firefox plugins are loaded
<Infinisil> Oh wait I think I've seen that, let me search
<clever> pkgs/top-level/all-packages.nix: inherit (callPackages ../applications/networking/browsers/firefox {
<clever> pkgs/top-level/all-packages.nix- }) firefox-unwrapped firefox-esr-unwrapped;
<clever> you want to apply the override to firefox-unwrapped or firefox-esr-unwrapped
<Infinisil> Ahh yes that
<clever> and then you wont get any plugins
<benley> why?
<clever> because firefox-unwrapped is the raw derivation with only firefox
<clever> and firefox, is a bash script that wraps it
<clever> and adds an env variable saying where to find plugins
<alphor> btw thanks for the info clever :)
<benley> right, but if you override that derivation then all the others that use it should inherit the override, shouldn't they?
<Infinisil> So I need pretty much this: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L13784-L13790 but set the attribute
newhoggy has joined #nixos
<clever> 13788 firefox = wrapFirefox firefox-unwrapped { };
alx741 has quit [(Read error: Connection reset by peer)]
alx741_ has joined #nixos
<clever> Infinisil: i think you can do firefox = pkgs.wrapFirefox (firefox-unwrapped.override { enableOfficialBranding = true; }) {};
alx741_ has quit [(Client Quit)]
<Infinisil> Ahh okay, I'll try
alx741 has joined #nixos
<clever> which will pass the new firefox directly to wrapFirefox to re-wrap it, then store it in the normal firefox attr
orivej has joined #nixos
newhoggy has quit [(Ping timeout: 268 seconds)]
newhoggy has joined #nixos
<Infinisil> "cannot coerce a function to a string
nicknovi1 has quit [(Ping timeout: 264 seconds)]
<Infinisil> But i did use () around the hole thing
<NixOS_GitHub> [nixpkgs] knedlsepp opened pull request #25219: opencv3: Enable darwin build (master...fix-opencv3-darwin) https://git.io/v9m6R
georges-duperon has joined #nixos
<NixOS_GitHub> [nixpkgs] mdorman opened pull request #25220: Automated emacs package updates (master...emacs-updates) https://git.io/v9m6g
<clever> Infinisil: maybe you wrapped too much?
<clever> nix-repl> pkgs.wrapFirefox (firefox-unwrapped.override { enableOfficialBranding = true; }) {}
<clever> «derivation /nix/store/y3v0rm2dzznkd31v3m9d5w9hkmwy2xd2-firefox-52.0.2.drv»
<Infinisil> (pkgs.wrapFirefox (firefox-unwrapped.override { enableOfficialBranding = true; })) in my environment.systemPackages
<clever> it does eval on my end
<Infinisil> Ohh yes
<clever> ah, your missing a {} at the end
<Infinisil> thanks
<Infinisil> Now it works :D, I hope one day I can be as knowledgable as clever about nix :o
cpennington has joined #nixos
mudri has joined #nixos
newhoggy has quit [(Ping timeout: 268 seconds)]
newhoggy has joined #nixos
<Infinisil> I'm still amazed about nix's beauty, just amazing
<Infinisil> Even though this firefox packaging seems pretty ugly
newhoggy has quit [(Ping timeout: 252 seconds)]
newhoggy has joined #nixos
nil has joined #nixos
<Infinisil> Seems like it needs to recompile firefox for that, takes quite the time
newhoggy has quit [(Ping timeout: 260 seconds)]
<clever> Infinisil: enableOfficialBranding is a compile-time thing
<clever> Infinisil: the reason its split between the wrapper and firefox, is to avoid a recompile when changing plugin stuff
<clever> Infinisil: for legal reasons, copies of firefox cant use the "firefox" name, so when the build-script messes up, it doesnt taint the brand-name
<clever> only things built by mozilla can use the firefox name
<Infinisil> Makes sense
<clever> which reminds me, i need to update to 53
<Infinisil> I'm still not sure what the best approach for a plugin infrastructure is
<Infinisil> Firefox 53?
<clever> yeah
<Infinisil> Why need?
<clever> i need to test my firefox extension on version 53, and put out an update
<Infinisil> What's it do?
davidak has quit [(Quit: Leaving.)]
<MichaelRaskin> Also, 53 — as usual — is a security update
<clever> helps you cheat a bit in an online game
<clever> [clever@amd-nixos:~]$ nix-shell -p firefox --pure
<clever> its already in nixos-unstable, so i just need a channel update and this
jsgrant__ has quit [(Ping timeout: 240 seconds)]
jsgrant has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
<clever> MichaelRaskin: and it seems to just work, with zero changes
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v9m1R
<NixOS_GitHub> nixpkgs/master fa8ee0d James Earl Douglas: jenkins: 2.55 -> 2.56
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #25214: jenkins: 2.55 -> 2.56 (master...jenkins-2.56) https://git.io/v9mna
<Infinisil> clever: why channel update and not just use the specific package from unstable?
newhoggy has quit [(Ping timeout: 240 seconds)]
<clever> Infinisil: i already run nixos-unstable, and it was firefox-52 before the update
jsgrant__ has joined #nixos
jsgrant has joined #nixos
<jophish> Does anyone know which part of the code is responsible for putting the other outputs of a derivation into the rpath?
<jophish> or, this might atually be an llvm only thing
deepwater has joined #nixos
dridus has joined #nixos
newhoggy has joined #nixos
<NickHu> Does command-not-found work for anyone on nixos-unstable? I don't think it's been working for a while now, but I can't recall when it stopped...
<ben> can you tell nix-prefetch-url to not write to stderr unless there's an error?
thaega has quit [(Ping timeout: 255 seconds)]
<jophish> clever: hmm, I'm not sure that's exactly what I'm looking for
<NickHu> clever: oh I see, so it wasn't just my imagination that it used to work - guess there's nothing to do about it for now other than wait, thanks
<jophish> when I compile LLVM natively the .lib output is compiled into the RPATH for the binaries (before postInstall)
<clever> NickHu: you can manualy run sqlite3 on an older programs.sqlite from a past channel
<jophish> when I cross compile LLVM the .out output is used instead of the .lib output
kampfschlaefer has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
ertesx has joined #nixos
<clever> jophish: but that probably doesnt explain things
<jophish> clever: not entirely :)
ravloony has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v9myz
<NixOS_GitHub> nixpkgs/master e514114 Yann Hodique: hugo: 0.20.2 -> 0.20.5
<NixOS_GitHub> nixpkgs/master ef58881 Jörg Thalheim: Merge pull request #25204 from sigma/pr/hugo-0.20.5...
ertes has quit [(Ping timeout: 260 seconds)]
ertesx is now known as ertes
<jophish> in fact, I have no idea how the "lib" output sneaks into the build
nicknovi1 has joined #nixos
<jophish> perhaps it has something to do with the differences in ld-wrapper between a native and cross buil
<jophish> important differences: NIX_LDFLAGS_SET vs NIX_CROSS_LDFLAGS_SET
<NixOS_GitHub> [nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/v9myQ
<NixOS_GitHub> nixpkgs/master b4707f2 Michael Alan Dorman: elpa-packages: 2017-04-25
<NixOS_GitHub> nixpkgs/master 23175ab Michael Alan Dorman: melpa-stable-packages: 2017-04-25
<NixOS_GitHub> nixpkgs/master 71f1858 Michael Alan Dorman: melpa-packages: 2017-04-25...
drasich has joined #nixos
newhoggy has joined #nixos
<NickHu> Could I perhaps get someone to look at my pr? It's been stalled for a month now and it's not very big https://github.com/NixOS/nixpkgs/pull/24214
stepcut has joined #nixos
cpennington has quit [(Remote host closed the connection)]
<jophish> NickHu: might be worth pinging FRidh when they're on irc
newhoggy has quit [(Ping timeout: 260 seconds)]
<jophish> Sorry it's taken so long, it's easy for things to slip away given the high traffic on the nix repo.
<NickHu> I hear you
stepcut has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<NickHu> I'd like to get involved more in the nixpkg repo - is there anything I could be doing as a contributor?
phorse` has joined #nixos
stepcut has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/v9mSo
<NixOS_GitHub> nixpkgs/master 3a08321 Eric Litak: factorio: add name as arg to authenticatedFetch
<NixOS_GitHub> nixpkgs/master 81122d3 Eric Litak: factorio: 0.14.21 -> 0.15.1
<NixOS_GitHub> nixpkgs/master 17f999d Jörg Thalheim: Merge pull request #25195 from elitak/factorio-version...
<jophish> NickHu: grahamc[m] organises some fancy security team you could sign up for
<jophish> and I think there are issue triages every so often
<Infinisil> (forefox is still compiling)
Jackneillll has joined #nixos
justelex has joined #nixos
<MichaelRaskin> clever: lucky you, SlimerJS is somewhat partially broken by Firefox 53+
<NixOS_GitHub> [nixpkgs] copumpkin closed pull request #25197: azure-image: switch to use the common make-disk-image.nix (master...azure-image-common) https://git.io/v9t4K
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/v9m9O
<NixOS_GitHub> nixpkgs/master a185b12 Nick Hu: proselint: disable tests and put in correct scope
<NixOS_GitHub> nixpkgs/master ba974d4 Michael Raskin: Merge pull request #24214 from NickHu/proselint...
<clever> MichaelRaskin: my extension dates back to 2008, and i'm surprised it still works so well
<MichaelRaskin> NickHu: well, you could try automating some new subset of updates…
<MichaelRaskin> clever: maybe if all you want is evaluating some scripts in the context of the current page, it is simpler…
<clever> MichaelRaskin: it currently has ~5 different eval contexts
<clever> MichaelRaskin: JSM modules, overlay js, custom sandbox's, greasemonkey level per-page sandboxes, and in-page js
<clever> MichaelRaskin: and a few full blown xul based windows
<MichaelRaskin> How interesting
<clever> and it makes use of sqlite client-side to cache and log data
<clever> its even using ctypes to ffi into the shutdown syscalls, so it can automate a long task, then turn the pc off
<MichaelRaskin> Well, the DB part was ont expected to suffer as much from e10s etc.
<MichaelRaskin> Oh
<MichaelRaskin> Interesting
<clever> var lib = ctypes.open("Advapi32.dll");
<clever> InitiateSystemShutdownEx = lib.declare("InitiateSystemShutdownExW",ctypes.winapi_abi,ctypes.unsigned_long,
<clever> and in the event the ffi doesnt support your os, it can just execute a script (bash or bat)
<clever> i would expect the modern extension stuff to not allow executition of code like that
<jophish> I did a native and cross build with NIX_DEBUG
<jophish> it does seem to be (c)cc-wrapper or ld-wrapper
stepcut has quit [(Remote host closed the connection)]
<jophish> in the native build the -lib output is added to the linker flags
<jophish> not so in the native build
<Infinisil> Damnit, why is firefox not using all cores to compile, nix.maxJobs is set to 4..
<jophish> Infinisil: what's the build-cores option set to?
<MichaelRaskin> max jobs is about number of packages built in parallel
<clever> Infinisil: maxJobs controls the number of derivations in parallel, not the make level
<NixOS_GitHub> [nixpkgs] kuznero opened pull request #25221: mono: init at 4.6.2 (master...mono462) https://git.io/v9mH1
newhoggy has quit [(Remote host closed the connection)]
stepcut has joined #nixos
thetet has joined #nixos
nicknovi1 has quit [(Ping timeout: 260 seconds)]
toppler has quit [(Remote host closed the connection)]
<jophish> clever: I think I've found the problem, mind if I run it by you to make sure it's sane before I start the long rebuild
<jophish> as I think the change will rebuild everything
<Infinisil> Ohh didn't know about buildCores option
<jophish> in multiple-output.sh the function _addRpathPrefix is called which adds the outputs to NIX_LDFLAGS
<jophish> however these are not added to NIX_CROSS_LDFLAGS
thetet has quit [(Ping timeout: 260 seconds)]
<clever> jophish: that sounds likely
<jophish> The distinction between NIX_CROSS_LDFLAGS and NIX_LDFLAGS seems pretty silly tbh
<jophish> just asking for problems
<clever> jophish: i also dont know why, but i could never get dynamic linking to work in the windows cross-compiles
<clever> jophish: so everything had to be staticly linked
<jophish> perhaps that's why this hasn't been discovered
<clever> jophish: you need the ability to compile host tools that are used in code generation
byteflame has quit [(Ping timeout: 260 seconds)]
<jophish> hmm, I suppose so
<jophish> What's the cleanest fix you can think of for this?
orivej has quit [(Ping timeout: 260 seconds)]
<clever> the nativeBuildInputs have to go into NIX_LDFLAGS
<clever> and the buildInputs go into NIX_CROSS_LDFLAGS
<jophish> I suppose that the outputs should go in NIX_CROSS_LDFLAGS
<clever> and confusingly, nixpkgs will rename your buildInputs to nativeBuildInputs when the cross config is missing
<jophish> I'll override this in the llvm derivation for now
<jophish> and wait for Sonarpulse's fix to go in
* clever heads out to get the mail
<Sonarpulse> jophish: ah you read that far then :)
<jophish> Sonarpulse: it looks like a super patch
* Infinisil tries to do the self thing
<Sonarpulse> :)
* Infinisil got it right on the first try
<Sonarpulse> I wish I could break it up further
<Sonarpulse> that big WIP TEMP commit mocks me
<Sonarpulse> but i think i can just make it swapping the ccwrapper
<jophish> perhaps better documentation could make it ok
<jophish> What's the neatest way of accessing $out in nix land?
<Sonarpulse> jophish: oh!
<Sonarpulse> there is a new thing for that
<Sonarpulse> i forget what
<Sonarpulse> it is called
sigmundv has joined #nixos
<Sonarpulse> but the hashes was specifically modified to allow such cyclic drvs
<jophish> I suppose I could try and use getOutput from attrsets.nix
<jophish> but I'd have to indent the whole expression to put a 'let self = ' in there
<NixOS_GitHub> [nixpkgs] copumpkin pushed 2 new commits to master: https://git.io/v9m5E
<NixOS_GitHub> nixpkgs/master 91f55f4 Dan Peebles: xalanc: enable on Darwin
<NixOS_GitHub> nixpkgs/master b2ce7fd Dan Peebles: xml-security-c: should work on any unix...
<Sonarpulse> jophish: that would cause a cycle
<Sonarpulse> this is a new builtin or something
hiratara has quit [(Ping timeout: 255 seconds)]
<Sonarpulse> copumpkin: ping what's the nice way of doing `$out` in nix expr lang itself?
<bennofs> Sonarpulse: it's impossible to get use $out to produce anything that ends up in the derivation
<Sonarpulse> bennofs: cause hash fixed point?
<bennofs> Sonarpulse: because that would make the hash of the derivation non-computable
<Sonarpulse> this thing gets around that
<Sonarpulse> by defering substitution to post hashing
<copumpkin> this is a magic thing
<copumpkin> you can't use it in nix
<copumpkin> but you can use it in nix
<copumpkin> mostly for configureFlags
<copumpkin> let me find it
<Sonarpulse> it's just a random nix commmit
<Sonarpulse> I think that you commented on :)
hiratara has joined #nixos
newhoggy has joined #nixos
<Sonarpulse> while you're all here
<copumpkin> it's not actually letting you use $out in nix, just talk about it
<NixOS_GitHub> [nixpkgs] benley opened pull request #25222: prometheus-alertmanager: 0.5.1 -> 0.6.0 (master...alertmanager-0.6.0) https://git.io/v9m5x
<copumpkin> it just gets replaced on the fly
<Sonarpulse> how can i run jobs like hydra locally?
<jophish> Doesn't hydra offer you a script to run locally?
<Sonarpulse> i dunno, it's not installed on my laptop :)
thetet has joined #nixos
<Sonarpulse> I'll check then
noam_ has quit [(Ping timeout: 240 seconds)]
leothrix has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<jophish> copumpkin: thanks for the link!
<dash> copumpkin: nice, i'll have to remember that one
<copumpkin> keep in mind that it's not in any released nix yet
<copumpkin> 1.12 will be amazeballs
<jophish> Sonarpulse: not sure, there should just be a link on the hydra page
<jophish> copumpkin: ah, that explains it
<jophish> (why I can't find it)
<dash> let's move to the future, it's less crowded
<Infinisil> Whoa
<Infinisil> I was amazed at how you did that for a second before i looked at the time
<Infinisil> Wait why is this CET based?
ryanartecona has joined #nixos
<gchristensen> much of the community is in CET
<Sonarpulse> jophish: ah hydra-evaluator
<gchristensen> well, CEST :)
bennofs has quit [(Ping timeout: 258 seconds)]
<jophish> Sonarpulse: http://hydra.nixos.org/build/51952860 actions->reproduce locally
<Sonarpulse> oh
ldesgoui has joined #nixos
astsmtl has quit [(Ping timeout: 260 seconds)]
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
ldesgoui has quit [(Client Quit)]
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/v9mbT
<NixOS_GitHub> nixpkgs/master 4c17131 Robert Helgesson: transmission-remote-gtk: fix broken tray applet icons...
stepcut has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] rycee closed pull request #25007: transmission-remote-gtk: fix broken tray applet icons (master...tweak/transmission-remote-gtk) https://git.io/vSAgN
<Infinisil> Question: There is a configuration.nix where i put all the hardware independent stuff, there's hardware-configuration.nix which gets automatically generated, but where would you put stuff that's hardware dependent but not auto-generated?
<Infinisil> Just another file which includes hardware-configuration.nix
<Infinisil> ?
simp__ has joined #nixos
<Infinisil> Or is there some way to add a custom attribute to the generated hardware-configuration.nix?
<clever> Infinisil: the 2 files are pretty much identical
<clever> Infinisil: you can put config into either one
<clever> Infinisil: the only special thing about hardware-configuration.nix, is that nixos-generate-config will overwrite it
<copumpkin> niksnut: any idea when ikwildrpepper returns?
bennofs has joined #nixos
<Infinisil> Yeah, I guess I'll just use a third file for hardware dependent stuff
<Infinisil> Don't want my stuff to be overriden accidentally
<clever> Infinisil: you can also just put everything into configuration.nix
<clever> that never gets overwritten
<Infinisil> Yeah but I want configuration.nix to be portable
<Sonarpulse> jophish: ah
nevermind has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever> Infinisil: ah, i have things in the other direction
<Sonarpulse> yeah what I really want to do is the eval part of combing through the attrset to find derivations
<Sonarpulse> but that actions thing is only availible on a single job
<Infinisil> How do you have it clever?
<clever> Infinisil: i have a core.nix for stuff on every machine, then i have a router.nix, nas.nix, and laptop.nix, all of those have imports = [ ./core.nix ];
<clever> Infinisil: and then configuration.nix purely has whats needed to boot, and imports [ ./nixcfg/laptop.nix ];
<clever> then i can git clone all of nixcfg between machines
<Infinisil> Hmm that's nice
ryanartecona has quit [(Quit: ryanartecona)]
<Infinisil> You're runnig NixOS on your router?
<clever> yeah
<clever> Infinisil: i have one of these acting as a router: http://www.supermicro.com/products/motherboard/Xeon800/E7520/X6DH8-XG2.cfm
sigmundv has quit [(Ping timeout: 268 seconds)]
<Infinisil> Interesting
sigmundv has joined #nixos
<clever> Infinisil: the router is also running a hydra: http://hydra.earthtools.ca/
<NickHu> Is there a package with base utilities like awk and echo and kill etc?
<clever> NickHu: yeah
<clever> NickHu: awk is in gawk, echo/kill are in coreutils
<obadz> what kind of permissioning does one need to run KVM
drasich has quit [(Ping timeout: 260 seconds)]
<obadz> getting Could not access KVM kernel module: Permission denied
<obadz> (on an Ubuntu box)
<clever> obadz: what permissions are on /dev/kvm ?
<clever> Access: (0666/crw-rw-rw-) Uid: ( 0/ root) Gid: ( 0/ root)
<obadz> root.root 600
<clever> on nixos, its 666
<obadz> clever: that did it
<jophish> Sonarpulse: in your comments did you mean to say that things in nativeBuildInputs do not need to be gotten from buildPackages?
stepcut has joined #nixos
<Sonarpulse> jophish: yeah
<jophish> oh cool
<Sonarpulse> it will use crossDrv + splicing to fish them out
<jophish> just what I want
<Sonarpulse> :)
<Sonarpulse> the cmake flag
<clever> Sonarpulse: what exactly has been redone in the cross-compile stuff?, how will it work without .nativeDrv and .crossDrv?
<Sonarpulse> is more a note to me
<jophish> What about buildPackages.buildPackages.cmake
<Sonarpulse> clever: well I wrote a manual section
<jophish> will it be smart enough?
<Sonarpulse> buildPackages itself is not spliced
stepcut has quit [(Remote host closed the connection)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
<obadz> clever: thanks
<Sonarpulse> it is smart enough for fixed output :)
<jophish> Sonarpulse: this is for master, right?
<Sonarpulse> yeah
<Sonarpulse> as of last year, so no danger
<clever> obadz: and now i'm wondering how kvm works and what it can do! : https://github.com/torvalds/linux/blob/master/arch/x86/kvm/Makefile#L20-L21
vandenoever has quit [(Ping timeout: 246 seconds)]
<clever> obadz: looks like kvm_main does the bulk of it, and then pmu_amd and svm handle the amd specific parts
hiratara has joined #nixos
<Sonarpulse> clever: I wrote a manual section
<Sonarpulse> you might want to start there
<clever> Sonarpulse: ah, link?
<obadz> I just love that it's so easy to spin up lightweight NixOS VMs even on non-NixOS distros
<Sonarpulse> oh i did already say that oops
<obadz> nix-build -E 'let pkgs = import <nixpkgs> {}; in with import <nixpkgs/nixos> { configuration = { services.mingetty.autologinUser = "root"; virtualisation.graphics = false; environment.systemPackages = with pkgs; [ vim python36 ]; }; }; vm'
<obadz> bam
<Sonarpulse> well i am not sure where to get nixpkgs master manual :D
newhoggy has quit [(Remote host closed the connection)]
<Sonarpulse> but doc/cross-compiling.xml
<clever> obadz: dont think you need to import <nixpkgs> there, you can still do { pkgs, ... }: like normal
<clever> Sonarpulse: ah, i can just read the xml
<obadz> clever: didn't work when I tried that
<clever> nix-build -E '(import <nixpkgs/nixos> { configuration = { pkgs, ... }: { services.mingetty.autologinUser = "root"; virtualisation.graphics = false; environment.systemPackages = with pkgs; [ vim python36 ]; }; }).vm'
<clever> obadz: this downloads something
<obadz> wdym it downloads something?
<clever> i recently did a nix-channel --update, but havent rebuilt nixos yet
<clever> but the fact its downloading, means the syntax passes
<obadz> yes you're right
_Vi has joined #nixos
<obadz> I don't know what I was doing wrong before
<Sonarpulse> clever: that or build your own manual with nix-build pkgs/top-level/release.nix -A nixpkgs-manual
<Sonarpulse> i think
<NixOS_GitHub> [nixpkgs] womfoo opened pull request #25223: facetimehd: disable aarch64 builds (master...facetimehd-disable-aarch64) https://git.io/v9mxX
<jophish> Sonarpulse: I think what you said (somewhere) about every compile being a cross compile is the right idea
<_Vi> I'm using Nix as supplementary program source on Debian (on /nix) and it works well... except for OpenGL. How do I resolve "unable to load driver: i965_dri.so"?
<Sonarpulse> jophish: right
<jophish> anyway, I'm off to bed now, night all!
<Sonarpulse> we'll need a mass rebuild for that :)
<Sonarpulse> jophish: good night!
<clever> jophish, Sonarpulse: i have found some of my own packages that where poorly made, and just assumed g++ and gcc worked
<clever> and when i switched them to clangStdenv for testing stuff, they broke
<clever> $CC and $CXX would be more portable
<simp__> https://www.reddit.com/r/NixOS/comments/31lx3i/windows_and_nixos_dual_boot/ Is the configuration suggested by m0rphism correct here?
<jophish> clever: I'd like it if I could do builds without gcc at all
<jophish> it takes so long to compile compared to clang
<jophish> oh, I'm going to sleep now, I forgot
<clever> Sonarpulse: something is acting up with my pc and cant load that link, but i have made my own system dual-boot via legacy
<clever> oops
<clever> simp__: https://pastebin.com/n0rJszs2 is how i did things
<Sonarpulse> clever: than CC_CROSS?
<Sonarpulse> yeah
<clever> simp__: line 12-13 tells grub to load the first 512 bytes of the windows partition and just jmp into it
<Sonarpulse> i made it CC_${prefix}_CROSS
<clever> Sonarpulse: ah
<Sonarpulse> though arguably BUILD_CC is better
<Sonarpulse> depends if you care more about build vs host induction or the target platform
<simp__> Couldn't I just do extraEntries = '' menuentry "Windows 10" {set root="hd1,msdos1"}?
<clever> ive cross-compiled a kernel before when i was on gentoo and needed an rpi kernel
<simp__> I mean what m0rphism did
<simp__> Because I don't know exactly what those do, clever
<Sonarpulse> mm i had broken that
<Sonarpulse> and I think somebody fixed that
<Sonarpulse> yay
<simp__> Is there some article on nix dualbooting?
<clever> simp__: the example m0rphism showed runs chainloader directly on partition 1 of hdd 0
guillaum2 has quit [(Ping timeout: 240 seconds)]
<clever> which is pretty close to what i did, partition 1 of hdd 1
<simp__> yes id do hd1 too since hd0 is nix
<simp__> Alright I'll try his and see if it works, if it doesnt ill be back for help
<clever> you can also just hit c at grub, and manualy type these commands in
drasich has joined #nixos
<clever> to figure out which one you need
Guest60386 has quit [(Remote host closed the connection)]
<Infinisil> Weird, I cannot git push via ssh using a different port than the default 22
drasich has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/v9mhL
<NixOS_GitHub> nixpkgs/master da0ef84 Graham Christensen: mysql test: use OpenPort check over blind sleep
<NixOS_GitHub> nixpkgs/master 5dd731b Graham Christensen: mysql test: test replication persists between slave stop / start cycle
guillaum2 has joined #nixos
<simp__> when I tried booting it said "Missing BOOTMGR", clever
<clever> simp__: there is also a new ntldr thing
<clever> simp__: https://wiki.gentoo.org/wiki/GRUB2/Chainloading under the "windows 7 example"
<simp__> Should it work for Windows 10 too?
<clever> probably
<maurer> simp__: If you've installed windows 10, it is most likely using a UEFI boot system
<maurer> The windows 7 example should work fine if it's using a legacy MBR boot system
<clever> if they havent made EFI required
<maurer> It's not required, but I don't know that the legacy bootloader exists if the UEFI one was the installed one
<clever> the wiki i linked says the uuid example works on 10
<clever> i think the reason the ntldr module in grub is special, it that it replaces the job of the mbr stub
<clever> it will open the ntfs filesystem and load the windows stage 2 loader
nicknovi1 has joined #nixos
andreas303 has quit [(Ping timeout: 240 seconds)]
<simp__> grub tells me it hasnt found the device when I choose it Windows 10
<clever> you can open a grub console with c, and then use tab-complete on the (hd argument
<clever> and it should even show you files within the FS if you put a / after it
<clever> and you can test the chainload in that console
andreas303 has joined #nixos
<clever> then just guess and brute-force it until you find a solution
MichaelRaskin has quit [(Ping timeout: 240 seconds)]
<simp__> okay will try that
<Infinisil> Btw the nix.buildCores option sadly doesn't work for firefox, still uses only 1
seanparsons has quit [()]
<clever> Infinisil: one min
<clever> Infinisil: did you change configuration.nix's nix.buildCores in the same nixos-rebuild as firefox?
<clever> Infinisil: changes like nix.buildCores dont take effect until after nixos-rebuild is done, so you would need to temporarily remove/undo firefox's change
sigmundv has quit [(Ping timeout: 260 seconds)]
seanparsons_ has joined #nixos
sigmundv has joined #nixos
ambro718 has quit [(Ping timeout: 246 seconds)]
anderslundstedt has quit [(Ping timeout: 264 seconds)]
nicknovi1 has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
anderslundstedt has joined #nixos
digitus has quit [(Quit: digitus)]
mkoenig has joined #nixos
<Infinisil> clever: Alright, I'll remember that, I won't stop my compile once more though, I can only hope it doesn't take too much longer
<clever> Infinisil: you can also use "--option build-cores 4" to override the value of that option
stepho has quit [(Ping timeout: 240 seconds)]
simukis_ has quit [(Ping timeout: 260 seconds)]
bennofs has quit [(Ping timeout: 258 seconds)]
<simp__> hm I'm getting "/bootmgr is missing" but Im guessing this is unrelated to nixos
<clever> simp__: double-check with tab completion to see what other files are on that partition
<clever> and try looking in every drive and partition for a bootmgr file
<simp__> I think maybe I just messed my windows installation
<clever> you can also try using ntfs3g to try to mount the windows partitions under linux
<clever> and look around to see what files are still there
<simp__> Would running windows repair tool maybe mess with Nixos, clever?
<clever> yeah
<simp__> From a disk I mean
<simp__> Yeah, thought so
<clever> a lot of windows tools just hijack the MBR and break dual-booting
<clever> are you currently in nixos?
<simp__> Yes.
<clever> can you gist the output of "blkid /dev/sd*"
<Yaniel> simp__: did you upgrade to the newest windows 10 recently?
<simp__> sudo blkid /dev/sd returns nnothing
<clever> it needs the *
<simp__> I'm not sure if I'm on the latest
<simp__> @ Yaniel
<simp__> Oh yes, didnt see it
<simp__> I installed it very recently Yaniel
<simp__> So im guessing it's the latest version
<Yaniel> well, that update destroyed the nixos loaders on my efi partition so I had to regenerate them
<simp__> Here it is , clever
<clever> simp__: ok, try doing mount /dev/sdb1 -o ro /mnt and then ls /mnt
leat has quit [(Ping timeout: 240 seconds)]
<clever> simp__: ok, now umount that, then mount sdb2 with the same cmd, and ls it
<clever> that is odd, i dont even see a boot.ini in there
<simp__> what could've caused this?
<clever> why does M$ have to break everything? lol
sellout- has quit [(Quit: Leaving.)]
<simp__> lol
erasmas has quit [(Quit: leaving)]
<clever> M$ deciding they need to change stuff that was working perfectly fine before they messed with it
<clever> simp__: oh, what about just chainload (hd1)+1
<clever> it looks like windows has its own hdd, so you can probably use the MBR from that
<simp__> Instead of the search thing?
<clever> this loads the 1st sector of a partition: chainloader (hd1,msdos2)+1
<clever> but this loads the 1st sector of the whole drive: chainloader (hd1)+1
<clever> the only thing search does, is find the drive automaticaly if the numbers change
<clever> from the output of blkid, i think this should work, "chainloader (hd1)+1"
Infinisil has quit [(Quit: Getting some sleep, way too late already)]
<simp__> Like this? https://pastebin.com/yuB5LqWD
taktoa has joined #nixos
<clever> lines 7, 9, and 11 are useless now
<clever> and you can test this in the grub console by just typing line 10 in directly
<clever> its far faster to test it in grub, then to edit configuration.nix, and nixos-rebuild every change
<simp__> cant I mess stuff up in grub though? just testing out commands?
<clever> it doesnt save changes by default
<clever> you need to use some specialized commands to be able to modify files
justelex has quit [(Ping timeout: 268 seconds)]
leothrix has joined #nixos
leothrix has quit [(Client Quit)]
mudri has quit [(Quit: WeeChat 1.7)]
eacameron has joined #nixos
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
markus1189 has joined #nixos
leothrix has joined #nixos
markus1199 has joined #nixos
markus1219 has quit [(Ping timeout: 258 seconds)]
markus1209 has quit [(Ping timeout: 240 seconds)]
sigmundv has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
sigmundv has joined #nixos