<{^_^}>
[nixpkgs] @Gonzih opened pull request #61065 → doge: Init at 3.5.0 → https://git.io/fjcTh
esmerelda has joined #nixos
Rusty1 has joined #nixos
schjetne has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjckv
aanderse has joined #nixos
dbmikus has joined #nixos
buffet_ has joined #nixos
buffet has quit [Ping timeout: 258 seconds]
dbmikus has quit [Ping timeout: 246 seconds]
ddellacosta has quit [Ping timeout: 246 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
kyren has quit [Remote host closed the connection]
kyren has joined #nixos
Rusty1 has joined #nixos
thomashoneyman has joined #nixos
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sheeldotme has joined #nixos
thomashoneyman has quit [Client Quit]
thomashoneyman has joined #nixos
mexisme has joined #nixos
thomashoneyman has quit [Client Quit]
thomashoneyman has joined #nixos
thomashoneyman has quit [Client Quit]
ddellacosta has joined #nixos
thomashoneyman has joined #nixos
lovesegfault has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<li_matrix>
im getting a lot of broken cargo sha's on few days old master
<li_matrix>
rust-cbindgen, exa and rigpreg so far
<li_matrix>
broke sometime in last few weeks (that was how long since my last rebase)
<maurer>
li_matrix: It may or may not be appropriate to your usecase, but evaluate the mozilla overlay. It has made my rust development experience a lot easier.
<maurer>
(Packaging you're still going to want to do using nixpkgs, but for dev the overlay is nice
<li_matrix>
how does that relate
Copenhagen_Bram has quit [Read error: Connection reset by peer]
<lopsided98>
li_matrix: I can't reproduce this
<li_matrix>
well, I see cbindgen is in the overlay, but not the other two packages I had problem with
<lopsided98>
I tried ripgrep
<li_matrix>
lopsided98: thanks
wfranzini has quit [Remote host closed the connection]
sheenobu has joined #nixos
wfranzini has joined #nixos
<lopsided98>
These packages are already in the binary cache, so why are you downloading the source?
<lopsided98>
What command are you running?
camsbury has joined #nixos
sb0 has quit [Quit: Leaving]
Copenhagen_Bram has joined #nixos
<li_matrix>
I dont use nixos's tree
<li_matrix>
im slowly forking
<li_matrix>
rebasing once in a while on master
<li_matrix>
I dont see why cargo would give me different shas
drakonis has joined #nixos
<li_matrix>
anyhow, fetchcargo is broken we already know that
sigtrm has quit [Remote host closed the connection]
<li_matrix>
getting proper cargo2nix is probably one of nixos' biggest potential for claiming a good chunck of rust devs
<{^_^}>
[nixpkgs] @aanderse opened pull request #61066 → pythonPackages.leveldb: init at 0.194 → https://git.io/fjckD
<camsbury>
Looking for the canonical way to use an overlay for emacsPackagesNgFor
roconnor has quit [Quit: Konversation terminated!]
ambro718 has quit [Ping timeout: 245 seconds]
<li_matrix>
maybe there was an api change in cargo but eveyone on the main tree is pulling previously derived tarballs
<kyren>
hey, I'm wrestling with a really weird problem with borgbackup, I've set up a borg configuration on a remote machine with 'services.borgbackup.jobs."backup".environment' set to something like '{ BORG_RSH = "ssh -i ${./myprivkey}"; }'
<kyren>
on that machine, if I look at the systemd service config file generated I see an Environment="BORG_RSH=ssh -i /nix/store/sha-myprivkey"
drakonis_ has joined #nixos
<kyren>
if I do systemctl show borgbackup-job-backup.service however, I see under the Environment= line, everything BUT that environment entry, and in its place I see '[unprintable]', and borg does not work or appear to see the BORG_RSH variable at all
<lopsided98>
li_matrix: I ran "nix-build -A exa.cargoDeps --check", which forced everything to be downloaded again, and the checksum matched
drakonis has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
esmerelda has quit [Ping timeout: 258 seconds]
ris has quit [Ping timeout: 260 seconds]
orivej_ has quit [Ping timeout: 252 seconds]
jackdk has quit [Quit: Ping timeout (120 seconds)]
<kyren>
okay, any value with a space in it is shown as [unprintable]
schjetne has quit [Ping timeout: 248 seconds]
<kyren>
aha, OKAY ssh won't use the private key because the permissions are wrong
MmeQuignon has quit [Ping timeout: 255 seconds]
<aswanson>
what is the best practice for setting environment variables in a shell.nix file? I'm overriding extraLibs in python3.buildEnv to get my desired python packages and thought to try exporting an environment variable by overriding python3.postBuild but not having any luck
ayerhart has quit [Read error: Connection reset by peer]
<sheenobu>
shellHook?
ayerhart has joined #nixos
ayerhart has quit [Remote host closed the connection]
ayerhart has joined #nixos
<{^_^}>
[nixpkgs] @cdepillabout opened pull request #61067 → haskell: add a callStack2nix function → https://git.io/fjcI4
Guest16 has joined #nixos
esmerelda has joined #nixos
jackdk has joined #nixos
<Guest16>
Hello, I was wondering today about a build tool based on Nix and then wondered if something like this already exists but isn't popular. Just like how nix builds system by having a single nix file and then copying relevant data to standard linux files (and the way home manager operates too), is this concept something that could be extended to a bui
<Guest16>
ld orchestatrator? Define your builds in nix but rather than copying and recreating functionality like Bazel Pants etc do, just write the relevant declarativee build files. e.g. I can say- rustProject{ packages = { name = "GuessNixOrCargo"; version = "0.1.0'; }; dependencies = [ { regex = "0.2", libc = "0.2.21" } ]; }; and this generates the appr
<Guest16>
opriate cargo file. Similar would be the way to generate maven build files or C makefiles.
<bbigras>
I'm pulling my hair out trying to figure out why some bash-completion file is not sourced. Is it supposed to work with `nix-env -i my-pkg -f ~/nixpkgs` and home-manager or only in configuration.nix?
<samueldr>
bbigras: ^ seems it would load from dirs in XDG_DATA_DIRS
<samueldr>
check if installing via nix-env fills in one of the dirs in XDG_DATA_DIRS
slack1256 has joined #nixos
lambda-11235 has joined #nixos
<bbigras>
samueldr: I just installed it with nix-env and it doesn't seem to be included in XDG_DATA_DIRS. XDG_DATA_DIRS seems to contain a lot of gnome shell stuff. I wonder if it was overwritten by gnome
<bbigras>
I think it's working but I just realized something. Someone told me to use bash-complete but that's probably only for auto complete while the program I packaged only need to set an alias and the stuff required to record the last visited directory or something like that.
slack1256 has quit [Ping timeout: 248 seconds]
schjetne has joined #nixos
Guest16 has quit [Remote host closed the connection]
mkoenig_ has quit [Ping timeout: 245 seconds]
mkoenig has joined #nixos
<lambda-11235>
Where can I find the temporary build dir for nix-build? I want to see a failed meson log.
rwe has quit []
MichaelRaskin has quit [Quit: MichaelRaskin]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mexisme has quit [Ping timeout: 252 seconds]
<Ralith>
pass --keep-failed to the build, then I think it will tell you
<Ralith>
but in any case it's /tmp/nix-build-* iirc
Copenhagen_Bram has joined #nixos
<lambda-11235>
Thanks. For some reason I skipped over that option in the man page.
ardumont has quit [Quit: WeeChat 2.2]
o1lo01ol1o has joined #nixos
justanotheruser has quit [Ping timeout: 250 seconds]
jasongrossman has joined #nixos
schjetne has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Ping timeout: 250 seconds]
justanotheruser has joined #nixos
mexisme has joined #nixos
domogled has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #61069 → public-sans: init at 1.002 → https://git.io/fjcLB
esmerelda has quit [Ping timeout: 248 seconds]
mexisme has quit [Ping timeout: 252 seconds]
<jackdk>
anyone know the python ecosystem? I managed to push #60456 along a bit more but it needs something else to get over the line.
<{^_^}>
[nixpkgs] @Mic92 pushed to master « python.pkgs.imread: inherit native libs on callsite »: https://git.io/fjctS
dbmikus has quit [Ping timeout: 248 seconds]
wfranzini has joined #nixos
mmercier has joined #nixos
wfranzini has quit [Client Quit]
wfranzini1 has joined #nixos
tdammers has quit [Ping timeout: 245 seconds]
mmercier has left #nixos [#nixos]
tdammers has joined #nixos
mmercier has joined #nixos
ardumont has joined #nixos
dansho has joined #nixos
wfranzini1 is now known as wfranzini
schjetne has joined #nixos
ardumont has quit [Remote host closed the connection]
sb0 has joined #nixos
drakonis_ has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed 311 commits to staging-next: https://git.io/fjcqt
civodul has joined #nixos
knupfer has joined #nixos
gal_bolle has joined #nixos
jasongrossman has joined #nixos
johanot has joined #nixos
mmercier_ has joined #nixos
mmercier has quit [Ping timeout: 245 seconds]
mmercier_ is now known as mmercier
mkoenig has joined #nixos
lambda-11235 has quit [Quit: Bye]
mexisme has quit [Ping timeout: 252 seconds]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
anon has joined #nixos
anon is now known as Guest76674
linarcx has joined #nixos
mexisme has joined #nixos
hio has joined #nixos
knupfer has quit [Ping timeout: 245 seconds]
gal_bolle has quit [Ping timeout: 252 seconds]
hedning_ has joined #nixos
<{^_^}>
[nixpkgs] @rasendubi merged pull request #61043 → awesome: refactor LUA_PATH env var and don't expose it at runtime (19.03 branch) → https://git.io/fjcqQ
<{^_^}>
[nixpkgs] @rasendubi pushed 2 commits to release-19.03: https://git.io/fjcq7
<johanot>
Aw.. I miss an ergonomic (though safe) way of injecting a substituter in a shell.nix for building a shell-env. Obviously users who enter the shell would have to be prompted to accept using the substituter or something like that.
mexisme has quit [Ping timeout: 245 seconds]
<johanot>
like how direnv blocks environments until users actively unblock
{^_^} has quit [Remote host closed the connection]
<gentauro>
srhb: the "--no-nix-pure" seem to helped. I noticed that it was once I restarted the system (apparently quitting xmonad and restarting wasn't enough)
<drager>
Hey, I just installed a package via nix-env -iA nixos.name but I can't uninstall it with nix-env -e nixos.name. What's up? Does it have another name for uninstall?
jasom has quit [Ping timeout: 258 seconds]
ilikeheaps has joined #nixos
<ivan>
drager: yeah, name
oida has quit [Remote host closed the connection]
oida has joined #nixos
jasom has joined #nixos
Makaveli7 has joined #nixos
knupfer has joined #nixos
<bahamas>
so the pattern `callPackage package.nix {}` calls `package.nix` with all the packages available in nixpkgs, right?
<arianvp>
Yes
<bahamas>
what determines the version of a package in nixpkgs?
jasongrossman has quit [Ping timeout: 248 seconds]
Anton-Latukha has joined #nixos
MmeQuignon has joined #nixos
thc202 has joined #nixos
jasongrossman has joined #nixos
Glider_IRC__ has quit [Ping timeout: 246 seconds]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
wirew0rm has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
linarcx has quit [Ping timeout: 245 seconds]
wirew0rm has joined #nixos
<drager>
ivan: So... How do i find out the name? So I can uninstall it?=
<ivan>
nix-env -q
elibrokeit has quit [Quit: A random quit message]
elibrokeit has joined #nixos
talqu has joined #nixos
linarcx has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.4]
<rauno>
Hey, any one has tried fully unattended nixos ipxe setup ?
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
pie_ has joined #nixos
buffet_ is now known as buffet
knupfer has quit [Remote host closed the connection]
pie___ has joined #nixos
knupfer has joined #nixos
<bahamas>
where can I find the channel that has a specific version of a package?
<{^_^}>
[nixpkgs] @DIzFer opened pull request #61080 → jellyfin: remove assertion if emby enabled: no emby module exists → https://git.io/fjcYX
WizBright has quit [Ping timeout: 245 seconds]
pie_ has quit [Ping timeout: 248 seconds]
knupfer has quit [Ping timeout: 246 seconds]
ubert has joined #nixos
cfricke has quit [Quit: WeeChat 2.4]
<dfordivam>
Hi.. is it possible to determine which derivation created a store path.. trying to figure out the hash of source which built the thing running on server..
elgoosy has joined #nixos
bahamas has quit [Ping timeout: 258 seconds]
dansho has quit [Quit: Leaving]
<tilpner>
dfordivam: nix-store --query --deriver
Jetien_ has joined #nixos
<Unode>
hi all, I'm trying to package an R library that is currently only available through github. In the repository most packages come from CRAN or BioConductor. Is there any template (online, blog, ...) or convenience function to add R packages from github? Thanks
<kaaninho>
Hello! I hope I am not in the wrong channel. I've got an issue with 'nix-shell' command. Everytime I use it, get this error message in the end: "mv: target ''$'\342\201\223''/.Trash' is not a directory".
<kaaninho>
I use a Macbook
<betaboon>
I'm running into "failed building wheel for ..." due to "ZIP does not support timestamps before 1980". I tried using `SOURCE_DATE_EPOCH=315532800;` which seemed to work a while ago, but doesnt resolve the problem today. any suggestions ?
<betaboon>
kaaninho: maybe something in your bashrc ?
fenedor has quit [Read error: Connection reset by peer]
<kaaninho>
betaboon: wow, thank you, indeed that was the problem, I had an alias that failed in some weird fashion... How did you now?
cmacrae has joined #nixos
<betaboon>
kaaninho: nix-shell uses bash as its shell, and 'everytime i use it' somewhat sounded like bashrc related :D
psyanticy has joined #nixos
<kaaninho>
betaboon: well, thank you again! Was hard to search for... . Good day!
toppler` has quit [Read error: Connection reset by peer]
toppler` has joined #nixos
<Unode>
If rPackages is specified in pkgs/top-level/all-packages.nix as 'callPackage ../development/r-modules and ../development/r-modules/default.nix contains buildRPackage shouldn't calling rPackages.buildRPackage work?
<Uniaika>
I have written a shell.nix to build an Elixir project. However, the Erlang VM complains about LC_ALL being unset (or set to C)
<Uniaika>
I tried putting some `export LC_ALL=en_US.UTF-8' in shellHook
<Uniaika>
but how I get this error when I enter the shell with `--pure`: bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
<Uniaika>
I have seen some people on GitHub talking about installing `glibc-locales` in the shell file, but I get "undefined variable 'glibc-locales'"
<Uniaika>
so uh, I don't really know what my other options are at this point
<{^_^}>
[nixpkgs] @etu merged pull request #61080 → jellyfin: remove assertion if emby enabled: no emby module exists → https://git.io/fjcYX
<Uniaika>
thanks! I was just confused that I could install `glibc-locales` but had to put `glibcLocales` in the nix file :)
<Uniaika>
(also, my environment variables were in a shellHook, which was really not good)
<qyliss^work>
If you're installing with `nix-env -i`, that searches based on package name, rather than using an attribute. `nix-env -iA` is more like what a nix expression does.
<qyliss^work>
(It's also much faster and less prone to giving you the wrong package, because two packages can share a name)
silver has joined #nixos
<AlexRice[m]>
Wouldn't it make a lot more sense if the attribute name was equal to the package name wherever possible?
<qyliss^work>
really package name shouldn't matter at all
Guest76674 has quit [Quit: WeeChat 2.4]
<qyliss^work>
but yes, in most cases going forward they are equal
<Uniaika>
thanks qyliss^work :)
<qyliss^work>
I think some time ago dashes weren't supported in attribute names, so you end up with a lot of camel-cased packages
<AlexRice[m]>
ah I see
<Uniaika>
I was indeed mistaking names and attributes
<AlexRice[m]>
I have only seen it on packages with dashes now I think about it
hamishmack has joined #nixos
fendor has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh merged pull request #61056 → qscintilla: fix dylib names on Darwin → https://git.io/fjcsT
fendor has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed commit from @thefloweringash to master « qscintilla: fix dylib names on Darwin »: https://git.io/fjcsk
<Twey>
But the name is used to identify the PyPI package, so that remains the same as the actual Python package name
<rauno>
Hey gchristensen yes
<rauno>
had some problems with building the image but seems to work now, has outdated nixos nix-channel
<gchristensen>
interesting, okay cool
<gchristensen>
that repo builds like a dozen images -- for the different Packet.net host types. what are you targeting?
cfricke has joined #nixos
<rauno>
actually im not targeting packet.net at all, i am just looking for a good solution to setup some bare metals servers using ipxe and fully automated installs
<rauno>
your repository seemed most relevant and up-to-date
<gchristensen>
yeah cool
<gchristensen>
I have a branch here I forgot to push, too :x
<rauno>
probably just need to cut out those packet.net related stuff ..
srid has joined #nixos
<gchristensen>
yeah -- maybe it would be interesting to make a minimal version
<gchristensen>
is this hw inside your datacenter? I'm interested in your use case, environment, etc. I think nixos on bare metal is really cool
<rauno>
okay, this looks more promising, can now make the needed modifications to get it working
<gchristensen>
cool :) yeah and probably delete a good lot of code :)
<rauno>
probably indeed, some of it can be reused, for example the metadata fetching and so on
<gchristensen>
there are some changes I would make to it, which you might want to consider
<gchristensen>
for example, generating only 2 files: one of intrinsic hardware-specific stuff at hardware.nix, and a second of authentication stuff -- the SSH keys -- this way automation can more easily ignore the authentication bits
<rauno>
make sense, how is the hardware part generated at the moment ?
<gchristensen>
there end up being several files in /etc/nixos/packet/
<rauno>
Okay, they are fixed then
<gchristensen>
but some of the metadata info is instrinsic to the system, but mixed up with SSH keys
<Twey>
Where is newScope defined? I can't seem to find it again
<gchristensen>
maybe create a server at packet.com to take a look at how it works in production
<yorick>
gchristensen: are there any plans to get the spin-up time lower and the deployment failure count lower? it's a bit annoying to have to wait >1 hour to get a functinional server
<Twey>
I'm confused about this output
<Twey>
Shouldn't the `newScope` passed to b.nix include the `y` argument I give to `newScope` in a.nix?
<gchristensen>
yorick: for NixOS on Packet ?
<yorick>
gchristensen: yes
<gchristensen>
yorick: interesting. I spawn new systems ~daily and they take ~10min and nearly never fail
<gchristensen>
yorick: what kind of instance, and what region?
<yorick>
gchristensen: last month was ams, c1.small.x86, 4 failures in a row. I don't know if it's nixos-related
bitmapper has joined #nixos
<gchristensen>
wow
<yorick>
gchristensen: I had a c2.medium.x86 fail to spawn at one time
<bitmapper>
does anyone know what's going on with qtquick and qt512 on nix?
<yorick>
gchristensen: we were talking to Mo at the time but the packet slack deleted the chat history now
<capnp>
Hello, sorry for a beginner question, but I am trying to modify "propagatedBuildInputs" using overlay and this is what I get: http://dpaste.com/15W7HZG#wrap
<bitmapper>
it seems like qt5Full is missing a bunch of files from qt512.qtbase
sb0 has quit [Quit: Leaving]
<yorick>
capnp: use overrideAttrs instead of override, here
araadkins has joined #nixos
<capnp>
yorick: I will try
<araadkins>
I'm setting up a new machine, and I figured it would be a great chance to manage my tools configuration with Nix. Is there a recommended blog post or tutorial for getting started? I've been finding the manual a touch terse
<emilsp>
wow, rebuilding binutils does take a while
<{^_^}>
[nixpkgs] @costrouc opened pull request #61085 → pythonPackages.datasette: init at 0.27 → https://git.io/fjcZ0
drakonis_ has joined #nixos
cfricke has quit [Ping timeout: 244 seconds]
bitmapper has quit [Ping timeout: 268 seconds]
bitmapper has joined #nixos
<bitmapper>
hmm
toppler` has quit [Read error: Connection reset by peer]
toppler` has joined #nixos
<eliasp>
still/again struggling with modifying xorgserver in my overlay... "error: syntax error, unexpected URI, at /etc/nixos/overlays/xorgserver.nix:8:9" - expression: http://ix.io/1IiI
<Twey>
gchristensen: I still don't really understand how `newScope` gets into <nixpkgs>. I thought maybe `newScope` was called on `pkgs` somewhere, but it doesn't look to be the case
<bahamas>
infinisil: thanks. no one answered the question previously :)
<infinisil>
bahamas: The best thing you can do is just search through the channels to find the one you want (if it exists at all)
<bahamas>
infinisil: how do I do that?
ee1943 has joined #nixos
<bahamas>
maybe it's better to state my actual problem, in case there is a different, better solution
<Twey>
infinisil: Ahh, nice trick, thank you!
<immae>
bahamas: the github repository is where you can see the evolution of a given package, I don’t know of any access to easy access to a "channel history"
<{^_^}>
[nixpkgs] @globin opened pull request #61086 → Batch of cross compilation fixes → https://git.io/fjcnr
<pie___>
maybe git has some feature that can search through history
<pie___>
bahamas, do you need an older or newer version
<Synthetica>
pie___: It has, `git log -S term` for commit titles, `git log -G term` for commit content
<infinisil>
bahamas: And if the latest version doesn't have what you want, you can use gchristensen's channel history here: https://channels.nix.gsc.io/
<Synthetica>
(I only know this because I had to use it like 30 minutes ago :P)
<bahamas>
pie___: I need an older version
<pie___>
thats what i figured. I guess I would try searching the git history then and use a pinned version of nixpkgs to install it
<Synthetica>
bahamas: You could also pin a specific commit if it isn't in any channels, you'll probably have to compile it yourself tho
<pie___>
or forward port it if possible
<immae>
bahamas: then git is the way to go, once you find the package you can click on "history" on github (if you don’t know how to use git tools, which are usually more efficients)
<pie___>
bahamas, is there anything (like dependencies) stopping you from just overriding your package version?
<araadkins>
So I'm trying to work out how I could use nix to replace homebrew, but I don't want to `nix-env -i <foo>` the whole time. Instead, I'd like to have a configuration file that I can pass to `nix-env -f <file> -i`. Does anybody have an example of such a setup that is relatively simple to understand?
bgamari has quit [Ping timeout: 252 seconds]
<infinisil>
,declarative araadkins
<{^_^}>
araadkins: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<bahamas>
pie___: that's what I wanted to ask. I'm using this project
<bahamas>
this whole thing is a combination of nix + docker + stack (haskell build tool). the problem is that stack calls itself and discovers an older version because of the pinned nixpkgs. should I just try to remove the pinned nixpkgs?
jabranham has joined #nixos
<pie___>
no idea, thats over my head right now but maybe someone else can help
<bahamas>
I don't remember what happened. I'll try again now
<pie___>
have you checked through the readme? maybe you can get some documentation added somewhere to make sure next time the issue comes up for someone its easier to deal with
<immae>
bahamas: do you want it to "just work" (if so, as far as I can see, you can just call the right arguments and it "should" work, everything seems to be done for that), or do you want to upgrade it?
<bahamas>
immae: I want it to just work. what would be the right arguments?
<immae>
in particular the stack calling a former version of himself looks like an error in your nix-build / nix-shell arguments to me
<bahamas>
I'm just calling `stack --docker build` right now, as the README instructs
fgds has joined #nixos
<immae>
I’m not very at ease with nix-shell, but it looks like running `nix-shell` will put you in a shell where "stack --docker build" would run correctly
<immae>
Can you try it?
<immae>
To make sure you’re not "spoiled" with system dependency you can even do `nix-shell --pure`
<bwe>
What's the recommended way to build a Haskell package in nixOS? I am coming from stack.
<bahamas>
immae: I need to run nix inside docker, because it specifies a dependency (hadoop) that is not supported on OS X
<bahamas>
immae: well, I tried that and got the error about hadoop
<immae>
ok
<bahamas>
bwe: what confuses you?
<immae>
Then I don’t know more, sorry
<bwe>
bahamas: nix-build release0.nix -- is fine. later it switches from nix-build to cabal configure. That part I don't understand.
<bahamas>
immae: can you confirm one thing though. that project depends on this Docker image https://github.com/tweag/stack-docker-nix/blob/master/Dockerfile. based on the code, the image will use the last nixpkgs, right? that means it will have available the latest version of stack, no?
johanot has quit [Quit: WeeChat 2.4]
<immae>
bahamas: yes it will use the latest nixpkgs-unstable
hex2 has joined #nixos
<bahamas>
bwe: nix-build calls cabal for you. nix-shell just drops you into a shell with all dependencies available. you then call cabal just as if you didn't use nix at all
<bahamas>
in the sense that nix provided you with the environment and you use cabal directly
fgds has quit [Quit: Page closed]
<bahamas>
immae: ok. that image calls this file from sparkle https://github.com/tweag/sparkle/blob/master/shell.nix. this file has nixpkgs pinned. I presume this is where the version mismatch for stack comes from. what do you think?
<immae>
bahamas: can you show me where the call happens?
<immae>
Since the shell.nix doesn’t have "stack" as dependency (in buildInputs) it’s very possible that it gets value from system-wide (here, the docker image)
<immae>
bahamas: can you add a "--pure" argument in that file ^ at line 27 and confirm that it won’t find stack?
justanotheruser has quit [Quit: WeeChat 2.4]
<immae>
if so, then yes the docker image has a stack corresponding to latest nixpkgs-unstable (so quite recent), and is called things from an older nixpkgs
<immae>
I don’t know the reason why the person pinned the version, probably because it was "the one with which it works". You can try both ways but downgrading the dockerfile has most success chance
<samrose>
seeking opinions on this approach to running binaries in nixos: https://github.com/holochain/n3h/blob/master/build/n3h-nix.bash it seemed in the past that folks here responded that in general nix-shell is not a good way to be running binaries. what do you think?
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #60998 → pythonPackages.worldengine: fix tests by moving nose to checkInputs → https://git.io/fjccc
<bahamas>
I just tried it now, but it's still building
<hex2>
/
hex2 has left #nixos ["WeeChat 1.9.1"]
<immae>
bahamas: error: cannot auto-call a function that has an argument without a default value ('nixpkgs')
<bahamas>
immae: sounds right.
<bahamas>
so, how do I do it?
<immae>
For a quick test, you can replace ./nixpkgs.nix by <nixpkgs> and run `NIX_PATH=https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz nix-shell`
<immae>
Or fix the ./nixpkgs.nix file to target the right version
<bahamas>
or I can just put that URL in nixpkgs.nix
<immae>
Yes
<samrose>
it seems like if someone is trying to run software by doing `GCC="$(which gcc)"` and then `GLIBC_LIB="$(nix-store --query --requisites "${GCC}" ` there is a chance that there will be more than once copy of a given lib
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #61088 → opencsg: Darwin support and tidy → https://git.io/fjccg
<samrose>
but would love your opinions on this approach here
araadkins has quit [Quit: Page closed]
hoijui has quit [Remote host closed the connection]
Cale has quit [Remote host closed the connection]
Cale has joined #nixos
esmerelda has joined #nixos
<immae>
samrose: it looks to me that nothing prevents you from writing a nix expression whose output would be a script running your `node n3h.js` yes
<samrose>
immae: are there issues you can see with people trying to run things with nix-shell in production settings?
<bahamas>
immae: for some reason the version mismatch still occurred
linarcx has quit [Ping timeout: 245 seconds]
<bahamas>
ugh, I had forgotten to bring back the line with ? import ./nixpkgs.nix
<immae>
samrose: you should ask to the people who told you not to do it, I don’t see any :) (but I’m not a big user of nix-shell so...)
<samrose>
immae: like if I am building up nixos with nix expressions, and some of the code I am running instead fires up a nix-shell and establishes and environment, and runs it in production in nix-shell in an aut updating nixos configuration, is this likely not a good practice?
<samrose>
immae: thanks for your response
linarcx has joined #nixos
<immae>
samrose: ah writing a nix expression whose job is to spawn a nix-shell running a command is a bit overkill usually
<immae>
bahamas: I’m surprised it compiles at all if you don’t specify a nixpkgs argument
<bahamas>
immae: maybe stack passes the nixpkgs argument when running stack build. I also got the error you mentioned above, but only when I ran `nix-shell` directly
<qyliss^work>
More generally, you can search the nixpkgs repo for the package name to find the file it's defined in, then search for the file name to find out what attribute name is used for it.
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @winpat to master « termshark: init at 1.0.0 (#60417) »: https://git.io/fjcWF
<immae>
bahamas_: good luck
<gchristensen>
I sorta wish stdenv.mkDerivation didn't use @args to collect all env vars, and instead segregated them in to an `env` argument. as an example of why, I just specified `postPath` instead of `postPatch` and it isn't really possible to know that this is wrong without doing the (in this case, fairly expensive) build first
<qyliss^work>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 115
_e has quit [Quit: leaving]
<infinisil>
gchristensen: Agreed
<Twey>
gchristensen: Yes
<immae>
gchristensen: well, usually I only find out at runtime when I see that <my super feature hidden behind a flag> doesn’t work :p
bahamas_ has quit [Quit: Lost terminal]
<gchristensen>
yeah exactly
<gchristensen>
there you go, it'd make .override vs. overrideAttr confusion more obvious
<Twey>
I guess it's inherited from `derivation` in Nix
<Twey>
Which does the same thing
<gchristensen>
yeah, which I think is generally fine
_e has joined #nixos
<Twey>
Well, it has the same problem… if you typo `agrs` you're not going to find out until later
<gchristensen>
not sure it is the same problem
<Twey>
gchristensen: Why's that?
alexherbo2230 is now known as alexherbo2
<ldlework>
Windows support when?
<gchristensen>
ldlework: we already run on WSL okay
<gchristensen>
and volth and angerman does cross-compilation to windows
sestrella has joined #nixos
<ldlework>
hehe
<ldlework>
i am really missing nix on windows
<gchristensen>
Twey: well with one you're doing essentially { some, params } @ args: derivation ({...} // args) so you're not likely to typo `args` or mess up that part of the development
<gchristensen>
whereas postPatch is part of a defined API, and arbitrary environment vars are a grab-bag
<gchristensen>
and since they're in the same structure (`@args`) you can trivially make the name mistake
srid has joined #nixos
mexisme has joined #nixos
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Twey>
gchristensen: I mean, `derivation` also has such a defined API, with keys like `builder` and `args`. So if you (hypothetically) type `derivation { builder = …; arggs = [ … ]; }` you'll run the builder normally but without its args — for the same reason, because there's a defined API embedded into an arbitrary key/value set
<gchristensen>
ah sure
<angerman>
gchristensen, ldlework: to be fair we mostly focus on cross compiling haskell to windows. And there has been a lot of work by Ericson2314 (I believe) to provide nixpkgs a good cross compilation support. These days we mostly focus on our haskell.nix infrastructure and keep adding cross compilers (mostly towards the web right now) to it. blackriversoftwa is adding arm right now though.
<gchristensen>
only very few people type the dark book's words `derivation { ...` in to an editor though ;)
bodqhrohro_ has joined #nixos
<capnp>
Why super.python27Packages doesn't have overrideScope'? What can I use instead?
<pie___>
capnp, does it have .extend maybe?
<bodqhrohro_>
Can I query the dependencies of given installed package with nix-env?
mexisme has quit [Ping timeout: 246 seconds]
<pie___>
gchristensen, i think i complained about phase presence problems a few times
<Twey>
gchristensen: Yeah, but for historical/ecosystem reasons, not for Nix reasons :) `derivation` isn't a hidden detail, it has a user-visible API that nixpkgs wrapped for convenience
<Twey>
gchristensen: It also has impacts on the higher-level APIs, though — so you can't ever pass an environment variable called `args`, for example
<gchristensen>
there is no reason that stdenv.mkDerivation must follow «derivation»'s API
<capnp>
pie__: sorry I can't find documentation on extend, do you have some example?
<Twey>
No, indeed. But there's also no reason that `derivation`'s API shouldn't be improved for the same reasons. And if you did improve `mkDerivation` there would still be some confusing things — like if you said `mkDerivation { env.args = "hello there"; }` you might get confused by the results. :)
<pie___>
where overlay_goes_here is of the form self: super: { stuff = foo; }
<pie___>
fix all the historical raisins
<pie___>
hysterial raisins i mean
<pie___>
nevermind
ottidmes has joined #nixos
<Twey>
pie___: Hehe, humorous typos are hard!
<Twey>
(but not as hard as humerus typos)
<capnp>
pie__: I've tried this `python27Packages = super.python27Packages.extend (self: super: { });` and it tells me error: attribute 'extend' missing
<pie___>
capnp, well it was worth a shot i guess
<pie___>
capnp, btw you can use tab completion in nix repl
<Twey>
But not across hyphens :)
<capnp>
the only problem is I don't know how to use repl :(
<qyliss>
run `nix repl '<nixpkgs>'`
<qyliss>
then you can just type in expressions and see what they evaluate to
Ralith_ has quit [Remote host closed the connection]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<ottidmes>
I am going to buy myself a new laptop this week on which I will be running NixOS. I am living in the Netherlands so I prefer Dutch webshops or at least EU based companies (due to warranties / import costs and delays). What laptop would you suggest for NixOS with at least 16G of RAM? So far I have found two nice candidates https://www.tuxedocomputers.com/en/Linux-Hardware/Linux-Notebooks/Alle.tuxedo#1275,1319
<ottidmes>
(the TUXEDO InfinityBook Pro 13 v4) and Lenovo Yoga C930 (I like the idea of a 2-in-1, but not a must have). Any body experience with either of those, or suggestions for other laptops?
<goibhniu>
hyper_ch: is that the tuxedo that you have?
<capnp>
qyliss: well, launching it is easy, but then I don't know how to get self and super that I need for testing my overlays
<qyliss>
oh I see
<qyliss>
yeah, you'll need to figure out what function to use
<qyliss>
Does python27Packages.override { overrides = self: super: { /* ... */ }; } work for you?
<capnp>
qyliss: I will check
<ottidmes>
niksnut: I have considered it, but I am afraid about coil whine and I read that you have to be lucky to get one without any hardware problems, I bought another Dell XPS for my sister in law and the laptop had to be returned due to issues
<qyliss>
fwiw, I don't think that composes nicely, so eg it won't work well with multiple overlays
<gchristensen>
I guess I'm not close enough to my xps13 to hear its coil whine
<niksnut>
the wireless on the xps is also pretty dodgy
<niksnut>
other than that it's pretty good
Glider_IRC has joined #nixos
<ottidmes>
niksnut: and also ~2000 euro for 16GB model is too much for me
_e has quit [Quit: leaving]
toppler` has quit [Read error: Connection reset by peer]
toppler` has joined #nixos
dbmikus has joined #nixos
wfranzini has quit [Remote host closed the connection]
<{^_^}>
#51037 (by JonathanReeve, 23 weeks ago, closed): Sound doesn't work properly: subwoofer not recognized
orivej has joined #nixos
<qyliss^work>
capnp: that's... odd
[Leary] has joined #nixos
<pie___>
anyone know how to solve "fatal: unable to access 'https://internal.domain/owner/repo/': SSL certificate problem: self signed certificate in certificate chain" for fetchgit?
<pie___>
lassulus, ^
Lears has quit [Ping timeout: 252 seconds]
<capnp>
qyliss^work: here is my overlay http://dpaste.com/3RF6BK9 in case something is wrong with it
<pie___>
deadloko, idk anyhting about this but a coworker solved it using that
Myhlamaeus has joined #nixos
ubert has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<qyliss^work>
capnp: are any packages you're using not being found? If not, I wouldn't worry about it -- I think it's probably some issue with that command rather than with the overlay.
<capnp>
qyliss^work: somehow 22 hundred packages get erased, including the ones that I need
<qyliss^work>
and the ones you need are definitely not accessible by their attribute path?
<{^_^}>
#3382 (by kevinburke, 4 years ago, open): Provide more assistance for users to find SSL certificates (the "unable to get local issuer certificate" problem)
<Neo--->
what would be the best way to override / prepend to the wrapper that a program has? an overlay what would prepend to install phase? or can something be done afterwards? i need to run unset SOME_ENV_VARIABLE before starting the program to make it run
<capnp>
qyliss^work: now the answer is 28
WizBright has joined #nixos
<qyliss^work>
I get the same thing
<qyliss^work>
I have no idea what's going on there, I'm afraid :/
<capnp>
qyliss^work: well, me neither :) thanks for your help!
<deadloko>
fresheyeball: try removing "source $stdenv/setup" line from your buildPhase
drakonis_ has quit [Ping timeout: 248 seconds]
sheeldotme has quit [Read error: Connection reset by peer]
<fresheyeball>
deadloko:no change
<qyliss>
Try adding NIX_DEBUG = 1 to your mkDerivation
<qyliss>
Should at least give you an idea where it's happening
<zeta>
i found: `riot-web` which is good but i am not sure about matrix protocol, is this it: `matrix-synapse` ?
<tilpner>
zeta: What do you expect "install matrix protocol" to do? Protocols aren't something you install
<tilpner>
zeta: matrix-synapse a homeserver for Matrix
drakonis has quit [Ping timeout: 248 seconds]
<tilpner>
zeta: Synapse implements the Matrix protocol, but Synapse isn't the Matrix protocol
nschoe has quit [Ping timeout: 258 seconds]
<zeta>
tilpner: well i just wanted an open source alternative to `whatsapp` and `skype`, can `riot-web` do all this as well as be used as a `chat client`(so i can switch from `weechat` to `riot`) ?
<tilpner>
zeta: You can actually use Matrix from weechat
<tilpner>
riot-web is intended to be served by e.g. nginx, and then used with a browser
<tilpner>
There is a riot electron app, but I've stopped using that
<deadloko>
fresheyeball: https://pastebin.com/3qVPnGqh i made this, then "nix-shell -E 'with import <nixpkgs> {}; callPackage ./test.nix {}' --pure", then genericBuild
<deadloko>
it compiles
<zeta>
tilpner: so what is the nixos package for that called ?
<tilpner>
zeta: What "that" are you referring to?
<klntsky>
Does cache.nixos.org store intermediate derivations used to build pkgs, e.g. files downloaded using fetch* functions?
<deadloko>
fresheyeball: but failes to install, you need to interact with $out in installPhase
<ambro718>
What is the result of defining buildCommand for mkDerivation?
{`-`} has joined #nixos
<deadloko>
fresheyeball: https://pastebin.com/BDt1PYSZ this compiles and installs successfully, command i used to build it "nix-build -E 'with import <nixpkgs> {}; callPackage ./test.nix {}'"
<zeta>
tilpner: according to the instructions i still need to use it with `riot-web` ?
sigmundv_ has joined #nixos
<tilpner>
zeta: That's referring to the submodule. I don't know how exactly the content of the riot-web package differs from it
<zeta>
tilpner: i just want a simple setup to be able use `riot` as a nix package.
<tilpner>
I can't give you that
<zeta>
tilpner: what would you recommend ?
<tilpner>
My current recommendation for Riot is to use chromium in app-mode with a hosted Riot
<tilpner>
It's easy to host your own Riot copy with your own settings, and goes along well with your own Synapse
<tilpner>
But you can also just use riot.im
<tilpner>
Yeah, it won't work without an internet connection
<tilpner>
But what were you going to do with Riot without an internet connection?
<zeta>
tilpner: if i understand correctly `riot-web` is a desktop app that connects to `riot.im`, is this correct ?
<tilpner>
No, riot-web is the files a webserver can serve to create your own riot.im clone
<tilpner>
And riot.im connects to your homeserver, e.g. matrix.org
esmerelda has quit [Ping timeout: 248 seconds]
orivej has joined #nixos
<zeta>
tilpner: so if i understand you correctly, i need to setup a `matrix home server`, then setup `riot-web` with `nginx` in order to connect to the web(riot.im) ?
<tilpner>
No, in that scenario you wouldn't connect to riot.im at all
<qyliss>
You don't need your own home server -- you can use matrix.org.
<tilpner>
Setting up a homeserver is completely optional
<tilpner>
You also don't need to serve your own Riot copy, so no need for nginx
esmerelda has joined #nixos
pie___ has quit [Ping timeout: 252 seconds]
<zeta>
tilpner: i just want a riot desktop app that automatically connects to the web so i can do things like, messaging, video chat, etc, just like whatsapp, skype and weechat ?
<tilpner>
Yes, you said as much
<zeta>
tilpner: so there is no riot app like this in nix packages ?
<tilpner>
There is none in nixpkgs
<Ralith>
tilpner: a riot package actually got merged to master not long ago
<tilpner>
Oh!
<tilpner>
> riot
<{^_^}>
undefined variable 'riot' at (string):253:1
<tilpner>
(Or just type nixos.wiki into your browser)
<tilpner>
zeta: Or press alt-L for raw mode in weechat, might help you copy the link
<{^_^}>
[nixpkgs] @FRidh pushed 65 commits to staging-next: https://git.io/fjcBo
<{^_^}>
[nixpkgs] @FRidh opened pull request #61095 → Staging next → https://git.io/fjcBK
<fresheyeball>
deadloko:I moved your code into my file
<fresheyeball>
and no change
<deadloko>
fresheyeball: that is, indeed, strange
<ottidmes>
pbb: Thanks for the suggestion I will check it out. My requirements are roughly: Good NixOS support (if e.g. a fingerprint scanner does not work, too bad, but fundamentals have to work without issue), at least 16G of RAM, at least 6 hours on accu, at least full HD display, NL or at least EU bought (due to warranties / otherwise extra painful in case of repairs), < 1500 euro
andreas31 is now known as andreas303
lordcirth__ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #61096 → cross: use newer gnu-config on iOS → https://git.io/fjcBD
<zeta>
tilpner: does anyone know when it will become stable ?
<tilpner>
zeta: October, probably. But you can use it already just fine
<zeta>
october ?
<{^_^}>
zeta: 1 minute, 9 seconds ago <tilpner> October, probably
imdoor_ has joined #nixos
<ottidmes>
pbb: the ThinkPad X230 is too low spec, my current laptop has 4GB RAM and a resolution of 1366x768 as well, but its almost 10 years old, so it would not be enough of an improvement over my current laptop
<tilpner>
zeta: Yes, unless someone backports it you need to either use it from unstable or wait until the next release, which will probably only be done in october
<pbb>
I see, I also thought I needed an upgrade and bought a ThinkPad A485, which is much better spec-wise. But in everyday usage I found myself using the X230 anyway, because it is a well-designed device in other regards
<pbb>
There are also modded X230 with FHD display and quadcore CPU soldered in :D
<pbb>
ottidmes: the end of the story is, I am selling the A485 again in favor of a modded X230. I found there is no better modern device yet. All of them have soldered ram, ssds or similar and can not be easily opened and maintained. Plus X230 has coreboot support.
<rfold>
Hi, the functions in vmTools.diskImageFuns build disk images. Are those supposed to be bootable?
<ottidmes>
pbb: the biggest problem for me would be the memory, which has become a bottleneck for productivity on my laptop. 4G RAM is enough for simple work, but not now that it will become my daily driver again
<pbb>
you can put 16GB in the X230 by removing two screws
<pbb>
but this tuxedo infinitybook doesn't look too bad either. just doubting it can reach the same ergonomic and robustness standards .
<pbb>
plus I currently have an X230t, which also has a Wacom digitizer, and I just love it
<pbb>
But otherwise I still think ThinkPad X- or T-series is the best you can get if you want a recent CPU, but they are not cheap.
<ottidmes>
pbb: interesting! I am giving it some more thought, I already found a few shops that sell the them with the option to indeed upgrade it to 16G too bad I have yet to find one with a higher reso display
sigmundv_ has quit [Remote host closed the connection]
<pbb>
the display upgrade is not quite so easy unfortunately. you can mostly get them from china.
nschoe has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
lordcirth_ has joined #nixos
<ottidmes>
pbb: I will not be doing it myself, I am not good enough with electronics for that, I will continue searching for that, but its nice to see you can get a decent laptop with 16G of RAM and and a 500G SSD for 427 euro!
<pbb>
I would always buy the device with whatever low specs it has and upgrade it. SSD is one screw, and two more screws for RAM
ambro718 has quit [Quit: Konversation terminated!]
<pbb>
I got my device for 200€ used with 4G of RAM and HDD, and replaced HDD and RAM for ~180€
<pbb>
upgrading RAM and SSD is reeeally easy on these devices. display and cpu not so much
<{^_^}>
[nixpkgs] @Lassulus merged pull request #60994 → pstree: remove and alias to psmisc → https://git.io/fjcRk
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @c0bw3b to master « pstree: remove and alias to psmisc »: https://git.io/fjcRI
<pbb>
ottidmes: the people from 51nb.com also built the ThinkPad X210 (which doesn't actually exist as an official device) with a shell from an X201 and a custom motherboard and 8th gen intel processors
ambro718 has joined #nixos
thc202 has joined #nixos
<ottidmes>
pbb: I will check it out, that would address one thing I worry about with these kind of solutions is what the next bottleneck will be and its not like my ~10 year old laptop is broken, I am just sick of its bottlenecks
<pbb>
good luck with finding one
__monty__ has joined #nixos
<pbb>
Thought about CPUs I also found out that from 3th generation up to 7th generation they didn't gain as much performance, since they focused on power saving features for thin laptops
<pbb>
8th generation got quad cores as default so that will definitely make a difference
<pbb>
new let's go back to topic ^^"
<ottidmes>
my laptop right now has a 1.3Ghz Intel dual core (pre i3/i5/i7 era) but its still holds up surprisingly well
ambro718 has quit [Quit: Konversation terminated!]
<infinisil>
Optimally there would be some way to have an alias be a full alias, where overrides propagate to the original
<sphalerite>
I'm packaging sanoid, which calls programs such as ps and zfs. I'm not sure whether to patch it to use full store paths or to use tools from PATH. Any opinions?
<infinisil>
sphalerite: If patching is easy enough I'd do that. Otherwise wrap with PATH
<sphalerite>
infinisil: upstream has hardcoded /sbin/zfs and such — I'm wondering whether to patch it to just zfs or to ${getBin zfs}/bin/zfs
<sphalerite>
infinisil: since (in the case of zfs for example) you'd probably want to use the "ambient" zfs so that it uses unstable when the system is using unstable
<infinisil>
sphalerite: So they do search for the binaries in PATH?
<infinisil>
Because only if they do you can replace it with just "zfs"
<tilpner>
sphalerite: I have a packaged sanoid around, with a module
<sphalerite>
infinisil: I presume it will when I remove the /sbin/ bit
<tilpner>
sphalerite: I was going to PR it after testing it with syncoid, but that's blocked on 0.8
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @Gonzih to master « doge: Init at 3.5.0 »: https://git.io/fjc0K
<tilpner>
sphalerite: AFAICT there's no easy way to get the user-chosen zfs tools from Nix
<infinisil>
sphalerite: I doubt they need an unstable zfs version, so the stable one would be fine in any case
glittershark has joined #nixos
waleee has quit [Quit: WeeChat 2.4]
<tilpner>
infinisil: How do the tools communicate with the module?
<sphalerite>
via /dev/zfs
<glittershark>
Hey all - just ran a fresh install including compilation from scratch and I'm getting perl/lib/Nix/Store.cc: loadable library and perl binaries are mismatched (got handshake key 0xde00080, needed 0xce00080)
<tilpner>
And that API is so stable and well-tested that you want to mix versions?
<sphalerite>
Time to ask #zfsonlinux about compatibility between different userspace and kernel module versions :)
<infinisil>
Yeah
<infinisil>
I'd think the tools are forward-compatible
<tilpner>
My patch begrudgingly uses zfs from systemPackages
<glittershark>
every command appears to be giving the above error - nix-shell, nix-channel, etc
toppler` has quit [Read error: Connection reset by peer]
toppler` has joined #nixos
<sphalerite>
tilpner: oh, hm, I just stuck a perl.withPackages (ps: [ps.ConfigIniFiles]) in hte buildInputs and used patchShebangs to get the interpreter set
alexherbo2 has quit [Ping timeout: 248 seconds]
sestrella has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #61096 → cross: use newer gnu-config on iOS → https://git.io/fjcBD
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fjc0h
zeta has joined #nixos
orivej has joined #nixos
<apeyroux>
hello i can list dir / mkdir in nix script (without shell) ?
<apeyroux>
system lib
<{^_^}>
[nixpkgs] @costrouc opened pull request #61101 → pythonPackages.tess: init at unstable-2019-05-07 → https://git.io/fjcET
<tilpner>
apeyroux: See builtins.readDir
<tilpner>
> builtins.readDir ./.
<{^_^}>
access to path '/var/lib/nixbot/state/nixpkgs' is forbidden in restricted mode
<tilpner>
... right
<apeyroux>
tilpner: ok thx
<infinisil>
Huh I thought I fixed that
orivej_ has joined #nixos
<infinisil>
> builtins.readDir ./master
<{^_^}>
access to path '/var/lib/nixbot/state/nixpkgs/master' is forbidden in restricted mode
<zeta>
what is the syntax to do multi-line comments in nix ?
<tilpner>
> /* zeta */ 42
<{^_^}>
42
<{^_^}>
[nixpkgs] @Lassulus merged pull request #61058 → Added EnableTextMode Dwarf Fortress for playing CLI → https://git.io/fjcEt
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @TrevtheForthDev to master « Added EnableTextMode Dwarf Fortress for playing CLI »: https://git.io/fjcEq
glittershark has quit [Remote host closed the connection]
* rfold
wonders if it's bad to have a build input that's a 4.4 GB file
<sphalerite>
nix might not be happy about it.
<lordcirth_>
rfold, what file is that?
zeta has quit [Quit: WeeChat 2.4]
<rfold>
lordcirth_: debian installation DVD; I want to make a Nix derivation that uses Packer to build a QEMU image, but since I can't do network access from inside a builder, I can't use the netinst CD (which is only 200 MB)
<tilpner>
rfold: You can fetchurl the netinst CD
<ejpcmac>
Hi! Is there a way in Nix to build a $PATH in a derivation from a list of packages?
<sphalerite>
huh, does debian no longer have a full CD distribution?
<rfold>
sphalerite: it does, but it's on DVD, since it doesn't fit in 700 MB
<sphalerite>
rfold: it doesn't fit on a single DVD either :)
<sphalerite>
rfold: but they used to have a bunch of CD images that covered the whole distro
<capnp>
azazel: thanks! maybe you also know a better way how to insert trace calls inside a set declaration without creating a dummy entry?
<sphalerite>
it seems that now they only have DVDs and blu-rays for the whole distro
zeta has joined #nixos
<lordcirth_>
sphalerite, that would be a *lot* of CDs these days
<rfold>
sphalerite: it's on 3 DVDs. The page says some images are missing because of too many downloads/server load. So they only offer the more popular once.
<sphalerite>
I think it used to be about 30 back then too
<lordcirth_>
I don't think many people are limited to CDs anymore.
MmeQuignon has quit [Ping timeout: 245 seconds]
<rfold>
sphalerite: speaking of which, they also have bittorrent. Would be cool if fetchurl supported magnet: uris.
<sphalerite>
rfold: looks like 14 DVDs to me
<zeta>
is there a faster way to open: `configuration.nix` and `home.nix`, like a shortcuts or something ?
<sphalerite>
I'm just surprised that there's not even a full jigdo CD distro anymore
<sphalerite>
zeta: you can define your own shell aliases if you want.
<sphalerite>
zeta: or make symlinks.
judson has joined #nixos
<azazel>
sphalerite: you can build the missing cd images with jigdo tool
<sphalerite>
azazel: there's not even a full jigdo CD distro anymore
<sphalerite>
that aside, you can get your preConfigure (probably?) more conveniently using `nix eval --raw nixpkgs.python2Packages.wxPython.preConfigure`
<sphalerite>
should be the same for most of the attrs passed to mkDerivation (or buildPythonPackage, as the case may be :) )
<ambro718>
yes, and nevermind, it's --no-build-nix
<sphalerite>
use --fast. It won't prevent it from updating nix completely, but it will make it use the current version of nix to evaluate the new system
<sphalerite>
oh, didn't know there was a more specific flag. Same caveat applies though.
<{^_^}>
[nixpkgs] @Lassulus pushed 2 commits to release-19.03: https://git.io/fjcu1
<geosmin>
thought i'd take nixos for a spin in a vm after reading one can set it up there then just transfer it over to bare metal
<geosmin>
probably being dumb, but i'm having a particularly hard time with the install, mostly just the boot partition
<sphalerite>
geosmin: you shouldn't need a boot partition for a simple bios-boot ext4-based system
<geosmin>
got the installation working succesfully but it seems /dev/sda1 instantly umounts from /boot, manually running mount with -v reports success but lsblk shows no mount, nothing in dmesg
<geosmin>
sphalerite: maybe that's my issue, went with luks+lvm
<geosmin>
no issues there but also gpt and efi
Melkor333 has joined #nixos
mexisme has quit [Ping timeout: 255 seconds]
<geosmin>
i'd like th ebase config to be easily portable
<sphalerite>
that seems like massive overkill for a VM ;)
<geosmin>
indeed, but again the idea is to then put this on bare metal
<sphalerite>
since nixos-generate-config autogenerates the mounts and such in hardware-configuration.nix, you should be able to copy out the configuration.nix and have nixos-generate-config make a new one for the luks and LVM stuff
sestrella has joined #nixos
<sphalerite>
qemu also doesn't use EFI firmware by default, and that has a lot of influence on the details of the partitioning
cyphase has joined #nixos
mexisme has joined #nixos
<sphalerite>
so I'd suggest leaving all the luks+lvm stuff for when you want to try it on bare metal, and play around with getting user-level software/services configured, to see if nixos is to your taste :)
<geosmin>
as familiar as i feel with linux, this is all very strange
Guest71290 has quit [Quit: WeeChat 2.4]
<geosmin>
so just to make sure i understand, partitioning and whatnot are subject to hardware-configuration.nix and trivial to adapt later?
<qyliss>
hardware-configuration.nix _describes_ your partitions, but doesn't create them
<geosmin>
no, of course
<qyliss>
This is unlike most of the rest of NixOS
hex2 has joined #nixos
<geosmin>
should i still set up lvm?
<qyliss>
If you change them later, you just run nixos-generate-config and hardware-configuration.nix will be regenerated
<infinisil>
I suggest only to fumble with disk layout when you actually install it on hardware
<geosmin>
so so one big unencrypted dos partition, then create the new schema on real hardware later and setup hardware-configuration.xml?
<geosmin>
right
<infinisil>
".xml" >.<
wfranzini has quit [Remote host closed the connection]
<geosmin>
so two naive questions: if i plan to use sway, can i just specify that package and the deps are pulled? how are configs handled? (ie. ~/.config/termite/config)
<hex2>
hey all. somebody tried to install jira?
wfranzini has joined #nixos
civodul has quit [Ping timeout: 258 seconds]
<geosmin>
infinisil: oops, .nix
<geosmin>
i saw some docs on setting up x, not so much for wayland + sway
<sphalerite>
hex2: I think my company is running jira on nixos, not sure though
<geosmin>
i guess i should start by asking if nixos makes sense on the desktop, or if it's more server focused
<tilpner>
geosmin: I accumulated this uglyness before I switched back to X. Maybe it helps you a little: https://tx0.co/7S7
<hex2>
I'm trying to install a jiru on them. however, I am a novice and do not quite understand which path will be the most correct for this.
<qyliss>
geosmin: lots of people use NixOS on the desktop
<geosmin>
tilpner why the switch back?
<qyliss>
For sway, you just do `programs.sway.enable = true' :) nice and easy
knupfer has quit [Ping timeout: 248 seconds]
<tilpner>
Oh, there's a module now?
<tilpner>
Great, use that
<qyliss>
has been for ages, but for a long time it was super outdated, because we were asked not to package sway RCs
<qyliss>
But now that Sway 1.0 is out that isn't a problem any more
<geosmin>
how is going from init to a sway desktop handled?
mwilsoncoding has quit [Quit: Page closed]
<qyliss>
Your shell profile usually
<gchristensen>
`exec sway -c /etc/sway/config` is how I do it
<qyliss>
Or you just run that
<pbb>
Oh I have to try sway again. I used it back before 1.0 for quite some time but it started crashing my sessions randomly.
zeta has joined #nixos
<qyliss>
You can configure your shell profile to exec sway iff it's on TTY1, and then you automatically get sway on boot but can still get to a VT if you need it.
<qyliss>
I've never had sway crash on me
<geosmin>
i guess i'm asking what's analogous to having a getty autologin, then .bash_profile launching sway
<gchristensen>
it made most of my programs less usable, but hotplugging monitors works and that was a worthwhile trade for me
<zeta>
how do i fix a collision ?
<geosmin>
i'm not sure how much lives in the nixos config and how much is done as elsewhere
<hex2>
1
<geosmin>
pbb: sway's been rock solid, it's fantastic
<pbb>
qyliss: back then it reliably segfaulted when I tried to exit it gracefully
<geosmin>
no screen tearing is nice
<sphalerite>
geosmin: this should live in nixos config really IMHO, it's just not been implemented yet :)
<infinisil>
Now that y'all are talking about sway I might just flip the switch and try it myself
<pbb>
I used to use qutebrowser a few months ago and always had to set some funny-named env variable to make that work
<zeta>
i tried installing deadbeef in home.nix and a collision happened
<qyliss>
So do that, and then put that line in your shell profile, and then you're good
<geosmin>
qyliss: the normal way, or?
<qyliss>
oh
<pbb>
I think qutebrowser is the only blink-based browser that works?
hex2 has quit [Quit: WeeChat 1.9.1]
<zeta>
how do i fix a collision ?
<qyliss>
geosmin: services.mingetty.autologinUser
<pbb>
anyways I came here for an issue I had when trying to cross-compile for armv7l. the gcc toolchain failed to build.. https://img.pbb.lc/id/MQgT9GducAVbgtXf
<qyliss>
Set that to whatever your username is
<pbb>
(I wanted to build nodejs for my vacuum)
<pbb>
internet of shit and so on
zeta has quit [Quit: WeeChat 2.4]
<catern>
is there a way to get the url being fetched out of a fetchurl derivation? ".url" is not present
<geosmin>
qyliss: thanks
knupfer has joined #nixos
<sphalerite>
pbb: hm, there's a toolchain for a "standard" armv7l nixpkgs in the official binary cache, maybe try using that setup?
<pbb>
how would I do that?
<pbb>
I am using nixpkgs from the unstable channel without modifications
<{^_^}>
[nixpkgs] @rycee pushed commit from @adisbladis to master « gpsbabel: 1.5.4 -> 1.6.0 »: https://git.io/fjczs
<geosmin>
naive question: shouldn't things like boot.loader.grub.device be in hardware-configuration.nix?
<samueldr>
hardware-configuration is more of a descriptive "what's your system looks like"
<gchristensen>
hardware-configuration.nix is strictly auto-generatable
<qyliss>
no, because that's not something that can be inferred automatically
<samueldr>
something that could be inferred for defaults is "was the boot UEFI or Legacy" though
knupfer has quit [Ping timeout: 248 seconds]
ris has joined #nixos
<sphalerite>
that's the sort of thing you don't want to override later on though
<sphalerite>
so it's something to put in the template configuration.nix (and that is what generate-config currently does), not hardware-configuration.nix
Ariakenom has quit [Quit: Leaving]
civodul has joined #nixos
<pbb>
sphalerite: somehow it's still trying to build the toolchain
<pbb>
but failing with a different error
<sphalerite>
pbb: hm then it's broken on current unstable
<sphalerite>
pbb: you may want to try 19.03 (just add -I nixpkgs=channel:nixos-19.03)
<geosmin>
that makes sense, thanks
<pbb>
yup I'll try
<sphalerite>
pbb: oh wait no
<sphalerite>
pbb: the toolchain is fine, it's just node that's failing to build now
<geosmin>
so did a simple install on /dev/sda1. upon reboot init seems to freeze on Found device /dev/vboxguest, also seeing the kernel output "...unreliable DMA position..."
<pbb>
oh I see, I just looked at the last part of the package name
<pbb>
hmpf
<pbb>
why is it trying to use python >.>
<{^_^}>
[nixpkgs] @adisbladis opened pull request #61104 → nixos/plasma5: Remove phonon-backend-gstreamer pinned to Qt 5.6 → https://git.io/fjczr
<sphalerite>
as part of the build system
__monty__ has quit [Quit: leaving]
esmerelda has quit [Ping timeout: 248 seconds]
<sphalerite>
probably
<geosmin>
hmm, might be for the same reason why init from the live iso also fails without nomodeset
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @andywhite37 to master « rambox: 0.6.6 -> 0.6.7 »: https://git.io/fjczX
<geosmin>
from the live iso, if i mount /dev/sda1, edit /mnt/etc/nixos/configuration.nix, then run nixos-rebuild switch, is that being done on the live session or the mount?
<qyliss>
that's the live session
dansho has joined #nixos
<qyliss>
nixos-install is the mount
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #61049 → doc/stdenv: put note about remote builds with breakpointHook into a <note> → https://git.io/fjcz9
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjczQ
<infinisil>
> haskell.packages.ghc844.extend # should work
<{^_^}>
<LAMBDA>
<clever>
`foo "ghc844"` also works for me
<clever>
i think the problem is that `foo = pkgs.does.not.exist` is lazy, and will fail when you try to eval foo later
<{^_^}>
[nixpkgs] @peti pushed to master « git-annex: fix sha256 hash for version 7.20190503 »: https://git.io/fjcgB
<clever>
`foo = compiler: pkgs.${compiler}` is also lazy, but when you `foo "doesnotexist"` your eval'ing it, and see the failure
<ottidmes>
for running NixOS and doing software developing, maybe having a few VMs laying around, would people suggest going for a 1TB NVMe SSD is worth 140 euro extra rather than a 500GB NVMe SSD, or would that just be wasting money in practice?
<infinisil>
ottidmes: All depends on your needs, but 140 doesn't sound like a lot for an extra 500GB, so I'd go for the 1TB :)
<clever>
ottidmes: my main dev laptop has a `465.8G` nvme (as seen by lsblk) and it runs nixos, and has some vbox VM's for ubuntu and windows 7
<clever>
Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
<clever>
looks like they used 1000 when calling it "500gig"
imdoor_ has quit [Quit: imdoor_]
<ottidmes>
yeah, I guess you are both right, 140 is very reasonable for such an upgrade and its most likely will be overkill, but it would at least prevent me regretting it if the following years
<OmnipotentEntity>
Can someone help me troubleshoot a nixpkgs thing? I'm trying to create a new package. And for this particular software project, there is no configure, the install path is decided by the PREFIX variable. I'm trying to set PREFIX=$out in the makeFlags, but it's telling me that out isn't defined.
wfranzini has quit [Remote host closed the connection]
<clever>
OmnipotentEntity: out is a bash level variable, not a nix level variable
wfranzini has joined #nixos
<rfold>
OmnipotentEntity: You can try configurePhase = ''export PREFIX=$out'';
<OmnipotentEntity>
rfold, it retains the same shell between configuration, building and installation?
<clever>
OmnipotentEntity: yep
<rfold>
OmnipotentEntity: yes; all phases run in the same Bash script
<ottidmes>
I am now using 47G for NixOS, which is plenty but for big upgrades I have to decide fast whether I will keep it (the upgrade), because I always am left with < 3G, but since the NVMe is only one slot, if it ends up being not enough (if I go nuts with VMs or start doing other space intensive stuff), its probably better to just go the 1TB one
<clever>
Filesystem Size Used Avail Use% Mounted on
<clever>
tank/nix 98G 92G 6.3G 94% /nix
<OmnipotentEntity>
thanks, that seems to have fixed the error, I'll go back to troubleshooting for a while.
<ottidmes>
Filesystem Size Used Avail Use% Mounted on
<ottidmes>
/dev/mapper/vg-root 47G 31G 14G 70% /
<ottidmes>
thats not the right statistics, thats my whole disc, ah well
Jetien_ has quit [Ping timeout: 244 seconds]
<ambro718>
ottidmes: check your GC roots in /nix/var/nix/gcroots/ . If you have old packages in profiles or links thet will keep all their old dependencies (loads of libraries) around.
<infinisil>
clever: I see you're also in need of new disks :)
<fresheyeball>
clever:doubled checked I wrote it correctly
<fresheyeball>
sphalerite:I got it right
<infinisil>
fresheyeball: (unrelated: Are you perhaps using weechat?)
<ottidmes>
ambro718: actually having 14G available on my system means its completely clean at the moment ;) its when its stuck at 6G or something that I need to check such GC roots
<sphalerite>
ottidmes: between my music collection, work stuff, some steam games, a backup of my old laptop, I've got some 800-odd GB logical used (yay zfs compression) on my 1TB SSD
<sphalerite>
there's always stuff to fill space with :p
<ambro718>
ottidmes: anyway having 96G in /nix seems a lot
<fresheyeball>
infinisil:yes
<infinisil>
fresheyeball:In a recent update it doesn't insert a space after <nick>: anymore, ugh!
<infinisil>
s/In/Since
<fresheyeball>
infinisil: ha!
<fresheyeball>
I was wondering
<infinisil>
Glad I'm not the only one
<ambro718>
Is there any special consideration in building and booting a 32-bit configuration when I previously ran a 64-bit configuration?
<{^_^}>
weechat/weechat#1314 (by craigmaloney, 10 weeks ago, closed): Change in behavior: nick completion no longer adds space
<infinisil>
Was just searching for one, thanks
<ottidmes>
sphalerite: thats true, it depend on how much I will be using the laptop, so its probably better to get as big as possible while reasonably priced, which is the 1TB version, the 2TB cost 410 euro extra compared to the 500GB one)
<ambro718>
I did that successfully with nixops, but am wondering if it will go through with nixos-rebuild.
<pbb>
oh noes the server still doesn't boot it seems
<thoughtpolice>
matthewbauer: No clue! Maybe I should just trigger another build and roll the dice?
capnp has quit [Remote host closed the connection]
boredom101 has quit [Quit: Page closed]
Lisanna has quit [Ping timeout: 244 seconds]
fendor has quit [Ping timeout: 246 seconds]
Lisanna has joined #nixos
LogicAside is now known as ThatOtherGuy
<fresheyeball>
infinisil: I figured it out
capnp has joined #nixos
<fresheyeball>
but now I am curious
<fresheyeball>
can I combine shell environements?
<fresheyeball>
are they a monoid perhaps?
<matthewbauer>
thoughtpolice: actually that's 2.8.3 that's failling and I don't think that ones changed. It could be broken... Try building libressl_2_9
<Ralith>
it is incredibly pleasant how they generally don't fall over when you update them
<yuken>
Are Nix VM/containers essentially Docker, except Nix?
<Ralith>
especially since it's much easier to go for a year or two vs. a personal machine where you're always tracking the latest stuff anyway
acarrico has quit [Ping timeout: 255 seconds]
<yuken>
Ralith, that seems like a nice point of Nix, so long as options remain relatively consistent you can just update and it's fine.
<yuken>
I still barely understand the Nix language though.
<catern>
the amazing feature of Nix that recently struck me is how I can check out old versions of this project, and build them, and run tests, and everything still all works
Rusty1 has joined #nixos
<catern>
because all the deps are pinned with Nix
<Ralith>
reproducible build envs are <3
<pie___>
or approximately reproducible anyway
<yuken>
I think my first Nix server will be a mail server, Dovecot + Postfix + PostgreSQL
<pie___>
mumble mumble something about vpn server getting restarted <Ralith> it is incredibly pleasant how they generally don't fall over when you update them
<yuken>
pfft pie___, the idea of a VPN server is outdated, use Tinc! ;)
<pie___>
yuken, its precisely my tinc connection that was the problem lol ;~; (also isnt wireguard all the rage these days)
<yuken>
dang
<pie___>
yuken, work with the language and youll get comfortable with it. the libraries are a bit harder to get used to imo
<pie___>
or rather, to remember
<pie___>
yuken, maybe its been improved since i had problems with it
<pie___>
or to find etc, well *shrug* regardless of all my whining its still better stuff :p
<yuken>
fun thing, whether it was luck or not, Nix was the _first_ Linux distro to automatically, with Pulseaudio, pick my microphone insteaad of a software audio monitor byy default
<yuken>
so I didn't install, start playing my game, and wonder why no one could hear me for an hour like usual
<pie___>
heh
goibhniu has quit [Ping timeout: 252 seconds]
<yuken>
oh. Nix appears to have eatened up 21G out of 24G in my root partition
<yuken>
wut?
<pie___>
after i figured out the demotool i wanted to play with wasnt complaining about not being able to load any audio libraries, i set up ld_preload and everything worked like a charm
<pie___>
yuken, well that happens
<pie___>
:P
<pie___>
i guesS? nix space usage is a running gac