<JonReed>
justan0theruser: No, because `builtins.readFile ./mifile` will simply read the file unlike `"${./myfile}"` which will automatically store the at nixstore. But yes, because you'll obviuosly use that password to build something and that something will be stored it /nix/store
<ldlework>
different permissions in `' and `/nix/store/zr2r3fgypwway6iiza1j81946vcq2gsd-gh-repos.sh': 0000 <-> 0444 at /nix/store/9g4wc31j7a2xp22xpgwr0qssfxahxdzl-builder.pl line 75.
<justan0theruser>
JonReed: but regular users have read access to /nix/store?
<ldlework>
what does this meeeaann
<justan0theruser>
at least by default right
<JonReed>
justan0theruser: Yes, so it will be readable
jperras has joined #nixos
<justan0theruser>
so what does making a readonly secrets dir accomplish?
<ldlework>
argh
sbdchd has joined #nixos
<JonReed>
justan0theruser: Not much, beyond not accidentally doing a mistke like commiting it somewhere
hellrazo1 has joined #nixos
slack1256 has joined #nixos
rardiol has quit [Ping timeout: 252 seconds]
<justan0theruser>
ok thanks for the info
stepcut has joined #nixos
hellrazor has quit [Ping timeout: 252 seconds]
halfbit has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit opened pull request #46073 → kernel: increase build timeout to two hours → https://git.io/fARtZ
johnny101 has quit [Quit: Konversation terminated!]
halfbit has quit [Quit: WeeChat 1.9.1]
_ris has quit [Ping timeout: 252 seconds]
alexteves has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @samueldr opened pull request #46074 → nixos-artwork: Keeps new wallpaper compatible with old path. → https://git.io/fARql
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fARqB
<{^_^}>
[nix] @matthewbauer opened pull request #2400 → Get effective user in Nix commands → https://git.io/fARqH
jperras has quit [Ping timeout: 252 seconds]
camsbury has joined #nixos
<{^_^}>
[nixpkgs] @oxij opened pull request #46075 → texinfo: fix for the new perl → https://git.io/fARqj
Maven_ has joined #nixos
<Maven_>
s∪n is ᥒοt doiᥒg Aⅼlah ⅰs dοiᥒɡ
<Maven_>
Ꭺⅼlɑһ is ԁoinɡ
<Maven_>
mⲟon is not doiᥒg Allah is doіnɡ
Maven_ has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<camsbury>
My goal is to fix parts of my configuration that are currently breaking with nix-rebuild switch, and to learn how these derivations fit together more intuitively. Currently, I am having an issue with nixpkgs.config.chromium.enablePepperFlash = true;, because the link to the flash tar is broken. I got a copy locally of the tar ball and would like to set that path instead. So I want to explore this all in a nix
<camsbury>
repl. So I start with nix repl '<nixpkgs>', and I go for it. Unfortunately, I think the nixpkgs variable comes in with the ... variables, so I will have to find what the default inputs are to the configuration.nix file and find how to introspect them in the repl. Then I can find where this attribute is and overwrite it with my local tarball. If you have anything to help, I would appreciate it!
Freechicks has joined #nixos
<{^_^}>
[nixpkgs] @oxij opened pull request #46076 → trivial: treewide: random noop cleanups → https://git.io/fARm3
Freechicks has quit [Remote host closed the connection]
Freechicks has joined #nixos
<camsbury>
though I wonder if this is actually just a flag informing something inside pkgs.chromium...
Fare has joined #nixos
<{^_^}>
[nixpkgs] @oxij opened pull request #46078 → ffmpeg: add support for libssh and speex → https://git.io/fARm2
<justan0theruser>
when is 18.09 expected to be stable?
<gchristensen>
end of the month
<justan0theruser>
ty
Nikita has joined #nixos
Nikita is now known as Guest85225
spear2 has joined #nixos
nckx has quit [Ping timeout: 240 seconds]
nckx has joined #nixos
regulus_ has quit [Ping timeout: 268 seconds]
globin has quit [Ping timeout: 264 seconds]
srk has quit [Ping timeout: 268 seconds]
orivej has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @uskudnik opened pull request #46080 → restic: Fix autocomplete for zsh → https://git.io/fAROC
Acou_Bass has quit [Ping timeout: 240 seconds]
silver has quit [Read error: Connection reset by peer]
Acou_Bass has joined #nixos
sigmundv has quit [Ping timeout: 260 seconds]
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rrr has joined #nixos
<rrr>
hello
<rrr>
Is docker something that could let one use software that currently doesn't really work fine on NixOS without the hassle of making it work? I never really understood what Docker does
<rrr>
If not, is there a standard alternative way to do this, other than a virtual machine? Either simple or that has a good simple tutorial...
slack1256 has quit [Remote host closed the connection]
<ldlework>
rrr: You can think of containerization like virtual machines, but without the virtualization
<ldlework>
a process is started, by the host kernel, but the kernel lies to the process about what what the filesystem looks like, what the network looks like, etc
kyren has joined #nixos
kyren has quit [Client Quit]
<ldlework>
rrr: to answer your question, sure, docker is a workable solution to run software outside of nix
<rrr>
ldlework: I see
<adamantium>
better yet nix>lxd>docker on zvols
<ldlework>
adamantium: have you used lxd or docker to any great extent?
jrolfs has quit [Ping timeout: 260 seconds]
<adamantium>
No, only zvols and libvirt, to which, I intend to move to lxd and use docker with it, on zvols.
<rrr>
I've been in this situation many times throughout the years, and I've mostly managed one way or the other
camsbury has quit [Quit: WeeChat 2.0]
orivej has quit [Ping timeout: 240 seconds]
<ldlework>
rrr: what kinds of software are you running into? I am pretty handy with Docker, but I have, for one reason or another, forced myself to not install Docker on my NixOS machine so I can learn Nix packaging.
<ldlework>
It can be really frustrating when I get stuck, but I learn a little more and a little more
<rrr>
but now, I really need to get Julia 1.0 working properly on my PC, and I don't have the knowledge (or time to acquire it) to struggle with every error I might get when installing Julia the standard NixOS way (as of 2 days ago it didn't build), or when I add any Julia package that needs some binary
jtojnar has quit [Quit: jtojnar]
<ldlework>
fair enough
<ldlework>
certainly the Dockerfile format is gonna be a little easier than picking up Nix if you're pressed for time
jtojnar has joined #nixos
<rrr>
This time I just don't have the time to learn. I'd hate to drop NixOS after years for such a thing... But if these container-ish softwares can do the trick reliably, then great
<ldlework>
run SOME BASH
<ldlework>
pretty easy :)
<ldlework>
no doubt there are julia images ready to go :)
<rrr>
I've been using NixOS for long, but I haven't tinkered with it more than as a "user" for almost as long
<rrr>
Great. I'll try to get this docker - Julia thing to work then. Pray for me. Thanks
<ldlework>
rrr there is a #docker fwiw
lassulus_ has joined #nixos
<rotaerk>
Anyone here have experience doing Haskell development using nixpkgs for all dependencies, and also tried nix+stack?
dbmikus has quit [Ping timeout: 252 seconds]
<rotaerk>
Just considering adding stack to my toolset, and using stackage rather than nixpkgs.haskellPackages
<rotaerk>
And wondering how they compare
jtojnar has quit [Read error: Connection reset by peer]
lassulus has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
jtojnar has joined #nixos
drakonis_ has joined #nixos
<rotaerk>
Just thinking stackage might be a nicer experience... It's generally a pain building against haskellPackages because they're all the latest and not necessarily building or compatible
<rotaerk>
So I end up having to write a bunch of overrides
<ldlework>
rotaerk: you can usually do an override to like, pick a different git revision
<ldlework>
at least that's how it works for python packages
<ldlework>
rotaerk: oh sorry I missed your last message
<rotaerk>
Yeah, that's what I do, but it's kind of a pain. Also doesn't always work to just do a source override
<rotaerk>
Stackage is curated and Haskell-specialized. Its main weakness is it doesn't handle non-Haskell dependencies, but it can integrate with nix for that
<rotaerk>
Fundamentally redundant I think, but possibly a smoother experience
<ldlework>
it is kind of off-hours but there are a lot of people who seem to use haskell with nix so i bet you can get some advice eventually
<ldlework>
you could also ask on reddit
<rotaerk>
What's a redit
<rotaerk>
JK
<Myrl-saki>
rotaerk: I use a modified stackage2nix output for my builds.
jrolfs has joined #nixos
<rotaerk>
Hmm, do you have any example projects that do that, that you can share?
<Myrl-saki>
I wasn't able to document the changes that I made.
<Myrl-saki>
I guess you can diff between stackage2nix's outputs though
<Myrl-saki>
Or stack2nix?
<rotaerk>
Ah, np
<rotaerk>
Also, I didn't realize darcs had source hosting like this
<rotaerk>
How do you like over github
<Myrl-saki>
Also, FWIW, I tried it out on unstable and it didn't seem to work, so it seems like it's not as uncoupled from haskellPackages than I thought.
<Myrl-saki>
rotaerk: Darcs vs git, or Darcshub vs Github?
jrolfs has quit [Ping timeout: 272 seconds]
<rotaerk>
Both
<Myrl-saki>
rotaerk: I like the UI of both sites, but Darcshub lacks region selection.
<rotaerk>
Also, I haven't seen this overlay approach to overriding
<rotaerk>
Hmm
<Myrl-saki>
rotaerk: As for Darcs vs Git, I think patches are pretty cool, but commits are probably way more practical.
<{^_^}>
[nixpkgs] @samueldr opened pull request #46082 → qtchan: Fixes build from Qt upgrade. → https://git.io/fAR3o
dbmikus has joined #nixos
<rotaerk>
I've been mildly interested in some newer patch-theory-based thing, though haven't dug into it because git has so much traction now
<rotaerk>
Pijul
<rotaerk>
Anyway, thanks for the example
<emily>
pijul is the spiritual successor to darcs, yeah
<Myrl-saki>
TIL, Pijul.
<Myrl-saki>
Welps, time to open the browser again!
oscarvarto has quit [Quit: Leaving]
dbmikus_ has joined #nixos
dbmikus has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @samueldr opened pull request #46083 → qesteidutil: Fixes build from Qt upgrade. → https://git.io/fAR3A
<{^_^}>
[nixpkgs] @xeji pushed commit from @qoelet to master « prettyping: init 1.0.1 (#46008) »: https://git.io/fARWL
<joehh>
I'm trying to import a hg repo as an overlay, but keep getting "infinite recursion encountered at undefined position"
<joehh>
it seems be ok when I import <nixpkgs> in an outer let statement then use fetchhg from <nixpkgs> to reference the repo, then import the repo within the nixpkgs.overlays list
<joehh>
BUT when I try to use fetchhg from super to import the repo, I get the inifinite recursion
<joehh>
Is this expected?
<clever>
joehh: your inner nixpkgs fetch is trying to load the overlay
<clever>
joehh: at least use import <nixpkgs> { config = {}; overlays = []; } for the inner ones
<clever>
so they dont try to load the same overlay again
<joehh>
I'll give that a go
colemickens has joined #nixos
<colemickens>
I need to use Azure storage as a nixos cache. Would it be easiest to just create a local store with `nix copy` and then sign it, and then "upload any file that doesn't already exist in Azure" as a way to build the cache?
<clever>
colemickens: one option is to add an azure backend, nix copy already supports s3://
<colemickens>
I had thought about it. I also thought about running Minio (s3 compatible storage layer) with it in "Azure gateway" mode.
<clever>
ah, then you could maybe try the s3 api
<colemickens>
But I think the cache is just a matter of mirroring the store, in which case I can pay a cost for diff-every-time overhead and use existing tools to do the "rsync" from the local store I create and my remote storage.
<colemickens>
yeah. we'll see, I'm just going to have to try and see which amount of effort I need to expend :)
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rauno>
srhb, you were great help yesterday but i have some new question, when my new package needs to put something to other package's datadir and gets permissions denyied, how such situations should be handled ?
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '85ae3fff846cf3f4cbc0e2f214111aa56ad31357' commit built by Travis-CI \#424683385 »: https://git.io/fARzb
smolboye has quit [Ping timeout: 272 seconds]
smolboye has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
fendor has joined #nixos
<srhb>
marcinkuzminski: No, you have to override the attribute to disable tests.
<{^_^}>
[nixos-weekly] @domenkozar pushed 4 commits to production: https://git.io/fARgs
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « Call for Content: 2018/09 »: https://git.io/fARgn
<{^_^}>
[nixos-weekly] @domenkozar opened pull request #64 → Call for Content: 2018/09 → https://git.io/fARgW
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit 'bfe41eaad589c065d540e03613ad9de05804ddc3') built by Travis-CI \#424685671 »: https://git.io/fARg4
<{^_^}>
[nixpkgs] @xeji pushed commit from @dasJ to master « nullidentdmod: Init at 1.3 (#46040) »: https://git.io/fARrD
ahawkins has quit [Quit: Connection closed for inactivity]
<marcinkuzminski>
srhb: Currently we use `TMPDIR=$PWD/tmp NIX_STORE_DIR=/opt/my_store/store NIX_STATE_DIR=/opt/my_store/var/nix NIX_DB_DIR=/opt/my_store/var/nix/db nix-env -i nix` and i wonder if i could use --from-expression to override the test flag at this point since nix installation fails on that custom path
baimafeima has joined #nixos
<srhb>
marcinkuzminski: I don't see how this prevents you from disabling the test in an overlay in any way
<marcinkuzminski>
srhb: how could i do that ? (i never used overlays)
<srhb>
marcinkuzminski: As in nix-env -f marcinkuzminski.nix -iA nix
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jasongrossman has quit [Remote host closed the connection]
jasongro` has joined #nixos
justan0theruser has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
<marcinkuzminski>
srhb: ohh!!! this is great. That actually solved my problem. thanks so much ) This is so much better than manually overriding package definitions, i had to edit this and specify `doInstallCheck = false` instead of doCheck
<srhb>
marcinkuzminski: Oh right, sorry :)
<marcinkuzminski>
srhb: but thanks a lot again :)
<srhb>
You're welcome!
<srhb>
By the way, it may be worth looking into the proot stores to avoid this sort of issue, if you can..
<srhb>
Of course that requires running things under "nix run"
<marcinkuzminski>
srhb: we cannot it's part of our nix based installer build. And we have to have the custom store
<srhb>
OK. :)
<srhb>
Just checking.
<marcinkuzminski>
we just switched from nix 1.11 and nixpkgs 16.03. So lots of stuff to rebuild
<srhb>
Ouch, that's one hell of an upgrade.
<srhb>
I assume you already bumped into the "old Nix 1.11 can't evaluate nixpkgs-18.03" issue? :P
<marcinkuzminski>
oh yeah, we rewrote our apps nix files, and actually wiped the store and everything. It grew to 180GB in size, so it was easier to just wipe it and start from scratch
<srhb>
Fun!
<marcinkuzminski>
srhb: one question, is it possible to apply overlay to nix-build as well ?
<srhb>
marcinkuzminski: Yep, nix-build marcinkuzminski -A nix
<srhb>
Or you can install the overlays globally, that's how it's usually done. Check the nixpkgs manual in the overlays section.
<srhb>
But I like to make these small snippets because I feel they really demonstrate the power of overlays well. :)
justan0theruser has joined #nixos
<marcinkuzminski>
yeah i like that approach better, and it fits into our build system better as well
<srhb>
By default when importing nixpkgs, it will look up <nixpkgs-overlays> to find any overlays. If that path is a directory, it will apply every overlay in that directory lexicographically.
<clever>
infinisil: also, i can see this potentially harming memory usage
<infinisil>
clever: Error apparently doesn't happen on master, phew
<clever>
infinisil: previously, a&b from my example above, are just the same Value, *checks*
<infinisil>
clever: Yeah, definitely, but it can be really useful for many things
<clever>
lets head over to #nixos-chat
jasongro` has quit [Remote host closed the connection]
jasongrossman has joined #nixos
cryptix has joined #nixos
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon2 is now known as Mateon1
<tilpner>
Any idea on how I might turn an overlay into a package set that contains just the additions?
<tilpner>
Manually applying an overlay like with lib; fix (extends (import /home/till/dev/nixpkgs-mozilla) (self: pkgs)) does work, but the set also contains all of nixpkgs naturally
<tobiasBora>
Hello,
<tobiasBora>
I tried again to install nixos from a LiveCD of Ubuntu, and I still run into troubles with the following error:
<tobiasBora>
Failed to move "/boot/loader/loader.conf" into place: Operation not permitted
<srhb>
tilpner: A hacky way... let pkgs = import <nixpkgs> {}; in overlay pkgs pkgs
<srhb>
I don't think the normal overlays mechanism can ever remove unnamed attributes.
<tobiasBora>
makefu: By the way, I forgot to thank you for the link to the wiki for Android dev
<tilpner>
srhb - But that still contains the reset of nixpkgs :/
<tilpner>
tobiasBora - Why are you instaling from an Ubuntu live system, instead of from a NixOS live system?
<srhb>
tilpner: Huh? Where?
<srhb>
tilpner: I don't see how it could...
<tilpner>
Huh
sbdchd has joined #nixos
<tobiasBora>
tilpner: first because the doc says it's possible, and also because I already had a usb key prepared with ubuntu on it, so it was easier for me
<tilpner>
You're right, I just tried in #bottest, and it didn't
<tilpner>
(But I also tried in nix repl locally, and it did, so I must have done something wrong)
jrolfs has joined #nixos
<srhb>
tilpner: But I consider it really hacky and really only a way to reuse the overlays expression "at all costs" :P
<srhb>
And self and super won't behave as you expect...
<srhb>
Better to just make a unique attrset imo :)
<tilpner>
error: attribute 'hello' missing, at (string):1:1
mayhewluke has joined #nixos
sbdchd has quit [Ping timeout: 252 seconds]
<srhb>
tilpner: The mozilla overlay must include every package from pkgs.
jrolfs has quit [Ping timeout: 246 seconds]
<tilpner>
They combine their multiple overlays in default.nix
<tilpner>
It does work when using a single overlay
<tobiasBora>
tilpner: any idea what grub entry I should use to boot on the iso? Here is for example the one I use for Xubuntu: https://pastebin.com/v79wq6w5
v0latil3_ has joined #nixos
<srhb>
tilpner: It's not that weird. your overlay contains only the foo attribute. The nixpkgs overlay contains every pkgs attribute.
<tilpner>
srhb - By "the nixpkgs overlay", you mean their usage of lib.extends?
<srhb>
tilpner: self is the z in the normal haskell terminology, right?
<srhb>
Oh, wait, no it isn't.
<tilpner>
tobiasBora - No, I've successfully avoided fighting grub. But if you're having trouble installing NixOS from Ubuntu, maybe try from NixOS
<srhb>
Well, emptying the list such that `flip extends` is never applied doesn't change this.
<tilpner>
srhb - I'm not familiar with the Haskell terminology
<srhb>
Notice that (_: { foo = 42; }) is their (_: super) -- that is, the "zero value" in the fold
<srhb>
Even though the list is empty (and thus flip extends is never applied) that is the "default value"
periklis has quit [Ping timeout: 240 seconds]
<srhb>
So if you replace the super argument with {}, you indeed do get an empty overlay
<srhb>
Of course, that would break all overlays that actually use super.
pemeunier has joined #nixos
<srhb>
tilpner: Does that make sense?
tzemanovic has quit [Remote host closed the connection]
<srhb>
Compare:
<cryptix>
hello... i'm having trouble using git and ssh between two of my nix machines. ssh alone works fine to give me my zsh shell but when i use `git fetch` i get `zsh:1: command not found: git-upload-pack` although I have git in my user env. i now also tried adding it to environment.systemPackages but that didn't help either.
<srhb>
> lib.foldl' (flip extends) (_: {}) [] {}
<{^_^}>
undefined variable 'flip' at (string):179:13
<tilpner>
Somewhat. I started with (self: {}), but then it needed a bunch of things from nixpkgs, so I went to providing pkgs
tzemanovic has joined #nixos
<tilpner>
They take items from super, and I can't change that
<srhb>
Correct.
<srhb>
Unless you provide an empty super, which would break all overlays that actually use super, as said.
nbardiuk has quit [Quit: Lost terminal]
fendor has joined #nixos
<tilpner>
Do you think callOverlay = fix (self: p: (import p) self pkgs); is more correct than callPackage = p: (import p) pkgs pkgs;? I suspect the first variant would just break when ov
<{^_^}>
[nixpkgs] @danieldk opened pull request #46092 → thinc: fix darwin build → https://git.io/fARy3
v0latil3_ has quit [Remote host closed the connection]
v0latil3_ has joined #nixos
<makefu>
tobiasBora: glad the wiki link helped. if you have some additional insight be sure to add it. the wiki is free to edit for everyone :)
trevthedev has joined #nixos
trevthedev has quit [Changing host]
trevthedev has joined #nixos
<trevthedev>
hi
<tilpner>
Oh hey trevthedev, your input problem can be solved by updating the steam runtime
<trevthedev>
oh?
<trevthedev>
please elab i came due to the issue again XD
<thblt>
A recent NixOS update broke my XMonad: tiled windows just disappear, only floating windows remaining on screen. Did someone else experience something similar?
<thblt>
s/remaining/remain
<trevthedev>
steam runtime being the package itself, or?
<trevthedev>
sorry its 7AM and I've been trying to get this to work all night again XD
<tilpner>
trevthedev - ashkitten made these [ https://ptpb.pw/V_fp ] changes to their nixpkgs
Phillemann has left #nixos ["WeeChat 2.2"]
<srhb>
thblt: Nope, that sounds very weird. What rev?
<tilpner>
trevthedev - I've found the nvidia changes to not be necessary, and the runtime update can be accomplished with pkgs/games/steam/update-runtime.py
<srhb>
Yeah, I find this more likely to be some weirdness with xmonad than with NixOS itself..
<srhb>
But I'll try a similar version.
<thblt>
Myrl-saki: done multiple times, doesn't help. I've also ruled out state persistence issues, maybe it's something related to BinarySpacePartition (it's the only layout I use), I'll try later to change the layout.
<thblt>
srhb: I agree I suspect Xmonad more than NixOS.
<{^_^}>
xmonad/xmonad-contrib#278 (by cumber, 2 days ago, open): All windows invisible when using fullscreenSupport
<srhb>
ah. :)
iyzsong has joined #nixos
<rfold>
The go package has dependencies on bazaar, git, and mercurial; for the go get command which I don't use. I suppose the way to remove these dependencies would be to override the go package and pass it empty derivations for these three packages.
Ariakenom_ has quit [Remote host closed the connection]
Ariakenom_ has joined #nixos
<Taneb>
rfold: I've seen something doing something similar
<thblt>
That was it. Issue solved, sorry for rubberducking (again...)
<trevthedev>
uh, so.... pip does not want to update for the life of it as /nix is read only...
<thblt>
Back on XMonad. You cannot understand the strength of muscle habits until your heavily configured WM breaks :-)
sbdchd has joined #nixos
<srk>
this :D
<trevthedev>
just installed from unstable
<srk>
thblt: I've completely lost the concept of 'windows' and arranging them
<kandinski>
I'm trying to make a new package starting from an old one. Why would this start compiling stuff when I'm on a fresh branch off release-18.03? $ nix-shell -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'
<thblt>
srk: you mean floating windows?
<kandinski>
Wouldn't everything on release-18.03 be available on the caches?
<srk>
thblt: yeah, so much time wasted
<thblt>
srk: well, I was using sway when XMonad was broken, it's still tiling, but the stock config is really not what I'm used to :)
<trevthedev>
okay well even after installing pip off of unstable it's positive that im using pip 9.0.1 despite the fact that 18.0 is downloaded
<tobiasBora>
tilpner: Yes, that's what I'm going to do (use NixOs), but I've a single usb key with me that I don't want to format, and I'd like to add the iso in the list of iso's.
<tobiasBora>
but not sure what menuentry I should use
<tobiasBora>
I'll try the ubuntu's one
<thblt>
trevthedev: how exactly did you install pip 18?
<clever>
tobiasBora: one option i sometimes do, just format a partition on the USB, and do normal nixos-install against it, and treat it like a normal dual-boot setup
<thblt>
trevthedev: actually just try which -a pip
<trevthedev>
which -a pip?
<trevthedev>
just says the dir to pip
<thblt>
trevthedev: there's a single path? which -a reports all possible paths.
<trevthedev>
that's all there is is just that one dir
phreedom_ has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @jtojnar pushed 76 commits to gnome-3.30: https://git.io/fAR7I
<trevthedev>
heyyy
<trevthedev>
got 18.0 installed
<trevthedev>
now it says cStringIO doesn't exist
<thblt>
trevthedev: fwiw I've run nix-env -iA nixos.pythonPackages.pip and pip reports itself as 18.0
<trevthedev>
yes
<trevthedev>
already fixed that part but apparently cStringIO doesn't exist
<trevthedev>
and that is needed for update-runtime.py
seku_ has joined #nixos
<thblt>
trevthedev: I don't have this issue. What's your OS?
<trevthedev>
NixOS
<thblt>
trevthedev: which version?
<trevthedev>
NixOS 18.03.133188.8b92a4e6004
<thblt>
stable then
<trevthedev>
yes
<trevthedev>
i have two channels, stable and unstable
<thblt>
I suspect this may be worth filing an issue
<trevthedev>
ijustwantsteam.png
<trevthedev>
;-;
<trevthedev>
the problem MIGHT be the broken thing in between the chair and keyboard
<trevthedev>
to be clear.... installing this module using pip would go like this:
<trevthedev>
pip install cStringIO
<trevthedev>
correct?
<trevthedev>
(mind you i dont use python or pip for anything)
<thblt>
Wait, it's not pip which complains about a missing library?
<trevthedev>
(and online theres this whole python -m pip install thing that also doesnt work as for whatever reason the expression after -m is taken as a module
<trevthedev>
python does
<trevthedev>
when I run python update-runtime.py it says that it's missing a module
<trevthedev>
Traceback (most recent call last):
<trevthedev>
File "update-runtime.py", line 11, in <module>
<trevthedev>
import cStringIO
<trevthedev>
ModuleNotFoundError: No module named 'cStringIO'
<thblt>
trevthedev: cStringIO seems to be a python2 thing. I suspect you're using Python 3
<trevthedev>
sec, lemme try
Ridout has quit [Ping timeout: 240 seconds]
<trevthedev>
hmm, yay!
<trevthedev>
new error
<trevthedev>
we got past the cStrings part
<thblt>
Great news ^_^
<trevthedev>
now the next module doesnt exist XD
<trevthedev>
though thanks for helping out on that part... wish that the update runtime was written in 3
<trevthedev>
deb822 doesn't exist now
<thblt>
trevthedev: show the *exact* error please
<trevthedev>
and pip wont install it
<trevthedev>
Traceback (most recent call last):
<trevthedev>
File "update-runtime.py", line 13, in <module>
<trevthedev>
from debian import deb822
<trevthedev>
ImportError: No module named debian
<trevthedev>
identical to last one though deb822 doesn't exist
<thblt>
well debian is a python package, just nix-shell it
<tobiasBora>
clever: if I can't install it on the harddrive, why would I be able to install it on the usbstick?
<trevthedev>
wait do what? what does the nix shell have to do with anything?
<trevthedev>
sorry if im being slow again im just tired, i do appreciate your help with this XD
<thblt>
trevthedev: I'm not 100% certain I understand what you're trying to do, but nix-shell -p python2.7-python-debian-0.1.23 will give you a shell with the debian package available to python
<clever>
tobiasBora: what is preventing you from installing it on either?
aebkop has quit [Ping timeout: 252 seconds]
<tobiasBora>
clever: As I was explaining, when I install NixOs from an ubuntu media, it fails with the error Failed to move "/boot/loader/loader.conf" into place: Operation not permitted [Full error: https://pastebin.com/fGE5DBHY]
aszlig has quit [Ping timeout: 272 seconds]
<clever>
tobiasBora: what does `mount` output?
<trevthedev>
im trying to get update-runtime.py to work xd
<trevthedev>
error: attempt to call something which is not a function but a set, at (string):1:94
<trevthedev>
got that error from running the nix shell command
<tobiasBora>
(note that I needed to remount everything since I rebooted as people was suggering me to use nixos instead of my ubuntu media)
<trevthedev>
yeah that changed nothing....
tzemanovic has quit [Remote host closed the connection]
orivej has joined #nixos
waleee has joined #nixos
<trevthedev>
still no input ;-;
<clever>
tobiasBora: i dont see a boot volume mounted to /mnt/boot/
<trevthedev>
ugh i want to shoot myself in the face XD
<trevthedev>
@tilpner nothing changed after updating runtime
<tobiasBora>
clever: I forgot it indeed when I rebooted, but when I gave the error I had it. Let me do that (I'm re-doing the whole install from scratch)
gal_bolle has quit [Remote host closed the connection]
<trevthedev>
do i just curl the file you sent and override the current update-runtime.nix ?
<tilpner>
No
<trevthedev>
oh
<tilpner>
Wait a while, still running
<trevthedev>
oh, alright
<oscarvarto>
Hi! Is there any documentation to configure my USER environment?
<oscarvarto>
The NixOS manual explains stuff assuming I'm going to configure everything System-wide
<srhb>
oscarvarto: That's all NixOS can do.
<srhb>
oscarvarto: If you want something like NixOS but for your user, take a look at home-manager.
<trevthedev>
you can do multi user packages and such
<trevthedev>
but not too terribly much more
orivej has joined #nixos
<trevthedev>
packaging* not packages
<oscarvarto>
srhb, trevthedev OK. So, am I safe doing everything as "root"?
<srhb>
oscarvarto: Essentially NixOS has some very specific mechanisms in place to symlink things into /etc and make systemd units and do the /run/current-system link -- but nothing to deal with arbitrary (say, /home/foo) symlinking.
<trevthedev>
no
<srhb>
oscarvarto: No.
<tobiasBora>
Any idea where I should put bug report for nixos?
<trevthedev>
youre never safe doing everything as root
<Baughn>
srhb: Depends on how much you want to hack things up. I have /etc/home and an overlayfs.
<trevthedev>
on the nixos or nixpkgs repo as srhb said
<tobiasBora>
srhb: ok thanks
<srhb>
Baughn: Right, I'm trying to keep things simple and sort of standardish, because I don't think the asker is currently looking for esoteric solutions. :-)
<trevthedev>
any updates tilpner?
<Baughn>
Probably appropriate.
<tilpner>
trevthedev - Not during the last minute, no
<trevthedev>
ah, alright
<Baughn>
oscarvarto: What is the concrete problem you are trying to solve?
<tilpner>
trevthedev - It finished and I pushed, if that's what you're asking about
<oscarvarto>
Baughn, I want to have configurations for emacs, haskell and python. I tried to use home-manager, but couldn't use documentation in Nixos Manual for that
<trevthedev>
so do i just git pull?
<Baughn>
oscarvarto: Yeah, it's not part of NixOS. There are plenty of ways to do that, home-manager is just one of the more common ones. You'll need to look it up, though.
<oscarvarto>
Seems like I have to use different options. Basically I think there is little documentation
<trevthedev>
says its already up to date
<Baughn>
oscarvarto: Personally I use a dotfiles repository and stow for the most part.
<srhb>
I still have some of my stow left, but converting it over to home-manager as I make changes...
<tilpner>
Yes-ish. You can add my fork as a remote and pull from that, or take the patch and apply it on top of recent master
<trevthedev>
may you please link it?
<Baughn>
I use the same Emacs config on non-Nixy systems as well.
<tilpner>
I already did
rfold has quit [Quit: Page closed]
<trevthedev>
oh ha my bad
jperras has joined #nixos
<oscarvarto>
It seems like home-manager is a good choice. I just need some help to get started
<trevthedev>
my eyes aren't doing well XD
<{^_^}>
[nixpkgs] @xeji opened pull request #46097 → statsd: mark broken, disable nixos test → https://git.io/fARpW
<Baughn>
oscarvarto: You can use emacsWithPackages in *any* package-building context. home-manager also lets you list packages to have installed in the user environment; you can put it there.
<Baughn>
Doesn't need to be environment.systemPackages.
<Baughn>
emacsWithPackages is a function that, itself, returns a package.
<oscarvarto>
Baughn, OK. I'll try again. I may need some guidance though
smolboye has joined #nixos
<clever>
tobiasBora: try switching to grub?
<oscarvarto>
I'll ask questions if I get stuck
<trevthedev>
alright so to be clear tilpner, i go into the shell, then run python2 update-runtime.py correct?
<trevthedev>
with your new version
jperras has quit [Ping timeout: 272 seconds]
<Baughn>
oscarvarto: One piece of advice. You probably have a single-user system. I'd recommend putting as much as possible in configuration.nix, and live with the occasional `sudo nixos-rebuild switch`.
<Baughn>
There is absolutely nothing wrong with having emacs in the system environment.
<Baughn>
Doing so doesn't even stop hypothetical other users (or you!) from shadowing the package if needed.
<oscarvarto>
Baughn: OK
<etu>
There's even people putting their entire emacs config in the default emacs install on the system
<tobiasBora>
clever: indeed, I think it's a good idea, I was not expecting to have a non-grub tool used. What tool is nix using, and why?
<clever>
tobiasBora: systemd-boot
<tobiasBora>
hum I neved heard about that before
<tobiasBora>
I though it was something else
<tobiasBora>
is it supposed to replace grub now?
jrolfs has joined #nixos
<tilpner>
trevthedev - No, just your regular user (or login graphically as a dummy user if you want to be safe)
<tobiasBora>
So to enable grub I just need boot.loader.grub.enable = true;
<tobiasBora>
?
<clever>
tobiasBora: and also: boot.loader.grub.efiSupport = true; boot.loader.grub.device = "nodev";
<trevthedev>
ah, alright thanks
<tobiasBora>
clever: the doc also mention that I should move /boot to /boot/efi: fileSystems."/boot/efi", is it still true?
sir_guy_carleton has joined #nixos
<clever>
tobiasBora: you can either put the EFI system partition (the vfat) at /boot
<clever>
tobiasBora: or you can use ext4 for /boot (or even use the /boot dir on the / partition), and put the vfat on /boot/EFI, which requires boot.loader.efi.efiSysMountPoint = "/boot/EFI";
jrolfs has quit [Ping timeout: 244 seconds]
<tobiasBora>
ok thanks
<Baughn>
Of course, /boot needs to be a partition type your choice of loader can read.
<Baughn>
ext4 is fine. ZFS might be fine. Not all filesystems are equally fine.
<clever>
of note, if /boot and /nix/store are on the same zfs dataset, nix wont copy the kernels to /boot
<hodapp>
gchristensen: thanks, autorandr looks like exactly what I need for this laptop + docking station combo I use daily with 2 LCDs
<clever>
and then grub has to deal with the giant directory that is /nix/store, which can break grub
<gchristensen>
yeah I use it. it doesn't work all the time but that might be my own faulty hacks
<Baughn>
Huh. No symlinks?
<Baughn>
Or does grub break despite the symlinks?
<Baughn>
Hardlinks would be fine, I'm sure... it should use those.
<clever>
Baughn: symlinks would still fail
<clever>
Baughn: nix will just put full storepaths relative to the rootfs dataset, when things are on the same FS
<Baughn>
clever: If it's the same dataset then /nix/store can't be mounted read-only, though.
<tobiasBora>
Baughn: why do I need a special partition for /boot?
<trevthedev>
hey it works!!!!!!! thanks :D
<tobiasBora>
Baughn: can't I use directly the / partition and create a folder /boot/efi?
<Baughn>
tobiasBora: You don't necessarily, but it needs to be a filesystem and partition layout that your bootloader can read. Otherwise it won't be able to read the kernel.
<clever>
Baughn: bind mounts, you can re-mount a subdir of any fs as read-only
<tobiasBora>
Baughn: ok sure. my / partition is ext4, so should be fine I guess
<Baughn>
E.g. things like RAID have historically been a problem, or lesser-used filesystems.
<tobiasBora>
ok, so this time the process finished (I got a few warnings/errors, but seems good else)
<tobiasBora>
let's reboot now!
<Baughn>
tobiasBora: Let me also tell you about `nixos-rebuild build-vm`.
<hodapp>
gchristensen: my docking station doesn't work all the time either, so perhaps it just won't matter in the face of that
<Baughn>
That will create a qemu script that runs the <whatever> you'll be trying to boot. It's a nice check before jumping through non-reversible hoops like this one.
<gchristensen>
hodapp: might be, same, haha
<Baughn>
It doesn't test the bootloader itself properly, but it should let you verify everything else.
<hodapp>
gchristensen: oh, docking station for you too? Thinkpad?
<gchristensen>
Dell
jperras has joined #nixos
<Baughn>
tobiasBora: There's also build-vm-with-bootloader, but that still doesn't test the entire configuration; it doesn't automatically replicate your partition layout.
<tobiasBora>
Baughn: ohh I saw this a bit too late ^^'
<srhb>
Baughn: I think that's currently broken.
<tobiasBora>
and it fails
<tobiasBora>
well, I've the grub menu
<tobiasBora>
but when it boot's, on Stage 1 it fails to mount the mvg volume
<tobiasBora>
I guess it does not like LVM
<Baughn>
Hmm
<Baughn>
tobiasBora: Can you pastebin your {hardware-,}configuration.nix?
<tobiasBora>
it's written:
<oscarvarto>
Baughn, How could I modify http://ix.io/1m1p to work with home-manager?
<Baughn>
Also, is this still an initial install? Or do you have data on there you want to keep?
silver has joined #nixos
<tobiasBora>
"Loading module dm_mod... running udev... starting device mapper and LVM... 3 logical volumes in volume group pvg now active. Waiting for device .... to appear"
Phlogistique has quit [Remote host closed the connection]
<tobiasBora>
and then it times out and cry
domenkozar has quit [Ping timeout: 250 seconds]
<tobiasBora>
Baughn: initial install
<clever>
tobiasBora: what device is the PV on?, is there any luks at play?
<tobiasBora>
let me reboot on live usb
<Baughn>
tobiasBora: In that case, would you be interested in trying ZFS instead? It's way more solid, in my experience, and no harder to get running.
<Baughn>
oscarvarto: I'm not very familiar with home-manager. Putting the packages you need in the extraPackages field seems appropriate, though.
<tobiasBora>
Baughn: on the hard drive, I just made a lvm partition, and created volumes on it
justbeingglad has joined #nixos
<tobiasBora>
but no luks
<tobiasBora>
(even if I'd have love it ^^)
<Baughn>
tobiasBora: /boot/EFI (or just /boot) can't be on LVM, last I checked.
<Baughn>
But I don't think that's the problem.
<tobiasBora>
Baughn: Well the partition mounted in /boot/efi (/dev/sda1) is outside LVM
<Baughn>
- Btrfs has about the same feature list, but ZFS is far far more reliable.
<tobiasBora>
interesting
<tobiasBora>
so maybe it's time to try ^^
<tobiasBora>
(try nixos, try ZFS... so much changes in my life)
<tobiasBora>
you can also compress data in ZFS right?
<Baughn>
- Encryption and ZFS-on-root are fully supported on NixOS. Unlike say Debian, you'll never be left without a working ZFS driver after an update.
<Baughn>
- Compression is supported, yes. Set 'compression=on' on your root dataset, then forget you did it.
<Baughn>
(Unless your CPU is a potato, the cost is effectively zero.)
<Baughn>
- It's by far the *fastest* filesystem I've ever used, for any non-database load. On spinning rust especially, I always get full streaming write speeds.
<tobiasBora>
ZFS is really open source or it's oracle powered with strange licence?
<hodapp>
Baughn: far as I care, it's magic for me in terms of how well it's worked :P
<Baughn>
tobiasBora: It's really open source. The license isn't GPL-compatible, but it *is* FOSS, and redistributing it is legal. (According to Ubuntu's lawyers, whom I believe.)
<Baughn>
- You can snapshot your filesystem at any time. The cost of a snapshot is only the size of any data *overwritten or deleted* after the snapshot. This means, with auto snapshots enabled, that you won't ever lose data by accident.
domenkozar has joined #nixos
<Baughn>
(Unless your accident is "I accidentally the entire disk". It isn't a replacement for backups.)
araadkins has joined #nixos
<Baughn>
tobiasBora: Anyway, with NixOS using it is really painless. There were a few bugs in the past, but I think I've ironed those out.
<Baughn>
(Half of them caused by me while attempting to fix another set of bugs..)
<tobiasBora>
ok I'm conviced
<Baughn>
Yay!
<tobiasBora>
even if I'm still curious to know why it failed with LVM
<araadkins>
I'm trying to use `nix-run` with an argument to `--store` as described in https://nixos.wiki/wiki/Nix_Installation_Guide#nix_2.0.27s_native_method, but I'm getting `error: setting up a private mount namespace: Operation not permitted`. I was hoping somebody could help.
alexteves has joined #nixos
<tobiasBora>
so let's re-install nix for the 5th time ;)
<Baughn>
(Though the article assumes you want MAXIMUM REDUNDANCY. I never actually bother to mirror /boot, myself.)
<Baughn>
Hmm. There's also some bad advice in there.
<Baughn>
You should set `compression=on`, not `compression=lz4`. lz4 is what you get when setting it to on, *right now*, but future updates may change that. `compression=on` should always choose the usually-best algo.
<philippD>
How can I open a nix-shell environment where certain cabal packages are installed? calling `nix-shell -p ghc haskellPackages.lens` doesn't expose lens to cabal.
<flexw>
Hello, are there any packages for Thunderbird in german? Since Mozilla does not upload a language pack for Thunderbird 60.
<tobiasBora>
ok, let's try
<thblt>
clever: LnL: a few times back I asked whether I could deal with my /boot partition saturating by just erasing it and nixos-rebuild --install-bootloader, and I promised to follow up. tl;dr: it works, except for a stupid mistake I made. But rm -rf /boot/* would have worked perfectly.
<tobiasBora>
I just hope that two efi won't break up everything
<Baughn>
tobiasBora: If you have to use it, then I'd suggest mounting it as /boot/EFI.
<tobiasBora>
also, in gparted I can't find ZFS filesystem, did I miss something?
<Baughn>
No. There's no ZFS partition id.
<tobiasBora>
Baughn: use what?
<Baughn>
Just use whatever. Nothing actually cares.
<tobiasBora>
Baughn: ok thanks
dbmikus_ has joined #nixos
<Baughn>
tobiasBora: The windows efisys partition. You can mount it as /boot/EFI, so gummiboot/grub will go in there but the kernels stay in /boot.
<Baughn>
The downside is that /boot still has to be readable by your bootloader, though not the BIOS.
sbdchd has quit [Ping timeout: 240 seconds]
<Baughn>
grub does know how to read ZFS partitions. But not *all* ZFS partitions.
<Baughn>
And you'd need to disable a bunch of features.
fendor has quit [Ping timeout: 252 seconds]
<Baughn>
Realistically, you shouldn't put /boot on ZFS.
knupfer has quit [Remote host closed the connection]
<tobiasBora>
ok. Will the new fat32 partition will also have windows efi stuff, or I will really have two partitions?
knupfer has joined #nixos
<Baughn>
The latter.
<Baughn>
I mean, you *could* resize the windows partition. That's also an option.
countingsort has joined #nixos
<tobiasBora>
There is the windows partition after so it's a bit risky I guess
<Baughn>
Then don't do that.
<Baughn>
More like a bit impossible. :V
tzemanovic has quit [Remote host closed the connection]
<{^_^}>
value is a function while a set was expected, at (string):171:80
<infinisil>
> viewSource emacsPackages
<{^_^}>
" emacsPackages = emacs26Packages;"
<infinisil>
(!)
<tobiasBora>
Baughn: what should I put in boot.loader.grub.devices? nodev, the hdd, the boot partition, or all boot/home/nixos partitions?
<Baughn>
I'd actually suggest using systemd-boot.
<tobiasBora>
Baughn: it can deal with dual boot?
<Baughn>
Easily.
<Baughn>
Let me find an example..
<{^_^}>
[nixpkgs] @oxij opened pull request #46101 → nix: fix a tiny option bug, make AWS support optional → https://git.io/fA0Yf
<clever>
tobiasBora: when using efi, device should be "nodev"
<clever>
device(s) is only for legacy boot
<Baughn>
Hmm, I actually put a chainloader in there manually. Never mind.
<joepie91>
note for the IRC logs: to get `ide-rust` to work in Atom with a shell.nix, create a `~/rls-in-shell.sh` file containing `nix-shell --run "rls $@"` (without backticks), then set the "Rls Command Override" in ide-rust to the path of the rls-in-shell.sh et voila, all compilation occurs within your nix-shell and compiler hints don't break anymore
<joepie91>
(oh, and chmod +x the .sh ofc)
<{^_^}>
[nixpkgs] @xeji pushed to master « statsd: mark broken, disable nixos test (#46097) »: https://git.io/fA0O9
<{^_^}>
[nixpkgs] @xeji merged pull request #46097 → statsd: mark broken, disable nixos test → https://git.io/fARpW
knupfer has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @xeji pushed to release-18.09 « statsd: mark broken, disable nixos test (#46097) »: https://git.io/fA0Oj
<{^_^}>
[nixpkgs] @Ericson2314 pushed 4 commits to staging: https://git.io/fA0c6
seku_ has quit [Read error: Connection reset by peer]
<dhess>
For a Hydra that's storing its build products in S3, where do the S3 credentials go? I'm looking at IOHK's Hydra config and at nixos-org's Hydra config, and I don't see any references to that.
polman has quit [Ping timeout: 252 seconds]
polman has joined #nixos
<clever>
dhess: check the PR that introduced those changes
thekolb has joined #nixos
<dhess>
clever: in the Hydra repo, or in the IOHK/nixos-org repos?
<{^_^}>
input-output-hk/iohk-ops#352 (by cleverca22, 12 weeks ago, merged): [DEVOPS-836] configure hydra to upload everything to S3
<dhess>
ahh ok cool, thank you.
<dhess>
forgot that you work for them :)
<dhess>
or with them anyway
<clever>
i'm on the devops team
<dhess>
that's perfect, thank you
<clever>
half of my job is managing this hydra
iMatejC has joined #nixos
<dhess>
hehe
<dhess>
clever: I think it was you who warned me a few months ago that running builds on a Hydra can cause deadlocks, something about using localhost as a remote builder. Any idea whether that's still a thing? I've seen a couple of PRs in the Hydra GitHub issues related to using localhost as a builder and it seems like maybe it's working now.
<dhess>
if you add "builtins" to the localhost builder's capabilties, anyway (in addition to "kvm" etc)
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #46104 → stdenv, neovim: Use `lib.warn` for deprecation warnings → https://git.io/fA0WN
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #46105 → stdenv, neovim: Use `lib.warn` for deprecation warnings → https://git.io/fA0ls
ihar has joined #nixos
nly has left #nixos [#nixos]
<dhess>
I have this big Hetzner build host that's just sitting around most of the time and I might as well let it be the Hydra, as well, if it doesn't cause problems.
<srk>
iirc it's no longer needed with recent hydra
<srk>
# XXX: drop 'builtin' when we update to recent hydra
<dhess>
srk: what's no longer needed?
<dhess>
oh
<dhess>
ok thanks. I have always used the Hydra included in Nixpkgs, not sure when's the last time that was updated.
<dhess>
last I looked I think it was from last November
<srk>
last time I've restored to hydraSrc = ../hydra;
<srk>
cause master gave me hard time
semilattice has quit [Ping timeout: 245 seconds]
<dhess>
ahh yeah. I think I'll just use what's in Nixpkgs and do the "builtin" hack :)
<dhess>
assuming the deadlock issues have been resolved.
Fare has joined #nixos
<dhess>
srk: are you using your Hydra as a localhost builder?
waleee has quit [Quit: WeeChat 2.2]
<srk>
yes, in one case
<srk>
but only with maxJobs = 1;
<dhess>
srk: would you say that you've experienced any "unusual" issues with that one that you haven't seen on your other Hydras?
johanot has quit [Quit: leaving]
sbdchd has quit [Remote host closed the connection]
__Sander__ has quit [Quit: Konversation terminated!]
tzemanovic has quit [Ping timeout: 252 seconds]
<srk>
not really, runs fine but I've changed the hydra version multiple times to find a "good" one
<dhess>
ok thanks for the data points :)
<srk>
my second testing hydra died cause of the low disk space, new machine for it is ready with more TB :D
<srk>
watch your disk space ^^ :)
<dhess>
srk: yeah I was planning to run a Hydra on a cheap EC2 instance, but as soon as you try to add 2TB of EBS, it's no longer cheap :)
<dhess>
maybe I should just spin up another Hetzner from the auctions pool
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #46104 → stdenv, neovim: Use `lib.warn` for deprecation warnings → https://git.io/fA0WN
<clever>
hydra-update-gc-roots.service is responsible for GC'ing the GC roots
<clever>
which then allows nix-collect-garbage to GC the actual builds
<srk>
:D
<clever>
so if you want to delete things, you need to maybe reduce the keep number, `systemctl start hydra-update-gc-roots.service`, wait for it to finish, then nix-collect-garbage
<clever>
and if you `journalctl -f -u hydra-check-space.service`, you will see when disk space has gotten low, and it stopped things
<srk>
think I'll go slowly next time watching disk space closely while adding more jobs
<srk>
it should reach a some baseline after few days anyway
<dhess>
clever: BTW I wanted to thank you again for publishing your PXEboot config. That thing has saved me *so much time* over the past few weeks.
<clever>
dhess: nice
<clever>
dhess: which one? i have 2 or 3 pxe configs, lol
<dhess>
Ditto for the kexec builder. In fact I'm about to fire that up again
oscarvarto has quit [Quit: Leaving]
<dhess>
clever: the one in your personal nix config I believe
<clever>
ah, netboot_server.nix ?
<dhess>
with the nas and the router
<clever>
ah, that one isnt as complete
<tobiasBora>
clever: ok thanks
<dhess>
yeah I think so. I've been using the hell out of that to wipe a bunch of hardware that I'm getting rid of
<srk>
yorick: I'm trying to replace openwrt on turris omnia :)
<dhess>
clever: yeah it was definitely the netboot_server.nix one
<dhess>
srk: oh me too
<dhess>
well, not turris omnia but still
<dhess>
I actually have a pretty decent setup on an apu3c4. Still need to get the wireless going though
<dhess>
and LTE
<clever>
dhess: my original use-case for netboot_server.nix, was to netboot my new laptop, from the old laptop, and install nixos with a simple `justdoit` at the shell and be done instantly
<clever>
dhess: but nvme and uefi had other things to say about those plans, lol
<clever>
so i have to conditionally insert a p everywhere
<srk>
for omnia you can generate omnia-medkit.tar.gz with rootfs on it and it will flash it to internal flash and boots from its btrfs partition next time, will put instructions on a wiki when I figure that out
<clever>
dhess: and PXE is legacy boot, but NVME is uefi only, so i had to mess with the removable flag to get the machine to boot
<dhess>
huh weird
<yorick>
you can't say "mini pcie/msata", these are electrically different interfaces
<clever>
dhess: and then there is testing nvme under justdoit, i cant be wiping my laptop hourly :P
<dhess>
clever: when I get a chance I'm going to try signing the PXE booters
<dhess>
well that looks sweet, I'll be taking a look at that
<clever>
dhess: line 64 generates a custom build of ipxe, that has a script embeded into it (which permenantly enables requiring signatures), and embeds the certs
<tobiasBora>
Baughn: I don't get, why systemd-boot is better than grub?
<clever>
dhess: and line 88 then runs ipxe (using the linux-kernel format, via -kernel), and sets up a tftp server with qemu
jrolfs has quit [Ping timeout: 245 seconds]
<Baughn>
tobiasBora: It has fever options. I found it easier to do UEFI tricks with it, since it doesn't support non-UEFI.
<clever>
dhess: so, assuming you can verify the ipxe binary (my original idea was to bake it into coreboot), every file loaded afterwards is signed by the keypair
<Baughn>
Either works, though.
<clever>
dhess: and the main script.ipxe is loaded over the network (and signed) so you can still dynamically reconfigure ipxe remotely
<dhess>
clever: that's fantastic
<tobiasBora>
Baughn: it's supposed to be able to autodetect others systems also?
<Baughn>
I think so, but it didn't for me.
<dhess>
clever: ahh have you done much coreboot hacking?
<dhess>
My apu3c4 uses coreboot and I'm really curious what it's capable of
<clever>
dhess: nope, none of my machines support flashboot writing
<srk>
clever: I've also addedd mac -> image mapping so when mac address is listed it boots the specified image right away - I will try to abstract that even further and add DHCP to the mix so there's something like (mac, IP, image) at toplevel config
<Baughn>
I was easily able to add a menu entry for Windows, though. Each entry is one file. That makes it easy; NixOS doesn't overwrite it.
<clever>
dhess: oh, and i also recently noticed a secureboot, that you can whitelist the hash of a .efi file, without having to deal with keypairs at all
<clever>
dhess: so you could pop a ipxe.efi into a EFI sys partition, whitelist its hash in the bios, and set a bios password
<clever>
and it will only ever be able to boot what you signed (line 57 of the file)
<dhess>
clever: yeah with everything being generated by Nixpkgs, it seems you could probably bake the hashes into the derivation and not need to bother with signing.
<clever>
dhess: the signing is more about updating things without having to redo the ipxe binaries/config
<dhess>
yeah
<NickHu_>
Does anyone know what controls the size of /run/user/$userid in NixOS?
<NickHu_>
Mine is pitifully small
<clever>
NickHu_: systemd-logind i believe
<clever>
NickHu_: once you find the right flag for the config file, services.logind.extraConfig
<clever>
NickHu_: the docs for that option also point to `man logind.conf`
<clever>
RuntimeDirectorySize=
<clever>
Takes a size in bytes, optionally suffixed with the usual K, G, M, and T suffixes, to the base 1024 (IEC)
<clever>
dhess: ive also recently been experimenting with `nix copy`, and it may be possible for nixops to deploy into a machine that was booted into any "install media"
<clever>
dhess: this allows you to copy a pre-built nixos closure to the /mnt of a remote machine, which can even be a freshly formatted disk
<clever>
then you just have to handle the bootloader installation via switch-to-configuration+nixos-enter or maybe nixos-install -s
<tobiasBora>
Baughn: it failed to boot :'( There is no entry for NixOs (well there is one that does not boot, and I think it's the old one when I was still using /dev/sda1 for EFI)
<yorick>
srk: the pc-engines thing is a lot cheaper
<tobiasBora>
Baughn: I'm pretty sure that's because I've now two EFI partitions...
<tobiasBora>
Baughn: How could I say to the bios "hey, there is another partition!"
<clever>
tobiasBora: if you can find the right bios option, try browsing for a custom .efi file, and just manually select /boot/EFI/BOOT/BOOTX64.EFI for a one-time boot
<Baughn>
tobiasBora: Did you mark the second one as being efisys?
<clever>
tobiasBora: i'm able to do that when on my laptop
stphrolland has joined #nixos
<Baughn>
gparted calls it 'boot', but it's the ESP flag.
wpcarro has quit [Ping timeout: 244 seconds]
<tobiasBora>
clever: indeed, it seems possible... But it still boots to Windows...
<tobiasBora>
Baughn: yes, I used ESP flag
<tobiasBora>
the good thing is that it appears in the Bios...
<tobiasBora>
I'll still try some stuff ;)
wpcarro has joined #nixos
<clever>
tobiasBora: you may be browsing into the wrong ESP
nuncanada has quit [Quit: Leaving]
Boomerang has quit [Ping timeout: 272 seconds]
<tobiasBora>
clever: I'm pretty sure I'm in the good esp...
<tobiasBora>
clever: the file matches
<tobiasBora>
but the bios looks really buggy
<clever>
tobiasBora: do you see grub files in the nearby directories?
<tobiasBora>
like I need to click 3 times on FS1 to go to the second GPT7 partition
Fare has quit [Ping timeout: 245 seconds]
<tobiasBora>
and I don't know why, but when I save the grub setting, it completely changes the entry
<clever>
i was thinking about doing a one-time override, to just select the grub binary and boot it
<clever>
once nixos is booted, another round of `nixos-rebuild switch --install-bootloader` should correct the config
hxrts_ has quit [Ping timeout: 252 seconds]
fzer0 has joined #nixos
<tobiasBora>
Like, if I save it once, I've "File System: PciRoot(...)...HD(7,GPT,...)... File Name \EFI\NixOS-boot\grubx64.efi"
<tobiasBora>
but once I reboot, this exact same entry is changed into
<tobiasBora>
File System List: VenHW(99E2...) (No idea what this number refers to)
<tobiasBora>
File Name: \EFI\BOOT\BOOTX64.EFI
<tobiasBora>
clever: What do you mean by ont-time override? Should I override \EFI\BOOT\BOOTX64.EFI on sda1?
<tobiasBora>
I need to go now, but I'll try again tomorrow... I'd like to know, if I move the efi file on my sda7 partition to the efi file in the sda1 partition, by replacing for example the Windows boot entry with this one, will it still boot correctly?
stranger___ has joined #nixos
ixxie has joined #nixos
fzer0 has quit [Quit: Leaving]
<ixxie>
hmm
sbdchd has quit [Ping timeout: 252 seconds]
<stranger___>
rycee[m]: hi. i'm trying home-manager to nixos integration. i don't want to import master tree but rather revision of home-manager sources used in nixpkgs. so i do imports = [ "${pkgs.home-manager.src}/nixos" ]; however this leads to infinite recursion :( how could i fix that?
<ixxie>
it seems I managed to botch up a kexec installation process and have no network connection
Ariakenom has joined #nixos
<clever>
ixxie: the main install, or the kexec image itself?
<cransom>
note to self. a hydra builder with 8 gigs of ram, building aws images that are 2-4 gigs in size, you will get obscure messages about max_output_size exceeded when the real cause is running out of memory when passing a nar around.
<ixxie>
clever: main install
<ixxie>
I'm in kexec
<ixxie>
unfortunately I already formatted the drive
<clever>
ixxie: ah, then first thing id recomend is to `systemctl stop autoreboot.timer`
<clever>
ixxie: then fix the config in /mnt/etc/nixos and re-run nixos-install
<ixxie>
done
jrolfs has joined #nixos
<ixxie>
okay now the config
sbdchd has joined #nixos
<ixxie>
I thought I enabled networking
<jD91mZM2>
Hello! My /etc/services contains "apple remote desktop (net assistant) 3283/tcp # Net Assistant", which doesn't seem correct since it has spaces in the name...
<jD91mZM2>
What is this?
sbdchd_ has joined #nixos
<ixxie>
clever: networking.wireless.enable = true is enabled (this is a laptop)
<ixxie>
can't quite figure out what else to do
<clever>
ixxie: run wpa_passphrase to generate a /mnt/etc/wpa_supplicant.conf
<clever>
ixxie: and depending what your wifi drivers are, enable the right options to install them
hxrts_ has quit [Ping timeout: 252 seconds]
<{^_^}>
[cabal2nix] @philderbeast opened pull request #375 → Allows for package definition in package.dhall → https://git.io/fA0aV
<clever>
i mainly use kexec remotely, so ssh must be working before i can wipe the disk
<ixxie>
yes
<ixxie>
yeah figures xD
jperras has quit [Quit: WeeChat 2.2]
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #46108 → patch-shebangs: respect cross compilation for 18.09 → https://git.io/fA0o9
<ixxie>
alright, ethernet works at least xD
_ris has joined #nixos
<ixxie>
I think I didn't partition the drive correctly though
<ixxie>
I guess I might have to repeat this
<NickHu_>
How can I add sudo to the path of a systemd unit?
<clever>
NickHu_: why does a systemd unit need sudo?
<NickHu_>
If I use the one from the sudo package it complains about not having setuid
<NickHu_>
clever: because the software is poorly written in a nutshell
<clever>
NickHu_: is it trying to gain root or loose it?
<NickHu_>
Gain
<NickHu_>
It's a user unit
<clever>
ah
<clever>
[root@amd-nixos:~]# type sudo
<clever>
sudo is /run/wrappers/bin/sudo
<clever>
you need to add that PATH
<joepie91>
,locate winscard.h
<{^_^}>
Found in packages: pcsclite, wineFull, wineWowPackages.full
stepcut_ has joined #nixos
<joepie91>
,locate asoundlib.h
<{^_^}>
Found in packages: alsaLib.dev
georges-duperon has quit [Ping timeout: 252 seconds]
owickstrom has joined #nixos
stepcut has quit [Ping timeout: 246 seconds]
<NickHu_>
clever: hmm, when I do that it still gives me the error about not being owned by uid 0 and having the setuid bit set
orivej has quit [Ping timeout: 244 seconds]
<clever>
NickHu_: did you run /run/wrappers/bin/sudo or `sudo` ?
<NickHu_>
I set PATH to include /run/wrappers/bin and ran sudo
<d1rewolf>
I'm using node2nix. Building/installing one package.json seems to be removing other installed node packages. any idea why?
tzemanovic has joined #nixos
<d1rewolf>
for example, I install @google/clasp. it works. "which clasp" shows it's there. But, if I then do "nix-env -f default.nix -iA @types/google-apps-script", it removes clasp. is this expected behavior?
<clever>
NickHu_: did you put it at the start or end of PATH?
<NickHu_>
Well, I'm adding a singleton list to systemd.user.service.path
<NickHu_>
And no matter where I put it it doesn't seem to prioritise that path
<clever>
NickHu_: try prepending in the script, instead of using execstart
<d1rewolf>
anyone else using node2nix here?
<NickHu_>
clever: Yeah, I'll try something like that thanks
jperras has joined #nixos
<{^_^}>
[nixpkgs] @edolstra merged pull request #46101 → nix: fix a tiny option bug, make AWS support optional → https://git.io/fA0Yf
<NickHu_>
I know it's in utillinux, but actually the nix puts /nix/store/mxc8rily2la16jagzbpm4vhi036sbvqc-util-linux-2.32.1/bin/mount in the path, but the one on my system is /nix/store/bi65cgbck0bfyrq82r8bx621s0c08wqa-util-linux-2.32.1-bin/bin/mount
<NickHu_>
Furthermore, I get no such file or directory: /nix/store/mxc8rily2la16jagzbpm4vhi036sbvqc-util-linux-2.32.1/bin/mount even though I just built it, so I don't know what is going on
<NickHu_>
Maybe I should be taking the path from something other than pkgs.utillinux?
sigmundv has joined #nixos
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
<NickHu_>
oh apparently mount is in utillinux.bin
<ixxie>
running into an error saying it can't open /mnt/nix/var/nix/db/big-lock because its a read-only filesystem
<ixxie>
(I just used parted to make a boot / main partition so maybe I screwed up)
<{^_^}>
[nixpkgs] @shlevy pushed to release-18.03 « haskellPackages.shellFor: fix after recent getHaskellBuildInputs fix. »: https://git.io/fA0ir
<phry>
is there a way to pass a --arg argument to nix-build to a config that is included by the main config?
<phry>
I'm calling `nix-build '<nixpkgs/nixos>' -A config.system.build.image --arg configuration './.' --arg hostId 254` and would like to access "hostId" from a config that is included from ./default.nix
<ixxie>
clever, any ideas?
<phry>
ixxie: a shared boot/main partition is no problem. are you getting that error while installing? /mnt/nix doesn't look like a normal running system
<clever>
ixxie: what does mount report?
<clever>
ixxie: was anything mounted when re-partitioning?
<d1rewolf>
how would one track down where something like nodeEnv.buildNodePackage is defined?
* ixxie
facepalms
<ixxie>
forgot to mount it after
<ixxie>
or wait
<ixxie>
I should mount the main partition only to mnt right?
<clever>
all partitions involved in the install should be mounted, in the correct order
<ixxie>
currently the whole of sda is mounted to mnt
thekolb has left #nixos [#nixos]
<maurer>
... you should probably partition to /dev/sda1, mkfs on that, and put it on /mnt
<maurer>
unless you have a Good Reason to use all of /dev/sda
<clever>
yeah
<ixxie>
so might as well repartition to have one giant bootable partition no?
<maurer>
So, most bootloaders will expect some kind of partition table
<maurer>
as will EFI
<maurer>
I guess first question: Are you using legacy boot, or UEFI?
<ixxie>
this is quite an old machine so MBR
kenshinC1 has joined #nixos
<clever>
ixxie: efi also requires a dedicated boot partition
<maurer>
OK, if you are using legacy boot, you will want GRUB, which will still strongly perfer that you make a single, very large partition
<maurer>
rather than using the entire drive
<maurer>
*prefer
<d1rewolf>
anyone else using node2nix here?
<maurer>
Just pop open fdisk and make a single partition the size of the entire disk
<maurer>
mark it bootable
<maurer>
mkfs that
<maurer>
mount it on /mnt
<maurer>
and you should be golden
<clever>
as long as your using MBR tables
<maurer>
Well, he said he was
<clever>
legacy can also boot on GPT, but it needs an extra partition
<d1rewolf>
if I use -v with nix-env -i, it tells me the files it evaluates. is there any way to trace the actual commands it executes? installing new npm packages with node2nix is removing *existing* node packages and I'm trying to troubleshoot
<clever>
d1rewolf: nix-env -i will always replace any package with a matching name, treating it as an upgrade
<clever>
it should say so near the end, its more clearly visible without -v
<ixxie>
and it should be bootable I guess xD
<clever>
ixxie: grub doesnt really care about the bootable flag
<clever>
and boot.loader.grub.device = "/dev/sda"; should be set
<d1rewolf>
clever: it's not replacing an existing name though... .installation of @types/google-apps-script npm package removes an existing install of @google/clasp
<clever>
d1rewolf: what name does `nix-env -q` show it as?
logzet has joined #nixos
<d1rewolf>
clever: node-_at_google_slash_clasp-1.5.3 and node-_at_types_slash_google-apps-script-0.0.27
<clever>
d1rewolf: is it listing both at once?
<d1rewolf>
clever: no, one is listed until the other is installed.
<d1rewolf>
and then the other is no longer installed
<d1rewolf>
one sec
<clever>
d1rewolf: its parsing the name as "node" and removing the other "node" when installed
<clever>
d1rewolf: the name stops at the -
<d1rewolf>
clever: oof. is that a bug?
<clever>
d1rewolf: id say the packages are poorly named
<clever>
d1rewolf: id recomend just using nix-shell -p to get both at once, and not installing either
<ixxie>
cheers folks, giving it a shot now
<d1rewolf>
clever: for my own reference, who's the namer of the packages in this case?
Fare has quit [Ping timeout: 244 seconds]
<d1rewolf>
clever: and how did you determine it's stopping at "node-"?
<d1rewolf>
i'd be interested in learning how for future troubleshooting
<clever>
d1rewolf: its common for package names to be name-1.2.3, and nix-env matches on name to detect upgrades
revtintin has quit [Quit: WeeChat 1.9.1]
Fare has joined #nixos
<clever>
d1rewolf: i cant find any trace of google-apps-script in nixpkgs, what other args are you giving to nix-env?
<d1rewolf>
clever: do you have an example of using nix-shell with node packages?
<ixxie>
the installer fails with 'failed to check file system type of "/boot": No such file or directory
<ixxie>
do I just mkdir /mnt/root?
<{^_^}>
[nixpkgs] @nyanloutre opened pull request #46110 → jackett: update mono to 5.8 → https://git.io/fA0Xz
<d1rewolf>
clever: I get: error: syntax error, unexpected '{', expecting '.' or '=', at (string):1:82
<clever>
ixxie: a: why make root when it failed on boot?
<clever>
d1rewolf: nix-shell -E 'with import <nixpkgs> {}; let foo = import ./default.nix {}; in stdenv.mkDerivation { name = "foo"; buildInputs = [ foo."@google/clasp" foo."@types/google-apps-script" ]; }'
<clever>
d1rewolf: i missed an "in"
<clever>
ixxie: b: did you enable efi by acicdent?
<ixxie>
I meant boot
<clever>
ixxie: does configuration.nix mention efi?
<ixxie>
oh in the config
<ixxie>
lemme check
<{^_^}>
[nixpkgs] @stites opened pull request #46111 → noti: init at 3.1.0 → https://git.io/fA0X5
<d1rewolf>
clever: so the nix files generated by node2nix for, in this case @types/google-apps-script, do specify 'name = "_at_google_slash_clasp", but the "node-" must be being added elsewhere
humanoyd has quit [Quit: WeeChat 2.2]
<clever>
d1rewolf: that name= is an argument to another function, which is probably doing that
<ixxie>
yeah clever there was some efi option :P
<{^_^}>
[nixpkgs] @siers opened pull request #46112 → nix-gitignore: init at v1 → https://git.io/fA0Xx
<ixxie>
trying again
<d1rewolf>
clever: indeed it is. is there any easy way to track down line #/file of where a function is defined?
sbdchd has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
<clever>
d1rewolf: usually, i just grep all of nixpkgs for the name
<d1rewolf>
clever: how does one do that, exactly?
<clever>
d1rewolf: what is the name of the function?
<d1rewolf>
buildNodePackage. I found it in this case by cd'ing to the directory in the store where node2nix is installed and grepping the nix files there, but was curious if there was an easier way?
alexteves has quit [Remote host closed the connection]
rauno has quit [Ping timeout: 240 seconds]
alexteves has joined #nixos
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
<ixxie>
hmm the install fails now because the MBR setup has no 'post-MBR gap' and 'GRUB can only be installed in this setup using blocklists' which are deemed unreliable
<d1rewolf>
clever, so it's literally a one character change to fix. however, I assume to fix and use my own version of node2nix I'd have to download and build my own version of it? In other words, simply cd'ing to the appropriate store directory and editing the file there won't work will it? or will that work/persist until the next nixos-rebuild?
<d1rewolf>
clever: you'd think with something used as widely as node2nix that this would've come up before
* d1rewolf
scratches head
fzer00 has quit [Remote host closed the connection]
fzer0 has joined #nixos
<rain1>
How should I manage emacs packages in nixos?
<d1rewolf>
ah...read only filesystem. so i'll have to rebuild :/
<clever>
d1rewolf: nixos mounts it read-only to stop you from doing that
<clever>
d1rewolf: yeah, things break in nasty ways if you edit anything in /nix/store/
<{^_^}>
[nix] @edolstra pushed 2 commits to 2.1-maintenance: https://git.io/fA0HE
<d1rewolf>
sigh...sometimes I wish for nixos without nix and with a more even command line interface :(
<emily>
nixos without nix ...
<symphorien>
guixsd maybe ?
<d1rewolf>
symphorien: and without religious zealotry ;)
<hodapp>
nixos without nix? how?
<symphorien>
your demands start to be difficult to fulfil :)
<d1rewolf>
hodapp: what I mean is a os like nix, but with a more mainstream language
<emily>
if only I could use NixOS without OS.
<hodapp>
d1rewolf: oh, so you are talking about the Nix language, not so much the build system
<emily>
w-well, Scheme is marginally more mainstream than Nix
<andi->
grml grml.. carnix and binaries in packages that fail to compile.. I don't want binaries/examples of my lib dependencies :/ I can't figure out why an override for `crateBin = []` isn't sufficient :/ Anyone encountered that before? (trying to add brotli to deps..)
Mr_Keyser_Soze has quit [Ping timeout: 252 seconds]
<hodapp>
emily: it's a pretty established language in all sorts of niches... I'd call it more than marginally mainstream :P
<emily>
hodapp: *nods* but somehow I'm not sure that someone wanting something more mainstream than Nix would be satisfied with guix?
owickstrom has quit [Ping timeout: 272 seconds]
mbrgm has joined #nixos
<hodapp>
emily: in the land of declarative anything, I don't know how mainstream one can really go
<emily>
yeah
<emily>
JSON :p
<hodapp>
bleh
<symphorien>
with comments please
<hodapp>
comments... aren't the problem :P
<symphorien>
only one
<gchristensen>
json doesn't _do_ stuff
<emily>
hodapp: be thankful. JSON is the reason what gets exchanged can be called "data" at all.
<maurer>
emily: json is missing both laziness and computation
<emily>
otherwise we'd probably be throwing around snippets of actual javascript or something.
<maurer>
You kinda need both of those to get a nix-like structure
<elvishjerricco>
NixOS module system is a godsend.
<elvishjerricco>
JSON really can't even enter the competition
stranger___ has quit [Quit: Connection closed for inactivity]
<emily>
maurer: it was a joke about JSON being the most mainstream you can go while still being declarative
<emily>
since, well. it is
<d1rewolf>
clever, I've verified that moving "node-" to the end as "-node" fixes the issue. I'm working up a patch now, but was curious...would it better to prefix, iyo, with something like "node:" or some other symbol nix doesn't treat specially, or should i just move to the end as I've already done?
<clever>
d1rewolf: not sure, we will find out more when a PR is filed and the maintainer of node2nix can comment on it
* d1rewolf
nods
<das_j>
Is there a way to specify channels in configuration.nix?
stepcut_ has quit [Read error: Connection reset by peer]
<das_j>
aah, that was I was looking for, thank you
tzemanovic has joined #nixos
laduke-13 has left #nixos ["WeeChat 2.1"]
<elvishjerricco>
samueldr: Ah ha! I think I found another clue for our bluetooth problem. I *think* it only happens when the display manager exits uncleanly
noam_ has joined #nixos
<elvishjerricco>
Like, it's happened when I run `sudo systemctl restart display-manager.service` from a terminal running under the display manager
noam has quit [Read error: Connection reset by peer]
<samueldr>
maybe yours... hopefully it's a repro for the same base issue, but in my case it happens randomly from getting out of suspend or a fresh boot with really low chances :/
<samueldr>
(in all cases, the DM process is not affected AFAICT)
Freechicks has joined #nixos
<samueldr>
though, possible it's the same base issue!
<elvishjerricco>
Ah, I literally never suspend, so that may also be a cause for me. I think I've had it happen on boot now that you mention it though...
<clever>
elvishjerricco: what if you simply `pactl exit` ?
mkoenig has joined #nixos
<elvishjerricco>
clever: Dunno. Never done that before.
mkoenig has quit [Client Quit]
<samueldr>
elvishjerricco: refresh people's mind of your issue
<clever>
elvishjerricco: try that when its working, and see if it recovers on its own
stepcut has joined #nixos
<elvishjerricco>
It recovered instantly :P
mkoenig has joined #nixos
<joko>
elvishjerricco: what's the issue?
aristid has quit [Quit: WeeChat 2.1]
<elvishjerricco>
Issue is that sometimes, in unclear circumstances, my machine becomes unable to make bluetooth connections. I forget the precise error message. Something like "Protocol is unavailable"
<samueldr>
mine is that somehow sometimes the bluetooth connection simply won't take with the headset... but deleting the pairing, and re-pairing works (IIRC, long time since it happened *touches wood*)
<samueldr>
same message that elvishjerricco has/had
<joko>
elvishjerricco: are you using wi-fi?
<elvishjerricco>
joko: I don't think I have my wi-fi card disabled, but I'm also not using it
aristid has joined #nixos
<joko>
And you're both experiencing this with headsets?
<elvishjerricco>
yea
baimafeima has joined #nixos
<clever>
joko: my wireless headset uses a proprietary USB dongle, it claims to be a usb sound card with HID features, so it just appears as a normal device in alsa, and also acts like a usb keyboard at times
stepcut has quit [Ping timeout: 252 seconds]
<clever>
other then some problems with the capture buffer building up latency in pulseaudio, it has never had any serious driver or connection problems
noam has joined #nixos
<clever>
logitech g930 is the model
<joko>
One thing I can think of is rfkill, check if bluetooth gets blocked and the other is pulseaudio (of course). Lately I have to kill the latter at startup, so that it works properly
<clever>
and unlike a lot of bluetooth users, the capture/playback device is still present when the headset disconnects
<clever>
so pulseaudio wont crap its pants and disconnect applications in a damaging way
<joko>
I tend to agree with clever, the most possible cause for me would be pulseaudio
<joko>
clever: I also have an old Sound Blaster headset with USB connection, but I think it is not emulating a USB keyboard
noam_ has quit [Read error: Connection reset by peer]
noam__ has joined #nixos
<clever>
joko: the usb keyboard bits allow it to report volume up/down events when i scroll the volume knob, and previous, play/pause, next, when i push the G1/G2/G3 buttons
noam has quit [Read error: Connection reset by peer]
<joko>
clever: quite convenient, I see
<clever>
joko: the only anoying part, is that the low battery beep, is implemented by windows-only software
<clever>
it measures the battery level via an unknown method, and then just plays a beep over the audio channel
<clever>
so linux just lacks a low battery warning, and the headset just dies
<clever>
the low battery LED is imposible to see if you are actually using the headset
<srhb>
This sounds like a problem that can be solved with cleverly placed mirrors.
<clever>
the LED is pointing down and backwards
<srhb>
More mirrors!
<clever>
and your shoulder is going to be in the way :P
<cransom>
attach an esp8266 and very carefully attach a gpio to the led output, done.
acarrico has joined #nixos
<clever>
cransom: i have had plans to just replace the entire board with something like a esp8266, and just make it purely wifi based :P
<tokudan[m]>
can someone give me a tip and tell me which derivation i can find libffmpeg.so in or how I can find that out myself? it's not in my /nix/store
<clever>
,locate libffmpeg.so
stphrolland has quit [Ping timeout: 252 seconds]
<{^_^}>
Found in packages: marp, qmmp, atom, nwjs, hyper, pencil, inboxer, and 17 more
<tokudan[m]>
oh... nice
<infinisil>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended).
<tokudan[m]>
thanks
<clever>
tokudan[m]: it doesnt appear to be part of any proper package, it just happens to be included with a bunch of random things that shipped their own libffmpeg.so
<tokudan[m]>
yeah, i see
<tokudan[m]>
similar to my package, i guess
<clever>
it may help to see how it compares to the library ffmpeg provides
<clever>
hmmm, it has many, but not an ffmpeg
joko has joined #nixos
stphrolland has joined #nixos
<clever>
tokudan[m]: i also remember something about libffmpeg.so being just a different build mode, where it puts all the libs into one .so file
<tokudan[m]>
possible, i guess i just have to figure out how to tell patchelf to load the local lib from the same directory as the binary
<{^_^}>
[nixpkgs] @xeji pushed commit from @Ma27 to release-18.09 « nixos/activation: fix activation script for non-POSIX shells (#46042) »: https://git.io/fA0pk
mayhewluke has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
jperras has quit [Quit: WeeChat 2.2]
mizu_no__ has joined #nixos
trevthedev has quit [Ping timeout: 252 seconds]
oscarvarto has joined #nixos
kenshinC1 has quit [Ping timeout: 252 seconds]
johanot has quit [Quit: leaving]
stphrolland has quit [Ping timeout: 252 seconds]
mkoenig has quit [Remote host closed the connection]
<oscarvarto>
Hi! I configured vscode-with-extensions. I added ms-python.python extension and VSCode shows it is "installing" the extension. But it isn't doing anything :(
<oscarvarto>
Anyone else experiencing this? Is it a known problem? Or how can I debug the installation?
mkoenig has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
rprije has quit [Remote host closed the connection]
<tobiasBora>
Baughn: the wiki says that zfs recently included a big PR to move to a new encryption scheme, and I wanted to know if 18.03 uses this new encryption, or if I'll need to migrate in 2 months
trevthedev has joined #nixos
tertl3 has joined #nixos
sb0 has quit [Ping timeout: 252 seconds]
sb0 has joined #nixos
<Baughn>
Ah. I don't know.
lopsided98 has quit [Quit: Disconnected]
acarrico has joined #nixos
lopsided98 has joined #nixos
lopsided98 has quit [Remote host closed the connection]
<tobiasBora>
ok thanks
lopsided98 has joined #nixos
<tobiasBora>
Does anyone knows here if nixos provides a way to boot from an ISO? Something like the iso-scan/filename=$isofile in ubuntu: iso-scan/filename=$isofile
tzemanovic has joined #nixos
<tobiasBora>
of the findiso=$iso_path of Debian
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<oscarvarto>
Help! How can I compute the sha256 for a vscode extension?
<{^_^}>
[nixpkgs] @ashgillman opened pull request #46125 → python.pkgs.nipype: Futures is python 2 only. Also fix building. → https://git.io/fAEft
<makefu>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
sbdchd has quit [Remote host closed the connection]
<JonReed>
oscarvarto: When the build fails it shows which sha it expects
<elvishjerricco>
gchristensen: Ping
<JonReed>
oscarvarto: If you know url or path, then `nix-prefetch-git <url>` or for file `nix-prefetch-url file:///home/...`
<elvishjerricco>
tobiasBora: You can replace `installation-cd-minimal.nix` with any NixOS module that has that file in its `imports`, if you want custom configuration in the live CD
shymega has joined #nixos
<oscarvarto>
JonReed, Thanks!
Ariakenom has quit [Read error: Connection reset by peer]
sbdchd has quit [Ping timeout: 244 seconds]
<tobiasBora>
elvishjerricco: Well, the thing is that I've no idea how I could add an option to the kernel to deal with findiso stuff...
Growpotkin has joined #nixos
<Growpotkin>
hey has anyone gotten ghci with color working with nix-shell?
Fare has quit [Ping timeout: 272 seconds]
stepcut has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Client Quit]
<elvishjerricco>
tobiasBora: Can't say I know what findiso is
kenshinC1 has quit [Ping timeout: 240 seconds]
grp has joined #nixos
<oscarvarto>
JonReed, do you know why ms-python.python extension doesn't finish installing? Maybe because it cannot install dependencies?
<elvishjerricco>
Growpotkin: It's always worked out of the box for me
<JonReed>
oscarvarto: Can you paste somewhere the output when you try to build?
<grp>
clever: ping
baimafeima has quit [Quit: Leaving]
<tobiasBora>
elvishjerricco: Well if I understand correctly, when you boot on a given os, you run a kernel and an initramfs. Then, to actually run the real OS, the kernel needs to find the full OS tree, so usually you provide the partition on which the OS is located using root=... . But in my case, I'd like to avoid to burn the iso to an actual partition, and I'd like to simply copy/paste the iso on my key. So I can't use
<tobiasBora>
anymore root=LABEL=... because the real OS is not on a partition anymore, but inside an iso key. What most distro do, if I understand correctly, is that they add an option that replace root=... with the equivalent functionality, but for iso, so instead of specifying a partition, you specify a file: findiso=<put here the iso name>.
trevthedev has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
<elvishjerricco>
tobiasBora: And what's wrong with the `installation-cd-minimal.nix`?
<Growpotkin>
elvishjerrico: do you include "ghci-pretty" in ghcWithPackages ?
trevthedev has joined #nixos
trevthedev has quit [Changing host]
trevthedev has joined #nixos
grp has quit [Quit: box shutting down...]
<tobiasBora>
elvishjerricco: well I don't know if there is an option like "findiso" in nixos, as every OS seems to have it's own definition... If you tell me that installation-cd-minimal.nix is the solution, it would be great, but then what's the name of this option to provide an iso instead of a partition, and how do you use it?
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<elvishjerricco>
tobiasBora: I guess I'm still not really following what you're goal is... If you're just looking to make your own live CD, then `installation-cd-minimal.nix` is what you're looking for.
<tobiasBora>
elvishjerricco: installation-cd-minimal.nix will provide me a .iso right?
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #46127 → gcc-*: Clean up crossStageStatic logic → https://git.io/fAEUi
<elvishjerricco>
Yea
<Growpotkin>
elvishjerricco: so how did you go about it? I think i'm just missing something subtle
<elvishjerricco>
Growpotkin: I thought you were just talking about the default colors in GHCi. I've never had color problems with anything I've used. I don't know what ghci-pretty is
<tobiasBora>
elvishjerricco: then the usual way to use this .iso is to burn it on a usb stick/CD/... right?
trevthedev has quit [Ping timeout: 240 seconds]
<elvishjerricco>
Yea
trevthedev has joined #nixos
trevthedev has quit [Changing host]
trevthedev has joined #nixos
<tobiasBora>
elvishjerricco: Now, what happen if I don't want to burn it on a usb stick, but instead of burning, I just want to copy/paste the .iso into the filesystem (say FAT32) of the usb key, manually install grub on this usb stick, and ask to grub to start this .iso using more or less the same menuentry as the one provided inside the .iso?
<elvishjerricco>
Oh! Yea I have no idea :P Sorry
cryptix has quit [Remote host closed the connection]
<tobiasBora>
ahah no problem ;)
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kwork has quit [Ping timeout: 240 seconds]
<tobiasBora>
Is there a list of all the options that the NixOs linux kernel accepts? (like nomodeset, root=...)
acarrico has quit [Ping timeout: 244 seconds]
vaibhavsagar has quit [Read error: Connection reset by peer]
<makefu>
maybe someone else has a fantastic easy idea to unfuck your store but i think it is easiest to remove it in the installer but keep your current configuration.nix
<makefu>
an installation is generally quite fast because your configuration.nix essentially contains everything which makes up your system
oscarvarto has joined #nixos
hxrts_ has quit [Ping timeout: 244 seconds]
sbdchd has joined #nixos
bgamari has joined #nixos
<oscarvarto>
JonReed, I don't get any error messages. But when I fire `code`, it always shows to be "Installing" ms-python