<{^_^}>
→ 3fa0ba91 by @Ericson2314: lib/systems: Parse more arm cpu types
<{^_^}>
→ 0b45f0eb by @Ericson2314: Merge pull request #40261 from obsidiansystems/more-arm
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #40262 → lib/systems: Parse more arm cpu types → https://git.io/vpXiG
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to release-18.03: https://git.io/vpXPG
<{^_^}>
→ 3fa0ba91 by @Ericson2314: lib/systems: Parse more arm cpu types
<{^_^}>
→ 4009b081 by @Ericson2314: Merge pull request #40262 from obsidiansystems/more-arm
adetokunbo has joined #nixos
<adetokunbo>
Hello #nixos
<sir_guy_carleton>
hello
rosa has quit [Quit: rosa]
<adetokunbo>
sir_guy_carleton: hello!
<adetokunbo>
I've written some nix functions that I want to make available as a library
<infinisil>
adetokunbo: put them on github?
<adetokunbo>
infinisil: in their own repository?
<adetokunbo>
infinisil: I think that's what I want to do
<infinisil>
adetokunbo: You could alternatively make a PR for nixpkgs so they are in the standard lib :)
<infinisil>
Which makes sense if they are useful enough
goibhniu has quit [Ping timeout: 256 seconds]
<adetokunbo>
infinisil: I might want to add them to nixpkgs in the future, but for now I'd just like to put them somewhere they can be used.
<infinisil>
A repository be it!
rosa has joined #nixos
<infinisil>
You can just put them in a default.nix file in the root
<adetokunbo>
infinisil: so how does someone else use nix expressions in an arbitrary git repo? You can't just import than them.
<infinisil>
With a `{ pkgs ? import <nixpkgs> {}, lib ? pkgs.lib }:` at the top would be best
day|flip has joined #nixos
<infinisil>
Either clone it, or import-from-derivation
<infinisil>
IFD (import-from-derivation) means to do something like `let otherlib = import "${builtins.fetchTarball "https://github.com/foo/lib"}"; in ...`
aisiszane has joined #nixos
<adetokunbo>
infinsil: IFD sounds like what I need.
<infinisil>
However, IFD is slow
<day|flip>
hay guys. I'm trying to copy theme folder. But having issue with sourceRoot. I could be going at this the wrong way. here how im using it. sourceRoot = "/home/days/.communi/";
<clever>
day|flip: sourceRoot must be a relative path, and it must refer to whatever unpacking the source created
<infinisil>
adetokunbo: And you probably want to use Nix 2.0's new builtins.fetchTarball { url = ...; sha256 = ...; } to not have to refetch it every hour
rosa has quit [Client Quit]
<adetokunbo>
infinisil: thanks! is the repeated refetch the only thing that makes it slow?
<day|flip>
clever: then what should I used for setting DIR to copy the the theme from?
vaninwagen has quit [Quit: Connection closed for inactivity]
<clever>
day|flip: can you gist your current nix expression?
<infinisil>
adetokunbo: I'm not sure.. it might be, for normal usage at least. I'm pretty sure there's something pretty bad with hydra (Nix CI), because IFD is not allowed to use in nixpkgs
aisiszane has quit [Ping timeout: 246 seconds]
<infinisil>
But i think with the builtins.fetchTarball and co. it should be fine
<samueldr>
hmm, given a job (nixos:release-18.03:nixos.containerTarball.x86_64-linux) how can I get the newest one coming from a successful nixos:release-18.03:tested on hydra?
<samueldr>
so, I'm trying to navigate from :tested to :nixos.containerTarball.x86_64-linux, which I don't even know if it makes sense
day|flip has quit [Quit: leaving]
ryantrinkle has quit [Ping timeout: 250 seconds]
<samueldr>
latest and latested-finished don't seem to relate to the :tested aggregate job
jackdk has joined #nixos
andreabedini has joined #nixos
<infinisil>
Let's see how reproducible my config really is..
<infinisil>
I have always built my 3 systems from machine A, but now I'm using the git checkout to build it from machine B (which is more powerful)
<dtz>
haha woo
<infinisil>
(And I'm updating nixpkgs in the process too)
<dtz>
non-determinism is moderately common
<infinisil>
Lol, the build failed
<infinisil>
Because of something missing on NIX_PATH
<dtz>
but hopefully functionally equivalent :)
<Xal>
what's the recommended way to separate machine-specific components of your config, anyhow?
<samueldr>
oh, for anyone following my trek, I'm looking at the channels script to check how the iso is copied
<Xal>
right now I just have a general configuration directory, and then a directory with a $hostname.nix for each machine
<Xal>
my update-config script copies the config with the correct hostname to /etc/nixos/configuration.nix and runs nixos-rebuild
aisiszane has joined #nixos
<Xal>
I was just wondering if there was a different way, even though this works pretty well for now
<infinisil>
Xal: Nixops!
<samueldr>
and using src-url from the channel folder I can find what I want, a nixos:release-18.03 jobset
<infinisil>
I'm using it for all my machines, works welllll
aisiszane has quit [Client Quit]
<samueldr>
while not nixops, my repo has machines/$HOSTNAME/default.nix, and /etc/nixos/configuration.nix imports machines/$HOSTNAME (with hostname replaced)
<Xal>
samueldr: that sounds like a really good stopgap solution while I learn nixops, thanks!
<Xal>
infinisil: I /really/ should get around to figuring out nixops then, huh
ison[m] has joined #nixos
<infinisil>
Xal: You could even make your own rebuild script that sets `nixos-config=path/to/your/config/for/this/machine.nix` in NIX_PATH, then nothing is needed in /etc
kandinski has quit [Remote host closed the connection]
<andreabedini>
newbie here, how does the nodePackages thing work? eg. I noticed I can install nixpkgs.nodePackages.pulp but not nixpkgs.nodePackages_8_x.pulp
<andreabedini>
while both nixpkgs.nodePackages_8_x.bower and nixpkgs.nodePackages.bower work ok
jackdk has quit [Ping timeout: 250 seconds]
adetokunbo has quit [Quit: This computer has gone to sleep]
adetokunbo has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
adetokunbo has quit [Client Quit]
adetokunbo has joined #nixos
adetokunbo has quit [Client Quit]
<infinisil>
Did you know, once somebody committed a 40MB bz2 ball of bootstrap tools to nixpkgs, that's what you're downloading every time you clone nixpkgs..
adetokunbo has joined #nixos
<infinisil>
Another time somebody committed a 23MB tags file..
<samueldr>
oof
<andreabedini>
ahah nice, I guess I'll --depth 1 from now on
adetokunbo has quit [Client Quit]
adetokunbo has joined #nixos
jrolfs has joined #nixos
<infinisil>
Doesn't that just prevent submodules from being cloned?
adetokunbo has quit [Client Quit]
adetokunbo has joined #nixos
<andreabedini>
no, it creates a "shallow clone", with history truncated
<infinisil>
Oh interesting, didn't know that
adetokunbo has quit [Client Quit]
adetokunbo has joined #nixos
<andreabedini>
some operation might require longer history but there should be a way to "un-shallow" the repo basically downloading the rest
<gchristensen>
there is, --deepen on `fetch`
adetokunbo has quit [Client Quit]
adetokunbo has joined #nixos
<clever>
also, if you do a shallow clone then deepen it, that makes the load on github worse then if you just did a full clone :P
<gchristensen>
note that with nixpkgs on github at least, it is extremely expensive to deepen a repo, and pretty much if it isn't in the tip, it is better to do a full clone
<infinisil>
I guess I should use --depth 1 for my nixbot (it clones nixpkgs, but doesn't even need the past history)
<clever>
infinisil: if your not getting history, dont even bother with git
<infinisil>
clever: But I want to update it cheaply
<infinisil>
> :u
<{^_^}>
Updated nixpkgs
<samueldr>
both having and eating the cake
<clever>
the above url is about 20mb for nixpkgs i think
<infinisil>
Yeah I don't wanna download 20MB every time just to get a couple new commits
joehh has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
* gchristensen
waves to joehh
<infinisil>
But --depth 1 will be a nice improvement for the initial clone
<andreabedini>
back to my problem :D i noticed node-packages-v8.nix doesn't have a package I'd like to have, how would I go about ?
<samueldr>
I'll be writing up my findings on running containerTarball under an LXC container with proxmox, if anyone here has already done it and knows issues that are not obvious
adetokunbo has joined #nixos
<infinisil>
Brb, I can't build my systems because apparently something is keeping all my 16GB of RAM so I don't have enough for it
<infinisil>
Gonna reboot..
doyougnu has quit [Ping timeout: 246 seconds]
adetokunbo has quit [Client Quit]
adetokunbo has joined #nixos
griff_ has joined #nixos
ericsagnes has joined #nixos
adetokunbo has quit [Client Quit]
adetokunbo has joined #nixos
jgertm has quit [Ping timeout: 268 seconds]
adetokunbo has quit [Client Quit]
<andreabedini>
ok, I found what I have to do (basically use node2nix)
Ridout has quit [Ping timeout: 246 seconds]
<andreabedini>
what's the reason the default nodejs is still v6? (if there is one)
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
oltoAltn has joined #nixos
olto has quit [Ping timeout: 255 seconds]
<infinisil>
Does it make sense to commit a stack2nix generated file?
<infinisil>
Because it's rather big
<clever>
infinisil: we always commit it, because it cant be generated in a pure manner, so hydra requires it
<infinisil>
clever: Hmm yeah
mbrgm has quit [Ping timeout: 250 seconds]
<infinisil>
And since the order of the packages doesn't change on regeneration, it isn't too bad. The diff of adding a new package to your .cabal is very short
mbrgm has joined #nixos
<clever>
yep
<clever>
with the old stack2nix, it only contained the closure of your project, so it was relatively small
<clever>
but with the latest version, it has every single package from hackage
<infinisil>
Oh really
<clever>
with the versions pinned to what you specified
<infinisil>
Why was it done this way?
<infinisil>
So you can add new packages without regenerating it?
<clever>
i think it was mostly just a side-effect of some recent changes, using stack as a library
<infinisil>
Hmm I see
ftzm has joined #nixos
dbmikus has quit [Ping timeout: 246 seconds]
<infinisil>
clever: Having had a look at mine, I think it only contains stackage ones
<Xal>
infinisil: you can increae the number of core but limit the memory of ghc programs with +RTS -h <mem>
<infinisil>
Thanks, but trying to figure out how to override ghc arguments in nixpkgs would be a pain :P
andreabedini has joined #nixos
<mattyu>
Hi all - I tried upgrading from 17.09 to 18.03 last week but something happened with my nix-store and nix 2.0 (from nix 1.11.16). I rolled back as I couldn't install anything with nix-env after the upgrade. I'd like to try again - any advice about upgrading from nix 1.11.16 to nix 2.0?
<clever>
infinisil: 80% of nixpkgs already fails to build if you get EOVERFLOW from readdir()
<clever>
infinisil: it silently treats the directory as empty
<infinisil>
clever: Why would that happen?
<clever>
infinisil: that error happens if you have a 32bit nfs client talking to a 64bit nfs server, and your inode numbers dont fit inside 32bits
Ridout has joined #nixos
<mattyu>
Any suggestions on how to clean up my nix profile prior to upgrading?
<infinisil>
These 64bitters and their large number, pah
<clever>
infinisil: and xfs inodes easily go over 4 billion on a 2tb disk
jackdk has joined #nixos
<clever>
infinisil: the solution, is to add a special #define at compile time, which makes glibc use readdir64 rather then readdir, but it also changes the size of some typedefs, which might break software
<infinisil>
mattyu: No idea, but I think nix-env stores everything in the .nix-profile folder, so if you just move that to .nix-profile.old, you should have a 'fresh' env, if you're fine with reinstalling all the stuff you need again
<clever>
infinisil: .nix-profile points to a place in /nix/var/nix/profiles/
<infinisil>
You could of course adapt the ways of specifying your packages in a nix file, which gets rid of all nix-env related problems
<infinisil>
clever: Oh right..
<clever>
and nix.sh will repair the symlink, and restore evrything
<infinisil>
How do you clean it up then?
<clever>
if you intentionally symlink it to a different profile in the same area, it would probably work
<mattyu>
infinisil: what is this strategy of specifying packages in a nix file?
<qenuh>
I have a Haskell project in a subdirectory that I'm building with callCabal2nix as part of a larger project. However, /any/ change to that larger project (i.e. not in the haskell subdirectory) causes the Haskell project to rebuild from scratch. Any tips as to how to start investigating? One thing I see that I don't understand is the rebuilds are always preceded with a line like `building
<{^_^}>
mattyu: home-manager allows you to manage your per-user configuration similarly to NixOS' configuration.nix: https://nixos.wiki/wiki/Home_Manager
<infinisil>
Or alternatively with `nix-env -ir -f ./default.nix`
<qenuh>
There are already no changes to the only directory `callCabal2nix` is supposed to be looking at. (e.g. the rebuild is triggered by `touch foo` in a parent directory) and I'm using `gitignoreSource` already
<infinisil>
> with import <nixpkgs> {}; { inherit hello; } # mattyu: the default.nix looking like this, for having package hello installed
<{^_^}>
{ hello = <CODE>; }
<qenuh>
clever: ^
<cheater>
how do i add a shebang to my_script? do i just put #!/bin/bash in there, or is there some special thing i use? assuming nix would use its own bash
<clever>
cheater: i always use #!/usr/bin/env bash
<clever>
cheater: nix will then patch it with an absolute path in the fixup phase
<cheater>
i would assume nix would also use its own env
<clever>
and if its unpatched, env just searched PATH for you
<clever>
qenuh: try using cleanSource and see if it makes a difference
<mattyu>
Thanks for the guidance - will take a look at home manager or this default.nix suggestion..
<mattyu>
Still lots to learn here!
<qenuh>
clever: Trying that now. While I'm waiting, does the `discard` thing sound familiar to you?
Arcaelyx_ has quit [Read error: Connection reset by peer]
<clever>
the only time it wont exist is when your inside a sandboxed build
chrisbarrett has quit [Ping timeout: 246 seconds]
<qenuh>
clever: Still rebuilds despite `cleanSource`
Arcaelyx has joined #nixos
<clever>
qenuh: did you do 2 full builds or 1?, cleanSource will likely cause 1 rebuild because the paths change some
<qenuh>
2
<infinisil>
,nix-env-r = A simple way to install all your packages declaratively is to use `nix-env -ir default.nix` with the file of the form `with import <nixpkgs> {}; { inherit hello; }` to install hello. Note that with the -r switch this removes all your previously installed packages
<{^_^}>
nix-env-r defined
chrisbarrett has joined #nixos
<clever>
qenuh: run nix-instantiate on the derivation, then make a change and nix-instantiate again, then nix-diff the 2 .drv's
jperras has quit [Ping timeout: 240 seconds]
<cheater>
aha, just using ${bash}/bin/bash is fine
<infinisil>
,outPath = To get the resulting output path of your derivation/package, either interpolate it in a string: "${pkgs.hello}" or use the outPath attribute: pkgs.hello.outPath
<{^_^}>
outPath defined
<clever>
cheater: there is also ${stdenv.shell}
<infinisil>
> ${stdenv.shell}
<{^_^}>
error: syntax error, unexpected DOLLAR_CURLY, at (string):21:1
<qenuh>
clever: Will try that. One thing I just noticed. I'd been doing `pkgs.lib.cleanSource ../ + "haskell-project"` so that I can take advantage of the .gitignore in the project root with `gitignoreSource`. When I switch to the more (at the moment) more straightforward `pkgs.lib.cleanSource ./.` I don't get any rebuilds
Have-Quick has joined #nixos
<clever>
> let f = x: "foo" in x "a" + "b"
<{^_^}>
error: syntax error, unexpected IN, expecting ';', at (string):21:18
<clever>
> let f = x: "foo"; in x "a" + "b"
<{^_^}>
attempt to call something which is not a function but an integer, at (string):21:22
<clever>
> let f = x: "foo"; in f "a" + "b"
<{^_^}>
"foob"
<qenuh>
I guess nix doesn't realize that an unchanged subdirectory in a directory that has changed is unchanged?
<clever>
qenuh: due to order of operations, that is interting ALL of ./., which includes the non-haskell changes, then appending "haskell-project" to the path
<clever>
qenuh: that is why it fails
<clever>
you want to wrap the (path+string)
<clever>
so it applies cleansource to the subdir
<qenuh>
Yeah. Unfortunately that doesn't work with `gitignoreSource` because it expects to find the `.gitignore` file in the given directory. I guess I was implicitly hoping nix would recognize that all the files in my subdirectory are the same even if the unused/irrelevant files in the parent directory have changed. I will just change to use one `.gitignore` file for each subproject. Thanks for talking through it!
<clever>
cleanSource doesnt read .gitignore
jperras has joined #nixos
rauno has joined #nixos
<qenuh>
Yeah, `gitignoreSource` does
<qenuh>
Which I prefer/need
blankhart has joined #nixos
Guest86765 has left #nixos [#nixos]
<clever>
qenuh: what about running cleanSource on a subdir of gitignoreSource?
<clever>
with the right order of operations enforced
jrolfs_ has joined #nixos
jrolfs has joined #nixos
jperras has quit [Ping timeout: 250 seconds]
<qenuh>
What would that do? I think I'd still need to `gitignoreSource` the parent directory which incur the spurious rebuild even if I `cleanSource` on the resulting child directory
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs_ has quit [Ping timeout: 240 seconds]
<clever>
qenuh: cleanSource will hash the directory after cleaning, and base its storepath on that hash
<clever>
qenuh: and if the contents of the dir havent changed, the path wont change, and it wont trigger a rebuild
<qenuh>
ooh, interesting. I will try that then
<clever>
gitignoreSource does the same, but its acting on the hash of the entire project, not the subdir
<qenuh>
Yeah. So I'm really just "abusing" `cleanSource` in this instance to rehash things
iqubic has joined #nixos
<clever>
yeah
<qenuh>
ugh. Get an error about `string '...' cannot refer to other paths` which I encountered recently
<clever>
try without the gitignoreSource and see how bad the rebuilds are?
<qenuh>
I think I'll just try the thing I mentioned early about having a "local" `.gitignore` for each subproject. It's not really a bad solution anyway
joehh has joined #nixos
mattyu has quit [Ping timeout: 250 seconds]
<qenuh>
thanks again
<clever>
yep
orivej has quit [Ping timeout: 264 seconds]
chrisbarrett has quit [Ping timeout: 246 seconds]
<infinisil>
> fortune
<{^_^}>
"Your boyfriend takes chocolate from strangers."
jbboehr has joined #nixos
jrl has quit [Ping timeout: 248 seconds]
joehh has quit [Ping timeout: 256 seconds]
* infinisil
doesn't have a boyfriend
[Leary] has joined #nixos
Lears has quit [Ping timeout: 240 seconds]
<iqubic>
> fortune
<{^_^}>
"Stay the curse."
<iqubic>
It should be course.
jperras has joined #nixos
<samueldr>
it may be a play on word, like many fortunes
jperras has quit [Ping timeout: 260 seconds]
rosa has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
rosa has quit [Client Quit]
Lears has joined #nixos
[Leary] has quit [Ping timeout: 246 seconds]
schoppenhauer has quit [Ping timeout: 250 seconds]
ryantrinkle has joined #nixos
schoppenhauer has joined #nixos
rosa has joined #nixos
jrolfs has joined #nixos
jtojnar has quit [Ping timeout: 256 seconds]
drakonis has quit [Read error: Connection reset by peer]
<pingu_>
Hey, I'm trying to set up a CI server with hydra. I got my Haskell project building on it after a bunch of pain, but, now I need to get it *off* the hydra server and into production.
Guanin_ has quit [Ping timeout: 246 seconds]
<pingu_>
There seems to be very little documentation around channels, and they seem to be be disabled on my hydra deployment: "Nix channels are not supported by this Hydra server.
uptime is now known as democracytime
pmade has quit [Ping timeout: 264 seconds]
<pingu_>
This seems to be related to my store_uri choice, or my server_store_uri choice? There's very little documentation around this, and I'm wondering what the sanest route to actually serving these packages is.
<pingu_>
I'm quite surprised I can't just "download" the resulting artefacts? Can't I?
jrolfs has quit [Ping timeout: 246 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
jrolfs has joined #nixos
<clever>
pingu_: the hydra website is also a binary cache
<clever>
pingu_: just add it to the binary caches list in your nix config, and run nix-build against the identical nix expressions, and it will download the pre-built stuff
<pingu_>
OK so channels aren't really used? I'll give it a go now, thanks.
jD91mZM2 has joined #nixos
Guanin_ has joined #nixos
<clever>
pingu_: channels can be used, but i dont really bother with them
<jD91mZM2>
This is probably a stupid question, but why do I need to allow my router in my firewall in order to use a wireless connection? I'm not using the default DNS, and I assume the wireless connection isn't a traditional one that respects the firewall... or is it?
spear2 has quit [Remote host closed the connection]
dbmikus has quit [Ping timeout: 250 seconds]
<clever>
jD91mZM2: is there any ethernet plugged in while your testing the wifi?
<jD91mZM2>
clever: Nope
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #40270 → treewide: Get rid of `*Platform.arch` → https://git.io/vpX5P
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #40272 → treewide: Get rid of `*Platform.arch` → https://git.io/vpX51
<jD91mZM2>
clever: What difference could it make? Now I'm even more curious :P
<clever>
jD91mZM2: does /etc/resolv.conf update when you connect with wpa_supplicant?
<jD91mZM2>
clever: I use NetworkManager. And it does.
<{^_^}>
[nixpkgs] @FRidh pushed to master « python.pkgs.traitlets: fix build and don't include .pytest_cache »: https://git.io/vpX59
<clever>
if you have 2 connections active, it may stick to the first one that was working
<clever>
and can you ping that dns server?
<jD91mZM2>
I didn't try pinging my ISPs official one, but I tried pinging 1.1.1.1, and that seemed to send one ping but I didn't get any responses
<jD91mZM2>
(and yes 1.1.1.1 is excluded from my killswitch of course)
<clever>
sounds more like routing or gateway problems
<clever>
check `ip route` and confirm if the gateway and routes are right, and try to ping the gateway
<jD91mZM2>
Right now I'm on a VPN so ip route just shows me the VPN's IP
<kuri0>
does nix use sha256 since the hashes are shorter than sha256
<jD91mZM2>
Basically I have a killswitch that blocks all connections except for my DNS and VPN. But I couldn't actually either ping my DNS or connect to my VPN without first also excluding 192.168.0.0/24 from that list
<jD91mZM2>
So I have gotten internet working, I'm just really curious why that is
<kuri0>
i think its sha1
<clever>
kuri0: one min
<jD91mZM2>
kuri0: I've noticed that as well. Their hashes seem to be 52 characters instead of 64.
<pingu_>
isLocalStore seems to check store_uri, like the channels code path I was looking at before. My store_uri is file:///var/hydra-cache/, or something like that.
jrolfs has quit [Ping timeout: 255 seconds]
<clever>
pingu_: you set a config flag that uploads the build results elsewhere
<clever>
pingu_: then you need to create a static http server that serves the files in that directory i believe
FRidh has joined #nixos
<clever>
pingu_: and that static http server is the binary cache
<pingu_>
clever: do you remember what the config file is? This is probably what I'm missing
<pingu_>
Uh, config flag I mean
<clever>
pingu_: that would be the store_uri you just pasted
jrolfs has joined #nixos
<pingu_>
Ooh. Are you saying that I should unset my store_uri and use the default if I want hydra to handle it?
<clever>
yeah
<clever>
or manually serve that directory with nginx
<kuri0>
clever, so its sha256 with the last 10 characters removed ?
<clever>
kuri0: something like that
<clever>
kuri0: and its base32 rather then base16
<pingu_>
clever: I suspect manuallly serving that directory wouldn't work, as it's just a bunch of xxxxxxx.narinfo files
<pingu_>
No nix-cache-info
<clever>
you can manually add a nix-cache-info
<pingu_>
Alas I'll see where unsetting that gets me, although I don't see where I'll set the keys up now.
<clever>
also, do the .narinfo files have nar: paths pointing to files that exist?
srl295 has quit [Quit: Connection closed for inactivity]
jrolfs has quit [Ping timeout: 250 seconds]
<pingu_>
clever: should my hydra-queue-runner get rw access to /nix/store/nar? I.e. is this conceptually the correct thing?
<pingu_>
(I have no idea what thes .nar thigns are, I presume they're metadata for the binary cache)
<Myrl-saki>
clever: Wouldn't it be 4/5 the size?
dhess has quit [Ping timeout: 240 seconds]
<sphalerite>
yeah I think so too Myrl-saki
dhess has joined #nixos
<clever>
pingu_: it sounds like your configuring things wrong
<pingu_>
Indeed
<clever>
pingu_: hydra should just be talking to the nix-daemon to import all things into the local store
<clever>
and not attempting to write to a nar directory
noefk has quit [Ping timeout: 260 seconds]
Synthetica has joined #nixos
<pingu_>
clever: hydra-queue-runner seems to be trying to unlink nix-cache-info.tmp.28403 files in /nix/store/
<pingu_>
So I'm wondering if myabe the originial mis-configuration has left state behind in the database
knupfer has joined #nixos
<clever>
pingu_: try just deleting the store-uri from your config entirely, and then see what it does
ericsagnes has quit [Ping timeout: 255 seconds]
sys9mm has quit [Ping timeout: 240 seconds]
<pingu_>
clever: I think I fixed it for now... thanks. Must have been some startup leftover state, I just ran it as root to get past the permission errors once and it's starting normally now.
<clever>
it shouldnt need to run as root
<clever>
which config file are you editing?
<pingu_>
I'm not, just ran it once to clear out the state.
sys9mm has joined #nixos
<clever>
ah
<pingu_>
hydra.conf
<pingu_>
It's running, but this seems weird: May 10 05:47:09 hydra1 hydra-queue-runner[29198]: copying path '/nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131' to 'file:///nix/store'...
<clever>
nixos is going to undo that change every time you reboot
<clever>
you must edit the config in configuration.nix and then nixos-rebuild switch
noefk has joined #nixos
jrolfs has joined #nixos
<pingu_>
I'm actually deploying via nixops to AWS, so, pushing the changes that way
ericsagnes has joined #nixos
<pingu_>
clever: so, as mentioned, things *seem* wrong still.
<pingu_>
May 10 05:52:43 hydra1 hydra-queue-runner[29198]: while copying/substituting output ‘/nix/store/yd8jnqsrq92vs7n73avvq1ayi0axllbl-which-2.21’ of ‘/nix/store/k5bvxpkscjr5i60kkd1b9aahcb6n8w10-which-2.21.drv’: opening file '/nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap.narinfo.tmp.29198': Permission denied
<pingu_>
Do you think that hydra-queue-runner should b trying to open these narinfo files in /nix/store/?
<clever>
has hydra-queue-runner restarted since you deployed, what does the new hydra.conf say?
<clever>
it shouldnt be opening that file
<pingu_>
Yes, I've restarted it.
<pingu_>
The current one says:
<clever>
what does the new hydra.conf say?
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #40272 → treewide: Get rid of `*Platform.arch` → https://git.io/vpX51
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to release-18.03: https://git.io/vpXdF
<{^_^}>
→ a02be2bd by @Ericson2314: treewide: Get rid of `*Platform.arch`
<{^_^}>
→ 45cd6090 by @Ericson2314: Merge pull request #40272 from obsidiansystems/lib-platform-simplify-18.03
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #40270 → treewide: Get rid of `*Platform.arch` → https://git.io/vpX5P
leat has quit [Ping timeout: 255 seconds]
<clever>
2018-05-10 02:46:31 < clever> pingu_: try just deleting the store-uri from your config entirely, and then see what it does
<pingu_>
sure
<{^_^}>
[nixpkgs] @Ericson2314 pushed 8 commits to staging: https://git.io/vpXdp
<{^_^}>
→ e42a7a5c by @Ericson2314: lib/systems: Add uClibc just like MUSL
<{^_^}>
→ 3fa0ba91 by @Ericson2314: lib/systems: Parse more arm cpu types
<{^_^}>
→ f063a860 by @Ericson2314: xbursttools: Cleanup slightly
<pingu_>
clever: P.S. which version of hydra do you use? The one in nixpkgs?
<clever>
yeah
<pingu_>
I might not be doing that... I'll look at that next.
dadadus[m] has quit [*.net *.split]
WilliamHamilton has quit [*.net *.split]
Singularity[m] has quit [*.net *.split]
DenisLehmann[m] has quit [*.net *.split]
spacekitteh[m] has quit [*.net *.split]
smrtak[m] has quit [*.net *.split]
asp_ has quit [*.net *.split]
nh2[m] has quit [*.net *.split]
Albtrz[m] has quit [*.net *.split]
posco has quit [*.net *.split]
patrl[m] has quit [*.net *.split]
jgl[m] has quit [*.net *.split]
bobvanderlinden_ has quit [*.net *.split]
nelag[m] has quit [*.net *.split]
peel[m] has quit [*.net *.split]
Minijackson[m] has quit [*.net *.split]
BurNiinTRee[m] has quit [*.net *.split]
petersjt014[m] has quit [*.net *.split]
timclassic has quit [*.net *.split]
davidak[m] has quit [*.net *.split]
pierrebeaucamp[m has quit [*.net *.split]
cornu[m] has quit [*.net *.split]
olejorgenb[m] has quit [*.net *.split]
reactormonk[m] has quit [*.net *.split]
CoopDot has quit [*.net *.split]
<pingu_>
clever: success! Removing that gives me a nix-cache-info successfully serving, but I don't know how I'm going to find it where to find my secret key now.
<pingu_>
Yeah... I get deprecated errors if I do that.
dhess has quit [Ping timeout: 246 seconds]
<clever>
see if it still signs things
<pingu_>
Hence why I followed the instructions in the first place to convert to store_uri. I read somewhere that it's not actually deprecated, though.
<clever>
we may need to double-check the docs for store_uri
<pingu_>
Sure. Will do. Thanks.
LysergicDreams has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
griff_ has joined #nixos
cruxeternus has quit [Remote host closed the connection]
noefk has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #40275 → fontconfig, misc A/V packages: No crossAttrs → https://git.io/vpXFq
dhess has joined #nixos
MP2E has quit [Remote host closed the connection]
fiddlerwoaroof_ has quit [Quit: Gone.]
fiddlerwoaroof has joined #nixos
fiddlerwoaroof has quit [Remote host closed the connection]
fiddlerwoaroof has joined #nixos
dhess has quit [Ping timeout: 250 seconds]
jtojnar has joined #nixos
rosa has joined #nixos
fiddlerwoaroof has quit [Client Quit]
jrl has quit [Read error: Connection reset by peer]
fiddlerwoaroof has joined #nixos
fiddlerwoaroof has quit [Remote host closed the connection]
<sphalerite>
Anyone familiar with distributed computing stuff — is there a magical solution out there with which I can get multiple machines to behave as if they're all one big machine?
fiddlerwoaroof has joined #nixos
<sphalerite>
I'd quite like to split building a single derivation across 10 machines
noefk has joined #nixos
jperras has joined #nixos
<giaco>
if I compile nix to run on a different prefix, will it recompile everything or will it perform magic trickery and install binaries just like if it were /nix ?
<sphalerite>
It will recompile everything
<sphalerite>
But there is another option — chroot stores
<{^_^}>
[nixpkgs] @Ericson2314 pushed 3 commits to staging: https://git.io/vpXF6
<{^_^}>
→ 7d0906ee by @Ericson2314: fontconfig: Clean up cross
<{^_^}>
→ 7864a17b by @Ericson2314: misc video players: Clean up cross
<{^_^}>
→ 7d8e16d9 by @Ericson2314: Merge pull request #40275 from obsidiansystems/fewer-crossAttrs
<sphalerite>
I'm not sure they work on android, but the idea is that nix creates a mount namespace (and a user namespace to allow this when necessary), and bind-mounts some other path to /nix
<giaco>
user namespaces are not available on android
dhess has joined #nixos
<giaco>
the only way to perform similar magic is chroot if rooted or proot that works without root
drag has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
<sphalerite>
yeah then it'll only work with root on android
<{^_^}>
[nixpkgs] @aszlig pushed to master « nixos/testing: Fix output of systemd messages »: https://git.io/vpXF7
rosa_ has joined #nixos
rosa_ has quit [Excess Flood]
iqubic` has joined #nixos
rosa_ has joined #nixos
noefk has quit [Ping timeout: 260 seconds]
iqubic has quit [Ping timeout: 246 seconds]
rosa has quit [Ping timeout: 246 seconds]
jD91mZM2 has quit [Quit: WeeChat 2.0]
jD91mZM2 has joined #nixos
<jD91mZM2>
giaco: You're running NixOS on android? o_o
<giaco>
do you have any good read that can help me in choosing nix over guix?
<giaco>
jD91mZM2: just nix
<jD91mZM2>
That's really cool
<giaco>
well, "just"
<giaco>
brb
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noefk has joined #nixos
<jD91mZM2>
Also, I swear I've seen guix somewhere before, just never understood the point until now.
<{^_^}>
[nixpkgs] @aszlig pushed to master « nixos/dovecot: Fix usage of dhparams option »: https://git.io/vpXbP
<sphalerite>
jD91mZM2: it's actually based on nix
Have-Quick has quit [Quit: Have-Quick]
<jD91mZM2>
sphalerite: Seems like it doesn't use the nix language though, which is sad :(
<sphalerite>
The key differences are 1) Guile rather than nix language, 2) Very strong free software focus (I don't think there's any proprietary software in guix's standard package collection), and 3) better thought out UI from the beginning
<sphalerite>
jD91mZM2: that was one of the design goals AFAIK. Use an established existing language (and what better choice than Guile for a GNU project!) rather than a DSL that doesn't have any other use.
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #40277 → ansible: update point releases and unify build → https://git.io/vpXbA
jrolfs has joined #nixos
<jD91mZM2>
I guess 3 is going to be fixed with Nix 2.0?
<sphalerite>
jD91mZM2: no, nix 2.0 is out and it hasn't fixed it yet ;)
Sonarpulse has quit [Ping timeout: 250 seconds]
<sphalerite>
But yes, the new UI should be better.
<sphalerite>
I do feel like guix might be a bit better engineered than nix, but I've not really tried it.
tertle||eltret has quit [Quit: Connection closed for inactivity]
<sphalerite>
"The projects are not competing with one another (there are orders of magnitudes more people out there who use neither Guix nor Nix than there are users of functional package managers, so there's no point in trying to get people who use Nix to switch to Guix). At our recent Guix fringe event before FOSDEM Eelco Dolstra (who invented functional package management and Nix) gave a talk on the future of Nix
<sphalerite>
surrounded by Guix hackers --- there is no rivalry between these two projects."
<robstr>
Morning, I'm running `mountpoint` from a systemd on nixos (nixops) which fails due to `command not found` but if I login on the machine, it's working maybe I need to run the service after all sym links are active ? :-/
<sphalerite>
robstr: systemd services have an empty path by default, you need to add it as clever says
<sphalerite>
robstr: in your case "something" will be utillinux
<robstr>
Cool, thank you - can you tell me the reason for this strange design ?
<clever>
robstr: you must clearly define exactly what you service needs, and not risk maybe getting it because you already installed it, then it fails for others
<sphalerite>
To avoid impurities. We don't want services behaving differently depending on configuration that's not relateed to them
<robstr>
I see, makes sense :) Ty really much
rosa has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<jD91mZM2>
Has anybody here installed guix on NixOS?
dbe has joined #nixos
rosa has joined #nixos
Sonarpulse has joined #nixos
<sphalerite>
jD91mZM2: you might want to ask a more specific question, like "does guix work well on nixos?" or "how do I install guix on nixos?"
rct has quit [Ping timeout: 256 seconds]
spear2 has joined #nixos
<angerman>
Sonarpulse: hey there, got a minute?
democracytime is now known as uptime
jbboehr has quit [Ping timeout: 246 seconds]
jrolfs has quit [Ping timeout: 255 seconds]
jrolfs has joined #nixos
pingu_ has quit [Ping timeout: 250 seconds]
pingu_ has joined #nixos
filwisher has joined #nixos
jD91mZM2 has quit [Ping timeout: 250 seconds]
leat has joined #nixos
jD91mZM2 has joined #nixos
rosa is now known as mgood7123
<jD91mZM2>
sphalerite: True. Does guix work well on NixOS?
<{^_^}>
→ ca060419 by @teto: qemu-guest-agent: init module
<{^_^}>
→ 882ed257 by @bfortz: owncloud-client: 2.3.4 -> 2.4.1
<{^_^}>
→ 837e8c34 by @bcdarwin: conglomerate: init at 2017-09-10
andreabe_ has joined #nixos
andreabedini has quit [Ping timeout: 246 seconds]
<steveeJ>
does the ISO support automatic installation if the configuration is present on another storage device with e.g. a specific label?
<sphalerite>
steveeJ: no, but you can make your own that does
<steveeJ>
fair enough! are there docs on this or does it require deep code digging?
andreabe_ has quit [Ping timeout: 248 seconds]
pingu_ has quit [Ping timeout: 250 seconds]
pingu_ has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<sphalerite>
steveeJ: I don't know of any specific docs, but clever has something
<sphalerite>
hang on
<robstr>
sphalerite: Still struggle with my service definition, https://gist.github.com/rsoeldner/0fa53c6166f2a0d1b8daa7b62c79369c not It is failing with: 'initializeArchiver.service: Main process exited, code=exited, status=1/FAILURE' when running the script by hand it return 0
andreabedini has joined #nixos
jbboehr has joined #nixos
<robstr>
sphalerite: Does systemd differ on other points ?
<{^_^}>
[nixpkgs] @markus1189 opened pull request #40278 → googleearth: init at 7.1.8.3036 → https://git.io/vpXxd
<jD91mZM2>
robstr: I don't know if it'll work, but try checking journalctl for output
<robstr>
jD91mZM2: running `journalctl -u initializeArchiver` just print `initializeArchiver.service: Main process exited, code=exited, status=1/FAILURE` nothing more
<{^_^}>
→ 94850344 by @thorstenweber83: slic3r-prusa3d: 1.39.1 -> 1.39.2
<{^_^}>
→ 0aefe0ff by @xeji: Merge pull request #40263 from thorstenweber83/update-slic3r-prusa3d
rauno has joined #nixos
leat has quit [Read error: Connection reset by peer]
<sphalerite>
the progress bar on one of my `nix build`s says [2/4/13 built …], but as far as I can tell it's only building one thing… what's going on here?
leat has joined #nixos
<sphalerite>
oh, the matrix is on its way back
freeman42x]NixOS has joined #nixos
comphez[m] has joined #nixos
seanparsons has quit [Read error: Connection reset by peer]
pingu_ has quit [Ping timeout: 264 seconds]
Neo-- has joined #nixos
leat has quit [Ping timeout: 256 seconds]
<Turion>
clever: Ah great, that's not such a big problem, then. Thanks!
seanparsons has joined #nixos
tmaekawa has joined #nixos
leat has joined #nixos
coot has quit [Quit: coot]
knupfer has quit [Remote host closed the connection]
<{^_^}>
→ 9c8353aa by @andrestylianos: joker: 0.9.1 -> 0.9.2
amiloradovsky[m] has joined #nixos
cornu[m] has joined #nixos
unlmtd has joined #nixos
Bugworm[m] has joined #nixos
windy328ghoee[m] has joined #nixos
atopuzov[m] has joined #nixos
ProofTechnique[m has joined #nixos
mirlur[m] has joined #nixos
YuFanLovezYou[m] has joined #nixos
telent[m] has joined #nixos
M-dpetranek has joined #nixos
bdimcheff has joined #nixos
asp_ has joined #nixos
WilliamHamilton has joined #nixos
jmorriss[m] has joined #nixos
SamuelEvans-Powe has joined #nixos
abbafei[m] has joined #nixos
rnhmjoj[m] has joined #nixos
timokau[m] has joined #nixos
tfc[m] has joined #nixos
moredhel has joined #nixos
indefini has joined #nixos
grahamc has joined #nixos
regnat[m] has joined #nixos
hl has joined #nixos
peterhoeg has joined #nixos
jgl[m] has joined #nixos
saschaveres[m] has joined #nixos
freeman42x has joined #nixos
YegorTimoshenko[ has joined #nixos
hw9891[m] has joined #nixos
aspiwack[m] has joined #nixos
bachp has joined #nixos
primeos[m] has joined #nixos
M-bbigras has joined #nixos
clacke[m] has joined #nixos
lycium[m] has joined #nixos
gnihton[m] has joined #nixos
davidar has joined #nixos
wzy8L-B2[m] has joined #nixos
<{^_^}>
→ 06269689 by @xeji: Merge pull request #40281 from andrestylianos/joker
willghatch[m] has joined #nixos
timclassic has joined #nixos
hendrik[m] has joined #nixos
Naughtmare[m] has joined #nixos
mith[m] has joined #nixos
rihardsk[m] has joined #nixos
wervenyt[m] has joined #nixos
TimePath has joined #nixos
templis[m] has joined #nixos
ConorCurry[m] has joined #nixos
kitten[m] has joined #nixos
sorbet has joined #nixos
adisbladis[m] has joined #nixos
wak-work has joined #nixos
Kallegro[m] has joined #nixos
neecro[m] has joined #nixos
xnaveira[m] has joined #nixos
peel[m] has joined #nixos
sudoreboot[m] has joined #nixos
Elorm[m] has joined #nixos
demyan[m] has joined #nixos
ArdaXi has joined #nixos
moredhel_[m] has joined #nixos
puffnfresh has joined #nixos
octalsrc[m] has joined #nixos
GuillaumeBuisson has joined #nixos
mudri[m] has joined #nixos
bobvanderlinden_ has joined #nixos
apurvapavaskar[m has joined #nixos
wilornel has joined #nixos
itorres has joined #nixos
olejorgenb[m] has joined #nixos
rycee has joined #nixos
jesper has joined #nixos
das-g[m] has joined #nixos
BurNiinTRee[m] has joined #nixos
trikl[m] has joined #nixos
ayyjayess[m] has joined #nixos
sigmundv_ has joined #nixos
nyanloutre[m] has joined #nixos
Elephant454[m] has joined #nixos
bkchr[m] has joined #nixos
ipj[m] has joined #nixos
y0no[m] has joined #nixos
danielrf has joined #nixos
midchildan[m] has joined #nixos
CoopDot has joined #nixos
ison[m] has joined #nixos
reactormonk[m] has joined #nixos
AlanPearce[m] has joined #nixos
omawnakw[m] has joined #nixos
nh2[m] has joined #nixos
Orbstheorem[m] has joined #nixos
bugabinga[m] has joined #nixos
M-manveru has joined #nixos
happyente[m] has joined #nixos
darkmeson[m]1 has joined #nixos
herzmeister[m] has joined #nixos
chatnowvvv[m] has joined #nixos
florianjacob has joined #nixos
have-quick[m] has joined #nixos
NickHu has joined #nixos
sargon[m] has joined #nixos
johnhamelink[m] has joined #nixos
spacekitteh[m] has joined #nixos
yochai[m] has joined #nixos
Wysteriary[m] has joined #nixos
uvnikita[m] has joined #nixos
fearlessKim[m] has joined #nixos
nickdshsadhkas[m has joined #nixos
magnap has joined #nixos
hedning[m] has joined #nixos
htafdwes[m] has joined #nixos
necronian has joined #nixos
xodbox[m] has joined #nixos
patrl[m] has joined #nixos
edef[m] has joined #nixos
ngerstle[m] has joined #nixos
felipeac[m] has joined #nixos
rszibele[m] has joined #nixos
spawnthink[m] has joined #nixos
offlinehacker[m] has joined #nixos
trevorriles[m] has joined #nixos
thefloweringash[ has joined #nixos
Obscurity[m] has joined #nixos
nmikhailov[m] has joined #nixos
nocent has joined #nixos
icetan has joined #nixos
copumpkin has joined #nixos
aniketd[m] has joined #nixos
Phil[m]2 has joined #nixos
doubletwin[m] has joined #nixos
pstn has joined #nixos
Rick[29SMPittsbu has joined #nixos
bhipple[m] has joined #nixos
chominist[m] has joined #nixos
coorey[m] has joined #nixos
leons has joined #nixos
codyopel has joined #nixos
wizek[m] has joined #nixos
jameshjacksonjr[ has joined #nixos
AdamSlack[m] has joined #nixos
bennofs[m] has joined #nixos
Fedor[m] has joined #nixos
Minijackson[m] has joined #nixos
thra11[m] has joined #nixos
tet[m] has joined #nixos
serentty[m] has joined #nixos
tosh[m] has joined #nixos
MatrixStatsBot[m has joined #nixos
tokudan[m] has joined #nixos
M-Dan has joined #nixos
octowan[m] has joined #nixos
MaJoe[m] has joined #nixos
aramiscd[m] has joined #nixos
jamshoot[m] has joined #nixos
Christian[m]4 has joined #nixos
darkmeson[m] has joined #nixos
slabity[m] has joined #nixos
Pneumaticat has joined #nixos
dkellner[m] has joined #nixos
pierrebeaucamp[m has joined #nixos
crystalgamma[m] has joined #nixos
equalunique[m] has joined #nixos
fogbugz123[m] has joined #nixos
paperdigits[m] has joined #nixos
rardiol[m] has joined #nixos
demonslayer[m] has joined #nixos
techtangents[m] has joined #nixos
Singularity[m] has joined #nixos
davidak[m] has joined #nixos
Drakonis[m] has joined #nixos
malteof[m] has joined #nixos
bionicmac[m] has joined #nixos
Dezgeg[m] has joined #nixos
nelag[m] has joined #nixos
petersjt014[m] has joined #nixos
scott1 has joined #nixos
kainospur[m] has joined #nixos
fogbugz2345[m] has joined #nixos
sphalerit has joined #nixos
DIzFer[m] has joined #nixos
dmitry-zen[m] has joined #nixos
Barnabas[m] has joined #nixos
Ralith has joined #nixos
balsoft[m] has joined #nixos
greska[m] has joined #nixos
chedi[m] has joined #nixos
johnazoidberg has joined #nixos
musicmatze[m] has joined #nixos
dash has joined #nixos
dywedir[m] has joined #nixos
M-ms has joined #nixos
bendlas has joined #nixos
PeterRomfeld[m] has joined #nixos
EuAndreh[m] has joined #nixos
jluttine[m] has joined #nixos
jelewaus[m] has joined #nixos
nmikhailov[m]1 has joined #nixos
EB[m] has joined #nixos
dtz has joined #nixos
r3mfKm[m] has joined #nixos
smrtak[m] has joined #nixos
attero has joined #nixos
dylanjust[m] has joined #nixos
M-fishy has joined #nixos
joh[m] has joined #nixos
Khorne[m] has joined #nixos
panther420[m] has joined #nixos
stekke[m] has joined #nixos
aaronc[m] has joined #nixos
Hook[m]1 has joined #nixos
peterbat[m] has joined #nixos
Albtrz[m] has joined #nixos
PlasmaStrike[m] has joined #nixos
Deleh[m] has joined #nixos
gh0st[m] has joined #nixos
AntonLatukha[m] has joined #nixos
Adev[m] has joined #nixos
wolfereign[m] has joined #nixos
telent_[m] has joined #nixos
gudea[m] has joined #nixos
DenisLehmann[m] has joined #nixos
swayf[m] has joined #nixos
dadadus[m] has joined #nixos
kureta[m] has joined #nixos
card[m] has joined #nixos
admin[m]4 has joined #nixos
jack[m] has joined #nixos
Vincenzo[m] has joined #nixos
pingu_ has quit [Ping timeout: 256 seconds]
<jD91mZM2>
there are apparently a lot of matrix users here
<clever>
and thats why i run my own bouncer
tmaekawa has quit [Quit: tmaekawa]
qqlq has quit [Ping timeout: 248 seconds]
hotfuzz has quit [Ping timeout: 260 seconds]
hotfuzz has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
sellout- has quit [Ping timeout: 256 seconds]
sellout- has joined #nixos
ericsagnes has quit [Ping timeout: 255 seconds]
rosa has quit [Quit: rosa]
sir_guy_carleton has joined #nixos
johanot has joined #nixos
zybell has joined #nixos
leat has joined #nixos
Wharncliffe has joined #nixos
<steveeJ>
:-D
<Turion>
Since the latest upgrade, when running any nix-related commands as root, I get warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
<Turion>
Problem?
jtojnar has quit [Read error: Connection reset by peer]
jperras has joined #nixos
<Turion>
Also, I don't understand how I'm on nixos-unstable and yet when I start signal-desktop it complains that it's out of date
jD91mZM2 has quit [Ping timeout: 255 seconds]
<sphalerite>
https://sphalerite.org/dump/borked.mp4 any idea what might cause this machine not to start? (I took out the RAM hoping for a beep code, but apparently it's not even getting that far) On-topic because I want to run nixos on it :p
<sphalerite>
Turion: search path entry doesn't exist isn't a real problem, although it's odd that that would happen.
<sphalerite>
Turion: as for signal, it's possible that the package just hasn't been updated at all yet.
<Turion>
sphalerite: I didn't do anything except upgrading
jtojnar has joined #nixos
<Turion>
sphalerite: When I look for the version in my local nixpkgs, it's definitely up to date (1.9.0), but when I start it and ask it for its version via the gui, it says 1.3.0
<sphalerite>
ah. How is signal installed, and what does `which signal` say?
dbe has quit [Ping timeout: 264 seconds]
jperras has quit [Ping timeout: 268 seconds]
<aminechikhaoui>
hm anyone knows whether CURLE_RECV_ERROR (56) is considered a transient issue ?
<sphalerite>
sounds like it
<aminechikhaoui>
trying to know why the fetchurl automatic --retry 3 didn't help with this error
<{^_^}>
→ 215b724e by @edolstra: Fix passing arguments to the reproduction script
<{^_^}>
→ 691f7e16 by @edolstra: Fix building on Nixpkgs 17.09
<samueldr>
gchristensen: looks like it's a global <name>.name issue, which is probably much easier to fix in the end :D https://nixos.org/nixos/options.html#%3Cname%3E.name
mnfrmtmrrw_ has quit [Quit: Leaving]
Rusty1_ has joined #nixos
<FRidh>
sphalerite: there is too much breakage currently to merge staging into master. At least ghc needs to be fixed first.
ftzm has quit [Quit: WeeChat 2.2-dev]
uptime has joined #nixos
stumble has joined #nixos
jperras has joined #nixos
Turion has quit [Quit: Leaving.]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
spear2 has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 265 seconds]
fyuuri has joined #nixos
cryp2nomicon has quit [Quit: leaving]
acarrico has quit [Ping timeout: 260 seconds]
<fyuuri>
Hi. I get the nix daemon out of memory when trying to nixos-rebuild switch --upgrade even with no other applications running. Is there a way to complete the upgrade?
<stumble>
fyuuri: How much memory do you have, and do you have a swap file?
johanot has quit [Ping timeout: 260 seconds]
johanot has joined #nixos
<fyuuri>
stumble : 4GB and no swap file
<stumble>
Damn. That should be plenty.
xy2_ has quit [Ping timeout: 248 seconds]
<stumble>
Over to someone more expert than me, then.
<fyuuri>
I often got this error; but when closing the browswer it always worked. This is the first time i am copletely stuck
MichaelRaskin has quit [Ping timeout: 248 seconds]
<infinisil>
fyuuri: It's happening more often to me too recently, with nix 2.0.. And i have 8GB/16GB on my machines..
<fyuuri>
omg^^
griff_ has joined #nixos
<infinisil>
Restarting the build process a couple times should work
<fyuuri>
infinisil: The problem for me now is: Im stuck. I tried it like 10 times. Closing everthing that is not needed, yet still it does not complete. Maybe huge derivation like tex live are a problem?
fendor has joined #nixos
<infinisil>
Or limiting the cores/jobs with --cores <n> and --max-jobs <n>
<fyuuri>
Oh! I didnt know there was such an option
<infinisil>
Yeah try --cores 1 and --max-jobs 1 or something like that
<fyuuri>
nice! Hope :)!
<fyuuri>
Is it possible to print the default for --cores and --max-jobs?
iqubic` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
asuryawanshi has quit [Ping timeout: 240 seconds]
<fyuuri>
--cores 2 and --maxjobs 4 was too much. I will try the 1 1
<fyuuri>
not even the 1 1 works :(
<simpson>
What does Nix do if ulimit'd? Probably nothing appropriate...
acarrico has joined #nixos
xy2_ has joined #nixos
Maxdamantus has quit [Ping timeout: 250 seconds]
<infinisil>
fyuuri: My last guess would be rebooting..
<stumble>
fyuuri: That's got to be a bug, unless your system is an extremely strange one. Do you have a fairly vanilla configuration.nix? (I understand that you've got tex-live.)
<fyuuri>
stumble: yes it is fairly vanilla. I added quite a few derivations though.
<stumble>
I imagine you can work around the problem by commenting out derivations and adding them back in a few at a time.
<fyuuri>
The last thing I added was docker. But docker works. Only the --upgrade there after caused the problem
<stumble>
Shouldn't have to do that, of course, but maybe you do until someone tracks down the problem.
<{^_^}>
[nixpkgs] @rycee pushed commit from @limeytexan to master « perlPackages.ClassEHierarchy: init at 2.00 »: https://git.io/vp12P
<fyuuri>
infinisil: what is nix actually building? Why is it so extremely memory intensive?
<infinisil>
I think it might be because of the download
<infinisil>
Nix apparently loads the whole downloaded nix paths into memory, all of its contentns
<infinisil>
Because it's using C++ strings for it..
<clever>
so if you download ghc, it needs a gig of ram
<infinisil>
It's horrible
<infinisil>
fyuuri: Have you tried adding some swap?
<stumbleplus>
In that case, it won't be thrashing that memory, right? So a swap file should solve the problem?
<fyuuri>
infinisil: No. I never had to in any other distribution...
stumble has joined #nixos
dbmikus_ has quit [Quit: WeeChat 2.1]
dbmikus has joined #nixos
<fyuuri>
infinisil: I think I found the culpird!
<fyuuri>
ghc
<fyuuri>
The newest version of ghc seems to make the soak all that memery. I cant even install it allone
<infinisil>
Why am I not surprised :)
<fyuuri>
Could you try adding ghc to your config just to see if that is really the reason.
<infinisil>
I do have it in my config
<infinisil>
Ah but I'm using ghc822
<fyuuri>
All other stuff work. all other stuff works... but maybe only becaue i installed it a few derivations at a time
jgertm has joined #nixos
<fyuuri>
ut us ghc 822
<fyuuri>
it is
<fyuuri>
the ghc derivation defaults to 822
<infinisil>
Hmm my ghc output path is only 327MB big
<infinisil>
"only"
<fyuuri>
for me that same. But when i put it in the config. nix fails with the memory error
orivej has quit [Ping timeout: 265 seconds]
<infinisil>
What if you build just ghc
<infinisil>
nix-build '<nixpkgs>' -A ghc
<fyuuri>
these paths will be fetched (86.01 MiB download, 1117.17 MiB unpacked):
MichaelRaskin has joined #nixos
<fyuuri>
what is nix-build? (I really should read the manual cover to cover ...)
<infinisil>
Hah, that's like the main thing in nix to build stuff
<fyuuri>
I only used nix-env and nixos-rebuild
orivej has joined #nixos
<infinisil>
nix-build just builds nix derivations
<fyuuri>
To which profile?
<infinisil>
so nix-build '<nixpkgs>' -A ghc will build the ghc attribute from the nixpkgs you're currently using
endformationage has joined #nixos
<infinisil>
It just outputs it to a symlink called "result" in the current directory
<fyuuri>
ok!
<fyuuri>
Is there a more elegant way of deleting the old generations I just created: sudo nix-env -p /nix/var/nix/profiles/system --delete-generations old
<infinisil>
`nix-collect-garbage --delete-older-than 30d` will remove and garbage collect all generations older than 30 days
<{^_^}>
→ 95ad9695 by @jtojnar: librsvg: 2.42.3 → 2.42.4
<{^_^}>
→ 99514b7b by @xeji: Merge pull request #40197 from jtojnar/librsvg-2.42.4
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pmade has joined #nixos
sami4ak has joined #nixos
sami4ak has left #nixos [#nixos]
johanot has joined #nixos
xcmw has joined #nixos
asuryawanshi has joined #nixos
<udono>
hi, having problems with python2, gtk3 and Atk: nix-shell -p 'python2.withPackages (ps: with ps; [pygobject3 atk gtk3 ])' --run "python -c \"import pygtkcompat; pygtkcompat.enable_gtk(version='3.0')\"" raises a ValueError: Namespace Atk not available. Any Idea?
<udono>
symphorien: Thanks again, but not working: nix-shell -p gobjectIntrospection 'python2.withPackages (ps: with ps; [ pygobject3 atk gtk3 ])' --run "python -c \"import pygtkcompat; pygtkcompat.enable_gtk(version='3.0')\"" Full Traceback: https://pastebin.com/94pNCygU
Xal has quit [Ping timeout: 260 seconds]
<symphorien>
udono: neither are atk and gtk3: nix-shell -p gobjectIntrospection atk gtk3 'python2.withPackages (ps: with ps; [ pygobject3 ])' --run "python -c \"import pygtkcompat; pygtkcompat.enable_gtk(version='3.0')\""
Xal has joined #nixos
<udono>
symphorien: Great! Thanks a lot!
<Myrl-saki>
Uhh
deepfire has quit [Ping timeout: 255 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
brodul has quit [Remote host closed the connection]
devr[m] has joined #nixos
Ariakenom has joined #nixos
rihards has joined #nixos
leat has joined #nixos
hiroshi has joined #nixos
szicari has joined #nixos
szicari has quit [Client Quit]
raynold has joined #nixos
<steveeJ>
I'm trying to edit the script for the build-vm-wut
<steveeJ>
build-vm-wut
<steveeJ>
alright, not my day :D
<infinisil>
Heh
<steveeJ>
I'm tryingt to adjust to a new keyboard, but anyway :D is the script for the build-vm-with-bootloader not in nixos/modules/virtualisation/qemu-vm.nix? it seem to have no effect when I change it in there
<ixxie>
for ad-hocking a package, do you just create it as an overlay?
<jD91mZM2>
yep
<jD91mZM2>
Or use home-manager
<ixxie>
and then just move it to a clone of nixpkgs, polish and make PR?
<jD91mZM2>
Yep
<ixxie>
interesting :)
<{^_^}>
[nixpkgs] @periklis opened pull request #40292 → skhd: Bump 0.0.14 to 0.1.0 → https://git.io/vp1bv
jgertm has joined #nixos
<avn>
ixxie: most of packages was created this way
<{^_^}>
→ 219b74d7 by @Ericson2314: SDL, SDL2: Remove crossAttrs
<{^_^}>
→ 88ff3c0f by @Ericson2314: freetype: Remove crossAttrs
<{^_^}>
→ e84b9401 by @Ericson2314: libdrm: Remove crossAttrs
<{^_^}>
[hydra] @AmineChikhaoui opened pull request #556 → add some more statistics about runnable/running builds per arch/system features → https://git.io/vp1Nm
<{^_^}>
[nixpkgs] @Ericson2314 pushed 16 commits to staging: https://git.io/vp1N8
<{^_^}>
→ 8c45acac by @demyanrogozhin: particl-core: 0.16.0.4 -> 0.16.0.5
<{^_^}>
→ bcaff3c3 by @yegortimoshenko: tty: init at 1.30
<{^_^}>
→ 956d174c by @yegortimoshenko: ffmpeg_4: init
<ixxie>
avn: I donno, I never learned a proper workflow, I just packaged in my fork of Nixpkgs and build it there
griff_ has quit [Quit: griff_]
<avn>
ixxie: also an option. I actually live on WIP branch on nixpkgs fork, and when stuff more or less ready -- I cherry-pick it to feature branch and PR
dbe has joined #nixos
deepfire has quit [Ping timeout: 260 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #40131 → nixos/release-combined.nix: make test set consistent with release-small.nix → https://git.io/vpoNj
<{^_^}>
[nixpkgs] @xeji pushed to master « nixos/release-combined.nix: make tests consistent (#40131) »: https://git.io/vp1Ae
<Myrl-saki>
.local/share/Steam/ubuntu12_32/steam: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
<Myrl-saki>
So the binary itself seems okay-ish.
<Myrl-saki>
I think?
<infinisil>
Steam works just fine for me on latest unstable
<{^_^}>
→ f1e419f3 by @xeji: nixos/tests/plotinus: fix non-deterministic failure (#40239)
<{^_^}>
→ e5be49ae by @xeji: nixos/release-combined.nix: make tests consistent (#40131)
<{^_^}>
→ 6b1bc176 by @xeji: nixos/tests/fleet: disable test
<infinisil>
Myrl-saki: Maybe try it with a fresh user, I mean it must be something in $HOME
<Myrl-saki>
infinisil: The execve itself is failing.
<Myrl-saki>
[pid 17620] execve("/home/myrl/.local/share/Steam/ubuntu12_32/steam", ["/home/myrl/.local/share/Steam/ub"...], 0x194a008 /* 81 vars */) = -1 ENOENT (No such file or directory)
ryantrinkle has joined #nixos
<{^_^}>
[nixpkgs] @romildo opened pull request #40293 → theme-jade1: init at 3.2 → https://git.io/vp1xt
<Myrl-saki>
This is the most insane "bug" I've ever seen.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Myrl-saki>
Basically, I accidentally mkdir'd /lib, how that'd happen, I don't know.
ixxie has quit [Ping timeout: 255 seconds]
<sphalerite>
nice
xcmw has joined #nixos
* jD91mZM2
has spent the whole day researching GuixSD btw lol
<jD91mZM2>
Sometimes I hate decisions
<Myrl-saki>
jD91mZM2: "In conclusion, it's just like NixOS"? :P
<jD91mZM2>
Basically
<sphalerite>
I'd stick with nixos, since iirc you use some nonfree software
<sphalerite>
and unless you're a hardcore free-software person you probably don't have wifi etc that will work with linux-libre
<Myrl-saki>
sphalerite: And Guix is not lazy, so...
<Myrl-saki>
s/Guix/Guile/
<Myrl-saki>
I think?
<jD91mZM2>
sphalerite: I haven't checked my firmware yet, but on the software side I only use Discord currently
<sphalerite>
Myrl-saki: it's strict by default, but you can achieve laziness through quoting. Or something. Guix's package composition thing relies on laziness though
<simpson>
I'm a hardcore Free Software person, but I still use Nix. I'm not sure I could explain why.
<sphalerite>
simpson: The way I meant it was more "not hardcore free software person ⇒ probably don't use GuixSD", not "hardcore free software person ⇒ use guixsd" ;)
<sphalerite>
Are you free-software-hardcore enough to run linux-libre?
<jD91mZM2>
Sec, lemme write up a list of advantages/disadvantages I can think of:
<sphalerite>
nixpkgs doesn't actually have it, does it?
<jD91mZM2>
Advantages of GuixSD: . Disadvantages of GuixSD: .
<simpson>
sphalerite: I am hardcore enough to, upon buying a GPU without free drivers, demand the datasheet from the GPU maker, get the datasheet, and write a driver. I don't think of 'hardcore' as being about intensity of belief, but about intensity of deeds.
<sphalerite>
simpson: nice. What GPU is it?
<simpson>
That said, I tried doing this with WiFi chipsets, and that world is just insane.
<sphalerite>
that you could actually get hold of a datasheet for it
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #40297 → lib/systems: Prohibit "gnu" ABI (*-gnu) with 32-bit ARM → https://git.io/vpMUH
<simpson>
These were ATI/AMD Radeon GPUs, about a decade ago when AMD bought ATI and promised to release docs. It was the beginning of a good relationship, actually.
giaco has quit [Ping timeout: 246 seconds]
<sphalerite>
aah right, nice
<jD91mZM2>
That's pretty darn cool, I wish I could do stuff like that. The lowest level thing I've worked on was porting LOLCODE to Web Assembly...
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson>
That's about the same low-levelness. The only difference is between restarting your browser when it crashes, and restarting your machine when the GPU locks up.
<simpson>
Oh, dang it, this isn't #nixos-chat. Sorry for offtopic.
<jD91mZM2>
TIL about nixos-chat
<sphalerite>
IMHO off-topic is fine in here too as long as it's not getting in the way of on-topic stuff
<sphalerite>
steveeJ: (sorry, I have a not-very-featureful browser and the line numbers don't display properly in it, nor does jumping to them work right) which code is it?
<sphalerite>
the pkgs.runCommand "nixos-boot-disk" script?
<steveeJ>
it starts with the comment "# Create a /boot EFI partition with 40M...". I verified that the preVM script is successful
<sphalerite>
steveeJ: I think if you pass -v it will print the build output to the terminal
<sphalerite>
exi: you could open up a PR with what you have so far and @ him on it on github
<exi>
yep, i might do that
<exi>
i also had to package 2 dependencies for this, not sure if it's customary to bring all of them in in one PR
<sphalerite>
yeah, it's a pain to put them in separate PRs
Sonarpulse has quit [Ping timeout: 255 seconds]
<sphalerite>
usually separate commits in a single PR
hotfuzz has quit [Ping timeout: 260 seconds]
hotfuzz has joined #nixos
vaninwagen has joined #nixos
xeji has joined #nixos
<vaninwagen>
jbk the PR that was just merged yesterday added tests for using I64.mulc, which is what is using __mulodi4, it seems this uncovered a bug in that the illumos libc does not provide these symbols
<vaninwagen>
sorry, wrong channel :)
<vaninwagen>
this was meant for #ponylang :)
asuryawa_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
<jD91mZM2>
sphalerite: Could your disk be getting full?
<muzzy>
is it viable to use nixops to deploy some basic homelab utilities (NAS, plex, other persistent things)?
rihards has quit [Quit: rihards]
fatsaucisson has joined #nixos
<fatsaucisson>
Hi !
<sphalerit>
jD91mZM2: no, it's an issue with using ssh-ng stores as substituters by the looks of it
<jD91mZM2>
sphalerit: What's ssh-ng?
<sphalerit>
jD91mZM2: the new way for nix to talk to another nix store via SSH
<sphalerit>
new = introduced with 2.0
<fatsaucisson>
I'm pretty new to nixos and nix, so far I found everything I need in nixpkgs, but this time I would like to have a pkg which isn't here: qtsixa. Hopefully, somebody wrote a nix expression for it here : https://github.com/auntieNeo/nixrc/tree/master/pkgs/qtsixa , but I just don't know how to add it with nix-env
humanoyd has quit [Quit: WeeChat 2.1]
dbe has quit [Ping timeout: 256 seconds]
mkoenig has quit [Remote host closed the connection]
hotfuzz_ has joined #nixos
juri2mol has quit [Quit: Page closed]
<fatsaucisson>
I imagine it's a pretty newb question, sry
hotfuzz has quit [Ping timeout: 248 seconds]
<gchristensen>
fatsaucisson: no worries!
<sphalerite>
fatsaucisson: nothing to apologise for! We were all new to nix at some point :)
<Ianulus>
I'd like to help, but I'm pretty new to it all myself :)
<Ianulus>
Your question is actually on my 'list', too...
<monotux>
so ok...anyone using platformio and vscode in nixos? I spawn a nix-shell with the relevant dependencies ("nix-shell -p vscode platformio") but vscode can't start the pio nor the platformio processes as it can't find them. this is why I switched to nixos, effortless and reliable development environments. :(
<monotux>
I could settle for a working arduino setup that also works with the esp8266 libraries, but now it can't find xtense so that doesn't work either
shabius has joined #nixos
<sphalerite>
monotux: who said effortless? :p I'll give you reliable, but not necessarily effortless
mkoenig has joined #nixos
<monotux>
haha
<jD91mZM2>
fatsaucisson: What you want to do is create a package overlay. Download this file to anywhere, and then inside ~/.config/nixpkgs/overlays.nix you can have the content "super: self: super.callPackage /path/to/qtsixa/default.nix {}"
<monotux>
sphalerite, I just want some magick that solves all my issues ;)
<sphalerite>
fatsaucisson: in this case it seems to be an expression that gets its dependencies via callPackage
<sphalerite>
jD91mZM2: missing the attribute set and the name ;)
<jD91mZM2>
sphalerite: Yup I completely messed up both that and the order of args
<monotux>
but on a serious note, where do I even begin to figure this out?
<bkchr[m]>
Does someone has an idea what the following error message wants to tell me? It happens right after the stage 1 begins. `Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b`
<monotux>
jD91mZM2, seems like you have a off-by-one error
<sphalerite>
monotux: vscode is node stuff, isn't it? I'm not sure how well node stuff works on nixos in general :/ but I'm no expert, haven't really tried it myself
<symphorien>
bkchr[m]: this means that init (which is a shell script) exited
<sphalerite>
bkchr[m]: that means that the init script exited rather than execing the next init stage.
<monotux>
sphalerite, yes, I think so. darn.
<symphorien>
so look at messages above
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite>
bkchr[m]: that might mean it's referring to an init which no longer exists following a gc
<symphorien>
or that it could not mount / for some reason
<monotux>
the parts that isn't working properly seems to be that it can't locate the python stuff from the vscode, but I'll just learn the CLI and use emacs like I always end up with
<sphalerite>
bkchr[m]: easiest fix is probably booting into the installer, mounting everything, and rerunning nixos-install. If you want to work out exactly what's going wrong, you may want to boot with boot.debug1devices or boot.debug1mounts
<sphalerite>
monotux: oh, if it's python stuff it's possible that just adding python to your shell will magically fix it
<fatsaucisson>
thanks for answering sphalerite and jD91mZM2 . So I wrote in ~/.config/nixpkgs/overlays.nix "super: self: super.callPackage /home/fatsaucisson/Github/nixstuffs/auntieNeo/pkgs/qtsixa/default.nix" (that file didn't exist previously so this is the only line)
<jD91mZM2>
monotux: ??
<jD91mZM2>
nevermind
<jD91mZM2>
That joke went over my head
<sphalerite>
fatsaucisson: almost — you need to add some braces and a name for it, like in the sample I wrote
<monotux>
sphalerite, hmmm I'll try. I thought that should have been installed as a dependency?
<monotux>
meh didn't help
<sphalerite>
monotux: installed, sure. But there's a magical shell hook or setup hook in python that sets PYTHONPATH or something like that. Not sure of the exact details.
<sphalerite>
Aww.
<monotux>
I'm off to rtfm
<sphalerite>
good luck!
<monotux>
thanks, and thanks for the tips :)
<fatsaucisson>
sphalerite: OK. Once it's done, this file is at a place nix knows he should check then ? Or should I add somewhere something which says "look nix, I wrote stuff for you here" ?
<sphalerite>
fatsaucisson: yes, nixpkgs should find it automatically. After doing that, try nix-env -f '<nixpkgs>' -iA qtsixa
<sphalerite>
it will need to build it from source, since it's not an official package and thus not in the official binary cache. It may also fail, the expression seems to be about 3 years old and may not work with recent versions of nixpkgs
<fatsaucisson>
It says "value is a function while a list was expected, at /.../nixos/pkgs/top-level/stage.nix:131:8"
<fatsaucisson>
dunno if it's the package or the thing that I wrote
<sphalerite>
could you paste the exact contents of your overlay file?
<{^_^}>
→ 58b2e875 by @Ericson2314: lib/systems: Prohibit "gnu" ABI (*-gnu) with 32-bit ARM
<{^_^}>
→ 5789cf47 by @Ericson2314: Merge pull request #40297 from obsidiansystems/arm-abi-disambig
<sphalerite>
try either A) moving the file to ~/.config/nixpkgs/overlays/something.nix (name of your choice) or B) adding [( and )] around the whole contents of the file
<fatsaucisson>
OK, should I surround the content with brackets or something
<fatsaucisson>
ok
klntsky has quit [Ping timeout: 255 seconds]
<{^_^}>
[nixpkgs] @sshisk opened pull request #40302 → Few fixes for Prosody service → https://git.io/vpM3I
<{^_^}>
[nixpkgs] @Ericson2314 pushed 15 commits to staging: https://git.io/vpM3s
<{^_^}>
→ 6392fb3d by @guibou: pysensors: init at 2017-07-13
<{^_^}>
→ 9817b4aa by @fadenb: graylog: wrap graylogctl
<{^_^}>
→ 08eba842 by @fadenb: graylog: 2.4.3 -> 2.4.4
<jtojnar>
xeji: thanks for looking into the flatpak tests
<fatsaucisson>
yay, it progressed, it seems the way the package is specifying 'pyqt4' isn't good anymore, it's a python library so I suppose it should be refered as pythonPackages27.pyqt4
Sonarpulse has joined #nixos
<sphalerite>
fatsaucisson: but yeah, what you're doing by putting [( )] around the whole thing is making it into a list containing just that overlay function as an element
<fatsaucisson>
(surrounding with [( )] worked)
<sphalerite>
\o/
<{^_^}>
[nixpkgs] @sshisk opened pull request #40303 → nginx service: add nested locations support → https://git.io/vpM3V
<sphalerite>
I think using self.pythonPackages.callPackage rather than super.callPackage might be the right thing to do
<fatsaucisson>
ok, let's try that
<fatsaucisson>
wouhou well played, it worked
<fatsaucisson>
can you explain the difference ?
deepfire has joined #nixos
<sphalerite>
you see how at the top of qtsixa/default.nix you have a list of things in {}?
<sphalerite>
Those are arguments to the function, and what callPackage does is fill those in ("compose" the package). super.callPackage fills it in with stuff from nixpkgs's top level, while pythonPackages.callPackage fills it in with stuff from pythonPackages as well as nixpkgs's top level
<fatsaucisson>
yup, as far as I understood it, it's like the dependencies of the packages
<sphalerite>
The nix pills are a good step-by-step intro to the nix language and nixpkgs
<fatsaucisson>
oooh, so it includes all kind of python libs. Great.
<fatsaucisson>
And let's say I have an app which require both python and npm libs, is there a way to do that ? I'll just read your link I think. Thanks again
klntsky has joined #nixos
<jD91mZM2>
fatsaucisson: For something like that I think the package would need to specify which ones to use instead of you
<jD91mZM2>
Basically it'd say `buildInputs = [ pythonPackages.something, someOtherPackages.somethingElse ]`
<jD91mZM2>
Currently it's just saying `buildInputs = [ something ]` and trusts you to explain where "something" comes from, which is what pythonPackages.callPackage did for you
<{^_^}>
→ b12850d4 by @periklis: skhd: Bump 0.0.14 to 0.1.1
<{^_^}>
→ 9a492d16 by @LnL7: Merge pull request #40292 from periklis/darwin-skhd
<xeji>
jtojnar: flatpak doc says it is supposed to run in a desktop environment. not sure which part it really needs but a few seconds extra don't matter with a 1hr test
deepfire has quit [Ping timeout: 248 seconds]
<steveeJ>
aszlig: have you tried the rebuild target build-vm-wut
<elvishjerricco>
How can you get `nix build` to output the build output?
<gchristensen>
use nix-build :)
<elvishjerricco>
Aww
griff_ has joined #nixos
<infinisil>
I think nix log does that
<blob>
May be someone knows, if nixpkg I build want to create and modify file in its nix store directory, but have no permission to do that. Should I patch software source or nix can offer something else?
orivej has quit [Ping timeout: 240 seconds]
<gchristensen>
should patch it to not modify files in the nix store
<infinisil>
blob: The latter, don't ever try to change files in the nix store directly. Nix has plenty options to modify it by creating a new build
<infinisil>
Or a patch yeah
<infinisil>
Well yeah, it is a patch, but nix has options to make patching easier for you
<blob>
infinisil: I mean, probably nix can offer some symlinks or something to create that file in another directory
<blob>
to avoid patching
<infinisil>
It depends on the patch you need, what are you intending to change?
<blob>
one file with some data, I want to replace it to user's home directory
deepfire has joined #nixos
srl295 has joined #nixos
<blob>
that software want to create it in its nix store directory
Ariakenom has quit [Read error: Connection reset by peer]
orivej has joined #nixos
<blob>
and please I need some advice for github username, I want to delete old account and create the new one. Should I use real name or some king of nickname will be better? :)
<gchristensen>
up to you
<blob>
ok
semantimancer has joined #nixos
<semantimancer>
Anyone ever run into an issue where compton settings in configuration.nix just seem to be ignored?
boomshroom has joined #nixos
<boomshroom>
Hello!
adetokunbo has joined #nixos
<boomshroom>
What's the current mechanism to cross-compile an entire NixOS system?
<{^_^}>
[nixpkgs] @xeji opened pull request #40304 → nixos/tests/graphite: fix test → https://git.io/vpMWk
xy2_ has quit [Ping timeout: 265 seconds]
<blob>
how can I give CMAKE_CXX_FLAGS to cmake?
<jtojnar>
xeji: would not just the x11 module be enough then? I do not see why it should need GNOME.
asuryawanshi has quit [Ping timeout: 256 seconds]
<jtojnar>
Also why are the tests so much slower when run inside QEMU? They take just few minutes when run on my system.
lord| has joined #nixos
<xeji>
jtojnar: I tried that at first but x11 is not sufficient. It worked after adding GNOME. Didn't investigate more because I read somewhere in flatpak docs that it is supposed to run under a DE.
<jtojnar>
that might mean troubles for users not running a DE
<xeji>
About the speed: the QEMU test vm runs one core only.
doyougnu has quit [Quit: WeeChat 1.9.1]
<jtojnar>
but IIRC I tested flatpak in xterm VM and it run an app correctly
hiratara has quit [Ping timeout: 246 seconds]
<xeji>
maybe but the tests (some, don't remember which) failed on X11 alone
chrisbarrett has quit [Ping timeout: 256 seconds]
<boomshroom>
For the purposes of cross-compilation, what's the difference between buildInputs and nativeBuildInputs?
chrisbarrett has joined #nixos
<xeji>
jtojnar: from flatpak FAQ: "Flatpak is designed to run inside a desktop session and relies on certain session services, such as a dbus session bus and, optionally, a systemd --user instance."
hiratara has joined #nixos
<xeji>
it also seemed to require some shared-mime stuff IIRC
<boomshroom>
Is is possible to build a basic NixOS system for a system like ARM and test it in QEMU?
drakonis has quit [Read error: Connection reset by peer]
<boomshroom>
makefu: That should help. ARM isn't the specific arch I'm looking for, but I figured the setup would be similar. I'm actually interested in RISC-V.
<makefu>
boomshroom: there was a lot of effort done regarding cross-compiling but i am not sure how far it is as of now
Wharncliffe has joined #nixos
mduggie has joined #nixos
<makefu>
basic idea would be to override `system` with whatever you would like to have and nix does the right thing(tm)
<gchristensen>
is it just me, or is letsencrypt not very good for load balanced servers? there is a bootstrapping problem -- you can't add a server to DNS with it already having the cert
chrisbarrett has joined #nixos
<boomshroom>
I don't use repls very often for development, but I'm really enjoying the nix repl.
dbmikus has quit [Quit: WeeChat 2.1]
griff_ has quit [Quit: griff_]
blob__ has joined #nixos
isHavvy has joined #nixos
silver_ has joined #nixos
Havvy has quit [Read error: Connection reset by peer]
silver has quit [Read error: Connection reset by peer]
xeji has quit [Quit: WeeChat 2.0]
greymalkin has quit [Ping timeout: 240 seconds]
<boomshroom>
Now I just need to find where "riscv" is being passed to parse rather than "riscv64".
blob has quit [Ping timeout: 240 seconds]
greymalkin has joined #nixos
blob__ has quit [Quit: Leaving]
<boxofrox>
how does one build php with mysqlnd driver? I see a `config.php.mysqlnd` in nixpkgs/pkgs/development/interpreters/php/default.nix, but I've no idea how to set it to true in my /etc/nixos/configuration.nix
<joepie91>
gchristensen: should be solvable with DNS validation
deepfire has quit [Ping timeout: 260 seconds]
dvim has quit [Ping timeout: 260 seconds]
tilpner has quit [Ping timeout: 260 seconds]
gchristensen has left #nixos ["WeeChat 1.9.1"]
gchristensen has joined #nixos
deepfire` has joined #nixos
semantimancer has quit [Ping timeout: 240 seconds]
semantim1ncer has joined #nixos
<gchristensen>
joepie91: I somewhat get that impression, but I'm not clear on that :/
fogbugz234 has quit [Ping timeout: 240 seconds]
andromeda-galaxy has quit [Ping timeout: 240 seconds]
dvim has joined #nixos
<joepie91>
gchristensen: basically the idea is that you validate by placing the challenge response in your DNS records as a TXT record
<boomshroom>
Things should work better if I name things correctly.
<joepie91>
rather than as a response from a host that the domain is pointing at
<gchristensen>
joepie91: and does the challenge change over time?
<joepie91>
so the validation is independent from the hosts it points at
<joepie91>
I believe so, yes, I'm a bit fuzzy on the specifics
andromeda-galaxy has joined #nixos
<joepie91>
but this is automatable
<joepie91>
and presumably you can manage it from your deployment system
<joepie91>
so that the same system responsible for spinning up hosts is also responsible for managing the challenge
ThatPako has joined #nixos
<{^_^}>
[nixpkgs] @xeji pushed to master « nixos/release-combined.nix: fix eval of tested job »: https://git.io/vpMrz
<ThatPako>
Are there any intentions to update the discord package?
tilpner has joined #nixos
<boxofrox>
gchristensen: joepie91 is right. I set up DNS01 auth for a caddy server using rfc2136 with a bind9 dns server. it's a pain if the DNS server is behind the same firewall as the web server, but it works fairly well.
<boomshroom>
While troubleshooting NixOS for RISC-V, I discovered I have 2 systemd installations used by the same generation.
pingu_ has joined #nixos
<MichaelRaskin>
32-bit and 64-bit maybe?
ThatPako has quit [Remote host closed the connection]
<Lisanna>
Hey, I'm having trouble making a custom python package that can be used with python.withPackages. I'm building the package with buildPythonPackage and it appears to build successfully and produces /nix/store/7370n4m1v3bpnrxnvv3x7gaw3a8wkpg4-python3.6-mypackage-0.1 as output. If I do PYTHONPATH=/nix/store/7370n4m1v3bpnrxnvv3x7gaw3a8wkpg4-python3.6-mypackage-0.1/lib/python3.6/site-packages/mypackage python3 then I can do import mypackage just
<Lisanna>
fine. But if I enter a nix-shell with shell.nix containing (python3.withPackages(ps: [ mypackage ])).env, import mypackage fails.
<Lisanna>
Any likely suspects that I should be checking here?
<Lisanna>
I looked in the directories I find in sys.path and I don't see the module anywhere in there.
<boomshroom>
My test is failing because libseccomp isn't available on RISC-V. When I checked who depends on it, I found it was systemd. Checking systemd's derivation, it looks like it should work even if libsecconf isn't available. So why isn't it working?
<{^_^}>
[nixpkgs] @peterhoeg merged pull request #39813 → bluez: add tools to output that we were building anyway → https://git.io/vpEL4
<{^_^}>
→ 4c66aa89 by @peterhoeg: bluez: add tools to output that we were building anyway
<{^_^}>
→ 10c9ec68 by @peterhoeg: Merge pull request #39813 from peterhoeg/f/bluez
<boomshroom>
Is it really trying to check every package at once?
<{^_^}>
[nixpkgs] @xeji pushed to release-18.03 « nixos/release-combined.nix: fix eval of tested job »: https://git.io/vpMPR
<boomshroom>
Looks like building the system attribute works, but not vm.
pingu_ has quit [Ping timeout: 260 seconds]
hamishmack has joined #nixos
Sonarpulse has quit [Ping timeout: 276 seconds]
<boomshroom>
It might be that the package override is messing up qemu and qemu depends on secconf.
<boomshroom>
I am now building a RISC-V NixOS system.
<gchristensen>
cc shabius
<gchristensen>
erm shlevy
mkoenig has joined #nixos
07EABDE6N has joined #nixos
jason has joined #nixos
jason is now known as Guest77739
jperras has quit [Ping timeout: 265 seconds]
aarvar1 has joined #nixos
07EABDE6N is now known as zybell_
aarvar has quit [Ping timeout: 256 seconds]
<Lisanna>
Okay, figured it out I'm pretty sure. withPackages is VERY picky about the python version!
<Lisanna>
hasPythonModule x_x
jperras has joined #nixos
<Lisanna>
now I'm wondering if it's possible to override the version of python used in buildPythonPackage
rauno has quit [Ping timeout: 248 seconds]
<boomshroom>
Lisanna: I'm pretty sure it's possible by using a python platform. The specifics I don't know off the top of my head.
HEX0 has joined #nixos
<HEX0>
hello
<boomshroom>
HEX0: Hi!
chessai has joined #nixos
ericsagnes has quit [Ping timeout: 240 seconds]
<HEX0>
Is is ok to discuss nix in general here or is this only support channel?
<gchristensen>
ask away!
<gchristensen>
or talk away ... :)
<boomshroom>
HEX0: I think so? I ususually do anyways.
<boomshroom>
HEX0: NixOS isn't much more than a Nix package itself.
<Lisanna>
nixos isn't big enough yet to have dedicated separate support vs. general IRC channels ^^
fogbugz2345 has joined #nixos
<HEX0>
I have tried NixOS a few weeks ago in KVM and I quite liked it. I also tried installing Nix package manager in arch and briefly dabbled with that aswell. I find the idea behind it very cool and unique in how it operates. especially considering that packages automagically don't collide. well it's way too complicated for me to grasp the technicalities. I do use arch and gentoo as those are simple enough to
<HEX0>
understand and I see why people love the package management and how it's useful in certain production environments. But I'm curious how do you guys compare using NixOS as a desktop distro when compared to say gentoo?