aanderse has quit [(Remote host closed the connection)]
markus1199 has joined #nixos
aanderse has joined #nixos
pie___ has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
pie___ is now known as pie_
markus1189 has quit [(Ping timeout: 240 seconds)]
rtjure has quit [(Ping timeout: 240 seconds)]
jb55 has quit [(Ping timeout: 240 seconds)]
rtjure has joined #nixos
aristid has quit [(Ping timeout: 258 seconds)]
pxc1 has quit [(Ping timeout: 246 seconds)]
srdqty has joined #nixos
symplectico has quit [(Ping timeout: 240 seconds)]
ChongLi_ has quit [(Remote host closed the connection)]
ChongLi has joined #nixos
aristid has joined #nixos
joepie91 has quit [(Ping timeout: 246 seconds)]
ylwghst has joined #nixos
<kkini>
Maybe a dumb question, but suppose I find there's something wrong with something in nixpkgs, say foo/default.nix, and I fix it and make a pull request, but I don't change the name or version of the derivation. If someone had run `nix-env -i foo`, at what point will they get the updated version of the package with my changes?
<kkini>
Or am I supposed to always change the version of a package in nixpkgs when I modify it?
mahalel_ has left #nixos []
fendor has joined #nixos
<tilpner>
You don't need to change name/version for changes to reach users, but it will take some time to get merged, pass Hydra, get into a channel, and the user still has to update their channels
<tilpner>
And you might not reach users on old channels at all, not sure what the backport policies are
<kkini>
So when you update a channel, packages which changed would be reinstalled so you have the new versions?
<benley>
I'm not sure if there is a well-defined policy on backporting fixes. But most of the time things get backported to the most recent stable release of nixos.
<kkini>
I didn't realize updating the channel did anything other than update your copy of nixpkgs
<benley>
That's all updating the channel really does. It's when you run nixos-rebuild later that you get the updated packages.
python476 has quit [(Ping timeout: 240 seconds)]
<kkini>
Ah. But what if you're using nix on a non-NixOS system?
<tilpner>
kkini - No, updating the channels doesn't itself install updated packages
<benley>
assuming you mean `nix-channel --update` when you say "updating the channel"
<kkini>
Is there some analogous command to `nixos-rebuild` in the nix-on-ubuntu (or whatever distro) situation?
<kkini>
benley: I think that's what I meant. At least I assumed that's what tilpner meant, and I was just copying what they said :)
<benley>
if you're using nix on non-nixos, you can do something like `nix-env --upgrade --leq` to install the latest version of things in your user environment
<kkini>
aha, I didn't know about the --leq flag. I imagine it exists for exactly the hypothetical situation I'm talking about. Cool, that basically answers my question :)
<kkini>
Thanks!
ahstro has quit [(Ping timeout: 260 seconds)]
<tilpner>
Huh, nice
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
srdqty has quit [(Quit: WeeChat 1.9.1)]
Mrmaxmeier has quit [(Ping timeout: 248 seconds)]
pxc1 has joined #nixos
<benley>
my current puzzle: is there a way to control the order that setup hooks run?
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
<benley>
I'm trying to do some stuff in a setup hook that depends on having the $outputStuff variables set, which I think happens in multiple-outputs.sh, but none of those seem to be set when my hook runs
alhariel has joined #nixos
jgertm has quit [(Ping timeout: 248 seconds)]
<kkini>
Why is fetchFromGitHub preferred for projects from github? Github seems to offer prepackaged tarballs for any tagged commit, so I'd have assumed that it would be better to just use fetchurl, unless you're trying to build from an untagged commit...
<kkini>
Or wait, maybe fetchFromGitHub is smart enough to notice whether the rev argument is a tag and then just download it over HTTP. Guess I should have checked that before asking
fendor has quit [(Read error: Connection reset by peer)]
bencoman has quit [(Quit: Konversation terminated!)]
<kkini>
Oh, wow -- github actually will serve any commit you want as a tarball. D'oh!
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
davidak has quit [(Quit: Leaving.)]
<Shados>
Anyone know how to find out the predictable interface names udev would assign, from a chroot'd nixos iso running on top of a system that is using an older udev version (and thus is still using ethX naming)?
<Shados>
Need to get them right first time, as I don't have convenient console access to this box >.>
Lisanna has joined #nixos
<Lisanna>
Hey, quick question: is there a way to pretty-print evaluation results in nix-repl? I know about :p but it can be kind of hard to read.
thc202 has quit [(Ping timeout: 240 seconds)]
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
pie_ has quit [(Remote host closed the connection)]
scribbler has quit [(Remote host closed the connection)]
<kkini>
Why are there sha256 hashes in nixpkgs which are only 52 characters long and contain alphanumeric characters other than [a-fA-F]? Is it related to the hash function that produces nix store names? (But those are even shorter, only 32 characters long.)
hellrazo1 has joined #nixos
jb55 has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
<tilpner>
kkini - There are different text representations of a sha256 hash, and you can use nix-hash to convert between them
jb55 has quit [(Ping timeout: 258 seconds)]
<kkini>
ah, I see. So it's the "non-truncated base-32" version that I'm seeing so much in nixpkgs
<Li[m]>
'meant to be lightweight' except it used perl until recently
<tilpner>
I assume the lightweight part refers to the C++ components
<tilpner>
More people know C++ than Haskell, it is more lightweight, and can be more portable, it wasn't a bad choice
<tilpner>
Although a well written Haskell version would be completely fine too. It's just that fewer people could contribute, and performance is a little more tricky
<Li[m]>
no it wasnt a bad choice then, haskell would be a more obvious choice today
MP2E has quit [(Remote host closed the connection)]
<Li[m]>
funny that nix makes it so
<Li[m]>
back then haskell wasnt where it is today
MP2E has joined #nixos
<tilpner>
I understand the ecosystem improved a lot, but did it become more lightweight, portable, or more popular than C++?
<nixOp>
So the question is I have an imported config in a variable inside let block, how do I overwrite values of the config inside the then block using the variable?
<nixOp>
Let in is not mandatory, If that can be achieved woth other kinds of syntax thats ok
<tilpner>
You can use the // operator to merge sets: { foo = 42; bar = 10; } // { foo = 21; quux = 8; } #=> { foo = 21; bar = 10; quux = 8; }
<nixOp>
I just wanted my config to play well with the manual
<tilpner>
Use gist.github.com to paste text
<nixOp>
merge will work for overrides?
<tilpner>
Not sure what you mean. I also don't have much experience with nixops
<nixOp>
tilpner: Ok, I will
damke has joined #nixos
damke_ has quit [(Read error: Connection reset by peer)]
ylwghst has quit [(Client Quit)]
ylwghst has joined #nixos
riclima has joined #nixos
justan0theruser has joined #nixos
justan0theruser has quit [(Client Quit)]
justan0theruser has joined #nixos
ylwghst has quit [(Client Quit)]
justanotheruser has quit [(Ping timeout: 255 seconds)]
damke_ has joined #nixos
damke has quit [(Read error: Connection reset by peer)]
<nixOp>
So the question is I have an imported config in a variable inside let block, how do I overwrite values of the config inside the then block using the variable?
proteusguy has quit [(Remote host closed the connection)]
<nixOp>
Or with other words how do I have a template which values I can override and customize for my nixops provisioned nodes?
<tilpner>
The problem with your example is that conf.nix contains a function, not a set
<tilpner>
You can't use // on functions, you need to evaluate it to get a set
<dj_goku_>
should I use nix-prefetch-git or nix-prefetch-url?
<tilpner>
This is not necessarily a good idea though. The module system already provides a mechanism for defaults and overriding
<nixOp>
put that on your suggestion just for illustration, anything else I can use is ok
<riclima>
Hey so where should I put local package definitions?
<riclima>
I want to use a Python package as a dependency for a project
<riclima>
But it's not on nixpkgs
<riclima>
So I'd like to write a derivation for it to use locally on my computer
<riclima>
~/.local/nixpkgs?
<tilpner>
dj_goku_ - They're not always interchangeable. I prefer -git for git repos
<tilpner>
riclima - Do you know how to install overlays?
<riclima>
What's an overlay?
<dj_goku_>
tilpner: what is crazy is I am trying to replicate or find how the previous person did it.
<dj_goku_>
I can't duplicate the same sha256
<dj_goku_>
doesn't look like they used -url
<tilpner>
nixOp - You would have base modules for common configuration, and add specialised modules to customise the template. You may want mkDefault and mkForce for possible conflicts, but I suggest you wait around and ask someone who manages more than one thing with nixops :D
<tilpner>
riclima - Okay, let's not use an overlay then. Are you on NixOS?
<riclima>
No, macOS
<tilpner>
dj_goku_ - Show it?
<pie_>
anyone on that uses idea-community? idk what im supposed to give the path to in the sdk step
<riclima>
pie_, maybe on your shell try `which java`, and give that?
<tilpner>
riclima - It doesn't really matter where you put the Nix files. Does Nix use ~/.config/nixpkgs on macOS? If so, that'd be a good place
<dj_goku_>
tilpner: ahh they used -git with --rev
<pie_>
riclima, ahh ok
<nixOp>
tilpner: I tried something like balancer.networking.hostname = pkgs.lib.mkForce "balancer"; but it didn't work because pkgs in not there
<nixOp>
is not there*
<riclima>
pie_ I think there's a specific folder you need to point to, so I'm not entirely sure that's going to give you the exact correct one
<sphalerite>
hyper_ch: soon there will be I'm guessing.
<sphalerite>
You can try updating it yourself
<hyper_ch>
sphalerite: when I tried to added lates kernel to nixos unstable small a while back, it still was 4.9 IIRC and not like 4.13 or so...
<hyper_ch>
sphalerite: you keep putting to much faith into my abilities
rogue_koder has quit [(Quit: Konversation terminated!)]
periklis has joined #nixos
ma27 has joined #nixos
zraexy has quit [(Ping timeout: 248 seconds)]
klosnetllc1 has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #31120: sqlitebrowser: 3.10.0 -> 3.10.1 and make it work with Qt 5.9 (master...f/sqlite) https://git.io/vFs2p
NixOS_GitHub has left #nixos []
zzamboni has joined #nixos
dywedir has joined #nixos
tdc has joined #nixos
dywedir has quit [(Remote host closed the connection)]
MercurialAlchemi has joined #nixos
ertes has quit [(Ping timeout: 240 seconds)]
hellrazor_m has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
<tilpner>
master seems to have 4.14-rc7
<tilpner>
And it's already in nixos-unstable too
<globin>
hyper_ch: the updater script seems to have stalled on nixos-unstable-small, waiting for a response from niksnut on that :)
zacts has quit [(Ping timeout: 246 seconds)]
reinzelmann has joined #nixos
<hyper_ch>
tilpner: hmmm, interesting :) how to get then that kernel? I have boot.kernelPackages = pkgs.linuxPackages_latest; in my config and last time I tried it I think I still got 4.9
<hyper_ch>
globin: I was just curious :)
klosnetllc1 has quit [(Remote host closed the connection)]
<tilpner>
hyper_ch - linuxPackages_testing will get you 4.14-rc7
<NixOS_GitHub>
[nixpkgs] P-E-Meunier closed pull request #22586: Finer-grained firewall: allow specific hosts, in particular to SSH (master...master) https://git.io/vDu4j
NixOS_GitHub has left #nixos []
<kuznero>
Actually same thing happens on nixos-17.09
<kuznero>
Can it be sandboxing getting in a way?
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<kuznero>
Shouldn't be, right?
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] lo1tuma opened pull request #31124: nodejs: refactor generic build function (master...refactor-nodejs) https://git.io/vFsPe
NixOS_GitHub has left #nixos []
roberth has joined #nixos
<goibhniu>
kuznero: what URL is pullImage trying to use?
<kuznero>
goibhniu: I am trying to figure it out now, call is `dockerTools.pullImage { imageName = "alpine"; imageTag = "3.3"; sha256 = "0hy9rsvm3j9l7vbwbfk8571g5mh5crj9pvvpb3xxdbl25gk7cp5i"; };`
<goibhniu>
hrm
<goibhniu>
silly question, does that mean it's looking for alpine 3.3?
Mrmaxmeier has joined #nixos
<kuznero>
yes, old. After I will make it working I will upgrade to 3.6
<MoreTea>
I had some issues with dockerTools.pullImage as well
<MoreTea>
It kept returning different sha256's.
hariel has joined #nixos
<MoreTea>
kuznero: do you have the same issue?
<kuznero>
I needed to change sha256 at some point. But then it stabilized.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vFsPi
<NixOS_GitHub>
nixpkgs/master 9ac793f Peter Hoeg: plasma: 5.11.1 -> 5.11.2
NixOS_GitHub has left #nixos []
betaboon has joined #nixos
<kuznero>
non of the images I try now works. alpine, nixos/nix, ubuntu, none of them
<kuznero>
both on nixos-17.03 and nixos-17.09
alhariel has quit [(Ping timeout: 240 seconds)]
Wizek has joined #nixos
<kuznero>
ok, one thing is that I am behind corporate proxy
<kuznero>
but I've tried turning sandboxing on and off. Same result all the time
<MoreTea>
what's the error you're getting kuznero ?
<kuznero>
MoreTea: curl: (22) The requested URL returned error: 404 NOT FOUND
<kuznero>
I can see that `$nixpkgs/pkgs/build-support/docker/pull.sh` is trying to start dockerd without proxy settings. That is used then to `docker pull` an image. It is not configured to have http(s)_proxy env vars. But what I don't understand is that it should not use curl at all. But it is curl that fails. Maybe I misunderstand and it is not dockerTools
<kuznero>
.pullImage that fails?
<kuznero>
Last thing before it fails is `/nix/store/s33yz3v7fxhczaninvg6q6qa5cfa9gx9-tarsum`
<kuznero>
Nope, tarsum is irrelevant - just one of parallel jobs run by nix-build
<kuznero>
How do I make curl error tell what URL it was trying?
jensens has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vFsMJ
<joko>
Hi, I am using (pkgs.python35.withPackages ( blabla )).env in shell.nix to fire up a nix-shell, how to append stuff in PYTHONPATH there?
Mrmaxmeier has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
<kuznero>
It definitely errors when I use fromImage in my docker.nix. So, curl error comes from pullImage certainly.
takle has joined #nixos
<Mic92>
disasm: maybe we could add the docbook plugins right away to nixpkgs itself.
Ramaness has joined #nixos
<MoreTea>
kuznero: you can probably hack the dockerTools expression in a local checkout of nixpkgs, and see if you can reproduce there.
<kuznero>
MoreTea: problem is that I cannot understand how curl is eventually invoked. I found `pull.sh` script that starts docker daemon and pulls image using `docker pull` - but this is not what is happening in reality - it is curl that is used.
<MoreTea>
kuznero: it appears that it's not involved.
<MoreTea>
kuznero: checkout the file $NIXPKGS/pkgs/build-support/docker/pull.sh
<MoreTea>
it starts a temporary local docker daemon
<MoreTea>
kuznero: does that enable you to continue? I'd be happy to help you fix this step-by-step.
erictapen has quit [(Ping timeout: 248 seconds)]
<sphalerite>
Can I get a nix-shell without the docs for the packages included in it?
freusque has quit [(Quit: WeeChat 1.7.1)]
<kuznero>
MoreTea: the thing is that my local instance of docker daemon works great and I can pull any image myself. But when it is running as part of nix-build it fails
<sphalerite>
I don't have an internet connection on my laptop, and I do have the out path of the derivations in question but not the doc
Ramaness has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vFsD0
<globin>
kuznero: I haven't managed to reproduce that, tested it yesterday
<kuznero>
globin: interesting. I saw it is working sometimes for a short periods of time. But I will go back to latest nixos-17.09 and check again now.
<MoreTea>
kuznero: sorry, can't take time of $JOB to take a look at that issue.
<kuznero>
no problem MoreTea, you already helped a lot! Thanks for your time
proteusguy has quit [(Remote host closed the connection)]
<MoreTea>
kuznero: I really do recommend to pin your nixpkgs. Once you get this fixed, all your team members will have an identical environment (which also should work)
davidak has joined #nixos
alhariel has joined #nixos
hariel has quit [(Ping timeout: 260 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
roberth has quit [(Ping timeout: 248 seconds)]
mekeor has joined #nixos
NightTrain has joined #nixos
michiel_l has joined #nixos
<kuznero>
MoreTea: will do that, thanks
mkoenig has joined #nixos
<LnL>
kuznero: have you tried to disable the firewall?
<kuznero>
LnL: I think it is disabled. I will try checking it again now.
guillaum2 has joined #nixos
<LnL>
maybe that's messing with the docker networking somehow
<kuznero>
LnL: networking.firewall.enable = false; in my configuration.ni
<kuznero>
:q
<LnL>
hmm, what if you enable it and whitelist the ports
<kuznero>
LnL: hm... will try that.
proteusguy has joined #nixos
<kuznero>
I can see though that scopeo is not used for pulling images any more... :( It made things working for me with proxy. I wonder why was it reverted...
<LnL>
pretty sure I used swarm for work stuff after I upgraded to 17.09
<kuznero>
LnL: swarm works in most cases. It is specifically rabbitmq with management plugin that fails
<kuznero>
That is the most weird part in this
<globin>
kuznero: skopeo used a different image format breaking mesos with the images amongst others
<LnL>
oh that's the only service you've had trouble with?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vFsHF
<NixOS_GitHub>
nixpkgs/master c37c896 Franz Pletz: linux: 4.13.10 -> 4.13.11
<NixOS_GitHub>
nixpkgs/master 6021ca2 Franz Pletz: linux: 4.4.95 -> 4.4.96
<NixOS_GitHub>
nixpkgs/master 68b5ec0 Franz Pletz: linux: 4.9.59 -> 4.9.60
NixOS_GitHub has left #nixos []
<kuznero>
yep, it just happened to be the central piece that my team is relying on :(
<LnL>
weird, thought it was just an example
<kuznero>
no, all other images work as usual.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to release-17.09: https://git.io/vFsQT
<NixOS_GitHub>
nixpkgs/release-17.09 f55fb35 Franz Pletz: linux: 4.13.10 -> 4.13.11...
<NixOS_GitHub>
nixpkgs/release-17.09 b97495e Franz Pletz: linux: 4.4.95 -> 4.4.96...
<NixOS_GitHub>
nixpkgs/release-17.09 0cba835 Franz Pletz: linux: 4.9.59 -> 4.9.60...
NixOS_GitHub has left #nixos []
<kuznero>
lewo: are you here?
tdc_ has joined #nixos
<kuznero>
In order to try my own dockerTools version can I just do `nix-build -I ~/Projects/Kuznero/nixpkgs docker.nix`?
roberth has joined #nixos
riclima has joined #nixos
tdc has quit [(Ping timeout: 260 seconds)]
<MoreTea>
kuznero: you can just import the nixpkgs in your docker.nix
<MoreTea>
{ /* your top level function */}: let pkgs = import /path/to/own-version-of-nixpkgs/ {}; in $REST_OF_EXPR
<kuznero>
MoreTea: like `{ pkgs ? import <~/Projects/Kuznero/nixpkgs> {} }:`?
<kuznero>
ok, will try now
<infinisil>
kuznero: nix-build docker.nix -I nixpkgs=your/nixpkgs should work too
<kuznero>
infinisil: thanks! that is what I was looking for
qknight has quit [(Quit: Lost terminal)]
tdc__ has joined #nixos
simukis has joined #nixos
<MoreTea>
kuznero: that works too ;)
<kuznero>
Excellent, if I still use skopeo (there were 3 reverting commits) it is working fine when I am building behind proxy. Sorry, I don't know nick of Robin Gloster. But if you are here, can you please explain why it was reverted?
Naughtmare[m] has left #nixos ["User left"]
yegortimoshenko has quit [(Remote host closed the connection)]
yegortimoshenko has joined #nixos
<MoreTea>
kuznero: globin
<MoreTea>
kuznero: AFAIK the on-disk format of skopeo is not the same as the output of `docker export`.
<globin>
"kuznero: skopeo used a different image format breaking mesos with the images amongst others"
<globin>
kuznero: see the related PRs for more information
<kuznero>
globin: I see, and there is also a side effect of not working behind corporate proxies
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm pushed 5 new commits to master: https://git.io/vFs5y
kiloreux has quit [(Remote host closed the connection)]
goibhniu has quit [(Remote host closed the connection)]
<LnL>
it's not ideal, but that allows you to disable the existing module and replace it with a version that puts stuff in /etc
<copumpkin>
unfortunately you'll still need to just copy and paste the upstream module and modify it
<asuryawanshi>
yeah
goibhniu has joined #nixos
<asuryawanshi>
is there way to add that ps and symlinking stuff to postStart ?
<copumpkin>
what I'd suggest is probably: 1) make a quick PR that makes the config file confgurable, with a default pointing at the my.cnf in there
<copumpkin>
2) fetchpatch your PR and overlay it onto your version of nixpkgs
<copumpkin>
3) grab options.services.mysql.confFile.default or something and use that locally in your environment.etc
<copumpkin>
asuryawanshi: yeah if you're willing to deal with ps
<asuryawanshi>
just to get it up and running for now,
<copumpkin>
feels a bit brittle but might not be the end of the world
<copumpkin>
systemd.services.mysql.serviceConfig.ExecStartPost = pkgs.writeScript "foo" ''<that thing you wrote before>";
<copumpkin>
I think
<asuryawanshi>
we can look into creating a PR to the module, but not possible at this moment, gchristensen and I might be able to do it once he is back
<asuryawanshi>
cool
zzamboni has quit [(Ping timeout: 246 seconds)]
pxc1 has joined #nixos
yegortimoshenko has quit [(Ping timeout: 240 seconds)]
ma27 has joined #nixos
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
pxc1 has quit [(Ping timeout: 240 seconds)]
peacememories has joined #nixos
prietoj has joined #nixos
<prietoj>
Hello. I'm having some issues getting the terraform_0_10 package. I get no buildable Go source files in /tmp/nix-build-terraform-0.10.7.drv-0/go/src/github.com/hashicorp/terraform/tools/terraform-bundle/e2etest
<prietoj>
After "nix-shell -p terraform_0_10"
jtojnar has quit [(Quit: jtojnar)]
zzamboni has joined #nixos
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
zzamboni has quit [(Client Quit)]
ylwghst has joined #nixos
zzamboni has joined #nixos
<copumpkin>
prietoj: not sure, might just be broken in the revision you're on? I'd file an issue with more info
tv has quit [(Ping timeout: 248 seconds)]
infinisil has joined #nixos
<prietoj>
Will do
tv has joined #nixos
Ramaness has joined #nixos
hotfuzz has joined #nixos
p4cman has quit [(Quit: Connection closed for inactivity)]
amir has quit [(Remote host closed the connection)]
kiloreux has joined #nixos
amir has joined #nixos
__monty__ has joined #nixos
<__monty__>
Looking for the proper way to set NIX_PATH, I'm not on nixos. The nix.sh script I source at the end of .zshrc sets it to nixpkgs=...:nixpkgs=... That seems redundant and also overwrites the NIX_PATH I specified.
<disasm>
Mic92: good idea!
<kiloreux>
I am getting "do not know how to unpack source archive" when trying to use directory to compile file.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vFGtv
<NixOS_GitHub>
nixpkgs/master 7f92173 Andrew Dunham: strongswan: allow configuring enabled plugins
joepie91 has quit [(Read error: Connection reset by peer)]
srdqty has joined #nixos
joepie91___ has joined #nixos
joepie91___ has quit [(Changing host)]
joepie91___ has joined #nixos
the-kenny has joined #nixos
<StevenTian>
I am using KDE with NixOS 17.09. When I tried to copy or move a file, I am unable to see the file transfer progress. Is this a known issue?
<joepie91>
StevenTian: can you check whether there's a little progress spinner in your system/widget tray?
<MoreTea>
hmm. I'm having some issues with VirtualBox on unstable.
<joepie91>
StevenTian: likely a circle with a number in it
<MoreTea>
VirtualBox: supR3HardenedVerifyFileFollowSymlinks: Failed to resolve the real path '/run/opengl-driver/lib/dri/tls/i965_dri.so': No such file or directory (2)
<MoreTea>
Qt FATAL: Cannot mix incompatible Qt library (version 0x50900) with this library (version 0x50901)
<MoreTea>
(I don't have virtualbox installed via nix-env, only via configuration.nix)
<copumpkin>
do we have a good command to perform a tree diff on output from nix-store -q --tree?
<StevenTian>
person: I have googled it, but have not found a working solution.
<Dezgeg>
sphalerite: so does it load the firmware correcly? you sure it's the right driver that's built in? any messages from the driver?
<StevenTian>
joepie91: I don’t see the progress tracker in the system tray.
<joepie91>
StevenTian: are you sure that it was a long-running job? ie. one that wouldn't just finish immediately?
<StevenTian>
joepie91: yeah, a quite large file. However, When the copy was done, I did see a message “xxx coped successfully” in the status bar of Dolphin.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edwtjo pushed 1 new commit to master: https://git.io/vFGsI
<NixOS_GitHub>
nixpkgs/master a4c431b Edward Tjörnhammar: altcoins.dogecoin*: sha change
<joepie91>
StevenTian: hrm. this works fine for me, so I'm unsure what the issue is.
<joepie91>
StevenTian: it wasn't in the hidden-icons pane either?
ma27 has quit [(Ping timeout: 248 seconds)]
trevorriles has joined #nixos
<person>
the automatic updater service for the locate db isn't able to read my home and a few system directories. Is that because it doesn't actually run as root? (is run as user "nobody")
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
Mrmaxmeier has joined #nixos
snikkers has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] disassembler opened pull request #31135: vim-plugins: add vim-docbk and related snippets (master...docbook-vim-plugins) https://git.io/vFGGr
NixOS_GitHub has left #nixos []
<StevenTian>
joepie91: it is said that I need to enable to “track file transfer and other jobs” in the Notification Settings and enable “Show progress and status information in task buttons” in the Task Manager Settings. However, even all these done, it still does not work. 😭
<joepie91>
StevenTian: ah, that's a different thing than what I'm thinking of
<joepie91>
StevenTian: that's showing the progress on the task bar item, not the tray icon for notifications
<joepie91>
StevenTian: can you doublecheck that you have a notification widget configured *at all* for your tray?
ma27 has joined #nixos
<nh2[m]>
is there a nix pretty-printer somewhere through which I can pipe a `.drv` file?
<Dezgeg>
if you want a really poor man's version, piping to tr , '\n' works somewhat
<StevenTian>
joepie91: I can see “Status & Notifications” in the system tray. Is it the one you are referring to?
<joepie91>
StevenTian: yep, that'
<joepie91>
StevenTian: yep, that's the one *
<joepie91>
that should display ongoing operations along with their respective progress
<joepie91>
and that's where your file transfer from Dolphin should show up
<StevenTian>
joepie91: yeah, but it does not show up somehow.
<joepie91>
hrm :/
<joepie91>
StevenTian: I mean, this should Just Work
<joepie91>
and it does for me, without having tinkered with it
<joepie91>
StevenTian: you're not by any chance mixing different channels?
<joepie91>
also, let me verify that it still works right this moment, sec
<joepie91>
StevenTian: hmm, it's actually not working for me now!
<joepie91>
maybe something changed in a recent update?
<srhb>
I want to express that a password is either provided as an unsafe str (stored in the Nix Store) or safely as a file (outside the Nix Store)
dbmikus has joined #nixos
person938759 has joined #nixos
<srhb>
I feel like it would be lovely if I had something akin to value constructors to express this. (MkUnsafeString foopassword vs. MkSafeFilePath /path/to/thing)
<srhb>
but we don't have ADTs
Acou_Bass has joined #nixos
Deleh[m] has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
waleee has joined #nixos
StevenTian has joined #nixos
asuryawanshi has joined #nixos
StevenTian has quit [(Client Quit)]
ma27 has quit [(Ping timeout: 248 seconds)]
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
<adisbladis>
joepie91: I had it not working for me for a short while too but then magically started again. Hard to say what it was.
trevorriles has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
trevorriles has joined #nixos
Acou_Bass has quit [(Quit: byeeeeeeeeeeeeeee)]
Acou_Bass has joined #nixos
ma27 has joined #nixos
asuryawanshi has quit [(Ping timeout: 255 seconds)]
StevenTian has joined #nixos
simendsjo has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ylwghst has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #31135: vim-plugins: add vim-docbk and related snippets (master...docbook-vim-plugins) https://git.io/vFGGr
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vFGWa
<NixOS_GitHub>
nixpkgs/release-17.09 ea890c4 Samuel Leathers: vim-plugins: add vim-docbk and related snippets
NixOS_GitHub has left #nixos []
<infinisil>
srhb: Profpatsch just implemented an ADT prototype :D
<sphalerite>
Dezgeg: definitely the right one. But I did just notice that it's not finding the firmware (error -2 which I believe is ENOENT?). Thing is, the firmware is definitely there. Could it be trying to load it before the root filesystem is mounted and udev has told the kernel where to find firmware?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 3 new commits to master: https://git.io/vFGR2
<NixOS_GitHub>
nix/master 3050395 Zoran Plesivčak: Mention "float" type in builtins.typeOf section of the docs...
<NixOS_GitHub>
nix/master ae506c1 Zoran Plesivčak: Mention isFloat function in "Built-in Functions" section
<Mic92>
disasm: this part of the vim8 package manager. `nixbundle` is a self chosen name. `start` are packages loaded at startup.
<Mic92>
I think I also documented this in the manual
<disasm>
WilliButz: do you know if it's possible to reload the config without logging out? I did a rebuild switch and changed to 5 mins, but it still does 1 min and have lots of stuff running, so I just disabled for now
<WilliButz>
disasm: I think that is a general problem among the systemd user services. so far I found no solution for that
Dj35 has joined #nixos
ambro718 has joined #nixos
digitus has joined #nixos
hellrazo1 has quit [(Quit: WeeChat 1.9.1)]
<Dj35>
hey
<Dj35>
has anybody experience with setting up nginx with multiple subdomains..?
<ArdaXi[m]>
Plenty of people I imagine, myself included
<ArdaXi[m]>
What's your question?
<Dj35>
ok, i'm new to nixos and sometime I don't know how to configure things trough configuration.nix..
<Dj35>
mom
hellrazor_m has quit [(Quit: "I fear the day at which our technology surpasses our humanness. On the world there will only be a generation of idiots." - Albert Einstein)]
endformationage has joined #nixos
<Dj35>
when i have a configuration like this, i get an acme error
<Dj35>
It seems like i get no new certificate from lets encrypt..?!? maybe the nixos-rebuild command tries for every subdomain it finds in the configuration instead of bundling it..?!?
ylwghst has joined #nixos
<sphalerite>
Dj35: you do need to have DNS records pointing to the machine that you're running the server on. You may also need to open the relevant firewall ports (80 and 443)
<Dj35>
Hmm.. I thought that i've setup an wildcard. i'll check that. thanks.
tgunb has joined #nixos
lfish has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel opened pull request #31140: dropbox: use buildFHSUserEnv (master...dropbox) https://git.io/vFGXn
NixOS_GitHub has left #nixos []
<lfish>
hello I'm having a problem with nix tools error messages. I get "â" instead of the offending code
asuryawanshi has joined #nixos
<lfish>
Eg: $nix-instantiate not-here ==> error: getting status of â: No such ...
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
hotfuzz_ has joined #nixos
ylwghst has quit [(Ping timeout: 248 seconds)]
<Dj35>
hmm... the records are there.. any other idea..? is there a possibility to setup letsencrypt seperatly trough configuration.nix and use the certificates in nginx..?!?
hotfuzz has quit [(Ping timeout: 248 seconds)]
thblt has quit [(Ping timeout: 260 seconds)]
<ArdaXi[m]>
You get the same error with your actual domain? It's rather hard to debug from here
<ArdaXi[m]>
That nginx config sets up a server listening on port 80 for the ACME verification, if that doesn't work it's unlikely doing it manually will
trevorriles has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Dj35>
No, I don't get the same error for only one domain. It's just when adding the second one. yeah.. it's difficult to debug from remote.
ertes-w has quit [(Ping timeout: 258 seconds)]
<Dj35>
My first guess was, that is's because the second domain is an sub-domain..
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vFGDE
<NixOS_GitHub>
nixpkgs/master b62992a Casey Ransom: kisslicer: init at 1.6.2
<ArdaXi[m]>
I have a certificate for a fourth-level domain, that works fine via LE
<tobiasBora>
Hello,
datakurre has joined #nixos
<tobiasBora>
Just a question: is nixos stable enough to be used on a server?
damke_ has joined #nixos
<ArdaXi[m]>
That is an entirely subjective question, nobody can tell you what "stable enough" means for you
damke has quit [(Ping timeout: 240 seconds)]
<ArdaXi[m]>
But generally speaking I'd say yes
<gchristensen>
tobiasBora: I know many businesses depend on it for their production
<Dj35>
it gives an HTTP1/1 200 response back and then gets an "status=2/INVALIDARGUMENT"
<Dj35>
i would also answer: yes
<tobiasBora>
ArdaXi[m]: well sometime, some distribution say "please don't use that for a server". Like debian sid for example ;)
<tobiasBora>
ok thank you!
<tobiasBora>
I'm not yet very familliar with nixos, but I think to remember that it's possible to configure a nixos server using git, is my memory correct?
<ArdaXi[m]>
NixOS is configured via text files, text files fit well in Git
<tobiasBora>
ok thanks.
stites[m] has joined #nixos
<tobiasBora>
Do you have any good document to start with nixos (not just the nix package manager)?
<Mic92>
the manual and the wiki
thblt has joined #nixos
periklis has joined #nixos
<Dj35>
Thanks ArdaXi. I think I could resolve it, well.. No errors this time.. ;)
<Dj35>
I think it has something to do with the "default = true" flag. It seems that the acme service, can't reach the needed url "https://acme-moodle.example.com/.well-known/acme-challenge/". Because everything was redirected to the default entry..
<Dj35>
Makes sense..?!?
<Dj35>
However.. Thanks for your time. =)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vFG9l
asuryawanshi has quit [(Read error: Connection reset by peer)]
asuryawanshi has joined #nixos
<ArdaXi[m]>
That does not entirely make sense, `default = true;` only adds `default_server` to the listen directive
erictapen has quit [(Ping timeout: 260 seconds)]
hotfuzz has joined #nixos
trevorriles has joined #nixos
<Dj35>
hmm... maybe a race condition..? the server wasn't up at the time lets encrypt asks for the token under the .well_known address, because nginx needs some time for it (like apache) and in the meantime it redirected to the default server..?!?
ssmike has quit [(Ping timeout: 255 seconds)]
<Dj35>
I don't know.. as i said i'm new to nixos and i didn't have so much experice with the administration of linux systems. I only know this kind of errors from coding. so i try to explain it in this way..
<ArdaXi[m]>
Well, no, if nginx isn't ready it isn't ready, it won't have a default_server at that point either
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to staging: https://git.io/vFGHf
<NixOS_GitHub>
nixpkgs/staging b2e6b56 Robert Helgesson: expat: 2.2.4 -> 2.2.5
<ArdaXi[m]>
By the way, as a side note… if you don't want people to know your actual domain you should realise that Let's Encrypt issued certificates are publicly listed
jgertm has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<ottidmes>
Automatic mounting of external devices has been broken on my system for some time now. I have worked around it by explicitly mounting devices or using udiskie from the command line. It worked before without issue, did anybody else ran into this issue? I am using xfce.gvfs and have udisks2 enabled
StevenTian has quit [(Quit: Connection closed for inactivity)]
proteusguy has quit [(Ping timeout: 252 seconds)]
tdc__ has quit [(Read error: Connection reset by peer)]
erictapen has joined #nixos
_rht has joined #nixos
periklis has quit [(Ping timeout: 258 seconds)]
<jack[m]>
So, I have a set of derivations that can have a *really* expensive (in time and space) output that isn't used all of the time. If I use multiple outputs, I may not have to keep the expensive output around, but I still have to pay for it. If I uses a sub-derivation, then I don't even need to generate it unless something wants it. Other pros/cons?
<tobiasBora>
Do you think that nixos+git can replace a tool like Chef/ansible/Salt, or that these two "tools" are supposed to work together?
scribble_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 2 new commits to master: https://git.io/vFG5h
<NixOS_GitHub>
nixpkgs/master 9a9ea65 Thomas Tuegel: dropbox: use buildFHSUserEnv...
<NixOS_GitHub>
nixpkgs/master a513c07 Thomas Tuegel: Merge pull request #31140 from ttuegel/dropbox...
NixOS_GitHub has left #nixos []
<gchristensen>
tobiasBora: chef ansible and salt don't work on nixos. nixos (and optionally nixops) replaces those tools
patrl has joined #nixos
<Dezgeg>
sphalerite: oh right now I remember, was the "VFS: Mounted root" message happening before or after the firmware load failure?
ambro718 has quit [(Ping timeout: 248 seconds)]
<tobiasBora>
gchristensen: ok thank you! Do have good documentation to replace chef&cie by nixos, or the manual is enough?
<gchristensen>
tobiasBora: the module system just does it by defeault
<rycee>
Just discovered that "hashhashhashhashhashhashhashhash" seems to have the right length and characters to be a valid store hash.
<tobiasBora>
gchristensen: ok thanks
scribbler has quit [(Ping timeout: 248 seconds)]
<rycee>
Now just have to find the right inputs to produce a file `/nix/store/hashhashhashhashhashhashhashhash-name`…
c0bw3b has joined #nixos
<tobiasBora>
gchristensen: and it's not even possible to install Chef&cie on nixos to manage others hosts that would run on others systems?
<gchristensen>
it is possible
<gchristensen>
but they would have a very hard time configuring a nixos systemt
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to release-17.09: https://git.io/vFGFI
<NixOS_GitHub>
nixpkgs/release-17.09 a02123d Thomas Tuegel: dropbox: use buildFHSUserEnv...
NixOS_GitHub has left #nixos []
<jack[m]>
rycee: now just find a derivation that resolves to that...
<gchristensen>
tobiasBora: I recommend jumping in feet-first and try nixos :)
<rycee>
jack: I'm sure it has something to do with 42.
thblt has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vFGFM
<NixOS_GitHub>
nixpkgs/release-17.09 d9b0bcc Vladimír Čunát: mongodb: fix build with pcre-8.41...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vFGFD
<NixOS_GitHub>
nixpkgs/master 500300c Anthony Cowley: terminal-notifier: 1.5.0 -> 2.0.0
<NixOS_GitHub>
nixpkgs/master 37c7bb4 Graham Christensen: Merge pull request #31141 from acowley/terminal-notifier-2.0.0...
NixOS_GitHub has left #nixos []
ertes has joined #nixos
<asuryawanshi>
Hi
leat has quit [(Quit: WeeChat 1.9.1)]
<asuryawanshi>
how do I import etc module in an existing package
<hyper_ch>
vbox fails ot buid with kernel_testing :(
mizu_no__ has joined #nixos
madknight has quit [(Ping timeout: 252 seconds)]
<hyper_ch>
asuryawanshi: what are you trying to do?
<asuryawanshi>
trying to create a file using environment.etc."my.cnf".text
<asuryawanshi>
was unsure where would I specify that
<asuryawanshi>
may be in the config section
<hyper_ch>
does the file exist in the source or do you create it anew?
<asuryawanshi>
so it is a mysql config file, which is created by the mysql package
<sphalerite>
Dezgeg: yeah… Is it not possible to delay loading the wireless firmware until the root filesystem is mounted without using an initrd or modules? Or is there maybe a way to retry loading the firmware?
<Dezgeg>
no, I think there's the option of a) building the firmware into the kernel itself (I don't know exactly how) b) put only firmware in initrd c) put both modules and firmware on the rootfs
<eacameron>
What's best practice for permissions in a web app running behind nginx? The app is a executable (not PHP/Python/Ruby) that is behind nginx. Should the app run as the nginx user?
<cransom>
it will run as nginx unless you are doign some setuid changes because it needs to be another user to function.
<gchristensen>
ok asuryawanshi ...
<eacameron>
cransom: My app has its own systemd service
voice_ftp has joined #nixos
<gchristensen>
asuryawanshi: promise me you won't use this for other things...
<eacameron>
nginx proxies to it via localhost:port
boxofrox has joined #nixos
<asuryawanshi>
ofcourse
<cransom>
eacameron: then best practice would be that it would be it's own user.
<eacameron>
cransom: Got it. And what about public upload assets? Those need to belong to nginx but the app will create them...
<gchristensen>
I like to help people in #nixos, even/especially coworkers
<gchristensen>
feel free to stick around :)
frankpf has joined #nixos
<Lisanna>
Hey guys, getting kind of a hopeless error message here ): "error: syntax error, unexpected INT, expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):6:77"
<Lisanna>
I've got some nested attrsets, and if I do :p set in nix-repl it fully evaluates it, but if I try to do builtins.attrNames on a certain point in the middle of it it prints an error like that
<Lisanna>
I think it might be because I'm using numbers as an attrset's key?
<Lisanna>
e.g. "0_1_2_3"
<gchristensen>
are you doing literally 0_1_2_3 or "0_1_2_3"?
<Lisanna>
according to nix-repl, the latter
<gchristensen>
can you paste some code?
<Lisanna>
I'm generating the attrsets with setAttrByPath
<Lisanna>
..the code is kind of sprawling and huge
ison111 has joined #nixos
<gchristensen>
oh :)
<Lisanna>
Just found that if I do attrnames foo.bar."0_1_2_3" it works
<Lisanna>
and attrnames foo.bar.0_1_2_3 gives that cryptic error
<LnL>
attributes can't start with a digit
<Lisanna>
...ugh, okay, that would explain it then
<Dj35>
hello again
<LnL>
you have to quote to make that work
<Lisanna>
that's annoying
<sphalerite>
Sure they can! But you do need to quote them :)
<Lisanna>
kind of wish Nix's attrsets could use arbitrary objects as keys, that'd be cool
<Lisanna>
then we'd have a real map
tgunb has joined #nixos
<sphalerite>
Doesn't work well with laziness, or with functions
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] manveru opened pull request #31145: bundlerEnv: support unicode executables (master...support-bundler-unicode-executables) https://git.io/vFZJN
NixOS_GitHub has left #nixos []
davidak has joined #nixos
<Lisanna>
I'm trying to make a thing where all my build products are at the end of a big attrset tree, and the important build options are "keys" in the attrset tree
<Dj35>
does anybody know how to setup a reverse proxy to a local port with httpd and multiple sub domains, and maybe can point me to a direction where to find documentation or examples..?
<sphalerite>
I want to use kexec so I can iterate on kernel changes faster. I've deactivated prepare-kexec.service so that it uses the kernel and other params I've loaded manually via kexec -l, but systemctl kexec still doesn't work right — it just does what looks like a normal shutdown and then the screen goes black. kexec -e works fine but I do want to shut the system down cleanly…
<tanonym>
I have downloaded tar.gz files of SpiderOak's One backup and Encryptr password manager. Anything specific I need to do to get them working in NixOS? Last time I tried it unpacked them into a directory, but then it could never find the encryptr-bin file that was in the same directory and kept crashing on launch.
<manveru>
tanonym: haven't tried those, but usually you'll have to patchelf binaries before they'll run on nixos
<tanonym>
patchelf?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 3 new commits to release-17.09: https://git.io/vFZkS
<NixOS_GitHub>
nixpkgs/release-17.09 5fd9037 Graham Christensen: openssl_1_0_2: 1.0.2l -> 1.0.2m...
<NixOS_GitHub>
nixpkgs/release-17.09 58d2156 Graham Christensen: openssl_1_1_0: 1.1.0f -> 1.1.0g...
<NixOS_GitHub>
nixpkgs/release-17.09 2f472ca Graham Christensen: openssl: fix nix patch for recent update...
NixOS_GitHub has left #nixos []
<manveru>
tanonym: basically, write a derivation for it
<tanonym>
Slackware tarballs is what I grabbed, figured they'd be the simplest to get working.
<manveru>
do they not have source code?
<tanonym>
Oh, okay. I think there used to be derivatives in 17.03 but not in the 17.09 that updated to. Or it could be that I'm running a ZFS that's causing the problem.
<tanonym>
I believe so, let me check their github.
<sphalerite>
building from source is your best bet
<tanonym>
Encryptr source is on github.
<sphalerite>
(using nix ideally)
<manveru>
encryptr is in nixpkgs at least
<manveru>
from 2016, so might need some love
<tanonym>
Okay, time to beat my head against the documentation until I grok how to write derivations :)
<tanonym>
2.0.x is the latest version you can download from their site. I think they only have the legacy downloads at the moment.
<manveru>
also spideroak one is in there
<tanonym>
Hmph, figures I'd be searching for the wrong derivation.
<c0bw3b>
you need to allow unfree packages also :)
<tanonym>
Currently my nixos is set to use Hummingbird (17.09) as the system updates, but I do have unstable in my nix-channels as well. nix-env -iA unstable.package to get it from the unstable channel, yes?
<tanonym>
I have unfree allowed in my configuration.nix
<manveru>
no, i meant the unstable version of nix, not nixpkgs :)
<manveru>
e.g. nix.package = pkgs.nixUnstable; in your configuration.nix
<tanonym>
Okay, slightly confused now.
<tanonym>
Ah, okay, I see I have nixpkgs.config.allowUnfree in there.
<manveru>
unstable is nix version 1.12, you can check your version with `nix-env --version`
<tanonym>
So I need to add a nix.package line in there as well.
<manveru>
yeah
<tanonym>
nix-env (Nix) 1.11.15
<manveru>
also, totally unrelated... who on earth calls their executable 🎉
<tobiasBora>
I'm trying to install nix-os on my raspberry pi 1 model A, but I've having some troubles. I just downloaded the file "sd-image-armv6l-linux.img", dd it on the sd card, boot using UART, at the beginning everything seems to work fine, but at the end it stops on "Starting kernel...". Do you know what I missed?
<cransom>
manveru: these are the same class of people who renamed one of the main servers from 'neo' (because the company was the matrix themed... matrix was hot at the time) to 'ne0'
<tanonym>
Okay, I added nix.package = pkgs.nixUnstable to my configuration.nix.
<tanonym>
I'm guessing I need to add pkgs.nixUnfree as well?
<manveru>
nope
<manveru>
you already have nixpkgs.config.allowUnfree = true; right?
<tanonym>
Yep.
slyfox has joined #nixos
scribbler has quit [(Ping timeout: 248 seconds)]
<tanonym>
I try to use FLOSS when it does the job, but sometimes the free/open source versions just don't cut it or are too glitchy.
<manveru>
then you can use `nix search` after you do a `nixos-rebuild switch`
<tanonym>
Okiedokie.
Ross has quit [(Ping timeout: 240 seconds)]
boxofrox has joined #nixos
<tanonym>
I am assuming I can tell nix to search either unstable or stable now?
Ross has joined #nixos
<manveru>
not exactly
<manveru>
you can set NIX_PATH to something else, but usually it searches for packages you can actually install without adding another channel
<tanonym>
Isn't that what -iA option does? Lets you define which channel to pull the package from?
<tanonym>
I could see situations where the unstable is not functioning for me so I'd want to grab an older version.
<manveru>
-iA lets you install a package by it's lookup path
<manveru>
so if you have channels for unstable/stable, then you can select
<ylwghst>
ylwghst: sso you are unable to boot from flash drive?
<pmeunier>
right
<ylwghst>
ylwghst: can you still boot into osx?
<pmeunier>
no, because I wiped it, but I successfully installed debian and ubuntu
<ylwghst>
pmeunier: can you install Fedora Media Writer?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pmeunier>
ylwghst: maybe, why?
Fare has joined #nixos
<ylwghst>
restore the nixos image using it... then it should work.. it creates efi partition with efi bootloader on thumdrive so even mac can boo it.. i always use it
ThatDocsLady has quit [(Ping timeout: 264 seconds)]
<ylwghst>
which NixOS image are you trying boot?
simendsjo has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<pmeunier>
ylwghst: I've tried several, nixos 17.09 and 18.03, both minimal and graphical
<ylwghst>
nliadm: I always liked Gnome a lot but I hate some things of gnome-shell eg. only vertical workspaces and some other stupid things we cant even change so I switched to i3+polybar which is actually amazing :-)
mahalel_ has joined #nixos
<infinisil>
tanonym: while that's bad ux, creating it manually would probably solve that
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Mic92>
srk: not exactly production, but > 30 Container on my private server.
<tanonym>
Yeah, the manual addition of the directory did deal with the error.
<tanonym>
I'm still looking at grabbing some of the YaST stuff and integrating it so that there's a nice GUI interface for administering a NixOS install.
<srk>
Mic92: cool, I'm gonna test the hell out of it now and possibly deploy it as hosts for 1700 containers :)
<tanonym>
And it wouldn't have to be nearly as complex as SUSE's version because of how NixOS is :)
<ylwghst>
nliadm: hovewer it was wroking quite good on my system
<srk>
Mic92: yeah, last time I've tested it didn't work very well except for master, now it looks like 2.0.8 works well too
<tanonym>
I have enabled allowUnfree in my configuration.nix already
<srk>
Mic92: but I'm testing on vpsadminos which I'm gonna release now - that is wih possibly different cgroup hierarchies than nixos as I don't have systemd - the reason why I've added the note that pam_cgfs params need to be checked
<Mic92>
tanonym: does nox find it?
ambro718 has joined #nixos
<ylwghst>
tanonym: In good old days I was very satisfied and happy with good old gnome2 then I started using dock rather then bottom panel with apps windows indicator...
ma27 has joined #nixos
<Mic92>
srk: I will test with systemd
<nliadm>
okay, I guess I'll have to poke around the coredump, then
<nliadm>
is nixos configured to keep coredumps by default?
<Mic92>
nliadm: now, but you can enable it
<tanonym>
Okay, nix-env -iA unstable.spideroak isn't building. Even though I have enabled unfree in configuration.nix
Itkovian has joined #nixos
<Mic92>
nliadm: systemd.coredump.enable = true;
<Mic92>
coredumpctl gdb
<tanonym>
Just double checked, and yes, I entered the option correctly.
<Mic92>
tanonym: unfree option also needs to be in .config/nixpkgs
<tanonym>
Huh. Okay.
<Mic92>
.config/nixpkgs/default.nix
<Mic92>
tanonym: configuration.nix only affects systemPackages
jacob has quit [(Quit: Lost terminal)]
<tanonym>
I thought I only had to have it in configuration.nix because I wanted it enabled globally, and I install packages using su for my user anyway.
<Mic92>
users can decide this independent.
<tanonym>
I search for and install packages as root.
<tanonym>
But I'll add the option.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vFZcB
<NixOS_GitHub>
nixpkgs/master 5bd4815 Sander van der Burg: nodePackages: remove overrides for non-existent packages
NixOS_GitHub has left #nixos []
scribbler has quit [(Read error: Connection reset by peer)]
<tanonym>
Huh, no .config/nixpkgs/config.nix either in my regular user ~ or root's ~ directories.
Guest77512 has quit [(Killed (niven.freenode.net (Nickname regained by services)))]
Guest57330 is now known as judson
Judson1 has joined #nixos
<tanonym>
That did it.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to release-17.09: https://git.io/vFZCe
<NixOS_GitHub>
nixpkgs/release-17.09 27705f5 Sander van der Burg: nodePackages: remove overrides for non-existent packages...
NixOS_GitHub has left #nixos []
<judson>
I'm following the introduction of mkRustCrate with some interest, and wondering if there's not room for a working group (or at least a document) about X2Nix style projects
Judson1 is now known as Guest16722
<tanonym>
Bit irksome, but now it works.
<judson>
Does it make sense to mirror external repos verbatim? Should each Nix expression that wraps an outside repo (Rubygems, crates.io, ...) produce its own "lockfile", or should the package versions be incorporated somehow into the top level?
<judson>
(e.g. I opened a PR for jira-cli using pypi2nix, and the only response was "why are you using your own deps instead of the toplevel python.packages?)
<judson>
But for Ruby projects, you absolutely do bundix and then use the resultiing gemset.nix for just your project.
<Mic92>
judson: python is a bit special
<judson>
Mic92: how and why?
<judson>
Moreso than nodejs? ;)
<Mic92>
judson: ruby has the concept of a lockfile, which python has not. Also ruby can have conflicting versions of libraries in its path, but bundler will select the right one.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] sorki opened pull request #31159: ipmicfg: init at 1.27.0 (master...ipmicfg) https://git.io/vFZC6
NixOS_GitHub has left #nixos []
<Mic92>
judson: you cannot generate a nix expression without executing python.
<judson>
And all the same, Nix installs of Ruby projects control what gems are available in their closure
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej closed pull request #30103: lsb-release: wrap to ensure needed utilities are available (master...fix/lsb-release-PATH) https://git.io/vd4AU
NixOS_GitHub has left #nixos []
<manveru>
judson: each language tends to have special needs... it might be possible to have some common format for output of the 2nix tools, but the way they are created and processed differ a lot
<judson>
Mic92: I'm sayin' it seems to me that there's a whole collection of platforms where what you want to do is establish an LDPATH equivalent and run in that, which is strong suit in Nix
<judson>
Even absent any technical commonality, it seems like best practices would be good to work on.
<manveru>
it'd be nice to simply set RUBYLIB path for example, but a lot of projects depend on bundler, which absolutely requires the Gemfile/Gemfile.lock to be present and matching the versions installed in its own special path
<judson>
Does it make sense e.g. to mirror rubygems.org - or to provide nixpkgs developer tooling for collecting gemset.nixes into one set you can select from?
<judson>
maveru: believe me: I know!
<manveru>
:)
<manveru>
and yeah, i've been playing with that
<manveru>
but that'd be giving you a binary cache at most, which doesn't provide a whole lot of speedup over the current way
tanonim has joined #nixos
<manveru>
though i'd love to have some kind of `nix-shell -i ruby -p pry nokogiri` for example
<tanonym>
Seems like a nix-env -i is what keeps booting the connection part way through.
<tanonym>
I'll have to wait and try again when I get home with a hard-wire connection.
<manveru>
tanonym: always at the same package?
<tanonym>
different packages. happened with spideroak and encryptr (nix-env -iA unstable.encryptr)
<tanonym>
Trying palemoon.
simendsjo has quit [(Ping timeout: 248 seconds)]
<tanonym>
Well, the nix-env -iA unstable.palemoon seems to be working so far.
Neo-- has joined #nixos
<judson>
manveru: There's separately some sort of advisory marker between "this is a library, so it makes sense to nix-shell but not nix-env -i" vs. "this is an application"
orivej has quit [(Ping timeout: 248 seconds)]
ma27 has quit [(Ping timeout: 258 seconds)]
<tanonym>
Okay, when the connection doesn't drop the build still keeps failing.
<tanonym>
building '/nix/store/0pzqr6mbb037qhd7h7z7361db7jdp78q-user-environment.drv'...
<tanonym>
error: unexpected EOF reading a line
<tanonym>
builder for '/nix/store/0pzqr6mbb037qhd7h7z7361db7jdp78q-user-environment.drv' failed with exit code 1
<tanonym>
error: build of '/nix/store/0pzqr6mbb037qhd7h7z7361db7jdp78q-user-environment.drv' failed
asuryawa_ has joined #nixos
<tanonym>
Unexpected EOF
<tanonym>
Either I really messed something up in my install or something else is going on.
<Lisanna>
is there a powerset function available in nixpkgs?
<tanonym>
Okay, yeah, it's the EOF error for installs using the -iA flags or just -i flags.
<Lisanna>
and/or nix?
<tanonym>
Spideroak and Encryptr had dropped connections and the EOF error, nix-env -iA unstable.palemoon and nix-env -i weechat both throw the unexpected EOF error
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<tanonym>
Seems like something is corrupted somewhere along the line.
a6a3uh has joined #nixos
asuryawa_ has quit [(Ping timeout: 248 seconds)]
a6a3uh has quit [(Client Quit)]
tgunb has quit [(Quit: Leaving.)]
ma27 has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
dbmikus has quit [(Ping timeout: 240 seconds)]
lassulus has quit [(Changing host)]
lassulus has joined #nixos
<c0bw3b>
Could someone merge #20607 ? it's a simple new package and it's working :)
hiratara has quit [(Ping timeout: 252 seconds)]
frankpf has quit [(Ping timeout: 255 seconds)]
lukois has joined #nixos
lukois has left #nixos []
dedeaux has joined #nixos
jb55 has quit [(Ping timeout: 246 seconds)]
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mpickering opened pull request #31160: Add wrapper for idris exe for gcc/gmp runtime deps (master...idris-10450) https://git.io/vFZ4H
<samueldr>
the contributor might have renamed the branch or something else
davidak has joined #nixos
jb55 has joined #nixos
<pie_>
i saw the last comment but im not sure how im supposed to get it
<samueldr>
I don't know for sure, but I'd first try to merge that branch into an up to date 17.09 branch
kuznero has joined #nixos
<samueldr>
then, using this branch, I wouldn't know without looking at the available packages and/or nixos modules
dedeaux has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
<pie_>
hm
dedeaux has joined #nixos
<kuznero>
Evening! Does it make sense to extend dockerTools.pullImage with additional parameter - internal registry to pull images from? That should solve problem with corporate proxy...
nixer has quit [(Ping timeout: 260 seconds)]
dedeaux has quit [(Client Quit)]
chrishill has joined #nixos
<symphorien>
kuznero: if you have a proxy you might want to use redsocks
<symphorien>
There is even a module for that
<kuznero>
symphorien: have never heard of it. Is it part of dockerTools?
<symphorien>
It makes a proxy transparent with iptable trickery
<kuznero>
Ah, I see
<kuznero>
symphorien: I use cntlm proxy
<kuznero>
Will it work with sandboxing too? Sounds like a workaround...
<symphorien>
Not tested with sandboxing but it should work yes
<kuznero>
symphorien: thanks, will try
<symphorien>
Sandboxed build cant access the network so they don't care about the proxy
S0rin has joined #nixos
erictapen has joined #nixos
mizu_no_oto has joined #nixos
<kuznero>
I see.
<c0bw3b>
is 'strip' part of stdenv ?
tanonym has left #nixos ["Leaving"]
_rht has quit [(Quit: Connection closed for inactivity)]
<kuznero>
symphorien: but then how dockerTools.pullImage suppose to work with sandboxing?
<dtzWill>
c0bw3b: yeah, part of binutils
<kuznero>
It feels like it simply shouldn't
<symphorien>
No idea
<samueldr>
fixed point derivations?
<symphorien>
I don't use docker :)
<c0bw3b>
dtzWill: thanks
<dtzWill>
and it's also part of a setup-hook used by default everywhere xD
mizu_no_oto has quit [(Client Quit)]
<dtzWill>
but I guess that doesn't mean it's put on your PATH but it does mean avoiding doing so doesn't help build closure .. anyway, pretty sure binutils is 100% part of stdenv :)
<kkini>
Are there any requirements one has to satisfy before adding oneself to the list of maintainers in nixpkgs? (like how in Debian there's the whole involved process of becoming a Debian Developer)
<dtzWill>
first example I looked at that sets "STRIP=" was b/c it expects "STRIP" to be the arguments and STRIP_PROG to be the executable. Dunno, that seems like a strange thing :P
<samueldr>
> A list of names and e-mail addresses of the maintainers of this Nix expression. If you would like to be a maintainer of a package, you may want to add yourself to nixpkgs/lib/maintainers.nix and write something like [ stdenv.lib.maintainers.alice stdenv.lib.maintainers.bob ].
<samueldr>
looks like there isn't
<dtzWill>
it's a pretty low bar
kkini has quit [(Remote host closed the connection)]
<dtzWill>
it's like a sign-up sheet for helping thingsg
<Mic92>
pie_: you can take the code and open a new pr
kkini has joined #nixos
<dtzWill>
oh no bye byte kkini
<dtzWill>
welcome back
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nocent opened pull request #31161: networkmanager: add power saving and mac address randomization options for wifi devices (master...master) https://git.io/vFZE1
NixOS_GitHub has left #nixos []
<samueldr>
exactly, you'll be the first one poked when there's an issue with your package :)
<kkini>
dtzWill: ah, thanks. Not sure why I was disconnecting...
<pie_>
Mic92, ok ill try to take a look at it tomorrow, i have no idea what im doing :P
<kkini>
my immortal doppelgänger, kini, will be able to see that when I get home from work, though ;)
<dtzWill>
oh, hahaha, well hooray
* dtzWill
waves to kini
* dtzWill
waves to dtz
universalpackage has quit [(Quit: Konversation terminated!)]
dbmikus has quit [(Ping timeout: 248 seconds)]
<ylwghst>
anyone know how I can insert non breaking space?
<kkini>
Anyway, good to know. I found that a software project I work on has a nixpkgs package that is kind of broken, not to mention rather outdated, so I thought I'd try to fix it up. Seems like I should set myself as a maintainer of the package so I can stay in the loop in the future.
<kkini>
ylwghst: insert it where?
markus1189 has joined #nixos
takle has quit [(Remote host closed the connection)]
<ylwghst>
kkini: anywhere.. in text editor or gimp
<ylwghst>
kkini: i've use control+space on macOS
<ylwghst>
d*
<kkini>
In Emacs I type `C-x 8 RET` to get a prompt where I can search for the unicode name of whatever character I want to insert, which is handy
<kkini>
" " <- a non breaking space, unless my IRC client screws it up
<ylwghst>
kkini: thx, space you've sent is working
<ylwghst>
however i need to bind it to some key..
asuryawanshi has joined #nixos
<orivej>
I'm not sure if this is the default, but "right alt", "space", "space" inserts nbsp for me
<kkini>
The indentation of with-expressions in Emacs nix-mode strikes me as a bit odd... if I write "with foo;\nbar;" then "bar;" is no more deeply indented than "with foo;"
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<rycee>
I'm wrestling a bit with the session dbus in NixOS. Could I get some samples of what NixOS users get when running `echo $DBUS_SESSION_BUS_ADDRESS ; nix-shell -p qt5.qttools.bin --run qdbus | grep systemd1`?
takle has joined #nixos
shymega has quit [(Quit: So long, and thanks for all the talking doors.)]
shymega has joined #nixos
S0rin has quit [(Ping timeout: 248 seconds)]
jtojnar has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] eqyiel opened pull request #31162: awsebcli: fix build and update (master...awsebcli-fixes) https://git.io/vFZVc
NixOS_GitHub has left #nixos []
ylwghst has quit [(Remote host closed the connection)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
tanonym has joined #nixos
digitus has quit [(Quit: digitus)]
<__monty__>
I'm using nix on arch. I source nix.sh in my zshrc and at the end I exec fish. So my interactive shell is fish. The nix.sh script sets NIX_PATH to nixpkgs=...:nixpkgs=... The repetition seems redundant but the real issue is I can't seem to set NIX_PATH, setting it in fish is overridden by the script.
Gohla has joined #nixos
ambro718 has quit [(Ping timeout: 240 seconds)]
babs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 4 new commits to master: https://git.io/vFZ61
<NixOS_GitHub>
nixpkgs/master 054baf2 Ruben Maher: awsebcli: unbreak after cement update...
<cement>
that nixpkgs update had the word "cement" in it
<clever>
oh, lol
<clever>
my irc client only alerts me if my name is at the start of a msg
<kkini>
some poor soul in this channel has the nick "so"
<kkini>
I can only assume they've turned off nick alerts altogether
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 opened pull request #31165: Mitmproxy (master...mitmproxy) https://git.io/vFZ6N
NixOS_GitHub has left #nixos []
<cement>
hopefully
chessai has joined #nixos
<kkini>
Is there some way to fetch a URL and just believe whatever hash you get from what you downloaded? Like, say I want a nix expression that downloads the master branch from some github repository. I don't know what the hash is going to be when I get it.
<clever>
kkini: builtins.fetchurl will re-download every hour
<kkini>
This isn't a big collision issue because I'm not trusting that the hash will be equal to some fixed hash, I'm just trusting that the hash will be equal to whatever it will be equal to
asuryawanshi has joined #nixos
<kkini>
clever: I'm not sure I follow... if builtins.fetchurl is the same as pkgs.build-support.fetchurl in nixpkgs, it seems to error out if a hash is not provided
<clever>
the one under pkgs needs a hash
<kkini>
on second thought, what I say doesn't make sense -- you'd basically have to download the git repo from outside the nix expression, since the derivation hash needs to only depend on the inputs to the expression, right
<kkini>
I probably can't have a derivation whose $out depends on stuff that's learned during the computation since that's a side effect
asuryawanshi has quit [(Ping timeout: 248 seconds)]