<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeVJL
LysergicDreams has quit [Ping timeout: 240 seconds]
qubasa has joined #nixos
<inkbottle>
completely fail to understand what is stdenv.cc.cc.lib and where I find it
jgt has joined #nixos
LysergicDreams has joined #nixos
<clever>
inkbottle: are you patching a prebuilt binary or compiling something?
qubasa_ has quit [Ping timeout: 276 seconds]
justanotheruser has quit [Read error: Connection reset by peer]
jgt has quit [Ping timeout: 245 seconds]
<inkbottle>
clever: [npm install bs-platform] seems there is a prebuild binary about which ldd ./vendor/ninja/snapshot/ninja.linux says libstdc++.so.6 => not found (https://paste.debian.net/1115182/)
<inkbottle>
maybe the problem comes from there
<inkbottle>
(the error is far from being so clear when doing npn install bs-platform though)
slack1256 has quit [Remote host closed the connection]
<rotaerk>
my new laptop has a 30GB optane memory thing, and I'm not sure what I should do with it >_>
growpotkin has joined #nixos
<Miyu-saki>
rotaerk: Swap!;2u:D
<Miyu-saki>
s/;2u/ /
<Miyu-saki>
I should really fix my <s-SPC>
<rotaerk>
put a 30 GB swap partition on there?
<rotaerk>
would that only really be used if my memory consumption exceeded my RAM?
<Miyu-saki>
Fair.
<Miyu-saki>
rotaerk: ZFS?
<rotaerk>
in theory it could be used as a cache
<rotaerk>
yeah ZFS could do it
<cransom>
l2arc would ok on that.
<rotaerk>
though ... ZFS was kind of a pain when I last used it
<Miyu-saki>
The only problem is that L2ARC is not persistent.
<Miyu-saki>
It'd be cool if ZFS supports tiered storage though.
<clever>
the L2ARC is basically swap dedicated to zfs
<Miyu-saki>
OTOH, I think tiered storage is against ZFS's philosophy.
<Miyu-saki>
I wonder, does ZFS's immutability mean that a write instruction should only correspond to one physical write?
<clever>
Miyu-saki: from what ive heard, multiple writes get batched into a single transaction
<Miyu-saki>
Hm.
<clever>
Miyu-saki: and there can be 2? outstanding transactions at once
<Miyu-saki>
Right. Yeah. I was just thinking about persistent L2ARC rn.
<Miyu-saki>
Well
<Miyu-saki>
s/persistent L2ARC/tiered storage/
<rotaerk>
is optane memory "just another drive" from the perspective of linux, or is there some magic going on there
<rotaerk>
i.e. should I leave it alone and it'll automagically be used somehow
<rotaerk>
or should I put a partition on it
<Miyu-saki>
If ZFS were to adapt tiered storage, that'd mean they'd need to have some kind of intra-pool migration system, which... I'm not sure.
<clever>
rotaerk: optane is just an nvme block device, as far as linux is concerned
<clever>
rotaerk: but on windows, they have silly rules like you must use a certain cpu, and it takes a dozen hours to re-configure your ntfs to use it
<clever>
i think the cpu rules, are to ensure you can afford the overhead, and then have no reason to complain and give optane a bad name
<rotaerk>
I do plan to dual boot with windows ... if I put a linux partition on it, is windows gonna stomp on it?
<cransom>
is bcachefs a thing yet?
<clever>
and the dozen hours thing, is because ntfs isnt designed to use an l2arc
<clever>
rotaerk: i think windows will just ignore it (like any other disk) until you start playing with the intel optane utils
<rotaerk>
I see
<Miyu-saki>
rotaerk: Oh yeah. Talking about swap. I heard that swap can actually be beneficial even if your memory usage is like ~80% of your total. The TL;DR being RAM in swap means more memory for disk cache.
<clever>
]$ grep Cached /proc/meminfo
<clever>
SwapCached: 1092588 kB
<clever>
this is saying, that i have ~1gig of data in both ram and swap (the same data)
<clever>
so if i do need a gig of ram, its already in swap, and linux can just instantly drop those pages
<Miyu-saki>
clever: Ouya. I bought a laptop.
<Miyu-saki>
It has only 8G of RAM tho.
<clever>
and the way linux keeps track of things, is that it flags that 1gig of ram as "read only"
<clever>
and if somebody tries to write to it, linux just discards the copy in swap, flags the ram as r/w, and retries the operation
jedai42 has joined #nixos
<clever>
Miyu-saki: all of my primary systems have 32gig of ram, i just cant work on less, lol
jb55 has quit [Remote host closed the connection]
<Miyu-saki>
Yeah. I wanted to have at least a 1050 for games.
<Miyu-saki>
While still being in the ultrabook-y territory.
<Miyu-saki>
Good news is that the RAM is upgradeable. Bad news is that it's one slot, at 16G.
<rotaerk>
I suppose I'll just put a swap on the octane... at least until I come up with a better idea
<rotaerk>
the laptop only has 16 GB of RAM anyway, so I'm bound to go over sometimes
<Miyu-saki>
Wait hold up. I just realized something.
<Miyu-saki>
Back of the envelope calculations
<Miyu-saki>
i9-990k has a maximum Vcore of 1.52V[1]. Its TDP is 95W.
<Miyu-saki>
[2]
<Miyu-saki>
Does that mean is has 60A going through it? I think I'm wrong now lmao
<nixos_user>
so I had my thinkpad's motherboard replaced due to hw failure. Upon getting it back, my HDD refuses to boot. I can mount / and /boot manually on the rescue disk, and my data appears intact, but I can't get it to reinstall grub
<clever>
nixos_user: how did you try to reinstall grub?
<nixos_user>
I get "read_file '/proc/self/mountinfo' - open: No such file or directory at /nix/store/y7w5...-install-grub.pl line 113."
<clever>
nixos_user: if your using a nixos rescue image, you can use nixos-enter to automate the chroot
<clever>
nixos_user: also, make sure the boot.loader.grub.device is pointing to the right disk
<nixos_user>
my config had boot.loader.grub.device = "nodev"
<clever>
nixos_user: efi or legacy?
<nixos_user>
efi
<clever>
ah
<nixos_user>
I have an encrypted lvm as my root
<clever>
nixos_user: what does `efibootmgr -v` print out?
<nixos_user>
it's not installed
<clever>
nixos_user: then install it
slack1256 has quit [Remote host closed the connection]
<nixos_user>
nixos-enter worked, but wifi doesn't appear to be working on it
slack1256 has joined #nixos
<clever>
nixos_user: you need to fix the dns in /etc/resolv.conf, check the file outside the chroot, then edit it inside
<clever>
nixos_user: you can also run `/nix/var/nix/profiles/system/bin/switch-to-configuration boot` inside the chroot to fix the bootloadr
domogled has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @vcunat to nixos-19.03 « expat: fetch the patch from "my private mirror" »: https://git.io/JeapI
<nixos_user>
I ran switch-to-configuration boot and it said it updated Grub 2 and appeared to complete succesfully, but upon reboot I still see nothing. I disabled BIOS secure boot and enabled CSM but still nothing
<clever>
nixos_user: you probablt want to disable the CSM
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @rnhmjoj to nixpkgs-19.09-darwin « antimony: 2018-10-20 -> 2019-10-30 »: https://git.io/JeVvL
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 246 seconds]
<nixos_user>
that didn't fix it
laudecay has joined #nixos
<clever>
nixos_user: what does efibootmgr -v output, without nixos-enter
<nixos_user>
clever - lots of stuff - it has bootcurrent, a bootorder list and a bunch of entries for all of the boot options. the one I'm guessing I care about is Boot001A* NVMe0 VenMsg(bc78..,001c1...)
<clever>
nixos_user: can you pastebin it all?
<nixos_user>
I have to get networking up first
kleschenko has quit [Ping timeout: 265 seconds]
<nixos_user>
just a moment, I've had weird issues w/ nixos's wifi options on this laptop. hard-coding the ssid in the configuration.nix was the only thing that used to work for my home network even though networkmanager worked fine when I'm away from home
jgt has joined #nixos
<nixos_user>
got it
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nixos_user2 has joined #nixos
<NoctisLa1>
I ran a nix update and shortly after my steam updated to the latest beta, it won't start anymore. Error: Missing libva.so.2
kvda has joined #nixos
<NoctisLa1>
Anyone know if this is because of the Nix update or the Steam update?
<clever>
nixos_user2: thats listed in efibootmgr, as `windows boot manager`, lol
<clever>
nixos_user2: does `EFI\Microsoft\Boot\bootmgfw.efi` exist on nvme0n1p1 ?
<nixos_user>
nope
<nixos_user>
just EFI\NixOS-boot
<clever>
nixos_user: if you use nixos-enter, does efibootmgr -v still report data?
<nixos_user>
efibootmgr isn't installed in the nixos-enter environment, and when I try to nix-env -iA nixos.efibootmgr I get an error "cloning builder process: Operation not permitted"
<clever>
nixos_user: try nix-build '<nixpkgs>' -A efibootmgr instead
<rotaerk>
ah nm; it's there... but the recovery proccess still fails. whatever; maybe I'll just buy it separately so I don't have to worry about a special partition
<clever>
rotaerk: you can download the windows install iso from the microsoft site
<rotaerk>
I don't know if they actually provided an actual key with it
<rotaerk>
though, maybe; lemme look for that, and I'll consider that option
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @rnhmjoj to nixos-19.09-small « antimony: 2018-10-20 -> 2019-10-30 »: https://git.io/JeVvL
<samueldr>
rotaerk: unlikely they provided a key, but assuming a laptop, you won't need one
<samueldr>
there's a section in the ACPI tables (iirc, or another bios-ey table) where the OEM will have put your key
<rotaerk>
I'm actually talking to an HP rep and he said he'll fetch me the OEM key
jgt has joined #nixos
<leo___>
is the fileSystems configuration optional?
<samueldr>
it'll need at least a "/" IIRC, unless built with `isContainer`, or something like that
<leo___>
Hm
<leo___>
With NixOps it's also necessary?
<leo___>
is it*
<clever>
leo___: depends on the backend, most backends provide it for you
<leo___>
backend? hm?
<clever>
aws, packet, heznet...
<leo___>
Oh!
<leo___>
You don't use it.
<leo___>
"local" backend provides it?
<clever>
there is no local backend
lovesegfault has quit [Ping timeout: 276 seconds]
<leo___>
Deploying to a NixOS machine
<leo___>
This backend.
<clever>
leo___: if your deploying to an existing nixos install, your using the none backend, which requires that you specify all of the fileSystems and boot stuff yourself
jgt has quit [Ping timeout: 276 seconds]
<leo___>
Got it. :s
leo___ has left #nixos [#nixos]
kleschenko has joined #nixos
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
Acou_Bass has quit [Ping timeout: 240 seconds]
<CMCDragonkai>
is there a way to get the revision hash from `pkgs` or `lib`?
<CMCDragonkai>
and not `lib.version`, cause that has the `19.09` as well ?
<srhb>
fpletz: (or anyone else who knows:) Testing out the networkd stuff and I'm wondering why I end up with situations where I have eg. `networks.foo.matchConfig.Name = "foo";` defined in two modules, which appears to be a problem during the merge because of the unit type restrictions -- is this really necessary? Usually I'd expect two strs to merge just fine as long as they are equal. I'm probably
<srhb>
missing some systemd specifics here?
<srhb>
... clarification: I'm wondering why it's a *problem* -- not why I have the definition in two modules ;-)
jgt has joined #nixos
ardumont has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
jgt has quit [Ping timeout: 246 seconds]
jgt has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 27 commits to nixos-19.09: https://git.io/JeVIU
<{^_^}>
#71952 (by colemickens, 2 weeks ago, open): facetimehd-firmware can't be built: url for osxupd10.11.5.dmg returns 404
Ninlives has joined #nixos
<colemickens>
I think offlinehacker fixed it.
mexisme has quit [Ping timeout: 264 seconds]
<Ninlives>
Hi everyone, does anyone has the experience of using ccache to compile linux kernel in nixos?
infinee has quit [Quit: WeeChat 2.3]
<Ninlives>
I enabled `programs.ccache.enable = true; programs.ccache.packageNames = [ "linux_5_3" ];` and the compilation failed with `Compiler lacks asm-goto support.`
<Fare>
colemickens, thanks!
<Fare>
Ninlives, which compiler version is your ccache using?
lukash_|away is now known as lukash_
<Ninlives>
Hi Fare, how do I check it? `ccacheStdenv.cc` says it's a `ccache-link`
<Ninlives>
I think these option replaced the `stdenv` by `ccacheStdenv` for the `linxu_5_3` package
<{^_^}>
[nixpkgs] @arianvp opened pull request #73028 → wire-desktop: Add arianvp to maintainer list → https://git.io/JeVLn
<Fare>
Ninlives, sorry I really don't know. gcc -V tells the version—what happens with ccache -V ?
<Ninlives>
Fare, I looked through the definition of `ccache-link`, if my understanding is correct, is `gcc-8.3.0` wrapped with `ccache-3.4.1`
<Fare>
I get this warning: [/etc/tmpfiles.d/var.conf:19] Duplicate line for path "/var/cache", ignoring.
<Fare>
Ninlives, and what version does Linux expect?
<Ninlives>
I have no idea but I believe the kernel used to be able to compile with `gcc-8.3.0` but without ccache
<{^_^}>
[nixpkgs] @vbgl pushed commit from @Ptival to master « coqPackages.coq-ext-lib: 0.10.1 -> 0.10.3 »: https://git.io/JeVt3
cfricke has quit [Quit: WeeChat 2.6]
orivej has joined #nixos
psyanticy has joined #nixos
<exfalso>
Is there a way to hook the nixops configuration switch? I'm using Nomad to do scheduling across machines, and would like to auto-apply jobs that have been modified. This is an idempotent action and should be safe, but it is strictly speaking impure. Is there a way to do this similar to how systemd services are reloaded?
xelxebar has quit [Ping timeout: 260 seconds]
xelxebar has joined #nixos
thc202 has joined #nixos
<wedens[m]>
exfalso: system.activationScripts
<{^_^}>
[nixpkgs] @marijanp opened pull request #73032 → nixos/tests: improve get_unit_info expressiveness on failure → https://git.io/JeVtz
xelxebar has quit [Remote host closed the connection]
h0m1 has quit [Quit: WeeChat 2.6]
xelxebar has joined #nixos
h0m1 has joined #nixos
h0m1 has quit [Client Quit]
h0m1 has joined #nixos
<deni>
like I see the files configuration-ghc-8.x.x.nix in the nixpkgs repo....so I now which branches are currently present but I can't seem to find the last x (the minor version) there...so that when I override the compiler version it doesn't say "unknown argument" when I type ghc802 or something
sigmundv has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 opened pull request #73033 → test-driver: add mypy support → https://git.io/JeVtx
<kriztw>
deni: the compilers are in nixpkgs.haskell.compiler, not haskellPackages
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 2 commits to nixos-19.09-small: https://git.io/JeVIn
Fare has quit [Ping timeout: 240 seconds]
<talqu>
Hi, i wanted to try this package `nix-shell -p haskellPackages.postgrest` and i've seen for the first time a message that the package is broken. There is suggestion in the error message to allowBroken, but what do people do in these cases? Is there no easy way to run this package until it is fixed?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<emilsp>
I was not aware of broken.sh. Since when did this become a thing? Where's the soource to make it send mails to a mailing list?
<ddima>
doesn't look patched and upstream only has it in v5.4-rc6 it seems. we should probably open an issue for that.
sigmundv has joined #nixos
<adisbladis>
emilsp: It looks like 19.09 have all the latest kernel releases.
<adisbladis>
At least on master
<adisbladis>
emilsp: It's been a thing for at least a few months to a year I think, but it's WIP (by andi- )
<adisbladis>
Looks like broken.sh hasn't run the checks in a while
<emilsp>
cool!
<adisbladis>
I just made sure that all kernels listed here are on the 19.09 branch https://www.kernel.org/
<bdju>
anyone have a home.nix with emacs stuff I can look at? I'm wondering if I already have emacs in home.packages if I still need the enable line for the extra programs.emacs block. and if not, which line should I have
<andi->
emilsp: I added a GitHub link to it a few days ago. I'll check on it later why it hasn't updated.
<{^_^}>
[nixpkgs] @filalex77 opened pull request #73038 → epr: init at 2.3.0b → https://git.io/JeVmz
Chiliparrot has joined #nixos
<adisbladis>
bdju: Not really, programs.emacs is a convenience wrapper for using emacsWithPackages
<adisbladis>
So if you have it in your home.packages that's fine too
<bdju>
so then I just skip the enable = true part of the example?
vidbina_ has joined #nixos
<adisbladis>
Yep
<bdju>
cool
<adisbladis>
bdju: home-manager also has an emacs service if you want to use emacsclient, though thats optional
<bdju>
is there a way to search "epkgs" or should I be searching package names in emacs?
<adisbladis>
bdju: You can look through the emacsPackages set
<bdju>
I might use emacsclient later on. haven't done so before. I have used spacemacs a lot, but I want to make my own config now
<bdju>
adisbladis: where do I find that?
<emilsp>
andi-: do you have the source for broken.sh?
<adisbladis>
bdju: You can look at it in the nix repl :) `nix repl '<nixpkgs>'` and then tab your way through the emacsPackages attribute
<adisbladis>
bdju: We auto index all of elpa/org/melpa in nixpkgs, so 99% of the time you'll find the names are exactly the same as upstream package names
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kleschenko has quit [Ping timeout: 264 seconds]
<deni>
Found a useful line from the docs: nix-env -f "<nixpkgs>" -qaP -A haskell.compiler this lets me query which compiler version are available and is exactly what I was looking for
<mananamenos>
Hi, I have these two files postgrest.nix and shell.nix https://pastebin.com/yDambbYF. I found postgrest.nix expression in the issues comment, it is way to build this package. However i dont know how to expose the binary `postgrest` once the shell is loaded.
lorimer has joined #nixos
<infinisil>
deni: Or alternatively, `nix-shell -p haskell.compiler.<TAB>`
JonReed has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed 7 commits to release-19.09: https://git.io/JeVOO
<JonReed>
Is there a CLI utility to manually generate a `.nar` from a directory? I.e. `tar` but for `.nar` archives.
<tilpner>
JonReed: Try nix-store --dump
<tilpner>
--restore to unpack
<JonReed>
tilpner: Will it work for a directory that is outside `/nix/store`?
<tilpner>
Yes
<JonReed>
tilpner: That's great. Thanks!
<{^_^}>
[nixpkgs] @fpletz pushed 2 commits to release-19.09: https://git.io/JeVOB
<ddima>
mananamenos: what do you mean by expose? make available to the rest of the system? In the shell itself its just automatically added to your path, which you can check with `which postgrest`.
<exarkun>
sshow: you could screw around with nix-store but really just change your expression to use a revision instead of a branch name
<exarkun>
sshow: you don't want to leave traps like that lying around for future builders of your derivation
<sshow>
exarkun: yeah. I can see how that is a solution, but it would be nice to know. This is a work-flow for testing out branches before merging into master :)
<globin>
We have 200999 commits on master!
<exarkun>
sshow: The workflow w/ revisions is easier. nix-prefetch-git[hub] will even write out the expression for you (see --nix).
<exarkun>
sshow: sshow But `nix-store --delete` lets you take specific things out of the store
<ikwildrpepper>
globin: wow, that is going fast
<exarkun>
sshow: as long as they're not used by something
<ikwildrpepper>
weren't we at 200000 just a few days/weeks ago?
ddellacosta has joined #nixos
<exarkun>
sshow: your stale git checkout might be used by your last build. if so, delete `result` and maybe that will help.
<adisbladis>
ikwildrpepper: The commit rate is insane
<etu>
adisbladis: I'm impressed that we actually manage to update the channels :)
<etu>
adisbladis: With all things going in all the time
<{^_^}>
[nixpkgs] @flokli pushed 3 commits to release-19.09: https://git.io/JeVsa
jgt has quit [Ping timeout: 246 seconds]
<barrucadu>
Is anyone familiar with the `services.kubernetes.roles` magic stuff? I'm struggling to get a node talking to a master. I'm getting lots of forbidden errors, but I'm using `nixos-kubernetes-node-join` and have a pretty basic `configuration.nix`. Would someone be able to have a look at my config?
wild_willy has joined #nixos
endformationage has joined #nixos
gekketinus- has joined #nixos
halfbit has joined #nixos
mexisme has joined #nixos
<wild_willy>
Hi everyone, does anyone know how to update a version of Hackage package in NixOs/Nixpkgs definitions?
mexisme has quit [Ping timeout: 250 seconds]
<Taneb>
wild_willy: are you trying to get this back into nixpkgs, or just use it locally?
<wild_willy>
To fix a broken package
<wild_willy>
namely dotenv
cinimod has joined #nixos
<Taneb>
Ah! Have a look in nixpkgs/pkgs/development/haskell-modules
<wild_willy>
The problem was that one of the test files was not included in the tarball
<Taneb>
Especially "configuration-common.nix" and "configuration-nix.nix"
<cinimod>
I am trying to use pymc3 via nixpkgs
<infinisil>
wild_willy: If it builds just fine you can remove it from the list of broken packages in configuration-hackage2nix.yaml
<infinisil>
wild_willy: And then make a PR with that change to the haskell-updates branch
<das_j>
hm, how can I override kernel build parameters?
<wild_willy>
The thing is that a new version is going to be released in Hackage that fixes the problem, when does the hackage-packages.nix gets updated?
<evanjs>
Sooo does anybody know why `cargo test` might succeed in a nix-shell session (genericBuild) but fail with `nix build`? Trying the former with `--pure` right now...
<exarkun>
myme: I suppose you would add an overlay that replaces nixpkgs.binutils with the one you want to try? and then compile a /lot/ of stuff.
<bsima>
clever: yeah, sshd is loaded and active
<exarkun>
myme: alternatively maybe you could jam your different binutils into just the expression for the software you care about but that might involve more changes specific to the expression you're changing
<bsima>
(i set a temporary root passwd)
<evanjs>
clever: Yeah, the same thing was happening with #70917, I think
<clever>
bsima: if you tcpdump the ethernet if inside qemu, does it show traffic on port 22?
<{^_^}>
[nixpkgs] @zimbatm merged pull request #73024 → nixos/systemd: Allow unit options to have multiple equal defs → https://git.io/JeVIg
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @Infinisil to master « nixos/systemd: Allow unit options to have multiple equal defs (#73024) »: https://git.io/JeVZE
o1lo01ol1o has quit [Remote host closed the connection]
<evanjs>
One fails to read config files and the other gets permission denied (13) so yeah I think it's in that vein. Tried using RUST_BACKTRACE=1 to get a better picture of what it's trying to do
<myme>
exarkun: I was hoping for a "jam"-based option ;) This is just for a dev/shell env building $work project.
<exarkun>
cinimod: Looks like more than just that change is required.
<bsima>
clever: uh, i think none of the networking is configured properly... since i can't seem to talk to the outside world or bringup the interface
<cinimod>
exarkun: I concur but I don't know what other changes are required
<exarkun>
cinimod: I'm not sure what though. If I had looked at the error more carefully maybe I would have noticed it is not missing a header file, it is tripping over purity enforcement in the nixpkgs build toolchain.
<clever>
bsima: what QEMU_NET_OPTS did you set?
<exarkun>
Maybe someone else has a clue what to do with a package that fails at runtime with an error like:
<exarkun>
Exception: Compilation failed (return status=1): impure path `/run/user/1000/ccR1D5oP.o' used in link. collect2: error: ld returned 1 exit status.
<bsima>
clever: just like the manual said "QEMU_NET_OPTS="hostfwd=tcp::2222-:22" ./result/bin/run-my-vm"
slack1256 has quit [Remote host closed the connection]
<clever>
bsima: that should work...., does any interface exist in the guest?
<{^_^}>
[nixpkgs] @wakira opened pull request #73055 → audacity: use gtk version passed through wxwidgets → https://git.io/JeVZX
waleee-cl has joined #nixos
<bsima>
clever: yeah there's ens3
<bsima>
also cool vm test, i need something like that
ckauhaus has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 2 commits to nixos-19.03-small: https://git.io/JeVtS
jlmeeker has joined #nixos
cinimod` has joined #nixos
<jlmeeker>
Anyone hit a bug recently where building sqlite lqrx7rrg1yznj106hyabbzzlr1bwnswx-sqlite-3.27.2+replication3.drv fails? This is currently blocking lxd updates.
<exarkun>
lordcirth_: At some point in history, sure.
<exarkun>
How do I set `allowBroken = true` for a single nix-shell invocation so I can at least see what is broken?
<lordcirth_>
Perhaps I don't understand your question. Presumably they are being marked broken because they are broken
<lordcirth_>
Good question
<exarkun>
It seems like including details about how they are broken, at least in the commit, would make sense.
<lordcirth_>
Yes, more detail would be good
<exarkun>
If not, then why leave them in the tree at all. Just delete them if they are broken and no one even cares enough to file a bug report.
<deni>
when I run `nix-env -f "<nixpkgs>" -qaP -A haskell.packages.ghc864` in the folder where I have `nix/sources.nix` generated by `niv` is it using those pinned nixpkgs or the ones from my system (that nix-channel --list shows) ?
<exarkun>
I guess I'll just copy the file I care about right now and delete `broken = true` and see what happens
<lordcirth_>
exarkun, "broken" is intended for them to be fixed, not just removed forever
<lordcirth_>
Deleting them and re-adding them would add a lot of churn
<exarkun>
Marking them as broken and leaving them broken forever adds a lot of bloat. :)
<exarkun>
It is pretty widely accepted that the cost of fixing software bugs increases as the age of the bug increases
<Shoubit>
deni, by "it" you mean nix-env? nix-env will use whatever is in $NIX_PATH I think. If you want it to use `nix/sources.nix` I believe you can use `nix-env -f nix/sources.nix` but I haven't looked into this so I can't say with certainty.
kleschenko has joined #nixos
<exarkun>
I use one of these packages and I didn't even see it was marked as broken in tree until over a month after it was marked so
<exarkun>
doesn't bode well for the bug ever being fixed
cinimod` has joined #nixos
<jlmeeker>
Anyone hit a bug recently where building sqlite lqrx7rrg1yznj106hyabbzzlr1bwnswx-sqlite-3.27.2+replication3.drv fails? This is currently blocking lxd updates. https://pastebin.com/ns8FMUCX
<jlmeeker>
okay, now a newbie question.... with regards to that sqlite bug... it appears to have been merged into NixOS:release-19.09 (which I'm using).. but after a "nix-channel --update" by build still fails. What am I missing?
<inkbottle>
If anyone has succeeded in using bucklescript/bs-platform I'd really like to hear about it (reasonml to js compiler)
taylorm has quit [Remote host closed the connection]
cinimod` has joined #nixos
<deni>
Shoubit: I tried that but I get an error saying attribute 'haskell' in selection path 'haskell.packages.ghc864' not found
bvdw has quit [Read error: Connection reset by peer]
jb55 has joined #nixos
bvdw has joined #nixos
<red[m]>
So my PR to put something into the stable branch was accepted and merged. To get it into master, do I need to submit another PR or does it just automatically happen?
<red[m]>
(as a more general question - are there docs on how the various branch workflows work?)
<clever>
red[m]: once staging is confirmed to not break everything, somebody usually merges it into master
growpotkin has joined #nixos
<Yaniel>
AFAIK most PRs are just done directly to master?
<clever>
yeah
<Taneb>
Yaniel: yes, but not ones that cause large-scale rebuilds
<Yaniel>
and sometimes I see [backport] PRs to the other branches
<Taneb>
Backport PRs are generally to the latest stable branch
<red[m]>
Yaniel: yah - but because the package I touched touches a lot of downstream packages I was asking to plonk it there
<Yaniel>
right
<Yaniel>
"somebody usually" sounds awfully vague though :D
<red[m]>
clever: I guess I'm mainly asking because it looks like builds and tests in hydra have stalled on stable - so kinda curious how it gets tested and then picked up
<{^_^}>
[nixpkgs] @minijackson opened pull request #73063 → shiori: update modSha256, update test to python, do more tests → https://git.io/JeVny
<marius851000[m]>
I want to test nix flake, and I set nix.package = pkgs.nixFlakes; in my configuration.nix. I rebuild the system, and now, nix flake is installed (nix --help list the flake subcommand), but I can't run any subcommand of nix (like nix flake, but also nix optimise-store. It say me "error: experimental Nix feature 'nix-command' is disabled". It worked before I changed the package (I left the default value before).
lukash_ is now known as lukash_|away
johnnywho has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @minijackson opened pull request #73064 → jellyfin: update to 10.4.1, port test to python → https://git.io/JeVnp
<segfault[m]>
whats the best way to build a machnine which has a given folder structure and some basic test files? I thought about somehting like initialScript = "mkdir foo /; echo bar > foor/foobar" in my configuration.nix
kleschenko has quit [Ping timeout: 268 seconds]
<lordcirth_>
segfault[m], like, creating a VM, or what?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable builds that break evaluation on Hydra »: https://git.io/JeVcv
Kritnich has quit [Quit: Bye bye.]
<segfault[m]>
I want to create a contianer, which has some folders and files
Kritnich has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 12 commits to nixpkgs-19.09-darwin: https://git.io/JeVcf
<{^_^}>
[nixpkgs] @peti merged pull request #72882 → haskellPackages.purescript: get this building again → https://git.io/JeanE
<{^_^}>
[nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/JeVcU
<jlv>
Can I declaratively configure a directory in configuration.nix? In particular, I'm looking at Section 3.8 of the NixOps manual, and would like the necessary configuration of /var/lib/libvirt/images to be in my system configuration.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Izorkin has quit [Ping timeout: 264 seconds]
Fare has joined #nixos
<adisbladis>
jlv: You can create it in an activationScript, but generally that kind of thing should be created by the module system if something requires it.
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/JeVcW
jlmeeker has quit [Ping timeout: 240 seconds]
<jlv>
adisbladis: Maybe `virtualization.libvirtd` should configure that directory when it is enabled. For now, I'll see about an activationScript :)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-polysemy-plugin: drop obsolete patches »: https://git.io/JeVcB
<setthemfree[m]>
The 1.3 tags are development releases
<setthemfree[m]>
What approach should I take to fix this?
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
shibboleth has joined #nixos
<adisbladis>
setthemfree[m]: Make a PR reverting that commit, also cc ryantm in your pull request so he can have a look how to avoid this in the future.
<setthemfree[m]>
adisbladis: thanks
<setthemfree[m]>
Also reporting this on repology.org (the source of the version info in the commit)
<{^_^}>
[nixpkgs] @peti pushed 19 commits to haskell-updates: https://git.io/JeVcE
<waleee-cl>
it has some links to the hydra jobsets if I remember correctly
<spacetato>
yes, found those
<spacetato>
so when the associated jobset passes it is deployed automatically?
mexisme has quit [Ping timeout: 246 seconds]
<spacetato>
ah there's a description on the site
<spacetato>
"The nixos.org server has a cronjob for which nixos-channel-scripts are executed and poll for the newest jobset that satisfies the above two conditions and trigger a channel update"
<{^_^}>
[nix] @singron opened pull request #3213 → Replace $TMPDIR with $TEST_ROOT in tests/fetchurl.sh → https://git.io/JeVlU
domogled has quit [Remote host closed the connection]
gxt has quit [Ping timeout: 260 seconds]
zupo has joined #nixos
<{^_^}>
[nix] @singron opened pull request #3214 → Switch to std::uncaught_exceptions → https://git.io/JeVls
<eyJhb>
Any easy way to fix YouCOmpleteMe for vim? Getting this error '2019-11-08 20:33:00,348 - ERROR - ycm_core library compiled for Python 3 but loaded in Python 2.' ?
<clever>
eyJhb: one sec
<eyJhb>
I have been missing it for a month or so
<clever>
48 let g:ycm_server_python_interpreter='${pkgs.python3.interpreter}'
<clever>
eyJhb: you need to add this to the vimrc
<eyJhb>
Ehm...
<red[m]>
we don't have a bot here that responds to "seen" requests do we? (ie: "JoeBlow was last seen active on this channel 2 hours ago")
<eyJhb>
But that implies my vimrc is controlled by NixOS, right?
<clever>
eyJhb: the problem, is that the ycm stuff in vim, tries to run `python /path/to/ycmd`, but looks up the python path in a number of places
<gchristensen>
red[m]: I don't think so
<clever>
eyJhb: and all of that is pointless, because ycmd already had a #!/nix/store/foo/bin/python on it
<clever>
eyJhb: youll need to build a python3 then, put its link somewhere predictable, and put its path into the vimrc
<clever>
eyJhb: nix-build '<nixpkgs>' -A python3 -o ~/python3-root, for ex
<eyJhb>
Can't I just change vim to use Python3 instead?
<eyJhb>
Everything else on my system uses python3 anyways
<red[m]>
Okay thanks, I was hoping to see if zimbatm_ (IRC) / zimbatm has been active recently
<clever>
eyJhb: its already using python3
<clever>
eyJhb: the problem is that the vim script, is looking in places like /usr/bin to find a python binary, to run ycmd
<clever>
eyJhb: and its ignoring the fact that ycmd already had a #! that did the right thing
<KarelWDingeldey[>
<clever "Karel W. Dingeldey: there is a m"> That's a little tight, but fair enough. After all NixOS is a great system. I've never had so little trouble with upgrades, even on Debian.
<{^_^}>
[nixpkgs] @Ericson2314 pushed 168 commits to structured-attrs: https://git.io/JeVlw
<eyJhb>
LnL: but is that in 19.09?
<clever>
LnL: i havent noticed that actually working, and the problem is more that its trying to use an interpreter, when there was already a working #!
<{^_^}>
[nixpkgs] @Ericson2314 pushed 0 commits to bash-no-undef-vars: https://git.io/JeVlu
<LnL>
it's been in there for a couple of years, but of something renamed it might have silently broken
<eyJhb>
I think my vimrc is broken in general
<eyJhb>
As I use both vimrc locally with plug, and the nixos conf
<{^_^}>
[nixpkgs] @Ptival opened pull request #73075 → coqPackages.InteractionTrees: init at 1.0.0 → https://git.io/JeV8J
<srid>
Could someone point me to their config of running containers declaratively, with wireguard tunnelling all traffic to some server (acting as vpn), and then launching google-chrome from the container, using the local X display?
leotaku has quit [Ping timeout: 268 seconds]
kleschenko has joined #nixos
<nurelin>
Lnl: thanks, I realized that I could use nix-shell to load the derivation and then set NIX_DEBUG
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jackdk>
srid: I haven't done anything with containers so I can't help, but you may have more success isolating subproblems and asking for help with those
<srid>
Basically, I'd like to run VPN. But limited in scope only to a single process of the web browser (Google Chrome). I already use Wireguard, and have a remote peer, so I'd like to use that as my VPN server.
<{^_^}>
[nixpkgs] @ryantm merged pull request #73067 → Fix mu version from unreleased to stable (revert to 1.2) → https://git.io/JeVCm
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Remote host closed the connection]
mexisme has joined #nixos
o1lo01ol1o has joined #nixos
lovesegfault has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
tput has joined #nixos
silver has quit [Quit: rakede]
o1lo01ol1o has joined #nixos
sweep has joined #nixos
sweep has quit [Changing host]
sweep has joined #nixos
sweep is now known as genesis
mexisme has quit [Ping timeout: 276 seconds]
tput has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @risicle opened pull request #73078 → [r19.03] varnish6: add patch for CVE-2019-15892 → https://git.io/JeV8j
Chiliparrot has joined #nixos
kuznero has joined #nixos
<kuznero>
Hi All!
<lordcirth_>
kuznero, hi
<kuznero>
When creating a package and adding some files that have strings to be interpolated by nix, e.g. `${networkmanager}/bin/nmcli`, how do I make sure that when adding a file to a package it also interpolates these things in them?
acarrico has quit [Remote host closed the connection]
<kuznero>
In string literals that works out of the box, but it would be nice to be able to do this explicitly on file's content too
<{^_^}>
[nixpkgs] @flokli merged pull request #73063 → shiori: update modSha256, update test to python, do more tests → https://git.io/JeVny
<karetsu>
I can't see where in my permissions this is the case: https://github.com/karetsu/nixOS-configuration/ because the user aloysius is in wheel, it just seems dbus isn't picking up the groups?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<kuznero>
What `builtins.tryEval` is doing? Will it interpolate in the string?
<infinisil>
kuznero: Do you *really* want to do that?
<kuznero>
Such that ./test content by itself is not valid. Maybe I can builtins.readFile, then construct a new file and then import that one with defined dependencies... but that is too verbose
<kuznero>
Agree, the alternative is to keep the content in the nix file directly interpolating in-place. But a lot of bash inside nix is also ugly
<infinisil>
kuznero: Why not pass an argument?
<kuznero>
/ it is bash for my own `scripts` package this time
seanparsons has joined #nixos
<infinisil>
kuznero: Okay so the way to import files with an additional scope is `builtins.scopedImport { x = "foo"; } ./test`
<kuznero>
infinisil, super! trying it out now!
<infinisil>
But this wouldn't be allowed in any reasonable codebase
<kuznero>
But it keeps things pretty cleanly separated as opposed to keeping alien format inside nix files as string literals, right?
<clever>
kuznero: why not make test a nix function?
<clever>
kuznero: { x }: "....${x}..." and then just `import ./test { x = "foo"; }`
<infinisil>
kuznero: Usually you'd do a find-and-replace on the file to substitute variables used in it
jboy has quit [Remote host closed the connection]
<kuznero>
clever, that will mean keeping a lot of bash inside nix, which is what I don't like
<infinisil>
The substituteAll function in nixpkgs does that
<Thra11>
If an overlay using overrideAttrs needs to make a minor modification to an attribute (such as postFixup or whatever) which consists of a lengthy shell script, is there any sane alternative to just repeating the whole script with the necessary changes?
<clever>
kuznero: then maybe you want pkgs.substituteAll
<clever>
its both a bash function and a nix function, they basically do the same thing
<infinisil>
Thra11: Hehe yes, you can use `postFixup = builtins.replaceStrings ["thing to change"] ["replacement"] postFixup`
<kuznero>
clever, hm now that I think about it... maybe you and infinisil both right... since bash has similar syntax and I will not benefit from having it done the way I described. ok, will try to wrap those as nix files with functions accepting arguments required
<kuznero>
clever, infinisil, though function is also not ideal as in this particular case bash will have similar syntax, e.g. ${PATH} that nix will try to interpolate but will likely fail.
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 9 commits to nixos-19.09: https://git.io/JeV4D
<kuznero>
Those native bash ones should be escaped then, right?
<clever>
,escape'' kuznero
<{^_^}>
kuznero: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<infinisil>
kuznero: You can also use a bash script like normal, then as previously mentioned use substituteAll to substitute "@foo@" sequences with the nix interpolation for foo
<infinisil>
This is what I'd do
<clever>
nixos-rebuild is such a script
<kuznero>
infinisil, that seems the best, so `pkgs.substituteAll`
<clever>
kuznero: this will replace @nix@, and a few other things, within nixos-rebuild.sh
jlmeeker_ has quit [Read error: Connection reset by peer]
jlmeeker has joined #nixos
<kuznero>
clever, in this code I do not understand what is it exactly that calls out to `substituteAll`?
hasanzia has quit [Client Quit]
<kuznero>
clever, see that now
<kuznero>
sorry
asymmetric has joined #nixos
<red[m]>
Can someone tell me if I did this review correctly please? https://github.com/NixOS/nixpkgs/pull/73078 - I'm going to try and assist in chewing through the PR mountain.
<{^_^}>
[nixpkgs] @Infinisil pushed 2 commits to release-19.03: https://git.io/JeV4p
<clever>
kuznero: any attributes you passed to pkgs.substituteAll, will be in the env during that bash substituteAll
jboy has joined #nixos
karetsu has quit [Quit: WeeChat 2.6]
<red[m]>
infinisil: I'm sure I'll screw up at some point, but I'll see how many I can chew through a day. If I can even just save you guys time by collecting the references it saves you guys time.
<kuznero>
clever, that makes more sense now, thanks. But if I want this to work I will need to construct a rec with src field read from my sh.file with @key@ in it, right?
<clever>
kuznero: yeah
<kuznero>
trying it out now... but from the API design perspective that pkgs.substituteAll sounds strange if it only to act on src field. It is not clear from the name of the function for sure. Why was it done this way?
* kuznero
is not trying to blame, but understand... ;)
<clever>
kuznero: it will copy from src to $out, and return that $out
mikky has joined #nixos
<mikky>
hey, is there an equivalent for 'nix-env -u --leq' for systemPackages?
<clever>
mikky: systemPackages will always install whatever is the current version in your channel, and it updates all of them at once
<clever>
mikky: if you want a new version, update the channel, and then nixos-rebuild
<kuznero>
Btw, do we have a Slack channel for NixOS by any chance?
<clever>
kuznero: src must be the path to a file, not a string
<kuznero>
Ah, I see now, thanks!
<kuznero>
Sorry, for stupid questions...
tmaekawa has joined #nixos
<infinisil>
A slack channel for NixOS? Blasphemy!
Hindsight44 has joined #nixos
<kuznero>
:D
<kuznero>
This way I could pitch it better at my new workplace
<Hindsight44>
hey guys, in the config, can you split a long command into multiple lines like with \ in bash? I tried it but it didn't seem to work, at least the program I'm trying to run says it's missing parameters
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
slack1256 has joined #nixos
shah^ has joined #nixos
<waleee-cl>
Hindsight44: Are you by chance listing your environment.systemPackages?
<infinisil>
kuznero: Yeah no I haven't seen any mention of a slack channel ever. There is a freenode bridge to this channel in matrix though, and there's also a matrix-exclusive nix channel
<clever>
Hindsight44: nix ignores any whitespace outside of a string, so you can just shove newlines anywhere you want
<Hindsight44>
waleee-cl: I'm writing a systemd service and wanted to split the ExecStart command because it's so long for one line
<kuznero>
infinisil, I see, and what comes first matrix or irc?
<clever>
Hindsight44: you can also use .script instead of .serviceConfig.ExecStart
<infinisil>
kuznero: Not sure what you mean. But the answer is probably irc
<clever>
Hindsight44: .script is a full bash script, and can be multiple lines and use normal \ from bash
<kuznero>
infinisil, I mean that irc is mirrored to matrix and not the other way around
<mikky>
how do I reference /nix/store/libxml2-dev path in a build? ${pkgs.libxml2} points to /nix/store/libxml2-bin. Theres a hardcoded '-I/usr/include/libxml2' and I want to replace it with the correct include path
<clever>
LnL: the pr also changes racerd at the same time?
erasmas has quit [Quit: leaving]
<LnL>
seems like the recent rust update broke it
<eyJhb>
LnL: thanks :) I should probably change to use NixOS for my vimrc...
<eyJhb>
My vim seems somewhat borked after the forced shutdown...
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #73083 → llvm_9: disable failing tests on 32-bit ARM → https://git.io/JeVBX
<mikky>
clever: I don't understand the logic behind this though. I've read many docs around but I'm not sure I came around this. Where should I start to look?
<eyJhb>
For some reason, my lightline/statusbar is broken now
<clever>
mikky: multiple output derivations
<mikky>
clever: ah, that sounds a little familiar. thanks again :)
<mikky>
LnL: a familiar concept indeed, it just didn't hit me. thanks, I'll go through it
<LnL>
buildInputs will figure out the correct paths for /bin /include, etc. automatically but when you reference paths in the expression you can sometimes run into it
mexisme has quit [Ping timeout: 246 seconds]
<LnL>
eg. lib.makeSearchPathOutput "dev" "include" [ libxml2 ] will do the right thing
<{^_^}>
[nixpkgs] @jonringer pushed commit from @lopsided98 to master « buildbot: 2.4.1 -> 2.5.0 »: https://git.io/JeVBb
<eyJhb>
Thanks clever , I did that "outside" of the with pkgs; which didn't work. Didn't think about it after I put it back in
<eyJhb>
Considering pulling it out from my main config, into a module or something
jb55 has joined #nixos
kunstruktur has quit [Quit: WeeChat 2.6]
<eyJhb>
clever: https://pastebin.com/qRBgiEpe `error: value is a string while a set was expected, at /nix/store/n2n93r99l63c3a57h1hswsbzmi4ddmmv-nixos-19.09/nixos/pkgs/misc/vim-plugins/vim-utils.nix:221:59`