gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
asymmetric has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/da6e61fedd4 (from 66 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
Rusty1 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47303 → ghc, ghcjs: Get rid of extraneous alex, happy, and hscolour args → https://git.io/fANWJ
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47304 → ghc, ghcjs: Get rid of extraneous alex, happy, and hscolour args for 18.09 → https://git.io/fANWT
page_ has quit [Ping timeout: 252 seconds]
page has joined #nixos
asymmetric_ has quit [Ping timeout: 244 seconds]
Myrl-saki has joined #nixos
mizu_no_oto has joined #nixos
Fare has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47304 → ghc, ghcjs: Get rid of extraneous alex, happy, and hscolour args for 18.09 → https://git.io/fANWT
<{^_^}> [nixpkgs] @Ericson2314 pushed 4 commits to release-18.09: https://git.io/fANWD
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47303 → ghc, ghcjs: Get rid of extraneous alex, happy, and hscolour args → https://git.io/fANWJ
<{^_^}> [nixpkgs] @Ericson2314 pushed 4 commits to master: https://git.io/fANWy
lor|d is now known as lord|
Rusty1 has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fANWd
<justanotheruser> why is network-manager-applet-1.8.6 under both gnome3.networkmanagerapplet and networkmanagerapplet
Gohla has quit [Ping timeout: 240 seconds]
jperras has quit [Quit: WeeChat 2.2]
Ariakenom has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #47305 → Add adwaita-qt & qgnomeplatform → https://git.io/fANlq
wpcarro has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
wpcarro has quit [Remote host closed the connection]
trevthedev has joined #nixos
<trevthedev> hi
<trevthedev> im trying to get zerotier-one to work on nixos but the service doesnt exist at all
<samueldr> huh?
<samueldr> I'm using this successfully
<samueldr> $ systemctl status zerotierone.service -> ● zerotierone.service - ZeroTierOne
<trevthedev> yeah im pretty sure i isntalled it wrong, am installing it properly this time
<gchristensen> how did you try to enable it
<trevthedev> systemctl
<gchristensen> how did you install it?
<trevthedev> services.zerotierone.enable = true;
<clever> does it initially work but stop working after a reboot?
<emily> did you nixos-rebuild
<trevthedev> it cant find the service
<trevthedev> yes i rebuilt xd
Gohla has joined #nixos
<trevthedev> hmm, i think i got it to work, sec
<trevthedev> nope
<trevthedev> well, service is started
<trevthedev> cant join a network though as it says the port is missing
<trevthedev> got it
<worldofpeace> gchristensen: Any idea why when I commanded the almighty borg to build once it did it twice? -> #47305
<{^_^}> https://github.com/NixOS/nixpkgs/pull/47305 (by worldofpeace, 27 minutes ago, open): Add adwaita-qt & qgnomeplatform
<gchristensen> yeah
<gchristensen> my I recommend you refresh yourself on the features of OfBorg :) https://github.com/nixos/ofborg#automatic-building
<{^_^}> [nixpkgs] @aanderse opened pull request #47306 → rsyslogd & syslog-nd: fix broken module → https://git.io/fAN8Y
<worldofpeace> oh I thought it was just known users that had automatic builds
justanotheruser has quit [Ping timeout: 252 seconds]
<worldofpeace> i.e me skimming past italics :P
<{^_^}> [nixpkgs] @aanderse closed pull request #47134 → rsyslogd: fix broken module → https://git.io/fA5uS
orivej has joined #nixos
jasongrossman has joined #nixos
lassulus_ has joined #nixos
abueide has quit [Ping timeout: 252 seconds]
lassulus has quit [Ping timeout: 245 seconds]
lassulus_ is now known as lassulus
justanotheruser has joined #nixos
<samueldr> hmm, mildly inconvenienced. nixos-rebuild switch --install-bootloader doesn't seem to be installing the bootloader, I'm unsure the best way to debug
<samueldr> quick note: grub2 on ARM, let's assume the grub2 EFI on ARM will work, I just want nixos to copy the files at the right location
cheshircat has quit [Ping timeout: 264 seconds]
jperras has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
<clever> samueldr: is boot.loader.grub.efi.enable set?
dycan has joined #nixos
<clever> efiSupport = true i mean
<samueldr> yes, I was just building and found the issue
andreabedini has joined #nixos
<clever> what was it?
<samueldr> having extlinux generation enabled AND grub will not error out, both will set system.build.installBootLoader
<clever> ah, that should be a fatal error
<samueldr> or so I would have thought
<samueldr> once I removed extlinux generation the grub install script ran
<samueldr> (with errors, but that's another issue)
<samueldr> (0% free ought to be an issue)
<clever> grub just sets installBootLoader normally
<clever> 41 system.build.installBootLoader = "${builder} -g ${toString cfg.configurationLimit} -t ${timeoutStr} -c";
<clever> same in extlinux generic
<clever> samueldr: oh, i know why
<samueldr> yep, that's what made me try disabling extlinux: I was checking how it worked
<clever> 145 system.build = mkOption {
<clever> 146 internal = true;
<clever> 148 type = types.attrs;
<clever> samueldr: system.build is just a dumb attrset, with no typechecking and no error support
<samueldr> ah
abueide has joined #nixos
<samueldr> that's mildly annoying :)
<samueldr> Installing for arm64-efi platform.
<samueldr> :)
<clever> if your feeling bored, i would move ot to system.installBootLoader and give it a type of types.str i think
<clever> then it will hard fail if you set it twice
<samueldr> I would be interested instead in allowing to enable more than one, though unsure how bad of an idea it is
<clever> you could also try types.listOf types.str and add an apply function, one min
gammarray has joined #nixos
<samueldr> oh, don't make a big effort; mostly thinking out loud :)
<clever> samueldr: this is an example of how apply works
<samueldr> though thanks
<clever> samueldr: system.modulesTree internally, is a list of packages that contain kernel modules
silver_ has quit [Read error: Connection reset by peer]
<clever> but if you try to read the value elsewhere, it runs it thru the apply function
<clever> and aggregateModules will do a buildEnv over all packages, then run depmod to update caches within the result
<clever> so it masically acts as both a list, and a fully merged set of modules
<samueldr> oh my, grub on the raspberry pi, it worked
<clever> :O!!
<clever> how is efi even working???
<clever> document things!
<samueldr> I am!
<samueldr> [21:15:08] <samueldr> :eyes: u-boot can boot EFI, u-boot did boot my janky grub efi program on my raspberry pi... *scheming intensifies*
<samueldr> [21:17:59] <samueldr> related https://www.youtube.com/watch?v=bNL1pd-rwCU
<clever> :D
<samueldr> the only thing I did is unset scan_dev_for_extlinux in u-boot, then ran `boot`
<gammarray> stupid question: how do i update my nixos packages to the latest versions seen on github? my configuration.nix file uses 18.03, but several packages i depend on are still running older versions than what i see in the nixpkgs repo
<clever> and yeah, you sort of need a list for installBootloader, to be able to install both u-boot and grub2
<emily> u-boot -> efi -> grub -> linux -> kexec -> windows
<samueldr> clever: nixos doesn't know about u-boot
Supersonic has quit [Ping timeout: 260 seconds]
<samueldr> well, it's not a known bootloader
<clever> samueldr: having a proper list in installBootLoader would allow you to setup a uboot+efi module, and enable both uboot+efi and grub+efi
<samueldr> but you're right if one would want to manage it through nixos in a u-boot+EFI world
<samueldr> this is some exciting development
<samueldr> $ dmesg | grep efi -> [ 0.000000] efi: EFI v2.70 by Das U-Boot
<clever> samueldr: oh, one min
<clever> samueldr: run systemd-analyze
<clever> Startup finished in 577us (firmware) + 95us (loader) + 6.112s (kernel) + 20.083s (userspace) = 26.197s
<clever> efi reports how much time was spent in each stage of booting
<samueldr> Startup finished in 11.032s (kernel) + 7.882s (userspace) = 18.914s
<samueldr> maybe it's missing those bits
<samueldr> and it's unclear still, I don't know if it has efivars
jonreeve has joined #nixos
<clever> efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
<clever> samueldr: check `mount`
<samueldr> efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
<samueldr> I meant, not sure if it *saves*
<clever> [root@amd-nixos:~]# efibootmgr -v
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jonreeve> Anyone know how I can fix a collision like this? http://nixpaste.lbr.uno/b2rbTa0t?nix
<clever> for it to work right, part of u-boot has to remain running, forever, and have the ability to write to SD
<samueldr> clever: yes :)
<clever> uboot cant safely write to the /boot partition when linux mounts it
<samueldr> hmm
<clever> so u-boot would have to be configured to have a dedicated partition for its vars
<samueldr> I also think they said (in 2016) in the linked video that it doesn't save
Supersonic has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #45574 → gitlab: 10.8.0 -> 11.3.0, gitlab-ee: init at 11.3.0 → https://git.io/fAtaL
<{^_^}> [nixpkgs] @globin pushed 12 commits to master: https://git.io/fAN44
<samueldr> -> This document provides information about U-Boot running on top of EFI
<samueldr> *scheming intensifies*
<emily> :D
<samueldr> (seems u-boot can deal with both sides of the coin; I opened the wrong README)
<emily> please make grub run the u-boot it just booted from
andreabedini has joined #nixos
<{^_^}> [nixpkgs] @globin pushed 12 commits to release-18.09: https://git.io/fAN4u
graphene has quit [Remote host closed the connection]
<clever> oh, anoyingly, grub-efi cant chainload any legacy os
<clever> likely, because the CSM is potentially missing
<samueldr> what kind of dark scheming were you thinking of?
andreabedini has quit [Client Quit]
graphene has joined #nixos
<clever> i switched my dual-boot desktop to boot nixos in efi, but then discovered win7 still used legacy and lacks a boot.efi
<samueldr> oh, that's annoying
<clever> so i have to tweak bios settings, or return to pure legacy, every time i want windows
<samueldr> how's windows these days? just boot and win7-rebuild switch once you changed the setting?
<clever> lol
<clever> i have a boot.loader.grub.extraEntries that adds the correct chainload (legacy only) to the grub.cfg
<clever> so i can just select it from the main grub menu
<{^_^}> [nixpkgs] @orivej opened pull request #47307 → protobuf3_6: init at 3.6.1 → https://git.io/fAN4V
<samueldr> hmm, annoyingly BOTH uefi readmes are for u-boot-on-uefi, not u-boot's efi support :/
dycan has quit [Remote host closed the connection]
<samueldr> (I think)
<samueldr> oh no, misread
<samueldr> As of U-Boot v2018.03 UEFI variables are not persisted and cannot be set at runtime.
<clever> dang
<samueldr> though u-boot *does* have EFI services implemented
gammarray has quit [Remote host closed the connection]
<samueldr> so a clever individual probably can implement that
carlosdagos has joined #nixos
<clever> yeah
<samueldr> -> Some of the U-Boot devices are mapped as UEFI devices
<samueldr> I don't know enough about EFI, linux and such things, but could this help on a board where mainline linux can't use one of the listed devices, but u-boot can?
<samueldr> http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.uefi;h=6b9759cfede87a12959bbc9d6a8d097bb8f014e8;hb=HEAD#l228
<clever> linux doesnt really use much of the efi services
<clever> those are only for the bootloader level stuff
<samueldr> bummer
<clever> performance reasons
<clever> samueldr: early in the boot, the firmware is doing a lot of things, has exclusive control over drives, gpu, and usb, and provides a lot of features
<clever> samueldr: but when linux boots, it runs ExitBootServices() which shuts down most of that, and limits you to just the efi vars, and some very basic stuff
<clever> and then linux has permission to manage the previously mentioned devices
<samueldr> thanks for the 1000' view :)
<samueldr> it would have been an amazing cheat
<clever> also of note, there is a function in the efi tables, that just returns a boolean, saying if secureboot is on or not
<clever> but as you have seen, a machine without secureboot can just run something like uboot, and then uboot is free to lie and claim secureboot is "on"
<clever> i think the only point of that function, is to decide if you should verify other binaries, before you execute them
<clever> for example, so grub can ask the firmware, is linux.xz correctly signed?
<samueldr> yeah, that I knew
<samueldr> or like the signed shim to run anything
<samueldr> (or have I misremembered/misunderstood what that was)
<clever> https://nixos.org/nixos/options.html#boot.loader.grub.trustedboot
<clever> and this option, i believe grub will report the hash of the linux kernel (and other things?) to the TPM as it boots
<clever> and if you play the same sequence of hashes to the TPM, it will unlock the secrets
<clever> but if your grub is maliciously altered, the hash wont match, and the TPM wont unlock
<clever> same for any other binary in the chain
<samueldr> hehe, nice, by removing the extlinux folder u-boot does correctly continues to grub
<perrier-jouet> is the nixos website built with gitbook ?
<samueldr> nope
<perrier-jouet> clever: am sorry to ask this question since yesterday
<perrier-jouet> I just want to know how the website was built
andreabedini has joined #nixos
<clever> perrier-jouet: i think its bootstrap+docbook, from the Makefile in the repo i linked
<jonreeve> Anyone know how to fix a collision between two packages that have the same name and version?
<perrier-jouet> samueldr: clever which template
<clever> perrier-jouet: dont know
<samueldr> perrier-jouet: no "template", it's stock (older) bootstrap with as-needed tweaks and customizations
<jonreeve> Or just ignore the collisions?
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #47307 → protobuf3_6: init at 3.6.1 → https://git.io/fAN4V
<{^_^}> [nixpkgs] @orivej-nixos pushed 3 commits to master: https://git.io/fANBO
wpcarro has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/0cf38d99212 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
adetokunbo has joined #nixos
<adetokunbo> hello!
<adetokunbo> I am using nixpkgs on Ubuntu. I'm installing something I built locally into the nix-store, and I'm trying to use it in another nix-build without rebuilding it.
wpcarro has quit [Ping timeout: 260 seconds]
<adetokunbo> I think that should be possible, but my new nix-expr rebuilds the installed package every time.
<clever> adetokunbo: you need to refer to the nix expression that built it using import or callPackage
<clever> adetokunbo: if your leaving a result symlink in its source dir, then the source is going to change every time you build it, and nix will always have to rebuild it
<clever> lib.cleanSource can clean that up
<adetokunbo> clever: thanks!
<adetokunbo> clever: what I was doing was using nix-install -f {installed-package.nix} to install into the nix store
<clever> ive never used nix-install
<clever> i just use nix-build for building things in the store, and nix-env -f foo.nix -iA bar, if i want it installed into my profile
<adetokunbo> clever: sorry, my mistake
<adetokunbo> clever: I mean nix-env -f --install
oldandwise has joined #nixos
<clever> i also try to avoid using nix-env when testing things
<clever> i just nix-build and ./result/bin/foo to test things
<adetokunbo> clever: but to re-use the built artifact, I need "nix-env -f foo.nix -iA bar", right ?
<clever> nope
<clever> if you want to use it in another expression, you just import or callPackage the nix file that made it
<{^_^}> [nixpkgs] @matthewbauer pushed to master « emacsMacport: 7.1 → 7.2 »: https://git.io/fANBo
<adetokunbo> I'm import the package, so I guess I'm currently missing the lib.cleanSource part ?
<clever> yeah
<clever> if you get the `.drv` file from 2 different builds, you can use `nix-diff` to compare them, and see why its different and rebuilding
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @matthewbauer pushed to release-18.09 « emacsMacport: 7.1 → 7.2 »: https://git.io/fANB1
andreabedini has joined #nixos
oldandwise has quit [Ping timeout: 244 seconds]
<clever> samueldr: oh, and #osdev knows more about low level stuff in the efi area
oldandwise has joined #nixos
drakonis has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
nuncanada has quit [Ping timeout: 252 seconds]
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #44956 → blastem: init at 0.5.1 → https://git.io/fNd4o
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fANRu
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nixos
_lawlesseel has quit [Ping timeout: 256 seconds]
lopsided98 has quit [Quit: Disconnected]
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos
drp has joined #nixos
<adetokunbo> clever: can you point me of an example of how to use cleanSource?
luigy has left #nixos [#nixos]
zopsi has quit [Quit: Oops]
<clever> adetokunbo: src = lib.cleanSource ./.; is a simple example
zopsi has joined #nixos
<adetokunbo> clever: so for instance, I could also do src = lib.cleanSource ./foo.nix ?
<{^_^}> [nixpkgs] @aszlig pushed 5 commits to master: https://git.io/fAN0T
<adetokunbo> clever: I'm confused about the type of the result I'm getting back. It's not the same as if I just import the path.
<adetokunbo> clever: I got something like rror: string '/nix/store/jxgbxfzi68bakp2g33yv4rz01f6v1pvl-xxx' cannot refer to other paths
<clever> cleanSource needs a path to a directory
<clever> and it will filter the contents and then return another path
<clever> i dont believe it can be used on derivations
lopsided98 has joined #nixos
<{^_^}> [nixpkgs] @aszlig merged pull request #47222 → autoPatchelfHook: do not patch statically linked files → https://git.io/fAFYl
Fare has joined #nixos
oldandwise has quit [Quit: leaving]
abueide has quit [Remote host closed the connection]
abueide has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « protobufc: 1.3.0 -> 1.3.1 »: https://git.io/fAN0g
drakonis has quit [Read error: Connection reset by peer]
trevthedev has quit [Ping timeout: 264 seconds]
reinzelmann has joined #nixos
lostman has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #46127 → gcc-*: Clean up crossStageStatic logic → https://git.io/fAEUi
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/fAN01
<{^_^}> [nixpkgs] @jtojnar pushed 153 commits to gnome-3.30: https://git.io/fAN0M
wpcarro has joined #nixos
drp has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47233 → treewide: mass rebuild noop cleanups → https://git.io/fAFWw
<{^_^}> [nixpkgs] @Ericson2314 pushed 11 commits to staging: https://git.io/fAN0Q
wpcarro has quit [Ping timeout: 240 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/633e7ee7fbe (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
oldandwise has joined #nixos
clever has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 244 seconds]
clever has joined #nixos
jonreeve has quit [Ping timeout: 272 seconds]
gammarray has joined #nixos
gammarray has left #nixos [#nixos]
Rusty1 has quit [Quit: Konversation terminated!]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jperras has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos
jperras has quit [Ping timeout: 244 seconds]
Fare has quit [Quit: Leaving]
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @aszlig pushed to staging « stdenv: Improve ELF detection for isELF »: https://git.io/fANum
<{^_^}> [nixpkgs] @aszlig closed pull request #47244 → stdenv: Improve ELF detection for isELF → https://git.io/fAFEO
oldandwise has quit [Quit: leaving]
<{^_^}> [nixpkgs] @dtzWill opened pull request #47308 → musl: pick upstream fixes and improvements → https://git.io/fANuR
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/633e7ee7fbe (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
boegel has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #47309 → gcc*: fix libgomp (OpenMP) to work w/musl, don't build DSO using initial-exec → https://git.io/fANup
Ariakenom has joined #nixos
<dtz[m]> ^_^
Anton-Latukha has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #47309 → gcc*: fix libgomp (OpenMP) to work w/musl, don't build DSO using initial-exec → https://git.io/fANup
<{^_^}> [nixpkgs] @dtzWill pushed 5 commits to master: https://git.io/fANz0
<{^_^}> [nixpkgs] @dtzWill merged pull request #47308 → musl: pick upstream fixes and improvements → https://git.io/fANuR
<{^_^}> [nixpkgs] @dtzWill pushed 6 commits to master: https://git.io/fANzE
trcc has joined #nixos
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
oida has quit [Ping timeout: 256 seconds]
oida has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
peel[m] is now known as peel
revtintin has joined #nixos
ixxie has joined #nixos
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hyper_ch2 has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f5aed4dd5e3 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
xok has quit [Ping timeout: 245 seconds]
georges-duperon has joined #nixos
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @srhb pushed commit from @7c6f434c to release-18.09 « Merge pull request #47289 from 1000101/master »: https://git.io/fAN2H
<{^_^}> [nixpkgs] @srhb closed pull request #37759 → nixos/acme: Fix letsencrypt test nginx servernames → https://git.io/vxRoU
jperras has joined #nixos
hamishmack has joined #nixos
xok has joined #nixos
markus1189 has joined #nixos
<markus1189> I have to use a program that extracts it's own executable into a tmp folder (starting an embedded mongo db) which of course fails on nixos. It seems like there is no easy way change that program, is there any way to get this running on NixOS?
<{^_^}> [nixpkgs] @srhb merged pull request #47286 → clightning: 0.6.0 -> 0.6.1 → https://git.io/fAbQJ
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fANaO
<clever> markus1189: libredirect, to point it into running a pre-patched copy when it tries to run the other?
jperras has quit [Ping timeout: 252 seconds]
<clever> if you know what path it will be at
<{^_^}> [nixpkgs] @srhb pushed commit from @jb55 to release-18.09 « clightning: 0.6.0 -> 0.6.1 »: https://git.io/fANac
trcc has quit [Remote host closed the connection]
chpatrick has joined #nixos
<chpatrick> hi, I have a weird problem
trcc has joined #nixos
<chpatrick> if I have a default.nix and do import <nixpkgs> I get really old packages
<chpatrick> but in my system-wide configuration.nix and when using nix-env I get up-to-date packages
<chpatrick> what's going on?
<clever> nix-instantiate --find-file nixpkgs
<chpatrick> clever: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<chpatrick> but I'm not root
<clever> thats normal
<clever> its using the channel called nixos, that is managed by root
brejoc has joined #nixos
<hyper_ch2> hmmmm, would that be interesting to package for Nixos? https://github.com/Eloston/ungoogled-chromium
<chpatrick> clever: so what should I do?
<clever> chpatrick: what does nix-channel --list report, both with and without root?
<srhb> hyper_ch2: I'd mostly be worried about maintainership. Chromium isn't exactly known for its "fire-and-forget" derivations :)
<chpatrick> clever: https://pastebin.com/603gQ2MU
<hyper_ch2> srhb: I was thinking that it would be about the same as chromium
<clever> chpatrick: ah, you have 2 nixos channels, and a nixpkgs channel, thats going to cause all kinds of weird things
<srhb> hyper_ch2: That would certainly be easier. :)
trcc has quit [Ping timeout: 250 seconds]
<clever> chpatrick: do `nix-channel --remove nixos ; nix-channel --remove nixpkgs ; nix-channel --update` all without root
<hyper_ch2> I might give it a try... just copy chromium nix expression and just give ungoogle sources for it
<chpatrick> clever: ok, now there's nothing in --list
<chpatrick> update just printed "unpacking channels..."
<adamantium> anyone know how to spin up a basic nix autoscaling ec2 server
<clever> chpatrick: and now `ls -l ~/.nix-defexpr/channels` should only have a manifest.nix
<adamantium> i'm curious what the nix file would look like
<chpatrick> clever: that's right
<clever> chpatrick: and now everything should be using the same nixpkgs version, no more confusion
<chpatrick> clever: doesn't seem like it unfortunately :(
<chpatrick> still the same old packages
<chpatrick> should I re-add nixos maybe?
<clever> chpatrick: no, one min
<clever> chpatrick: what is the last-mod on the most recent channel in `ls -l /nix/var/nix/profiles/per-user/root` ?
<chpatrick> I have to say I've been using nix for one year now and this channel subscription stuff is still really confusing for me :(
<chpatrick> clever: all 2017
<clever> chpatrick: you simply havent ran `nix-channel --update` as root in a year
<srhb> chpatrick: Don't feel bad, channels are a bit confusing.
<chpatrick> clever: so when does root count and when does non-root count?
<chpatrick> I mean ideally root shouldn't be involved in what packages my user has right?
<{^_^}> [nixpkgs] @dezgeg merged pull request #47187 → U-Boot: Add Orange Pi Zero Plus2 (H5) build → https://git.io/fAdyl
<{^_^}> [nixpkgs] @dezgeg pushed commit from @samueldr to master « U-Boot: Add Orange Pi Zero Plus2 (H5) build »: https://git.io/fANap
<srhb> Yeah, root's channels do count normally
<clever> chpatrick: root's channels are the default for when your user lacks channels
<chpatrick> I see
<clever> chpatrick: and having a nixos channel on both root and your user just leads to confusion, because now you have 2 different versions of what "nixos" means
<clever> and having the nixpkgs-unstable on your user also leads to confusion, because you have to run --update twice, as each user
<clever> if you do want to use nixpkgs-unstable, you can add it to root, but name it something other then nixpkgs, since that name is a bit special
<hyper_ch2> srhb: looking at the nix expression.... iiiiieeeeeeks
<clever> chpatrick: sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable
<clever> chpatrick: also, for extra confusion points, --add takes url&name, but --list gives name&url!
<chpatrick> clever: thanks that helps a lot
trcc has joined #nixos
<chpatrick> maybe I just couldn't find it but I wish this was documented a bit better
<clever> chpatrick: first, `echo $NIX_PATH`
<clever> `/nix/var/nix/profiles/per-user/root/channels` is at the end for me, so every channel on root is in the path, and <unstable> would find what the above command created
<clever> but, `nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos` is near the start, so <nixpkgs> is forcibly mapped to the nixos channel on root
<clever> so you will have trouble using a channel named nixpkgs
<clever> `/home/clever/.nix-defexpr/channels` is also at the very start, so my personal channels have top priority
<chpatrick> I see
<clever> so a channel named nixpkgs, only works on non-root users, when accessed via <nixpkgs>
<realrokka> i trying to package https://github.com/gmn/nanotts/blob/master/Makefile ... the build finishes, but ./result is empty while I can tell from the cc output that everything is getting build, thix is the default.nix so far https://pastebin.com/9psdpiwg , for comparsion the arch PKGBUILD which just runs make without arguments and cps the resulting bin to /bin nothing more
<clever> but nix-env -iA CHANNEL.package, follows entirely different rules
<clever> nix-env basically ignores NIX_PATH, and will recursively search ~/.nix-defexpr/ for directories containing a default.nix, and then use the dir names
<chpatrick> clever: if root also has no subscriptions, will that make everyone use the same packages as configuration.nix?
<clever> if root has no channels, then nixos-rebuild will fail
<clever> enless you specially modify NIX_PATH via nix.nixPath
<chpatrick> okay thank you
<hyper_ch2> srhb: however the build instructions seem pretty muchj straight forward for ungoogled
<srhb> hyper_ch2: That might not be the case in NIx though :)
<hyper_ch2> :)
<hyper_ch2> srhb: # Use "export ..." for AR, NM, CC, CXX, or others to specify the compiler to use --> what are those?
<srhb> hyper_ch2: Various toolchain components. cc and cxx are used as aliases for the c and c++ compiler respectively,
patrl has joined #nixos
<hyper_ch2> srhb: but what are the differences of them? it seem you can use any of those compilers
<srhb> hyper_ch2: Huh? They're not all compilers, and there are no duplicates in the list you mentioned
<hyper_ch2> srhb: I have no idea... # Use "export ..." for AR, NM, CC, CXX, or others to specify the compiler to use ---> it says in the instructions to export ... to set the compiler to use
<clever> hyper_ch2: the stdenv in nix already sets all of those
<hyper_ch2> clever: just trying to understand the build instructions on the website :)
<srhb> hyper_ch2: It can probably use several toolchains, eg. llvm vs standard gnu suite etc.
<hyper_ch2> ok :)
<hyper_ch2> maybe I should try to compile it first on my last remaining debian system
<{^_^}> [nixpkgs] @aneeshusa opened pull request #47310 → vagrant: Clean up Gemfile → https://git.io/fANwv
sir_guy_carleton has quit [Quit: WeeChat 2.0]
WilliButz has joined #nixos
asymmetric_ has joined #nixos
<hyper_ch2> ok... debian stable is not a good choice... and it seems like really hard to get that to compile on nixos :(
<ldlework> i hope there is some discussion on this https://github.com/NixOS/nixops/issues/940
<{^_^}> nixops#940 (by colemickens, 21 weeks ago, open): virtual machine scale sets / managed instance groups / auto scaling group support
jackdk has joined #nixos
<ldlework> copumpkin: did you ever get anything related to autoscaling groups working with nixops?
<{^_^}> [nixpkgs] @dtzWill pushed 4 commits to master: https://git.io/fANrQ
<{^_^}> [nixpkgs] @dtzWill merged pull request #47258 → bitcoin: don't build things not used, enable parallel building → https://git.io/fAF1K
<ldlework> interesting that Azure support is so far ahead of AWS
civodul has joined #nixos
goibhniu has joined #nixos
adetokunbo has quit [Quit: This computer has gone to sleep]
ThatDocsLady_ has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
fendor has joined #nixos
ThatDocsLady has joined #nixos
trcc has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 pushed commit from @flokli to release-18.09 « pythonPackages.elasticsearch-dsl: 0.0.9 -> 6.2.1 »: https://git.io/fANo6
trcc has joined #nixos
<{^_^}> [nixpkgs] @1000101 closed pull request #46658 → trezord: 2.0.12 -> 2.0.19 and nixos/trezord: revised and updated udev rules → https://git.io/fAXvF
fendor has quit [Ping timeout: 252 seconds]
trcc has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #47310 → vagrant: Clean up Gemfile → https://git.io/fANwv
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fANoA
_lawlesseel has joined #nixos
<jonge> hey there, i have a very slick default.nix file in my c++ make project. when i inject a new stdenv like `stdenv = pkgs.makeStaticBinaries (pkgs.makeStaticLibraries pkgs.stdenv)`, i need to tell my default.nix to use glibc.static as buildInputs, too. otherwise it won't work. but i don't really want to change the default.nix in order to build it statically. any ideas what i am doing wrong?
<{^_^}> [nixpkgs] @jtojnar merged pull request #47305 → Add adwaita-qt & qgnomeplatform → https://git.io/fANlq
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/fANK6
<{^_^}> [nixpkgs] @srhb merged pull request #46924 → azcopy: init at 10.0.1 → https://git.io/fAHDq
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fANKP
thc202 has joined #nixos
sigmundv__ has joined #nixos
<{^_^}> [nixpkgs] @srhb opened pull request #47311 → Backport 18.09: ocamlPackages.cohttp: 1.0.2 -> 1.1.1 → https://git.io/fANKp
<{^_^}> [nix] @dtzWill opened pull request #2448 → nix-daemon: allow setting builders to "" by any user (untrusted) → https://git.io/fAN6q
trcc has joined #nixos
trcc has quit [Read error: Connection reset by peer]
<pie__> jonge, idk but maybe post the nix files?
trcc has joined #nixos
<jonge> pie__: ok, i am going to upload the whole thing to github, but i guess i'd tidy it up before that... thx
_lawlesseel has quit [Remote host closed the connection]
_lawlesseel has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @tarigo closed pull request #47184 → protobuf: 3.5.1.1 -> 3.6.1, grpc: 1.10.1 -> 1.15.0 → https://git.io/fAdDE
Ralith_ has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
<teto> I can't get to complete a fetchFromGitHub, it always ends up with "HTTP server doesn't seem to support byte ranges. Cannot resume". I suspect it's because I try to download an archive of a custom linux kernel which takes time for github to generate and by the time it completes, curl can't resume ?! any way aroud that ?
<tilpner> teto - Paste the expression, I'll try and see if it's the same here
<{^_^}> [nixpkgs] @Mic92 merged pull request #47260 → go: Remove pkg/obj directory from the build outputs. → https://git.io/fAFMC
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fANib
<{^_^}> [nixpkgs] @Mic92 pushed commit from @c00w to release-18.09 « go: Remove pkg/obj directory from the build outputs. »: https://git.io/fANPf
jperras has quit [Ping timeout: 240 seconds]
<srhb> steveeJ: Ping :)
georges-duperon has quit [Ping timeout: 240 seconds]
<jonge> pie__: what would you do to have pkgs.postgresql in static?
<jonge> when i use pkgs.postgresql.overrideAttrs { dontDisableStatic = true; } then the lib folder still contains no .a files.
pie___ has joined #nixos
<clever> jonge: does it gain a .static output?
<jonge> clever: you mean the overrideAttr'd one?
<jonge> clever: unfortunately, no
pie__ has quit [Ping timeout: 260 seconds]
<clever> jonge: reading the source, setting `dontDisableStatic = true` will prevent nix from deleting the .a files at https://github.com/NixOS/nixpkgs/blob/d16a7abceb72aac85e0deb8c45fbcb7127baf628/pkgs/servers/sql/postgresql/default.nix#L61-L69
<clever> but you need to also make sure postgresql builds them in the first place
<clever> check the build log and confirm what its doing
<jonge> clever: this is what i interpreted from reading the source, too. but it did not happen, so i also added --disable-shared to the configureflags, currently waiting for the build to see if it fixes things
pie___ has quit [Read error: Connection reset by peer]
pie___ has joined #nixos
<jonge> clever: will it automatically build openssl and everything in static, too, or do i need to handle this separately on top of everything?
<clever> you need to override everything in the stack to be static
<jonge> i mean the input deps of libpq
<{^_^}> [nixpkgs] @7c6f434c pushed 3 commits to master: https://git.io/fANXI
<{^_^}> [nixpkgs] @7c6f434c merged pull request #47298 → nixos: fix fallout from #46193 → https://git.io/fANtA
shreyansh_k has joined #nixos
reinzelmann has quit [Quit: Leaving]
<Ashy> has anyone here had any success with qtcreator on nixos?
georges-duperon has joined #nixos
<jonge> clever: so i will be doing the same thing for openssl etc. etc. and every package that has no .static attribute will be more work for me, right?
<{^_^}> [nixpkgs] @Mic92 pushed commit from @pacien to release-18.09 « matrix-synapse: 0.33.3.1 -> 0.33.5 »: https://git.io/fANXC
<Ashy> i'd like to play with some of the desktop and android examples but can't get any of the examples to show up in the qtcreator ide
sigmundv__ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @aneeshusa opened pull request #47312 → [WIP] Update openssh to 7.8p1, disable DSA host keys in client-side config → https://git.io/fANXB
sigmundv has joined #nixos
amosbird_ is now known as amosbird
<{^_^}> [nixpkgs] @xeji pushed to release-18.09 « Revert "virtualization/qemu-vm: fix and improve virtio/scsi switching" »: https://git.io/fANX6
<{^_^}> [nixpkgs] @srhb pushed to master « Revert "virtualization/qemu-vm: fix and improve virtio/scsi switching" »: https://git.io/fANXd
_lawlesseel has quit [Ping timeout: 256 seconds]
jackdk has quit [Ping timeout: 264 seconds]
fendor has joined #nixos
<teto> ,karma
<teto> not sure how it works but can someone give knight tilpner some karma plz :) ?
<sphalerite> tilpner++
<{^_^}> tilpner's karma got increased to 9
<tilpner> I think I'd like some help with pulseaudio over karma :/
<tilpner> Everything's broken on unstable :(
<sphalerite> oh?
<sphalerite> how? It's working for me
<{^_^}> [nixpkgs] @Profpatsch merged pull request #34265 → Modern RabbitMQ → https://git.io/vNPGD
<{^_^}> [nixpkgs] @Profpatsch pushed 2 commits to master: https://git.io/fAN1w
<tilpner> Pulseaudio just stops working after a while, and my mouse falls asleep (so infuriating!)
<sphalerite> that sounds like it would be caused by powertop
<tilpner> Oh
<tilpner> I'll disable any power things and report back
<goibhniu> what kind of audio interface are you using? bluetooth?
xok has quit [Remote host closed the connection]
<tilpner> Laptop speakers
ciil has quit [Quit: Lost terminal]
<tilpner> /sys/module/snd_hda_intel/parameters/power_save = 0
<tilpner> /sys/module/snd_hda_intel/parameters/power_save_controller = N
<tilpner> ^ from tlp-stat
<teto> yep pulseaudio works fine for me on unstable
<goibhniu> is there a pattern to when pulseaudio stops working? e.g. plugging in a monitor?
ciil has joined #nixos
<goibhniu> (it could be switching to another interface)
<tilpner> goibhniu - No, nothing special I can think of
<goibhniu> when it stops working again, let's debug!
georges-duperon has quit [Ping timeout: 252 seconds]
<tilpner> It it currently stopped, but let me first do power things
* goibhniu hasn't had problems with pulseaudio since running ubuntu ... many many moons ago
<goibhniu> you stop it?
<goibhniu> or there just isn't audio playing at the moment?
trcc has quit [Remote host closed the connection]
kiloreux has quit [Ping timeout: 240 seconds]
<sphalerite> goibhniu: do you have highlights on audio-related keywords? :D
trcc has joined #nixos
<goibhniu> hehe ... I'm triggered by people harshing on PA, for some reason I cannot explain ... I just <3 PA
<tilpner> goibhniu - I was listening to spotify, and then the music stopped. Now when I try playing a song with mpv (which usually works), it says "[ao/pulse] The stream is suspended. Bailing out."
<sphalerite> uuuugh that reminds me of the firefox pulseaudio fix and oxij's really aggressive opposition to it
<goibhniu> tilpner: just to be sure I understand ... do you manually stop or pause it some times?
<{^_^}> #35005 (by lheckemann, 31 weeks ago, merged): firefox: enable pulseaudio by default
<goibhniu> aye, that stuff concerns me too ... but I haven't experienced a problem with it personally
<tilpner> goibhniu - Yes, I pause the music sometimes. But that's not what happened. When I click play in spotify, it says "Can't play the current song", which is not a good error. It's not restricted to spotify, there's no sound at all anymore
<tilpner> But it's not playing without sound, it's... waiting to play, forever
<tobiasBora> Hello,
<tobiasBora> I just realized that notifications are not enabled on my KDE desktop
<goibhniu> tilpner: ah, I mean, do you pause pulseaudio, e.g. with pasuspender ... I guess not
<tilpner> No, I don't think I do. This is the first time hearing of pasuspender
<tobiasBora> I tried to look at "notification" in the package list, but I can find plenty of them. (libnotify, notify-osd, notify-desktop,
<goibhniu> cool
<tobiasBora> Which one should I install?
fendor has quit [Remote host closed the connection]
<sphalerite> tobiasBora: I think it should be integrated normally
<sphalerite> tobiasBora: does `nix run nixpkgs.libnotify -c notify-send hello` work?
<goibhniu> tilpner: can you run pavucontrol, to see what's happening
<tobiasBora> sphalerite: Hum... Well signal at least does not
<tobiasBora> sorry
<tobiasBora> your command seems to work yes
<sphalerite> tobiasBora: nothing to be sorry about!
<{^_^}> [nixpkgs] @xeji merged pull request #46227 → nspr: 4.19 -> 4.20 → https://git.io/fAzLz
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « nspr: 4.19 -> 4.20 (#46227) »: https://git.io/fANDU
<tobiasBora> but signal fails to notify me. So either it uses a different notify system, or I didn't checked the good box in the configuration
<sphalerite> tobiasBora: it's just a stab in the dark, but maybe adding libnotify to the signal expression would be enough to fix it
<Taneb> Is there a way to have a path to something in the nix store without using builtins.toPath? I'm currently doing "${caffe.src}/src/proto"
<tobiasBora> sphalerite: I confirm that notifications are enabled on signal side
fendor has joined #nixos
<sphalerite> Taneb: that should work without builtins.toPath
<tobiasBora> sphalerite: ok, I will try, thanks
<tilpner> goibhniu - Uhhh... this is weird. I open pavucontrol, seeing nothing wrong. Then I wanted to take a screenshot to show you. I had forgotten what my keybind for that was, and I tried super+print, and suddenly... sound!
<goibhniu> oh dear
<tilpner> goibhniu - Pressing super+print again pauses everything
<goibhniu> a true heisenbug
<goibhniu> nice!
booglewoogle has joined #nixos
<tilpner> I'll first check my config, it's probably user error
<Taneb> sphalerite: oh really? Thanks
<sphalerite> Taneb: toPath shouldn't be necessary most of the time
<sphalerite> I'm not even sure if it ever is
<{^_^}> [nixpkgs] @xeji merged pull request #46295 → curl: 7.61.0 -> 7.61.1 → https://git.io/fAzuy
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « curl: 7.61.0 -> 7.61.1 (#46295) »: https://git.io/fAND0
<booglewoogle> hey, is anyone using gnome? i can't seem to get startup scripts to work the usual way there, no nixos option too
<Taneb> sphalerite++
<{^_^}> sphalerite's karma got increased to 23
<tilpner> goibhniu - How would I find out if pulseaudio is suspended?
kiloreux has joined #nixos
<tilpner> I'm quite sure I have no keybinds for super+print. So it might be a hardware thing, maybe?
<goibhniu> good question, I doubt it's suspended though
<goibhniu> can you get it into a state where pavucontrol is open, and audio isn't working?
<goibhniu> the only common issue that people run into IME is that it's using the wrong device
<tilpner> Okay, I have pavucontrol open with the same "... is suspended, bailing out" state as before
<goibhniu> but it is totally possible that you need to tweak the audio module parameters
<goibhniu> lovely, what have you got under "Output devices"
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
<tilpner> It's not really a problem, now that I suspect super+print unsuspends it
<tilpner> Here's a screenshot: https://tx0.co/2g
<goibhniu> have you got a $HOME/.asoundrc file?
<tilpner> I do not
<tilpner> There is an /etc/asound.conf though
trcc has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @xeji merged pull request #47178 → epoxy: 1.5.1 -> 1.5.2 → https://git.io/fAd6u
<{^_^}> [nixpkgs] @xeji pushed commit from @avnik to staging « epoxy: 1.5.1 -> 1.5.2 (#47178) »: https://git.io/fANyr
booglewoogle has quit [Remote host closed the connection]
<tilpner> Aha!
<goibhniu> are you running anything in wine?
<tilpner> I ran alsamixer, and pressed F6 to list sound cards. Super+Print toggles the presence of an entry!
<goibhniu> omg
<tilpner> I'm still curious why
<goibhniu> that's exciting
<tilpner> But that suggests it's not pulse
<goibhniu> ah, perhaps it's a hardware mute thing on the laptop?
zopsi has quit [Ping timeout: 240 seconds]
zopsi has joined #nixos
<goibhniu> anyway, nice work!
graphene has quit [Remote host closed the connection]
<tilpner> Possible, but that would be weird. There is a Fn+F3 combination that has a crossed-through speaker symbol
<tilpner> I don't see why they would have the same thing twice (then again, Fn+F3 does nothing)
graphene has joined #nixos
<tilpner> goibhniu++
<{^_^}> goibhniu's karma got increased to 1
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @layus closed pull request #47113 → jabref: 3.8.1 -> 4.3.1 → https://git.io/fA5Ty
<teto> so I suppose distributedBuilds won't work in sandboxed mode ?
<sphalerite> teto: yes it will
revtintin has quit [Quit: WeeChat 1.9.1]
<sphalerite> teto: the sandboxing then happens on the build machines if they're configured that way
<sphalerite> the "build distribution" is a layer outside the sandboxing, so to speak
redj has joined #nixos
<teto> sphalerite: I ask because I can't get it to work. I see in journalctl "Unexpected nix daemon error: writing to file: Broken pipe" not sure that's related
<sphalerite> teto: can you ssh to the machines as root?
<sphalerite> https://nixos.wiki/wiki/Distributed_build goes through all the little bits
<teto> yes I can login there (not as root). ha cool link will go through it
<sphalerite> teto: you need to be able to run the ssh command as root and without any interactive auth
<sphalerite> teto: `sudo ssh host` needs to work
<sphalerite> the key parts for that are 1, having the host in *root*'s known_hosts file, and 2, having the keys configured appropriately
<{^_^}> [nixpkgs] @xeji merged pull request #47245 → coreutils: try 8.30 again, fix bootstrap tools expression motivating revert before → https://git.io/fAFEK
<{^_^}> [nixpkgs] @xeji pushed 3 commits to staging: https://git.io/fANH4
patrl has quit [Ping timeout: 260 seconds]
patrl has joined #nixos
trcc has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47108 → Mark long-failing packages broken for 18.09 (2) → https://git.io/fA7bd
<{^_^}> [nixpkgs] @xeji pushed 4 commits to master: https://git.io/fAN7Z
slyfox has quit [Ping timeout: 244 seconds]
orivej has joined #nixos
slyfox has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed 3 commits to release-18.09: https://git.io/fAN7u
patrl has quit [Ping timeout: 260 seconds]
<eeva> Quick question: nixops creates keys dir with owner root:keys and mod 0750 (https://github.com/NixOS/nixops/blob/master/nix/keys.nix#L189) For instance, I want to give mopidy some secrets it needs, but ofc it cannot read a file inside the dir, since it cannot list the keys dir. How do you guys solve that?
jperras has joined #nixos
kiloreux has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « mumble: build with -std=c++11 »: https://git.io/fANd7
jperras has quit [Ping timeout: 244 seconds]
<sphalerite> eeva: you don't need list (r) permission to access a file within a directory
<sphalerite> https://nixos.org/nixops/manual/#idm140737318276736 setting the permissions on the key as appropriate should be enough
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3b175f5d2ab (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
* realrokka sees a netsplit of doom
kiloreux has joined #nixos
kai_w has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
adamt has joined #nixos
jsgrant has quit [Quit: leaving]
<adamt> Hiya. When signing derivations for my own binary cache, should I sign first (in /nix/store/..) before nix copying, or sign *after* nix copying the derivations?
<adamt> Also, the first one probably wouldn't even work
<sphalerite> adamt: both ways work. But I usually set secret-key-files so they're signed right when they get built
<adamt> sphalerite: Ah, so by configuring the nix daemon directly I don't have to worry about signing afterwards. That's much simpler.
<adamt> Which probably also solves my issue of the CI user not being allowed to do the signing in the store (you are not privileged to add signatures)
<sphalerite> adamt: nix#1708
<{^_^}> https://github.com/NixOS/nix/issues/1708 (by lheckemann, 42 weeks ago, open): nix sign-paths as unprivileged user?
<sphalerite> I consider that a bug :p
<adamt> sphalerite: Buf if the daemon is configured to do the signing then that doesn't matter
<adamt> sphalerite: But -- am I blind or can the option really only be set with `nix.extraOptions`?
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> adamt: correct I believe
<adamt> sphalerite: Thanks.
<markus1189> clever: what exactly is libredirect?
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3b175f5d2ab (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<siers> sphalerite, autoRepeatInterval/Delay does not make it persist :(
iyzsong has joined #nixos
<tilpner> Hi! Has anyone successfully used services.xserver.displayManager.xpra? I would like a sample config :/
<sphalerite> siers: aww. I don't know what else might help
<siers> sphalerite, well at least now someone else besides me knows :)
<markus1189> clever: is your suggestion to add libredirect to the LD_PRELOAD and use NIX_REDIRECTS to patch the libraries used by the executable? I assume I can just export those from the shell to check if it works
<teto> sphalerite: so I can connect via ssh. I've tried the test recommended by the wiki ( nix ping-store --store ssh://iij_mptcp succeeds, well it retruns 0 output while before it emitted an error ), now I run `nix-build -A my_lenovo_kernel ~/nixpkgs --max-jobs 0 -vvvvv` and it says `considering building on remote machine ... hook reply is 'decline'`. How can I find out why "decline" ? according to github issues, it
<teto> can fail due to missing features on the remote builder but the error isn't printed so it's kinda hard to guess
<{^_^}> [nixpkgs] @endgame opened pull request #47313 → ultimate-oldschool-pc-font-pack: simplify using fetchzip → https://git.io/fANAf
<sphalerite> teto: what are you trying to build?
<adamt> How can I see who signed a nar in my cache? Just to verify that it works.
<teto> sphalerite: a linux kernel
<teto> hum it seems to work better with a simpler package
<LnL> adamt: nix path-info --sigs <store-path>
<teto> like if I try to build iperf, it seems to use the builder until it fails with "error: unexpected end-of-file"
<adamt> LnL: But that doesn't work with nix archives that isn't in /nix/store :-)
<sphalerite> teto: yep linux wants big-parallel
<sphalerite> adamt: yes it does, just pass --store
<LnL> adamt: oh a nar
<sphalerite> oh wait
<sphalerite> nars don't have signatures
<sphalerite> they're in the corresponding narinfo
<teto> the error might be because " imported archive ... lacks signature"
<LnL> adamt: curl https://cache.nixos.org/<hash>.narinfo
<LnL> adamt: with the hash of the store path (not including the name)
<sphalerite> teto: is the user on the remote end either root or listed in trusted-users?
<teto> It's a plain user. I will add it to trusted-users
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « bitcoin-classic: enable parallel building »: https://git.io/fANAo
<{^_^}> [nixpkgs] @xeji merged pull request #47150 → virglrenderer: 0.6.0 -> 0.7.0 → https://git.io/fA5AT
<{^_^}> [nixpkgs] @xeji pushed to master « virglrenderer: 0.6.0 -> 0.7.0 (#47150) »: https://git.io/fANA1
<tobiasBora> I've a very stupid question: how can I compile an expression I took directly on nikpkgs, like this one: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
<tobiasBora> I tried to "nix-build signal.nix" it, but it tells me "error: cannot auto-call a function that has an argument without a default value ('stdenv')
<tobiasBora> "
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « qradiolink: enable parallel building »: https://git.io/fANxf
<srhb> tobiasBora: In general, you want a small wrapper like: { pkgs ? import <nixpkgs> {} }: pkgs.callPackage ./default.nix {}
<markus1189> clever: but that won't get around the wrong ELF interpreter, right?
<srhb> tobiasBora: callPackage will fin in the arguments for the function if they're in the pkgs scope
<srhb> tobiasBora: Uh, signal.nix in your example, not default.nix :)
<sphalerite> tobiasBora: if you've got a nixpkgs checkout, nix build -f path/to/nixpkgs signal
<srhb> tobiasBora: You can also specify that on the command line
<tobiasBora> srhb: thank you
<srhb> tobiasBora: like, nix-build -E 'let pkgs = import <nixpkgs> {}; in pkgs.callPackage ./signal.nix {}'
<markus1189> the 'program' is a java library that starts an embedded mongo db by extracting a mongo executable into the /tmp folder and starts it. The executable is newly created on every run and removed afterwards
<tobiasBora> srhb: any reason there is not directly one command that automatically happend this? Seems pretty useful in practice no?
<tobiasBora> sphalerite: interesting
<sphalerite> tobiasBora: usually you'd build it from nixpkgs itself, where it's composed in all-packages.nix
<srhb> tobiasBora: Yet simple enough that a small shell alias will do it for you :)
<tobiasBora> srhb: sure, but it should be also easy enough to just add one option in nix-build no? ^^
<tobiasBora> sphalerite: so you mean you directly clone pkgs, and then run you nix-build -f ... signal command?
<srhb> tobiasBora: callPackage is essentially implementation detail in nixpkgs.
<sphalerite> tobiasBora: yes, because you need to do that if you're going to contribute your notification fix to nixpkgs anyway ;)
<srhb> tobiasBora: So easy, sure, but I don't think it's a good idea. :)
<tobiasBora> sphalerite: makes sense
<tobiasBora> srhb: implementation detail? what do you mean?
<srhb> tobiasBora: callPackage is just a function in nixpkgs
<srhb> tobiasBora: You might build things that aren't in nixpkgs with nix-build
<srhb> tobiasBora: Or work with functions that don't intend to be called from the scope of pkgs
<srhb> tobiasBora: In which case callPackage is just another function, nothing fundamental.
<tobiasBora> srhb: sure. Then in these case just don't use the custom flag :P
<kai_w> If I do `my_python = pkgs.python3.override { packageOverrides = {pytorch = ...} }` and then `my_python.callPackage ./foo.nix {}`, for some reason both the original and overridden pytorch get built, why?
<tobiasBora> srhb: but anyway, i guess sphalerite method is good enough
<srhb> tobiasBora: I don't think nix-build should really special case nixpkgs. :)
simukis has joined #nixos
<adamt> LnL: I just get the path followed by "ultimate" when running `nix path-info --sigs /nix/store/fpfb6qd48gxinqp6ydr7i5x76azwksr1-morph`, both before and after adding an extra signing key. Is that expected?
<sphalerite> srhb: like nix-shell does? :p
<srhb> sphalerite: Yes.
<srhb> (and you know that) :-P
<sphalerite> should it though?
<srhb> No.
<sphalerite> <devil's advocate> so nix-shell -p shouldn't exist?
<gchristensen> probably not
<srhb> sphalerite: Not in its current form, no.
<sphalerite> long live nix run :D
<srhb> But you could imagine providing a callPackage-like that you can then feed the attribute name you want
<srhb> Similar to all the withPackages things.
<sphalerite> srhb: like mkShell? Or…
<srhb> All the tools need to support function application and function arguments much better imo.
<srhb> So that everything can just be nix-shell expr -- "pkgs: ... " or something similar
<kandinski> I might have to reinstall nixOS because I don't seem to be able to upgrade without it compiling the world. I don't know what it is that I've bolloxed, but I'm pretty sure that Firefox 62 is compiled in the caches.
<srhb> kandinski: Reinstalling will probably do nothing to save you :)
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « syslogng: enable parallel building »: https://git.io/fANxj
<sphalerite> kandinski: does /etc/nix/nix.conf contain a line with "substituters = "?
<goibhniu> kandinski: what does nix-info say?
<kandinski> srhb: sigh, but thanks
<srhb> kandinski: At least, not unless you nuke all your configuration, in which case you could just as well not reinstall :P
<srhb> The curse of reproducible setups -- once you have an issue, turning it off and on again will do nothing!
<gchristensen> the good news is we can fix it
<srhb> yarr
<srhb> The #nixos hivemind is stronk
<kandinski> yes, I have substituters = https://niscache.reflex-frp.org. I also have trusted-substituters, which is empty
<kandinski> doesn't look good. I think installing Obsidian may have bolloxed my /etc/nix/nix.conf, grrr
<domenkozar> warning: Nix search path entry '/home/ielectric/.nix-defexpr/channels' does not exist, ignoring
<domenkozar> anyone seen this one? :)
<gchristensen> no worries kandinski
<kandinski> (because of that "subtituters" line only containing "https://nixcache.reflex-frp.org/"
<gchristensen> kandinski: what version of nix do you have (please run nix-info)
<srhb> domenkozar: It's a feature!
<domenkozar> :O
<kandinski> gchristensen: as root, I see this: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0.4, channels(kandinski): "nixpkgs-19.03pre153206.f753852e11d, nixos-18.09-18.09beta230.32c008a946c", channels(root): "nixos-18.03.133245.d16a7abceb7", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<{^_^}> #40165 (by wizzup, 20 weeks ago, open): warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
<gchristensen> kandinski: change substituters to extra-substituters
<kandinski> gchristensen: the idea is to run 18.03 for the main system, and then pick newer packages for my user from unstable
<kandinski> gchristensen: thanks, editing...
<domenkozar> dtz[m] to the rescue :)
<domenkozar> thanks srhb
<kandinski> gchristensen: I'm pretty sure I never edited this. Any idea what may have edited it?
<srhb> domenkozar: Sure thing :)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4335a9279e6 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<gchristensen> kandinski: the obsidian installer should probably be setting extra-substituters instead of substituters
<gchristensen> wait, you're on nixos?
<kandinski> yes
<srhb> Yeah, I'm confused as well. try-reflex and friends shouldn't do that.
<gchristensen> pastebin the output from: stat /etc/nix/nix.conf
<srhb> kandinski: fwiw the NixOS instructions you followed are these, I assumed? https://github.com/reflex-frp/reflex-platform/blob/develop/notes/NixOS.md
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « altcoins.bitcoin-xt: enable parallel building »: https://git.io/fANpD
<kandinski> srhb: I don't remember. There was a workshop, and there was too much going on. I can find the handout materials.
<kandinski> gchristensen: http://paste.debian.net/1044066/
<kandinski> gchristensen: I had noticed the file was read-only
<gchristensen> I can't help further -- I need to do stuff before work -- but surely other people can!
<kandinski> gchristensen: no worries
<kandinski> I've followed the trail of links, found the file in the store
<srhb> kandinski: I can only imagine that this happened by mixing up non-NixOS instructions with NixOS-instructions
<kandinski> srhb: hmm
<kandinski> maybe
<srhb> Might be a fault of my imagination of course :P
jperras has joined #nixos
<kandinski> srhb: I'm not that silly usually, but maybe?
<kandinski> so /nix/store is a read-only fs and I can't change permissions to write to the file
<srhb> kandinski: Nor should you
<srhb> kandinski: You should configure it via /etc/nixos/configuration.nix
octovarnik is now known as octovarnikd
<kandinski> srhb: yeah, I have a bigger hammer kind of approach
<kandinski> the Obelisk stuff may have been
<kandinski> yes, maybe if I just delete this stanza
<domenkozar> hint: cachix solves this :-)
<srhb> kandinski: Just add https://cache.nixos.org as well :)
<kandinski> where
<srhb> kandinski: I've been looking through both reflex and obelisk instructions, and they both look correct
<srhb> kandinski: nix.binaryCaches
<kandinski> well, it was the old Obelisk instructions
<srhb> Ah.
<kandinski> I can probably find it now
<{^_^}> [nix] @edolstra merged pull request #2448 → nix-daemon: allow setting builders to "" by any user (untrusted) → https://git.io/fAN6q
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fANh3
<srhb> kandinski: And if you have trouble rebuilding, you should be able to pass --substituters https://cache.nixos.org directory to nixos-rebuild
trcc has quit [Remote host closed the connection]
<kandinski> right, for another time
<srhb> Er, --options substituters https://cache.nixos.org
trcc has joined #nixos
<kandinski> right now I want to confirm that Obelisk instructions were messed up, or either that I got them wrong
mayhewluke has quit [Ping timeout: 264 seconds]
<srhb> Ok. :)
<srhb> So yes, looks like they were wrong prior to May 27.
<kandinski> yeah, grrr
<kandinski> well, I'll be repasting my CPU soon
<kandinski> because I've been cooking the laptop, seriously
<srhb> Sucks!
<kandinski> so it goes!
<kandinski> it's a learning experience imho
<srhb> Definitely. I hope you manage to sort it out easily with the instructions above. :)
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « altcoins.bitcoin-abc: enable parallel building »: https://git.io/fANhS
<tobiasBora> sphalerite: your solution for notify works, thanks, I'll do a PR
trcc has quit [Ping timeout: 250 seconds]
<jasongrossman> sphalerite++
<{^_^}> sphalerite's karma got increased to 24
<sphalerite> tobiasBora: yay!
patrl has joined #nixos
<kandinski> srhb: thanks
<kandinski> how come it's "substituters" on the command line, but "binaryCaches" in configuration.nix?
<srhb> kandinski: Hysterical raisins
<srhb> kandinski: substituters was part of the Nix 2.0 revamp
pareidolia has joined #nixos
<kandinski> srhb: and that's funny?
<srhb> kandinski: No, it's a little impractical.
<pareidolia> I can't build networkmanager because of a checksum failure. A hash for a patch file doesn't match. Anyone getting this problem? I just did nix-channel --udpate with no avail.
<kandinski> still compiling firefox
<Orbstheorem> Hello, I'm trying to get android studio to work with my androidsdk derivation
<srhb> kandinski: The NixOS module has all sorts of ${if isNix20 then ...}
<kandinski> srhb: I see.
<Orbstheorem> It complains it can't use the specified path because it's readonly
<Orbstheorem> any hints? ^^
<kandinski> pareidolia: I had that issue too.
<srhb> kandinski: Did you change the option and rebuild passing --options substituters https://cache.nixos.org on the command line to nixos-rebuild ?
<pareidolia> kandinski: Did you fix it?
<srhb> Er, `--option substituters https://cache.nixos.org`
<kandinski> srhb: I see, it's not either-or, but both
<srhb> kandinski: Yes, sorry if I was unclear
<kandinski> because I need to pass --options substituters etc in order to rebuild /etc/nix/nix.conf
<srhb> kandinski: The option only takes effect AFTER you've rebuilt.
<kandinski> no, I get it's a bootstrap issue
<kandinski> gotcha, thanks!
<kandinski> pareidolia: no, I didn't
<srhb> Which is why it's so awkward to lose the main cache :)
<kandinski> srhb: this is going to make me so much more efficient
<srhb> kandinski: No doubt!
<srhb> kandinski: It's like you've been on Gentoo, but worse!
<kandinski> because I was leaving stuff overnight, then trying to figure out where I was last time
<kandinski> "a worse Gentoo" indeed
<srhb> Yeah, we have to rebuild waaay more.
<gchristensen> we could make up fun stories like by compiling SO often it is faster because the CPU is so used to the code by now
<kandinski> srhb: hmm, /run/current-system/sw/bin/nixos-rebuild: unknown option `--options'
<kandinski> gchristensen: I have a Transmeta computer somewhere. Maybe it would be true there.
trcc has joined #nixos
<Orbstheorem> gchristensen: One day, we'll have computation cache xD
<srhb> kandinski: Urgh, nix 1.x I guess?
<kandinski> no, post 2.0
<srhb> Oh, really...
<kandinski> it's not documented in the man page
<srhb> No, it's not
<sphalerite> kandinski: you just copied srhb's typo
<kandinski> no --options
<sphalerite> --option not --options
<srhb> oh, lol, thank you sphalerite
<kandinski> sphalerite: ah, thanks
<LnL> and you probably want extra-substituters instead of overriding the default
<kandinski> w00t
<kandinski> I feel smart
<kandinski> LnL no, the default had been clobbered by a bad installer
<srhb> It would still work with extra-substituters
<srhb> The difference is that now you only have cache.nixos.org instead of BOTH cache.nixos.org and reflex cache
<kandinski> (bad install instructions from the Obelisk people who I'm personally going to visit and tut-tut at)
<srhb> Only matters if your system closure depends on reflex stuff in this case.
<kandinski> I also commented out the Obelisk bit
<kandinski> Oh, copying paths
<sphalerite> \o/
<tobiasBora> Hum... I'm curious, what's the difference between "nix build" and "nix-build"?
<gchristensen> well done, team!
<kandinski> (I'm going to write a a Sternly Wordecomment on the Obelisk social media page)
<srhb> kandinski: We also try to keep an eye on #reflex-frp, sorry if we've missed your issue earlier. :)
<kandinski> (might even leave a bad yelp review)
acarrico has joined #nixos
<LnL> kandinski: ah, well FYI you can pass it multiple substituters if you want to use multiple caches
trcc has quit [Remote host closed the connection]
<LnL> eg. --option substituters 'https://foo https://bar'
<sphalerite> tobiasBora: the `nix` comamnd is a new interface, still subject to change
trcc has joined #nixos
<sphalerite> tobiasBora: it provides fancy things like a progress indicator and a consistent UI between all the commands
<LnL> I wish the new ui would have dropped the channel prefix tho :/
<infinisil> LnL: +1 to that
Kelppo has joined #nixos
<kandinski> srhb: nothing to aplogise for, you are awesome. For a while I was also maintaining my own backported tree, so I thought it was normal that I was compiling so much. It's only when I moved to stock derivation trees that I started to wonder whether something was wrong.
<gchristensen> ouch :)
<LnL> infinisil: I made an issue for it, but I doubt it's going to happen
<kandinski> gchristensen: it's a learning curve
<srhb> kandinski: Yeah, getting a feel for when and when not you can expect binary caches is a bit of a black box at times. One gets quite good at predicting it correctly though :)
orivej has quit [Ping timeout: 252 seconds]
<gchristensen> every. time. if you change your kernel config *stares*
<srhb> :D
<sphalerite> gchristensen: what if you build the kernel with nix-shell until you've got it fine-tuned right?
trcc has quit [Ping timeout: 240 seconds]
donguri has joined #nixos
<gchristensen> hard to do that when I need to put it in to a netboot initrd
<donguri> I'm having some trouble with Cabal/Nix integration. I can nix-shell and then cabal repl fine, but cabal --enable-nix repl gets me this error message:
<donguri> error: syntax error, unexpected ',', expecting ')', at /nix/store/blybqszbgcv7xnahzvs7ica2q4ncfcpm-interactive-mixolydia-0.1.0.0-environment.drv:1:15
phreedom has quit [Ping timeout: 256 seconds]
phreedom_ has joined #nixos
<kandinski> srhb: how are trusted-substituters called in configuration.nix?
<srhb> kandinski: Though, why do you want that?
<kandinski> srhb: because I'm guessing that https://cache.nixos.org is trusted?
alex``` has quit [Ping timeout: 272 seconds]
<kandinski> I do because I tried to pass --option substituters https://cache.nixos.org to nix as user, and it complained there were no trusted-substituters and exited.
<srhb> kandinski: No, trusted-substituters is for substituters you don't want enabled normally but you do want untrusted users to be able to activate them explicitly on the command line
alex``` has joined #nixos
<kandinski> srhb: I see
<kandinski> I've been compiling the whole of rust just to get fd, ripgrep, etc
<kandinski> but now
<kandinski> \o/
<srhb> :)
<kandinski> it's an 8-year-old i7
<kandinski> nice, this was a goal for today, thanks a lot. I might try and install Obelisk again later...
<srhb> Welcome. If you do run into problems please do reach out.
<kandinski> well, now I can maybe try and fix common (shared) issues!
<kandinski> I wanted to package the drivers for my printer, to begin with. Selfish, but useful fr others too.
realrokka has quit [Quit: rip]
<kandinski> or maybe the network-manager issue that pareidolia and I have hit upon
<{^_^}> [nixpkgs] @tobiasBora opened pull request #47315 → signal-desktop: enable notifications → https://git.io/fAAvg
<kandinski> (I found it when I was trying to backport network-manager from unstable into 18.03 to see whether that would fix an issue with handling .ovpn configurations (https://github.com/NixOS/nixpkgs/issues/46729)
<{^_^}> #46729 (by candeira, 1 week ago, open): network-manager-applet fails at importing .ovpn file
patrl has quit [Quit: WeeChat 2.2]
<teto> sphalerite++
<{^_^}> sphalerite's karma got increased to 25
<sphalerite> huh? What'd I do for that one? xD
<teto> sphalerite: got the remote builder working, the build processed it printed on the console right ? that's cool !
<sphalerite> \o/
<sphalerite> yeah well actually the way it passes the build log through is a bug buuuuuuut lol
<teto> still sad that nixos-rebuild --help prints only half of the available options. I had to look on the internet to find how to disable remote builders
patrl has joined #nixos
<sphalerite> " In addition, nixos-rebuild accepts various Nix-related flags, including --max-jobs / -j, --show-trace, --keep-failed, --keep-going and --verbose / -v. See the Nix manual for details."
<teto> yeah I didn't expect the log to be printed but I like it
graphene has quit [Remote host closed the connection]
<sphalerite> :')
graphene has joined #nixos
<teto> I used --options builders '' which is not listed there :p and not sure where to find the nix manual. Also nixos-rebuild --help doesn't use a pager so you gotta scrollback
<srhb> teto: It'll be man nix.conf for those things
<kandinski> srhb: so now, even if I rebuild from my own tree with some backports, it should still find most things in the caches, and only build the backported derivations, correct?
<srhb> kandinski: Yes, everything that is already built by one of your substituters will just be downloaded.
<srhb> kandinski: So as long as you dont override libc or something, you'll be fine most of the time. ;)
deltasquared has joined #nixos
trcc has joined #nixos
phreedom_ has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos
<teto> so what happens once you get enough karma ? free massage at nixcon ?
<srhb> teto: You level up and gain the ability to gaze through the Veil, seeing for the first time what the world would be in its true, functional glory.
<etu> teto: The ability to read and understand the entire manual.
<deltasquared> what's that, a universal law of physics operating over the previous state of the universe?
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
<worldofpeace> cake
<{^_^}> [nixpkgs] @alyssais opened pull request #47316 → nix: move perl-bindings inside common function → https://git.io/fAAJz
trcc has quit [Ping timeout: 245 seconds]
donguri has quit [Quit: Leaving]
kai_w has quit [Quit: Konversation terminated!]
<betaboon> does anyone have an example how to use the current yarn2nix to build a angular6 application ? oO
iyzsong-x has joined #nixos
<infinisil> [2018-05-26 20:24:58] <gchristensen> 25 points gets you a sticker, 100 points gets you a t-shirt, 1000 verified points gets you a free trip to nixcon *restrictions apply, must be verifiable points, given by grateful people, in channels I'm in
<infinisil> teto: ^
<gchristensen> I was wondering when you'd bring it up :)
<infinisil> :P
<infinisil> Had to look it up in the logs
jasongrossman has quit [Ping timeout: 260 seconds]
iyzsong has quit [Ping timeout: 240 seconds]
<infinisil> ,loot = [2018-05-26 20:24:58] <gchristensen> 25 points gets you a sticker, 100 points gets you a t-shirt, 1000 verified points gets you a free trip to nixcon *restrictions apply, must be verifiable points, given by grateful people, in channels I'm in
<{^_^}> loot defined
orivej has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « altcoins.litecoin: enable parallel building »: https://git.io/fAAUX
<etu> haha :)
<infinisil> We shall not forget!
* etu has nixos-styckers from redbubble he needs to put on his laptop
<zimbatm> can someone update the topic for nixcon? CfP is actually closed now
<zimbatm> ^^ gchristensen
zimbatm changed the topic of #nixos to: NixCon 2018 - 25-27 Oct in London https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
<zimbatm> magic
<gchristensen> thanks :)
<betaboon> can i get dropped into a shell during a phase of a derivation ?
<zimbatm> <3
<{^_^}> #42371 (by Mic92, 13 weeks ago, open): breakpointHook: add for debugging failing builds
deltasquared has left #nixos [#nixos]
jasongrossman has joined #nixos
<betaboon> symphorien: yeah something like that seems to be usefull :D
<betaboon> is there a possible-today(tm)-solution ? XD
<hyper_ch2> hmmmmmm, if possible, stuff should be packaged/compiled from source right?
<srhb> hyper_ch2: Yep.
<qyliss^work> betaboon: there is if you use a local nixpkgs checkout you can apply that patch to :P
<hyper_ch2> srhb: still thinking about ungoogled chrome - there's a nice portable binary
<Mic92> betaboon: already works for me, but I haven't wrote the documentation yet.
<srhb> hyper_ch2: Availability of a nice binary isn't usually a sufficient argument. :)
<qyliss^work> (highly recommend it - trying out experimental stuff really easily is so nice)
<hyper_ch2> srhb: for me it is :)
<srhb> hyper_ch2: Sure, what I meant was: Just don't expect inclusion in nixpkgs without weightier arguments. :)
<etu> hyper_ch2: you can always have an expression in your config to have that package available for you :)
globin has quit [Remote host closed the connection]
<hyper_ch2> etu: when I have more time I'll probably try to write a proper expression.... I was just hoping I could use the chromium one and then just adjust sources and a few things... but even the chromium expressions are so complicated :)
graphene has quit [Remote host closed the connection]
<hyper_ch2> and what ungoogled does - as far as I've seen - is basically a wrapper to modify sources a lot and then compile
<teto> infinisil: cool stuff. There is space between 100 and 1000 for further bonuses. 500 points, the printed version of eelco's thesis; 250 points, the 3d printed smile of ofborg's pic
graphene has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
<gchristensen> happy to do the 500pt one, 3d printed smile is probably expensi/e
<gchristensen> and if you're close to 1k I need to be saving my money for your trip :)
Dedalo has joined #nixos
<tilpner> gchristensen++
<{^_^}> gchristensen's karma got increased to 27
abueide has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47317 → arb: 2.14.0 -> 2.15.0 → https://git.io/fAAkp
<sphalerite> lol
hiroshi- has joined #nixos
iyzsong-x has quit [Quit: ZNC 1.7.1 - https://znc.in]
hiroshi has quit [Ping timeout: 264 seconds]
hiroshi- is now known as hiroshi
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47318 → apt-cacher-ng: 3.1 -> 3.2 → https://git.io/fAAIO
jasongrossman has quit [Ping timeout: 252 seconds]
silver has joined #nixos
<srhb> Is there a nice wrapper somewhere for building store paths from other store paths, but rewriting within them? Ie. a la symlinkJoin but [{ Src, Dest }] -> Out
Jetien has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47319 → cadvisor: 0.30.2 -> 0.31.0 → https://git.io/fAAtJ
<elvishjerricco> srhb: I don't think so, but I've often wanted such a thing. Let me know if you find something / add something to nixpkgs :P
Xiro` has joined #nixos
<srhb> elvishjerricco: Yeah, me too. But you know, the whole pulling yourself together thing... :-P
kai_w has joined #nixos
romildo has joined #nixos
wpcarro has joined #nixos
<manveru> anyone know what 'error: cloning builder process: Operation not permitted' means?
<srhb> Sounds like a sandboxing restriction. Building in a container?
<manveru> yeah
<manveru> trying to build in docker with sandboxing
<srhb> Yeah, that sounds hard. You'll need more capabilities in order to be able to do the necessary chroot
<gchristensen> your builder can't set up its own namespacing, you need to be root in a privileged container to do that
<manveru> ok
<manveru> if i try to build without sandboxing, it tells me that /homeless-shelter exists already (though it doesn't)
<manveru> will have to think of something else then... can't make this privileged
<{^_^}> [nixpkgs] @taku0 opened pull request #47321 → oraclejdk: deprecate oraclejdk 10 → https://git.io/fAAqZ
<Jetien> Hi, is it possible to use hydra builds to create other derivations _without_ access to the original nix expressions for the build? I'd rather ference the .nixpkg urls directly. What I'm trying to accomplish is to define nixos/nixops configurations with selected builds installed.
<srhb> Jetien: I thought .nixpkg was essentially completely deprecated.
wpcarro has quit [Remote host closed the connection]
<srhb> Maybe I'm wrong.
romildo has quit [Ping timeout: 244 seconds]
wpcarro has joined #nixos
<Jetien> srhb: Ah i see. Maybe there is another solution? My use case should be pretty common
<manveru> gchristensen: but i should be able to setup remote builders from that docker container to do this for me, right?
Mateon2 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47322 → ace: 6.5.1 -> 6.5.2 → https://git.io/fAAme
wpcarro has quit [Ping timeout: 244 seconds]
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon2 is now known as Mateon1
<srhb> Jetien: Doesn't sound very common to me...
<srhb> Jetien: And I don't know how you'd do it. :)
<srhb> Jetien: It sounds to me like it involves building a reference graph from scratch.
samrose has joined #nixos
<Jetien> srhb: Hmm. Maybe my use case can be generalized to: I want to build nixos config with a derviation installed which can be build from a release.nix from a private repo at a specific commit. If i remember correctly I had issues with fetchGit when I just provide a commit hash, not a tag/branch. For github this works, but there is fetchGithub.
worldofpeace has quit [Remote host closed the connection]
<srhb> Jetien: It should absolutely be possible to just import (fetchGit ... release.nix) provided you have the necessary access
<samrose> anyone have some nixos apparmor examples?
<srhb> Jetien: Might be easier to solve credentials with builtins.fetchgit
<fendor> is it possible that the latest npm package is neither in stable nor in unstable?
<srhb> Jetien: And you also may have to modify your Hydra config a bit to allow IFD.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47323 → chirp: 20180815 -> 20180906 → https://git.io/fAAmH
<srhb> fendor: Possible, certainly. What is latest?
<fendor> srhb, at least npm claims 6.4.1
<fendor> from unstable i get 5.6.0
<srhb> nix eval -f channel:nixos-unstable nodePackages.npm.version says 6.4.1
<tilpner> samrose - Of profiles?
Kelppo has quit []
<srhb> fendor: Your unstable must be older.
worldofpeace has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47324 → bind: 9.12.2 -> 9.12.2-P2 → https://git.io/fAAYL
<Jetien> srhb: thank you
<tilpner> samrose - I have started on a function that generates parts of such a profile
<tilpner> samrose - https://tx0.co/2j
<samrose> tilpner: nice, I was going to need to find myself in the space of generating profiles
<fendor> srhb, oh, i installed nodejs, i thought, it would bundle the most recent npm?
patrl has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #46159 → gildas: 20180801_a -> 20180901_a → https://git.io/fAuOI
<{^_^}> [nixpkgs] @xeji pushed commit from @smaret to master « gildas: 20180801_a -> 20180901_a (#46159) »: https://git.io/fAAYw
<gchristensen> is there a way to add a program (which happens to be written in python) to a nix shell without having the package added to the PYTHONPATH and stuff?
<srhb> fendor: I don't know the specifics of that ecosystem, sorry :)
<fendor> srhb, i think, that fixes it, thanks!
<samrose> tilpner: thanks for that example
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47325 → arpack: 3.5.0 -> 3.6.3 → https://git.io/fAAYb
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47326 → bibutils: 6.6 -> 6.7 → https://git.io/fAAOe
<{^_^}> [nixpkgs] @dtzWill opened pull request #47327 → cairo: 1.15.12 -> 1.15.14 → https://git.io/fAAOk
astronavt__ is now known as astronavt
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47328 → apacheHttpd: 2.4.34 -> 2.4.35 → https://git.io/fAAOc
halfbit has joined #nixos
grp has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47329 → chromedriver: 2.41 -> 2.42 → https://git.io/fAAOh
alex``` has quit [Quit: WeeChat 2.2]
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 252 seconds]
alex`` has joined #nixos
<{^_^}> [nixpkgs] @zimbatm opened pull request #47330 → Firefox bin patch channels → https://git.io/fAAsk
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47331 → adapta-gtk-theme: 3.94.0.132 -> 3.94.0.149 → https://git.io/fAAs3
wildsebastian has joined #nixos
<sphalerite> gchristensen: add writeShellScriptBin "foo" ''exec ${pythonFoo}/bin/foo "$@"'' to the nativeBuildInputs? :D
<gchristensen> ugly :)
<{^_^}> [nixpkgs] @peti merged pull request #47328 → apacheHttpd: 2.4.34 -> 2.4.35 → https://git.io/fAAOc
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fAAs4
<{^_^}> [nixpkgs] @peti merged pull request #47324 → bind: 9.12.2 -> 9.12.2-P2 → https://git.io/fAAYL
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fAAsu
<sphalerite> gchristensen: shellHook = '' export PATH="${pythonFoo}/bin:$PATH"''; ?
<gchristensen> also ugly, but yes
<sphalerite> maybe what's ugly is that adding a package to buildInputs/nativeBuildInputs can add arbitrary env vars :p
<{^_^}> [nixpkgs] @garbas merged pull request #47330 → Firefox bin patch channels → https://git.io/fAAsk
<{^_^}> [nixpkgs] @garbas pushed commit from @zimbatm to master « firefox-bin: fix channel patching »: https://git.io/fAAGk
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47332 → ccid: 1.4.29 -> 1.4.30 → https://git.io/fAAGq
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @zimbatm pushed to release-18.09 « firefox-bin: fix channel patching »: https://git.io/fAAGE
erasmas has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47333 → alembic: 1.7.8 -> 1.7.9 → https://git.io/fAAG1
<{^_^}> [nixpkgs] @bfortz opened pull request #47334 → autojump: creates links required by oh-my-zsh for autojump. → https://git.io/fAAGy
<{^_^}> [nixpkgs] @Chiiruno opened pull request #47335 → Update: linux_testing_bcachefs, dolphinEmuMaster, easyjson, quicktemplate, hydron → https://git.io/fAAGS
hyper_ch2 has quit [Quit: Page closed]
zduch4c has joined #nixos
<zduch4c> hello, two questions
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47336 → brightnessctl: 0.3.2 -> 0.4 → https://git.io/fAAZq
xok has joined #nixos
<xok> hello all..
<zduch4c> a) how to disable the touchpad entirely, using declarative syntax? It still detects my touchpad as a PS/2 device, even though I don't have synaptics turned on
<zduch4c> b) how do I list the Emacs packages available on NixOS?
<xok> I've got a website written in Perl ( using Dancer framework )...
<xok> can anyone help me understand how to automate the deployment process for this website and install all the required CPAN modules for Perl?..
<eeva> sphalerite: it's actually execute permission
<eeva> *missing
<eeva> (that was about the nixops and secret keys permission)
endformationage has joined #nixos
<sphalerite> eeva: yeah. I don't know why it's set like that but apparently it works for people who use nixops keys
<sphalerite> I really don't get how either
fendor has quit [Ping timeout: 252 seconds]
<eeva> Ok, thanks for replying :D
<clever> zduch4c: the perl code in https://github.com/NixOS/hydra/blob/master/release.nix may be of use
<{^_^}> [nixpkgs] @adisbladis pushed 4 commits to master: https://git.io/fAAZS
<clever> zduch4c: that deals with hydra-server and getting catalyst up, https://github.com/NixOS/hydra/blob/master/src/script/hydra-server
<LnL> zduch4c: this should list all emacs packages nix-env -qaP -f '<nixpkgs>' -A emacsPackages
aminb_ is now known as aminb
<Taneb> It's frustrating that nix build doesn't print the store path...
<Taneb> (whereas nix-build does)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47337 → apktool: 2.3.3 -> 2.3.4 → https://git.io/fAAnn
<sphalerite> Taneb: mumble mumble gc safety
graphene has quit [Remote host closed the connection]
wpcarro has quit [Remote host closed the connection]
<sphalerite> Taneb: nix-build() { nix build "$@" && readlink result }
wpcarro has joined #nixos
<LnL> now you have a race condition :p
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
graphene has joined #nixos
<sphalerite> LnL: nix-build() { dir=$(mktemp -d); nix build -o "$dir/result" "$@" && readlink "$dir/result"; rm -r "$dir"; }
<LnL> ok
<LnL> now try that with curl
<gchristensen> haha
<LnL> ;)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47338 → cb2bib: 1.9.8 -> 1.9.9 → https://git.io/fAAnx
<zduch4c> that doesn't look like all of them LnL
<zduch4c> for example, I have rainbow-delimeters but it isn't in that list
<zduch4c> maybe emacsPackagesNg
<zduch4c> yeah, thats it
<adisbladis> zduch4c: There is also a few nested attribute sets like melpaPackages
<zduch4c> btw, does NixOS have all the packages that MELPA has?
<adisbladis> zduch4c: Yes. Auto-generated from melpa occasionally
<zduch4c> hm... it doesn't have `desktop-environment`, it seems
<adisbladis> zduch4c: emacsPackagesNg.melpaPackages.desktop-environment
devx has joined #nixos
<zduch4c> mhm, thank you
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47339 → AgdaStdlib: 0.16 -> 0.16.1 → https://git.io/fAAcP
<manveru> wasn't there a package for growpart?
<adisbladis> manveru: Commit logs are saying it moved to cloud-init
<manveru> huh
<adisbladis> cloud-utils even. The commit message was wrong.
<zduch4c> adisbladis: sorry for dumb question, but any idea how to make it fit into here? https://0x0.st/s3yx.nix
<zduch4c> maybe I could change the toplevel `epkgs` thing to something that encompasses all emacs packages
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47341 → batctl: 2018.2 -> 2018.3 → https://git.io/fAACO
<{^_^}> [nixpkgs] @r-ryantm opened pull request #47342 → boehmgc: 7.6.6 -> 8.0.0 → https://git.io/fAACg
<zduch4c> adisbladis: is that package only on unstable? I'm on stable
<{^_^}> [nixpkgs] @dywedir opened pull request #47343 → cargo-edit: 0.3.0 -> 0.3.1 → https://git.io/fAACb
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/69514d78a6b (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<adisbladis> zduch4c: Yes it's only on unstable.
<adisbladis> zduch4c: You could just pull in emacs from unstable if you wanna stay on stable otherwise
<acowley> Has anyone used the rust-overlay for cross-compilation?
pie_ has joined #nixos
<acowley> I'm not clear how to setup a shell.nix so that I have the right linker available for cargo to find
<zduch4c> its just one file either way adisbladis, I can grab it from github
<zduch4c> gonna wait for 19.04, lol
makefu has quit [Ping timeout: 268 seconds]
<adisbladis> zduch4c: 18.09* ;)
pie___ has quit [Ping timeout: 252 seconds]
adamt has quit [Ping timeout: 246 seconds]
pie_ has quit [Read error: Connection timed out]
pie_ has joined #nixos
zduch4c has left #nixos ["Killed buffer"]
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/35832681f19 (from 56 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> [nixpkgs] @worldofpeace opened pull request #47344 → lollypop: 0.9.522 -> 0.9.601 → https://git.io/fAA8q
ThatDocsLady has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #47345 → eolie: 0.9.36 -> 0.9.37 → https://git.io/fAA8K
graphene has quit [Remote host closed the connection]
<domenkozar> $ mktemp
<domenkozar> /tmp/tmp.mw8xJsvuRv
<domenkozar> $ nix-shell -p bash --run "mktemp"
<domenkozar> /nix/store/i6vl5lwlz5jbkg4r6p340dwmj6fha3xq-stdenv-linux/setup: line 784: /run/user/499/env-vars: No such file or directory
<domenkozar> mktemp: failed to create file via template ‘/run/user/499/tmp.XXXXXXXXXX’: No such file or directory
<domenkozar> err, something broke :)
graphene has joined #nixos
makefu has joined #nixos
orivej has joined #nixos
<betaboon> anyone using yarn2nix currently? they have added support for yarn-workspaces now i can't build a package that does not use those oO
aminechikhaoui has quit [Ping timeout: 240 seconds]
polman has joined #nixos
<{^_^}> [nixpkgs] @roberth pushed to roberth-patch-1 « rabbitmq module: Update documentation »: https://git.io/fAAB3
<{^_^}> [nixpkgs] @roberth opened pull request #47346 → rabbitmq module: Update documentation → https://git.io/fAABC
IRCsum has quit [Ping timeout: 252 seconds]
<adisbladis> domenkozar: How is your user logged in?
<adisbladis> And what does $XDG_RUNTIME_DIR say?
<domenkozar> the problem is, TMPDIR points there
<domenkozar> but only in nix-shell
polman has quit [Ping timeout: 244 seconds]
akamaus has joined #nixos
polman has joined #nixos
<elvishjerricco> Anyone using Nix on macOS Mojave? This issue suggests it works, but I'm interested in experience reports: https://github.com/NixOS/nix/issues/2244
IRCsum has joined #nixos
<{^_^}> nix#2244 (by bemeurer, 13 weeks ago, closed): Installing on macOS Mojave fails
Ariakenom has quit [Ping timeout: 244 seconds]
<acowley> I figured out my rust cross compilation linker thing. Still needed an extra patchelf at the end of the build, but all is good.
polman has quit [Excess Flood]
<cransom> elvishjerricco: it's working for me.
<elvishjerricco> cransom: Good :)
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #47347 → circleci-cli: 0.1.2307 -> 0.1.2569 → https://git.io/fAARP
<{^_^}> [nixpkgs] @tarigo opened pull request #47348 → grpc: 1.10.1 -> 1.15.0 → https://git.io/fAARD
<akamaus> Hi there. I'm working on packaging pytorch. Right now package works in regular nix-shell environment but fails in --pure because it depends on one particular cuda library which lives in /run/opengl-driver/lib and comes from LD_LIBRARY_PATH which is void in pure env. Can anyone help with it? It's documented here: https://github.com/NixOS/nixpkgs/issues/46032
<{^_^}> #46032 (by jyp, 3 weeks ago, open): Cannot build pytorch
<worldofpeace> lol, how can I make nixops not stop nix-daemon and networking (on deploy sometimes)?
<cransom> i should clarify though, working meaning, it's not a seamless update. you either have to prepare your nix ahead of time or re-install after the upgrade. but it still works.
<{^_^}> [nixpkgs] @charles-dyfis-net opened pull request #47349 → sbsigntool: 0.5 -> 0.9.1 → https://git.io/fAA0W
romildo has joined #nixos
<romildo> What is an easy way of testing a PR submitted by another person on my local system, and eventually update (or suggest an update to) it?
patrl has joined #nixos
<akamaus> romildo, just clone the branch and run nix-shell -I 'nixpkgs=<path to repo>' -p package-to-test
<teto> romildo: I install git-extras that adds a command "git pr" so I can do "git pr 3240" and build upon it. You can define your own alias but git-extras has some fun binaries
kai_w has quit [Quit: Konversation terminated!]
polman has joined #nixos
<{^_^}> [nixpkgs] @xeji closed pull request #47342 → boehmgc: 7.6.6 -> 8.0.0 → https://git.io/fAACg
<{^_^}> [nixpkgs] @orivej opened pull request #47350 → retroshare: mark as broken → https://git.io/fAA2y
<{^_^}> [nixpkgs] @xeji merged pull request #47344 → lollypop: 0.9.522 -> 0.9.601 → https://git.io/fAA8q
<{^_^}> [nixpkgs] @xeji pushed commit from @worldofpeace to master « lollypop: 0.9.522 -> 0.9.601 (#47344) »: https://git.io/fAAaE
makefu has quit [Ping timeout: 264 seconds]
<emily> has there been any thought given to shipping a network manager of some description on the minimal install image so that installation on laptops doesn't involve a bunch of wpa_supplicant fiddling?
<emily> just the NetworkManager curses interface or such would be far nicer.
<teto> +1
polman has quit [Ping timeout: 264 seconds]
sigmundv has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #47347 → circleci-cli: 0.1.2307 -> 0.1.2569 → https://git.io/fAARP
<{^_^}> [nixpkgs] @xeji pushed commit from @Synthetica9 to master « circleci-cli: 0.1.2307 -> 0.1.2569 (#47347) »: https://git.io/fAArh
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 244 seconds]
lassulus_ is now known as lassulus
<worldofpeace> emily: As long as it doesn't make the minimal image way bigger it can be added here -> https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/base.nix
chpatrick has quit [Quit: Connection closed for inactivity]
<worldofpeace> I'm not actually sure what way you should get the NetworkManager curses interface. I assumed that it would be a package in env. I guess you'd need to use the networkmanager module then.
orivej has quit [Ping timeout: 252 seconds]
<wpcarro> is there a way to define a command in `shell.nix` that gets run as soon as the shell boots up? Like if I wanted to jump into a REPL or something?
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<symphorien> shellHook
<symphorien> iirc
<wpcarro> symphorien: that sounds promising
<wpcarro> ty
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @gnidorah opened pull request #47351 → telegram-desktop: support opening urls under wayland → https://git.io/fAASp
mkoenig has quit [Ping timeout: 252 seconds]
aminechikhaoui has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/35832681f19 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
Jetien has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @xeji reopened pull request #46977 → psmisc: 23.1 -> 23.2 → https://git.io/fAQla
alex`` has quit [Quit: WeeChat 2.2]
<xok> how do I list packages available in nixos?..
<xok> for example I am willing to check all the perl modules...
<xok> how do I see them?..
<teto> xok: nix search perlPackages
<xok> teto: Thank you!...
<{^_^}> [nixpkgs] @jwoudenberg opened pull request #47352 → nodejs-10_x: 10.9.0 -> 10.11.0 → https://git.io/fAAds
romildo has quit [Quit: Leaving]
<samueldr> :( it's woefully out of date right now :/
<samueldr> I had hopes it wouldn't need to be kept there, and in that hope removed the streamlining I had for manual updates...
<samueldr> (hopes it would be on the main website at some point)
<azazel> that's a pity!
wpcarro has quit [Remote host closed the connection]
<buckley310> I'm attempting to get the VMware Horizon client running as a nix package, but its not quite working. Something seems to be still hardcoded looking for "/usr/lib/...". Is anyone here good at these? :) https://gist.github.com/buckley310/6a5f77461a91cd5918ffdfe0f8a02b03
<buckley310> (the package is gross, but im new, and i want to get it working now and make it nice later...)
<ashkitten> how do i create a local package for small scripts i write that require dependencies?
<mdash> ashkitten: pretty easy to just write a derivation for them
<worldofpeace> buckley310: If you really really don't care about it being pretty and just want it to work you could use `buildFHSUserEnv`
orivej has joined #nixos
<buckley310> i have used that for some other things, i guess this time i figured i would do it properly and maybe it has a shot of getting pulled upstream
<buckley310> its just frustrating that it even opens, it just dies when i try to connect to a server xD
<worldofpeace> Ahh I see. That is really best since everyone can benefit from it.
<azazel> worldofpeace: what are you referring to?
wpcarro has joined #nixos
<halfbit> so is ubuntu trying to do something like nix with its whole snap system?
<halfbit> my experience with snap so far is... not good
<buckley310> snap is more like docker than nix...
<worldofpeace> azazel: <buckley310> i have used that for some other things, i guess this time i figured i would do it properly and maybe it has a shot of getting pulled upstream
<{^_^}> [nixpkgs] @orivej opened pull request #47353 → protobuf: default to 3.6 → https://git.io/fAAbP
<azazel> halfbit: one of the problems with snap is that you can't setup your own repository...
<buckley310> i have used the sandbox/chroot stuff to get some other apps to work, but i wanted to try and get Horizon packaged properly
fendor has joined #nixos
<elvishjerricco> Is there a way to repair a path by rebuilding it?
wpcarro has quit [Ping timeout: 252 seconds]
<elvishjerricco> I can't delete the path since it's in many generations that I'd like to keep.
<buckley310> what happenned to it that it needs rebuilding?
fendor has quit [Ping timeout: 252 seconds]
<elvishjerricco> buckley310: I honestly do not know.
<elvishjerricco> But it fails `nix verify`
<worldofpeace> .locate bin/readelf
<kalbasit[m]> I'm trying to create a `default.nix` that will be used with `nix-shell`, but I also need it to install the environment in the docker container for the CI `nix-env -f default.nix -i`. I have so far https://gist.github.com/kalbasit/935c49f2799d27c6983f24719f339934 but it's not running because `src` and `srcs`. How can I make this work?
<infinisil> worldofpeace: it's a comma
<worldofpeace> ,locate bin/readelf
<{^_^}> Found in packages: arduino, androidndk, avrbinutils, arduino_core, gcc-arm-embedded, binutils-unwrapped
<worldofpeace> infinisil: lol
<worldofpeace> duh binutils
<azazel> ah, I didn't know that
<infinisil> elvishjerricco: nix-store --repair-path
<{^_^}> [nixpkgs] @dylex opened pull request #47354 → python.pkgs.cheroot: fix setup patch URL (fix #47320) → https://git.io/fAAAe
<elvishjerricco> infinisil: Yep, just discovered that does rebuilds :) The docs say it only redownloads and "If no substitutes are available, then repair is not possible."
<infinisil> kalbasit[m]: Use pkgs.buildEnv { name = "foo"; paths = [ ... ]; }
patrl has quit [Ping timeout: 252 seconds]
<kalbasit[m]> infinisil: within the gccStdenv.mkDerivation?
<infinisil> kalbasit[m]: Oh wait, you want it to be nix-shellable and also have the environment nix-buildable?
<worldofpeace> buckley310: Any reason you're only patching vmware-view
<kalbasit[m]> infinisil: yes I'm considering that, if not I'll have to nix-shell within CI commands
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47355 → numpy: gfortran and pytest should be nativeBuildInputs → https://git.io/fAAAE
<infinisil> Hum not sure actually, but try playing around with buildEnv. It also takes a buildInputs argument
<infinisil> Probably would be cleaner to separate this though
<buckley310> worldofpeace, theres a single patchelf, and then another spot where i do `find|grep|xargs patchelf`
<kalbasit[m]> infinisil: understood, I'll probably do that then
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47356 → numpy: gfortran and pytest should be nativeBuildInputs → https://git.io/fAAAr
<kalbasit[m]> infinisil: do you have an example of a derivation that I can `nix-env -f <file> -i` but only install the buildInputs? (meaning no src and no out really)
<infinisil> buildInputs aren't stuff to install though, these are different things
<infinisil> buildInputs are what it needs to build the derivation, while the stuff it installs is the result in $out
<infinisil> Ah yeah, it can work I think though, but I don't have an example
<infinisil> Well not entirely, because stuff like setup scripts isn't run in $out
<infinisil> But only when in a buildInput
<kalbasit[m]> I thought buildInputs are what we call runtime dependencies and nativeBuildInputs are what required to build the derivation no?
<kalbasit[m]> man these are confusing!
<infinisil> Eh close I guess, it's complicated indeed
<azazel> kalbasit[m]: you should give a read to the nixpkgs manual
<kalbasit[m]> azazel: I did, it wasn't very helpful and it's just a lot to digest
<azazel> kalbasit[m]: it has a section that explains the xxInputs members
<kalbasit[m]> azazel: https://discourse.nixos.org/t/cant-wrap-my-head-around-derivation-dependencies/840 helped me wrap my head around it, but still not fully grasping it. Will take time
<Dezgeg> just put everything into buildInputs and you'll be fine
<worldofpeace> buckley310: maybe add `libudpProxyLib.so` to LD_LIBRARY_PATH
<catern> is there a way to sign a NAR so that it can be imported by a non-trusted user?
<gchristensen> given an attrset, can I create a new attrset with specific keys _removed_?
<buckley310> worldofpeace, i did try that but it doesnt seem to work :|
<catern> it seems to me that there's no way to have signed Nix artifacts other than through a binary cache, is that right?
<elvishjerricco> catern: Yea, but an admin has to add the public key to /etc/nix/nix.conf
<elvishjerricco> catern: No, look at `nix sign-paths`
<catern> elvishjerricco: sure, but how do you do it from the user perspective
<catern> ah hm
<catern> then how do you import them?
<elvishjerricco> catern: Hm. There may be an easier way with the `nix-store` command, but I'd just do `nix-store --store file://$(pwd)/foo --import && nix copy --from file://$(pwd)/foo --all`
<azazel> gchristensen: filterAttrs?
<symphorien> gchristensen: buitins.removeAttrs ?
<{^_^}> [nixpkgs] @xeji merged pull request #47345 → eolie: 0.9.36 -> 0.9.37 → https://git.io/fAA8K
<worldofpeace> buckley310: with a wrapper right?
<{^_^}> [nixpkgs] @xeji pushed commit from @worldofpeace to master « eolie: 0.9.36 -> 0.9.37 (#47345) »: https://git.io/fAAx7
<elvishjerricco> catern: i.e. import it into a local binary cache, sign paths in that local binary cache, then copy out of it
<elvishjerricco> catern: Oh, I forgot the `nix sign-paths` command in between `--import` and `nix copy`
<infinisil> > builtins.removeAttrs { hello = 10; } [ "hell" ]
<{^_^}> { hello = 10; }
<infinisil> > builtins.removeAttrs { hello = 10; } [ "hello" ]
<{^_^}> { }
<gchristensen> symphorien: perfect!
<catern> elvishjerricco: can you use nix copy to replace the first nix-store operation as well?
<elvishjerricco> catern: From a nar archive file? Dunno
<catern> elvishjerricco: oh, no, I mean, I have a real store first I guess
<catern> so I'd do `nix copy --to file://$(pwd)/foo [whatever]` right?
<elvishjerricco> catern: I'm a bit confused. I thought you were asking how to import a nar as an untrusted user
<catern> elvishjerricco: well, I was only asking about a NAR because I assumed that was the best way to serialize a store path
<buckley310> worldofpeace, no, i just ran it after it was built with the library path variable
<{^_^}> [nixpkgs] @Ericson2314 pushed 30 commits to staging-18.09: https://git.io/fAApc
<{^_^}> [nixpkgs] @coreyoconnor opened pull request #47357 → firefox: disable auto updates using distribution policies. → https://git.io/fAApC
<catern> elvishjerricco: but it sounds like it's best to serialize the store path into a file:// based local binary cache
<elvishjerricco> catern: Oh, so you have some other store with a path that doesn't have your signature, and you'd like to copy a signed version into your local store?
<{^_^}> [nixpkgs] @xeji merged pull request #47354 → python.pkgs.cheroot: fix setup patch URL (fix #47320) → https://git.io/fAAAe
<{^_^}> [nixpkgs] @xeji pushed commit from @dylex to master « python.pkgs.cheroot: fix setup patch URL (#47320) (#47354) »: https://git.io/fAAp2
<{^_^}> [nixpkgs] @Ericson2314 pushed 182 commits to staging: https://git.io/fAApV
<catern> elvishjerricco: no, I have store X with store path A, which is signed with key K; then I want to create some self-contained file F out of that store path A; then I want to copy from F into store Y which trusts key K
trcc has joined #nixos
<catern> elvishjerricco: it seemed to me that F would be a NAR, but it seems like there's no way for NARs to be signed
<elvishjerricco> catern: What is this self contained file F? Is it just meant to be some serialization of A?
<catern> elvishjerricco: F can be anything, I don't care what it is
<elvishjerricco> catern: Then what purpose is F supposed to serve? What is to be copied from F to Y?
<catern> elvishjerricco: er, sorry, store path A should be copied from F to Y
<catern> the desired end result is that Y contains store path A
abueide has joined #nixos
<elvishjerricco> catern: Ok, so it sounds like F is a serialization of A :)
<catern> well, sure :)
<catern> I just wanted to express that I don't care how F works
<elvishjerricco> catern: In that case, yea F is probably best suited as a file:// binary cache
<elvishjerricco> catern: You can tarball it up to move it around
<elvishjerricco> more easily, that is
<catern> hm, how do I specify a store to operate on for nix sign-paths?
<elvishjerricco> catern: You should be able to do `nix copy --from X --to file:///path/to/foo`, and then you should be able to check that `foo` has signatures with `nix path-info --sigs`
<elvishjerricco> catern: If X already has the signature, you shouldn't need to sign it yourself, right?
<catern> elvishjerricco: yes that's true but I guess I'm wondering what scenario the signature wouldn't already be present
wpcarro has joined #nixos
wpcarro has quit [Read error: Connection reset by peer]
<elvishjerricco> catern: Well, if you're doing your own builds on X, you'll need to sign it there. You can do `nix sign-paths --store X ...`, or you can set `secret-key-files` in `nix.conf` to have all your builds automatically signed.
<catern> I see, I see
<catern> Makes sense, thanks
<catern> All your builds - that includes fixed-output builds, such as with add-to-store or nix-prefetch-url?
<catern> (well those aren't fixed-output builds, but those are the ones I'm concernde about)
<elvishjerricco> catern: You can probably set `--secret-key-files foo` on the command line at build time if you don't want the key persisted on your disk, also.
<elvishjerricco> catern: Anything that's fixed output will not need to be checked against signatures
<elvishjerricco> I dunno if Nix discards the signatures on fixed output derivations though
<catern> elvishjerricco: okay, thank you, this is very helpful!
<elvishjerricco> catern: Happy to help :)
<elvishjerricco> Is there a way to get Nix 2.1 in 18.03?
samrose_ has joined #nixos
abueide has quit [Ping timeout: 272 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47355 → numpy, scipy: Fix some nativeBuildInputs → https://git.io/fAAAE
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to staging: https://git.io/fAxeI
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47356 → numpy, scipy: Fix some nativeBuildInputs for 18.09 → https://git.io/fAAAr
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to staging-18.09: https://git.io/fAxeq
abueide has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging-18.09: https://git.io/fAxeV
wpcarro has joined #nixos
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
lord| has quit [Quit: WeeChat 2.2]
<worldofpeace> elvishjerricco: maybe this https://hastebin.com/jijomusuwa.bash
lord| has joined #nixos
wpcarro has quit [Read error: Connection reset by peer]
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #47353 → protobuf: default to 3.6 → https://git.io/fAAbP
<{^_^}> [nixpkgs] @orivej-nixos pushed 4 commits to master: https://git.io/fAxvz
<elvishjerricco> worldofpeace: Yea I'll probably either override the source like that or just import it from nixpkgs-unstable
<worldofpeace> elvishjerricco: ahh, option two sounds better though now that you mention it
makefu has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #47358 → perl: add devel version at 5.29.3 → https://git.io/fAxvQ
makefu has quit [Client Quit]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
vaibhavsagar has joined #nixos
MichaelRaskin has joined #nixos
vaibhavsagar has quit [Quit: Leaving]
mayhewluke has quit [Ping timeout: 272 seconds]
vaibhavsagar has joined #nixos
jeschli has joined #nixos
mayhewluke has joined #nixos
halfbit has quit [Quit: WeeChat 1.9.1]
<{^_^}> [nixpkgs] @LnL7 pushed to staging « Revert "patch-shebangs: respect cross compilation" »: https://git.io/fAxJD
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #47348 → grpc: 1.10.1 -> 1.15.0 → https://git.io/fAARD
<{^_^}> [nixpkgs] @orivej-nixos pushed 3 commits to master: https://git.io/fAxJ5
<Mic92> can somebody tell if those matrix bridges are reliable enough? https://github.com/matrix-hacks/matrix-puppet-bridge
<Mic92> would be a good execuse to ditch my irc client + bitlbee and replace it with something modern.
<MichaelRaskin> Are you interested in the Skype bridge there?
<tilpner> Mic92 - I'm not sure how self-hosted IRC bridging works
<MichaelRaskin> Single-user one should, why not
<Mic92> MichaelRaskin: I am not sure if what's there state of development they are, that's why I was hoping that someone already have experience with it.
<MichaelRaskin> I know that 1) Skype puppet needed some patching to start, 2) I am not sure why, but it seems to run out of RAM sometimes
<Mic92> I guess I will give some more months to stabilize.
<tilpner> MichaelRaskin - I don't see how. If you join a room that's already bridges to IRC, their bridge wouldn't know you want to bridge yourself, right?
<Mic92> *give them some
<MichaelRaskin> I am not sure which of the projects are still active
<tilpner> And then you're stuck the slow und unstable matrix.org IRC bridge :/
<tilpner> *with the
<{^_^}> [nixpkgs] @dywedir opened pull request #47359 → newsboat: 2.12 -> 2.13 → https://git.io/fAxUl
<MichaelRaskin> tilpner: I meant a single-user bridge that doesn't know and doesn't care about any further connections, just let you store the IRC chatlogs on a matrix homeserver
<tilpner> MichaelRaskin - So a read-only bridge from the Matrix perspective? That's not sufficient to replace your IRC client with :/
<MichaelRaskin> tilpner: what you say in the bridge-room, gets said by the other side of the bot
<tilpner> My concern is that the matrix.org-hosted bridges are unreliable, and I see no easy way to disable their bridging for just myself and supplement it with a faster bridge
<tilpner> I understand the concept of bridging, the problem only occurs when there are multiple IRC bridges to the same room
* tilpner -> #nixos-chat
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47360 → python-*: Format `pythonPackages` bindings → https://git.io/fAxUF
<{^_^}> [nixpkgs] @volth closed pull request #47358 → perl: add devel version at 5.29.3 → https://git.io/fAxvQ
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47361 → python-*: Format `pythonPackages` bindings for 18.09 → https://git.io/fAxTT
hlolli has joined #nixos
<Ralith> tilpner: you can host your own bridge, you just need your own copy of the room to go with it
<tilpner> Ralith - But doesn't that stop you from interacting with the Matrix users in that room? (Also, join #nixos-chat)
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47360 → python-*: Format `pythonPackages` bindings → https://git.io/fAxUF
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAxkR
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47361 → python-*: Format `pythonPackages` bindings for 18.09 → https://git.io/fAxTT
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fAxkE
<Ralith> tilpner: as far as you're/they're concerned, they're/you're just another IRC user
<tilpner> But then you've just flipped sides! Before, Matrix->IRC was slow, now Matrix->Matrix is slow
<tilpner> The point of hosting your own bridge was to avoid using their bridge
trcc has quit [Read error: Connection reset by peer]
trcc has joined #nixos
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
trcc has quit [Remote host closed the connection]
<sphalerite> umm. `ssh root@ditto.strathtech.co.uk` works fine, but `nixops deploy -d strathtech` says root@ditto.strathtech.co.uk: Permission denied (publickey,password,keyboard-interactive).
<sphalerite> What am I doing wrong...
<sphalerite> (the former works without typing a password or anything)
<{^_^}> [nixpkgs] @volth reopened pull request #47358 → perl: add devel version at 5.29.3 → https://git.io/fAxvQ
samrose__ has joined #nixos
<clever> sphalerite: do you have an ssh agent running?
<samrose__> tilpner: in the example that you posted earlier to generate apparmor profile, how are you typically using that nix expression?
<sphalerite> clever: nope
<clever> sphalerite: `ssh root@ditto.strathtech.co.uk` will default to ~/.ssh/id_rsa
<sphalerite> clever: yep
<sphalerite> will nixops not?
<clever> sphalerite: but when nixops runs, it changes the default search path, to use the key nixops generated
<clever> but the agent lets other keys leak into the nixops ssh
<sphalerite> aah so if I run an agent it'll work?
<clever> yeah
<tilpner> samrose__ - https://tx0.co/2k
<sphalerite> clever: perfect thanks
<clever> nixops will also allow its own key in the nixos it deploys
<clever> so you only need to do that once
<sphalerite> yeah
<samrose__> thnx tilpner !
Thra11 has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
Anton-Latukha has quit [Ping timeout: 240 seconds]
alex`` has joined #nixos
<wpcarro> Is there a preferred way to handle secrets for environment variables (e.g. web tokens)? I was thinking about storing each token in a file and reading that file at build time and then git-ignoring that file. I'm guessing Nix may already have a more elegant solution though. Integration with GPG would be excellent.
Anton-Latukha has joined #nixos
<wpcarro> Right now I just have `readFile ./path/to/secret.txt`, which is okay
<infinisil> Unfortunately I must disappoint you, there's no elegant way for secrets in Nix: nix#8
<{^_^}> https://github.com/NixOS/nix/issues/8 (by edolstra, 6 years ago, open): Support private files in the Nix store
<{^_^}> [nixpkgs] @xeji merged pull request #47335 → Update: linux_testing_bcachefs, dolphinEmuMaster, easyjson, quicktemplate, hydron → https://git.io/fAAGS
<{^_^}> [nixpkgs] @xeji pushed 6 commits to master: https://git.io/fAxL8
<wpcarro> infinisil: okay that's alright. As long as there isn't a known way that I'm just missing
<sphalerite> wpcarro: careful with that! It'll likely be imported into the store, where it's world-readable
<wpcarro> I would love to be able to treat GPG like a key-value store and retrieve items in Nix or from CLI
<wpcarro> sphalerite: hmm thanks for the heads-up haha. I'll stick with files and gitignore for now
<worldofpeace> wpcarro: There's this if you're up for it https://elvishjerricco.github.io/2018/06/24/secure-declarative-key-management.html
<wpcarro> worldofpeace: thanks for sharing. Will read today
<worldofpeace> wpcarro: Though you're not using nixops so you'll have to rework it
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47362 → ghc: Sphinx is a build-time dependency → https://git.io/fAxLP
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47363 → ghc: Sphinx is a build-time dependency → https://git.io/fAxLS
nDuff has joined #nixos
<{^_^}> [nixpkgs] @rvolosatovs closed pull request #46970 → mopidy-iris: 3.25.2 -> 3.26.0 → https://git.io/fAQcF
<infinisil> I'm pretty sure there's no way to have secrets for a build unless you want to go impure (and disable sandboxing or some other trickery)
<nDuff> Hmm -- I think I'm misunderstanding something here. I was under the impression that if I defined, say, config_template=./foobar inside my default.nix, I could refer to ${config_template} to get a fully-qualified path to foobar inside a '' ''-quoted string with a build step.
<kiloreux> Is it possible to make nix binaries available for other nix users without running multi user install ? (On ubuntu)
<infinisil> nDuff: That should indeed give you a path, but a /nix/store/<hash>... one
<nDuff> That's what I expect too, but what I'm actually getting is an "error: undefined variable 'config_template' error.
* nDuff does another typo-checking pass.
<infinisil> Add a `rec` after your mkDerivation
<nDuff> ahh!
<{^_^}> [nixpkgs] @Mic92 merged pull request #47351 → tdesktop: support opening urls under wayland → https://git.io/fAASp
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAxtI
<nDuff> that was indeed the issue.
hotfuzz_ has joined #nixos
<infinisil> Yeah, attrset names aren't automatically in scope
<{^_^}> [nixpkgs] @Mic92 pushed commit from @gnidorah to release-18.09 « tdesktop: support opening urls under wayland »: https://git.io/fAxt3
<{^_^}> [nixpkgs] @LnL7 merged pull request #47214 → podofo: fix library linkage on Darwin → https://git.io/fAFIw
<{^_^}> [nixpkgs] @LnL7 pushed commit from @mroi to master « podofo: fix library linkage on Darwin (#47214) »: https://git.io/fAxtc
hotfuzz has quit [Ping timeout: 245 seconds]
camsbury has joined #nixos
<elvishjerricco> wpcarro, worldofpeace: Yea that article has been working well for me for a while now. I still want something nicer, I just haven't figured anything better out yet
<wpcarro> I've seen `--run` and `--command` flags to `nix-shell` to execute shell commands in a nix-shell. Is there a way to do this from a nix expression? Similar to `$(echo blah)` from shell?
<wpcarro> elvishjerricco: good to hear. I need to overhaul the way I manage secrets one of these days
<{^_^}> [nixpkgs] @xeji opened pull request #47364 → qboot: 20150603 -> 20170330, fix build → https://git.io/fAxt1
<{^_^}> [nixpkgs] @dtzWill opened pull request #47365 → spectral: init at 2018-09-24; nheko: 0.5.0 -> 0.6.0 and bump dep mtxclient → https://git.io/fAxtM
<infinisil> wpcarro: Your derivations `shellHook` attribute gets evaluated at the start
<infinisil> (by bash)
<elvishjerricco> wpcarro: check out the article :) I showed how to execute a command at eval time
<elvishjerricco> Need to be careful with it though
<dtz[m]> mmm chatting with matrix clients just submitted PR for ^_^
<wpcarro> infinisil: I'm thinking something like `TOKEN = subShell "trousseau get secret_token"`
<elvishjerricco> wpcarro: Yep. I'm doing that with pass
<wpcarro> elvishjerricco: thanks. Gonna scan the article now
<{^_^}> [nixpkgs] @LnL7 pushed commit from @mroi to release-18.09 « podofo: fix library linkage on Darwin (#47214) »: https://git.io/fAxqk
<worldofpeace> elvishjerricco: it's a great article, thanks for writing it :)
hotfuzz has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/35832681f19 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
hotfuzz_ has quit [Ping timeout: 252 seconds]
<judson> I can't find an issue already for this, and I'm trying to find the gap in my understanding: I'm getting 'error: syntax error, unexpected ':', expecting '.' or '=', at ...' out of a builtins.fromJSON. The relevant line of JSON looks like "url": "git@github.com:nyarly/wagthepig.git"
<judson> Oh, nevermind.
georges-duperon has joined #nixos
<judson> Thanks everybody!
<infinisil> Glad we could help :)
<cransom> best rubber duckys ever.
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to release-18.09: https://git.io/fAxmY
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fAxmR
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47362 → ghc: Sphinx is a build-time dependency → https://git.io/fAxLP
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47363 → ghc: Sphinx is a build-time dependency → https://git.io/fAxLS
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fAxmr
grp has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #47364 → qboot: 20150603 -> 20170330, fix build → https://git.io/fAxt1
<{^_^}> [nixpkgs] @xeji pushed to master « qboot: 20150603 -> 20170330, fix build (#47364) »: https://git.io/fAxYm
wpcarro has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji pushed to release-18.09 « qboot: 20150603 -> 20170330, fix build (#47364) »: https://git.io/fAxYX
wpcarro has joined #nixos
wpcarro has quit [Remote host closed the connection]
klntsky has quit [Ping timeout: 256 seconds]
wpcarro has joined #nixos
<{^_^}> [nixpkgs] @LnL7 opened pull request #47366 → broken darwin packages (f) → https://git.io/fAxOC
<wpcarro> does anyone here successfully use Nix with Drone CI? We're having a hard time caching the /nix/store and mounting it and our CI is getting clobbered bc we need to download so much to populate the empty store :/
klntsky has joined #nixos
<hlolli> For some reason, after uninstalling nvidia to get musinix working, disabled my num lock key compleatly. If I'm in emacs they enable/disable overwrite mode, or holding them down moves the mouse. Googleing this tells me to change this in gnome, but gnome-setting doesn't work at all for any setting. I'm on i3. Any tips to disable this "mouse-keys" so I can start typing numbers again on my laptop's keypad?
<gchristensen> wpcarro: some people use cachix.org to help with that
<infinisil> gchristensen: Won't help with having to download a lot
<infinisil> I'm assuming they're talking about cache downloads
<wpcarro> I'd love the /nix/store dir to persist between builds
<wpcarro> and right now, we cannot seem to get that to work...
<wpcarro> This isn't necessarily a Nix issue though. Just wondering if anyone here successfully uses it with Drone CI
<{^_^}> [nixpkgs] @ejpcmac opened pull request #47367 → erlangR19: 19.3.6.6 -> 19.3.6.11 → https://git.io/fAx3Z
<tilpner> wpcarro - #drone-ci might know more about caching
<wpcarro> tilpner: yeah I'll head over there
abueide has quit [Ping timeout: 252 seconds]
abueide has joined #nixos
xeji has joined #nixos
__monty__ has joined #nixos
kyren has quit [Read error: Connection reset by peer]
grp has joined #nixos
wpcarro has quit [Remote host closed the connection]
<elvishjerricco> wpcarro: If you can cache an individual file more easily, you can `nix copy --all --too file:///path/to/dir` and tar up the dir to save. Then untar and `nix copy --all --from file:///path/to/dir` to restore.
wpcarro has joined #nixos
wpcarro has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<cransom> you can also do things like configure s3 credentials and on build finish, nix copy --all --to s3://bucket/mycache
grp has quit [Ping timeout: 252 seconds]
<elvishjerricco> cransom: Yea, if you're willing to give CI credentials to an S3 bucket, it might be best to just copy everything up, since then you can just use the bucket as a substituter to avoid copying more than is neededl
grp has joined #nixos
<elvishjerricco> Would work with any remote store, like ssh(-ng)
<cransom> yeah. it wouldn't really be any better than cachix if the problem is pushing/pulling files down though.
xok has quit [Quit: Leaving.]
<elvishjerricco> cransom: Except that cachix doesn't have any kind of private or authenticated thing, right?
<cransom> it might support it but it's not publicly advertised. at least according to the homepage.
hydraz has quit [Quit: ZNC 1.7.1 - https://znc.in]
meejah has joined #nixos
hydraz has joined #nixos
grp has quit [Ping timeout: 245 seconds]
theseriousadult has joined #nixos
<theseriousadult> How do I add happy as a dependency in a nix file?
<meejah> hi folks, I'm looking at some Nix things a colleage did; where do I find documentation for things available/allowed in .nix files? Specifically I'm looking for deployment.virtualbox.* to see if I can set networking-type in a virtualbox vm
graphene has quit [Remote host closed the connection]
<elvishjerricco> meejah: The manuals are going to be your best friends.
graphene has joined #nixos
<elvishjerricco> You're using both NixOS and NixOps. The former is an OS and configuration system, and the later is a deployment system.
<meejah> so I tried https://nixos.org/nixos/options.html but there's no deployment. and I can't find anything relevant in "Nix -> Manual"
<elvishjerricco> meejah: Yea, all the deployment options are in the manual for the deployment tool :)
<meejah> ah, i see so the deployment.* stuff is "a nixops thing"..?
<elvishjerricco> Yep!
<{^_^}> [nixpkgs] @aszlig pushed 6 commits to master: https://git.io/fAxGj
<elvishjerricco> meejah: For questions about syntax and the low level build system, check out the Nix manual, and for questions about writing your own packages, check out the nixpkgs manual
<meejah> elvishjerricco: okay, thanks
<infinisil> theseriousadult: How do you normally add dependencies?
<elvishjerricco> meejah: Sorry to basically dump four books on you :P I don't really know the answer to your specific question
<meejah> the "virtualbox" section is light on details in nixops/manual -- (I guess I'm hoping for "here's all the options you can specify" but not finding it?)
patrl has joined #nixos
<nek0> hi folks
<theseriousadult> infinisil: normally I try finding the package name by using nox, then add the name to buildInputs in my shell.nix file
georges-duperon has quit [Ping timeout: 252 seconds]
<theseriousadult> That didn't work this time because nox doesn't index haskellPackages I guess
<nek0> has anyone ever built and installed the digimend kernel modules?
<theseriousadult> just adding haskellPackages.happy worked though
<elvishjerricco> meejah: Hm... Looking through the nixops manual, it seems there are some undocumented options :/ That's disappointing.
<{^_^}> [nixpkgs] @Mic92 opened pull request #47368 → vimPlugins.vim-husk: init at 2015-11-29 → https://git.io/fAxZW
<meejah> elvishjerricco: okay, thanks. I guess I'll wait until my colleage is back online and ask them ;)
<elvishjerricco> meejah: All the virtualbox options are defined in here: https://github.com/NixOS/nixops/blob/master/nix/virtualbox.nix
<elvishjerricco> anything with a "description" field is an option
<{^_^}> [nixpkgs] @aszlig merged pull request #46487 → Paperwork 1.2.4 → https://git.io/fAVEb
<meejah> elvishjerricco: ah, great thanks!
puck has quit [Read error: Connection reset by peer]
puckipedia has joined #nixos
<{^_^}> [nixpkgs] @ejpcmac opened pull request #47369 → erlangR20: 20.3.8 -> 20.3.8.9 → https://git.io/fAxZx
<meejah> ah, cool, seems like the answer for most options is "just use vmFlags". So I think the answer to my question is: deployment.virtualbox.vmFlags = "--nic1 bridged";
wpcarro has joined #nixos
<elvishjerricco> meejah: Sounds about right :)
<hlolli> just to test out a potential solution to my question above, how could I run this command `gsettings set org.gnome.desktop.a11y.keyboard mousekeys-enable false` when I don't have gsettings, some nixos option that provides this?
puckipedia is now known as puck
Thra11 has quit [Ping timeout: 240 seconds]
grp has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #47368 → vimPlugins.vim-husk: init at 2015-11-29 → https://git.io/fAxZW
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fAxnV
<vaibhavsagar> I'm trying to set up a VPN, and I've enabled the strongswan service
<vaibhavsagar> but it's telling me that it cant read /etc/ipsec.secrets
<vaibhavsagar> what do I do?
Anton-Latukha has quit [Ping timeout: 240 seconds]
<cransom> create it if it doesn't exist, give it permissions to read it if it does?
wpcarro has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @aszlig pushed to master « nixos: Fix eval error for documentation.nixos »: https://git.io/fAxcr
<vaibhavsagar> cransom: I can't change permissions on a read-only filesystem
<{^_^}> [nixpkgs] @Mic92 merged pull request #47341 → batctl: 2018.2 -> 2018.3 → https://git.io/fAACO
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAxcN
<srhb> vaibhavsagar: /etc should not usually be read-only. And your secrets should probably not be in your nix store, if that's what you're doing.
<cransom> which would mean you have your ipsec.secrets in the nix store, so they aren't real secret anymore.
<worldofpeace> hlolli: you can do a gsettings override with `services.xserver.desktopManager.gnome3.extraGSettingsOverrides`
<{^_^}> [nixpkgs] @Mic92 merged pull request #47338 → cb2bib: 1.9.8 -> 1.9.9 → https://git.io/fAAnx
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAxch
<adamantium> Hey, looking at the zfs install guide, Question-- For UEFI systems, what is the point of raiding /boot ext4 since you cannot raid the efi partition.
<adamantium> Seems like still a pretty bad single point of failure?
<{^_^}> [nixpkgs] @Mic92 merged pull request #47336 → brightnessctl: 0.3.2 -> 0.4 → https://git.io/fAAZq
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAxCJ
<hlolli> worldofpeace: thanks for replying. I googled an alternative command. "xset -led 13" but it doesn't work, leaning towards a deeper screen conf screwup, digging deeper...
<{^_^}> [nixpkgs] @Mic92 merged pull request #47337 → apktool: 2.3.3 -> 2.3.4 → https://git.io/fAAnn
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAxCY
<worldofpeace> ,locate bin/gsettings
<{^_^}> Found in packages: glib.dev
<worldofpeace> hlolli: you can do `nix-shell -p glib.dev --run "gsettings set org.gnome.desktop.a11y.keyboard mousekeys-enable false"` because the executable is in a different output
<cransom> adamantium: thats not how i run my boot, but i don't see an issue with raid1 for /boot. either disk would be able to boot from that partition.
<hlolli> nice thanks (whishing there was a thumbs up on irc as not to add another line :P )
<hlolli> yup confirms my suspicion of timeconsumeing xorg problem, going to restart, see you in cyberspace
<vaibhavsagar> srhb: I just enabled the service, I'm not sure what you mean about putting my secrets in the Nix store
hlolli has quit [Remote host closed the connection]
<srhb> vaibhavsagar: The fact that you mentioned a read only filesystem preventing you from modifying a file with "secret" in its name made me think that you had injected secrets into the nix store :)
<srhb> vaibhavsagar: (Rendering them non-secrets insofar as they are world readable)
<vaibhavsagar> how are they world readable?
<{^_^}> [nixpkgs] @olynch opened pull request #47370 → Added TEXMF variable to environment for tex wrappers, fixes #19279 → https://git.io/fAxCD
<srhb> vaibhavsagar: Every file in the nix store is.
<vaibhavsagar> wait what?
<srhb> vaibhavsagar: Yup.
<srhb> Hence the nono on secrets.
<vaibhavsagar> I know it's a bad idea to put secrets in the nix store
<vaibhavsagar> but how are they world readable?
Rusty1 has joined #nixos
<cransom> and that would be why.
<srhb> vaibhavsagar: world readable as in every user on the system, not restricted to root.
lopsided98 has quit [Quit: Disconnected]
<vaibhavsagar> okay, that I did know
<srhb> Ah, that's the usual meaning of world readable, not "uploaded to the interwebs without your knowing" thankfully :D
<vaibhavsagar> yeah, I was very confused for a moment there
<srhb> Sorry :p
<vaibhavsagar> no worries
lopsided98 has joined #nixos
<vaibhavsagar> my last job was a lot of systems administration with Nix, so I would have had to let them know
<srhb> Haha, no kidding. Imagine though, shared distributed (and totally unsafe) caches!
<{^_^}> [nixpkgs] @Mic92 merged pull request #47333 → alembic: 1.7.8 -> 1.7.9 → https://git.io/fAAG1
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAxCp
<vaibhavsagar> we've reinvented the internet!
<srhb> :o
<vaibhavsagar> but seriously, how 2 vpn?
<srhb> I've never used strongswan, but it sounded like you were on the right track and just needed to fix the permission error?
<vaibhavsagar> all the files in /etc are owned by root
<srhb> Which user starts the strongswan service (assuming there is such a thing)?
<srhb> Or rather, which user does it run as.
<srhb> I would assume root, but if it can't read that file...
<srhb> Hmm, that module does some funky stuff.
<srhb> Looks like the secrets file is autogenerated.
<srhb> What's the full error message?
<srhb> Looks like it should just read a bunch of "include somepath" from there.
<{^_^}> [nixpkgs] @Mic92 merged pull request #47319 → cadvisor: 0.30.2 -> 0.31.0 → https://git.io/fAAtJ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAxWK
<vaibhavsagar> I'm getting the error message from NetworkManager
<vaibhavsagar> Sep 25 17:58:13 nixos NetworkManager[951]: <warn> [1537912693.2172] vpn-connection[0x20667c0,d017d8f9-bf3a-4d28-925f-5f1da2d4c8d9,"New vpn connection",0]: VPN connection: failed to connect: 'Could not open /etc/ipsec.secrets'
<srhb> vaibhavsagar: So, wait, is this not using services.strongswan at all?
<vaibhavsagar> I have it enabled, but I'm trying to configure it with networkmanager
<vaibhavsagar> could that be the cause of my issue?
<srhb> vaibhavsagar: Possibly, network-manager is even more of a black box to me to be honest.
<vaibhavsagar> fair enough!
hakujin has joined #nixos
shabius has quit [Remote host closed the connection]
<srhb> vaibhavsagar: Does the file actually exist and look like a bunch of "include somefiles" ?
<vaibhavsagar> the file exists, but is empty
<srhb> vaibhavsagar: That's what the services.strongswan.secrets list should do
shabius has joined #nixos
<vaibhavsagar> ahh
<Ralith> NetworkManager is usually it's own thing
<Ralith> if you want to use it, disable the service
<srhb> Ralith: Makes sense.
<hakujin> I'm sure this is a popular topic: what's the story re: nix & macOS mojave? seems the current installer won't upgrade an existing multi-user installation. is single-user the correct default now?
shabius has quit [Max SendQ exceeded]
<elvishjerricco> hakujin: Single user is the default now with the installer, but my opinion is that multi-user is superior (just harder to setup)
shabius has joined #nixos
<elvishjerricco> You can pass `--daemon` to the installer to do multi-user
shabius has quit [Max SendQ exceeded]
<elvishjerricco> `nix sign-paths --all -k /foo && nix verify --all`
<elvishjerricco> `11589 untrusted`
<elvishjerricco> :/
<elvishjerricco> Why are all .drv files untrusted?
shabius has joined #nixos
shabius has quit [Max SendQ exceeded]
shabius has joined #nixos
vaibhavsagar__ has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #47343 → cargo-edit: 0.3.0 -> 0.3.1 → https://git.io/fAACb
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAxlO
<{^_^}> [nixpkgs] @Mic92 merged pull request #47322 → ace: 6.5.1 -> 6.5.2 → https://git.io/fAAme
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAxls
<{^_^}> [nixpkgs] @ejpcmac opened pull request #47371 → erlangR21: 21.0 -> 21.1 → https://git.io/fAxll
simukis has quit [Ping timeout: 252 seconds]
vaibhavsagar has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @zimbatm opened pull request #47372 → google-compute-engine: 20180510 -> 20180905 → https://git.io/fAxl0
<judson> Hrm. `error: illegal name: '.drv'` in a case where I'm using a package as a path...
<judson> (...derivation)
<elvishjerricco> judson: What are you trying exactly?
<judson> One sec...
<{^_^}> [nixpkgs] @xeji merged pull request #47358 → perl: add devel version at 5.29.3 → https://git.io/fAxvQ
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fAxl9
andrewrk has joined #nixos
andrewrk has left #nixos ["Leaving"]
xeji has quit [Quit: WeeChat 2.1]
<elvishjerricco> judson: I don't see a reason that line would cause that error. Are you sure it's not something else?
grp has quit [Quit: box shutting down...]
<judson> What do you mean?
<elvishjerricco> judson: Are you sure that is the line causing problems?
<worldofpeace> judson: I only ever see that error when there's no `name = "";
<judson> while evaluating the attribute 'config.sites' at /home/judson/dev/personal-servers/webserver.nix:141:9:
<judson> (I added a trace because line 146 was the show-trace source before)
<judson> If I take out the toPath, I get the barf of a derivation, and then the error shows at 146
hlolli has joined #nixos
<elvishjerricco> judson: Oh, I think you need a `name = "wagthepig";` at https://github.com/nyarly/personal-servers/blob/master/packages/wagthepig/default.nix#L15
patrl has quit [Ping timeout: 252 seconds]
<elvishjerricco> Silly that mkDerivation doesn't throw if you omit that...
<judson> I was just seeing that. I thought package and version was enough...
<elvishjerricco> judson: Maybe in some other language's mkDerivation, but not with stdenv
<worldofpeace> yeah that error only makes sense after you figure out the problem :P
<judson> Fairly common with nix though.
<judson> Thanks, y'all.
<elvishjerricco> mkDerivation needs a stricter API. If you typo a parameter name, it'll just get set as an environment variable :/
<ldlework> heh this one gets me regularly
<ldlework> hard to debug too
<elvishjerricco> insanely
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco> yea, stdenv has become quite the mess
brejoc has quit [Ping timeout: 240 seconds]
<elvishjerricco> The new `deps*` matrix is very silly to me. It should have just been an actual matrix data structure...
vaibhavsagar__ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #47373 → net_snmp: build with default perl → https://git.io/fAx8x
hlolli has quit [Remote host closed the connection]
hamishmack has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
goibhniu has quit [Ping timeout: 276 seconds]
Denommus has joined #nixos
worldofpeace has quit [Remote host closed the connection]
<elvishjerricco> Is there a way to *delete* signatures from a nix store? I think `nix sign-paths` is signing paths that `nix verify` is failing to verify
<elvishjerricco> Particularly .drv files
<elvishjerricco> and seemingly any other add-to-store file.
<clever> elvishjerricco: what about just removing the entire path? `nix-store --delete`, and dont use force
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rycee[m]> infinisil: Put my Emacs config here: https://gitlab.com/rycee/configurations/tree/master/user 🙂
justanotheruser has quit [Quit: WeeChat 2.2]
justanotheruser has joined #nixos
<elvishjerricco> clever: Well I really don't want to / can't delete the paths
<elvishjerricco> And trying `nix-store --delete` without forcing them to be deleted does not delete signatures
edwtjo has quit [Ping timeout: 272 seconds]
<clever> elvishjerricco: i think the only way to remove signatures is to run sqlite3 against /nix/var/nix/db/db.sqlite and update the column to remove them
<clever> elvishjerricco: just make sure to backup the file first, because if you corrupt the db, your entire /nix/ has to be reset
<elvishjerricco> clever: lame. Whatever, it's not an actual solution to my problem anyway :P
theseriousadult has quit [Quit: Leaving]
edwtjo has joined #nixos
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos
<judson> "The option `...' is used but not defined." seems misleading too, when it means that the option is defined but a value has not been provided.
<clever> the option is defined, and used, but has no default and no value assigned, is a better way to put it
<Myrl-saki> judson: The option is declared but not defined?
<Myrl-saki> I mean, technically, there's no such thing as undefined, but..
__monty__ has quit [Quit: leaving]
<Myrl-saki> error: The option `virtualisation.virtualbox.host.arstarts' defined in `/etc/nixos/configuration.nix' does not exist.
<Myrl-saki> Yeah, defined in this case seems to be "provided a value for."
<{^_^}> [nixpkgs] @aszlig pushed 3 commits to master: https://git.io/fAx0U
<{^_^}> [nixpkgs] @aszlig merged pull request #47293 → nixos: top-level: evaluate assertions before warnings → https://git.io/fAbjO
mbrgm has quit [Quit: ZNC 1.7.1 - https://znc.in]
<elvishjerricco> clever: FWIW, this is what I've narrowed my issue down to: https://github.com/NixOS/nix/issues/2451
<{^_^}> nix#2451 (by ElvishJerricco, 3 minutes ago, open): Content addressable paths cannot be verified if you sign them with a trusted key
hamishmack has joined #nixos
<clever> elvishjerricco: try reading that row out of db.sqlite, sign it, then read again, and see if anything changes
<Myrl-saki> elvishjerricco: How are you calling nix verify?
<Myrl-saki> Oh whoops, --all.
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/391bf82ca34 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<elvishjerricco> Myrl-saki: Repro steps are in the ticket
<elvishjerricco> --all not necessary
<elvishjerricco> clever: This is the line that should be avoiding this problem: https://github.com/NixOS/nix/blob/master/src/nix/verify.cc#L128
<elvishjerricco> clever: Ah, we may have an overflow! If `maxSigs` is just `INT_MAX` or whatever, then the fact that `validSigs++` occurs afterwards would be overflow.
Rusty1 has quit [Quit: Konversation terminated!]
<Myrl-saki> Hm
<elvishjerricco> though this line should prevent that... https://github.com/NixOS/nix/blob/master/src/nix/verify.cc#L133
carlosdagos has joined #nixos
<{^_^}> [nixpkgs] @taku0 opened pull request #47375 → oraclejdk: remove version 10 → https://git.io/fAx0p
nDuff has quit [Quit: zzz]
Kelppo has joined #nixos
lostman has joined #nixos
erasmas has quit [Quit: leaving]
<lostman> hi all. i have some issues with nixops. maybe someone can help? 1) it complains that system.nixos.stateVersion is not set. Where do I set it? and 2) when it copies closure from my host OS it is using the uid of my host OS user (single user nix install on Ubuntu). So everything ends up horribly broken. How can I make it copy and chown to root or nixbld or something?
semilattice has joined #nixos
<semilattice> Anyone here use discord?
Ariakenom has quit [Read error: Connection reset by peer]
thc202 has quit [Ping timeout: 252 seconds]
jasongrossman has joined #nixos
kiloreux has quit [Ping timeout: 264 seconds]
asymmetric has joined #nixos