<samueldr>
Church_: though here yl[m] wants to use bundix and create lock files
<samueldr>
so not sure it would help :)
<Church_>
Are you trying to develope a rails app from scratch or do you have something to port?
<Church_>
samueldr: Ahhh, fair point.
<manveru>
just `bundix -l` to make the lockfile and gemset at once :)
<Church_>
^
<Church_>
Listen to the author. ^
<manveru>
no clue why people still use magic... should've never added it :P
<yl[m]>
oh, let me try the -l
<Church_>
samueldr: While you're here. On that ubridge package I built earlier, how would I make sure the dynamic path creator(?) (thing that auto adds stuff to PATH) picks it up.
<Judson>
yl[m] I have that problem when I try to do bundle ops from inside the shell.
<yl[m]>
I think I figured out what I was doing wrong. I was using `bundlerEnv` inside of a nix-shell for developing that same app. Looking now at https://nixos.wiki/wiki/Packaging/Ruby it's actually advising to use `ruby.devEnv` and do the usual ruby workflow
<yl[m]>
yea thank you Judson !
<Church_>
samueldr: Okay question, how would I be able to set a cap on that ubridge binary? Seems I need that for it to work.
<Judson>
Huh. Personally I like using the shell and including the gems there.
<samueldr>
ping is added to `scurity.wrappers` with the capabilities it needs
<samueldr>
(with fewer spelling mistakes)
<samueldr>
so you should be able to do the same
<samueldr>
but you'll need to install it via an overlay in your system
<samueldr>
(or through a customized fork of nixpkgs)
<samueldr>
because nix-env installed things cannot make use of those tricks
<Church_>
Gotcha... got a link on overlays? Haven't touched them much yet.
<gchristensen>
Judson: leavedotgit is unstable. the Nix expression for fetchGit tries very hard to make it stable, but it doesn't work all the time
<schmittlauch[m]>
ohai
<samueldr>
Church_: the doc seems kinda thin at first, but once understood, it's hard to write much more without making it more confusing :/ https://nixos.org/nixpkgs/manual/#chap-overlays
<schmittlauch[m]>
my nix-env is acting weird: `nix-env -q` always just returns `home-manager-path` as the only single line.
<samueldr>
Church_: nixos has an additional method to use overlays
<samueldr>
Church_: so you probably want to end up using nixpkgs.overlays to make things easier on you at first
<schmittlauch[m]>
What I want to achieve in the end: Installing a package from my custom nixpkgs checkout: `nix-env -I nixpkgs=/home/spiollinux/src/nixpkgs/default.nix -A ktouch` But this seems to suffer from the same problem.
erictape1 has joined #nixos
<samueldr>
Church_: and both to make it work in the most painless manner, and to eventually allow you to contribute the package to nixpkgs, you probably want to make your derivation work with callPackage
<schmittlauch[m]>
So `nix-env -I nixpkgs=/home/spiollinux/src/nixpkgs/default.nix -q` again only returns the same single line.
gagbo has quit [Quit: I'm out !]
<schmittlauch[m]>
What am I holding wrong? :3
<gchristensen>
nix-env needs `-i` to install
<gchristensen>
so -iA ktouch
<gchristensen>
but seems you probably should use home-manager to install it insead of nix-env
<schmittlauch[m]>
gchristensen: I indeed use home manager, but I don't want to rebuild my whole profile based on it, just test the package I built. Someone recommended me to try it with nix-env instead of just running the build result.
<schmittlauch[m]>
and yes, I tried it with the -i flag: error: attribute 'ktouch' in selection path 'ktouch' not found
<schmittlauch[m]>
gchristensen: error: attribute 'nixpkgs' in selection path 'nixpkgs.ktouch' not found
<Church_>
samueldr: So as far as a basic overlay, would this work to start? https://paste.rs/1sv
<samueldr>
Church_: that's not what overlays are used for
<Church_>
Hmm, evidently I misunderstood.
<samueldr>
Church_: think of overlays as a means to add, subtract or modify the nixpkgs packages tree
<Church_>
And isn't that what I'm doing? Ovveriding and adding to security.wrappers?
<samueldr>
security.wrappers is part of the nixos configuration
<Church_>
Ah
<samueldr>
so in your case, you would want to add your ubridge(?) package as something like `self: super: { ubridge = callPackage ./path/to/ubridge {}; }` and *then* in the nixos configuration add a wrapper to it
<samueldr>
since that ^ example adds `ubridge` in the attrset, you would have it now in `pkgs`
<samueldr>
(oh, it would be super.callPackage ./path/to/ubridge)
<samueldr>
then you would be able to refer to it in your nixos configuration, adding the wrapper as `security.wrappers.ubridge = {...}`
<Church_>
Okay I thought that would work for the wrappers.
<Church_>
samueldr: The path to ubridge, would that just be the path to the .nix that builds it? Or would it be the nix store path?
<samueldr>
to a callPackage-able derivation
<samueldr>
I think there's gaps in your knowledge about derivations and callPackage, since you haven't contributed to nixpkgs yet :/
<samueldr>
(unless you now what I mean by callPackage-able)
<samueldr>
if you look here, the derivation file is presented as a "set pattern" function, instead of importing itself nixpkgs and such
<samueldr>
when you use `callPackage` with a path to such a file it will, in some way, inject dependencies
eadwu has joined #nixos
<Church_>
Okay yeah that's what I thought you meant.
tilpner has quit [Quit: WeeChat 2.3]
<Church_>
samueldr: So I have the wrapper written, and my overlay located in ~/.config/nixpkgs/overlays.nix Do I need to import the overlay directly in config.nix or is it done automatically?
<{^_^}>
[nixpkgs] @aszlig opened pull request #53365 → nixos/nsd: Don't override bind via nixpkgs.config → https://git.io/fhY9p
<samueldr>
Church_: `type $that_binary` in your shell (type is like which)
<samueldr>
if it's not from /run/wrappers/bin (like sudo) the security wrapper is somehow wrong or not working
<Church_>
/run/wrappers/bin/ubridge
<samueldr>
another possibility is that the software itself checks the running file's caps, which it won't see since it's on the wrapper :/
<Church_>
Christ.
<Judson>
So, from earlier: fetchgit is called with leaveDotGit, do I understand right that *any* change to the upstream git repo will break the sha256 on the fixed output?
pie__ has quit [Remote host closed the connection]
<samueldr>
(but that's purely conjecture)
pie__ has joined #nixos
<samueldr>
Church_: getcap /run/wrappers/bin/*
<samueldr>
does it look like ubridge's is right?
<Church_>
samueldr: So running capsh --print on it gave me something interesting. https://paste.rs/Kxo
<Church_>
Sec
<Church_>
samueldr: Oh yeah it does.
<Church_>
Or huh
<samueldr>
cap_net_admin,cap_net_raw=ep
<samueldr>
the makefile sets those
<samueldr>
probably important to have both
<Church_>
samueldr: Yeah I tried that, same error.
fusion809 has joined #nixos
<Church_>
I'm setting one as cap_net_raw=ep and it says cap_net_raw+ep
<siraben>
I tried looking in #urxvt and #rxvt but they seem very bare
<{^_^}>
[nixpkgs] @delroth opened pull request #53369 → Re-add security features based on GCC plugins in 4.18+ hardened kernels → https://git.io/fhYQG
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhYQC
<yl[m]>
I was able to move forward on the issue I had earlier, but now libv8 is failing (again on Mac) with the error message: `ld: unknown option: -Wl,-search_paths_first` https://www.irccloud.com/pastebin/66ZNShC0/shell.nix
Cale has quit [Remote host closed the connection]
<Church_>
samueldr: So fun fact, that config I linked, after a nixos rebuild switch I can no longer install packages via nix-env -i as non root users.
<Church_>
This rabbit hole is getting... irritating.
<{^_^}>
[nixpkgs] @hedning pushed commit from @r-ryantm to master « copyq: 3.7.1 -> 3.7.2 (#53359) »: https://git.io/fhYQ7
<Church_>
And nope, not entirely. Still can't add packages.
<Church_>
Which is annoying, but I can rollback and I don't add via nix-env very often anyway.
<Church_>
Usually just do it via home-manager via nixos-rebuild
<Church_>
And the ubridge error is still there as well. What the hell.
orivej has quit [Ping timeout: 245 seconds]
esmerelda has joined #nixos
<Church_>
And my radare2 issue has such a stupid answer.
<Church_>
Ugh.
<esmerelda>
hey, what's the best way to get the path to the currently-executing script?
<esmerelda>
wait, there's probably no good reason to do that
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<esmerelda>
my scenario is that I have a nix expression to set up my home environment via buildEnv, and it writes an update-profile script with the command to use nix-env to refresh itself
<esmerelda>
but I can't find a way to not hardcode its path
<esmerelda>
I'm running out of excuses, but mostly because I'm pretty new to Linux (not to mention Nix) and I want to master NixOS before invoking more magic
<luigy>
is there a way to launch a headless chromium in a build sandbox? Getting [0104/034037.779446:FATAL:platform_font_linux.cc(83)] Check failed: InitDefaultFont(). Could not find the default font
<luigy>
using nixos 18.09 and my derivation has tests that launches a headless chrome
<dmj`>
how do I delete obsolete AWS resources w/ nixops, specifically key pairs no longer mentioned, nixops -k doesn't do it
<Church_>
Anybody who's worked with security.wrappers to set caps on a binary, would you know why a binary depending on the former binary not pick up on it? It keeps asking me to set the caps myself which doesn't work obviously.
<wedens>
Church_: you want to depend on a binary in /run/wrappers/bin?
<Church_>
wedens: Yes, I also just realized it's probably not seeing the one in /run/wrappers/bin/ which has caps set. But maybe seeing the "real
<Church_>
"real" one in the store.*
<Church_>
wedens: Specifically I have ubridge built and package which gns3 depends on to create nat devices so as to give simulated network devices a net connection
<wedens>
yeah, if you do "{pkgs.abc}/bin/abc" it'll just give you the store one.. I've had this problem before and decided yo just rely on PATH
<Church_>
wedens: Well problem is GNS3 just auto finds my ubridge binary.
<Church_>
Based on PATH I can't set a preference for it or anything.
<Church_>
wedens: I have a git with the necessary files if you want to take a quick look.
<dmj`>
Is it possible to change a deployment name with nixops?
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @wizzup to master « haskellPackage.greenclip: add missing dependency (xdmcp) (#53388) »: https://git.io/fhOeQ
pukkamustard has joined #nixos
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
<Notkea>
hello, how can I import a service module defined in a git repository into my main configuration? I have attempted using `with import (builtins.fetchGit …) {};` but the option that the module defines cannot be found
mabel has joined #nixos
<{^_^}>
[nixpkgs] @andrew-d opened pull request #53390 → go: build each package single-threaded → https://git.io/fhOvY
<wedens>
Notkea: you'll need to add the module to `imports`
<wedens>
probably :)
<mabel>
I'm not able to step into Python module code (from a nixpkg) with VSCode with the Python extension. there's so many factors that I have no idea if the issue lies with the VSCode nixpkg, or with vscode-python nixpkg, or my own foolishness. any tips?
<kai_w>
"This command evaluates the configuration specified in /etc/nixos/configuration.nix"
<kai_w>
which *can* get out of sync
<wedens>
ah, I've forgotten about that
<hyper_ch2>
sphalerit: howdy
<sphalerit>
<freenode_wed "ah, I've forgotten about that"> hyper_ch2: o/
<hyper_ch2>
sphalerit: easy question for you for the start of the new year... how can I run a script upon rebuilding nixos automagically? Basically I want to run https://paste.simplylinux.ch/view/raw/57bac981
<wedens>
`system.activationScripts`?
<hyper_ch2>
wedens: hmmm....... :9
psy3497 has joined #nixos
<psy3497>
Hello! Anyone knows how to add a nixos configuration to grub's list? I am using UEFI if that matters.
<psy3497>
The reason I'm asking this is I'm not using `nixos-rebuild switch`
FRidh has joined #nixos
<psy3497>
I'm building the configuration with `nix-build` and then calling `result/bin/switch-to-configuration switch`
markuskowa has joined #nixos
<psy3497>
which works but when I reboot that configuration is not added to grub's list so I end up with the last configuration that was built using `nixos-rebuild switch` and I have to manually switch again.
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « bdf2psf: 1.187 -> 1.188 »: https://git.io/fhOUS
<hyper_ch2>
sphalerit: why won't boot it as activation script?
psy3497 has quit [Quit: WeeChat 2.3]
<jacereda>
how do you know which package pulls a certain dependency? I'm trying to install a package that pulls something only valid on other platforms but I don't know who is pulling that...
agander has joined #nixos
<wedens>
jacereda: `nix-store -q --referrers`
<hyper_ch2>
sphalerit: hmmm, I wonder if I should convert that script into a nixos module :)
<wedens>
what's the problem with `activationScripts`? I'm curious to know
<jacereda>
wedens: is that valid even when the package fails to install?
psy3497 has joined #nixos
justanotheruser has quit [Ping timeout: 268 seconds]
<wedens>
jacereda: no. it works for what you have in the store
mtesseract has quit [Remote host closed the connection]
<jacereda>
wedens: for some reason, it worked and it tells me futhark (the package I want to install) references ocl-icd (the package that fails to build on Darwin). But I can't see that dependency in futhark's package.yaml
<psy3497>
in continuation of my question: it seems that the files in /boot are updated with the new configuration after setting the current profile of system to be the new configuration.
<psy3497>
But the grub menu is not updated.
<Myrl-saki>
wedens: why-depends is for runtime dependencies and thus requires a build.
<Myrl-saki>
wedens: why-depends technically works for .drvs now, but it still requires you to build, so it cannot be used for failing drvs.
<Myrl-saki>
Maybe something changed over the months.
<jacereda>
cannot build derivation '/nix/store/nvc1gznfwwm9pka6wk0r5k2fssgy89sw-futhark-0.8.1.drv': 1 dependencies couldn't be built
<Myrl-saki>
jacereda: What I said is an explanation why why-depends is not the right tool.
<wedens>
I've never tried using it on failing derivations ;)
<jacereda>
is there some verbose flag that could help me diagnose the problem when building?
psy3497 has quit [Quit: WeeChat 2.3]
<jacereda>
something that logs "pulling dependency X due to Y"
<jacereda>
or some nix-repl magic?
johanot has joined #nixos
<wedens>
try the same `nix-store` command but with --referrers-closure
psy3497 has joined #nixos
<{^_^}>
[nixpkgs] @cdepillabout opened pull request #53397 → lib/modules: Add function to create option alias that respects priority → https://git.io/fhOT9
<jacereda>
wedens: there're 2 futhark packages because I've removed the old one at some point and tried to build the 0.8.1 version
<wedens>
it'll probably make more sense with --tree option
<jacereda>
wedens: error: query type '--tree' conflicts with earlier flag
<jacereda>
wedens: I only used -q --referrers-closure --tree
<psy3497>
I ould like to look at nixos-rebuild code to see what it invokes to update the grub entries, can anyone point me to the correct repository?
m15k has joined #nixos
<FRidh>
ryantm: what do you think of grouping patch updates or commits (version is x.y.z where z updates) that each have less than 10 rebuilds in a single PR per day or so? Maybe it can reduce the overload of "noise" we get in the tracker. Also, because there's hardly ever something wrong with such updates it's convenient to merge them with a single click
<wedens>
jacereda: what do you expect to see? It seems like ocl-icd is a direct dependency of futhark
<Myrl-saki>
jacereda: Can you print the build log from the start?
<jacereda>
wedens: I just fail to see why, if I checkout the packaged release and execute 'cabal2nix .' it doesn't show ocl-icd
<jacereda>
Myrl-saki: I'll try that and pastebin the logs if I still get failures, thanks
void__ has quit [Quit: Leaving]
Makaveli7 has joined #nixos
agander has quit [Ping timeout: 240 seconds]
void__ has joined #nixos
arjen-jonathan has joined #nixos
Makaveli7 has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @FRidh merged pull request #53055 → Add automatic generation of library function documentation → https://git.io/fhLqP
<{^_^}>
[nixpkgs] @FRidh pushed commit from @tazjin to master « doc: Add automatic generation of library function documentation »: https://git.io/fhOIU
<jacereda>
wedens: it's building now. So, are dependencies pulled also from script fields?
markuskowa has quit [Ping timeout: 256 seconds]
griff_ has quit [Quit: griff_]
<wedens>
jacereda: yep. all dependencies are explicit
<makefu>
hey all, are nixos sticker designs (especially the large ones with the white framing) available somewhere online? cc gchristensen
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken Hydra builds »: https://git.io/fhOL8
<Myrl-saki>
nyanloutre[m]: One way is to use a 0 hash, another way is to use nix-prefetch-url.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhOL0
<nyanloutre[m]>
Myrl-saki: this will not work as fetchpatch is normalizing the downloaded file before computing the hash (so it will differ from nix-prefetch-url)
simukis has joined #nixos
<Myrl-saki>
nyanloutre[m]: Then use a 0 hash.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2019-01-04T08:47:36Z »: https://git.io/fhOLr
<nyanloutre[m]>
Sorry but I don't know what you mean by this
<nyanloutre[m]>
you mean put a dummy hash and look at the error ?
<hyper_ch2>
sphalerit: what's wrong with the activation scripts?
<Myrl-saki>
Yep.
<nyanloutre[m]>
ok thanks
<hyper_ch2>
wedens: I guess that probably the network stack isn't available at that time
<srk>
,tofu nyanloutre[m]
<{^_^}>
nyanloutre[m]: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
init_6 has quit [Ping timeout: 246 seconds]
<Myrl-saki>
srk: Oh, thanks lol. I raised a while ago that it'd be nice if we add an dummy hash library to <nixpkgs/lib>.
<betaboon>
hello #nixos, does anyone know of a tool that generates diagrams from nixops network-definitions ? XD
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
<Mic92>
,declartive Mic92
<{^_^}>
Mic92: Did you mean declarative?
<{^_^}>
Mic92: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
drakonis has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @geistesk opened pull request #53402 → cbor: init at 1.0.0 → https://git.io/fhOs6
<b1000101>
Hi guys, is there any good documentation related to locale? I am trying to build a new python package which results in UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 111: ordinal not in range(128). The guys making this package told me they removed all the explicit encoding rules from the code (previous version was working fine). I'm looking for a general solution, not just a workaround since I would like to have
<gchristensen>
adisbladis: hi
b1000101_ has joined #nixos
<FRidh>
b1000101: it's documented in the nixpkgs manual. Also, see commit for another possible solution d65a3efc3f680f6229883778f1e77c1ae3f15709
<b1000101_>
FRidh thanks a million, I'll give it a go
b1000101 has quit [Ping timeout: 256 seconds]
johanot has quit [Ping timeout: 268 seconds]
reinhardt has quit [Quit: Leaving]
caryoscelus has left #nixos ["Konversation terminated!"]
<{^_^}>
[nixpkgs] @globin pushed commit from @Ma27 to master « cutelyst: fix build »: https://git.io/fhOGH
<gchristensen>
do we have rust 1.31 in 18.09? it seems you can't actually develop with rustPlatform.cargo anymore in 18.09, because All The Crates have adopted 1.31 fetures
<Twey>
Rather than having two sets of Rust packages
ddellacosta has quit [Ping timeout: 258 seconds]
ddellaco_ has quit [Ping timeout: 258 seconds]
Church_ has joined #nixos
<Church->
Hmm if I want to package a python module from GitHub can I just src to fetchFromGitHub inside buildPythonPackage rec { }
<gchristensen>
yea
void__ has quit [Remote host closed the connection]
<Church->
gchristensen: Actually if I do build it off of pypi, how do I get the sha256 hash? Just run nix-prefetch-url --unpack on a pypi url?
<Church->
Oh it's on the web page. Nevermind
agander_ has joined #nixos
iyzsong has quit [Ping timeout: 245 seconds]
agander is now known as Guest18360
agander_ is now known as agander
Guest18360 has quit [Killed (cherryh.freenode.net (Nickname regained by services))]
hyper_ch2 has quit [Ping timeout: 256 seconds]
dermetfan has joined #nixos
jonaswouters has joined #nixos
<jonaswouters>
is there a easy way to have nix environment variables like $NIX_CC available under the fish shell?
dslegends has joined #nixos
<Church_>
Hmm, does anything seem off with this nix expr? https://paste.rs/xEL Trying to build with "nix-build -E '(import <nixpkgs> {}).callPackage ./default.nix {}'"
<{^_^}>
Church_: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<Church_>
manveru: Yeah ended up doing that.
<Church_>
Thanks.
agander has quit [Ping timeout: 250 seconds]
<Church_>
srhb: If I want to build this package for Python3.6, would I just change the callPackage bit slightly?
<manveru>
`python36Packages.buildPythonPackage` should work there
<Church_>
Cool, thanks manveru.
<Church_>
Then I can finally build the stuff this depends on ugh.
<Church_>
manveru: Once it's built and I nix-env -i ./result it into my local pkg tree. can I just pass it in as propagatedBuildInput for another package?
<frigate_freedom>
Hello guys and Happy New Year!
<frigate_freedom>
I've just installed NixOS on PC where I have NVMe SSD With Windows 10 and HDD with NixOS. SSD structure is:
<frigate_freedom>
/dev/nvme0n1p3 975820800 976766975 946176 462M Windows recovery environment
<frigate_freedom>
/dev/nvme0n1p2 1050624 975818790 974768167 464.8G Microsoft basic data
<frigate_freedom>
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
<frigate_freedom>
and HDD sturcutre is:
<frigate_freedom>
/dev/sda1 34 32767 32734 16M Microsoft reserved
<frigate_freedom>
/dev/sda2 32768 1953529855 1953497088 931.5G Microsoft basic data
<frigate_freedom>
/dev/sda3 1953529856 1954553855 1024000 500M EFI System
<frigate_freedom>
/dev/sda4 1954553856 2373984255 419430400 200G Linux filesystem
<frigate_freedom>
/dev/sda5 2373984256 3907028991 1533044736 731G Linux filesystem
<frigate_freedom>
I prefer not to use grub, but default loader do not see Windows partition. I've tried to use grub, but it says
<frigate_freedom>
/nix/store/233x9n88dj2kgl9wp08609hz900d368q-grub-2.02/sbin/grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
<frigate_freedom>
/nix/store/233x9n88dj2kgl9wp08609hz900d368q-grub-2.02/sbin/grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
<srhb>
frigate_freedom: You need to use a pastebin :-)
<frigate_freedom>
5 sec
<srhb>
It's OK, it's here now. Just in the future. :)
<srhb>
frigate_freedom: Can you also give your boot loader config according to configuration.nix? As far as I know efi embedding is entirely possible by using "nodev" as the device. And the easiest way to support windows booting is to use grubs os prober functionality.
<tg>
how to i get the revision history of the nixpkgs-unstable channel published on nixos.org/channels ?
<Church_>
manveru: So building another package(https://paste.rs/tyW), calling it the same as before "sudo nix-build -E '(import <nixpkgs> {}).pythonPackages.callPackage ./default.nix {}'"
<Church_>
But it errors out: "error: undefined variable 'pyyaml' at /home/noah/code/netmiko/default.nix:13:42"
<Church_>
So how should I be passing buildInputs in?
<Church_>
Already tried prefixing pkgs. to each package.
<{^_^}>
[nixpkgs] @Mic92 opened pull request #53404 → nixos/xss-lock: specify a default locker → https://git.io/fhO8B
<Church_>
Don't think I can do a wholesale import <nixpkgs> {}; in this either.
<srhb>
Church_: It's in python36Packages presumably
<srhb>
And I don't know what that self is doing there..
<kai_w>
Church_: you can have buildPythonPackage and python dependencies as arguments (and drop 'self') if you call it with python36Packages.callPackage
<srhb>
You probably want buildInputs = with python36Packages; ...
<{^_^}>
#23958 (by pbogdan, 1 year ago, closed): boot.loader.grub.useOSProber doesn't seem to work.
jomik has joined #nixos
<exarkun1>
How do I add an entry to the PATH for executables in a particular package? the wrapper functionality?
<jomik>
Is there a way to check which nixpkgs version <nixpkgs> is?
<exarkun1>
jomik: .lib.version
<jomik>
Perfect
<samrose>
Is there a recommended way to "pin" packages when doing a nixos build in hydra?
<kai_w>
Church_: check nixpkgs/pkgs/development/python-modules - it's probably worth looking at those for some examples :)
<srhb>
exarkun1: Yep, wrappers are great for that.
<kai_w>
they're called from pkgs/top-level/python-packages.nix
<jomik>
Is there a command to directly print that? exarkun1 ? I can see it by doing nix repl and such.
<Church_>
srhb: kai_w: So if I built a dependency for this and then added it via nix-env -i ./result. How would I reference to pass it? Built it the exact same manner as the above.
<simpson>
samrose: IIRC you can pick the revision by putting a space after the git URL and then giving a git revision hash.
<srhb>
frigate_freedom: Try setting boot.loader.grub.efiSupport = true as well
<Church_>
Because python36Packages.textfsm didn't work. Only one that errored out.
<exarkun1>
jomik: I've always just done it w/ nix repl or nix-build --expr
<Church_>
kai_w: Yeah, been looking at them.
<jomik>
So you have to enter nix relp?
<exarkun1>
Church_: if you want it in nixpkgs, you have to put it there. submit patch upstream, patch your local nixpkgs, or use an overlay.
<kai_w>
Church_: I don't think putting packages in your env gives you access to them for another build. you can import the dependency in your final package and call it there, or use an overlay
<exarkun1>
eh nix-build
<srhb>
frigate_freedom: Just reading the module and trying to follow along with the logic that can end you up in that situation..
<Church_>
exarkun1: Okay gotcha, so place in an overlay and then nixos-rebuild after calling nixpkgs.overlay(s) in my nixos config?
<gwen>
aye aye, I'm packaging the next-browser (next.atlas.engineer) and I want to pass makeFlags = ["LISP_FLAGS=--first-flag --second-flag"]; but make keeps complaining about not recognizing option --second-flag
<frigate_freedom>
srhb: seems setting boot.loader.grub.efiSupport = true helped me
<samrose>
simpson: do you mean when itulizing in a nix expression? I guess it makes sense that it needs a hash
<kai_w>
You could probably use builtins.fetchGit instead if you wanted it to auto-update from a remote source
<srhb>
frigate_freedom: Hooray. As far as I can see there should be some guard going on here to prevent the user from forgetting that when it's clearly intended to be an EFI install. But not sure.
<Church_>
So if I add my textfsm package to ~/.config/nixpkgs/overlays.nix would it be via "textfsm = super.callPackage /home/noah/code/textfsm/default.nix {};" or would I need to alter that due to building it via "sudo nix-build -E '(import <nixpkgs> {}).pythonPackages.callPackage ./default.nix {}'"?
<simpson>
samrose: I mean in your Hydra configuration. When you pass in a git repo as a parameter to a build, you can pin the revision.
reinhardt has joined #nixos
<frigate_freedom>
srhb: thanks a lot! Hope in some time I will be useful for community too :)
<srhb>
frigate_freedom: I bet! Just takes an interest ^^
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samrose>
actually I guess that is pinning a channel
<gwen>
srhb: sounds promising :) yeah, it's right in the description 'you must use this if the argument contains spaces'
<simpson>
samrose: Sure. That's pinning in the code rather than in Hydra though.
orivej has joined #nixos
<srhb>
ar: It looks like bluetooth is found, but not the bluetooth wireless controller via btusb?
<ar>
hm
<kai_w>
Church_: yeah, that should work in `packageOverrides` for your python version. be aware there's a bit of a gotcha with python `packageOverrides` not composing, see bug 44426 for a workaround
<kai_w>
but if you're only overriding it in one place that doesn't really matter
<exarkun1>
anybody know what's up with `nix-build --expr 'with import <nixpkgs> { crossSystem = { system = "armv6l-linux"; }; }; python.pkgs.setuptools'` on staging?
frigate_freedom has joined #nixos
<samrose>
simpson: I think what I am seeing in the examples is people setting the hydra config the way you describe, to give hydra a trigger to watch for changes, then using this line in code to intervene and fix to that actual tarball
<ar>
srhb: it looks like nixos kernel (4.14.90) doesn't detect anything at usb@1:7, for whatever reason. it should be under usbhost:0
<srhb>
ar: It's fast and cheap to check a different kernel, if you suspect that. :)
<srhb>
ar: for instance, setting that to pkgs.linuxPackages_4_9
<frigate_freedom>
srhb: tried to search grub.efiSupport and seems it's not represented there. only on Bootloader page: https://nixos.wiki/wiki/Bootloader
<srhb>
frigate_freedom: The grub + efi support is a bit rough and underdocumented, we seem to want people to use systemd-boot for efi systems, which is quite a bit less flexible compared to grub.
<ar>
srhb: but i guess linuxPackages_4_19 should work
<srhb>
ar: Right :)
<srhb>
Though... Is zfs working with 4.19 now?
<srhb>
Ah it is.
<srhb>
(Apparently I'm on 4.19...)
<ar>
i have zfs working on my gentoo install with 4.19
orivej has quit [Ping timeout: 250 seconds]
jabranham has joined #nixos
<philipp[m]>
I run zfs on my 4.19.9
<philipp[m]>
on nixos
<frigate_freedom>
srhb: thanks! There is no search support in NixOS Manual's Appendix, that's why novice like me could not find some options
<srhb>
frigate_freedom: The options page is good for that :) Also man configuration.nix
<clever>
,locate libatk-bridge-2.0.so.0
<{^_^}>
Found in packages: at_spi2_atk
Synthetica has joined #nixos
<Church_>
kai_w: So looking over bug 44426, so once I have this setup, what else will I have to do to make my new package netmiko aware of the over-ride adding textfsm to python36Packages when adding it as a propagatedBuildInput?
<Church_>
Do I have to specify the overlay/override in my netmik/default.nix definition?
<kai_w>
you should just be able to add `textfsm` to the inputs of your function for `netmik`, and it should work.
<kai_w>
The only problem with that bug is if you have multiple overlays that call overridePythonPackages, only the last one will actually count without some trickery
<gchristensen>
do emacs package updates ever get backported? nix-mode has had a bunch of fixes lately and it'd be cool to get them applied to 18.09
<{^_^}>
[nix-mode] @etu opened pull request #67 → [WIP] Remove line that caused tests to not indent at all in the tests → https://git.io/fhO0I
<Church_>
Yeesh/
<gchristensen>
etu: have you worked on emacs modes before? you're doing great work
<Church_>
kai_w: So looking at an override when I define it, self: super: { pythonOverrides = selfPython: superPython: { py.overridePythonAttrs (oldAttrs: {pname = "SOMETHING";});}; python36.pksg.override { packageOverrides = pythonOverrides;};} Would I just sub textfsm into pname?
<kai_w>
The pythonOverrides attribute is only necessary for working around the multiple overlays issue, and it's only useful if you use lib.composeExtensions
<exarkun1>
Can I have a no-source derivation? Something that builds purely from other packages?
Havvy has quit [Read error: Connection reset by peer]
<FRidh>
exarkun1: yes, unpackPhase = "true"; or use runCommand if that betters suits you
<Church_>
kai_w: Okay, secondary question, will I have to update that again with my netmiko package to make it available to python3? ie. Doing an import netmiko/textfsm in a python interpreter session?
<Church_>
Because so far despite building textfsm and running nix-env -i ./result I can't import it into a interpreter session
gwen has quit [Remote host closed the connection]
<exarkun1>
FRidh: thanks
gwen has joined #nixos
Havvy has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
drakonis has quit [Ping timeout: 245 seconds]
<samrose>
simpson: thanks for your responses, I was trying figure out various approaches I was stumbling across.
Havvy has quit [Read error: Connection reset by peer]
<simpson>
samrose: No worries. Owning a Hydra isn't easy.
<kai_w>
I've always done `nix run "(with import <nixpkgs> {}; python3.withPackages (ps: with ps; [ <PKGS> ]))"` to get my python interpreter.
<kai_w>
I'm not sure if it's possible to persist it via nix-env, I haven't tried
<Church_>
Ah yeah I just install my packages via systemPackages with the latter half of that snippet to install them.
<Church_>
Hmm.
gwen has quit [Ping timeout: 240 seconds]
<Church_>
kai_w: So once I set that in my overlays, do I need to run a nixos-rebuild or anything for it to get picked up?
<kai_w>
no, I don't think so
<gchristensen>
etu: btw what is your favorite charity? I owe you a donation in your name
Havvy has joined #nixos
<Church_>
Hmm, still getting a textfsm variable undefined error when trying to build. Here's the netmiko default.nix and here's my ~/.config/nixpkgs/overlays.nix https://paste.rs/KxMhttps://paste.rs/ZyJ
<Church_>
See anything obvious I'm missing?
<Church_>
Says it should be automatically loaded...
notzmv has quit [Quit: WeeChat 2.3]
agander has joined #nixos
<Church_>
Hmm.
ddellacosta has joined #nixos
<exarkun1>
Church_: you have to put it in the argument list
<samrose>
is there a way to instruct hydra not to evaluate or try to build certain upstream packages (like Oracle jdk)?
<Church_>
exarkun1: What do you mean exactly? Argument list where?
<jonaswouters>
so I work in an enviroment where we use different node.js versions, and have build scripts that include nvm. Do I just install nvm manually, or does anyone have a nix expression for it?
<exarkun1>
Church_: in the first paste
<exarkun1>
Church_: you define a function that takes {lib, buildPythonPackage, fetchPypi}: but it should take {lib, buildPythonPackage, fetchPypi, testfsm}:
<Church_>
Ohhhhh
<exarkun1>
Church_: the argument will be passed automatically but only if you declare you want it :)
<kai_w>
imo it's clearer (and easier to override) to give all your python dependencies as arguments, and not use `with pythonPackages` in `propagatedBuildInputs`
<Church_>
So getting: "error: anonymous function at /home/noah/code/netmiko/default.nix:1:1 called without required argument 'textfsm'" after making kai_w's changes
<kai_w>
looks like the overlay isn't taking. when I use what you have in the pastebin I get `error: value is a function while a list was expected`
<Church_>
Huh
<kai_w>
that should be fixable by just enclosing the whole thin in [(...)], but the fact that you're not getting it means it's not being picked up
<Church_>
kai_w: Could it be from having nixpkgs.overlays set in my config.nix?
<exarkun1>
How are packages that have ~/.something/config files dealt with? This program can generate one on first run but the config needs to include paths to various things in /nix/store and I'd rather package it so those are already figured out.
<siraben>
Church_: are you using just i3 or i3 + another desktop manager like XFCE?
<Church_>
siraben: Just i3
<siraben>
Church_: what are you using to manage your wireless?
<siraben>
nm-applet?
<Church_>
Network-Manager/nmtui
<Church_>
So yes.
<ottidmes>
siraben: I also have a HiDPI display, I use bspwm+lemonbar and since I use multiple displays including normal DPI I just have my lemonbar configured to scale up accordingly, and then I set scaling per application that support it, it is good enough for me
<siraben>
ottidmes: does lemonbar allow for the apperance of icons from the system tray?
<siraben>
Like nm-applet, bluetooth etc.
<ottidmes>
siraben: no, but I scripted it to have one on top of it
<siraben>
ottidmes: what sort of issues are you still having with the HiDPI setup?
<ottidmes>
siraben: my biggest issue is that my GPU does not have a good enough driver that works under Linux, so certain applications get slow/tearing, which is holding me back a bit compared to my 2048x1152 display
<siraben>
I see.
<exarkun1>
argh soo much unnecessary rebuilding of everything all the time why
stigo has quit [Quit: WeeChat 2.2]
<siraben>
clever: I'll take another stab at using i3bar instead of polybar and see if that helps
<Church_>
I really hope I don't have to do a reinstall. It's not as bad due to nixos being nixos. But I still don't want to do it. >_>
<LnL>
Church_: hmm kind of looks like you do have a demon, does /nix/var/nix/daemon-socket/socket exist?
<Church_>
So much damn time.
<Church_>
LnL: Yep, has a size of 0 obviously. But it exists.
<LnL>
oh, you're on nixos?
<Church_>
Yep
erasmas has joined #nixos
<Church_>
Obviously I need to just chmod 777 -R / now. /s
<{^_^}>
[nix-mode] @matthewbauer pushed 2 commits to master: https://git.io/fhOg9
<LnL>
some people prefer a checkout, just be careful that branches you track if you do
<Church_>
Gotcha
<Church_>
Okay cool, now at the same error kai_w had
<Church_>
kai_w: So wrapping my overlay in [()] didn't work.
<exarkun1>
How can it be that after building a package on A and then using nix-copy-closure on the output on B, building the same package on B wants to download a hundred packages and build fifty more?
<Church_>
kai_w: Was I supposed to enclose it in [()] like this? https://paste.rs/WXt
gagbo has joined #nixos
<LnL>
exarkun1: probably build time vs runtime dependencies
agander has joined #nixos
periklis has quit [Ping timeout: 258 seconds]
<exarkun1>
nix-copy-closure only copied the runtime dependencies and nix-build wants to download and build all the build-time dependencies? (even though the package is already built and in the store?)
__Sander__ has quit [Quit: Konversation terminated!]
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
stigo has joined #nixos
agander has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #53028 → gcc-4.8: fixup cross compilation after merging #15867 for 18.09 → https://git.io/fhIMX
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to release-18.09: https://git.io/fhO27
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #53201 → zsh-command-time: enable work with options customPkgs → https://git.io/fhqa3
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhOaJ
<Church_>
LnL: So after moving the nixpkgs dir to my ~/ and setting NIX_PATH via "declare -x NIX_PATH="nixpkgs=/home/noah/nixpkgs:nixos-config=/etc/nixos/configuration.nix""
<Church_>
Running nixos-rebuild switch gives off this error: "error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)"
<Church_>
Along with other errors branching off nixpkgs/
drakonis has joined #nixos
<kai_w>
Church_: no the whole thing including `self: super:`
<kai_w>
I've got to head, good luck!
kai_w has quit [Quit: Konversation terminated!]
<Church_>
Thanks! Take care.
shibboleth has joined #nixos
<{^_^}>
[nixpkgs] @frlan opened pull request #53409 → Geany: Support for GTK2 and GTK3 → https://git.io/fhOVf
<siraben>
Church_: looks like i3bar works fine with HiDPI
<siraben>
Plus it's less resource heavy than i3 anyways :)
<siraben>
I mean
<siraben>
Polybar
prooftechnique has joined #nixos
<prooftechnique>
Is there anything I can do to diagnose or workaround `unexpected end-of-file` when I do a rebuild?
<prooftechnique>
I seem to run into it with home-manager and nix-darwin most often, but I'd expect it to just fall back to build if it can't get a cached path
<goibhniu>
hi prooftechnique could it be caused by lack of RAM?
<exarkun1>
Should I make a symlink from a ~/.something/something.conf to a /nix/store/.../something.conf in order to provide a user-owned-ish location for a pre-determined configuration file? if so... how
<prooftechnique>
I've got 16GB, so I hope not, but I suppose it's possible
<goibhniu>
ah no, it must be something else
<prooftechnique>
Ah, sticking even more "-v"s on, it says "Server doesn't support multi-use yet, wait" and then "No connections available", before apparently waiting on download threads before the error
jtojnar has quit [Ping timeout: 245 seconds]
<prooftechnique>
Some kind of multi-curl issue? Maybe it's trying to open too many connections, or cache.nixos isn't accepting new ones?
qtoni has joined #nixos
<Church_>
prooftechnique: I had that error once, let me remember how to fix it.
<qtoni>
aye aye, does somebody here know how building packages with ASDF/quicklisp works in nix?
<Church_>
Anddd I can't fall back to raspi since it doesn't have access to gns3 on my laptop
<Church_>
So how often are packages rebuilt in nixpkgs
<exarkun1>
Although I guess I should dig in further, there might more useful information being discarded when that ImportError is discarded...
<Church_>
Since I'm thinking of upstreaming a package and service definition for a rails app I help maintain. Is it only on version bumps?
<gchristensen>
Church_: they are built any time their dependencies change
<Church_>
gchristensen: So if we push a commit to master on our rails app, what would we then have to change in the nixpkg?
<gchristensen>
you would have to update the source to point to the new version
<exarkun1>
Eh, boring: Importing cmuclmtk: No module named cmuclmtk
<exarkun1>
Oh yea. I looked at the Naomi script. It is adding a bunch of other Python site dirs but it's not adding one for cmuclmtk.
<Church_>
Oh yeah duh do. It's based on hashes.
<ottidmes>
eacameron: just having "pinentry-program /path/to/bin/pinentry" in e.g. ~/.gnupg/gpg-agent.conf
<Church_>
Hmm, is there any way at all to have it track master?
<gchristensen>
Church_: in nixpkgs? no
<eacameron>
ottidmes: I don't even have a ~/.gnupg/gpg-agent.conf so apparently not
<gchristensen>
Church_: in your local code? yes, you can use builtins.fetchGit { url = "https://oeunthoenuth"; ref = "master"; }
<Church_>
Gotcha.
<exarkun1>
uhhg because cmuclmtk is not actually a python library, wee.
<Church_>
gchristensen: Gotcha, thanks.
<gchristensen>
you're welcome :)
<Church_>
And frack, I think I just made myself a CI system to go along with Nix for our setup.
<Church_>
Lord knows how long I'm gonna have to support this...
<gchristensen>
haha, uh oh, yeah?
<Church_>
gchristensen: Trying to make code deployments for lobste.rs more reproducible and less human. So writing a little thing in Golang to run my nix build and nixos-rebuild switch
<gchristensen>
ohhh! I didn't know lobsters used nixos
<Church_>
I've been slowly porting us over.
<Church_>
gchristensen: The rails app I was mentioning was lobsters which I'm going to upstream along with a service wrapper.
<gchristensen>
sounds ambitious to upstream it! cool
<Church_>
gchristensen: Well I mean upstream the nix package to nixpkgs and the wrapper once I test more and go through review.
<Church_>
samueldr: and manveru helped quite a lot. Although I need to rewrite so as to not use a super hack.
ddellacosta has joined #nixos
erictapen has quit [Ping timeout: 240 seconds]
<manveru>
Church_: i wrote a CI in Go already :P
<Church_>
lolol
<Church_>
manveru: Link?
<eacameron>
Church_: are you using noria database now too? ;)
<Church_>
Noria?
<Church_>
manveru: I say CI but running nix build and then nixos-rebuild switch isn't that hard. :P
<manveru>
atm i'm trying to figure out how to configure an openvpn server... the link in the docs is dead :|
<Judson>
wrt to rubygems, I wonder if the leaveDotGit is necessary? It seems like upstream adding or moving a tag would be enough to break the fixed output :(
<Judson>
manveru, do you know offhand? Or zimbatm?
<manveru>
Judson: unfortunately it's needed
<eacameron>
Church_: You'll see in the readme that they used lobsters as a test case and have 5x speed improvement
m15k has joined #nixos
<Judson>
That is unfortunate.
<Judson>
That *does* seem like worth raising with them, though.
ddellacosta has quit [Ping timeout: 246 seconds]
<Church_>
manveru: On Nix?
<Church_>
What's the issue, I've had to do that hell before.
<manveru>
nixos
<manveru>
Judson: the problem is that a lot of gems abuse git to do a list of project files for the gemspec
<manveru>
so you need the original repo at build time
Unode has quit [Quit: Off it goes]
<manveru>
we could probably fix that by building a replacement for `git ls-files` that's used during build... that should make 99% of them work at least
<gchristensen>
manveru: what if we did a git init git add . in the build phase, instead of fetch phase?
<manveru>
there must be discussions about that aplenty on github :)
<gchristensen>
oh!
Unode has joined #nixos
<manveru>
hmm
<manveru>
that might actually work...
<gchristensen>
or alias `git ls-files` to `find .`
qtoni has quit [Remote host closed the connection]
qtoni has joined #nixos
<kreisys>
Did anyone else recently start getting 'unexpected end-of-file' errors on darwin?
Ptivall has joined #nixos
Ptivall has left #nixos [#nixos]
<kreisys>
After a clean install of Nix everything is fine, but then when I install nix-darwin and let it manage everything it ends up using the latest nix from nixpkgs-unstable, which is the same version as what was installed from the tarball but a different hash
<kreisys>
from that point all the nix tools start failing immediately with 'unexpected end-of-file' errors
<goibhniu>
prooftechnique: mentioned something like that earlier
<kreisys>
At least I'm not crazy 😅
<LnL>
kreisys: 10.14?
<prooftechnique>
You have just described exactly what I'm hitting, yeah
<kreisys>
yeah 10.14.2
<prooftechnique>
10.14, for me, yeah
<kreisys>
it happened after last time I updated the channel
<LnL>
can you both run nix-info
shibboleth has quit [Quit: shibboleth]
<prooftechnique>
Weirdly, I can make it work if I set the new gnupg-agent stuff to true.
<{^_^}>
nix#2523 (by periklis, 8 weeks ago, open): darwin: nix-daemon crashes due to OBJC_DISABLE_INITIALIZE_FORK_SAFETY
<prooftechnique>
I have nix-info installed, anyway, after getting one good build. Maybe you already have it under /run/current-system/sw/bin?
<LnL>
gchristensen: this is the second person, I think nix-info doesn't detect nix-daemon correctly anymore
<prooftechnique>
Aha
<kreisys>
Not rn; I scripted the process of nuking nix from my system and then reinstalling it and nix-darwin from scratch
<gchristensen>
ouch...
<gchristensen>
nix-info -m -d
<prooftechnique>
Well, that's less than ideal. That does line up with right about when I started hitting this issue. I can get around it with --option substitute false, but blech
<prooftechnique>
And that gets me occasional failures because the apple-opensource s3 bucket permissions are broken, it seems
<LnL>
gchristensen: I get yes tho
<catern>
is there a way to do nix-store --import (or something similar) such that if there's a reference to a path which is not found in the store, Nix attempts to substitute that path, and only fails the import if it fails to substitute? that would allow distributing a small NAR which mostly pulls things from the binary cache
<kreisys>
k I could run it with nix-shell without the daemon crashing
<LnL>
kreisys: prooftechnique: you can recover by running the daemon interactively with that environment variable set, then rebuild to update it in the service definition
<kreisys>
I tried using the default profile for nix.package
<LnL>
or the version from the installer I posted
<kreisys>
but that failed altogether
<kreisys>
what environment variable?
<kreisys>
For me it works fine if I change the plist file and replace /nix/store/agq9zq79m9yys2yli2vr0c999rfrg13h-nix-2.1.3/bin/nix-daemon with /nix/store/dkjlfkrknmxbjmpfk3dg4q3nmb7m3zvk-nix-2.1.3/bin/nix-daemon
<kreisys>
the latter being the version that comes with the nix installer.
<kreisys>
but that change would get nuked next time I run darwin-rebuild
<exarkun1>
is it just the case that cross compilation for python modules is not yet supported?
<prooftechnique>
LnL: That launchd directive was just what I was missing. Let me do another rebuild and see if that fixes everything :D
<prooftechnique>
Oh, my god, that did it
<prooftechnique>
My productivity is saved :D
<prooftechnique>
Thanks, LnL
griff_ has joined #nixos
<prooftechnique>
And thanks, kreisys, for also having that problem :)
<kreisys>
Hooray! Works for me too!
<kreisys>
I should've come here yesterday
<kreisys>
Oh well. At least now I have my bootstrapping scripted down :D
<prooftechnique>
And that fixed my home-manager woes, too, so I'll call that a win
<betaboon>
hello. using nixops sometimes copying paths from local nix-store to an aws-ec2-node is hella slow. any hints ?
rpg has joined #nixos
Mateon3 has joined #nixos
<exarkun1>
I run nixops on the ec2 instance instead of running it locally
sanscoeur has joined #nixos
<kreisys>
betaboon: I also found that a somewhat odd design decision... some people just use a remote host to run all their nixops stuffs. I ended up writing a terraform module that just puts a tarball full of expressions on S3 and creates the cloudwatch/systems-manager/etc infrastructure to make instances rebuild/switch whenever it changes. but it isn't super documented lol
<exarkun1>
it's rather a pain.
<exarkun1>
based on issues I've found in the tracker, there's no way to tell local nixops to to uploads/downloads on the remote builder.
<kreisys>
if you wanna look at it it's github.com/kreisys/anxt
Mateon1 has quit [Ping timeout: 258 seconds]
Mateon3 is now known as Mateon1
<kreisys>
downside is that each instance would build it separately and you don't have feedback if they fail (that could be easily mitigated with a cloudwatch rule the pushes an sns msg)
<betaboon>
i have been using nixops for quite a while now. today i have the problem again. and i doubt its a nixops problem. copying paths to t3.nano works flawless. but copying paths to this m5d.large just seems to get stuck
<exarkun1>
I have vaguely wondered about some NIX_REMOTE hack so that nixops is actually directly driving builds on the remote host
<exarkun1>
betaboon: okay maybe you should specify your problem a bit more.
<ldlework>
exarkun1: the docker model
<exarkun1>
what do "works flawless" and "stuck" mean?
<cransom>
woh. i see a ginormous speed difference between a `nix copy --to` between ssh-ng:// and ssh://, with ssh-ng slow to the point of looking very broken.
<exarkun1>
ldlework: I'm not sure that docker can credibly lay claim to originating the client/server model. ;)
<kreisys>
new gen are always slow. bunch of snowflakes
<ldlework>
no just the one it uses
<ldlework>
i don't know of many cli tools that use a client/server model though
<betaboon>
exarkun1: sadly i cant say any more that what i just wrote. i am running nixops deploy with --max-concurrent-copy 1 to troubleshoot. according to wireshark traffic goes over the connection to that host. but copying the file just never finishes. even tho it is hella small.
Makaveli7 has joined #nixos
ddellacosta has joined #nixos
<betaboon>
and from time to time i see a shitload of TCP Dup ACK and TCP Retransmission
<exarkun1>
maybe your network is having problems?
<exarkun1>
or AWS'.
<betaboon>
exarkun1: i thought so too. but on t3.nano nodes it works flawless. just that m5d
<exarkun1>
okay, so AWS' network
<exarkun1>
I doubt anyone here can debug this would a lot more information
<exarkun1>
maybe you can learn something from a traceroute to the affected machine (or some other similar diagnostic tool)
ris has joined #nixos
<betaboon>
yeah thought so
<betaboon>
running strace on nix-store on the target machines makes me believe that data is actually reaching the machine
phreedom_ is now known as phreedom
<exarkun1>
builder for '/nix/store/1br6pxz4qzqxwg0rwnc16z5y0v18sw41-gfortran-debug-7.4.0-armv6l-unknown-linux-gnueabihf.drv' failed with exit code 2 - how do I find the expression in nixpkgs for this drv?
<{^_^}>
[nixpkgs] @jabranham opened pull request #53414 → R: update CRAN and BIOC package sets → https://git.io/fhOSO
<mabel>
anyone use spacevim?
<mabel>
I'm having some trouble getting it to autoload in nvim
<eyJhb>
Any good ways to make sure Dropbox starts on boot? I have tried a one-shot user systemd service, but doesn't seem to work, even though it runs
mithril has joined #nixos
<{^_^}>
[nix-mode] @etu closed pull request #67 → Remove line that caused tests to not indent at all in the tests and fix regression → https://git.io/fhO0I
<etu>
gchristensen: yeah, dropped the wrong branch :(
<gchristensen>
it happens :)
<etu>
but yes, master is broken.
dslegends has quit [Quit: dslegends]
<etu>
gchristensen: But good news, I added an ert-test of https://github.com/NixOS/nix-mode/issues/62 and a one-line fix and with all the tests so far my fix seems to work for that. But we need more tests. Way more tests.
<{^_^}>
nix-mode#62 (by grahamc, 1 day ago, open): nix-indent-line gets confused by a comment containing "in"
frigate_freedom has left #nixos [#nixos]
<gchristensen>
wow!
<gchristensen>
great :D
<gchristensen>
I solemnly swear to submit bug reports and test cases.
<jabranham>
What's the easiest way of changing the src for a derivation?
__monty__ has quit [Quit: leaving]
<ldlework>
override or overrideAttr ?
<ldlework>
i'm guessing
<ldlework>
kinda
<ldlework>
educated guess :)
zgrep has quit [Quit: This is me *really* leaving.]
<mgdm>
Hey. I'm installing NixOS on a machine, basically following gchristensen's guide at https://grahamc.com/blog/nixos-on-dell-9560 to do full disk encryption, but when I get to rebooting, I type in my passphrase and then the root device doesn't appear
<mgdm>
anyone seen that before?
<Church->
gchristensen: Well? Have you? :p
<ldlework>
lol
<gchristensen>
I wish I did, or I'd have helped mgdm in my other chat with them :)
<mgdm>
hehe
<mgdm>
I've not typoed the /dev/disk/by-uuid/* path, either...
<Church->
Oh fde
<Church->
Nah I'm good
zgrep has joined #nixos
eadwu has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej_ has joined #nixos
<etu>
mgdm: on my system I usually need to add something like: boot.initrd.luks.devices."disk".device = "/dev/disk/by-uuid/BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB"; where that uuid is a symlink to /dev/sda2 which is my luks device of my root device
<endformationage>
Sniffing http2 headers in Wireshark seems to require external nghttp2 package, anyone have idea how to add libnghttp2 to nixos' wireshark?
<Church->
endformationage: Overlay
<mgdm>
etu: I think I've been a clown and used the 'unlocked' uuid instead of the correct one in boot.initrd.luks.devices
iqubic has joined #nixos
<mgdm>
they have the same first couple of characters...
<gchristensen>
:D
<etu>
mgdm: bad luck with rngesus there then
<gchristensen>
haha
<mgdm>
:D
m15k has quit [Ping timeout: 256 seconds]
<mgdm>
rngesus is a new one on me, haha
the-kenny has joined #nixos
the-kenny has quit [Client Quit]
the-kenny has joined #nixos
the-kenny has quit [Client Quit]
the-kenny has joined #nixos
<{^_^}>
[nixpkgs] @leenaars opened pull request #53422 → pythonPackages.python-snappy: init at 0.5.3 → https://git.io/fh3fe
<mgdm>
Och I did the same for the swap, I'm an idiot
<jabranham>
Do I need to specify the branch somehow when using fetchGit? I'm getting "fatal: not a tree object" from git even though I know I'm putting in the right rev
dslegends has joined #nixos
<gchristensen>
mgdm: all good now? :)
<gchristensen>
jabranham: yes, specify rev and ref
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « python37Packages.django_redis: 4.9.1 -> 4.10.0 »: https://git.io/fh3JU
<luigy>
adisbladis: thanks for the the suggestion of Xvfb but I didn't get it to work for me in a sandbox build. I did get a workaround in the end though by setting this `FONTCONFIG_PATH=${fontconfig.out}/etc/fonts chromium ...` in case anyone else runs into this
<mabel>
how do I get the rev and sha256 values for fetchFromGithub?
<etu>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<mabel>
ahh, okay. also apparently there's nix-prefetch-git?
<etu>
yeah, I usually go tofu. And I imagine that many go that route :)
<LnL>
fetchFromGitHub doesn't use git in most cases so you'd probably end up with a wrong hash
<gchristensen>
in a couple of cases, a prefetcher will give you a different hash than nix would -- and then you find out later
<LnL>
exactly I dislike any of the tools that don't use the expression, in which case you need a temporary hash anyway :)
eadwu has quit [Ping timeout: 246 seconds]
simukis has quit [Read error: Connection reset by peer]
<hexa->
adisbladis: hey, I see you took care of the pulseaudio-modules-bt fork with ldac support. I tried installating it as described in the wiki, but extraModules does exist below hardware.pulseaudio, at least not on 18.09. Any idea how to set it up?