<thomashoneyman>
i *think* i'm doing something quite trivial -- this is the generated nginx.conf with some standard settings elided: https://hastebin.com/qiduriyefe.php
<thomashoneyman>
...and this one has all the SSL stuff stripped out and just the bits that are important
<{^_^}>
{ available = <CODE>; description = "A vi clone for Unix and other operating systems"; homepage = "http://elvis.vi-editor.org/"; license = <CODE>; name = <CODE>; outputsToInstall = <CODE>; position = ...
<dalto5>
elvis is perfect, thanks for the help!
inferencerules has quit [Killed (verne.freenode.net (Nickname regained by services))]
inferencerules has joined #nixos
inferenc1rules has joined #nixos
<{^_^}>
[nixpkgs] @Ma27 pushed to master « swaylock-fancy-unstable: init at 2019-03-31 »: https://git.io/JveAX
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JveA1
<inferencerules>
is there a means of easily resolving package conflicts? just got [ collision between `/nix/store/1gv0ch6jmvq87k8jagpccwfqn8jxscc3-texlive-combined-2018/share/texmf-var/ls-R' and `/nix/store/v35a8ffynffa60k1wmf1xv1mky8k7058-texlive-combined-full-2018/share/texmf-var/ls-R' ] and this sort of thing happens pretty frequently. i usually nix-env -e the offender (all my packages are declared through
<inferencerules>
home-manager)
<inferencerules>
this is during a nixos-rebuild --upgrade
<inferencerules>
in this case i'm not even sure which one is the older, though i suspect the former since i'm trying to pull in texlive-combined.scheme-full right now, so a way of reliably determining that would also be great
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JveAF
inferenc1rules has quit [Ping timeout: 258 seconds]
inferenc1rules has joined #nixos
inferencerules has quit [Ping timeout: 240 seconds]
inferencerules has joined #nixos
h0m1 has quit [Ping timeout: 260 seconds]
Guest92090 has joined #nixos
h0m1 has joined #nixos
syzygyzer has joined #nixos
<syzygyzer>
i have a really simple question. i am learning how to split my configuration.nix file for NixOS into multiple modules. right now i am trying to just put environment.systemPackages in a separate file. for a few of the packages i use the unstable version, with the alias unstable. defined in configuration.nix in the let { }; statement. how can i
<syzygyzer>
forward this variable to my packages.nix?
<clever>
syzygyzer: one option is to use nixpkgs.overlays to create a pkgs.unstable
viric has quit [Read error: Connection reset by peer]
viric has joined #nixos
<syzygyzer>
oh yeah. actually that reminds me that i had read about someone who used a set of swappable overlays for basically their entire system config. maybe i should learn to do that instead of simply importing the list of packages
<syzygyzer>
thanks that should be enough for me to get started
<thomashoneyman>
i have hydra running on a server with listenHost = 127.0.0.1 and port = 3000, and a nginx configuration with virtualHost."hydra.mydomain.com" = { location."/".proxyPass = "127.0.0.1:3000" }
cartwright has quit [Remote host closed the connection]
<thomashoneyman>
the nginx logs show that a request to hydra.mydomain.com attempts to connect to http://127.0.0.1:3000
cartwright has joined #nixos
<thomashoneyman>
but alas it is refused: error connecting to upstream
<thomashoneyman>
ie. connection refused, code 111
<thomashoneyman>
anyone know of any special Hydra configuration necessary to make this work?
<thomashoneyman>
Hydra is definitely running -- checked with journalctl
johnw has quit [Remote host closed the connection]
das_j has quit [Remote host closed the connection]
Scriptkiddi has quit [Remote host closed the connection]
das_j has joined #nixos
Scriptkiddi has joined #nixos
<thomashoneyman>
i also have, in the nixos config, networking.firewall.allowedPorts = [ ... config.services.hydra.port ];
<gchristensen>
nginx needs to pass the Host header
smolck has joined #nixos
<thomashoneyman>
ie. proxy_set_header Host $host;
<thomashoneyman>
i'm using `recommendedProxySettings`, which i hope doesn't interfere
<thomashoneyman>
i've set that in extraConfig for the virtualHost."hydra.mydomain.com" record
<thomashoneyman>
redeploying to check it out
bhipple has joined #nixos
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 265 seconds]
dsx has quit [Quit: dsx]
<thomashoneyman>
gchristensen: still happening, unfortunately
xkapastel has quit [Quit: Connection closed for inactivity]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<thomashoneyman>
sorry, i've got to run for dinner, but i'll continue exploring the possible memory issue
<thomashoneyman>
thanks so much for the help!
<smolck>
Hello! So I'm interested in switching to NixOS from Arch Linux, and I was wondering about the guide at https://nixos.org/nixos/manual/index.html#sec-installing-from-other-distro I want to keep everything in my /home directory (which is in a separate partition) intact. Do I just follow the directions there to install NixOS in-place, or is there
<smolck>
something else I should know?
<smolck>
(to prevent my /home directory from being deleted)
<clever>
smolck: nixos doesnt automate partitioning or formatting
drakonis has joined #nixos
<clever>
smolck: so when the directions tell you to partition the disk up and format everything, just mount your existing home to /mnt/home instead
<smolck>
clever: And that's it? I can install NixOS like normal?
<clever>
smolck: yep
<smolck>
Great!
<smolck>
Thanks!
<smolck>
However, I'm wondering about booting. I use systemd boot ATM, will that "just work"?
<jackdk>
is there a way I can make nix-build emit the `patch` commands used during a build? I'm trying to apply a patch to a single-file src
<clever>
smolck: nixos has both systemd-boot and grub, and the install process will update the efi vars to point to whichever you enabled
<smolck>
clever: So I just mount my current boot partition during the install?
<clever>
smolck: probably better to use a 2nd /boot for nixos, efi allows multiple boot partitions
bhipple has quit [Remote host closed the connection]
<smolck>
clever: I'm alright with overwriting my current /boot, since I'd like to overwrite the Arch system.
<smolck>
I'd like to fully switch over to NixOS, just keeping my current /home
inferenc1rules has quit [Ping timeout: 268 seconds]
<smolck>
All I'd have to do is just mount my current home partition as you said, and then I could re-format the other partitions, and continue with the install as normal, right?
<clever>
smolck: yep
<clever>
smolck: you will want to mount the root to /mnt before you mount home to /mnt/home
inferencerules has joined #nixos
azdle has quit [Remote host closed the connection]
<smolck>
clever: Great, thanks!
<smolck>
As for /home, any reason I should back it up before doing the install you think?
<clever>
smolck: should be completely safe
<clever>
as long as you dont delete the wrong partition or mkfs the wrong device
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<smolck>
clever: Okay, that's what I thought, thanks! That's a *really* easy install (compared to Arch from nothing ;) )
<DigitalKiwi>
it should be safe as long as you don't do these things which are not safe
<clever>
DigitalKiwi: but those are more in terms of user error, rather then an os installer trying to wipe everything on its own
<DigitalKiwi>
clever: i git bisect nixpkgs :D
<DigitalKiwi>
for the second time!
<DigitalKiwi>
i even made a script
takeda has joined #nixos
<jackdk>
I'm trying to package a script which I download with fetchurl, as in my mkDerivation's src = fetchurl {...} . I want to apply a patch to this, but when I list the patch in patches = [ ... ] I get "can't find file to patch at input line 3". How can I start debugging this?
inferencerules has quit [Ping timeout: 268 seconds]
<DigitalKiwi>
i'll find out in the next 3 minutes though
<clever>
DigitalKiwi: looks like its mostly a style change, having it in all-packages.nix would make it simpler to build it on another version without having to edit the default.nix
<inferencerules>
running nixos-rebuild --upgrade boot --show-trace -vv, the thrown error occurs while evaluating config.system.build.toplevel, encountering the infinite recursion at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:163:28 which is a builtins.listToAttrs call over module arguments
<inferencerules>
i'm likely missing something quite straightforward, like a self: super: or whatever, to stop evaluating the pkgs list, but haven't found docs about doing specifically this
<inferencerules>
ryantm: pinging you since you suggested managing the imports this way - any idea?
<clever>
inferencerules: imports can never depend on pkgs
<clever>
inferencerules: one option is to do `pkgs2 = import <nixpkgs> {};` and then use `pkgs2.fetchFromGitHub
fusion809 has quit [Remote host closed the connection]
palo1 has joined #nixos
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
[Leary] has joined #nixos
Lears has quit [Read error: Connection reset by peer]
<DigitalKiwi>
lovesegfault: that actually did help thanks
<DigitalKiwi>
lovesegfault: at first i had my doubts
<zeta_0>
i am getting a broken package error but i have no idea what package this is? error: Package ‘vinyl-0.11.0’ is marked as broken, refusing to evaluate
ddellacosta has quit [Ping timeout: 265 seconds]
<inferencerules>
clever: that helped, now it's just throwing an error about not requiring the github rev. thanks!
<zeta_0>
srhb: i commented out all the packages that it told me were broken, but i don't know what package is causing this package break error?
<srhb>
zeta_0: ihaskell itself depends on vinyl, at least transitively, so commenting out the additional packages won't help.
<srhb>
Hm, is that right though..
mexisme has joined #nixos
<thomashoneyman>
clever: hell yea!
<thomashoneyman>
bumping swap worked
<zeta_0>
srhb: ihaskell works fine, i use it in emacs, but now that i tried to install some ihaskell packages, that's when i started getting these broken pkg errors?
<thomashoneyman>
wow, there's little chance i would have figured that out on my own
<clever>
thomashoneyman: bumping ram should also work, if you find the swap doesnt perform enough and are willing to up the machine size
<thomashoneyman>
clever: thanks for saving me time
<srhb>
zeta_0: Well, comment out until it works, bisecting until you know which one/ones are the culprit.
<thomashoneyman>
clever: this is eventually going to be a teaching tool, so i'd like to keep it as small and cheap as possible
<srhb>
zeta_0: The error you pasted was caused by broken vinyl, so you could also just fix that.
<thomashoneyman>
clever++
<{^_^}>
clever's karma got increased to 302
<thomashoneyman>
seriously, thank you for your help over the past few days, it's been a lifesaver
<clever>
thomashoneyman: have you seen my test-hydra-locally.nix?
<zeta_0>
ok i'll comment out random ihaskell pkgs to see if that fixes it
<thomashoneyman>
clever: no, but it's exactly what i'm going to do next
<thomashoneyman>
that's why i was trying to do the subdomain
<thomashoneyman>
so deploying to a vm == deploying to ec2
<clever>
thomashoneyman: basically, nix-build test-hydra-locally.nix && ./result, then browse http://localhost:8080/
<zeta_0>
is there a way to track where exactly that broken vinyl pkg came from?
inferencerules has quit [Ping timeout: 240 seconds]
<clever>
thomashoneyman: this is also reusing the hydra config that actually gets deployed with nixops, and it just has a few mkForce entries, to tweak it
<clever>
thomashoneyman: ssl and acme wont work without being publicly reachable for example
<zeta_0>
that sucks that a bunch of these ihaskell pkgs are broken
inferenc1rules has quit [Ping timeout: 268 seconds]
<thomashoneyman>
clever: that's awesome
<srhb>
zeta_0: From your pkgs
<thomashoneyman>
i'll dive into this tomorrow
<thomashoneyman>
thanks again!
<srhb>
zeta_0: As in, whatever nixpkgs channel you're using.
<infinisil>
I think I might look into making imports be able to depend on pkgs
<infinisil>
So many people are having issues with infinite recursion because of this
<infinisil>
But it would be possible to change the module system to not do that (by just not applying overlays and such for figuring out the imports)
zeta_0 has quit [Remote host closed the connection]
<inferencerules>
so far the imports/general modification of the pkgs set stuff has been the most difficult and confusing for me, for sure.
zeta_0 has joined #nixos
rembo10 has joined #nixos
<DigitalKiwi>
Blink works better when you have a good LED
<inferencerules>
i would like to start contributing to the documentation and this seems like an obvious starting point
<mojjoo>
Hi. I'm trying to setup a (public readable) cachix cache. Added it to `nix.binaryCaches` in my nixos config. `warning: don't know how to open Nix store 'myusername.cachix.org'`
<DigitalKiwi>
lovesegfault: ty :D
<lovesegfault>
DigitalKiwi: No worries :)
<DigitalKiwi>
first time using arduino
<DigitalKiwi>
and of course i have to make everything harder and skip straight to using haskell :P
<zeta_0>
well it turns out the pkg `ihaskell-widgets` was causing the broken pkg error, now it rebuilds fine with the other ihaskell pkgs
<zeta_0>
srhb: ^
<srhb>
zeta_0: Great :)
<infinisil>
mojjoo: You can just use `cachix use myusername`
<DigitalKiwi>
ok so what's the right way to set these environment vars?
<DigitalKiwi>
with a nix-shell -p with python3Packages.pyserial I can do AVR_TOOLS_DIR=/nix/store/dhmwvxl1wd6s3g0d70sf3gyircdqhvi9-arduino-1.8.9/share/arduino/hardware/tools/avr/ ARDUINO_DIR=/nix/store/dhmwvxl1wd6s3g0d70sf3gyircdqhvi9-arduino-1.8.9 AVRDUDE_CONF=/nix/store/8rzcq3pzksiklsyj88gv5p3729n7jsyq-avrdude-6.3/etc/avrdude.conf ./make examples/Blink upload
<zeta_0>
later everyone
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
vld has joined #nixos
<DigitalKiwi>
Synthetica++
<{^_^}>
Synthetica's karma got increased to 6
vld has quit [Ping timeout: 260 seconds]
inferencerules has quit [Ping timeout: 268 seconds]
inferencerules has joined #nixos
inferenc1rules has quit [Ping timeout: 265 seconds]
knupfer has joined #nixos
inferenc1rules has joined #nixos
inferencerules has quit [Client Quit]
takeda has quit [Ping timeout: 265 seconds]
inferenc1rules has quit [Ping timeout: 268 seconds]
inferencerules has joined #nixos
tpham has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
<tpham>
I have this nix script: https://pastebin.com/Bd4GgndC . When I run nix, it does not run configure scripts, build and install script. How can I fix this.
<tpham>
Another question, I want to use version as git tag, for example "v4.1.0" instead of the hash, how can I do that.
drakonis has quit [Quit: WeeChat 2.6]
<infinisil>
tpham: I believe with `ref = "v4.1.0"` instead of `rev = <hash>`
rogue_koder has quit [Remote host closed the connection]
<tpham>
And how can I clone recursively. The `fetchgit` has deepClone parameter but `fetchGit` does not have :(
<clever>
tpham: only pkgs.fetchgit has a fetchSubmodules = true;
<clever>
submodules dont work on builtins.fetchGit
<infinisil>
tpham: And then you can just use pkgs.fetchFromGitHub, which will be much faster than pkgs.fetchgit
philr has joined #nixos
knupfer has quit [Ping timeout: 245 seconds]
smatting has quit [Ping timeout: 260 seconds]
inferencerules has quit [Ping timeout: 260 seconds]
inferencerules has joined #nixos
<tpham>
I tried fetchFromGitHub, it shown me the error: "fetchurl requires a hash for fixed output derivation"
<mojjoo>
swapon /dev/swapfileswapon: /dev/swapfile: swapon failed: Invalid argument-> any ideas? swap file exists and was prepared with mkswap
<infinisil>
tpham: Ah yeah you need to give it a sha256
<tpham>
How can I get the sha256
<infinisil>
,tofu tpham
<{^_^}>
tpham: 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. See: tofu-vim
kenshinCH has joined #nixos
<tpham>
It worked. Thank you both. NiX is quite difficult for new user '=D
<craige>
If I run `nix-shell -p myPackage` I get an environment exactly as I want it. What I'm struggling to work out though, how to have the `-p myPackage` package included in the service I'm defining. I've been wading through the manal and nix packages but that env dependency remains unclues to me. Thanks :-)
<craige>
s/unclues/unclear but I it still works :-D
inferencerules has quit [Ping timeout: 268 seconds]
<infinisil>
craige: A systemd service?
<craige>
Yes.
<infinisil>
craige: Add the package here: systemd.services.<name>.path
<infinisil>
Then it will be in the PATH env var of the service, so you can call binaries from it
<craige>
Ah, I was doing that and the service reported that it could not find it's dep. So at least I was originally close. I'll got back to that and revisit what I was doing there. thanks infinisil :-)
<craige>
infinisil++
<{^_^}>
infinisil's karma got increased to 177
captn3m0 has quit [Ping timeout: 268 seconds]
<infinisil>
Well nix-shell -p isn't entirely the same as that. *.path only sets PATH, but nix-shell -p does a bunch more things
<infinisil>
Hard to say what's needed without the error though
<infinisil>
Or any other information
knupfer has joined #nixos
<craige>
I was seeking to find the right path, turns oput I was on it.
<craige>
more info though.
mexisme has quit [Ping timeout: 246 seconds]
inferencerules has joined #nixos
<craige>
It's a python service that requires another python package. with path set to pkgs.python3Packages.watchdog, I still get: ModuleNotFoundError: No module named 'watchdog'
<craige>
(which is why I started questioning how I was including it)
knupfer has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @veprbl opened pull request #77359 → blender: fix on darwin → https://git.io/Jvvf3
growpotkin has joined #nixos
<tpham>
Can I specify target in mkDerivation, for example: I don't want to build the test.
__monty__ has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.7]
mexisme has joined #nixos
otulp has quit [Ping timeout: 258 seconds]
m0rphism has joined #nixos
hyper_ch2 has joined #nixos
chatmaster5000[m has joined #nixos
<infinisil>
craige: Ah I see, that's handled through PYTHON_PATH or something like that. However I think the best and most standard way is to wrap the python package itself, such that just running the binary directly will work
mexisme has quit [Ping timeout: 260 seconds]
<infinisil>
E.g. with buildPythonPackage
<craige>
Thanks infinisil - I'll pursue those options.
inferencerules has quit [Read error: Connection reset by peer]
<hyper_ch2>
I have a really strange issue with nixos currently. Grub claims it can't find new kernel 5.4.something for (almost) latest git to boot.....
<Dandellion>
I'm splitting up my nixos configuration, but I can't figure out how to pass a value to a submodule.
<Dandellion>
like how do I pass a variable through the imports list?
<infinisil>
Dandellion: While oftentimes not ideal, you can do `imports = [ (import ./other-module.nix "some-argument") ]`
mexisme has joined #nixos
<infinisil>
The items in imports can either be paths or expressions
<infinisil>
A better and more flexible alternative would be to define your own option in other-module.nix, so you can do `imports = [ ./other-module.nix ]; some.option = "some-argument";`
<tpham>
I have this nix script: https://pastebin.com/q4TeCn7f .When compile the program, gcc still give me error 'catch.hpp' file not found. how can `catch` include directory to CPLUS_INCLUDE_PATH env in the derivation function.
<craige>
infinisil++
<{^_^}>
infinisil's karma got increased to 178
<craige>
With your tip, infinisil, I went back and revisited some packages I'd already looked at and found the solution. Thanks! Made my day \o/
<infinisil>
:D
infinee has quit [Quit: WeeChat 2.6]
<Dandellion>
infinisil: thanks, I guess what I'm looking for is some way to just do { lib, options, pkgs, foo, ... } where foo is the stuff I want to pass down all the submodules. But the module option would work too! tyvm
<infinisil>
Dandellion: You can do that through setting the _module.args.foo option, however note that all options you define are also available through the `config` argument, e.g. `{ config, lib, ... }: { options.foo = lib.mkOption { ... }; config.something = config.foo; }`
<mojjoo>
trying to start a pure nix-shell with an additional package... `nix-shell --pure -p myeditor default.nix` does not do as `-p` and <path> are XOR...
hyper_ch2 has quit [Remote host closed the connection]
vidbina_ has quit [Ping timeout: 268 seconds]
sb0 has quit [Quit: Leaving]
<vxid>
Hi everyone. I am trying to package a pam module and I am stuck in the last part which is installing the module in the correct directory. Any pointers? Current file is here: https://pastebin.com/3Kh9hjqi
Neo-- has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
Avaq has quit [Ping timeout: 260 seconds]
bvdw has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @meatcar opened pull request #77364 → nixos/powertop: wait for hardware to initialize → https://git.io/JvvLJ
o1lo01ol1o has joined #nixos
inferencerules_ has joined #nixos
rleppink has joined #nixos
mojjoo has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
marusich has joined #nixos
marusich has quit [Remote host closed the connection]
vxid has quit [Remote host closed the connection]
chimay has joined #nixos
inferencerules has quit [Ping timeout: 268 seconds]
inferencerules has joined #nixos
magnetophon has quit [Ping timeout: 268 seconds]
mojjoo has joined #nixos
<mojjoo>
`Package ‘vscode-with-extensions-1.41.0’ in /nix/store/199zff8... has an unfree license (‘unfree’), refusing to evaluate.` <<< Does anyone know why this appears? I've set `{ nixpkgs.config.allowUnfree = true; }` and it worked for normal `vscode`
<Shoubit>
mojjoo, how are you evaluating it? With nix-env or nix-build as a user?
<mojjoo>
`nixos-rebuild`
kahiru has quit [Ping timeout: 265 seconds]
<rleppink>
Are you getting that package from a different channel perhaps? Like nixpkgs-unstable?
dalto5 has quit [Remote host closed the connection]
<rleppink>
mojjoo: Notifying ^
kahiru has joined #nixos
jco has joined #nixos
mexisme has joined #nixos
Avaq has joined #nixos
<mojjoo>
^ works now.. I think the issue was that I imported it anew from <nixpkgs> .. worked with passing down `pkgs`
<Avaq>
Hi folks! I've had this "error(s) occurred while switching to the new configuration" warning for some time now when issueing 'nixos-rebuild switch', and I was wondering if anyone knows what's going on, whether it's important, and how I can fix it.
<{^_^}>
#68972 (by schneefux, 16 weeks ago, closed): gitlab module unsafe path transition after upgrade to 19.09
knupfer has quit [Ping timeout: 240 seconds]
siiky has quit [Ping timeout: 260 seconds]
<Avaq>
emmanuelrosa[m]: Thank you. That did help. Somehow my /var/log directory is owned by user 106, which is not even listed in /etc/passwd nor /etc/group.
<Avaq>
I think CouchDB might've done that at some point. The only other thing owned by user 106 is /var/log/couchdb.log, and CouchDB has been uninstalled in the meantime.
<gchristensen>
adisbladis: did you try enabling pie by default?
<Avaq>
Changing ownership of /var/log back to root:root made the error on nixos-rebuild go away. :)
hyper_ch2 has joined #nixos
<emmanuelrosa[m]>
I'm glad that worked, @Avaq
o1lo01ol1o has joined #nixos
cosimone has joined #nixos
karetsu has joined #nixos
tpham has quit [Remote host closed the connection]
<rakula>
I wonder if someone could help out with jupyterhub >> there is quite a bit of instruction as to how to get jupyterlab with 'batteries', projects like jupyterWith, or the discourse chat on jupyter with 'batteries' included.
<rakula>
However, what I need is the jupyterHUB
<rakula>
Now, this is packaged under nixpkgs.Python37Packages.jupyterhub
kfound has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « cimg: 2.7.5 -> 2.8.0 (#76230) »: https://git.io/JvvqZ
vld has joined #nixos
<rakula>
However, installing nixpkgs.Python37Packages.jupyterhub is not actually useful in itself
<rakula>
For one, there is no kernel, so trying to launch Python3 kernel gives me
<rakula>
No module named ipykernel_launcher
<makefu>
hi, anyone familiar with packaging nodejs and could help me out with https://github.com/moretea/yarn2nix/issues/124 ? i am essentially trying to package zigbee2mqtt, however some bindings are not created. i am willing to test any other something2nix package out as long i get a working application in the end :)
<{^_^}>
moretea/yarn2nix#124 (by makefu, 3 days ago, open): Bindings for nodejs package not built
<cmacrae>
Hey o/ I have some expressions I wrote for some DHCP & DNS config generation. Would any lovely people who're a bit more experienced than I am mind having a look to see if I could write these better? Asking mostly with a desire to learn :) Have chucked it into an example gist here: https://git.io/Jvvq6
ciaran0 has quit [Read error: Connection reset by peer]
<nilsirl[m]>
I just updated my nixos (`nixos-rebuild switch --upgrade`) and I only have firefox 72.0 not 72.0.1
snajko has joined #nixos
magnetophon has quit [Ping timeout: 258 seconds]
<snajko>
I have a small sets of scripts to configure my server, I'm looking for a best way to configure "global" varialbes, any good examples for that? For example I would like to have a global router ip as avariable and be able to include it from all files
<snajko>
tried to setup config.myrouter = "ip" in let in but no go
<snajko>
what is the best way to achive that?
<Shoubit>
nilsirl[m], 72.0.1 hasn't been merged to master yet so it won't be in any channels
inferencerules has quit [Ping timeout: 258 seconds]
rogue_koder has joined #nixos
inferencerules has joined #nixos
<pbogdan>
72.0.1 is in master and 19.09, not necessarily in any of the channels yet though
sigmundv_ has quit [Ping timeout: 258 seconds]
inferencerules has quit [Ping timeout: 260 seconds]
inferencerules has joined #nixos
<gchristensen>
besides, we need to get 72.0.2
cosimone has quit [Quit: Terminated!]
__monty__ has quit [Quit: leaving]
cosimone has joined #nixos
ng0_ has joined #nixos
ng0_ has joined #nixos
ng0_ has quit [Changing host]
ThatDocsLady has joined #nixos
zarel has quit [Ping timeout: 240 seconds]
magnetophon has joined #nixos
<{^_^}>
[nixpkgs] @ktrsoft opened pull request #77379 → Add avro-python3 package to nixpkgs → https://git.io/JvvOJ
ThatDocsLady_ has quit [Ping timeout: 252 seconds]
ng0 has quit [Ping timeout: 240 seconds]
zarel has joined #nixos
inferencerules has quit [Read error: Connection reset by peer]
sigmundv_ has joined #nixos
fusion809 has joined #nixos
<meatcar>
Is there any way to get nix-env to respect NIX_PATH, and not use nix-channels || ~/.nix-expr at all?
magnetophon has quit [Ping timeout: 240 seconds]
domogled has quit [Quit: domogled]
<meatcar>
specifically I'm pinning nixpkgs to NIX_PATH, but things like `nix-env -q` still rely on a different version of nixpkgs set through nix-channels.
<pbogdan>
right, doesn't mean it's in a channel yet
Avaq has quit [Quit: Leaving.]
<gchristensen>
I think it is released to 19.09-small, but that channel doesn't wait for firefox to build, so it may not be precompiled
<sphalerite>
it's definitely available with binaries on nixos-unstable-small
sigmundv_ has quit [Ping timeout: 240 seconds]
<scheming_around>
Is <nixpkgs> a special module defined by the nix language?
Naptra has quit [Quit: Leaving]
<Henson>
scheming_around: I think looks in the NIX_PATH environment variable for "nixpkgs" and loads whatever that points to.
<simpson>
Surprisingly, no. Any name within <> is defined in the Nix path environment variable. Check your $NIX_PATH to see where it points to.
<Shoubit>
^, which means you can e.g. have <unstable> and the like if you add the channel under that alias.
<scheming_around>
Hmm, my NIX_PATH does not have nixpkgs defined
<LnL>
NIX_PATH entries can either be name=/path or /path, for the second case <foo> will resolve to /path/foo (if that exists)
<scheming_around>
Hmm, don't have a /path/nixpkgs entry either
<scheming_around>
This is my NIX_PATH: darwin-config=~/.nixpkgs/darwin-configuration.nix /nix/var/nix/profiles/per-user/root/channels ~/.nix-defexpr/channels
<LnL>
this will show you wat it resolves to: nix-instantiate --find-file nixpkgs
<scheming_around>
Aha, the nixpkgs channels was set under the root user
<ryantm>
inferencerules_: What clever said, and you change lines like <nixos-hardware/lenovo/thinkpad/x1/6th-gen> to nixos-hardware. You probably need to do something like: (nixos-hardware + "/lenovo/thinkpad/x1/6th-gen")
<LnL>
that's the default with a daemon install IIRC
<{^_^}>
[nixpkgs] @fpletz pushed commit from @Ma27 to release-19.09 « matrix-synapse: 1.7.3 -> 1.8.0 »: https://git.io/Jvvsl
judson has joined #nixos
civodul has joined #nixos
<Raito_Bezarius>
Now that SHA1 is being more and more unsafe (if not completely unsafe), is there any plan in the Nix(OS) ecosystem to move away from it? (any issue/docs/RFC)
<{^_^}>
#77238 (by grahamc, 2 days ago, open): Get rid of sha1 for fixed-output derivations in nixpkgs
smolck has joined #nixos
sigmundv_ has quit [Ping timeout: 268 seconds]
alex`` has quit [Quit: WeeChat 2.7]
alexherbo2 has quit [Remote host closed the connection]
<smolck>
If I am installing NixOS, and I mount an already-partitioned /home directory (with data in it), is there any reason running `nixos-install` would delete data from that directory (/mnt/home)?
<simpson>
Maybe if you're lustrating, or you mismounted stuff? The typical install doesn't do that, I think. What's gone wrong?
<niso>
smolck: i don't think so - however the question implies that you should do a backup.
<Raito_Bezarius>
Taneb: thanks
<smolck>
simpson: Nothing's gone wrong, I'm just verifying.
<smolck>
niso: That's a good point ;) I probably will do a backup, just to be safe.
mexisme has joined #nixos
<smolck>
I'm not worried about an accidental `mkfs.ext4` on the wrong partition, I just want to make sure I don't presume `nixos-install` cleans out /home or something.
<smolck>
(or that it doesn't, when it does)
<smolck>
I figured it did nothing like that, there's no reason for it to do so, I just wanted to verify
<buckley310>
how much ram do you need for `boot.tmpOnTmpfs` to not cause build issues generally? just wondering, I don't have it enabled currently.
erasmas has joined #nixos
<buckley310>
or does anyone know if boot.tmpOnTmpfs should work with 8GB ram?
<qyliss>
depends what you're building
mexisme has quit [Ping timeout: 260 seconds]
kenshinCH has quit [Ping timeout: 258 seconds]
<buckley310>
just a regularish desktop config on the unstable channel
<buckley310>
i guess the answer is try it and see if it breaks lol
smolck has quit [Remote host closed the connection]
<makefu>
buckley310: i never hady any issues with my /tmp running anywhere near full with tmpOnTmpfs. it may be possible that you run enormous builds on your computer which may live in /tmp for the time
<LinuxHackerman>
yeah you don't want to build firefox on tmpfs for example
<buckley310>
dont want to build firefox at all o.o
<cransom>
i had hydra building AMI images (being 2-4g) and a couple concurrent builds would fail on a 16g machine with tmponTmpfs
<buckley310>
oh yeah, if i ever build an iso that would be in tmp :\
chloekek has quit [Quit: WeeChat 2.6]
<buckley310>
well thanks. maybe ill try it and see how far i get. as long as a regular system rebuild doesnt cause issues it can always be disabled again.
<amanjeev>
Whats the way to check the linux kernel version currently in use? I have not changed anything and I am running NixOS 19.09
<buckley310>
amanjeev `uname -a`
<amanjeev>
thanks!
<{^_^}>
[nix] @yorickvP opened pull request #3307 → builtins.fromJSON: use nlohmann/json parser instead of custom parser → https://git.io/JvvGL
<amanjeev>
Is there a roadmap to move to kernel 5?
<cransom>
buckley310: at worst, you may have a build failure. it's possible that a retry would succeed since it's filling less /tmp, but not a big loss.
<qyliss>
No roadmap, because there's not much to be done
<Taneb>
amanjeev: when there's a longterm support version
<buckley310>
amanjeev by default? because you can manually enable kernel 5 today
<Taneb>
(latest longterm support is 4.19)
takeda has joined #nixos
<qyliss>
Yeah, we're just waiting for upstream, and then it'll be a switch over.
<{^_^}>
[nixpkgs] @flokli pushed 2 commits to release-19.09: https://git.io/JvvGY
<amanjeev>
Thanks you! Forgive me for my ignorance: What is upstream in NixOS' case?
<{^_^}>
[nixpkgs] @FRidh pushed 2 commits to release-19.09: https://git.io/JvvG3
<qyliss>
Upstream in this case is the kernel
chagra_ has quit [Ping timeout: 240 seconds]
civodul has quit [Ping timeout: 248 seconds]
<amanjeev>
Oh! So a stable kernel version would then initiate an update in NixOS. Is my understanding correct? I am not sure how linux kernel does these releases.
<amanjeev>
One more question, this is about packages: when do packages make it to stable from unstable generally? Is each package on its own timeline? Zulip chat is unstable right now.
<amanjeev>
BTW, I am absolutely in love with NixOS. Kudos to you all! I am really thinking of creating some packages that I cannot find inthe list right now.
<amanjeev>
So cool! I knew about the pinning but I was not sure to live on the edge. However, I am getting using to the idea of functional side and it helps ease my anxiety :)
<multun>
amanjeev: adding in new packages is super easy, if you've already done package management on other distros before you'll definitely fall in love with that part too
<multun>
(it needs a bit of getting used too though)
<amanjeev>
I do not have experience on any other distros.
erasmas_ has joined #nixos
<amanjeev>
I will give it shot!
ayerhart has quit [Read error: Connection reset by peer]
wildtrees has joined #nixos
snajko has quit [Remote host closed the connection]
wildtrees has quit [Max SendQ exceeded]
wildtrees has joined #nixos
ThatDocsLady_ has joined #nixos
erasmas has quit [Ping timeout: 268 seconds]
ThatDocsLady has quit [Ping timeout: 248 seconds]
<evanjs>
Oof. Looks like nixos-upgrade doesn't check for running `nix-build ... system` processes?
<evanjs>
Every few times I manually upgrade, it happens to be around the 6hr mark, which is when I have auto-upgrade scheduled for... I'm assuming that's one of the big factors contributing to these lock-ups :P
wildtrees has quit [Max SendQ exceeded]
wildtrees has joined #nixos
chagra_ has joined #nixos
johnw has joined #nixos
srid has joined #nixos
<srid>
nix just hangs when trying to fetch anything from channels. known issue?
dansho has joined #nixos
brightone has quit [Quit: brightone]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<aminechikhaoui>
and the kernel version in my case is 5.4.8
<wildtrees>
ok if config.nix isn't for installing packages in a nix install, where should I put package installs, configuration.nix was recommended to me, but I am not on nixos, and a find for it showed up empty handed, where should I manage user level package installs instead of using nix-env?
<symphorien>
,declarative
<{^_^}>
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
<wildtrees>
so I am going with this, how do I run the overlay for the first time, to get nix-rebuild command from it?
<wildtrees>
or how do I just execute overlays
mexisme has joined #nixos
vidbina_ has joined #nixos
Jackneill has quit [Remote host closed the connection]
FRidh has quit [Quit: Konversation terminated!]
mexisme has quit [Ping timeout: 248 seconds]
<chrisaw>
Has anyone managed to get ffmpeg using NVENC / NVDEC encoding/decoding? If I try and transcode a video with ffmpeg-full it complains about missing libcuda.so.1
burningserenity has joined #nixos
zebrag has joined #nixos
<Yaniel>
hmm, I seem to have misplaced my vulkan library
<Yaniel>
vkcube works but vulkaninfo segfaults with "ac_rtld error: !ehdr" "ELF error: Request error: not an ELF file"
inkbottle has quit [Ping timeout: 268 seconds]
<rycee>
wildtrees: I haven't followed your previous discussions but to get the Nix tools to use overlays (for your user) it's easiest to stick them in files and place them in `~/.config/nixpkgs/overlays`.
<wildtrees>
yea I have an overlay there, it seems to provide a nix-rebuild command, how do I get it to run for the first time to provide the reloading/rebuild command ?
waleee-cl has joined #nixos
drakonis has joined #nixos
MinceR_ has joined #nixos
smatting has quit [Ping timeout: 260 seconds]
MinceR has quit [Ping timeout: 268 seconds]
gxt has quit [Ping timeout: 240 seconds]
Chiliparrot has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 258 seconds]
<jared-w>
wildtrees: you'll want to set NIX_PATH manually when calling nix-rebuild
<jared-w>
(I think)
werner291 has quit [Read error: Connection reset by peer]
<Yaniel>
hmm interesting, erasing ~/.cache/radv_builtin_shadercache* made vulkaninfo work again
werner291 has joined #nixos
<wildtrees>
just read somehwhere I am not suppose to set nix_path for overlays :-/ , seems the curl install from the gist and the gist I was linked to are different!
apeyroux has quit [Ping timeout: 265 seconds]
<jared-w>
What I've done before is echoing $NIX_PATH and then adding :nixpkgs-overlays=/path/to/overlays/dir and running NIX_PATH=blabla nixos-rebuild switch
cjay- has quit [Quit: Reconnecting]
cjay- has joined #nixos
cjay- has quit [Client Quit]
<jared-w>
wildtrees: it's definitely hacky and you shouldn't set it 99% of the time, but if you need to reference a different nixPath before running nixos-rebuild (which updates nix path) then that's kinda your only option afaik
cjay- has joined #nixos
mexisme has joined #nixos
domogled has quit [Quit: domogled]
<wildtrees>
nix-rebuild is a script provided via the overlay I am using, not nixos-rebuild, i am using nix on ubuntu on windows, not nixos
<jared-w>
For reference, the reason I've done that is I have done this before: https://nixos.wiki/wiki/Overlays (which has a "system wide overlay" thing). Convenient, and lets things like 'nix search' see any overlays I have system wide
<jared-w>
but if you set that overlay and then later want to change the directory, it'll fail the first nixos-rebuild because of issues bootstrapping nix-path
<jared-w>
wildtrees: idk if you'd need to do that with `nix-rebuild`; I'm guessing it's just the "morally equivalent thing to nixos-rebuild but for non nixos systems"
mexisme has quit [Ping timeout: 260 seconds]
lovesegfault has joined #nixos
judson_ has joined #nixos
UndefinedIsNotAF has joined #nixos
chagra_ has quit [Ping timeout: 265 seconds]
judson__ has quit [Ping timeout: 268 seconds]
o1lo01ol_ has quit [Ping timeout: 240 seconds]
dsx has joined #nixos
judson__ has joined #nixos
judson_ has quit [Read error: Connection reset by peer]
<azazel>
manveru: ayt? I'm going to release an Elixir/Phoenix app and I'm looking if there's something that will simplify the work
inferencerules has joined #nixos
Guest92090 has quit [Ping timeout: 268 seconds]
<azazel>
manveru: I'm looking at your mixnix project... but it has a "fixes" branch with newer stuff?
inferencerules has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
Guest92090 has joined #nixos
Guest92090 has quit [Read error: Connection reset by peer]
<lovesegfault>
Has anyone seen this before: ln: failed to create symbolic link '/nix/store/wvvdwc09b2hk8dp6jhacz9g97s378z4r-user-units/gnome-session-failed.service': File exists
<lovesegfault>
I can't enable services.xserver.desktopManager.gnome3
lovesegfault has quit [Client Quit]
erictapen has joined #nixos
<inferencerules>
is there a way to see where options are defined? i'm getting an error that `The option `__ignoreNulls' defined in `/etc/nixos/configuration.nix' does not exist.` and it's in one of my imports somewhere
<inferencerules>
specifically my fetchFromGitHub imports
<tilpner>
inferencerules: Yes, import your system with nix repl, check the .options attribute of the result
srid has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @jonringer opened pull request #77386 → python2Packages.ihatemoney: fix python2 test deps → https://git.io/JvvCQ
vidbina_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @jonringer opened pull request #77387 → obexfs: add missing bluez dep → https://git.io/JvvWU
mehlon has joined #nixos
<inferencerules>
tilpner: that seems promising, but I get `error: cannot auto-call a function that has an argument without a default value ('pkgs')`; which maybe makes sense considering i'm trying to override the pkgs default here.
cjay- is now known as cjay
cjay is now known as cjay-
kenjis has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jonringer closed pull request #73870 → python3Packages.tensorflow-tensorboard: add wheel as runtime dep → https://git.io/Je6DY
inferencerules has quit [Quit: leaving]
inferenc1rules has quit [Remote host closed the connection]
<kuznero>
Hi all! Where is the KUBECONFIG file is located when services.kubernetes is enabled? I would like to kubectl something with my cluster... ;)
<zeta_0>
is it ok to have both a default.nix and shell.nix file when entering a nix-shell? the reason i ask this is because running: `cabal2nix --shell . > default.nix` removed everything in default nix and replaced it with something else, i thought it just adds the small changes you made to your .cabal file?
<kuznero>
zeta_0, if I understand correctly shell.nix generated might be referencing default.nix, thus it was overwritten (re-generated).
<zeta_0>
so what can I do so that my default.nix file does not get completely overwritten when i run: `cabal2nix --shell . > default.nix` ?
mehlon has joined #nixos
<{^_^}>
[nixpkgs] @kamadorueda opened pull request #77391 → pythonPackages.pylint-plugin-utils: init at 0.6 → https://git.io/JvvWK
inferencerules has joined #nixos
<zeta_0>
i'm confused?
<qyliss>
You're telling the shell to replace default.nix there
<{^_^}>
[nixpkgs] @jonringer pushed commit from @Scriptkiddi to master « pythonPackages.m3u8: init at 0.5.2 »: https://git.io/JvvWX
rogue_koder has joined #nixos
<kuznero>
And to answer my own question about how to find kubeconfig: inspect `systemctl status kubelet` and one of the args will be `--kubeconfig` that will reference the right file (or so it seems for now ;) )
<jared-w>
zeta_0: using > replaces, using >> appends to the file, although "appending" wouldn't make sense with cabal2nix
<jared-w>
Or, what I tend to do is cabal2nix . > name-of-pkg-and-version.nix and then reference that from default/shell as necessary
<qyliss>
How do I make a service restart when files in environment.etc are changed?
<jared-w>
(to be more specific, I tend to just use cabal2nix internally *inside* the default.nix/shell.nix so I don't actually need the autogenerated file on disk
<jared-w>
)
<kuznero>
And the final answer: `sudo KUBECONFIG=/etc/kubernetes/cluster-admin.kubeconfig kubectl get nodes -o wide`
<kuznero>
Without sudo it cannot access some /var/lib/kubernetes files... strange
<kuznero>
I curious if it is possible to add current user to some group to avoid this sudo-hassle...
<{^_^}>
[nixpkgs] @erictapen opened pull request #77392 → nixos/waybar: restart service → https://git.io/JvvWb
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @jonringer pushed to master « python2Packages.ihatemoney: fix python2 test deps »: https://git.io/Jvvl3
<Ankhers>
Has anyone had success using home manager to install firefox with the enableAdobeFlash option? I see that it installed flash, but it doesn't seem enabled in firefox itself.
<zeta_0>
jared-w: thanks it makes a little bit more sense
<eacameron>
is there a way to ask nix to calculate sha256 of a directory so I can at least assert it myself?
MinceR_ is now known as MinceR
<dirkx>
When one does an 'import ./foo/bar.nix' -- does nix-build scan the whole NIXPKGS or NIXPATH its npkgs= fields ? Or is that strictly against the CWD ?
domogled has joined #nixos
Church- has quit [Quit: WeeChat info:version]
<gchristensen>
NIX_PATH is only used for resolving paths referredto with ` <...>`
<qyliss>
It's against the directory of the file the path occurs in, if it's in a file
<gchristensen>
so you can import "${pkgs.path}/whatever..."
<dirkx>
gchristensen -- thanks - was messing with <nixpkgs> and not getting it quite right !
<jared-w>
Ankhers: You can't automatically enable things in firefox. It's a security measure; you can install it but the actual enabling bit has to be done manually
<jared-w>
(should be the same for chrome)
<gchristensen>
dirkx: you can also do import <nixpkgs/foobar>
<dirkx>
Hm - that becomes a bit cyclic: import "${pkgs.path}/nixos/tests/make-test-python.nix" ({ pkgs, ... }:
<{^_^}>
[nixpkgs] @markuskowa merged pull request #74512 → kodelife: 0.8.7.105 -> 0.8.8.110 (+support for more archs) → https://git.io/JeXhe
<gchristensen>
dirkx: so it gets a bit weird, but ... make-test-python = yourtestfunction: (import "${pkgs.path}/nixos/tests/make-test-python.nix" yourtestfunction { inherit pkgs; })
<rycee>
Ankhers: Are you using the `firefox-esr-52` package?
<zeta_0>
so what i normally do is: run cabal init in the root dir of my project, then cp my default.nix file(which contains my pkgs configuration and installation for the project) to that dir, then i run nix-shell to get into the isolated environment with my config, but when i make a change to the .cabal file, then run: `cabal2nix --shell . > default.nix` , it removes everything in the default.nix file and replaces it with o
<zeta_0>
ther stuff, i just want have the .cabal changes added?'
lsix1 has joined #nixos
<zeta_0>
sorry for the lengthy config summary, i almost got the nix-shell workflow down, there is just a few little things that are still confusing me
<rycee>
Hmm, ah perhaps firefox-esr-52 is only needed for the google talk and icedtea plugins.
<rycee>
It might be that some special setting is necessary to enable flash?
<dirkx>
gchristensen - that took some thinking. thanks ! --- but perhaps I am going around this the wrong way if it gets this hairy :)
<gchristensen>
dirkx: nah it is probabl yfine
<Ankhers>
jared-w: I don't even see it in the list of plugins to be able to enable it though.
<{^_^}>
[nixpkgs] @alyssais opened pull request #77394 → maintainers/create-azure.sh: run from anywhere → https://git.io/Jvvlb
<rycee>
Aye, it seems to be disabled by default
<gchristensen>
dirkx: make-test-python.nix is a bit of an internal implementation detail of NixOS, so not super trivial to expose -- and it may (but probably won't) change in the future
<jared-w>
Ankhers: are you looking in `about:plugins`?
<Ankhers>
I was not, but it is not listed there either.
<dirkx>
So what I am trying to do is create a whole bunch of extra tests in the test dirs -- but I'd like to run them in isolation during testing (as they sometimes talk to crypto hardware) as simple default.nix files which can be ran with a simple 'nix-build' within dockers.
mojjoo has quit [Remote host closed the connection]
<Ankhers>
Does anyone have experience using the android NDK on NixOS? I *think* things are not working because the clang binaries provided when I download the NDK through android studio are not patchelf'd.
<Thra11>
`nix-shell -p gcc-arm-embedded` puts a native gcc in my path as well as arm-none-eabi-gcc and friends. Is this intentional?
<zeta_0>
ok so how do i reference yesod-render-html.nix from default.nix? here is my default.nix file: https://hastebin.com/ikavezofow.cs
mehlon has quit [Quit: Leaving]
Church- has joined #nixos
<lovesegfault>
Does anyone know of a post in a mailing list that some other distro's dev. did about NixOS and in particular their problems with it; I read it a while back and now can't find it
<lovesegfault>
IIRC it was a debian dev? They made some good points that I want to revisit
mehlon has joined #nixos
ardumont has quit [Ping timeout: 248 seconds]
alexherbo20 has joined #nixos
alex`` has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @stefano-m opened pull request #77398 → [19.03] Mark various versions of firefox and derivatives as vulnerable → https://git.io/JvvBf
alexherbo2 has quit [Ping timeout: 268 seconds]
alexherbo20 is now known as alexherbo2
jco1 has joined #nixos
<jco1>
Hello!
<dminuoso_>
lovesegfault: A post in a mailing list? About nixos and in particular problems with it?
<dminuoso_>
lovesegfault: Is there any way this question could have been even more vague?
<lovesegfault>
dminuoso_: Sorry, I only have a vague memory of it :(
<dminuoso_>
It shows.
<dminuoso_>
;)
<dminuoso_>
lovesegfault: I think it was on that other mailing list. The one with the mails and the person who responded to that.
<lovesegfault>
It was a post by a non-NixOS-person talking, in a mailing list, about NixOS and the problems they saw with it (one of the complaints was paths being hash-name and not name-hash w.r.t. tab-complete)
alex`` has joined #nixos
<dminuoso_>
lovesegfault: Bah just use zsh and the tab-complete argument is moot.
<lovesegfault>
dminuoso_: I know, I'm not arguing that it isn't; I just want to find the thing ;-;
<jco1>
this expression produces an executable, but when I try "result/bin/protonvpn --version"
* lovesegfault
searches slack history
<jco1>
from docopt import docopt
<jco1>
ModuleNotFoundError: No module named 'docopt'
drakonis has quit [Read error: Connection reset by peer]
<adisbladis>
I recently had a nasty corruption on xfs
<lovesegfault>
adisbladis: :O
<adisbladis>
0b files all over the place
<lovesegfault>
XFS has been rock solid so far
<adisbladis>
lovesegfault: Power went out mid write
<lovesegfault>
ooph
<dminuoso_>
lovesegfault: Haha regarding rsync.
<dminuoso_>
lovesegfault: We have some netapp storages, and we had that 10TiB storage we needed to migrate from one netapp cluster to another...
<dminuoso_>
Because of the sheer volume of files, rsync was estimated to have taken about 3-4 hours
<lovesegfault>
Jesus
<dminuoso_>
The netapp provided sync feature had it done in about 10 minutes or so.
<lovesegfault>
:O
<lovesegfault>
That's pretty awesome
<dminuoso_>
Well the feature works on block level I guess
shibboleth has joined #nixos
<dminuoso_>
So we were bound by disk I/O I think?
<dminuoso_>
It was certainly not the network.
kuznero has quit [Quit: Leaving]
<infinisil>
With my work-in-progress deployment tool for NixOS systems, I'm just adding support for secrets
<infinisil>
Is there something you're missing from other deployment tools in regards to that you'd like to see?
chagra_ has quit [Ping timeout: 268 seconds]
<infinisil>
Or just in general, what kind of things secrets should support
<hyper_ch>
what kind of secrets? :)
<infinisil>
Well things you don't want to be world-readable, keys, passwords, tokens
<infinisil>
Which are needed at runtime
<hyper_ch>
well, I'm off to bed, gotta get up in 5 1/2h again
Jackneill has joined #nixos
<evanjs>
infinisil: ahhhh is this similar to the gpg -> nix generator you mentioned before?
<zeta_0>
is this how i would reference a yesod-render-html.nix file to default.nix? cabal2nix_pkg = import ./yesod-render-html.nix;
<evanjs>
the missing bit from your public config
<infinisil>
evanjs: Ah not entirely, but that's something that could be built into it
<zeta_0>
i think it is close, but the syntax is probably off?
<infinisil>
evanjs: My current prototype lets you declare `secrets.foo.file = ./path/to/secret`, and refer to that from any machine, in which case the secrets is made available on the machine
<infinisil>
I think I'll add support for persistent/non-persistent secrets and also do some systemd service fiddling like nixops does
<lovesegfault>
I have an Aarch64 builder configured on my RPi3; can I make nix just _always_ use the remote builder instead of building locally?
<lovesegfault>
right now it tries to distribute it, but the rpi is so slow that just does more damage than good
<zeta_0>
could you guys paste a link that shows how to reference/import one nix file into another? i am not sure about the syntax, so having some examples to look at would be nice
<{^_^}>
[nix] @trusktr opened pull request #3308 → Add a link to official channels in the Channels chapter. → https://git.io/JvvRZ
<evanjs>
Definitely interested. Was talking to a coworker the other day on how we might deploy if we switched our product to use NixOS, but as it stands, NixOps doesn't currently support vmware directly and blah.
<evanjs>
Always happy to see more tools related to deployment so it's not so difficult to bridge some of these gaps eventually
chagra_ has joined #nixos
<infinisil>
I guess I'll orient myself on nixops issues regarding secrets, e.g. nixops#671 and nixops#675
<zeta_0>
lovesegfault: well in nix-shell i want to use cabal2nix to write to it: `cabal2nix --shell . > yesod-render-html.nix` then add yesod-render-html.nix as a reference in default.nix
oida has joined #nixos
Thra11 has quit [Quit: WeeChat 2.7]
<zeta_0>
lovesegfault: so i need to use the `token` attribute instead to import yesod-render-html.nix?
<{^_^}>
[nixpkgs] @veprbl merged pull request #68767 → SDL2_mixer: add opusfile dependency for opus support → https://git.io/JvvR1
<{^_^}>
[nixpkgs] @veprbl pushed commit from @lambda-11235 to master « SDL2_mixer: add opusfile dependency for opus support (#68767) »: https://git.io/JvvRM
<lovesegfault>
zeta_0: token isn't an attribute, it' just a variable with whatever was in that file
<lovesegfault>
in this case that token file it imports is just a '' token '' string
fendor has quit [Ping timeout: 265 seconds]
<evanjs>
is `cp completions $out/share/zsh/site-functions` (and bash equivalent, etc) the best way to copy over completion commands? Or is there something a bit more succinct?
waleee-cl has quit [Quit: Connection closed for inactivity]
<zeta_0>
lovesegfault: so does it look correct now?
<lovesegfault>
zeta_0: It's hard to say without seeing yesod...nix but looks fine, yeah
<samueldr>
tokudan: -small should follow suit quickly, but the whole eval needs to be "finished" to be built, either successfully or not before it updates
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<zeta_0>
lovesegfault: no errors were thrown when i ran `cabal2nix --shell . > yesod-render-html.nix` and the both the nix files look correct, so i think that i am good to go
<zeta_0>
lovesegfault: thanks for the help
<zeta_0>
lovesegfault++
<{^_^}>
lovesegfault's karma got increased to 9
gustavderdrache has quit [Quit: Leaving.]
<zeta_0>
rycee: just curious does home-manager have good support for darcs, i was thinking of maybe it instead of git down the road?