<boomshroom>
HEX0: If you like uber-customizing your packages and compiling everything from scratch, NixOS has you covered.
<MichaelRaskin>
Atomic upgrades and rollbacks
<fogbugz2345>
I've found NixOS very similar to Arch in the sense it's minimal. The base installation is totally barebones.
<HEX0>
boomshroom: so does nix have something similar to gentoo use flags?
<MichaelRaskin>
(be it NixOS or anything else where system is a Nix package)
<fogbugz2345>
Vs gentoo, well nix allows customizing packages very easily. I think it has many advantages of binary and source distros, as it combines both approaches.
<MichaelRaskin>
Most failed updates fail before touching anything you care about.
<MichaelRaskin>
Nixpkgs is actually weaker than Gentoo in terms of global use flag support
<fogbugz2345>
Yeah, but i've found it covers most of what i need.
<boomshroom>
HEX0: Not directly, but Nix packages are writen in its own programming language and you can operate on packages like objects in a programming language. Most packages are actually functions that take parameters for each of their dependencies and some options.
<HEX0>
boomshroom: so no global use flag variables but per package customization ?
<Guest77739>
HEX0: I found gentoo complicated. I'm sure what you say is right for you, but it depends on where you start from.
<MichaelRaskin>
I would say Nix is better at local overrides and Nixpkgs has very few global use flags
<Guest77739>
I think if you enjoy customising packages and if you don't mind having to fiddle with dependencies a lot then gentoo is unbeatable.
<HEX0>
Guest77739: well gentoo is like any other distro imo. there's not really much to learn when it comes to portage and how it operates. nix is very different and unique imo. nothing else quite like it
<boomshroom>
HEX0: There are ways to override the entire repository at once, but for the most part, it's based around modifying individual packages.
fogbugz2345 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<Guest77739>
NixOS is largely about sane management of dependencies. (IMO it's mostly about orthogonality, which is related.)
<Guest77739>
(I should say IMHO since I'm a newbie to it.)
<Guest77739>
NixOS certainly is different. It's arguably not even GNU/Linux, since it breaks the standard layout of directories. (For a good reason, IMO.)
<MichaelRaskin>
Writing/changing/overriding Nix packages: Nix is a programming language of its own, but once you know it, a lot of things are done in a very simple way
<HEX0>
what about being rolling release? I noticed that nix has point releases? so when a new major version bump happens is there an upgrade procedure like on debian/fedora or does it endlessly update like arch or switch profiles like gentoo?
<Guest77739>
No, NixOS unstable is rolling release.
<MichaelRaskin>
It is GNU/Linux, and its SUS compliance is acceptable: coreutils are in PATH, glibc is close to upstream
<MichaelRaskin>
It is not even close to FHS, though
<Guest77739>
MichaelRaskin: Right. I find it close enough to other G/Ls, but I think opinions may differ.
<Guest77739>
Maybe we should advertise the fact that NixOS unstable is rolling release better?
<boomshroom>
HEX0: Often how I think of Nix is that it's not a package manager so much as a build system like Make. The NixOS system is itself a build target that depends on other build targets. Most "derivations" are packages, but they can be anything that you can tell Nix how to build, up to and including the entire system itself. You can even build systems that don't run on your own hardware with a few lines of code and
<boomshroom>
it won't interfere with anything else.
<HEX0>
boomshroom: yeah it makes sense when you put it that way :)
adetokunbo has quit [Quit: This computer has gone to sleep]
<Guest77739>
As for being rolling release, NixOS allows you to very easily swap back and forth between the rolling release channel and the stable channel, without losing your configuration! IMO that's an unbeatable use of orthogonality (management of dependencies).
<Guest77739>
(Unbeatable except for other pure build systems like Guix, I guess.)
<boomshroom>
NixOS has point releases, and an unstable branch. The main diference is how often they're updated. Nix and NixOS can be pointed at any "channel" that's available, or you can clone the entire repository and update it as you please making it even more unstable than "unstable".
<HEX0>
I should give nix another try probably. I've tried pretty much every non-derivate distro out there at this point
<Guest77739>
boomshroom: Yes, AND swap back and forth willy nilly. Try doing that with Gentoo!
<MichaelRaskin>
If you _really_ want it, you can have some things installed from stable and some from unstable
<MichaelRaskin>
(do not do this until you have understood the Nix manual well)
<Guest77739>
MichaelRuskin: I think you only need to understand the section on channels before you do that. I was doing that from very early in my learning of Nix.
<MichaelRaskin>
In reality, you don't even need channels for this…
<boomshroom>
If that's not enough. You can set your system to run the latest stable, and then build the latest unstable, run it in a VM, and then set it as the boot target with no changes to your running system happening prior to the last step.
<catern>
hey #nixos, how do I dual-boot NixOS with another distro, with the other distro managing the bootloader?
<jcrben>
HEX0: you might just want to spend a bunch of time with nixpkgs and try to port over as many dependencies as you can to that first. the nix learning curve is even harder than I expected
<Guest77739>
HEX0: I don't know whether it's worth your time, since you're already happy with Gentoo, but if I were you I'd make a note of these points and see how much they appeal to you later. :-)
<MichaelRaskin>
You do need to understand the global data model, and how imports work
<catern>
essentially, I don't want NixOS to manage the bootloader - how do I do it?
<catern>
I want to use the already-existing GRUB, and configure it somehow, to see NixOS...
<jcrben>
if I had been running Arch, I would've just done that. but I was/am running mac and there's too many bugs on mac - especially when you're new and you don't know if it's a mac-specific issue or things are just broken in general
<MichaelRaskin>
catern: NixOS needs to manage its bootloader
<MichaelRaskin>
You can install it elsewhere and chainload from the main one, if you prefer
<catern>
is there any information on how to do that?
<boomshroom>
catern: `boot.loader.grub.enable = false;` That should disable the bootloader and let it be handled externally.
<catern>
boomshroom: where does Nix then put the initrd/kernel that I should configure grub to start?
<HEX0>
jcrben: yeah, I've tried (arch, void, gentoo/funtoo, exherbo, source mage, lunar linux, slackware, alpine, crux, all the major BSDs and then some). I could grasp most of OS'es that I've tried well maybe except for exherbo because of paludis package manager but nothing even compares to Nix :P It seems very over-engineered on a surface and not very KISS. and there's so much documentation to read and learn
<boomshroom>
catern: /boot/EFI/nixos/ at least on my UEFI system. I actually don't know what happens if you disable the bootloader. I just have NixOS manage my bootloader for multibooting Arch and Windows.
<jcrben>
HEX0: I've read the docs and gone thru the nix pills a couple times - probably will want to read it all. but some stuff still doesn't make sense to me, so did some stepping thru the nix code earlier today
<boomshroom>
HEX0: KISS is most definately not a goal of NixOS. Resilience is.
jperras has quit [Ping timeout: 260 seconds]
<boomshroom>
checking for x86_64-unknown-linux-gnu-gcc... gcc
<MichaelRaskin>
Nix package manager: you can convert Sanity damage into HDD waste, at a rate of 1 GiB for 1 point of Sanity damage from qualifying sources
<boomshroom>
checking for suffix of native executables... ./configure: line 11990: gcc: command not found
<jcrben>
HEX0: currently trying to get my preferred C IDE (vscode cpptools) to work, which of course is broken due to a hardcoded path to a linker :) https://github.com/NixOS/nixpkgs/issues/35088
<catern>
MichaelRaskin: okay, hmm, I buy that maybe having NixOS manage its own bootloader is best
<boomshroom>
catern: One benifit to NixOS managing its own bootloader is it can keep old generations in the boot menu.
<jcrben>
HEX0: but ultimately, hoping that nix will be the ultimate death to "works on my machine" bugs. which are especially terrible in open-source
<catern>
boomshroom: yes
<HEX0>
I guess since there are no global USE flags or no global way to configure dependencies (probably doesn't even make sense) as I'm guessing nix installs multiple versions of dependencies kind of like containers work so it's not really afraid of bloat. I'm guessing there's no point to using nix as a 100% source based distro and telling it to compile everything to remove optional dependencies like source distros
<HEX0>
work? This sentence probably doesn't make much sense :P
<MichaelRaskin>
catern: you can install it onto a partition, I think
<MichaelRaskin>
jcrben: not really
<catern>
I think i'll try it
<MichaelRaskin>
jcrben: but at least «works on my machine» will imply that running the software in the same way is an easy to reproduce option
griff_ has quit [Quit: griff_]
<boomshroom>
HEX0: Nix is a source PM, but it allows for binary caches, namely cache.nixos.org because Nix can tell that the package in the cache should be identical to the package compiled locally.
<Guest77739>
HEX0: I think what you mean by "simple" (in KISS) is "the same as what I'm used to". Which is fine! NixOS is for people who don't mind it being different.
klntsky has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 240 seconds]
<HEX0>
Guest77739: you're probably right, as every single linux distro is more or less the same, minus package manager, init system and a few minor things
Guest77739 has quit [Remote host closed the connection]
<HEX0>
except for nix :P
<boomshroom>
HEX0: GoboLinux has some similarities with Nix, but Nix takes the ideas common to both to the extreme.
<HEX0>
there's also Guix SD which is somehow related to Nix?
<MichaelRaskin>
Well, by now I would call it «inspired by»
<MichaelRaskin>
They initially reused some parts of Nix
<gchristensen>
don't theey still use the daemon?
<boomshroom>
HEX0: Guix is derived from Nix and is really just an alternative frontend. They use the same backend, but Guix using Guile scheme for the syntax while Nix uses its own language.
<MichaelRaskin>
I think their daemon is different by now
<boomshroom>
It's even possible to build Guix to use the existing Nix setup.
<HEX0>
Are there any plans for openrc or runit?
rauno has joined #nixos
aarvar1 is now known as aarvar
<MichaelRaskin>
HEX0: nothing that can be actually called plans
klntsky has joined #nixos
<MichaelRaskin>
On the other hand, a few minimalistic Nix-based systems without systemd do exist
<boomshroom>
HEX0: At the moment, things are still up in the air. There are some who want to decouple Nix from Systemd whether to allow more choices or just because they don't like Systemd, and others that are hesitant to try switching because it would mean sacrificing what Systemd provides in favour of apealing the the lowest common denominator.
<HEX0>
boomshroom: I also understand that you can install Nix on any distro. I'm guessing it would not work on a distro without systemd then
<MichaelRaskin>
I works without systemd
<gchristensen>
it does work without systemd
<boomshroom>
HEX0: Nix itself should work with any init. It's NixOS that is too tightly coupled.
<MichaelRaskin>
I run Nix-based system without systemd running
<HEX0>
ah
ryantrinkle has quit [Ping timeout: 250 seconds]
<MichaelRaskin>
Nix is completely happy — in the full nix-daemon mode with sandboxing, ro mount for /nix/store etc
<rain1>
what features of systemd does nixos make use of?
<gchristensen>
its init system
<rain1>
what a dumb answer
<MichaelRaskin>
NixOS the OS uses systemd as init system, for logging, for login tracking etc
<gchristensen>
frankly it isn't a very good question
<MichaelRaskin>
Nix the package manager doesn't care
<rain1>
im not trying to impress you with my amazing insightful questions or whatever
<rain1>
I just want to know something
silver__ has joined #nixos
<boomshroom>
HEX0: As MichaelRaskin said, the core NixOS build system is init agnostic, but too many modules assume the use of systemd. There are alternate systems build on the NixOS core that reimpliment those modules to use alternate inits like runit.
<HEX0>
Does NixOS have something similar to genkernel or dracut? or do you reuse something to generate initramfs
<MichaelRaskin>
You can export NixOS services as starter shell scripts
<MichaelRaskin>
Not always what you want, not officially fully supported, still useful
<MichaelRaskin>
There is a Nix expression for initramfs
<HEX0>
well I guess I'll install and play around with it during the weekend again :P
<MichaelRaskin>
Some shell scripts, some parameters get substituted, all that
silver_ has quit [Ping timeout: 240 seconds]
andreabedini has joined #nixos
<HEX0>
sorry with all the questions. I'm just really curious about nixos :P
<boomshroom>
HEX0: It's fine. NixOS is really interesting and it's only natural that there'd be a lot of questions to try to understand it.
<boomshroom>
I'll be heading out now, so goodbye! It was fun chatting!
boomshroom has quit [Quit: WeeChat 2.0]
<gchristensen>
rain1: I'm sorry for being rude. NixOS uses quite a lot of what systemd has to offer
<rain1>
ok, thanks
<HEX0>
I personally don't have anything against systemd. it makes some things easier on the user end. but I run multiple PCs with totally configurations just because :P
acarrico has joined #nixos
<MichaelRaskin>
The problem is also that different init systems use different models of dependencies
<MichaelRaskin>
And NixOS currently fully mimics systemd model
<MichaelRaskin>
There are some things that systemd does plain wrong, then there are some things that it forbids doing
<HEX0>
1 systemd 1 openrc. 1 binary 1 source based. with different tools and configurations :P
<HEX0>
as a user the only thing I really hate is when systemd does the running stop job for bla when rebooting/power off. I just pull the plug at that point
<MichaelRaskin>
You might be able to write a system expression that generates stuff for openrc
<MichaelRaskin>
You could reuse NixOS config generators for services and of course all of Nixpkgs; the rest is not that much (especially if you already have the openrc configs to start the things you want)
drakonis has joined #nixos
<MichaelRaskin>
Bootscripts… well, it's not much if you know what you do
<HEX0>
another thing that I have to try is pure LFS :P though it almost seems like setting up lfs is more straighforward
jackdk has joined #nixos
<MichaelRaskin>
Well, if you use A/B LFS…
<gchristensen>
nixos is sorta like LFS every single time you update it
<MichaelRaskin>
A/B LFS is quite nice until you try to update it
<HEX0>
yeah it's more for learning experience. I'm guessing maintaining lfs is a bit like slackware but more painful and time consuming
<MichaelRaskin>
I had three iterations of A/B LFS.
<MichaelRaskin>
First it was a normal A/B LFS. An attempt to update something became a mess
<MichaelRaskin>
Second I tried to use make_uninstall but then it turned out that make_uninstall has linear stack logic, uninstalling something in the middle is still complicated.
<simpson>
HEX0: I'm a little opinionated, LFS is a massive waste of time. I can understand the *goal*, which is to have the feeling of building everything from scratch for security/customization/etc., but the fact is that it *isn't* more secure, and Nix is a lot easier to customize.
<MichaelRaskin>
Then I installed every package into its own slice of a huge unionfs. It was a FUSE unionfs, and I did a chroot into unionfs
<HEX0>
MichaelRaskin: I'm guessing after a while you end up with a huge pile of orphaned files on an LFS and it's insanity trying to keep it clean besides actually working
<MichaelRaskin>
Then I looked at MEPIS just to see what it is, by the time I the system mutated into Debian sid I found Nix and understood that it is a much better implementation of what I was trying to do with unionfs slices.
<MichaelRaskin>
HEX0: Orphaned files? I double-dare them to evade a funionfs slice lookup!
<HEX0>
I suppose you can "build" bare bones LFS and install pacman or something :D
silver__ has quit [Read error: Connection reset by peer]
<MichaelRaskin>
Well, A/B LFS is «Automated LFS and Automated Beyond LFS»
<HEX0>
ah
<MichaelRaskin>
And funionfs was my attempt to do something about keeping track of stuff after automated builds
romildo has joined #nixos
<HEX0>
simpson: well gentoo or anything source based is waste of time, but I use it because it's fun somehow. I have a morbind way to spend my free time
<romildo>
Is a log of the building of the packages in the hydra binary cache available somewhere?
<MichaelRaskin>
Well, NixOS can be used in a source-based style, you just send that to background and use once/if the build succeeds
semantim1ncer has quit [Quit: Lost terminal]
<simpson>
HEX0: I've done lots of Gentoo. It's not bad, but it's not even close to Nix. I think that the big problem with source-based stuff is those few packages written in ways that take figurative eons to build, like Firefox or Chromium or OpenOffice.
<MichaelRaskin>
Don't you dare put Firefox in the same bin as Chromium
<MichaelRaskin>
(or even LibreOffice)
<MichaelRaskin>
Firefox build is almost bearable (not quite)
ericsagnes has joined #nixos
<MichaelRaskin>
Chromium is just beyond good and evil
sir_guy_carleton has joined #nixos
jackdk has quit [Ping timeout: 276 seconds]
<HEX0>
simpson: I've been using firefox ESR on gentoo and that one seems to be updated less frequently but don't quite me on that. the newer quantum takes longer to build. chromium is the worst offender imo taking ~10 hours on core 2 duo
<MichaelRaskin>
It also uses two-stage build, with first stage making its quick progress to compiling ~900 small files. Once you hope that everything is good, the second stage comes with ~25 000 significantly larger files…
Have-Quick has quit [Quit: Have-Quick]
<romildo>
The enlightenment package from master built on my nixos unstable system links /run/wrappers/bin/freqset.orig to /alt/nixpkgs/result/lib/enlightenment/modules/cpufreq/linux-gnu-x86_64-0.22/freqset but in the package installed from the binary cache this link is missing. Any clues why does this happen?
<romildo>
mv: missing destination file operand after '//nix/store/rbqj21fr7zhwgg0h24ydgzxl8g4mxmld-enlightenment-0.22.3/lib/enlightenment/modules/cpufreq/linux-gnu-x86_64-0.22/freqset{,.orig}'
<romildo>
Why does it work on my system, and fails on the machine where the binary cache was built?
<MichaelRaskin>
drakonis: the wrapper is a different expression, you can grab nixpkgs-unstable build of main libreoffice and experiment with wrapper
<drakonis>
yes i've noticed
<drakonis>
then there's missing icons
<drakonis>
ah you're the person that did it
<drakonis>
wow i feel terrible now
<MichaelRaskin>
That should have reached nixpkgs-unstable
<drakonis>
i forgot how to update my packages
<MichaelRaskin>
That was indeed a change in the main build
<drakonis>
how do i shoot web
<MichaelRaskin>
The toolkit situation is just crazy
<drakonis>
i know that a environment variable is needed
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<MichaelRaskin>
irreproducible heavy load… the natural fix that breaks stuff from some points of view…
<drakonis>
libreoffice is too big
<MichaelRaskin>
True.
<MichaelRaskin>
And we build some of the libraries in-build
<drakonis>
it is by far one of the biggest packages, just behind the browsers
<MichaelRaskin>
Because nothing else uses them
<MichaelRaskin>
It is ahead of Firefox
Supersonic112 is now known as Supersonic
<MichaelRaskin>
Although it is a question of accounting
<drakonis>
i seriously forgot how to update my packages on nix
<drakonis>
accounting? hehehehehe
<MichaelRaskin>
Rust stuff is easier to autoconvert, so some libraries that only Firefox will ever use are not part of Firefox build
oltoAltn has joined #nixos
<MichaelRaskin>
And LibreOffice build includes the libraries that are LibreOffice-only and a pain to update separately
<drakonis>
is there a way to upgrade installed packages without needing to modify the configuration file?
<MichaelRaskin>
In what sense?
<MichaelRaskin>
installed systemPackages or nix-env packages?
<drakonis>
i have a lot of packages i installed outside of the configuration file
<drakonis>
nix-env
<drakonis>
systempackages = configuration.nix packages i assume?
<MichaelRaskin>
nix-env should have something like --upgrade I think
<MichaelRaskin>
And you need nix-channel if you use channels
<drakonis>
not sure if there's a upgrade all
<MichaelRaskin>
I just nix-build from a checkout
<drakonis>
hey hey i don't have that much power
olto has quit [Ping timeout: 268 seconds]
<MichaelRaskin>
Manpages says there is
<MichaelRaskin>
drakonis: you do, if you normally use a commit reached by nixpkgs-unstable
<drakonis>
hmm
<drakonis>
i mean
<drakonis>
if libreoffice updates, can i update directly from nixpkgs-unstable without building it?
Cale has quit [Ping timeout: 276 seconds]
<MichaelRaskin>
Yes. But the channel is just a snapshot of expressions, binary cache carries the package
<drakonis>
right
<drakonis>
do we have a glossary yet :V
mbrgm has quit [Ping timeout: 255 seconds]
<MichaelRaskin>
If you pick the commit to build wisely (it will not always be the head, although sometimes head is OK), you grab the stuff from cache without building too much, and you can pick how much is too much
<MichaelRaskin>
I will sleep now
<MichaelRaskin>
Good… whatever is upcoming time in your TZ
mbrgm has joined #nixos
srdqty has joined #nixos
<{^_^}>
[nixpkgs] @romildo opened pull request #40311 → enlightenment: remove bashism from patch → https://git.io/vpDT9
srdqty has quit [Quit: WeeChat 1.9.1]
<drakonis>
well
xcmw has joined #nixos
<drakonis>
its almost 11pm
alphor_ has quit [Ping timeout: 240 seconds]
alphor has joined #nixos
stumble has joined #nixos
adisbladis has joined #nixos
Cale has joined #nixos
romildo has quit [Quit: Leaving]
ThatOtherGuy has quit [Ping timeout: 260 seconds]
hph^ has quit [Ping timeout: 240 seconds]
<sir_guy_carleton>
hey, has anybody been able to get dictionaries in qutebrowser to work?
<{^_^}>
[nixpkgs] @matthewbauer pushed to staging « libjpeg: always use libjpeg_turbo »: https://git.io/vpDLu
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MP2E has joined #nixos
griff_ has joined #nixos
hamishmack has quit [Ping timeout: 246 seconds]
xcmw has joined #nixos
iqubic has joined #nixos
acarrico has quit [Ping timeout: 260 seconds]
jD91mZM2 has joined #nixos
andreabedini has joined #nixos
andreabedini has quit [Ping timeout: 256 seconds]
sir_guy_carleton has quit [Quit: Lost terminal]
sir_guy_carleton has joined #nixos
<sir_guy_carleton>
hello
<jD91mZM2>
Is there a good way to use buildRustPackage inside shell.nix and not override rustc?
<jD91mZM2>
I'm trying to import a package to avoid code reuse: (import <nixpkgs>).package-goes-here
<jD91mZM2>
but that also pulls rustc instead of using my rustup install
<sir_guy_carleton>
so i am trying to add dictionary support to qutebrowser, which according to the documentation i need to run dictcli.py
<sir_guy_carleton>
but running it i get ModuleNotFoundError: No module named 'attr'
<iqubic>
I should have a ~/.lastpass folder, but I don't.
<jD91mZM2>
adisbladis: You're right, it didn't work. I tried "manually" copying over the variables with `buildInputs = pkgs.powerline-rs.buildInputs`, but that included rustc for some reason
jperras has quit [Quit: WeeChat 2.1]
<jD91mZM2>
adisbladis: Should I just give up and copy over the whole package definition minus the rust part
<adisbladis>
jD91mZM2: You could just filter the buildinputs
<adisbladis>
buildInputs = builtins.filter (x: x != rustc) powerline-rs.buildInputs;
<adisbladis>
jD91mZM2: ^
<adisbladis>
That still pulls in cargo though, you might wanna filter that too.
<jD91mZM2>
Woah, awesome. Thanks for all the help :)
<adisbladis>
jD91mZM2: No problem :)
<adisbladis>
jD91mZM2: Btw, why are you using rustup?
<adisbladis>
Instead of nix
<iqubic>
Can Nix build rust programs?
<adisbladis>
iqubic: Yes
<adisbladis>
But I'm talking about pulling rustc/cargo from nix for development
<jD91mZM2>
rustc isn't updated in stable yet
schoppenhauer has quit [Ping timeout: 250 seconds]
<adisbladis>
jD91mZM2: Mozilla has a nightly overlay
<jD91mZM2>
Too much work. I'm not going to package these things yet, just try them locally
<jD91mZM2>
Plus, I like rustup. It's the most widely used tool for managing rust stuff
<adisbladis>
I'm using it like this to build static musl builds in development: https://ptpb.pw/0-DC
schoppenhauer has joined #nixos
<iqubic>
Yeah, I've had to uninstall and comment out ripgrep from my system.evironmentPackages to prevent rustc from being a pain.
<cheater>
why?
<jD91mZM2>
I feel like those overlays could come in real handy when making a proper package, but I see no reason to add them in a shell.nix adisbladis
andreabedini has joined #nixos
<adisbladis>
jD91mZM2: You use whatever workflow works for you :) I just wanted to make sure you are aware that there is nix tooling to accomplish the same as rustup
klntsky has quit [Ping timeout: 255 seconds]
<iqubic>
cheater: I got a billion compiler errors when I tried to build ripgrep, because it is a rust package.
<cheater>
oh
pingu_ has joined #nixos
<iqubic>
And rustc still has issues with Nix.
* adisbladis
is using ripgrep and tons of other rust applications on nix without any issues
<jD91mZM2>
adisbladis: Don't get me wrong, I do want to improve. What's the advantage of using mozilla's overlays (well, I mean, you wouldn't need to install rustup I guess)
<pingu_>
I'm trying to package a python package which has a depency that's disabled on python2.7, I'm calling buildPythonPackage with python = python3 to try and fix that, but I'm still getting the same error (disabled on 2.7).
<simpson>
iqubic: The perils of system.environmentPackages.
<pingu_>
Does anyone know how to specify the python version?
<iqubic>
simpson: I don't know any other ways to install ripgrep without rustc throwing a billion errors.
blankhart has quit [Quit: WeeChat 1.9.1]
<simpson>
pingu_: Use python3Packages, python35Packages, pypyPackages, etc. as needed.
<adisbladis>
jD91mZM2: If you pin the overlay everyone can use the same version, purity etc etc. I dont feel comfortable letting tools like rustup scattering files around my system.
<simpson>
iqubic: I just tried, but unfortunately mine came from cache rather than being built from source. Do you have a way to reproduce your problem?
<pingu_>
simpson: that was it, thanks!
<iqubic>
No. I don't.
<iqubic>
Sorry.
<iqubic>
It's fine, I'm just waiting for rustc to get fixed.
<jD91mZM2>
adisbladis: rustup can already do the same thing, but I see your point. I don't think I can leave rustup sadly since it's too widely used and depended upon.
<iqubic>
and I only use grep like once in a blue moon anyways so I'm not too invested in getting this to work.
<joepie91>
jD91mZM2: afaik the Rust overlay for Nix is on feature parity with rustup
<adisbladis>
And you can let the people who want to use rustup keep using rustup
<jD91mZM2>
adisbladis: But I see your point there. I might change my shell.nix to just use unstable rustc instead of rustup's.
<joepie91>
if a little underdocumented at times :)
<adisbladis>
joepie91: Like all things nix, get ready for a deep dive ;)
<joepie91>
yeah :(
<simpson>
iqubic: Okay. So, I hope it makes sense that I'm forced to conclude that the problem is your setup rather than nixpkgs.
<jD91mZM2>
adisbladis: joepie91: Well, at least it's something to keep me busy :^)
<joepie91>
but it'd be nice if I didn't have to dig around directory listings and Nix source for an our just to figure out how to install a nightly from a particular date...
<joepie91>
for an hour*
Have-Quick has quit [Quit: Have-Quick]
<simpson>
iqubic: Actually, I am so sorry, I was building from an old feature branch. Lemme try again on master.
<simpson>
...Nope, sorry, still builds from cache: /nix/store/n9mlxg0agy637i6rcgb033a0lvc5zxhy-ripgrep-0.8.1
<sir_guy_carleton>
hmm, i used nix-shell -p qutebrowser and ./dictcli.py did worked as expect (could list, but obiviously not install into the store).
Have-Quick has joined #nixos
klntsky has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iqubic>
Oh, you use qutebrowser?
<iqubic>
sir_guy_carleton: Do you have any issues running userscripts on NixOS?
<sir_guy_carleton>
iqubic: yes, along with firefox
<sir_guy_carleton>
i want to get a spell checker in there so i write stuff there, because my spelling has always sucked
<iqubic>
Why do you use both qutebrowser and firefox?
<sir_guy_carleton>
i was using firefox, but tried qutebrowser and liked it
andreabedini has joined #nixos
<stumble>
I (different person!) use qutebrowser for most things but firefox for the odd thing that doesn't work well with qutebrowser. E.g. my firefox is packaged with multimedia extensions and my qutebrowser isn't.
<sir_guy_carleton>
but as i said, i would really like spell checker in it.
<stumble>
Anyway, with the sad state of stupid effing web sites that expect you to have one of the three web browsers they recognise, it'd be crazy not to have one of FireFox, Chrome or Safari to hand.
<sir_guy_carleton>
ublock origin isn't in qutebrowser, so i use ff for yt as well.
<adisbladis>
stumble: How is qutebrowser for touch screens?
<adisbladis>
I'm using Falkon on my tablet now but it's not super great
<jD91mZM2>
Woah, rustc 1.26 isn't in unstable yet. Maybe if I'm fast enough I get to do the honor :)
<jD91mZM2>
I get the honor*
<adisbladis>
I would use firefox on it but qtvirtualkeyboard doesn't work in gtk apps
<stumble>
adisbladis: I'm not sure what the POINT would be of using qutebrowser on a touch screen. I mean, it's not a very polished browser; it's one big selling point is being keyboard-driven.
<iqubic>
adisbladis: qutebrowser is keyboard driven.
<stumble>
(Another selling point is that the developer is super helpful, BTW. But that's not worth much on its own.)
<pingu_>
But I cant' work out what the path is to it.
<iqubic>
adisbladis: What were you expecting?
<adisbladis>
iqubic: I was hoping for a better browser on my tablet
<pingu_>
I've searched with nix-env -f "<nixpkgs>" -qaP, but no luck, just spacy
<iqubic>
adisbladis: Oh. I see. I too want that.
rauno has quit [Ping timeout: 250 seconds]
<sir_guy_carleton>
stuble: so you use qutebrowser without any of the dictionaries installed, right?
<stumble>
I'm afraid there is a sad shortage of browsers, and although it's sad it's not surprising, because the big four have got so complicated and web sites insist on relying on their complicated features. :-/
<stumble>
sir_guy_carleton: Yes.
<stumble>
sir_guy_carleton: I love how you misspelled my name to illustrate your point. :-)
<adisbladis>
iqubic: Generally I think qtvirtualkeyboard is pretty nice for tablets
<adisbladis>
But it only works with qt apps
jtojnar has joined #nixos
Ross has quit [Ping timeout: 264 seconds]
<sir_guy_carleton>
hmm, i see. i feel like the only way to solve by modifying the nix expression for qutebrowser (and maybe some of its dependencies?), but i'm not at that skill level.
<lo_mlatu>
Hello, is it possible for a function to know its callers location? I want to write a helper function to build a nix-shell, set the HISTFILE to the file's location which called that function, is there a way?
hiroshi has joined #nixos
TheAppleMan has quit [Remote host closed the connection]
ThatOtherGuy has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/vpDsw
<{^_^}>
→ 352f8cb6 by @matthewbauer: retroarch: fix on macOS
<{^_^}>
→ 4d141bd4 by @matthewbauer: tests: move to attribute set
<{^_^}>
→ a0ab41ca by @matthewbauer: release: disable tests.cc-wrapper-gcc8.x86_64-darwin
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « dwarf-fortress: revert to 44.09 »: https://git.io/vpDs1
<unlmtd>
does nix-serve require an http proxy server?
maingo has joined #nixos
<unlmtd>
oops, one minute
raynold has quit [Quit: Connection closed for inactivity]
pingu_ has quit [Ping timeout: 240 seconds]
<unlmtd>
can nix-serve bind to an ipv6 address?
pingu_ has joined #nixos
sanscoeur has joined #nixos
<unlmtd>
`could not determine host from "[fdef"`
<unlmtd>
obviously, thats not working
<wilornel>
Hi #nixos! I am having trouble with `bundix` when it tries to install something and checks for `sqlite3.h` header files. I have installed `nix-env -iA nixos.sqlite` but the header files cannot be found by whatever bundix is running
<wilornel>
I was wondering if someone encountered an issue like this before
joehh has quit [Ping timeout: 256 seconds]
johann__ has joined #nixos
MercurialAlchemi has joined #nixos
xy2_ has quit [Ping timeout: 260 seconds]
<unlmtd>
wilornel: is sqlite in the `buildInputs` of what your building?
sir_guy_carleton has quit [Quit: Lost terminal]
<unlmtd>
I dont know bundix but it sounds like a missing buildinput
<angerman>
how do I pass environemnt variables to the ./configure call from the standard builder?
nico202 has joined #nixos
<nico202>
anybody using home-manager + emacs?
smallville7123 has quit [Quit: rosa]
smallville7123 has joined #nixos
<jD91mZM2>
angerman: I think you could use `configureFlags`
<jD91mZM2>
An array of strings, arguments
<jD91mZM2>
In the worst case scenario you could always override buildPhase
<angerman>
jD91mZM2: hmm... alright let's try.
devhell has joined #nixos
<manveru>
wilornel: moin
<manveru>
wilornel: bundlerEnv packages each gem in its own derivation, so it doesn't matter what you put in your buildInputs, you'll have to configure the buildInputs of that gem
lo_mlatu has quit [Quit: Connection closed for inactivity]
<jD91mZM2>
Ok so I'm trying to package both an application and a library that it requires
orbekk has quit [Quit: WeeChat 2.0]
<jD91mZM2>
When compiling the binary it complains about the binary being missing
orbekk has joined #nixos
<jD91mZM2>
I have added the library to buildInputs, and the library specifies `outputs = [ "out" "dev" ]` to ensure that it creates a dev package with headers and stuff
tertle||eltret has quit [Quit: Connection closed for inactivity]
humanoyd has joined #nixos
<{^_^}>
[nixpkgs] @xeji pushed to release-18.03 « nixos/systemd-networkd: wait for udev to settle »: https://git.io/vpDuJ
<stumble>
Hi all! I'm having trouble getting garbage collection to save much space. I seem to still have a lot of derivations that are not in my recent generations of profile.
<azazel>
anyone using kubernetes on nixos here? I'm having problems even with running an "all-in-one" node on 18.03, the pods never leave the "pending" state... any clue?
<{^_^}>
→ 8408c36d by @romildo: enlightenment: remove bashism from patch
<{^_^}>
→ 2f6ac31d by @xeji: Merge pull request #40311 from romildo/fix.enlightenment
<elvishjerricco>
This is driving me nuts. I want to do `ssh foo -t gpg --export-secret-keys | gpg --import` to import GPG keys from another machine. But the pinentry for the remote machine always clobbers stdout.
<elvishjerricco>
Obviously the workaround is to just store the keys in files and copy them over, but I'd really like to know how to do this regardless
<periklis>
hi, i am having trouble to establish a mac remote builder from my macbook with nix 2.0.2 without using the old NIX_BUILD_HOOK. I've a valid key and /etc/nix/machines file, but still on `nix build` i get the answer `hook reply is 'decline'`. Any idea, help or assistance welcome!
<elvishjerricco>
It's weird because I see all these answers online of people telling people to do `ssh foo gpg --export-secret-keys | gpg --import`, but that just doesn't work. Without `-t` on the `ssh`, you get `error receiving key from agent: No such file or directory.` But with `-t` you get these problems with pinentry clobbering stdout
<clever>
elvishjerricco: what if you take the | gpg import off the end, and take off -t?
<elvishjerricco>
periklis: With Nix 2.0, `NIX_BUILD_HOOK` shouldn't be the way to set up remote builders IIRC
<elvishjerricco>
periklis: You should just have to add something to `/etc/nix/machines`
<elvishjerricco>
clever: Same thing
<periklis>
elvishjerricco: right, i haven't used it from the start.
<moredhel_[m]>
Hi all, does anyone have experience with the arduino IDE and getting it running?
<{^_^}>
→ 9c174783 by @Mic92: Merge pull request #40334 from NixOS/yegortimoshenko-patch-4
spear2 has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @Mic92 pushed 0 commits to yegortimoshenko-patch-4: https://git.io/vpDKj
spear2 has joined #nixos
tennat has joined #nixos
<periklis>
elvishjerricco: actually nix-daemon runs on root in macos and when i change to with `sudo su -` into this user i can properly connect to my remote machine with the according key
NightTrain has joined #nixos
<elvishjerricco>
periklis: Yea, so then there should be no problem
<elvishjerricco>
What happens when you try that in /etc/nix/machines?
<elvishjerricco>
periklis: Also, just in case, make sure /etc/nix/machines is itself owned by root
<elvishjerricco>
Not sure if that's necessary...
<moredhel_[m]>
goibhniu: I'm trying to compile a program but it is a precompiled binary `arm-none-eabi-g++` is trying to be executed for compilation reasons
<tennat>
Hey Guys, im exhausted.. i read the tomcat manual to understand the tomcat-module and i can't get it working. My experience so far: i created another output of my package where my webpage is located also the tomcat module pulls those files and creates /var/tomcat/ for it.
<periklis>
elvishjerricco: however, what did you mean with "try in /etc/nix/machines"
<moredhel_[m]>
I've written a wrapper which runs it under `steam-run`, but it's not working :/
<elvishjerricco>
periklis: What happens if you just try configuring /etc/nix/machines?
<periklis>
elvishjerricco: it is configured from the start
<elvishjerricco>
periklis: So it's already got the remote builder listed in there with the key file?
<periklis>
elvishjerricco: right
<goibhniu>
moredhel_[m]: hrm, you could try using patchelf, or packaging the binary
<elvishjerricco>
Ok, so what happens when you try to do a build on it?
<periklis>
elvishjerricco: it tries to address the remote machine and ends with: `considering building on remote machine 'ssh://remote-hostname'
<elvishjerricco>
double check that the daemon was properly updated as well
<moredhel_[m]>
true, but that feels like a lot of effort... I'm working my way through all of the binaries at the moment and wrapping each one in a steam-run script... That is a lot of yak-shaving which sadly I don't have time for at the moment. I was hoping for a quick fix :)
<elvishjerricco>
`sudo ps aux | grep nix-daemon` ought to tell you :P
<moredhel_[m]>
no worries though, I'll see what I can do
<periklis>
elvishjerricco: NIX_BUILD_HOOK is unset, nix and nix-daemon on 2.0.2, plist is pointing to the correct nix-daemon.
<elvishjerricco>
And still you get the `hook reply is 'decline'` thing?
<periklis>
exactly
<elvishjerricco>
periklis: Huh
<elvishjerricco>
unset NIX_REMOTE_SYSTEMS?
<elvishjerricco>
Otherwise I'm out of ideas :P
<elvishjerricco>
Maybe NIX_BUILD_HOOK needs to be unset for the launchd environment running the daemon?
<periklis>
it's also unset. Bu let me try to unset for the daemon
<goibhniu>
moredhel_[m]: that's a shame that it doesn't work in the steam environment :/
<moredhel_[m]>
I almost have it working. but it's dynamically building a 'bossac' binary which is compiled in the steam-run environment then is executed outside of it. so it is being a serious pain
<moredhel_[m]>
the other option is to start up the arduino ide within the steam-run env
<periklis>
elvishjerricco: same status. i've unset both env variables in the org.nixos.nix-daemon.plist :(
<elvishjerricco>
periklis: I think the daemon might have to be restarted after changing its env variables. Not sure...
<periklis>
elvishjerricco: i know that and did that :)
<elvishjerricco>
periklis: Darn. Then I have no idea, sorry :/
<elvishjerricco>
periklis: I manage to avoid the problem entirely by just using `nix-darwin`
<elvishjerricco>
It's a life saver, I definitely recommend it
<periklis>
elvishjerricco: anyway thanks, but what does nix-darwin do here different?
leat has joined #nixos
<elvishjerricco>
periklis: I have no idea. But it works out of the box for me :P Just have to write a couple of lines of Nix and do a darwin-rebuild
<periklis>
elvishjerricco: you mean nix-darwin has a module for remote builds?
<periklis>
gchristensen: remote builder is also a mac
<gchristensen>
no worries! :)
<gchristensen>
ooh fun
acarrico has joined #nixos
justan0theruser has joined #nixos
<gchristensen>
as any user, on your machine, can you run `ssh user@remote nix-store --realize /nix/store/9xg3d7r173zzybgh8v4lhf3zcf0wx51g-bash-4.4-p12`
justanotheruser has quit [Ping timeout: 246 seconds]
<periklis>
gchristensen: an nice, that brings something: 'nix-store: command not found'
jacob has joined #nixos
<gchristensen>
nice! the profile file your users shell is loading isn't sourcing the nix profile
<periklis>
gchristensen: right. I've checked that /etc/profile is properly cofnigured. However, maybe macOS is different in terms of profile/rc files for bash
<periklis>
hehe :) Ok this means that it will intercet any com from nix-build?
johann__ has quit [Quit: Leaving.]
<gchristensen>
nix-store --serve --write is what nix will be calling on the remote anyway
<gchristensen>
specifying command=... in the authorized keys means that key can only call that commanndc now
<gchristensen>
... something I should have probably explained before I instructed you to do it, blindly
<periklis>
ic. thanks that made it work
<gchristensen>
cool!
<gchristensen>
I should probably document this somewhere
<periklis>
i hardly remember command in ssh to lock down possible exposure in old sysadmin days. However, i could not imagine that nix-store can be run as server, too :)
raynold has quit [Quit: Connection closed for inactivity]
<CrazedProgrammer>
is it possible to chroot into an installation and do nixos-rebuild switch from the install media? a windows reinstall borked my efi partitions.
<joachifm>
Izorkin: sorry, what?
<periklis>
gchristensen: sure i can
<Izorkin>
joachifm: ?
<joachifm>
Izorkin: my away log indicated you asked me something. but I see it's a month ago, so nvm :)
<srhb>
CrazedProgrammer: Yes, see the --chroot flag to nixos-install. Or maybe that was exchanged for nixos-enter, I didn't check recent install media.
acarrico has quit [Ping timeout: 240 seconds]
<joachifm>
Izorkin: ah, forgot all about that one, sorry. I think just squash it & we can integrate
johann__ has joined #nixos
<CrazedProgrammer>
srhb: thanks!
<srhb>
CrazedProgrammer: And I think you might need to give rebuild a specific switch to have it redo the bootloader.
lord| has quit [Quit: WeeChat 2.1]
<srhb>
--install-bootloader iirc
<srhb>
(If that's what Windows mangled)
grumble has quit [Read error: Connection reset by peer]
Neo-- has quit [Remote host closed the connection]
Neo-- has joined #nixos
<broccoli>
Is there a way to install the CUDA Toolkit (+CuDNN) without Xorg? (I'm rather new to NixOS)
griff_ has quit [Quit: griff_]
<srhb>
broccoli: At least not in its current form. xorg is a hard coded dependency. I don't know enough about cuda to know if that could be made not to be the case.
griff_ has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
<srhb>
I think the libraries are a hard dependency of CUDA, from looking at Nvidias docs.
<broccoli>
srhb: ok, i'll try to learn and make a derivation for a headless mode then, it should be possible to just install the driver kernel modules & cuda libs
freeman42x]NixOS has joined #nixos
<broccoli>
i'm using the computer in a headless mode for machine learning
<sphalerite>
how do I set console parameters? I'm trying to get nixos running on a scaleway C1 server, and it's mostly working — but the serial console seems to get its parameters screwed up
<sphalerite>
i.e. it's set to the correct value by the image that loads nixos, but then nixos (systemd?) changes it to an incorrect value somewhere down the line, after starting nscd by the looks of it
<sphalerite>
it has the console=ttyS0,9600n8 parameter on the kernel command line
johann__ has joined #nixos
<Dezgeg>
in the getty settings probably
sir_guy_carleton has joined #nixos
<Dezgeg>
but to me it sounds like a bug if it's changing serial port options
<{^_^}>
→ aa762930 by @grahamc: Merge pull request #40350 from alexfmpe/fix-typo
broccoli has quit [Ping timeout: 260 seconds]
broccoli has joined #nixos
<schoppenhauer>
gchristensen: thank you :)
<gchristensen>
:) can you open a bug report about this? :P
<schoppenhauer>
gchristensen: huh? is this considered a bug?
<gchristensen>
"long time user doesn't know how to upgrade" seems like a bug to me
<gchristensen>
at the very least, the release notes should contain instructions on how to switch too it
<schoppenhauer>
ok I'll file a bug report
<catern>
how do people usually manage their configuration.nix? what's the best way? just have a git repo in my home directory and copy the configuration.nix over when I want to change it?
<sphalerite>
catern: I have a git repo in /etc/nixos itself on most of my systems
<catern>
sphalerite: do you commit hardware-configuration.nix in that?
<sphalerite>
for a number of them I share the same repo and put configuration.nix in .gitignore and make it a symlink to the actual config
<sphalerite>
catern: usually no. On several I don't even use hardware-configuration.nix
<gchristensen>
thank you, schoppenhauer!
FRidh has joined #nixos
<stumble>
catern: I back up a copy of configuration.nix (almost) every time I switch configurations. Apart from that, it's just a file, nothing special.
iqubic` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
thblt has quit [Ping timeout: 255 seconds]
<sphalerite>
catern: I've been planning ofr ages to have a wrapper for nixos-rebuild that will make a commit with the generation number on a separate branch each time I build a configuration, and put the nixpkgs revision in the commit message as well, so I can exactly reproduce any historical config.
<sphalerite>
Never got around to it though.
<goibhniu>
I just upgraded an imperative container from 17.03 to 18.03 and now when I run `nixos-rebuild switch` in the container it fails a few of these messages: "error: opening lock file '/nix/var/nix/db/big-lock': Read-only file system" ... any idea how to fix that?
<goibhniu>
the host system is nixos-unstable
martingale has quit [Read error: Connection reset by peer]
martingale has joined #nixos
spear2 has quit [Quit: Leaving]
johann__ has quit [Quit: Leaving.]
johann__ has joined #nixos
* goibhniu
gets that error for any nix command too
<catern>
sphalerite: that's the equivalent of etckeeper for NixOS I guess
martingale has quit [Read error: Connection reset by peer]
<samueldr>
catern: doing similar to what sphalerite does, https://gitlab.com/samueldr/nixos-configuration I gitignore configuration.nix and have configuration.nix import machines/$HOSTNAME;
martingale has joined #nixos
<samueldr>
and yes, I do commit the hardware-configurations
<{^_^}>
"Whether to ask Let's Encrypt to sign a certificate for this vhost.\nAlternately, you can use an existing certificate through <option>useACMEHost</option>.\n"
<jD91mZM2>
Mic92_: Ok this time I'm pretty sure the patches are applied... but nothing
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #40363 → lib: Add more configure flag helpers → https://git.io/vpyIO
<Mic92_>
jD91mZM2: it will usually print the full path of the patch applied.
<jD91mZM2>
Mic92_: Ok turns out I just did the patch substitution wrong. Now I'm finally getting another error. Thanks for the help, and sorry for being stupid :)
<sphalerite>
tilpner: you may need to restart systemd-vconsole-setup or something. Or you could just reboot to be sure
sigmundv_ has joined #nixos
periklis has joined #nixos
<jcrben>
also Github seems to be skipping the cropped code in search (vscode does not show up in all-packages) - is this a common/known issue? usually I feel like I would've seen a warning or somethin
<elvishjerricco>
Uh oh. I had two catastrophes happen on a system: Ran out of disk space, and had to force a shutdown. Now when I try to run `nix-collect-garbage`, I get `error: executing SQLite statement 'pragma synchronous = normal': unable to open database file (in '/nix/var/nix/db/db.sqlite')`
<gchristensen>
I think if you can delete a single file, it'll fix that, elvishjerricco
jperras has joined #nixos
<elvishjerricco>
gh0st[m]: 1) I thought nix-collect-garbage could operate with no remaining disk space? 2) Why is this the error I'm presented with?
<elvishjerricco>
gchristensen: ^ Sorry, gh0st[m]
hlolli_ has joined #nixos
<elvishjerricco>
gchristensen: Nonetheless, that did work. Thanks :)
martinga_ has joined #nixos
<gchristensen>
I think it has to create like a .wal file or something? I'm not sure :/
hlolli has quit [Remote host closed the connection]
martingale has quit [Ping timeout: 264 seconds]
bebarker has quit [Ping timeout: 264 seconds]
<sphalerite>
elvishjerricco: 1) no, because it needs to access the database and sqlite doesn't like accessing a database on a full disk 2) because "disk full" isn't a condition accounted for in nix's sqlite code :)
bebarker has joined #nixos
<gchristensen>
<3 sqlite, possibly one of the best projects ever
<elvishjerricco>
sphalerite: Weird. I could have sworn I've used nix-collect-garbage on full disks before
<sphalerite>
elvishjerricco: I think it's hit-and-miss
<sphalerite>
it's definitely not guaranteed to work
<gchristensen>
it should be :)
<sphalerite>
elvishjerricco: actually, maybe you didn't run it as root, and the daemon already had the database open? I'm not sure though.
<elvishjerricco>
Maybe Nix should keep a dummy file lying around the nix store so that nix-collect-garbage has something to delete :P
<elvishjerricco>
I definitely ran it as root
<elvishjerricco>
but there was a daemon running
<gchristensen>
elvishjerricco: agreed
<niksnut>
elvishjerricco: it already does
<niksnut>
/nix/var/nix/db/reserved
<elvishjerricco>
niksnut: Oh. So why didn't that work for me this time? I see that file does exist
<niksnut>
however, I've noticed it not working well recently
<niksnut>
especially on macs
<elvishjerricco>
This is on NixOS
<clever>
also in the case of ZFS, you need free space to even delete a file
<elvishjerricco>
This is just whatever NixOps deploys, which doesn't use ZFS I believe
<LnL>
periklis: did you get the distributed builds working?
<judson>
Has anyone been able to use --add-root with nix-shell since 2.0?
<sphalerite>
elvishjerricco: and you don't with nix-shell --add-root? How did that work?
<elvishjerricco>
Judson: If you have keep-outputs, then having a root pointing to a .drv file keeps all the .drv files alive, and keep-outputs keeps their outputs alive
<judson>
So you'd nix-instantiate the shell.nix?
<elvishjerricco>
sphalerite: I guess I never really checked. But I thought nix-shell --add-root added one root per build input, pointing at that build's output
<sphalerite>
elvishjerricco: I don't think so, I think it just added a root for the drv
<elvishjerricco>
sphalerite: I remember getting many roots when using nix-shell --add-root
<judson>
I would hope it was just one.
<sphalerite>
Judson: yes. You might need to set the IN_NIX_SHELL env var as well if your expressions use lib.inNixShell
orivej has quit [Ping timeout: 260 seconds]
HEX0 has quit [Quit: WeeChat 2.1]
sanscoeur has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @xeji opened pull request #40373 → nixos/mesos: fix non-deterministic service and test failure → https://git.io/vpy4L
phreedom has quit [Ping timeout: 255 seconds]
phreedom has joined #nixos
sanscoeu_ has quit [Remote host closed the connection]
<catern>
hey #nixos, is there any support for providing a wireless access point with my wireless card on NixOS?
<catern>
I get my internet over ethernet and use my desktop as my wireless router
<sphalerite>
catern: it depends on the hardware.
sanscoeur has joined #nixos
<sphalerite>
or the hardware and the driver
<catern>
I know my hardware supports it since I had it set up on Arch
<periklis>
LnL: It means that nix-docker needs an update of it's README? right?
<boomshroom>
jD91mZM2: Sup?
agile has joined #nixos
<jD91mZM2>
boomshroom: I'm trying to get a global menu in xfce4 panel :P
<boomshroom>
jD91mZM2: I'm trying to cross-compile NixOS, except someone wanted a local compiler as well as a target compiler.
<LnL>
periklis: no, that's only for darwin builders the docker will have nix-store in PATH by default
<LnL>
periklis: the instructions have not been updated for nix 2.0 / nix-daemon installs tho
<jD91mZM2>
boomshroom: How do you even do that?
<periklis>
LnL: right nix-docker is a linux image. However, i suppose that we have the PATH-issue with darwin builders because on non-interactive no-login shells used by launchd right?
<{^_^}>
→ 46fa7ab6 by @catern: pythonPackages.outcome: init at 0.1.0a0
<{^_^}>
→ f78c2523 by @catern: pythonPackages.trio: init at 0.4.0
<{^_^}>
→ c983bbb5 by @catern: pythonPackages.trustme: init at 0.4.0
<periklis>
elvishjerricco: alrright
acarrico has quit [Ping timeout: 256 seconds]
<boomshroom>
Lets see if overriding freetype to add a local gcc to its nativeBuildInputs solves anything.
<catern>
is there a way to do a nixos-rebuild build with an arbitrary configuration file? instead of the one in /etc/nixos/configuration.nix
<catern>
it would be nice to be able to build-vm with an arbitrary configuration.nix also
<elvishjerricco>
boomshroom: Does the package have configure options for the native and cross compilers? Or does it just assume it's not cross compiling?
<{^_^}>
[nixpkgs] @Ericson2314 pushed 74 commits to staging: https://git.io/vpyuw
<{^_^}>
→ 4c66aa89 by @peterhoeg: bluez: add tools to output that we were building anyway
<{^_^}>
→ 0fb46721 by R. RyanTM: xterm: 332 -> 333
<elvishjerricco>
s/nixes/nixos/
<{^_^}>
→ 871bffd9 by R. RyanTM: qutebrowser: 1.2.1 -> 1.3.0
FRidh has quit [Quit: Konversation terminated!]
<boomshroom>
elvishjerricco: It checks for both riscv64-unknown-linux-gnu and x86_64-unknown-linux-gnu. It can only see the riscv one.
<boomshroom>
The strange part is that it claims that it found gcc, before marking it as not found. It probably has a gcc built to run on riscv and tried running that.
<elvishjerricco>
boomshroom: Ahh. I've run into that before. Didn't find a solution, though I didn't try very hard.
<boomshroom>
A simple union + overrideAttrs didn't work.
<Izorkin>
joachifm: please recheck PR. Fixed build with gcc6
<boomshroom>
I managed to isolate it further: cross compiling freetype for riscv64 doesn't work.
<boomshroom>
The nix repl is very nice.
hph^ has joined #nixos
ryantrinkle has quit [Ping timeout: 240 seconds]
RyanGlScott has joined #nixos
<RyanGlScott>
Hello all. I'm trying to figure out what I'm doing wrong here.
<RyanGlScott>
$ nix-env -qaP -A nixpkgs.haskell.packages.ghc802 'hail.*'
<RyanGlScott>
error: anonymous function at /nix/store/7y04vj44h8gc1s5f2gydbzbbv8bg0n9d-nixpkgs-18.09pre139869.83b3e6d705e/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix:49755:6 called without required argument 'ghc-compact', at /nix/store/7y04vj44h8gc1s5f2gydbzbbv8bg0n9d-nixpkgs-18.09pre139869.83b3e6d705e/nixpkgs/pkgs/development/haskell-modules/m
<RyanGlScott>
ake-package-set.nix:88:27
<RyanGlScott>
Note that replacing ghc802 with ghc822 fixes the issue.
hlolli_ has quit [Ping timeout: 240 seconds]
<boomshroom>
Freetype doesn't crosscompile for aarch64 either.
<elvishjerricco>
RyanGlScott: Looks like the versions of hail and its dependencies checked into nixpkgs include a dependency on `ghc-compact`, which made its debut in 8.2
<fatsau>
My problem is that I got an error from pip._internal import main, no module named _internal
<RyanGlScott>
elvishjerrico: I see. I suppose the error message can't be helped, then?
<elvishjerricco>
RyanGlScott: You could add some overrides to downgrade the versions of things until they no longer need that dependency
<elvishjerricco>
RyanGlScott: If you end up needing git checkouts of anything, you can replace the version string with a derivation that returns source code.
vaninwagen has quit [Ping timeout: 256 seconds]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
periklis has quit [Ping timeout: 240 seconds]
<fatsau>
same thing if I use python36Packages instead of python27Packages
toby1851 has joined #nixos
Twey has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 248 seconds]
obadz- has joined #nixos
spear2 has joined #nixos
ambro718 has joined #nixos
jperras has joined #nixos
obadz has quit [Ping timeout: 250 seconds]
obadz- is now known as obadz
jacereda has joined #nixos
MichaelRaskin has joined #nixos
<jacereda>
hi... quick question, how can I enter the environment of a failed build (nix-build -K) to diagnose what went wrong?
<catern>
elvishjerricco: thanks!
<catern>
hmm. when I do nixos-rebuild build -I nixos-config=/path/to/config.nix, I see that it says it's building '/nix/store/...-nixos-system-17.03.1556.4d1e1d07f9.drv'. but why is it 17.03? I can't figure out what on my system is picking up an old 17.03 release; my system channel and user channel are both 18.03 AFAICT
<{^_^}>
[nixpkgs] @xeji pushed commit from @markuskowa to master « openmpi: 3.0.1 -> 3.1.0 (#40344) »: https://git.io/vpyV5
<sphalerite>
jacereda: nix-shell
<sphalerite>
jacereda: so you have the build dir in /tmp/nix-build-foo
<sphalerite>
jacereda: and you can just do nix-shell /nix/store/<hash>-foo.drv to enter an approximation of the build environment
<jacereda>
sphalerite: great, thanks!
<sphalerite>
It should tell you the path to the .drv in the error message
<{^_^}>
[nixpkgs] @xeji merged pull request #40357 → Fix small typo in configuration documentation → https://git.io/vpDjM
<{^_^}>
[nixpkgs] @xeji pushed commit from @scotttrinh to master « Fix small typo in configuration documentation (#40357) »: https://git.io/vpywf
ftzm has joined #nixos
<fatsau>
For the record, I resolved my problem in switching the line "export PATH=$PWD/venv/bin:$PATH" to "export PATH=$PATH:$PWD/venv/bin". PATH order seems to matter for pip
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « hstr: 1.24 -> 1.25 (#40352) »: https://git.io/vpywR
rain1 has quit [Quit: Leaving]
<neonfuz>
anyone know if there's a nixos package that contains the android cli tools?
<neonfuz>
like adb, fastboot, etc
jacereda has quit [Ping timeout: 240 seconds]
<boomshroom>
neonfuz: nixos.org/nixos/options.html#android programs.adb.enable I'm not sure if they'll work without the system module.
spear2 has quit [Quit: Leaving]
<infinisil>
> option "programs.adb.enable"
<{^_^}>
"Whether to configure system to use Android Debug Bridge (adb).\nTo grant access to a user, it must be part of adbusers group:\n<code>users.extraUsers.alice.extraGroups = [\"adbusers\"];</code>\n"
<neonfuz>
hmm, these are the tools I need, they seem to not be referenced in all-packages.nix
<infinisil>
(I should make `option` link to it probably)
orivej has joined #nixos
<neonfuz>
programs.adb.enable seemed to give me fastoboot too
<neonfuz>
so I guess "programs.adb" is really referring to android-platform-tools, not just adb
broccoli has joined #nixos
hph^ has quit [Ping timeout: 250 seconds]
broccoli has quit [Ping timeout: 250 seconds]
<mpickering>
I am struggling to set up the postgresql service, the error is "FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied"
<mpickering>
what am I doing wrong?
<srl295>
xeji: thanks for looking at the libvirt thing. What's the best way to drop to a minimal nixos environment from within nixos? OR maybe I should say, is there a better way to make a minimal sample for https://github.com/NixOS/nixpkgs/issues/40177#issuecomment-388335615
broccoli has joined #nixos
<elvishjerricco>
catern: Sometimes I have to do sudo -i instead of just sudo to get things to properly see root stuff instead of user stuff. Are you sure the root user's channel is updated?
<xeji>
srl295: what you provided was just fine. I mainly needed your current version and a virt-install command line to reproduce the bug
<srl295>
xeji: cool
<srl295>
xeji: this one is tricky because it doesn't appear without the inject option
MercurialAlchemi has quit [Ping timeout: 240 seconds]
qknight has quit [Quit: leaving]
<infinisil>
Replacing it with the correct hash via nix-prefetch-url --unpack makes it work, but i don't like doing that
<eacameron>
Is there a simple function like concatMapStringsSep but takes an attrset instead?
<boomshroom>
infinisil: Why are you using fetchurl rather than fetchFromGitHub?
joehh has quit [Ping timeout: 256 seconds]
<infinisil>
boomshroom: Because it's a builtin
<jD91mZM2>
Okay so my rustc version bump complains about a "relro-level" test failing. Apparently setting this value to zero doesn't actually disable it on NixOS. I'm guessing this is because of the GCC wrapper and default hardenings... So what is the best plan of attack? Leave the test be as it's intended behavior?
reinzelmann has quit [Quit: Leaving]
<sphalerite>
neonfuz: they're in androidEnv.platformTools in nixpkgs
ftzm has quit [Quit: WeeChat 2.2-dev]
<sphalerite>
neonfuz: I think the nixos option just adds udev rules to allow users access to devices, or something
<sphalerite>
in addition to adding the platform tools to systemPackages
<xeji>
srl295: thanks for catching this bug. not only file is missing but also cpio, gzip, e2fsprogs, findutils...
<sphalerite>
infinisil: iirc github's archives are nondeterministic
<sphalerite>
infinisil: builtins.fetchTarball might serve you better
<infinisil>
Well I've discovered that I need to include the .git
<infinisil>
And fetchGit { url = ...nix; rev = ...; } nicely for that
<boomshroom>
infinisil: fetchFromGitHub will usually download straight from the archive.
<infinisil>
I need to build latest nix because the memory issues are really bad..
<infinisil>
boomshroom: I need the .git though, so can't use that
<infinisil>
Well I know there's the keepDotGit
<infinisil>
But then it's just a normal git fetch, not optimized
jsantucci has joined #nixos
cheater has left #nixos [#nixos]
<srl295>
xeji: welcome - thank you for NixOS!
<jsantucci>
hi -- i'm having trouble with switching profiles. i just commented in #1396 in NixOS/nix, since the proposed strategy for making the `--switch-profile` command from the tutorial work was unsuccessful for me
<jsantucci>
here's the output of the nix-shell cmd: system: "x86_64-linux", multi-user?: no, version: nix-env (Nix) 2.0.2, channels(james): "nixpkgs-18.09pre139886.183f56f2d62", nixpkgs: /home/james/.nix-defexpr/channels/nixpkgs
<infinisil>
The build couldn't finish after all, adding 8GB swap to my 16GB RAM in the hopes of that working..
<Lisanna>
seems like a whole bunch of usecases for passing random packages into runInLinuxVM would break because it's forcing it to be a directory... whenever the output of a derivation is a file rather than a directory. Fix for this seems trivial enough I guess
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #40378 → lib/systems: Sort platforms, and space CPUs → https://git.io/vpyKb
<{^_^}>
→ 341794a4 by @Ericson2314: lib/systems: Sort platforms, and space CPUs
<{^_^}>
→ 0a77a728 by @Ericson2314: Merge pull request #40378 from obsidiansystems/lib-platform-sort
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #40379 → lib/systems: Sort platforms, and space CPUs → https://git.io/vpyKx
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to release-18.03: https://git.io/vpyMR
<{^_^}>
→ 341794a4 by @Ericson2314: lib/systems: Sort platforms, and space CPUs
<{^_^}>
→ 62ccc232 by @Ericson2314: Merge pull request #40379 from obsidiansystems/lib-platform-sort
<{^_^}>
[nixpkgs] @Ericson2314 pushed 14 commits to staging: https://git.io/vpyMr
<{^_^}>
→ 46fa7ab6 by @catern: pythonPackages.outcome: init at 0.1.0a0
<{^_^}>
→ c983bbb5 by @catern: pythonPackages.trustme: init at 0.4.0
<{^_^}>
→ f78c2523 by @catern: pythonPackages.trio: init at 0.4.0
dbe has quit [Ping timeout: 240 seconds]
shabius has quit [Quit: Leaving]
griff_ has joined #nixos
nineteen8d has joined #nixos
shabius has joined #nixos
<nineteen8d>
I'm definitely way into the idea of including shell.nix files in project. I have a project that is believed to require Ruby 2.3.6 (probably doesn't, but this is a good exercise). nixpkgs currently provides 2.3.7 at nixos.ruby_2_3. I produced the following shell.nix: https://gist.github.com/198d/b0e4c110f22500756c5923ca4418582e. I'm curious if anyone could provide a little code review to show me some shortcuts.
<nineteen8d>
The biggest bit I had trouble with was that `postUnpack`. Without copying it to my overrides map, cp complained about not being able to create source/rubygems`, which, I think, means it had resolved `sourceRoot` to
<nineteen8d>
The biggest bit I had trouble with was that `postUnpack`. Without copying it to my overrides map, cp complained about not being able to create "source/rubygems", which, I think, means it had resolved `sourceRoot` to "source".
<nineteen8d>
This, then, caused me to have to copy over the `rubygemsPatch` stuff.
seanparsons has quit [Read error: Connection reset by peer]
mkoenig has quit [Remote host closed the connection]
shabius has quit [Ping timeout: 256 seconds]
obadz has quit [Ping timeout: 256 seconds]
seanparsons has joined #nixos
shabius has joined #nixos
chessai has quit [Remote host closed the connection]
TonyTheLion has joined #nixos
<nh2[m]>
how can I use nix-copy-closure to fetch something already built on a remote machine, if I only know the .drv file locally, not the final store path?
cheshircat has quit [Quit: ZNC 1.6.5 - http://znc.in]
<infinisil>
And add something with extra-substitutors
<infinisil>
nh2[m]: And .drv files contain the final store path: nix-store -q --binding out /nix/store/sw7jwfz8f4lkfn10zm9aandzhkl2hwij-hello-2.10.drv => /nix/store/kajincka2wm4qdp4vnrnjr9jrc94gb6z-hello-2.10
cheshircat has joined #nixos
hiratara has joined #nixos
<cheshircat>
hey, do you guys know if there's a way to use an emacs package that's in share/emacs-lisp of another package?
simukis has quit [Ping timeout: 240 seconds]
<cheshircat>
specifically, I want to use lilypond-mode, which is installed in ${lilypond}/share/site-lisp
<jcrben>
when I do nix-env -qaP I see that I have nixos.libinput-1.9.4 while nixpkgs is has libinput-1.10.0... but neither are installed while I did enable libinput
robstr has quit [Quit: WeeChat 1.9.1]
<LnL>
that's your user profile
<jcrben>
yep, I get those are the packages available to be installed from channels. so how I find out what's running on my system?
<LnL>
nix-store -qR /run/current-system will show you everything your system currently depends on
<jqqq>
I kinda thought `nix run` was supposed to be a drop in replacement for `nix-shell` but `cabal` can find `zlib.h` when I provide it via `nix-shell` but not with `nix run`
<jqqq>
What does `nix run` actually do/what are the differences?
<LnL>
it's not that complex and we do have other things like toINI
<eacameron>
LnL: Yeah my thoughts exactly. The only thing I might is a variant of toPLIST that allows to splice verbatim as well at the bottom of the list or or something
<eacameron>
*might want
<cheshircat>
thank you!
LysergicDreams has quit [Ping timeout: 260 seconds]
LysergicDreams has joined #nixos
xy2_ has quit [Ping timeout: 265 seconds]
<infinisil>
Oh my god, out of all things that could have broken with an update it has to be one of the worst ones
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to release-18.03: https://git.io/vpyFc
<{^_^}>
→ e3f6c6d1 by @Ericson2314: lib: Add 32-bit Android platforms
<{^_^}>
→ c674fa8e by @Ericson2314: Merge pull request #40386 from obsidiansystems/lib-android-platforms
<drummeur>
Which channel would be appropriate to ask for installation help?
<infinisil>
drummeur: This one
<drummeur>
Okay, fantastic. I’m going through the installation instructions. I’ve mounted the iso, but when I run NixOS-generate-config —root /mnt I get an error saying it’s read-only
<drummeur>
I suspect this is because i’m Installing from a CD?
<infinisil>
Nah, you must've made a mistake, /mnt should be your new mutable filesystem on a disk
<Ralith>
is there any way to upload new signatures for already-uploaded data to a binary store?
<drummeur>
Okay. Should I start the whole thing over again, or is there a way to figure out where I went wrong?
Arcaelyx has joined #nixos
<infinisil>
drummeur: Yeah you just need to fix the things that went wrong, no need to redo everything. What's the output of `df`?
<drummeur>
Uh, a lot. I’m on my phone atm, so it would take a minute to type. What specifically should I be looking for?
ryantrinkle has joined #nixos
<drummeur>
devtmpfs ... /dev
<drummeur>
Eh, that didn’t work. Can I do a new line in this client?
<jcrben>
so, vscode-cpptools contains a hardcoded link out to a dynamic linker and we use patchelf to fix that in nixpkgs. is it possible for Microsoft to fix the way they build it upstream to avoid us needing to even use patchelf? https://github.com/Microsoft/vscode-cpptools/issues/1345
<infinisil>
drummeur_: Read from point 8 onwards
shabius has quit [Quit: Leaving]
griff_ has quit [Quit: griff_]
<drummeur_>
hmm, I thought I did all of that.
<drummeur_>
I partitioned, created a swap
<drummeur_>
oh, i didn't initialize the ext4
shabius has joined #nixos
<infinisil>
And you need to mount them
<jcrben>
I'm wondering if maybe LD_LIBRARY_PATH could allow it to avoid being hardcoded? I'm far from a C developer
<{^_^}>
→ ea502c68 by R. RyanTM: libdrm: 2.4.91 -> 2.4.92
<{^_^}>
→ 6d9f8b8f by @xeji: Merge pull request #40348 from r-ryantm/auto-update/libdrm
shabius has quit [Quit: Leaving]
romildo has joined #nixos
<drummeur_>
okay, just one other question. I have an instance of grub alredy installed on another drive from an ill-fated installation of debian. Should I try to use that instance or just reinstall it? I currently have my other drives unplugged because I didn't want to accidentally mess something up while partitioning.
<clever>
drummeur_: nixos needs to rewrite the grub config on every config change, so it needs to know where grub is configured to even work
<{^_^}>
→ f4de6697 by @Ericson2314: lib/systems/inspect: Fix after assertions
<{^_^}>
→ 28bacc20 by @Ericson2314: lib/systems: Add assertion to "android" ABI
<{^_^}>
→ 827ef091 by @Ericson2314: prebuilt android cc: Edit wrapper to pass the right -m flags for armv7a
<drummeur_>
getting an error with the install...in hardware-configuration.nix i have fileSystems."/" defined twice--I think one is the iso on the cd and one is the actual disk, but I'm not sure. can I just remove the iso one?
<infinisil>
Is it still twice in there if you rerun "nixos-generate-config --root /mnt"?
<drummeur_>
yes
<clever>
drummeur_: can you gist the output of `mount` and the config that command wrongly generated?
<drummeur_>
yes. one second.
justan0theruser has quit [Ping timeout: 240 seconds]