mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<kkini>
oh. I think I figured it out, haha
<bgamari>
lovely
<kkini>
stdenv.mkDerivation tries to export all members of the set as environment variables for the build process to use, right
<ylwghst>
kkini: syntax problem
<ylwghst>
?
<kkini>
nah, not a syntax problem
<kkini>
I was staring at it thinking it was a syntax problem, but that's what I was doing wrong :)
<kkini>
I just need to wrap that hashes thing in a let
<bgamari>
is there an easy way to make `nix-copy-closure` work between two non-NixOS machines?
<bgamari>
if I try to copy in either direction I get `bash: nix-store: command not found`
<clever>
bgamari: make sure nix is in PATH
srdqty has joined #nixos
<bgamari>
other than that?
<clever>
bgamari: "ssh user@remote 'echo $PATH'"
<clever>
bgamari: thats it
<clever>
bgamari: and also, the non-shell ssh's use a different rc file in $HOME
<bgamari>
yeah
<clever>
so you need to tweak the config to ensure its still in PATH
<bgamari>
I currently haven't completely dived in to nix yet
<bgamari>
so currently Nix isn't in my environment by default
<bgamari>
but it's looking more and more inevitable
pie_ has quit [(Ping timeout: 240 seconds)]
nslqqq has quit [(Ping timeout: 248 seconds)]
srdqty has quit [(Ping timeout: 240 seconds)]
Kingsquee has joined #nixos
srdqty has joined #nixos
hellrazor_m has joined #nixos
dbmikus has joined #nixos
sigmundv__ has quit [(Ping timeout: 248 seconds)]
gandreani has quit [(Ping timeout: 258 seconds)]
S0rin has quit [(Ping timeout: 240 seconds)]
Wizek has joined #nixos
S0rin has joined #nixos
ylwghst has quit [(Ping timeout: 248 seconds)]
<srk>
clever: do you possibly have not-os hydra configuration somewhere? or is it just a matter of following hydras official instruction with release.nix?
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
asuryawanshi has quit [(Ping timeout: 260 seconds)]
scribbler has quit [(Read error: No route to host)]
scribbler has joined #nixos
<vaibhavsagar>
is there a way for me to clear a hydra cache?
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
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)]
datakurre has quit [(Remote host closed the connection)]
S0rin has quit [(Ping timeout: 260 seconds)]
<vaibhavsagar>
thanks srk
vaibhavsagar has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
vaibhavsagar has joined #nixos
S0rin has joined #nixos
slack1256 has joined #nixos
dbmikus has quit [(Ping timeout: 252 seconds)]
notdaniel has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #31173: mkPythonDerivation: let name default to ${pname}-${version} (master...python-implicit-name) https://git.io/vFZNd
NixOS_GitHub has left #nixos []
seanz has quit [(Quit: Leaving.)]
slack1256 has quit [(Remote host closed the connection)]
vaibhavsagar has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<NixOS_GitHub>
nixpkgs/master 19d67e1 Peter Hoeg: Merge pull request #30402 from adisbladis/kdeapplications_17_08_2...
NixOS_GitHub has left #nixos []
damke_ has quit [(Ping timeout: 240 seconds)]
damke_ has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 240 seconds)]
JosW has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] eqyiel opened pull request #31174: lame: prevent build failure from using outdated symbol list (master...fix-lame) https://git.io/vFZpb
NixOS_GitHub has left #nixos []
nslqqq has quit [(Ping timeout: 248 seconds)]
nslqqq has joined #nixos
gandreani has quit [(Quit: leaving)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
ssmike has joined #nixos
S0rin has quit [(Ping timeout: 260 seconds)]
<JosW>
MoreTea: What was the overall conclusion from your talk at Nixcon?
S0rin has joined #nixos
ssmike has quit [(Ping timeout: 248 seconds)]
<vaibhavsagar>
is there a vim_configurable without the GUI?
<srhb>
vaibhavsagar: Looks like you can override soruce = "vim-nox"
<vaibhavsagar>
I see, thanks srhb
Wizek has quit [(Quit: Connection closed for inactivity)]
<Havvy>
"You're just not aware your goal is learning Haskell."
leat has quit [(Quit: WeeChat 1.9.1)]
reinzelmann has joined #nixos
notdaniel has joined #nixos
ssmike has joined #nixos
Guest16722 has quit [(Ping timeout: 248 seconds)]
damke has joined #nixos
damke_ has quit [(Ping timeout: 240 seconds)]
MP2E has quit [(Remote host closed the connection)]
MP2E has joined #nixos
<vaibhavsagar>
is there a straightforward way to set up hydra + https?
<gchristensen>
you can setup nginx + acme and reverse-proxy to hydra
seanparsons has quit [(Ping timeout: 240 seconds)]
<vaibhavsagar>
that sounds like a good approach
notdaniel has quit [(Quit: Leaving)]
periklis has joined #nixos
periklis has quit [(Client Quit)]
seanparsons has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
<JosW>
Hé, I would love to read a straightforward way to setup Hydra, the https stuff comes afterwards
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis opened pull request #31176: pythonPackages: Add version and pname attributes to packages (master...pythonPackages-versionattr) https://git.io/vFnep
NixOS_GitHub has left #nixos []
jacob_ has joined #nixos
jacob_ is now known as Guest1421
<hyper_ch>
gchristensen: thats log is just fakenews :)
MP2E has quit [(Remote host closed the connection)]
<adisbladis>
sphalerite: :(
ambro718 has joined #nixos
leat has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
srdqty has quit [(Ping timeout: 240 seconds)]
srdqty has joined #nixos
pie_ has quit [(Ping timeout: 255 seconds)]
ma27 has joined #nixos
jsgrant has quit [(Remote host closed the connection)]
nslqqq has quit [(Ping timeout: 258 seconds)]
<sphalerite>
should nix-daemon maybe be ioniced to the idle class by default? I find my chromebook becoming unresponsive during builds sometimes
Lisanna_ has joined #nixos
<Lisanna_>
What happens if you try to install something from a nix-channel that isn't in the binary cache? will it pull the expression down and build locally?
<sphalerite>
Lisanna_: it already has the expression locally
<sphalerite>
but yes, it will build it
<Lisanna_>
oh right, yeah, duh
<Lisanna_>
okay, that's good.
<gchristensen>
sphalerite: the nix daemon needs high-ish IO for nix-shells to be responsive
<gchristensen>
(ie: time to start a nix-shell)
<sphalerite>
aah right
<sphalerite>
Wait, does it?
Lisanna has quit [(Ping timeout: 260 seconds)]
Ivanych has quit [(Quit: Leaving.)]
<gchristensen>
when I set nix-daeemon to a low IO class, it made everything nix-* sooo slow
<sphalerite>
won't the typical case for nix-shell be where it's already available on the system, i.e. the nix-shell process will evaluate and instantiate the derivation (which requires reading nixpkgs but doesn't happen in nix-daemon), then find that it's already in the store so it doesn't even need to talk to the daemon?
<gchristensen>
I wish long matrix URLs were ~6 chars shorter
<gchristensen>
sphalerite: what am I seeing here?
<sphalerite>
me trying to log in
<sphalerite>
I pressed enter 2 minutes ago
<gchristensen>
ouch.
<sphalerite>
still waiting for my password prompt
ma27 has quit [(Ping timeout: 248 seconds)]
ckauhaus has joined #nixos
asuryawanshi has quit [(Read error: Connection reset by peer)]
<Lisanna_>
if a derivation foo has build inputs a, b, and c (they are all derivations), will Nix build a, b, and c in parallel if build-cores has been set > 1? If so, is it controlled by build-cores or NIX_BUILD_CORES? The manual is not explicit about this.
justbeingglad has joined #nixos
justbeingglad has left #nixos []
asuryawanshi has joined #nixos
<sphalerite>
Lisanna_: yes it will, if a, b, and c don't depend on each other.
<sphalerite>
Except it isn't defined by build-cores
<Lisanna_>
What's it defined by?
<sphalerite>
it's max-jobs. max-jobs is the number of builds that will run concurrently
ma27 has joined #nixos
<sphalerite>
while build-cores is the number of processes a single build will use (only a suggestion though. Builds may or may not actually honour it)
<Lisanna_>
Okay, and if I set it to more cores than I have, will it oversubscribe them?
<gchristensen>
it is not a smart system, if that is what you mean
<sphalerite>
yeah, it leaves being smart up to the kernel
<Lisanna_>
e.g. if I'm building a lot of very I/O bound derivations, I may want to run more jobs than I have cores
<sphalerite>
I think if you want more jobs you need to add more build users as well
<Lisanna_>
Does that apply on NixOS?
<spacefrogg>
It applies to Nix.
<sphalerite>
Yes, although it's easy on nixos — just increase nix.nrBuildUsers
<Lisanna_>
Okay, cool
<gchristensen>
it is important you have nix build users equal the number of max jobs (no use having extra build users)
chessai has quit [(Remote host closed the connection)]
<joko>
Hello, I am trying to package a program with a systemd user unit and I have the following problem: I would like to use the already available unit files, but in one of them /bin/true is being run. Should I make coreutils a package dependency and use systemd.packages to expose the user units if the user enable the NixOS service?
<Lisanna_>
gchristensen: so is there any value in having nix.maxJobs and nix.nrBuildUsers be separate attributes in NixOS? seems like any case where they're not set to the same value isn't useful / valid
<joko>
gchristensen: the test vms do not have internet access and thus they cannot build any package. Since my nixpkgs do not have grub2 with zfsSupport, the test vm tries to build it and fails.
<Lisanna_>
...and following this logic further, why does Nix on any OS have max-jobs as being separate from the # of build users? couldn't it just infer the maximum from the number of build users that exist?
ambro718 has quit [(Ping timeout: 248 seconds)]
<gchristensen>
Lisanna_: as you noted, if you know you're doing a lot of io-heavy jobs you may want to increase the max jobs temporarily
<Lisanna_>
right, but I'll still need the # of build users and # of max jobs to be the same, right?
<Lisanna_>
oh, wait, no, I understand
<gchristensen>
the # of users can be > # of max
<Lisanna_>
max-jobs is easy to change
<Lisanna_>
number of build users is not
<Lisanna_>
haha, the answer is literally my use case :)
kuznero has joined #nixos
<LnL>
gchristensen: about that, the darwin installer only creates 4 so it fails if you run with -j8
hamishmack has quit [(Quit: hamishmack)]
<gchristensen>
the darwin installer creates 1 per core?
<kuznero>
I see it is still 1.19... What is the process of getting latest packages of the hackage?
<LnL>
have you checked master/nixpkgs-unstable?
a6a3uh has joined #nixos
a6a3uh has quit [(Client Quit)]
<kuznero>
LnL: will check it, thanks
<LnL>
packages are periodically synced with the latest lts IIRC
<kuznero>
1.19.2.4 is the latest pandoc in pkgs/development/haskell-modules/hackage-packages.nix on master of nixpkgs.
<kuznero>
So, I guess that is old one
davidak has quit [(Quit: Leaving.)]
ssmike has quit [(Ping timeout: 264 seconds)]
<LnL>
then you'll have to generate an expression for it with cabal2nix and add that with an overlay
davidak has joined #nixos
<LnL>
there should be an example for that in the haskell section of the manual
<kuznero>
LnL: thanks, but about master of nixpkgs, is it typically a maintainer who's running the update procedure or is it automated somehow?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ma27 has joined #nixos
goibhniu has joined #nixos
<gchristensen>
both :):
<LnL>
it's automated, but it might take some time for an update to end up in an lts
<kuznero>
I see
<kuznero>
Another question - is it possible to play with hydra on a very modest laptop?
ma27 has quit [(Client Quit)]
ma27 has joined #nixos
<LnL>
don't think it uses that many resources, the man bottleneck is evaluation
<LnL>
but it should be ok, assuming you don't want to build all of nixpkgs
<ArdaXi[m]>
It really depends on what you want to build
<kuznero>
ok, and once I will come up with the setup of my projects in hydra, is that generally difficult to migrate it to real hydra setup (away from my laptop)?
<kuznero>
I want to build my haskell projects
<kuznero>
only my projects
<ArdaXi[m]>
I tried to evaluate my own system with Hydra on a 2 GB RAM server and it failed to build ghc
whald has quit [(Remote host closed the connection)]
<kuznero>
ArdaXi[m]: ups :(
<LnL>
you'll want to configure it so it uses substitutes
<kuznero>
I have about 10GB, hope it will be enough.
<kuznero>
LnL: what do you mean?
<ArdaXi[m]>
I did
<ArdaXi[m]>
Still the output was too large for Hydra
<LnL>
I think it won't use the cache by default
<LnL>
then you have to build everything yourself
<kuznero>
Does it make sense to pin nixpkgs for hydra build machinery? Is it possible to do it only for hydra stuff and let the rest of nixos upgrade?
<ArdaXi[m]>
Nono, it was in the Nix store
<ArdaXi[m]>
Hydra will still use stuff that's already in the Nix store, it just won't pull from binary caches
<kuznero>
Is there any way to setup Hydra to use binary cache? Or, will it build its own cache?
<gchristensen>
you can tell it to use substitutes
<LnL>
both, I can make a snippet of my config in an hour or so if you want
<kuznero>
gchristensen: I am sorry for asking lame questions, but my understanding of a substitute is - using string interpolation like this: "... ${something} ..."
<LnL>
we're talking about build substitutes
<gchristensen>
the binary cache is the substitution systeme
ssmike has joined #nixos
<kuznero>
Ah...
<kuznero>
thanks
<LnL>
that's the name nix uses for a binary cache / remote store / ...
Neo-- has joined #nixos
<gchristensen>
sorry for the jargon :)
<kuznero>
:) I am catching up :)
<kuznero>
But generally once I have my project structure setup in my laptop hydra playground, is that difficult to migrate the project setup to proper hydra setup?
<kuznero>
Like e.g. in GoCD (from Thoughtworks) it is just the matter of copying an xml file (or parts of it).
<LnL>
there's a mechanism to configure jobsets in a declarative way, but I've not used it
<lewo>
kuznero: you will only have to recreate project and jobset
<lewo>
kuznero: I'm currently using hydra APIs via a bash script to do this
<LnL>
most of the logic is in the release.nix of your project
<lewo>
LnL: is it documented somewhere (declarative way)?
<LnL>
no idea, maybe in the hydra manual
<kuznero>
"This manual will tell you how to set up new projects and build jobs within those projects and write a release.nix file to describe the build process of your project to Hydra" from hydra manual
<kuznero>
ok, thanks. Btw, lewo: about skopeo - is it completely wrong docker images it produces? It had worked for me nicely. Using previous implementation fails when it needs to go through the proxy :(
brodul has quit [(Ping timeout: 246 seconds)]
Fare has quit [(Quit: Leaving)]
brodul has joined #nixos
typeggze1o has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<lewo>
kuznero: in fact, it produces correct docker images, but not exactly what is produced by docker save... So several script that still relies on this format fail when we use skopeo.
erictapen has joined #nixos
<lewo>
kuznero: I've created a PR to change this in skopeo but it's not trivial
<kuznero>
lewo: nice, can you please post a link to PR?
pSub has quit [(Remote host closed the connection)]
<jluttine>
i'd like to install a plugin for weechat, but this plugin has a dependency on another python package. how can i add this dependency so that the plugin finds it?
pSub has joined #nixos
pSub has quit [(Changing host)]
pSub has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vFn3C
<NixOS_GitHub>
nixpkgs/master 5f86f5d Vladimír Čunát: knot-dns: maintenance 2.6.0 -> 2.6.1...
<NixOS_GitHub>
nixpkgs/master 4b15ca2 Vladimír Čunát: knot-resolver: 1.4.0 -> 1.5.0...
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sphalerite>
jluttine: not possible with the current setup AFAIK
<pstn>
Does nixos support having multiple x-servers running without much headache? Is it more work for me to find another computer as a static monitor to show a website, or to configure my box that is running anyway?
<hyper_ch>
hi pstn
<pstn>
Hi hyper!
<hyper_ch>
multiple x-servers? can't you just attach multiple screens?
<pstn>
No, I just want to have a monitor that has a browser window open with our monitoring for everybody to see. I don't want to be able to reach it with the mouse or anything. Also it should be working, when my computer is otherwise locked.
<pstn>
Think kiosk mode.
<hyper_ch>
ah... no idea
<pstn>
Yeah, looks like a hassle. I'll just get some other hardware.
tgunb has joined #nixos
davidak has joined #nixos
<sphalerite>
philipp: works fine for me with sddm
instantepiphany has joined #nixos
<sphalerite>
I send it the dbus-message to create a new session using dbus-send, but I think there should be a GUI option for it in Plasma and probably GNOME too
<DIzFer[m]>
with krunner, you can type "new session" for this
Ridout has quit [(Remote host closed the connection)]
<instantepiphany>
I am having trouble with USB Tethering and Wifi Hotspot on my new laptop with NixOS. Specifically, If I USB tether or connect to a wifi hotspot, I cannot ping IP addresses or hostnames, or load webpages. I checked `ip route` and am not familiar enough with the `ip` commands to know what the issue is. What information do I need first?
<sphalerite>
Can I somehow disable the kernel/bootloader/initramfs stuff completely for nixos? I'm managing my kernel and bootloader manually and want to cut down on system build time
<sphalerite>
isContainer seems close to what I want but it also disables stuff like ntp
<pstn>
Linus: How do you organise your screens?
<typeggze1o>
how can I include the vimrc? I have it in .config but it doesn't work
<sphalerite>
philipp: oh wait you mean multiple monitors with separate X servers running on them. Sorry, misread the question
<pstn>
typeggze1o: I think it's oldschool and needs to be called ~/.vimrc
<pstn>
Linus: Yeah, my main monitors that I use anyway plus a completely separate kiosk monitor for everybody to look at.
<sphalerite>
typeggze1o: what pstn said, but you may also be interested in using nixpkgs to configure it
<sphalerite>
How to do that is in the nixpkgs manual iirc
<sphalerite>
philipp: right. Not sure in that case, you could probably get it working by fiddling with the X config enough and adding another service that runs the X server on the kiosk but I imagine it would be quite a fuss.
<Profpatsch>
Has anyone already experimented with generating a Docker base image from a NixOS configuration?
<pstn>
Linus: Yeah, that's what I thought. I think my employer would appreciate if I didn't spend my time with that but rather earn us some money and use another computer.
<Profpatsch>
It probably doesn’t work from scratch in the current module configuration.
<Profpatsch>
sphalerite: You have the --fast flag.
<Profpatsch>
Which doesn’t do the grub stuff on rebuild switch
<Profpatsch>
And probably skips some other parts of activation.
pie_ has joined #nixos
orivej has joined #nixos
<sphalerite>
philipp: :)
<sphalerite>
Profpatsch: the main issue for me is that it wants to build the kernel... From source...
<sphalerite>
It's not so much the activation as the build stuff that's in my wY
<Profpatsch>
ouch
ylwghst has quit [(Ping timeout: 260 seconds)]
kuznero has joined #nixos
<vincent_vdk>
other people here using KDE+plasma5?
<hyper_ch>
yes
<hyper_ch>
(doesn't everyone?)
<vincent_vdk>
hyper_ch: does Alt+Tab work for you
<hyper_ch>
depends on what result you expect when pressing so
<vincent_vdk>
switching between open windows
<hyper_ch>
yes
<vincent_vdk>
damn, doesnt work here...
<vincent_vdk>
shortcut should be ok
<kuznero>
Managed to setup Hydra. Pretty simple. But following simple patchelf example project seems strange a bit. I create a patchelf project (as stated in hydra manual), then I created trunk jobset. And section 3.4 Building Jobs is actually missing. How do I trigger my Hydra to build my patchelf project now?
ylwghst has joined #nixos
mithsv has joined #nixos
<hyper_ch>
vincent_vdk: nixos unstable?
davidak has quit [(Ping timeout: 240 seconds)]
mithsv_ has joined #nixos
mithsv has quit [(Read error: Connection reset by peer)]
mithsv_ is now known as mithsv
davidak has joined #nixos
<vincent_vdk>
hyper_ch: no, stable
<hyper_ch>
well, I use unstable
<vincent_vdk>
lol
TweyII has joined #nixos
TweyII is now known as Guest6132
<kuznero>
When I try to force evaluate this new jobset, it doesn't do anything... :(
<kuznero>
What I essentially want is to run the build and see the output in Hydra... what am I missing?
mithsv has quit [(Read error: Connection reset by peer)]
lebel has joined #nixos
ThatDocsLady has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
python476 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #31182: chroot-user: rewrite in C, drop CHROOTENV_EXTRA_BINDS (master...chroot-user/c-rewrite) https://git.io/vFnEi
NixOS_GitHub has left #nixos []
<kuznero>
And list of all evaluations is empty. I am probably missing something very obvious
<kuznero>
Just to clarify, I have a jobset, but no job.
rburkholder has joined #nixos
<hyper_ch>
how does it actually work that you can set options/settings in configuration.nix and by doing so configure services?
DiThi has joined #nixos
<hyper_ch>
I'd love to be able to set settings for a bash scripts that I wanna cron
<DiThi>
hello
<DiThi>
I currently use unstable in nixos, but nearly every time I do switch, a new nixpkgs version is downloaded
<ArdaXi[m]>
hyper_ch: Depends on the service, most of them create a configuration file that ends up in the Nix store, and the service is given that configuration file on start
<DiThi>
what's the best way of keeping one version and updating only when I want?
<ma27>
DiThi: do you update your channel before you rebuild?
<Profpatsch>
DiThi: What’s your NIX_PATH?
<hyper_ch>
ArdaXi[m]: but how to do that :) trying to write a small zfs snapshotting and sending script since existing ones seem to have issues with encrypted datasets
<DiThi>
Profpatsch: I mean, I'll put the local path in configuration.nix
bivoje has quit [(Quit: Connection closed for inactivity)]
<ArdaXi[m]>
I don't see any reason why it shouldn't get those settings from ZFS rather than a flag
<Profpatsch>
DiThi: Yes, that should work.
<hyper_ch>
ArdaXi[m]: taking what upstream?
<Profpatsch>
Instead of (import <nixpkgs> {}) you use (import /path/to/checkout {})
<ArdaXi[m]>
hyper_ch: It seems like it would be easier to fix this in the snapshotting service than to roll your own entirely, but if you want to go the latter route I'd really just look at something similar in nixos modules and copy that
<hyper_ch>
ArdaXi[m]: autosnapshot isn't laid out to treat different datasets differently
<hyper_ch>
and neither to send them to other pools/servers
<ArdaXi[m]>
It is, the frequency is determined per-dataset
<hyper_ch>
but not the amount of snapshots for according frequency
<ArdaXi[m]>
I know, which is why I suggested you might be able to change that upstream
<hyper_ch>
or I learn how to handle snapshots by writing my own script ;)
<NixOS_GitHub>
[nix] edolstra pushed 5 new commits to master: https://git.io/vFnz1
<NixOS_GitHub>
nix/master 0e77aa3 Eelco Dolstra: fetchGit: Don't do a remote fetch if we already have the rev
<NixOS_GitHub>
nix/master 4dee01d Eelco Dolstra: fetchGit: Add a test
<NixOS_GitHub>
nix/master ee6ac38 Eelco Dolstra: fetchGit/fetchMercurial: Filter out directories with untracked files
NixOS_GitHub has left #nixos []
<kuznero>
Is it possible to configure hydra to use proxy?
<kuznero>
And is it possible to see in general why hydra does not pick up on a new jobset?
<kuznero>
Any error/trace log in web UI?
damke has joined #nixos
davidak1 has joined #nixos
damke_ has quit [(Ping timeout: 240 seconds)]
davidak has quit [(Ping timeout: 255 seconds)]
Guest6132 has quit [(Changing host)]
Guest6132 has joined #nixos
Guest6132 is now known as TweyII
<tobiasBora>
Hello,
<tobiasBora>
I just installed nixos on my raspberry 1 model a, by using the pre-made image linked in the wiki, and then I just enabled openssh, and now the raspberry pi is compiling, for something like 2 hours...
<tobiasBora>
(it's still dealing with bootstrap)
<kuznero>
domenkozar: why jobsets are not turned into jobs? Hydra for some reason does not want to start evaluating my jobsets... What can be the reason? I am trying to follow examples on hydra manual...
asuryawa_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] AndersonTorres opened pull request #31184: openmsx: init at git-2017-11-02 (master...upload/openmsx) https://git.io/vFngA
NixOS_GitHub has left #nixos []
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<spacefrogg>
kuznero: Can you evaluate the jobset by hand?
<tokudan[m]>
tobiasBora: last time i installed nixos on rpi3, the first rebuild took about 3 days. with an rpi1 you can probably double that time. Though it heavily depends on the amount of software that actually needs to be built
<Dezgeg>
tobiasBora: did you base the config on the wiki page (which lists the binary cache url & signature)
<kuznero>
spacefrogg: nope, I was expecting some feedback from Hydra UI or from Hydra logs. But nothing was coming out of it.
<spacefrogg>
kuznero: See the journalctl logs for hydra-evaluator.service
<kuznero>
spacefrogg: I was running hydra-server as a user
<spacefrogg>
kuznero: Do you have hydra-evaluator running in some termnal?
<kuznero>
spacefrogg: I only run hydra-server, what is hydra-evaluator?
<kuznero>
I see now :)
<kuznero>
Thanks!
<spacefrogg>
Hydra consists of three main services :)
<spacefrogg>
server, evaluator, queue-runner
<kuznero>
I see now :) Thanks a lot, missed ~5 lines in the hydra manual :)
<dtzWill>
goibhniu: I don't .. think so! But perhaps I said I would be interested in listening to one? Not sure, I don't remember sorry
trevorriles has joined #nixos
<goibhniu>
dtzWill: ahh ... maybe that was it :D
<gilligan_>
Can anyone tell me something about using S3 as binary cache? It seems like there is some hydra plugin or so.. How about building a binary cache on S3 without hydra?
asuryawanshi has joined #nixos
<LnL>
nix copy (or nix-push) has support for s3
<gilligan_>
ah, alright
<gilligan_>
LnL, nix-push man page doesn't seem to mention that
Neo-- has joined #nixos
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<LnL>
hmm, I could be wrong
marzzzello has joined #nixos
<LnL>
I've only used it for a local file cache
taktoa has quit [(Remote host closed the connection)]
<gilligan_>
alternatively i could leave the files where they are and use nix-serve but when I tried that before that really didn't work very well.. kept on crashing
<Profpatsch>
LnL: If you say “looks a lot more like nixos” on nix-docker, does that mean it’s possible to generate e.g. a postgresql nixos service into a layer with dockerTools and use that?
<LnL>
no the official one is based on alpine so you have busybox binaries in /bin etc.
<dtzWill>
(like you can with nixos-container, Profpatsch? Dunno re:using that w/dockerTools, but seems like a thing that'd work maybe O:))
<dtzWill>
oh nvm
<Profpatsch>
dtzWill: afaik nixos-container stuff is nspawn, right?
<dtzWill>
i think so, ya
<dtzWill>
machinectl stuff maybe
<dtzWill>
too many related things/techs/terms O:)
<Profpatsch>
I want to build dockerfiles so people can use it on their dev machine.
<Profpatsch>
e.g. a postgres server with dummy data of our application w/ a docker run or similar
<dtzWill>
oh I see. dockerTools makes it easy to, for example, throw a postgresql build into a container--but the logic managing it (esp the awesome configuration goodness) from nixos wouldn't be included. Which is fine for simple things...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vFnXk
<gilligan_>
Is anyone here using overlays & nixops ? We are currentlys switching our setup to use overlays. The problem is that nixops just looks at NIX_PATH and gets all packages from there. What I want of course it nixops to use my final nixpkgs after applying all overlays - Any thoughts on that?
mizu_no__ has joined #nixos
lo1tuma has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mulderr opened pull request #31192: nixpkgs manual: add rstudio shell.nix example (master...master) https://git.io/vFn18
<pierron>
disasm: gilligan_: I don't know anything about NixOps. NixOS has an option to specify overlays to be included for each machine configuration. A part from that, I have no better answer.
<woffs>
.oO(and how long does it take to build qt5-webengine on YOUR machine?)
pie_ has joined #nixos
<woffs>
i686 being dropped sucks a bit
simukis has joined #nixos
drqweryopt has quit [(Ping timeout: 248 seconds)]
<gilligan_>
pierron, thank you. I am not entirely sure about the inner workigns of nixops but i should definitely try that..
<Profpatsch>
woffs: Yeah, perhaps somebody should create a binary cache for i686
<woffs>
Profpatsch: I just do "nix-build <nixpkgs/nixos> --argstr system i686-linux -I nixos-config=$HOME/git/configuration.nix/my-configuration.nix -I nixpkgs=$HOME/.nix-defexpr/channels/nixos1709 -A system" every now and then on a faster 64bit machine, but it takes several hours when full rebuilds are to be done
<woffs>
poor man's hydra ;)
<adisbladis>
woffs: I have built qt5-webengine quite a lot of times.. I have started waiting until I go to bed if I see qt5-webengine in the list of builds ;)
olto has quit [(Remote host closed the connection)]
ylwghst has quit [(Quit: Lost terminal)]
ylwghst has joined #nixos
<woffs>
adisbladis: ;)
tgunb has quit [(Ping timeout: 240 seconds)]
jtojnar has joined #nixos
olto has joined #nixos
<Profpatsch>
qt-webengine: Compiles the blazingly fast build speeds of a massive C++ codebase with those of another massive C++ codebase!
iyzsong has quit [(Ping timeout: 240 seconds)]
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
MercurialAlchemi has quit [(Ping timeout: 258 seconds)]
erictapen has quit [(Remote host closed the connection)]
ssmike has joined #nixos
erasmas has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joncfoo opened pull request #31197: Fix nix-shell command example in python docs (master...patch-1) https://git.io/vFn7N
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Lassulus opened pull request #31198: nixos/test-instrumentation: take DISPLAY from system-config (master...test-display) https://git.io/vFn7A
NixOS_GitHub has left #nixos []
erictapen has joined #nixos
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
emiLio_esfoobar has quit [(Ping timeout: 248 seconds)]
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
leat has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to master: https://git.io/vFndI
<NixOS_GitHub>
nixpkgs/master 1f379ed Piotr Bogdan: snes9x-gtk: fix build
<eacameron>
If I have a systemd process running as user X, should I create that user as a normal user or system user?
<seville>
Mic92, Yeah I pretty much just defined it as a `let in ''<i3 config stuff''` string. Asking because I wanna make sure I understand how user configs are handled in nix
<freeman42x>
anyone know what is the Nix equivalent for `build-essential` ?
<Mic92>
freeman42x: there is no meta-package for that.
<freeman42x>
it is not `stdenv` ?
<Mic92>
stdenv maybe, but build-essential includes more afaik
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to master: https://git.io/vFnNM
<freeman42x>
I'm using Haskell Stack and it keeps needing things to do its work: make, now gcc,..
<freeman42x>
I'd rather just install something that provides all required build tools for it
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
<eacameron>
CrazedProgrammer: Can I run commands *as* that user? I want that user to connect to PG DB via `peer`
<freeman42x>
Mic92: I'll try `stdenv`, hopefully that covers the Stack needs. I don't get why the Nix Stack package actually installed those as dependencies
ma27 has quit [(Ping timeout: 246 seconds)]
freusque has quit [(Quit: WeeChat 1.7.1)]
<freeman42x>
*didn't install those as dependencies
<orivej>
Is there something like `nix why-depends pkg dep` that can tell why the build of pkg depends on dep? (nix why-depends tells this about the runtime closure, and hence needs to build the pkg to answer this query)
<eacameron>
CrazedProgrammer: When I do that command it says "This user is currently not available". Do I need to give it a password?
<eacameron>
CrazedProgrammer: The user is listed in `/etc/passwd`
ma27 has joined #nixos
asuryawa_ has joined #nixos
<CrazedProgrammer>
eacameron: that's strange, try logging out and back in
S0rin has joined #nixos
<eacameron>
CrazedProgrammer: Same! Hmm... I have mutableUsers = false
seville has quit [(Ping timeout: 240 seconds)]
<Lisanna_>
I'm running nix-prefetch-git in a loop to iterate over multiple refs, and it's pretty slow, since it's re-cloning the repo every time... is there a faster way to do this, other than manually git clone && nix-hash ?
mekeor has quit [(Quit: digital revolution = cryptoanarchism + cybercommunism)]
asuryawanshi has quit [(Ping timeout: 246 seconds)]
<CrazedProgrammer>
are you sure you have sudo rights?
<nliadm>
Lisanna_: I think those are your options. you might be able to use git archive in a pipeline from a manual clone to make it suck less?
endformationage has joined #nixos
<Lisanna_>
nliadm: the main reason doing it manually with nix-hash is because the hashing method for fetchgit might change in the future, and if it does, nix-prefetch-git will also presumably change with it, but the manual method will not
<Lisanna_>
the main reason doing it manually sucks*
asuryawa_ has quit [(Ping timeout: 260 seconds)]
<orivej>
Lisanna_: I have not tried this, but another option is git clone && nix-prefetch-git ./path or file://path
<eacameron>
CrazedProgrammer: I'm running as root
<eacameron>
Also my user doesn't have a home
<eacameron>
Could that be it.
<eacameron>
It's just `users.users.myappuser.isSystemUser = false;`
erictapen has quit [(Ping timeout: 260 seconds)]
asuryawanshi has joined #nixos
<CrazedProgrammer>
try users.extraUsers instead of users.users
<eacameron>
I think they `extraUsers` is just an alias.
<CrazedProgrammer>
hmmm
<eacameron>
I'll try adding a home.
ma27 has quit [(Read error: Connection timed out)]
Itkovian has joined #nixos
jensens has quit [(Ping timeout: 255 seconds)]
ison111 has joined #nixos
Itkovian has quit [(Client Quit)]
seville has joined #nixos
seville has left #nixos []
FRidh has quit [(Quit: Konversation terminated!)]
lo1tuma has quit [(Quit: Page closed)]
roberth has quit [(Ping timeout: 258 seconds)]
<sphalerite>
Does anyone know why kexec -e might work fine while systemctl kexec doesn't?
_rht has quit [(Quit: Connection closed for inactivity)]
<sphalerite>
I've disabled prepare-kexec.service
Itkovian has joined #nixos
<sphalerite>
clever, you know stuff about kexec right?
hellrazor has joined #nixos
<bgamari>
Sonarpulse, How are things?
<cbarrett>
watching talks from nixcon. how can i help with triaging issues, I’d like to get involved
Mateon1 has quit [(Ping timeout: 258 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
trevorriles has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
b0f0 has joined #nixos
Mateon1 has joined #nixos
<goibhniu>
cbarrett: that would be super-helpful! You can try to reproduce issues, and label them appropriately, if you find out more information you can also add helpful comments, e.g. check if there's a newer version available etc.
<goibhniu>
cbarrett: it would be good to go through issues that have no comments at all
<cbarrett>
Awesome. Seems like a good candidate for a wiki page if there isnt one already
<acowley>
I have an installPhase for a cmake-using package that ends with: "-- Installing: /nix/store...\n rm: missing operand\nTry 'rm --help' for more information." Does anyone have any suggestions as to how I can track down where this `rm` is coming from?
emiLio_esfoobar has quit [(Ping timeout: 240 seconds)]
<acowley>
orivej: Unfortunately this is on darwin. I was wondering if anyone familiar with cmake builds might recognize the "-- Installing" tag and know about any default/typical cleanup actions that might be going awry.
playX has joined #nixos
<Dezgeg>
maybe grep for 'rm' in the package's cmake files in case it's from there...
<playX>
Hello everyone, i just installed nixos and want to add unfree pkgs, but when i type nixos-rebuild swith i have error, just look at image https://imgur.com/a/I7wfA
hellrazo1 has joined #nixos
emiLio_esfoobar has joined #nixos
<sphalerite>
playX: remove the braces around the line
<acowley>
Dezgeg: That's the sort of thing I've tried
<acowley>
Dezgeg: But I can't find it
<LnL>
acowley: cmake is so confusing
<acowley>
LnL: This is particularly painful because it happens as the final step of quite a long build and install, and it's almost certainly unnecessary cleanup of temporary build artifacts.
<playX>
Thanks, now it's working
<acowley>
LnL: But I can't find an `rm`, although various cmake files do define an `RM` command... and then don't use it. So I've got a surplus of red herrings here.
hellrazor has quit [(Ping timeout: 255 seconds)]
<Dezgeg>
maybe set -x just in case it's not coming from cmake but some setup hook
<acowley>
Ah, yes! That's a good idea
<acowley>
How do I do that again? LnL has tried to teach me.
<LnL>
acowley: there was something similar with chmod in a package recently, but somebody else fixed it
<Dezgeg>
maybe preInstall = "set -x"; or smth
yegortimoshenko has joined #nixos
<acowley>
Is there a way I could do this in a nix-shell where the installPhase is currently just past the error?
<acowley>
Maybe I could avoid rebuilding everything
<acowley>
It takes 1-2 hours to do the build, so iterating on it is painful
<LnL>
can't you --keep-failed and run the install part again in a nix-shell
python476 has quit [(Ping timeout: 248 seconds)]
playX has quit [(Ping timeout: 260 seconds)]
<acowley>
Oh geese, it literally is "set -x"
<acowley>
I thought that was a pseudo-hand-wave
notdaniel has quit [(Quit: Leaving)]
<acowley>
That is such a great feature
<acowley>
Hah! It's qt
<acowley>
Garglebargle, that stuff is so complicated
<acowley>
I've spent way more time wrestling with nix building qt things than I have using qt things
python476 has joined #nixos
<acowley>
It does a find piped into an xargs rm
Judson has joined #nixos
<acowley>
Making that an `rm -f` would fix this, wouldn't it?
playX has joined #nixos
<copumpkin>
why not -delete?
Judson is now known as Guest61875
<acowley>
That's an xargs flag?
<nliadm>
find
<Dezgeg>
or xargs -r (--no-run-if-empty)
ckauhaus has quit [(Quit: Leaving.)]
<Dezgeg>
but yeah, find -delete probably would be best
<acowley>
Oh, probably because the author is like me and doesn't like those flags to find for self-defeating Unix philosophy reasons
<playX>
why nix don't want install steam, i removed braces in { nixpkgs.config.allowUnfree = true; } and typed nixos-rebuild switch, when i rebooted nix says that https://imgur.com/a/KtpfX
<ArdaXi[m]>
playX: You're using nix-env, you'll want the bit that starts with "for nix-env"
<playX>
ok, thanks
<acowley>
Thank you so much Dezgeg and LnL for making set -x work and patiently reminding me about it more often than should be necessary
<LnL>
:)
__Sander__ has quit [(Quit: Konversation terminated!)]
mbrgm has joined #nixos
<acowley>
Now I get to rebuild qtbase /and/ the thing I'm trying to build. Need to overclock my darwin build farm (i.e. old mbp).
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #31197: Fix nix-shell command example in python docs (master...patch-1) https://git.io/vFn7N
NixOS_GitHub has left #nixos []
hellrazo1 has quit [(Ping timeout: 260 seconds)]
hotfuzz has quit [(Quit: WeeChat 1.9.1)]
marzzzello has quit [(Quit: bb)]
goibhniu has quit [(Ping timeout: 240 seconds)]
marzzzello has joined #nixos
jluttine has quit [(Quit: WeeChat 1.9.1)]
<woffs>
webengine build is finished! now haskell stuff.
jluttine[m] is now known as jluttine
Isorkin has joined #nixos
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFcq9
<mbrgm>
hey! are there concepts to have a more dynamic (e.g. autoscaling) deployment using nixos/nixops?
<copumpkin>
so NixOS (minus the ops) supports AWS userdata-based config
<copumpkin>
you can just stick your configuration.nix into userdata for your autoscaling group and the machines will reconfigure themselves at startup
playX has quit [(Quit: Page closed)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gnidorah opened pull request #31201: sway module: setcap binary, not wrapper (master...sway) https://git.io/vFcYC
NixOS_GitHub has left #nixos []
<edef>
or you can build an AMI and use that for your ASG
yegortimoshenko has quit [(Ping timeout: 255 seconds)]
<ArdaXi[m]>
Do Nix-built AMIs also support userdata?
lfish has joined #nixos
<edef>
nixos/modules/virtualisation/ec2-data.nix, I think?
<edef>
which nixos/modules/virtualisation/amazon-image.nix includes
<lfish>
hello, I have a problem with error messages, for example "$nix-env -i alex" returns "error: selector â matches no derivation". I get â or  instead of the offending expression with every nix tool
<lfish>
I'm on nixos, have already run nix-store --verify --check-contents --repair, and have no idea as to what can be causing that behaviour
<ArdaXi[m]>
I really wish I could convince $workplace to go NixOS
<srhb>
lfish: Looks like your shell is messed up.. There is no "alex" top level derivation though. Do you mean the haskell lexer? If so, check haskellPackages
<srhb>
lfish: that is, nix-env -iA nixos.haskellPackages.alex
<lfish>
that was just an example to reproduce the error, the idea is that error messages are messed up
<srhb>
lfish: Ah, okay.
<srhb>
lfish: Is it reproducible in a completely clean shell environment?
<woffs>
lfish: what is the output of echo $LANG
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #31173: mkPythonDerivation: let name default to ${pname}-${version} (master...python-implicit-name) https://git.io/vFZNd
NixOS_GitHub has left #nixos []
<lfish>
en_Us.UTF-8
srhb has quit [(Quit: Quit)]
<nh2[m]>
domenkozar: I think I found a problem with nixops keys. It seems to upload the files in a non-atomic fashion. My glusterfs startup sometimes fails, complaining that the the SSL privkey used doesn't have a proper header (most likely it's empty, and a few milliseconds after that, it actually gets its contents). the "...-key" inotify-based service exits as soon as the file exists, doesn't wait until the contents are up
srhb has joined #nixos
c0bw3b has joined #nixos
<nh2[m]>
domenkozar: http://patchlog.com/patches/atomic-scp-and-sftp-upload/ says "There's no way of knowing when the files have been fully transferred, both sftp and scp would create the files as soon as the transfer begins and will close then when it finishes"
<woffs>
feel free to label it unfree, if you think it should.
<sphalerite>
/nixpkgs
<srhb>
sphalerite: NixOS (the organization) ? :-)
<srhb>
So many Nix-named things we even overload the *specific* words.
<joepie91>
woffs: yeah, it's violating the OSD, as it discriminates by usecase
lfish has quit [(Ping timeout: 260 seconds)]
<joepie91>
and disallows sale of derivative works, which I don't think is allowed either
<joepie91>
so not open-source, and I suspect it's not "Free" (in the freedom sense) either
<joepie91>
this seems like a misleading license name at best...
<srhb>
The license itself is CC BY-SA though, so we can just fix that, right?
<srhb>
(kidding, of course)
<joepie91>
ha
<ArdaXi[m]>
This is a bit more complicated, I think. The spirit of that rule is, I believe, to forbid people from requiring a fee to redistribute software
<ArdaXi[m]>
What would CC-NC be then?
<c0bw3b>
it's not even referenced on spdx.org
<mbrock>
here's a Nix shoutout and a bit of unexpected applause for Nix at the Ethereum developer conference earlier today :) https://youtu.be/k42YNyvG8CU?t=1h34m51s
<ArdaXi[m]>
OSI doesn't mention CC-BY or CC-BY-SA even though I'm pretty sure those qualify
<joepie91>
ArdaXi[m]: CC licenses are generally not recognized as being suitable for code/software
<joepie91>
which might be why
<srhb>
mbrock: Nice analogy in that crowd too :)
roberth has joined #nixos
Fare has joined #nixos
<ArdaXi[m]>
joepie91: Sure, but they don't violate any of the OSD
<joepie91>
ArdaXi[m]: the OSI list is not complete :)
<ArdaXi[m]>
Except for the No Derivatives version… and the No Commercial we're curious about
<joepie91>
NC definitely violates OSD
<joepie91>
ArdaXi[m]: another license that complies with the OSD but is not on the OSI list is the WTFPL for example
<joepie91>
there's a few others that aren't on the list but considered compliant
<joepie91>
afaik the intention of the OSI list was never to make it a complete list
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vFcBM
<NixOS_GitHub>
nixpkgs/master ee23541 Vincent Laporte: ocamlPackages.ocaml_expat: 0.9.1 -> 1.0.0
<NixOS_GitHub>
nixpkgs/master 0eb284b Vincent Laporte: alt-ergo: remove constraint on OCaml version
<joepie91>
ArdaXi[m]: discouraged by whom? a limited amount of people have made claims about "not having a great legal foundation", but I have yet to see actual concrete reasons for that, and several other legal professionals have reviewed it and found no issue with it
<joepie91>
as far as I can tell, it boils down to "it doesn't sound serious enough"
<ArdaXi[m]>
Which is an actual issue
<joepie91>
how is it?
<ArdaXi[m]>
Open-source licenses grant specific rights
<ArdaXi[m]>
With the WTFPL, you open yourself up to interpretation as to "whatever the fuck you want" actually means
<joepie91>
how is that open to interpretation? seems pretty clear to me
<ArdaXi[m]>
You can't actually give rights to someone to do "whatever they want" in most jurisdictions
<ArdaXi[m]>
So there are exceptions, which means, in a court of law, you're going to have a fun discussion about what all those exceptions are
<ArdaXi[m]>
This is all extremely theoretical and the domain of lawyers until it comes to an actual court case, and even then you've only narrowed it down to one jurisdiction
jb55 has joined #nixos
jb55 has quit [(Client Quit)]
<joepie91>
seems pretty obvious to me - whichever things you couldn't grant in the first place
<joepie91>
like, I am well aware that there are fuzzy "well, what COULD happen..." claims around all sorts of licenses (not just the WTFPL) but nobody has ever been able to make any of those claims plausible as far as I've seen
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFc0n
<NixOS_GitHub>
nixpkgs/master 10169cc Fatih Altinok: yarn: 1.2.1 -> 1.3.2
<Sonarpulse>
bgamari: have you seen the builder script for gcc?
<Sonarpulse>
it's really...arbitrary
<sphalerite>
bgamari: it's a nasty hack for overriding headers
<Sonarpulse>
my idea was to try replacing that
<bgamari>
no actually
<bgamari>
ahh
<bgamari>
sounds plausible
orivej has quit [(Ping timeout: 260 seconds)]
<Sonarpulse>
bgamari: it would take a little hacking to avoid a mass rebuild every time
<bgamari>
yes, this is much... longer than I would have expected
<bgamari>
yeah
<Sonarpulse>
i.e. just changing the derivation for the cross, not native
<bgamari>
I wish there were an easy way to freeze some sets of packages
<Sonarpulse>
I can help you with that if you like
<Sonarpulse>
yeah
<Sonarpulse>
that would be nice
<bgamari>
Sonarpulse, that would be helpful
M1k3y has joined #nixos
<LnL>
I sometimes copy-paste package folder and work on that
<LnL>
if it's part of the stdenv
<bgamari>
what is the rough gist of it?
<bgamari>
LnL, yeah, that's likely what I would try
<M1k3y>
Hello. Is it possible to write a nix expression that gets ignored when running from the live cd?
<Sonarpulse>
bgamari: copy paste could work
<Sonarpulse>
or changing the cross stdenv changes
<sphalerite>
Anyone know a text-based (as in, will run in a terminal) tool for navigating a graph? Specifically I want to be able to navigate dependency graphs for nix derivations and other store paths.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vFcae
<NixOS_GitHub>
nixpkgs/master 94043f5 Franz Pletz: zfs: 0.7.2 -> 0.7.3...
NixOS_GitHub has left #nixos []
<Sonarpulse>
bgamari: ok yeah this is more complicated than I thought with the weird libc bootstrapping, I'd just copy
<bgamari>
Sonarpulse, alright, thanks!
<Sonarpulse>
sphalerite: that would be nice!
<Sonarpulse>
bgamari: thank you!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vFcat
<NixOS_GitHub>
nixpkgs/master 5e563ae Sander van der Burg: node2nix: 1.3.0 -> 1.4.0 + regenerate packages
NixOS_GitHub has left #nixos []
<sphalerite>
Just had a really hacky idea - since it's a tree I could turn it into a directory tree and navigate it using some file browser. But oh goodness the hackiness.
<Sonarpulse>
beating me to my own to do list :)
<nliadm>
yeah, 9p lives
<nliadm>
everything's a filesystem
<sphalerite>
M1k3y: what do you mean?
<sphalerite>
nliadm: nah that would be elegant. What I'm thinking of is making it into a directory tree using a nasty script of some sort
<nliadm>
you could probably spit some text representation to less and jump around via regexps
<M1k3y>
sphalerite: I have a setup where I regulary deploy new systems with a default set of nix expressions. The problem is, that I need some packages to be installed, that need to much diskspace while compiling to run on the live system. I want those to be ignored at nixos-install.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to release-17.09: https://git.io/vFcaV
<NixOS_GitHub>
nixpkgs/release-17.09 24eaf4c Franz Pletz: zfs: 0.7.2 -> 0.7.3...
NixOS_GitHub has left #nixos []
<nliadm>
if it's a default set, can you just cache them somewhere?
<nliadm>
and avoid compiling them on the system?
<Sonarpulse>
also sphalerite LnL, funny being back to nicks after nixcon :)
<LnL>
yeah :)
<M1k3y>
nliadm: not at the moment. I also thought about this, but at the moment I either do this by hand or I need a way to ignore these expressions when installing.
<cement>
I get an infinite recursion error whenever I try to get nix to build haskell's containers package
<M1k3y>
Is there a way to check if some environment variables are set? With this I could build a (ugly) workaround to my problem.
asuryawa_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to release-17.03: https://git.io/vFcV4
<NixOS_GitHub>
nixpkgs/release-17.03 c4052e6 Graham Christensen: openssl_1_0_2: 1.0.2l -> 1.0.2m...
<NixOS_GitHub>
nixpkgs/release-17.03 13d0621 Graham Christensen: openssl_1_1_0: 1.1.0f -> 1.1.0g...
<NixOS_GitHub>
nixpkgs/release-17.03 d77e096 Graham Christensen: openssl: fix nix patch for recent update...
NixOS_GitHub has left #nixos []
hamishmack has quit [(Quit: hamishmack)]
<sphalerite>
M1k3y: they should actually get built on the target disk, it's a bug that should hopefully be fixed soon
<sphalerite>
M1k3y: but yes, there's the impure builtins.getEnv
<M1k3y>
aphalerite: good to hear that.
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<M1k3y>
sphalerite: thanks, I'll look into this then.
<sphalerite>
nliadm: yeah there's nix-store -q --tree but navigating that with regexes is awful :(
hellrazo1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rnhmjoj opened pull request #31207: mutt: add option to configure S/MIME and GnuPG (master...mutt-gpg) https://git.io/vFcVX
NixOS_GitHub has left #nixos []
asuryawa_ has quit [(Ping timeout: 240 seconds)]
trevorriles has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
randomenduser[m] has joined #nixos
<sphalerite>
Hm, nix-store -q --graph might be better
hamishmack has joined #nixos
<dmj`>
Does nixos work on solaris?
<dmj`>
Er, nix the package manager :)
<sphalerite>
But yeah what I'd really like is a curses tool that can navigate a graphviz graph
<sphalerite>
dmj`: probably not. You can try and port it of course, but I doubt it'll be trivial
<dmj`>
fml
<sphalerite>
I don't know of anyone having used it there before, at least
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to release-17.09: https://git.io/vFcwl
<NixOS_GitHub>
nixpkgs/release-17.09 5b12708 Sander van der Burg: node2nix: 1.3.0 -> 1.4.0 + regenerate packages
NixOS_GitHub has left #nixos []
S0rin has quit [(Ping timeout: 246 seconds)]
ahstro has quit [(Quit: Page closed)]
S0rin has joined #nixos
<vcunat>
dmj`: there was at least one guy using nix on solaris
ahstro has joined #nixos
<dmj`>
vcunat: oh?
<dmj`>
vcunat: do you remember who exactly :)
<ahstro>
Does anyone here know how to use xmodmap? I've tried using both ~/.xinitrc and ~/.Xmodmap, but neither work, and the only related code I find in nixpkgs is Darwin specific
<vcunat>
I hope it hasn't broken too much since then.
<MichaelRaskin>
ahstro: I just use it from scripts
<ahstro>
MichaelRaskin: Which scripts would make the most sense?
kp__ has joined #nixos
<vcunat>
dmj`: I don't expect (any) broken packages will be too hard to fix up for solaris-like systems
<vcunat>
at least those that generally work on solaris and also on nixpkgs+linux
<tilpner>
How do you best manage and update gc roots for a nix-built project?
riclima has quit [(Client Quit)]
<tilpner>
I just set dates = "weekly"; because it deleted expensive build outputs. I could manually create a root, but what if I update the build src? Won't I need to update the root too?
<MichaelRaskin>
ahstro: I mean I just wrote a few shell scripts to call whenever I want to mess with keyboard layout.
S0rin has quit [(Ping timeout: 240 seconds)]
<dmj`>
vcunat: fantastic, am hoping Haskell packages in particular will work, along with a few third party deps.
hotfuzz has joined #nixos
<ahstro>
MichaelRaskin: Ah, cool. :)
chessai has joined #nixos
<vcunat>
dmj`: note that we currently provide no binaries for solaris, so you'll have to compile all by yourself, most likely
<chessai>
still getting an infinite recursion error
<chessai>
thanks for that tip btw
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vFcKz
<NixOS_GitHub>
nixpkgs/master 600f393 Benjamin Staffin: keybase service: Turn off debug logging...
<NixOS_GitHub>
nixpkgs/master 1c27de4 Tim Steinbach: Merge pull request #31202 from benley/keybase-debug-log...
NixOS_GitHub has left #nixos []
<tanonym>
Okay, seems that when I enable nix.package = pkgs.nixUnstable; in my configuration.nix I get unexpected EOF errors when trying to use nix-env -i ${packgage}
<vcunat>
chessai: super.callPackage everywhere, though I'm not really certain that's the probem
<tanonym>
It's not specific to one package. If I comment out the nix.package line and rebuild the issue goes away.
<chessai>
vcunat: have you ever encountered an infinite recursion error
ma27 has joined #nixos
<vcunat>
yes, though it might be years now
<chessai>
vcunat: using nix*
<chessai>
ah
<chessai>
tanonym: are you trying to install packages from nixos.unstable?
<vcunat>
I don't do much complex overriding anymore
<chessai>
ah
<vcunat>
(and no longer do mistakes in the simple package changes I need)
<tanonym>
Not specifically I just tried to run nix-env -i connman_dmenu-git
<tanonym>
It seems to happen with both nix-env -i firefox or nix-env -iA unstable.chromium
<mbrock>
sphalerite: you could whip up a shell script using the `dialog` program
hamishmack has joined #nixos
<mbrock>
sphalerite: for a nice "Debian installer" aesthetic
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vFc6F
<NixOS_GitHub>
nixpkgs/master d83cfdc Piotr Bogdan: kafkacat: fix sandboxed build
<NixOS_GitHub>
nixpkgs/master a5847e8 Tim Steinbach: Merge pull request #31185 from pbogdan/kafkacat-fix-build...
NixOS_GitHub has left #nixos []
<sphalerite>
mbrock: or Linux kernel config :p
<mbrock>
otherwise I dig the temp directory idea, files and directories are really ergonomic
chris| has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bnikolic opened pull request #31209: nixos/cc-wrapper: Fix bug if dynamicLinker not found (staging...ccwrapper-dynamiclinker-staging) https://git.io/vFciN
NixOS_GitHub has left #nixos []
yegortimoshenko has quit [(Ping timeout: 240 seconds)]
hiratara has quit [(Ping timeout: 252 seconds)]
chris| has joined #nixos
hotfuzz has quit [(Quit: WeeChat 1.9.1)]
davidak has joined #nixos
hiratara has joined #nixos
M1k3y has quit [(Quit: Page closed)]
tanonym has joined #nixos
<c0bw3b>
sphalerite: wild guess but what about querying hte sqlite database itself?
<c0bw3b>
*the
takle has quit [(Remote host closed the connection)]
dbmikus has quit [(Quit: WeeChat 1.9.1)]
orivej has joined #nixos
ylwghst has quit [(Ping timeout: 258 seconds)]
hotfuzz has joined #nixos
<sphalerite>
c0bw3b: to get how long builds took? No
<sphalerite>
Only includes when a path was registered
cement has quit [(Ping timeout: 248 seconds)]
<vcunat>
sphalerite: maybe it's minable from "stat /nix/var/log/nix/drvs/1p/15pzn0anslrzkcmaggn9m310nls0sw-libnetfilter_conntrack-1.0.6.drv.bz2"
<sphalerite>
vcunat: oooh neat idea
<vcunat>
for me access and modify times are ~15s apart in this case
taktoa has quit [(Remote host closed the connection)]
babs has joined #nixos
<sphalerite>
Access times are less reliable I'd say since they also get affected by reading in principle
<vcunat>
it's curious that I'm getting acces time older than last change time
<vcunat>
or not - the FS is mounted with noatime so it's the file's creation time, I guess
<sphalerite>
In practice a time often isn't recorded accurately :p
<sphalerite>
Yeah that
<sphalerite>
Anyway I need to sleep, thanks for the suggestion!
<vcunat>
:-)
MP2E has joined #nixos
gilligan_ has joined #nixos
<gilligan_>
evening
kkini has quit [(Remote host closed the connection)]
kkini has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] matthiasbeyer opened pull request #31211: Revert "redmine: mark as broken" (master...revert-redmine-broken) https://git.io/vFcMa
NixOS_GitHub has left #nixos []
<gilligan_>
can't update my system on current nixos-unstable it seems .. because of the broken python2.7-urwid which is required by dbus/polkit/system-path/..
<gilligan_>
first time i've ever heard of urwid actually - *shrug*
<mpickering>
What is the docs repo which was created recently called?
<BlessJah>
go/src/github.com/google/mtail/vm/compiler.go:5: running "/tmp/nix-build-mtail-3.0.0-rc4.drv-4/go:/nix/store/0pzn...lkyh-go-1.8.5/share/go:/nix/store/h721z...7c20-gotools-20170807-5d2fd3c/share/go/bin/goyacc": fork/exec /tmp/nix-build-mtail-3.0.0-rc4.drv-4/go:/nix/store/0pzn...lkyh-go-1.8.5/share/go:/nix/store/h721...7c20-gotools-20170807-5d2fd3c/share/go/bin/goyacc: no such file or directory
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vFcDD
<NixOS_GitHub>
nixpkgs/release-17.09 f2d4898 Ricardo M. Correia: openntpd: fix constraints feature on NixOS...
NixOS_GitHub has left #nixos []
takle has joined #nixos
<orivej>
BlessJah: goyacc has to packaged first, then it can be added to the nativeBuildInputs of google-mtail
MP2E has quit [(Remote host closed the connection)]
<orivej>
ignore this, I don't understand this excerpt of the error message
frankpf has joined #nixos
mkoenig has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
<BlessJah>
orivej: with 'preBuild = "command -V goyacc ; false";' I get goyacc is /nix/store/pgjkx7272kbmjmzzkx3l46c6m8rsmalc-gotools-20170807-5d2fd3c-bin/bin/goyacc
<earldouglas>
I fixed that "error: [Errno 17] File exists: '/home/user/.ssh'" error by `chmod -R u-w` my .ssh directory.
alfie has quit [(Quit: Bye.)]
takle has joined #nixos
<BlessJah>
orivej: goyacc is provided by gotools
alfie has joined #nixos
mkoenig has joined #nixos
alfie has quit [(Client Quit)]
alfie has joined #nixos
Itkovian has joined #nixos
<orivej>
BlessJah: its vm/compiler.go has "//go:generate $GOPATH/bin/goyacc", this does not work when GOPATH contains multiple directories, you have to patch this line
alfie has quit [(Remote host closed the connection)]
hamishmack has quit [(Quit: hamishmack)]
alfie has joined #nixos
<BlessJah>
s/$GOPATH/${gotools}/ then? Let me check that!
<orivej>
yes, or see if deleting "$GOPATH/bin/" works
<BlessJah>
orivej: you seem to know golang
<BlessJah>
orivej: is it a comment? that changes compilation behavior?
Itkovian has quit [(Client Quit)]
<BlessJah>
worked
<orivej>
it is a comment for the go compiler, but a directive for the go generate tool that you run in google-mtail/default.nix
<BlessJah>
It looks like a comment, quacks like a comment, yet it changes compilation/generation :|
<manveru>
not all comments are created equal
<BlessJah>
it isn't as bad as GOs lack of dependency versioning (the very reason for me doing what I'm doing)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vFcSH
<NixOS_GitHub>
nixpkgs/master 4f7c0ae Vincent Laporte: ocaml: init at 4.06.0
NixOS_GitHub has left #nixos []
vcunat has quit [(Quit: Leaving.)]
__Sander__ has quit [(Quit: Konversation terminated!)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cruizh opened pull request #31212: fava: 1.3 -> 1.5, refactor and fetchfromPypi (master...fava-1.5) https://git.io/vFc9W
NixOS_GitHub has left #nixos []
<Mic92>
does somebody has a default.nix for android development
gilligan_ has quit [(Quit: Leaving)]
<gfixler>
can I install nixos on a laptop that uses BIOS?
<MichaelRaskin>
Yes.
<MichaelRaskin>
Well, there could be some _different_ problem if you have some exotic hardware, but BIOS boot per se works.
hamishmack has joined #nixos
<BlessJah>
orivej: any opinion on advancing gotools one year? may it break other things? before I submit PR
<BlessJah>
nah, it seems noone uses gotools
<orivej>
we will test all affected packages anyway, so please submit the PR
<gfixler>
MichaelRaskin: thanks - the docs felt a bit fuzzy on this point to m e
<BlessJah>
orivej: are you involved in go packages in NixOS?
<orivej>
I know it
<BlessJah>
kk
<BlessJah>
I cannot find overview on what should I include in metadata
<BlessJah>
I'll check if all deps are necessary, reword messages and submit PR
<c0bw3b>
looks pretty ready yes :)
ison111 has quit [(Ping timeout: 252 seconds)]
<c0bw3b>
nitpick : the description of mtail should not start with the name of the package and should not end with a dot
<BlessJah>
c0bw3b: can I reuse this one to have mtail-static-musl-upx-stripped
frankpf has quit [(Read error: Connection reset by peer)]
Sonarpulse has quit [(Ping timeout: 240 seconds)]
<BlessJah>
i.e. abuse that derivation to get small static binary?
<BlessJah>
c0bw3b: how should it read? desc = "A tool ..." "tool ..." "Tool ..."
<c0bw3b>
desc = "Tool for extracting metrics from application logs to be exported into a timeseries database or timeseries calculator for alerting and dashboarding"
<orivej>
too long
<BlessJah>
24 description = "Tool for extracting metrics from application logs";
<orivej>
good
<BlessJah>
that'll do
ona has joined #nixos
<c0bw3b>
yep better
ona has quit [(Client Quit)]
<c0bw3b>
as for making a second non-default mtail : you could have a second nix definition under mtail directory
<BlessJah>
I want to have a number of static-musl-upx tools, separate repo would be nice
<c0bw3b>
but I'm not familiar with Go env and really not sure how you would throw musl into that :p
<BlessJah>
it works, I've tried that using alpine docker image
<BlessJah>
what bothers me is that GO will happily download whatever is on master branch of dependencies
<orivej>
we build packages in the sandbox without internet and will catch this as an error
<orivej>
and only "go get" accesses internet, all other commands don't
<c0bw3b>
if you plan to make a collection of these then yes create your own repo
AluisioASG has quit [(Read error: Connection reset by peer)]
<BlessJah>
Yep, that's why I do use nix and not docker/alpine
<c0bw3b>
or define them locally in your user env in nix and build them from source
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vFc74
<NixOS_GitHub>
nixpkgs/master 0ce1067 Vincent Laporte: ocamlPackages.num: init at 1.1
NixOS_GitHub has left #nixos []
AluisioASG has joined #nixos
<BlessJah>
I want to build them with nix but use it everywhere
<orivej>
BlessJah: this command produces a fully static 5 MB executable "mkdir tmpdir; CGO_ENABLED=0 go install -ldflags '-s -w' -pkgdir tmpdir github.com/google/mtail"
kp__ has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] BlessJah opened pull request #31215: Mtail (release-17.09...mtail) https://git.io/vFc7p
NixOS_GitHub has left #nixos []
<BlessJah>
orivej: -ldflags -extldflags -static or sth like this gave me static with musl