<gchristensen>
I think this is the first install matrix report I feel really good about: http://gsc.io/report-d.html it highlights a bug in the default Nix install: on fedora (which has selinux) it tries to setup the daemon but fails, and should instead use the single-user installation which would have succeeded.
<`_>
So, I may have overlooked something small here, but I have a box that I've set up nix-serve on. I then generated a keypair on it, ran `nix sign-paths -k /my/key --all`, then added its url and public key to my configuration.nix. Problem is that when I attempt nix-build locally, I'm seeing issues along the lines of "warning: substituter 'https://cache.example.io' does not have a valid signature for path
<clever>
`_: nix-serve does not support the signatures managed by `nix sign-paths`, you must give nix-serve the path to the secret, and it will sign things on-demand
mayhewluke has joined #nixos
Supersonic has quit [Ping timeout: 240 seconds]
<`_>
clever: I've given nix-serve the path to the secret as well, to no avail
<clever>
`_: what does `ps aux | grep nix-serve` show?
<clever>
`_: and does the local machine have the public in `nix.conf` ?
<`_>
clever: Environment="NIX_SECRET_KEY_FILE=/my/key" for the grep, and it's not in `nix.conf`, however it is in configuration.nix under `nix.binaryCaches`. Do I also need to set it as trusted?
<Glenn>
I thought I was going to have to spend the afternoon learning what dnsmasq is, but I just discovered services.nixops-dns and it works straight off, no messing. Really impressed.
trcc has joined #nixos
periklis has joined #nixos
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
<teej>
Glenn: Nice.
jbgi has joined #nixos
<teej>
Typically how long will it take for new python version (e.g., python3.7) packages to show up in the nix-env unstable repo?
<{^_^}>
[nixpkgs] @xeji pushed commit from @IvanMalison to master « notify-osd-customizable: init at 0.9.35+16.04.20160415 (#43226) »: https://git.io/fACqR
filterfish_ has joined #nixos
<siers>
I'm trying to package link-grammar for myself and configure's throwing some weird errors: syntax error near unexpected token `,:' // ` AX_TLS(,:)' https://clbin.com/j5Z97
<siers>
jtojnar, I'm quite lucky I found you though :D
aanderse has quit [Remote host closed the connection]
<tilpner>
clever - ping, I'm having the nix copy corruption again. Last time you were trying to help, but I had already GC'ed it away
<tilpner>
clever - This time, I didn't touch it. The weird part is that the source and destination Nix dbs disagree about what the hash should be: https://tx0.co/1Z
<{^_^}>
[nixpkgs] @rbvermaa pushed to master « julia: add 0.7 and 1.0 »: https://git.io/fACGb
<{^_^}>
[nixpkgs] @rbvermaa pushed to master « julia: add 0.7 and 1.0 »: https://git.io/fACGj
<tilpner>
It only occurs in certain networking conditions, but I've so far been unable to replicate it with netem
<Taneb>
Does anyone know of an example Hydra config that generats code coverage reports for Haskell?
<srhb>
Googling for hydra-build-products might allow you to extrapolate what the individual columns mean. It's something like.. Product type, product name, product path, Maybe (individual file in product path)
[Leary] has quit [Remote host closed the connection]
pie_ has joined #nixos
mayhewluke has joined #nixos
Guest78765 has quit [Quit: Leaving]
lsyoyom has joined #nixos
<adamantium>
Hi, just a public announcement if anyone wants to try out a "Bootstrap a zfs-on-root NixOS configuration in one command" bash script, I made one.
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to staging « wayland: 1.15.0 -> 1.16.0 (#45795) »: https://git.io/fACgL
trcc has joined #nixos
fzer00 has quit [Ping timeout: 246 seconds]
timj has joined #nixos
bjpbakker has quit [Ping timeout: 260 seconds]
jbgi has quit [Quit: WeeChat 2.1]
fzer00 has joined #nixos
mayhewluke has quit [Ping timeout: 250 seconds]
mayhewluke has joined #nixos
pie__ has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #45857 → podofo: patch for compatibility with cmake 3.12 → https://git.io/fACu1
<{^_^}>
[nixpkgs] @xeji pushed commit from @thefloweringash to staging « podofo: patch for compatibility with cmake 3.12 (#45857) »: https://git.io/fACg5
<pie__>
can an env be loaded where global mutable env doesnt leak in?
<gchristensen>
like builtins.getEnv is broken?
rprije has quit [Remote host closed the connection]
chreekat has quit [Ping timeout: 252 seconds]
vmandela has quit [Quit: Leaving]
rprije has joined #nixos
chreekat has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
zli has joined #nixos
<{^_^}>
[nixpkgs] @rbvermaa pushed to master « gbenchmark: add darwin to platforms »: https://git.io/fAC6n
das_j has joined #nixos
zli has quit [Remote host closed the connection]
zli has joined #nixos
<das_j>
Hey, is there a type that allows for a list of both strings and attrsets? I need this for my nftables-based firewall. Basically I want something like ports = [ "8080" { port = "ssh"; tcpOnly = true; } ]. Is there a type that allows for that?
<{^_^}>
[nixpkgs] @bobby285271 opened pull request #45867 → libreoffice: add zh-CN language support → https://git.io/fAC6F
zli has quit [Remote host closed the connection]
<srhb>
das_j: Does listOf (either string attrs) not work? I never tried, so not sure if heterogenous lists is a thing at all
roberth has joined #nixos
timclassic has joined #nixos
bachp has joined #nixos
thefloweringash has joined #nixos
MarkOtaris has joined #nixos
florianjacob has joined #nixos
tokudan[m] has joined #nixos
koschei[m] has joined #nixos
fgaz has joined #nixos
simbergm has joined #nixos
Ralith has joined #nixos
schmittlauch[m] has joined #nixos
<srhb>
Of course you have to be very careful when you marshal values from it. (selecting on type)
bennofs[m] has joined #nixos
Purple-mx has joined #nixos
<das_j>
srhb: Do you think listOf (either string (submodule mytype)) would work? :O what would be a perfect solution
<srhb>
oops, str, not string.
<srhb>
(I think)
<srhb>
One of those is broken, the other is not :P
ma27 has quit [Quit: WeeChat 2.1]
<das_j>
I only use str, hopefully it's the right one ;)
<das_j>
I'll try that, thanks a lot!
<srhb>
das_j: I don't see why not, but be careful when making complicated option types. Nix is really not very strong in this regard, and it's easy to make a giant foot-cannon.
ma27 has joined #nixos
<das_j>
srhb: Good thing I mainly use my hands for writing code
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #45869 → curaengine: patch for compatibility with cmake 3.12 → https://git.io/fACip
ma27 has joined #nixos
fzer00 has quit [Ping timeout: 245 seconds]
fzer000 has quit [Ping timeout: 244 seconds]
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
<{^_^}>
[nix] @graham-at-target opened pull request #2384 → docs: Add some examples to fetchGit → https://git.io/fACPY
johanot has quit [Quit: leaving]
le_jonge has joined #nixos
trcc has quit [Remote host closed the connection]
<le_jonge>
hi there. for some reason i can't run integration tests with VMs in nixos on _one_ of my machines. on all other machines, it works. i basically get " waiting for device /dev/vda to appear..", then the device does not appear and the whole thing crashes
trcc has joined #nixos
<le_jonge>
any idea how to check if this is not supported at all on this machine or something?
ekleog has quit [Quit: back soon]
iyzsong has quit [Ping timeout: 272 seconds]
thibm has quit [Quit: WeeChat 2.0]
trcc has quit [Ping timeout: 246 seconds]
chreekat has quit [Ping timeout: 240 seconds]
ekleog has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
endformationage has joined #nixos
<sphalerite>
le_jonge: is this exactly the same derivation as on the others?
<le_jonge>
sphalerite: yes, exactly. i get the same failure on <nixpkgs/nixos/tests/login.nix>
<sphalerite>
le_jonge: and the same derivation hash?
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #45820 → treewide: Dont use obsolete platform aliases → https://git.io/fAc9i
<le_jonge>
sphalerite: one moment, i will ping you back once i verified that.
orivej has joined #nixos
ejpcmac has joined #nixos
<le_jonge>
sphalerite: need to sync my nixpkgs clones on all machines and rerun, so it will take a moment
<{^_^}>
[nix] @Profpatsch opened pull request #2386 → Manual: Passing an env var to a pure nix shell with getEnv → https://git.io/fACMK
alex`` has quit [Ping timeout: 240 seconds]
<{^_^}>
[nix] @graham-at-target opened pull request #2387 → docs: Add IDs to important sections → https://git.io/fACMF
<gchristensen>
apparently today is "fix annoyances with the nix docs" day for me :)
<gchristensen>
if you're an Emacs user, I have a great Emacs config for working with XML. hit me up! :)
alex`` has joined #nixos
dbmikus has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #45869 → curaengine: patch for compatibility with cmake 3.12 → https://git.io/fACip
<{^_^}>
[nixpkgs] @xeji pushed commit from @thefloweringash to staging « curaengine: patch for compatibility with cmake 3.12 (#45869) »: https://git.io/fACDG
<infinisil>
gchristensen: Can you tell us about it here? I am using emacs and do have an xml doc thing for it, wondering if you got anything better :)
<genesis>
sorry to edit another PR but lost in git issues @Mic92_
Boomerang has joined #nixos
alex`` has quit [Quit: WeeChat 2.2]
wchresta has joined #nixos
<sphalerite>
le_jonge: right, in that case I'd suspect a hardware-specific qemu bug or something
<sphalerite>
le_jonge: not really sure what to do about it, depends on how much time and effort you're willing to invest. If you want to get it properly worked out, probably reduce it to a minimal qemu command that exhibits the problem, then ask #qemu or qemu's bug tracker
<sphalerite>
le_jonge: simplest and least-effort "solution" of course is to just avoid that machine…
Ariakenom has quit [Ping timeout: 260 seconds]
TweyII has joined #nixos
<le_jonge>
sphalerite: ok, thanks. i guess i will go with the latter because that machine is also relatively old.
<infinisil>
But I didn't know about the spelling thing, I'll add that :)
<teej>
Does Neovim have something similar?
fzer0 has joined #nixos
<teej>
Thanks gchristensen and infinisil.
<gchristensen>
:)
wchresta has quit [Remote host closed the connection]
thibm has quit [Quit: WeeChat 2.0]
wpcarro has joined #nixos
ilikeheaps has quit [Ping timeout: 252 seconds]
<wpcarro>
Totally newcomer question: I have a default.nix file that outlines some Emacs packages, I'd like nixified. Can anyone help me spin up a nix-shell using some default.nix file I created?
<manveru>
teej: spelling?
<{^_^}>
[nixpkgs] @Gerschtli opened pull request #45871 → pythonPackages.dependency_injector: init at 3.13.1 → https://git.io/fACQx
hyper_ch2 has quit [Quit: Page closed]
<Lears>
Suppose I'm writing a shell.nix for a haskell package and I want that package's env, but with hoogle indexing all its dependencies (and preferably the package itself). Is there anything better than overriding the env's nativeBuildInputs attribute to add ghcWithHoogle (p: <all hs deps>) to the list?
symphorien has quit [Ping timeout: 250 seconds]
symphorien has joined #nixos
IRCsum has quit [Ping timeout: 264 seconds]
zgrep has quit [Ping timeout: 250 seconds]
fzer00 has joined #nixos
<infinisil>
wpcarro: Hey again :), can you share the file?
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #45872 → geoclue2: add patch to whitelist elementary's agent → https://git.io/fAC75
<wpcarro>
also feel free to criticize any stylistic concerns... it feels suboptimally designed currently
fzer0 has quit [Ping timeout: 252 seconds]
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<infinisil>
wpcarro: Do you really want a nix-shell for it? Usually nix-shell's are used for project specific things
<infinisil>
This looks more like something you'd want to install globally
<wpcarro>
infinisil: I think I'm just trying to use a nix-shell to test everything out
silver_ has joined #nixos
<wpcarro>
infinisil: not really sure if that's the right approach... I'm trying to slowly migrate my MacOS to Nix
<infinisil>
wpcarro: You can get a nix-shell with this emacs in $PATH by doing something like `pkgs.buildEnv { name = "emacsenv"; paths = [ (emacsWithPackages (p: ...) ]; }`
<infinisil>
and then starting `nix-shell file.nix`
silver has quit [Ping timeout: 246 seconds]
<wpcarro>
okay I'll give that a try!
abcdw has joined #nixos
majorgreys has joined #nixos
<abcdw>
Hi guys, I want to get graalvm, but pre-build archive from github not working and showing strange error. I also installed unstable.glraalvm package, but version isn't latest and it doesn't have few binaries in it (lli, gu). Can anyone suggest an approach to get lastest graalvm with minimal amount of pain, please?)
Tucky has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dotlambda pushed 143 commits to staging-next: https://git.io/fACFj
<wpcarro>
Nice! That seemed to moved me onto another error that's a lot more understandable
<wpcarro>
infinisil: wahoo! It's churning!
<wpcarro>
thank you
<wpcarro>
This is so cool
yosemitesam has quit [Quit: Leaving]
<abcdw>
infinisil thanks for idea, will try steam-run
<abcdw>
nix-build default.nix error: cannot auto-call a function that has an argument without a default value (‘stdenv’)
<abcdw>
trying to build graal myself, but getting this error
__Sander__ has quit [Quit: Konversation terminated!]
<infinisil>
wpcarro: Nice :)
<wpcarro>
Any tips for debugging a `dependencies couldn't be built` error?
<infinisil>
abcdw: In the nixpkgs root directory, use `nix-build -A graalvm
<wpcarro>
Looks like the final snag
<infinisil>
abcdw: Or graalvm8 I guess
<infinisil>
wpcarro: Um, looking at the error message?
<wpcarro>
haha right... I was just under the impression that `emacsWithPackages` ensured that the dependencies were available and compatible.
<wpcarro>
I should also probably be pinning to a nix-channel revision
<JonReed>
abcdw: The error was because you have tried to call an expression which requires an argument to be passed to it which wasn't passed `{ stdenv }: ..`.
<infinisil>
wpcarro: Just because something evaluates does not mean it builds as well. Successful builds depend on many many things
erasmas has joined #nixos
<JonReed>
abcdw: If you want to call nix-build on an expression like that you can do `nix-build -E "with import <nixpkgs> {}; callPackage ./default.nix {}"`, which will automatically detect that e.g., `stdenv` is required and supply it
<JonReed>
abcdw: But would use your global `nixpkgs` not the local git clone. The `nix-build -A ..` from root would use that git clone
<abcdw>
Good, nix-build -E seems working. Thank a lot.
<abcdw>
Can someone give a good tutorial on maintaining local nixpkgs?
<infinisil>
JonReed: abcdw: Note that nix-build -E ... isn't reproducible with your nixpkgs version. That's why I recommended nix-build -A initially
rsa has quit [Ping timeout: 252 seconds]
<{^_^}>
[nix] @grahamc pushed 2 commits to graham/document-multi-user: https://git.io/fACbp
<{^_^}>
[nix] @grahamc pushed 0 commits to graham/document-multi-user: https://git.io/fACNe
<wpcarro>
infinisil: ok misapprehension on my part. Thanks for correcting me. I'll follow up with issues for the problematic packages. Thanks
<{^_^}>
[nix] @grahamc pushed 0 commits to grahamc-patch-1: https://git.io/fACNf
alex`` has joined #nixos
ZoomZoomZoom has quit [Quit: Leaving]
rprije has quit [Remote host closed the connection]
ThatDocsLady_ has quit [Remote host closed the connection]
<{^_^}>
[nix] @grahamc opened pull request #2388 → Document multi-user installation, and add release notes about it being the default on 2.1 → https://git.io/fACAq
ThatDocsLady_ has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
alex`` has quit [Quit: WeeChat 2.2]
alex`` has joined #nixos
<teej>
manveru: What do you mean by "spelling"?
<manveru>
teej: what did you want from neovim?
<teej>
Oh. I was just wondering if there were Nix-related language and syntax detection for Nix-related files when using the Neovim editor.
<manveru>
yes, there is :)
<teej>
Oh I see. I am a newbie in this stuff.
<manveru>
no worries
<manveru>
just wonder if you've tried it already
<manveru>
anw, i'm using sheerun/vim-polyglot for it
abcdw has quit [Ping timeout: 252 seconds]
vandenoever has joined #nixos
Boomerang has quit [Quit: WeeChat 2.1]
mteufel is now known as mt
alex`` has quit [Quit: WeeChat 2.2]
wucke13 has joined #nixos
<wucke13>
Hello, I have a problem compiling a rust library. While linking, the cc complains 'cannot find -lsqlite3'. However, sqlite is installed. Did someone resolve similar problems with rust/cargo already?
<{^_^}>
wucke13: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<jonreeve>
Does anyone know whether there's another nix-collect-garbage -d command I could run? I don't feel like I've installed too much software, but I've already filled up my 50GB system partition
<gchristensen>
jonreeve: run `nix-store --gc --print-roots` it'll tell you what still exists which you need to delete to let it GC more stuff. if on nixos, run nix-collect-garbage -d as root
<jonreeve>
Yep it's on nixos
<jonreeve>
Thanks, I'll try that
Ariakenom has quit [Ping timeout: 245 seconds]
akaWolf has joined #nixos
rfold has joined #nixos
wpcarro has quit [Remote host closed the connection]
ckauhaus has joined #nixos
ckauhaus is now known as ckauhaus|away
<{^_^}>
[nix] @edolstra pushed to master « Really fix the build »: https://git.io/fAWft
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to staging « ethtool: 4.17 -> 4.18 (#45833) »: https://git.io/fAWJ8
<JonReed>
mdash: Not NFS, but I use Samba and you just have to add its ports to configuration.nix like "networking.firewall.allowedTCPPorts = [ 445 139 ]; networking.firewall.allowedUDPPorts = [ 137 138 ];"
<{^_^}>
[nixpkgs] @xeji pushed commit from @romildo to master « deepin-icon-theme: 15.12.52 -> 15.12.59 (#45876) »: https://git.io/fAWUh
Izorkin has joined #nixos
<wpcarro>
I'm including things like pkgs.which in my paths attribute in pkgs.stdenv.mkDerivation... but when I run `nix-shell --pure default.nix` and attempt to call `which`, I'm told it's unavailable.
<wpcarro>
This doesn't happen when I call something like `nix-shell -p which`, though -- which works
<lfish>
hello, I was trying to use nix-env and it tells me that I have to upgrade Nix to a version >= 2.0 and that I can install it with nixos-rebuild. However, nixos-rebuild shows me the same message. How do I upgrade nix? I'm on nixos, 17.09.
<gchristensen>
lfish: can you paste the whole error message you get?
<lfish>
i've been changing it, right now it outputs nixos https://nixos.org/channels/nixos-18.03, I've also building from nixos unstable and without any channels listed
<clever>
gchristensen: but checking the source, i can see that @nix_x86_64_linux@ isnt baked into the nixpkgs, so the cmd i gave lfish above likely wont work
<samueldr>
clever, gchristensen, would it be workable to update 17.09 for upgrades?
<clever>
--fast stops nixos-rebuild from trying to build the "right" nix, and just uses whatever is in PATH
<clever>
samueldr: using the cmd {^_^} just gave, you should be able to upgrade almost anything
<samueldr>
clever: yeah, though some users won't see that line just now shared in the oral tradition of IRC :)
<samueldr>
alternative could be a release-note note for 18.09 with that (using the fallback paths)
<lfish>
clever: it now prints a rather long error message that ends the same way
<clever>
samueldr: yeah, it will need to be documented properly, it doesnt matter that much that the nix2 is recent, just that it can parse the nixpkgs
<clever>
lfish: can you gist the whole error, and the cmds you ran?
<samueldr>
I was thinking along the ways that the fallback path is... hopefully a known tested value :)
<clever>
infinisil: ah yeah, and i have sorta messed up my laptop before, by installing nix master
<teej>
gchristensen: I want to test nix and I suppose the documentation needs a bit of work.
<gchristensen>
teej: it does X) I have been writing a bunch of docs today. what documentation are you missing?
<clever>
lfish: nix-store -r /nix/store/aj8yk779bng82q1z6a0i6mn2sv590dxm-nix-2.0.4 ; /nix/store/aj8yk779bng82q1z6a0i6mn2sv590dxm-nix-2.0.4/bin/nix-build '<nixos/nixos>' -A system
<infinisil>
clever: I updated it to newest nixos-unstable now though
<teej>
gchristensen: I have a lot of feedback, as a newbie looking at nix. Would you like me to pm you to prevent this channel from getting a lot of my messages?
<gchristensen>
teej: if you'd _prefer_ a PM, that would be fine. however, I think any feedback you have would be just as appropriate for here directly
<maurer>
teej: While I hope gchristensen can help you with whatever your trouble is, if you do decide to remove nix, the other thing you'll want to remove is the "/nix" directory, and if installed multi-user, the startup units for nix-daemon and the nixbld users
<cransom>
^ agreed. crowd sourcing questions is far better than asking one person directly.
<JonReed>
wpcarro: If you have a bunch of local scripts that you update locally, specifying a hash or commit hash manually will get rather annoying, so it's easier to pack a direcotry as .tar, and generate a nix file automatically
<infinisil>
"X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)"
<infinisil>
So some X related error. I'll try to reboot (which I haven't since updating), but such errors have been happening forever, just not as often as they do now
<infinisil>
Maybe it's the nvidia driver actually..
<wpcarro>
JonReed: thanks for reaching out. Maybe a pm makes the most sense
<lfish>
clever: that last might take a while... is it manually specifying what version of nix to use and rebuilding the system with it?
<infinisil>
My xmobar gets automatically restarted by systemd when it crashes, but now this doesn't work well anymore because it crashes so often that the restart limit kicks in.. (I need to increase it) :/
<clever>
lfish: yep
<clever>
lfish: when done, you can ./result/bin/switch-to-configuration boot, to update the bootloader
<lfish>
clever: okay, thank you, I have to leave for now, might be asking more stuff later :)
<{^_^}>
[nixos-hardware] @Mic92 opened pull request #77 → [rebased from #67] Suggestions for CONTRIBUTING → https://git.io/fAWO5
<clever>
Zajcev: nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
<Zajcev>
I'm googling ...
<clever>
If a large number of server names are defined, or unusually long server names are defined, tuning the server_names_hash_max_size and server_names_hash_bucket_size directives at the http level may become necessary.
<ixxie>
Are there any advantages to using docker or nixos containers in NixOS over a service module?
<clever>
ixxie: the only time i see nixos containers being of use, is when a service is being dumb and expects something like a constant port or unix socket, and you cant run 2 of it
<clever>
ixxie: or for running a group of services in a contained way
<ixxie>
clever: i.e. in a Kube context?
<ixxie>
or even just docker-compose I guess
<clever>
ixxie: i just use pure nixos, no k8 or docker
<ixxie>
my problem is I will collaborate with a developer with no Nix background, and I don't think my Nix skills could keep up with his development
<ixxie>
so I wanna allow him to just send a docker container to a NixOS dockerhost
<clever>
ah
<pip3000>
clever: i use the default configuration.nix that came with nixos installer. where can i insert the let ... in section then?
<clever>
pip3000: between the { pkgs, ... }: and the first {
<ixxie>
this is the unfortunate reality for me with Nix: as much as I love it I can't seem to be able to package as fast as I need to to use it at work
<ixxie>
clever: so you don't have a need to orchastrate complex service patterns?
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #45884 → stdenv: Better message for deprecated `isArm` → https://git.io/fAWnp
<pip3000>
clever: does indentation matter in configration.nix?
<clever>
pip3000: nope
<pip3000>
good
<ixxie>
weird... I install docker as a system package, and have a user added to the docker group, and yet the user cannot access docker
<clever>
ixxie: run `id`
<ixxie>
nvm
<ixxie>
didn't refresh the session indeed
<gchristensen>
NixOS's ofborg infrastructure is undergoing a bit of a risky update. Hopefully nothing goes wrong. I'll keep you posted. See #nixos-borg for finer grained updates. Things _will_ be broken for at least a few minutes, but hopefully _only_ a few minutes.
romildo has joined #nixos
<romildo>
How should I quote the text "$${QT_HOST_DATA}" inside a '' nix delimited string?
<clever>
> '' ''$''${QT_HOST_DATA} ''
<{^_^}>
"$${QT_HOST_DATA} "
<srhb>
> ''$''${QT_HOST_DATA}''
<{^_^}>
"$${QT_HOST_DATA}"
<srhb>
Only ${ needs quoting
phreedom has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<romildo>
Like the following inside the postPatch definition?
<romildo>
sed -i src/src.pro src/dtk_module.prf -e "s,\$\''${QT_HOST_DATA}/mkspecs,$out/mkspecs,"
<majorgreys>
Can nixops be useful for local development when used from a nix-docker image? I am new and using a mac, and finding the headaches of getting up and running on a mac as a problem for the other engineers on my team.
<pip3000>
clever: i'm so stupid :D
<ixxie>
clever: have you considered putting your kexec installer in its own repo? It works very well!
<clever>
ixxie: havent thought of splitting it out
<symphorien>
ixxie: /etc: with environment.etc /var/lib/blah: system has options to create these for you, temporary directories to create/cleanup on each boot: systemd-tmpfiles
<symphorien>
or even an activationScript (but you have to make sure it never fails)
<symphorien>
so there are many options depending on what you want
<symphorien>
s/system has options/systemd has options
<ixxie>
I want something that lets me ensure the existance of a custom directory in a particular path owned by a particular user:group
<ixxie>
no for a service
<symphorien>
i'd say systemd-tmpfiles
<ixxie>
just for my plain old configuration
<symphorien>
see man tmpfiles.d and the corresponding nixos option
<ixxie>
thanks
<{^_^}>
[nixpkgs] @romildo opened pull request #45887 → dtkcore: init at 2.0.9 → https://git.io/fAWR6
rprije has quit [Ping timeout: 272 seconds]
majorgreys has quit [Ping timeout: 272 seconds]
rprije has joined #nixos
Thra11 has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #45888 → qt-3: Make `configureFlags` a list → https://git.io/fAW0Z
<adamantium>
Hi guys, I already mentioned it twice, once when it was pretty alpha, and last night in the wee hours, this is my last announce in here, if anyone wants to help me test my nixos zfs-on-root bootstrapper I would appreciate it! https://github.com/a-schaefers/themelios "Bootstrap a zfs-on-root NixOS configuration in one command"
jperras has quit [Client Quit]
jperras has joined #nixos
silver_ is now known as silver
<adamantium>
You can download the script to a livedisk VM and test it like this: [root@nixos:~]# ./themelios vm-config.sh a-schaefers/themelios
<adamantium>
Thank you :)
<elvishjerricco>
>> imho legacy bios with zfs BE's is more robust
<elvishjerricco>
adamantium: What's BE?
<adamantium>
Boot Environments
<adamantium>
I suppose I should not use that lingo
<adamantium>
Not exactly. A boot environment in ZFS is a bootable snapshot clone of your ROOT filesystem
orivej has quit [Ping timeout: 240 seconds]
<adamantium>
So when you install zfs-on-root, you can keep snapshots, and make them bootable, using various tools. The most famous tool for creating boot environments is the posix script "Beadm"
<adamantium>
This allows you to rollbackwards and forwards your filesystem in an even deeper and more atomic way than NixOS does and boot them from grub, though it is quite similar.
<adamantium>
Zedenv looks like an alternative to the beadm script. I haven't used zedenv though.
<elvishjerricco>
adamantium: So it's essentially just a way to boot ZFS snapshots from grub?
<adamantium>
Boot environments are bootable snapshot clones of your root filesystem.
<clever>
,locate linux.out 8,068 r /nix/store/yw01y3c85zhzw4dwiic6vpdd92bfgvcs-linux-4.9.23/lib/modules/4.9.23/kernel/sound/drivers/snd-aloop.ko.xz
<{^_^}>
,locate only takes 1 or 2 arguments
<clever>
oops, pasted too much
<clever>
pie__: its part of the base linux packages, so just `modprobe snd-aloop` or add it to the right nixos param for auto-loading
<pie__>
oh ok
v0latil3 has joined #nixos
<clever>
pie__: pulseaudio may make things simpler
<pie__>
apparently renoise doesnt use it
<clever>
pulseaudio also includes its own alsa drivers
<clever>
so anything alsa based will wind up connecting to pulse
<v0latil3>
I'm having trouble figuring out how to make a windows vm with libvirt in nixos. All I can find are guides on nixops when I search for that though
<v0latil3>
Do I just need to enable libvirtd and then do it manually?
<pie__>
ok i got it to work
<v0latil3>
I suppose I want to do it manually anyways I don't care for the vm to restart when I change nixos config.
<clever>
v0latil3: ive just ran windows in virtualbox
<pie__>
*i think*
<pie__>
clever, you know anything about dealing with underruns...
<clever>
pie__: not much
<pie__>
meh, i dont know if im actually hearing the audio as i should because of this config stuff
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
teej has quit [Quit: Connection closed for inactivity]
<clever>
philippD: can you add nixpkgs.pinned.nix to the gist?
<philippD>
clever: it produces the same error if you replace the import with "import <nixpkgs> {}"
<philippD>
but I'll add it
<philippD>
added
<clever>
philippD: and is the sha256 correct?
<clever>
its identical to nixpkgs
<clever>
so nix just grabbed the nixpkgs from /nix/store/
<clever>
you claimed it was identical, so nix didnt bother trying to fetch mkPandoc
<clever>
replace a few digits with 0's, and then re-build
<{^_^}>
[nixpkgs] @erictapen opened pull request #45889 → buildRustPackage, fetchcargo: optionally use the real config from cargo vendor → https://git.io/fAWa0
<philippD>
Oh, it was a copy-paste error then. Nix doesn't check the url part for fetchTarball if the sha matches?
<clever>
fetchTarball uses a name of "source"
<clever>
and only the name and sha256 are used
<{^_^}>
[nixpkgs] @erictapen closed pull request #45402 → [WIP] buildRustPackage: optionally use vendor config from cargo-vendor → https://git.io/fAJfA
<philippD>
hm, is there doesn't seem to be a way to override the name for fetchTarball to keep people like me from making this error.
<clever>
the only other option (which isnt "pure") is to just omit the sha256
<clever>
nix will re-download the url hourly, and rename the output to match whatever the hash comes out to
kisik21 has joined #nixos
<kisik21>
how to use ruby bindings and/or vim plugin for notmuch with NixOS?
iyzsong has joined #nixos
rprije has quit [Ping timeout: 246 seconds]
<samueldr>
hmmmm, on a nixos 18.03 host, nix-build with a boatload of arguments gives me `Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS` which is.... a first
<clever>
samueldr: increase GC_INITIAL_HEAP_SIZE
<clever>
the units are bytes, and i need to set it to 30gig or so sometimes
<clever>
,profiling
<{^_^}>
Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<clever>
also, profile your junk :P
<samueldr>
that's a nix-build for a review tool
<samueldr>
(making my own)
<samueldr>
so yeah, won't go smoothly profiling that
dmj` has joined #nixos
<samueldr>
uh, making a profile
<samueldr>
(I misunderstood and thought you meant somthing like .nix-profile... and that doesn't make much sense in that context)
ixxie has quit [Quit: Lost terminal]
tertl3 has quit [Quit: Connection closed for inactivity]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon3 is now known as Mateon1
<gchristensen>
samueldr: GC_INITIAL_HEAP_SIZE=10G
<samueldr>
yeah, I have done it... but it's weird (to me) how an equivalent command on monday didn't seem to cause issues