<clever>
lovesegfault: also of note, you can run the 32bit version on a 64bit os without trouble, 99% of the time
<clever>
lovesegfault: so you could just ignore the 64bit version
<lovesegfault>
clever: Yes, but that's nasty :P
erictapen has quit [Ping timeout: 240 seconds]
<CMCDragonkai>
What could be the reason that on boot, TTY1 is blank and unresponsive, but TTY2/3...etc all work and I'm able to login to single-user mode?
<lovesegfault>
clever: error: undefined variable 'arch_table' at /home/bemeurer/src/nixpkgs/pkgs/tools/audio/essentia-extractor/default.nix:16:10
<lovesegfault>
huh
<lovesegfault>
it's defined right there
<clever>
lovesegfault: it must be in a let block, above stdenv.mkDerivation
<lovesegfault>
Ah, makes sense
erictapen has joined #nixos
Rusty1 has quit [Remote host closed the connection]
<lovesegfault>
clever: error: undefined variable 'version' at /home/bemeurer/src/nixpkgs/pkgs/tools/audio/essentia-extractor/default.nix:23:78
<lovesegfault>
Huh
<lovesegfault>
That one is right there too
<clever>
lovesegfault: rec {
<lovesegfault>
Ooooh
<lovesegfault>
I need to specify when it's recursive
ddellacosta has joined #nixos
<lovesegfault>
How can I tell nix-build to build for i686
<clever>
lovesegfault: --argstr system i686-linux
<lovesegfault>
:D
<lovesegfault>
IT WORK
drewr has quit [Ping timeout: 252 seconds]
<CMCDragonkai>
Could it be that I've only set the videoDrivers to `nvidia` but I'm actually displaying through VGA and thus onboard intel graphics, but why would TTY2..TTY6 would work?
kleisli has joined #nixos
travelion7 has quit [Remote host closed the connection]
irl25519 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @lovesegfault opened pull request #73589 → essentia-extractor: init at 2.1_beta2 → https://git.io/JeKJm
irl25519 has joined #nixos
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
bvdw has quit [Quit: bvdw]
<{^_^}>
[nixpkgs] @risicle opened pull request #73590 → [r19.09] ghostscript: add patches for CVE-2019-3835, CVE-2019-3838, CVE-2019-14869 → https://git.io/JeKJG
bvdw has joined #nixos
gyroninja has quit [Ping timeout: 276 seconds]
lovesegfault has quit [Ping timeout: 240 seconds]
noudle has quit []
irl25519 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
irl25519 has joined #nixos
gyroninja has joined #nixos
sheenobu has joined #nixos
<{^_^}>
[nixpkgs] @MilesBreslin opened pull request #73591 → nixos/pam: Add option to set pam-u2f appid → https://git.io/JeKJC
<sheenobu>
hoping to start bootstraping back onto nixos. hydra search isn't working but hey i was able to guesswork my way to the url for nixos:release-19.09:nixos.containerTarball.x86_64-linux
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm has joined #nixos
irl25519 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<__red__>
"all my attempts to package it have left me depressed" -- I know this feeling well ;-)
<gyroninja>
https://github.com/NixOS/nixpkgs/pull/53854 forgotten PR which fixes broken packages on release-19.09 and master. I applied it to release-19.09 and both packages built fine.
<{^_^}>
#53854 (by evhan, 44 weeks ago, open): ugarit: fix build by using chicken-4.x
<lovesegfault>
__red__: It uses bloody waf
justanotheruser has quit [Ping timeout: 240 seconds]
<__red__>
honestly - I think someone is going to ask you to slay the waf beast
<lovesegfault>
__red__: I've spent weeks trying to package essentia before
<__red__>
I don't doubt it :-(
<lovesegfault>
I tried to package it for Gentoo first since I know ebuilds really well
<__red__>
was anyone able to help you with it?>
<lovesegfault>
And I failed
<lovesegfault>
I tried Nix and failed too
<lovesegfault>
The issue is the build system is _broken_
<lovesegfault>
docs are broken
<lovesegfault>
it's a broken mess of code
<lovesegfault>
and then MusicBrainz asks that you _don't_ compile it and use the static binary so that they can keep the data source consistent
<__red__>
I would add the answer to the FAQ question: "Q: Why does AcousticBrainz prefer that people use the provided static extractor builds, rather than letting others build their own versions?" to your PR to explain
felixfoertsch has quit [Ping timeout: 240 seconds]
<__red__>
since that shows there's an actual reason for prefering their binary blob
<lovesegfault>
Yeah
selfsymmetric-mu has quit [Ping timeout: 240 seconds]
<andi->
lovesegfault: in a bit or ping me tomorrow
<lovesegfault>
andi-: did you get back well?
<{^_^}>
[nixpkgs] @ahiaao opened pull request #73599 → python37Packages.PyLD: fix behavior to terminate generators → https://git.io/JeKTY
<andi->
lovesegfault: besides the f*cked up sleep schedule I think so... I haven't done much but sleep
<lovesegfault>
andi-: At least you slept on the plane!
<andi->
~4h or so ;-)
<lovesegfault>
Sounds like a healthy amount for me :P
<lovesegfault>
I bumped network-manager and am now rebuilding 800 pkgs :^)
<__red__>
yeah - some packages are like walking through a museum. If you're not careful where you're looking you start a chain reaction that breaks everything...
<bdju>
infinisil: cool, thanks for linking. guess it's almost ready then
kleisli has joined #nixos
<lovesegfault>
ryantm: addressed :)
nexgen has joined #nixos
orivej has joined #nixos
<lovesegfault>
How does nix-build figure out the compilation order?
<lovesegfault>
The optimal solution sounds like the sort of thing that would be NP-Complete
<infinisil>
I think it's just alphabetical or so
<clever>
plus a topo-sort
<slack1256>
^ CS vs soft-development in a nutshell
<infinisil>
lovesegfault: It gets even more complicated if you take --cores and --max-jobs into account
<infinisil>
Like many times more complicated
<infinisil>
Because different derivations can take advantage of parallelism to different degrees
<clever>
one weird thing i discovered in the garbage collection code, is that it intentionally random-sorts the entire list of garbage, before deleting things
<clever>
so it doesnt delete the A packages every single time
<lovesegfault>
infinisil: Yes, that makes it even harder
<lovesegfault>
I wonder how much benefit we would get from trying some heuristic solution
<lovesegfault>
specially for big rebuilds
<lovesegfault>
(like bumping GCC)
jluttine has joined #nixos
<clever>
lovesegfault: the topo-sort forces it to build gcc first, before it can do anything else
<lovesegfault>
clever: Sure, but that still doesn't guarantee an optimal solution
<clever>
what could be optimized more?
<lovesegfault>
IIRC an optimal solution requires some awareness of the 'cost' of building a package
<lovesegfault>
where cost is time
<clever>
ah
<clever>
thats where system features like big-parallel and preferLocalBuild come into play
<lovesegfault>
Things like Hydra, however, do have that knowledge
<clever>
> linux.requiredSystemFeatures
<{^_^}>
[ "big-parallel" ]
<lovesegfault>
What's that?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<clever>
the kernel is specially flagged to only run on build machines that have the "big-parallel" feature
<clever>
so nix wont allocate it to weaker machines
<lovesegfault>
Ah, I assume chromium is like that too
<lovesegfault>
> chromium.requiredSystemFeatures
<{^_^}>
attribute 'requiredSystemFeatures' missing, at (string):271:1
<clever>
chromium is a wrapper script, that sets env vars
<lovesegfault>
Right
<clever>
> removeReferencesTo.preferLocalBuild
<{^_^}>
true
<clever>
you also have the reverse
<clever>
this build will try to skip the remote build machines, and build on the local instead
<infinisil>
Ah yes, multiple builders make this even more complex
<clever>
thats for things where copying is more expensive then building
<lovesegfault>
infinisil: I think with remote builders you just need to keep comptime-histories separate
<lovesegfault>
Does take special care
<clever>
lovesegfault: with remote builders, you also have a speed factor, which tells nix the relative speed difference between machines
captn3m0 has quit [Ping timeout: 276 seconds]
<clever>
so it will put jobs on a certain machine first
<lovesegfault>
clever: I see
<wedens[m]>
if I use channels with pinned revisions, how do I keep them in sync on multiple machines? how do I set them up during nixos-install?
<lovesegfault>
Another thing is that the absolute compilation time doesn't matter, what matters is that times are relatively-consistent (to one another)
slack1256 has quit [Remote host closed the connection]
<infinisil>
wedens[m]: I'd not use channels but set your nixpkgs directly in NIX_PATH
<clever>
infinisil: main issue ive seen with that, is the change wont take effect until you reload all shells
<clever>
infinisil: it is possible to point nix-channel to a single rev i believe
<wedens[m]>
infinisil: that's what I did, but it caused other inconsistencies
<wedens[m]>
infinisil: for example, nixos-rebuild doesn't use nix_path
<wedens[m]>
and you have to re-type it in `-I a = b` form
<clever>
wedens[m]: it does use $NIX_PATH, it will search for <nixpkgs>
mexisme has quit [Ping timeout: 252 seconds]
<wedens[m]>
clever: but it doesn't use other paths
<clever>
other paths?
<infinisil>
Do you mean than that the initial nixos-rebuild won't use the one set in nix.nixPath
<infinisil>
?
<wedens[m]>
yes
<wedens[m]>
that's also a problem
<wedens[m]>
and it's a wider issue
<wedens[m]>
it won't use substitutes, builders, etc
<infinisil>
I personally use a wrapper for nixos-rebuild that sets this correctly
<wedens[m]>
I was about to do just thatbut decided to give pinned channels a try
<infinisil>
Hm, I guess it would be possible to set NIX_CONF_DIR in the wrapper to `nix-build '<nixpkgs/nixos>' -A 'config.environment.etc."nix.conf".text'` or so to make it apply all settings immediately
<wedens[m]>
the problem is that you can't reuse nix daemon configuration from nixos to build with the same configuration
<infinisil>
Well except builders
<mog>
what is the proper way to add udev rules to nix as part of a package
<infinisil>
mog: Put them in $out/etc/udev/rules.d
<clever>
mog: and then add that package to services.udev.packages
<wedens[m]>
if I add some package and a binary cache with the package to nixos configuration, I'll have to do it in 2 steps to avoid building the package. on all machines
<wedens[m]>
which doesn't sound right
<infinisil>
wedens[m]: With what I described earlier you could do it
<infinisil>
The NIX_CONF_DIR thing
<wedens[m]>
is it universally respected?
<infinisil>
It is what Nix uses to read the configuration so yes
<wedens[m]>
by all nix commands
<lovesegfault>
building webkitgtk-2.26.2 (buildPhase): See the help page for details.
<lovesegfault>
Oh god
<infinisil>
wedens[m]: Oh and it could work for remote builders too: If you set `builders = @/some/file` in nix.conf it uses that file instead of the default /etc/nix/machines
hr[m] has joined #nixos
<infinisil>
(and nix.conf can be passed with an env var)
<infinisil>
s/an env var/NIX_CONF
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<wedens[m]>
infinisil: yeah, that looks promisisng
* hr[m]
sent a long message: < >
<wedens[m]>
remove /nix/store/gp78c3dj8awxd85s0vr8wqgd9ny2plvv-source.drv and add the file via `nix-store --add `
<hr[m]>
I have tried copying using `nix-store --add ./path-to-nerdfonts.tar.gz`
<clever>
hr[m]: if it results in anything other then /nix/store/zjwrdr9wz0dacqximknidpf27sfbw762-source, then it failed
<hr[m]>
When I use prefetch-url it attempts to download the file again, the issue is that the download fails because of a failure to begin the download again if it is interupted due to a slow connection.
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
<hr[m]>
That succeeded, nixos-rebuild switch completed. Thanks for helping me solve this, I've been working on it over the past few days but its good to understand you can use `nix-prefetch-url --unpack --name VAR` with a dir to copy it into the store.
<hr[m]>
My nerdfonts are back and terminal looks great again
LarryTheCow has joined #nixos
<LarryTheCow>
Hi everyone, I've got a question. My systemd-boot doesn't seem to show previous generations anymore
<LarryTheCow>
Why?
<clever>
LarryTheCow: is /boot mounted?
<LarryTheCow>
clever: ye
veleiro` has quit [Remote host closed the connection]
<clever>
LarryTheCow: what does systemd-boot show?
<LarryTheCow>
Nothing. It just straight up boots into the OS
<LarryTheCow>
It used to give a screen where I picked the previous generations
<infinisil>
LarryTheCow: What did you do that changed this?
<LarryTheCow>
infinisil: I don't know...
<LarryTheCow>
It's been like this for a while
<infinisil>
Well it's most likely a nixpkgs update
inkbottle has joined #nixos
<clever>
LarryTheCow: what does `efibootmgr -v` print out?
<clever>
LarryTheCow: i see evidence of 2 previous ESP's, which may or may not exist anymore
<LarryTheCow>
clever: Should I remove them?
<infinisil>
Never mind, null is actually the correct value there
<clever>
LarryTheCow: i dont think they are the problem, but it cant hurt to clean them up
<LarryTheCow>
lol true
<clever>
LarryTheCow: the man page should explain how to remove entries
<LarryTheCow>
Yeah efibootmgr will do the trick
<clever>
Boot0001 is the important one
<clever>
LarryTheCow: does `ls /sys/firmware/efi/efivars/ | grep -i system` find anything related to systemd?
<LarryTheCow>
LenovoSystemConfig, LoaderSystemToken, and System
<LarryTheCow>
no systemd
<clever>
not sure then
<LarryTheCow>
Thanks for the help anyways
<LarryTheCow>
I'm gonna try infinisil's idea
<LarryTheCow>
I know null's supposed to be no limit, but changing it might help
LarryTheCow has quit [Quit: ERC (IRC client for Emacs 26.3)]
<infinisil>
,tell LarryTheCow Having looked at the code, I really don't think it's gonna help, but it's not a bad idea to limit the number of entries anyways
<{^_^}>
infinisil: I'll pass that on to LarryTheCow
Rusty1 has quit [Quit: Konversation terminated!]
<wedens[m]>
infinisil: is `nix-build '<nixpkgs/nixos>' -A 'config.environment.etc."nix.conf".text'` supposed to produce nix.conf content from unbuilt configuration?
LysergicDreams has quit [Ping timeout: 276 seconds]
<infinisil>
wedens[m]: Ah you need to use .source instead of .text I think
<infinisil>
.source contains a buildable derivation, .text only a string
<infinisil>
Should at least
<infinisil>
Lemme see, not quite correct after trying it out..
LysergicDreams has joined #nixos
<infinisil>
wedens[m]: Ah this works: nix-build '<nixpkgs/nixos>' -A 'config.environment.etc."nix/nix.conf".source'
Okinan has joined #nixos
Acou_Bass has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
<wedens[m]>
thanks. and for builders it's, appraently, `nix-build '<nixpkgs/nixos>' -A 'config.environment.etc."machines".text'`
<clever>
infinisil: its more of just a shortcut, you basically always need stdenv, saves you from adding another arg to callPackage inputs
<infinisil>
Except it causes more confusing than worth
<infinisil>
Like it's just 4 chars you need to add to get lib in scope next to stdenv
<infinisil>
Before I knew about it being a shortcut i kind of thought stdenv.lib was something different than lib
<infinisil>
And then people also need to type stdenv.lib.* everywhere instead of just lib.* which would be shorter and less annoying the more you use things from lib
Diagon has joined #nixos
<infinisil>
All that trouble just to save 4 chars!
<lovesegfault>
infinisil: it's tabs v spaces all over again!
<wedens[m]>
and if you have something like version substitution in url, you're fooked
* clever
heads to bed
m0rphism has joined #nixos
<niso>
thanks, assuming it doesn't, how could i trace that problem?
<niso>
i've got a hydra instance running which should have 2 packages on channel/latest, however the second one seems to get ignored by the client (which building fine on the server
<niso>
)
<niso>
*while
<wedens[m]>
niso: are you sure you're running update as the same user?
<niso>
wedens[m]: yes, i removed the .nix-defexpr and it re-constructed
<niso>
however it seems to contain old-state
<niso>
is channel/latest tied to e.g. a release?
Okinan has joined #nixos
<wedens[m]>
what do you mean "tied"?
<clever>
niso: what does nix-channel --list report?
reallymemorable has quit [Quit: reallymemorable]
Thra11 has joined #nixos
MichaelRaskin has quit [Quit: MichaelRaskin]
<niso>
clever: wedens[m]: alright, i'm sorry. turns out i added the channel in question twice (and checked the wrong one.....)
<clever>
i try to only use channels on root
* niso
should have thought of that a couple of hours ago....
<clever>
less confusing that way
<colemickens>
Has anyone seen this when building Go programs in nixpkgs tree? verifying github.com/jiacfan/keyctl@v0.3.1: github.com/jiacfan/keyctl@v0.3.1: Get https://sum.golang.org/lookup/github.com/jiacfan/keyctl@v0.3.1: dial tcp: lookup sum.golang.org on [::1]:53: read udp [::1]:35113->[::1]:53: read: connection refused
civodul has joined #nixos
<clever>
colemickens: the network is always disabled while building, nix must fetch the deps for you
<niso>
clever: i'll consider that thanks. i'm currently trying to setup a repo for all project dependencies (e.g. formatter etc). I'm still torn if i should stick with the channles, or use flakes.
<niso>
might aswell consider sticking with root channels
* clever
tries to get to bed, lol
<colemickens>
clever: I'm used to this working with buildGoModule though
<colemickens>
in fact, this is branch that worked a while back that no longer works after a rebase (and admittedly a bugfix bump in the src too)
m0rphism1 has joined #nixos
erictapen has joined #nixos
lord| has quit [Read error: Connection reset by peer]
exfalso has joined #nixos
m0rphism1 has quit [Ping timeout: 245 seconds]
ckauhaus has joined #nixos
lord| has joined #nixos
<{^_^}>
[nixpkgs] @colemickens opened pull request #73613 → HELP NEEDED: azcopy: v10.0.1 -> v10.3.2 → https://git.io/JeKta
noudle has quit []
<{^_^}>
[nixpkgs] @roberth opened pull request #73614 → nixos/ids: Add types to allow overrides on static uids, gids → https://git.io/JeKtV
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
Mmm is there a way to have a more global way of doing nixos module overlays?
<dminuoso>
I have the following issue
<dminuoso>
I split my rspamd configuration into 20ish nixos modules, all of which tap into the rspamd nixos module.
<dminuoso>
It's a bit tiring to always mark rspamd as disabledModules and then change it with my own module
lord| has quit [Read error: Connection reset by peer]
<dminuoso>
I'd kind of prefer specifying once to disable that module and use my fixed one instead.
<{^_^}>
[nixpkgs] @ilikeavocadoes opened pull request #73615 → yadm: add missing dependency on git → https://git.io/JeKt6
lord| has joined #nixos
<tilpner>
dminuoso: Can your own module set disabledModules perhaps?
<eon`>
dminuoso: I don't think taht's possible, maybe you could name your own module differently
<colemickens>
is it possible to get nix-build to be a no-op if substitions exist for all derivations (aka, skip downloading everything)
<colemickens>
(imagine nix in a CI scenario where everything is up to date)
<colemickens>
in fact, a step further, only downloading what is needed to build derivations for which substitutions don't exist would be ideal.
<dminuoso>
eon`: Mmm that sounds like the simplest option.
hmpffff has joined #nixos
jgt2 has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
lord| has quit [Ping timeout: 250 seconds]
lord| has joined #nixos
zupo has joined #nixos
Chiliparrot has joined #nixos
m0rphism1 has joined #nixos
gxt has joined #nixos
smatting_ has joined #nixos
lord| has quit [Read error: Connection reset by peer]
Makaveli7 has joined #nixos
lord| has joined #nixos
Fare has quit [Quit: Leaving]
m0rphism1 has quit [Ping timeout: 240 seconds]
logzet has joined #nixos
lord| has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @peti pushed to master « obs-studio: package the missing ndi library to make the obs-ndi plug-in actually work »: https://git.io/JeKqW
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
lord| has joined #nixos
markus1189 has joined #nixos
CMCDragonkai has joined #nixos
<CMCDragonkai>
Hoping someone can answer my question about iPXE signatures https://ipxe.org/crypto
<CMCDragonkai>
If I sign my kernel/initrd and I have these signature files.
<CMCDragonkai>
Why are the signature files also loaded on the network? Shouldn't they be embedded in the iPXE binary so that it can verify if the images should be trusted?
<CMCDragonkai>
If the signatures are also downloaded over the network, what's stopping an attacked from supplying a compromised image along with the compromised signature at the same time?
sigmundv has joined #nixos
<betaboon>
CMCDragonkai: dont you have to build a ipxe.iso with the root-ca included ? if so, transfering the signatures via the network is secure.
<CMCDragonkai>
betaboon: so we are relying on the fact that the signature would be signed with a root CA that the ipxe has embedded as well?
<niso>
ivan: sweet, thanks! another question: i've read that using nixpkgs within a private repo is possible with some kind of hack in the NIX_PATH -> what could that be?
<ivan>
your nixpkgs is private, or the sources for your packages are private?
<niso>
ivan: both (but asking because if the first)
<niso>
ivan: i got it to build in hydra, however uppon trying to integrate it via channel nix complains that it doesn't know about stdenv
<ivan>
I just set a hydra input to have value /home/at/repos/nixpkgs.git prime where prime is my branch
<ivan>
then push to the server with the hydra
<ivan>
I don't know about channels, sorry
darthdeus has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
<niso>
ivan: hmm alright, thanks!
Ariakenom has quit [Quit: WeeChat 2.6]
lopsided98 has quit [Ping timeout: 250 seconds]
cfricke has quit [Quit: WeeChat 2.6]
<raboof>
been using nixos for a couple of weeks now, mostly really liking it.
m0rphism1 has quit [Ping timeout: 265 seconds]
lopsided98 has joined #nixos
<DigitalKiwi>
well if that's not ominous i don't know what is
<raboof>
the main weird thing to me is the split between /etc/nixos and nix-env, since this is a laptop so there is no practical difference. I've been preferring editing /etc/nixos over using nix-env but it's a bit weird. Any recommendations on how to handle that?
<symphorien>
avoid nix-env if you can :)
ingenieroariel has joined #nixos
<symphorien>
if you prefer not using sudo to edit the configuration, home-manager is better than nix-env
<qyliss>
symphorien++
<{^_^}>
symphorien's karma got increased to 25
<raboof>
also I'm running a nixpkgs fork in ~/nixpkgs so I find myself adding "-I nixpkgs=/home/aengelen/nixpkgs" all the time - looks like I can add that to NIX_PATH, but I wonder if it's possible to make this an even more global default?
<raboof>
symphorien: i'm fine with sudo'ing, but it's slightly weird to see nix-env all over the docs all the time ;)
<adisbladis>
raboof: nix.nixPath
<DigitalKiwi>
i'm a heathen that uses nix-env for temporary things that i may only want to try for a few days and/or don't want to rebuild because it would be inconvenient.later i put them in configuration.nix if i want to keep them and remove them
<qyliss>
Isn't that what nix-shell / nix run is for?
knupfer has joined #nixos
<DigitalKiwi>
yeah but i don't want to type nix-shell every time i want to try a program and i can't launch it with gmrun and i'll forge the name. nix-env -q will remind me
<DigitalKiwi>
forget, even
ingenieroariel has quit [Client Quit]
<DigitalKiwi>
nixos-rebuild switch has a tendency to break my desktop environment and kill my mouse and internet
<DigitalKiwi>
usually when i do it it's like "oh i've never heard of this program/haven't used it in a while/don't know if i like it, let's try it for a few days" if i stash it in my configuration i'm less likely to get rid of it >.>
<DigitalKiwi>
(for the same reason, i'll forget about it)
m0rphism1 has joined #nixos
gagbo has joined #nixos
Thra11 has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
symphorien: what do you mean you don't include a git repo from your home in your configuration.nix? >.>
<symphorien>
/etc/nixos is a git repo
cosimone has joined #nixos
<symphorien>
but yes I could push the logic further
<etu>
DigitalKiwi: Not if you chown the directory :p
<DigitalKiwi>
plz don't hack me
<dminuoso>
wedens[m]: It's not configuration
cosimone has quit [Client Quit]
cfricke has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 276 seconds]
knupfer1 is now known as knupfer
<Izorkin>
etu: checked php 7.4?
<etu>
Izorkin: Sorry, didn't have time during the weekend. But I look into it tonight (in about 3 hours) when I get to the computer club :)
<Izorkin>
ok
sweep has joined #nixos
exfalso has quit [Quit: Lost terminal]
Thra11 has joined #nixos
<eyJhb>
Anyone know how to remove previous TLP settings the right way? I have disabled tlp, but I still cannot charge above 72% ...
<raboof>
is there something like https://nixos.org/nixos/packages.html but for the commandline? "nix-env -qa '.*foo.*' is a mouthful and still only searches/shows the package names afaics
<eyJhb>
raboof: nix search pkgname
<eyJhb>
?
<raboof>
lol yup thx :D
<dminuoso>
Anyone else have an idea regarding my earlier question?
<dminuoso>
tilpner: Argh that is truly disgusting.
<dminuoso>
tilpner: I mean luckily in my case I can modify my module accordingly...
<dminuoso>
But for the more general case, this is not satisfying.
<dminuoso>
Anyhow, thanks for the pointer - I just didnt know where to look anymore.
<higherorder>
Hi! How can I install a particular version of GHC on my system with Nix? The default version seems to be 8.6.5 (as given by `nix-instantiate --eval --expr '(import <nixpkgs> { }).ghc.version'`)
<{^_^}>
[nixos-homepage] @raboof opened pull request #319 → Mention 'nix search' on search page → https://git.io/JeKss
<higherorder>
wedens[m]: that worked!
virusdave has joined #nixos
<virusdave>
hey folks! I'm running into an... interesting nix scenario. For $REASONS, i've installed nix on my chromeos chromebook, which if unfamiliar is basically a SELinux-hardened linux box
<virusdave>
this works ok-ish, except that the coreutils `mv` command often fails due to a failure to create a new security context object on the new file. However, when this happens, `cp` basically succeeds instead
domogled has quit [Remote host closed the connection]
<virusdave>
alas, large numbers of derivations rely on `mv` working, often during their build or install phases
<__monty__>
higherorder: Note that that's not a very useful command. Usually you don't want to install ghc without any packages.
domogled has joined #nixos
<higherorder>
__monty__: ah; well here I just want to install ghc 8.8.1 globally on my system (os x); is that the right command?
<virusdave>
any suggestions here? I've started down the road of 'for package X, so a patch all configure and makefiles to replace `mv` with `cp`, but that doesn't seem scalable
<__monty__>
higherorder: Not really, cause you can't add packages to it.
<virusdave>
alternatively, i'm considering patching the `coreutils` package to replace `mv` with `cp`, and use this patched coreutils when installing stuff
<__monty__>
Unless you want a GHC without any extra packages.
<higherorder>
__monty__: ah; what would be the ideal way to do this? it doesn't need to be installed globally per se, I just need to be able to compile my project using cabal in a ghc 8.8.1 environment
<virusdave>
but i can't help feel that i'm attempting to address symptoms instead of the problem itself
<virusdave>
would love advice
Chiliparrot has quit [Ping timeout: 245 seconds]
hyper_ch has joined #nixos
<__monty__>
higherorder: A shell.nix using ghcWithPackages as a buildInput. (Check out direnv and especially lorri to make this ergonomic.)
<higherorder>
__monty__: I use direnv (but not for nix); how can it help there?
<__monty__>
Normally you'd have to enter a nix-shell to access cabal/ghc etc. With direnv you can store the environment nix-shell creates, so whenever you change to the directory you can use cabal without running a nix-shell.
Chiliparrot has joined #nixos
<higherorder>
__monty__: oh that sounds super nice; do you have an example of it?
<__monty__>
Lorri automatically updates your environment if you change the shell.nix and pins the latest successful evaluation so it doesn't get garbage-collected (basically a necessity if you expect to be able to do any dev work when connected to the internet less than 100% of the time, imo)
<higherorder>
__monty__: ok I'll check that outk, thanks. And do you have an example of a shell.nix file with a specific version of GHC specified please?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @dminuoso opened pull request #73689 → Specify correct type for fuzzy worker → https://git.io/JeKsz
<__monty__>
Yes, has its own quirks though. As you can see from my shell.nix, so I'm not sure I'd recommend it to someone unfamiliar with nix and haskell.
<higherorder>
Ah ok. And re ghcWithPackages I was thinking of using cabal2nix
<wedens[m]>
cabal2nix is fine if you're prepared to stick with haskell packages version in specific nixpkgs revision or if you're prepared to add version overrides
<__monty__>
higherorder: Added my best guess for what you might want to do to the gist.
<higherorder>
__monty__: great, thanks! would you recommend using cabal2nix, or just giving up on a .cabal file and listing the pckages in the nix file directly?
<__monty__>
Oh, you have to have a .cabal file, this shell.nix doesn't build your package, that's why I have cabal-install in the shell.
<wedens[m]>
you don't really want to build using nix during development...
<__monty__>
I agree, cabal's incremental builds are a lot more fine-grained.
<__monty__>
And if you use v2-* commands you're getting all the nixy goodness anyway.
Thra11 has joined #nixos
domogled has quit [Quit: domogled]
<__monty__>
Thing about cabal2nix is it makes it a bit harder to add tools of your own choosing to a development shell. Like ghcid and fast-tags in my example.
<higherorder>
__monty__: ah, so I don't need to run my proejct's dependencies (from build-depends in the cabal file) in shell.nix?
<higherorder>
and I use the v2 commands
<__monty__>
I understand not wanting to specify deps twice but it doesn't bother me much so I keep it simple.
<__monty__>
You do need to add those.
<higherorder>
ah ok, so I need to keep those lists in sync
<higherorder>
that's fine yeah
<higherorder>
not a big deal
ggpeti has joined #nixos
<__monty__>
You can always explore the alternatives and haskell.nix when you get more comfortable with nix.
<wedens[m]>
you can use nix just for system dependencies
<ggpeti>
yo anyone run nixos tests on the reg? how long should the first time take? I've been running it in Virtualbox for ~2h now, it's still building stuff with no end in sight
<Ariakenom>
I am playing around with fonts. But the docs seem to assume knowledge about how font names connect to fonts and such. Is there anyplace I can read up on that?
m0rphism1 has joined #nixos
philr has quit [Ping timeout: 245 seconds]
Rusty1 has joined #nixos
<sshow>
I have never quite understood fonts in Linux. But are you talking about console fonts or fontconfig?
<sshow>
Ariakenom: ^
<inf>
Hey. I'm working on automated (pull-style) nixos configuration management for our project... Is there a way to set nix-channel version indempotently, or specify nix channel version when running nixos-rebuild?
Ariakenom_ has joined #nixos
LysergicDreams has quit [Ping timeout: 265 seconds]
Ariakenom has quit [Ping timeout: 240 seconds]
LysergicDreams has joined #nixos
cfricke has joined #nixos
cfricke has quit [Client Quit]
LysergicDreams has quit [Ping timeout: 265 seconds]
drakonis has joined #nixos
<manveru>
inf: it should respect NIX_PATH
sondr3 has quit [Quit: WeeChat 2.6]
LysergicDreams has joined #nixos
ggpeti has joined #nixos
ddellacosta has joined #nixos
iyzsong has quit [Ping timeout: 245 seconds]
<evanjs>
Anybody know if there's any progress in making a jupyterWith module?
<{^_^}>
[nixpkgs] @dasJ opened pull request #73690 → displaylink: Disable free space check → https://git.io/JeKZO
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to staging: https://git.io/JeKZ9
<evanjs>
I locked my nix version to 2.2 (stable) but it looks like 2.3 is on 19.09 and nixos-option is broken again 🙃
<evanjs>
I'd open an issue, but want to make sure it's nothing on my end, first
lassulus has quit [Quit: WeeChat 2.6]
lassulus has joined #nixos
<higherorder>
__monty__: wedens[m]: just got back; quick follow-up question: why do I need to specify haskell packages in the .nix? What role does it play? (since cabal has a way to fetch dependencies)
mmlb has joined #nixos
<wedens[m]>
you don't need to
cinimod has joined #nixos
<wedens[m]>
as I said, you can use nix just for system deps and tools (ghc,cabal-install,ghcid,stack, native libs, etc)
<higherorder>
ah; what do I gain by listing them there then?
ckauhaus has quit [Quit: WeeChat 2.6]
<higherorder>
wedens[m]: ^
<__monty__>
You do have to afaik.
<wedens[m]>
if you don't use nix to do the build, not much
<__monty__>
Doesn't GHC need to know where to locate packages? Which is set at install time.
<{^_^}>
[nixpkgs] @eraserhd opened pull request #73691 → tasksh: enable on Darwin → https://git.io/JeKnL
<wedens[m]>
if it was the case, stack wouldn't work, I think
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
ggpeti has quit [Ping timeout: 260 seconds]
<Izorkin>
How to fix thios error - /nix/store/whpnlfj79vd8p175rp1bwg0x7wz5lmj1-stdenv-linux/setup: line 95: ./configure go --go=/nix/store/sym79yykwjsvcx1swdzn62kzd1qx5m05-go-1.13.4/bin/go --go-path=/build/unit_go: No such file or directory
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @pingiun to master « nixos/eternal-terminal: add firewall information »: https://git.io/JeKnr
reallymemorable has joined #nixos
endformationage has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
<evanjs>
Looks like https://github.com/NixOS/nix/pull/3205 solves my nix commands not working issue... Now do I wait or patch that into my current config? 🤔
<evanjs>
That, and e.g. `nixos-option` works from root but not from my user, etc 🤔
<infinisil>
Okay nixos-option is kind of messed up anyways, I usually just do `nix-instantiate --eval '<nixpkgs/nixos>' -A config.foo.bar` to inspect option values
<{^_^}>
[nixpkgs] @Lassulus pushed 5 commits to release-19.09: https://git.io/JeKCI
domogled has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @toonn opened pull request #73693 → alex: drop patch → https://git.io/JeKCm
<__monty__>
higherorder: That failure because of alex was because of a patch that's no longer needed, just PR'd the fix ^
drakonis_ has quit [Ping timeout: 240 seconds]
Dyraton01 has joined #nixos
noudle has joined #nixos
<higherorder>
__monty__: ah!
ddellacosta has quit [Quit: WeeChat 2.2]
dredozubov has joined #nixos
drakonis_ has joined #nixos
ddellacosta has joined #nixos
pbogdan has joined #nixos
<aranea>
Is there a way to use an existing nix installation to bootstrap new one in a different location? i.e. I'm setting up nix on a new partition; I could just unpack a binary nix distribution and chroot into it, but I'm wondering if that first step can be replaced by some nix incantation.
<aranea>
Basically, I'm looking for nixos-install --root, but just for nix (& nixpkgs) itself.
<clever>
aranea: that will copy a given storepath to /mnt/nix/store
genesis has quit [Ping timeout: 265 seconds]
<clever>
but none of the profiles are setup, so youll need to manually run `/nix/store/hash-nix/bin/nix-env -i /nix/store/hash-nix` after you boot the system, and fix permisions and such
<brnzz>
how can I see the path where a package is installed?
<aranea>
Btw, the reason why I'm not using nixos here is that while I want to set up a system that's fully based on nixpkgs, I want to substitute my own init system & service manager instead of using systemd with the services provided by nixos.
<brnzz>
I'm not install any binaries so i can't use the readlink method
<brnzz>
installing*
<aranea>
Am I right to assume that this is easier to achieve if I just completely ignore nixos for now and use the "raw" nixpkgs?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @B4dM4n opened pull request #73695 → nixos/zsh-syntax-highlighting: backport Fix highlighting when ohMyZsh is enabled → https://git.io/JeKCj
<aranea>
I mean, it'd be great to eventually write my own nix derivations to handle all this inside nixos, but I don't think I can pull that off until I learn more about nix.
<{^_^}>
[nixpkgs] @veprbl pushed commit from @Dema to master « vscode 1.40.0 -> 1.40.1 (#73610) »: https://git.io/JeKWc
Neo-- has joined #nixos
<evanjs>
infinisil++
<{^_^}>
infinisil's karma got increased to 161
<evanjs>
whoah, nix-instantiate is _way_ faster than nixos-option
hlolli has joined #nixos
hmpffff has quit [Client Quit]
knupfer has joined #nixos
Dyraton01 has quit [Quit: Leaving]
sigmundv has quit [Ping timeout: 240 seconds]
hmpffff has joined #nixos
m0rphism has quit [Ping timeout: 252 seconds]
m0rphism has joined #nixos
m0rphism1 has joined #nixos
chloekek_ has joined #nixos
gagbo has quit [Ping timeout: 265 seconds]
gagbo has joined #nixos
Synthetica has joined #nixos
<infinisil>
:)
mexisme has joined #nixos
sweep has joined #nixos
sweep has quit [Changing host]
sweep has joined #nixos
sweep is now known as genesis
mexisme has quit [Ping timeout: 252 seconds]
kleisli has joined #nixos
jgt has joined #nixos
<johnw>
wedens[m]: can you give me an example?
m0rphism1 has quit [Quit: WeeChat 2.4]
<{^_^}>
[nixpkgs] @disassembler pushed commit from @manveru to release-19.09 « nginx: add map_hash_*_size options »: https://git.io/JeKlt
virus_dave has joined #nixos
gxt has joined #nixos
<clever>
evanjs: nixos-option is just a shell script that runs nix-instantiate several times
<clever>
evanjs: you can also use nix repl, and then it can cache the results over many options
jumper149 has joined #nixos
<mmlb>
is there an established procedure for updating at least 1 package in ruby-packages.nix?
<virus_dave>
is there a nix stdlib function that is the nix-lang equivalent to `substituteInPlace` ?
<virus_dave>
use case: I'm overriding a derivation that uses patch files to a slightly later commit sha. The patch files no longer cleanly apply because the corresponding source files were modified before the patch point. I want to modify the patch file _itself_ to now refer to the correct spot
mexisme has joined #nixos
<clever>
> pkgs.substituteInPlace
<{^_^}>
attribute 'substituteInPlace' missing, at (string):271:1
<clever>
virus_dave: check nixpkgs for uses of that, and you should find some examples
maxdevjs has joined #nixos
<evanjs>
clever: yah I use the repl quite often.
<virus_dave>
~clever perfect, thanks!
<evanjs>
Welp. Thanks guys, just seeing infinisil's example with <nixpkgs/nixos> answered my other question on how to use the moz-overlay from my config in shell.nix
<evanjs>
.... Just import <nixpkgs/nixos> as well.... derp lol
<virus_dave>
clever: that actually looks like it only works on environment variables
noudle has quit [Read error: Connection reset by peer]
noudle has joined #nixos
noudle has quit [Client Quit]
<clever>
virus_dave: pkgs.substituteAll will take its own vars (which are part of the set you give it), and replace the @var@'s in the file you point it to
<virus_dave>
Hmm, maybe i'm misreading the implementation then. Specifically i'm trying to turn "@@ -4175,23 +4175,9 @@" -> "@@ -5801,23 +5801,9 @@" in the patch file.
<heath>
apparently I somehow added /nix/store/pdsw56avjwjqdj0q9dz6lfvzikc69j18-Xcode.app though it wants /nix/store/qgv5pfrjsi5vyffk0kwqibg403z3cdiw-Xcode.app
<clever>
heath: line 50, you must download xcode yourself
hmpffff has quit [Quit: nchrrrr…]
<heath>
I did
<clever>
heath: and it must be the exact version nixpkgs is asking for
<evanjs>
Ahhh and then I can just use e.g. `nix-env -f \<nixpkgs/nixos\> -iA pkgs.latest.rustChannels.stable.rust` if I want to test stuff that's available from my system configuration. Sweeet
erictapen has quit [Ping timeout: 240 seconds]
<heath>
yeah, so I have no clue which version to use because I simply followed that link
<heath>
twice now
<clever>
heath: the link says 8.2
<heath>
yep, 8.2 is what was downloaded
<clever>
no idea then
<clever>
blame apple for making things complicated!
<heath>
Xcode_8.2.xip
gagbo has quit [Remote host closed the connection]
hlolli has quit [Ping timeout: 276 seconds]
<heath>
well poo
gagbo has joined #nixos
domogled has quit [Quit: domogled]
ddima has joined #nixos
smatting has quit [Ping timeout: 240 seconds]
aveltras has joined #nixos
<chloekek_>
How feasible would it be to ptrace a process (outside of Nix), record its HTTP calls, then generate a derivation that replays said process but with fetchurl substituted for the HTTP calls inside a Nix builder?
<chloekek_>
That would make it easy to work with obtrusive third-party package managers without rewriting their logic in Nix.
<clever>
chloekek_: https would like to ruin your day
<adisbladis>
chloekek_: That would (probably) not work very well
<chloekek_>
Probably not fun in any way since socket syscalls are globals instead of dependency-injected into main.
<chloekek_>
Could enter a network namespace with unshare and then set up a local server and iptables. :þ
<{^_^}>
[nixpkgs] @NinjaTrappeur opened pull request #73699 → tests/systemd-networkd-wireguard: migrate to python test runner → https://git.io/JeKl1
<adisbladis>
chloekek_: In the case of Python for example it will depend on your interpreter version and platform what's actually pulled down
<chloekek_>
Ah! Replicate the package repositories, not the package managers.
shibboleth has joined #nixos
<qyliss>
chloekek_: Nix is cross-platform ;)
<chloekek_>
Yeah but I only use Linux so that’s fine. :P
<clever>
chloekek_: for maven/gradle, i replicate the cache directory, and tell it to not touch the network, so it thinks its acting on an old ~/.gradle/caches/
<clever>
chloekek_: but i still have the issue of knowing what it wants in the cache
<adisbladis>
chloekek_: It may be fine for you personally, but it wont work for upstream nixpkgs.
<clever>
with the sandbox on, it will at least fail if i miss something
<chloekek_>
clever: yeah, I tried that before and it was a pain indeed
<clever>
then you need tools like yarn2nix, that understand the package manager, and can generate an expr to pre-download things
<chloekek_>
adisbladis: one thing I really like about Nix is how easy it is to depend on things outside Nixpkgs; you can just fetchTarball and import from it. No need to update global config files.
<clever>
bbl
twk has joined #nixos
ng0 has joined #nixos
eraserhd2 has joined #nixos
eraserhd has quit [Ping timeout: 250 seconds]
<wedens[m]>
how do I proceed with the following task: I'd like to have a regular graphical nixos iso that also contains all buildtime and runtime dependencies of specific nixos configuration
<wedens[m]>
basically I need to bootstrap machine from the image, but I don't know things like parition ids at the time of building the image
<virus_dave>
ok, i think what i want is a nix wrapper around `substituteInPlace --replace $1 $2`, which doesn't currently exist afaict. Shouldn't be too hard to write, but :(
<infinisil>
wedens[m]: You can build such derivations without internet
<aleph->
Question, anyone see what I'm doing wrong? Attempting an install of nixOS on a new server, and I'm getting an error while trying to install the bootloader.
<samueldr>
and no, you don't need to switch out of GPT, GPT is fine
gagbo has quit [Ping timeout: 276 seconds]
<wedens[m]>
infinisil: I don't need to boot into this configuration from iso. it should mostly serve as a binary cache
gagbo has joined #nixos
<infinisil>
For a long time nesting.* didn't put stuff in the boot loader at least
<infinisil>
And it only does it for grub now
<infinisil>
wedens[m]: But you can use something very much like it still
<wedens[m]>
so, I'll use `nesting` as a way to populate the store?
<dmj`>
heath: can you call md5sum on it for me, I can cross ref it with mine
<infinisil>
wedens[m]: It works by doing something like `(import <nixpkgs/nixos> { configuration = { ... }; }).config.build.system.toplevel` and then you can link that result in config.system.extraSystemBuilderCmds to $out/extra
<dmj`>
heath: I do doubt apple changed the contents of that Xip
<infinisil>
where $out will end up as /run/current-system
<dmj`>
but apple is also trying to destroy nix so ....
<infinisil>
wedens[m]: Although, this would only get you the runtime deps, not the build time deps hmm..
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
gagbo has quit [Ping timeout: 265 seconds]
kisonecat has joined #nixos
gagbo has joined #nixos
<steveeJ>
gchristensen: do you see a way to access these through an imported nixpkgs?
<tilpner>
steveeJ: Impossible in restricted mode
<tilpner>
steveeJ: Otherwise you can just with import <nixpkgs/lib/kernel.nix> { inherit lib; version = null; };
<tilpner>
steveeJ: I ended up copying that file into my tree :(
noudle has joined #nixos
<steveeJ>
tilpner: dang, thanks. I think that workaround should do it for me
wildtrees has quit [Ping timeout: 276 seconds]
<tilpner>
(Actually, might be possible with restricted mode, but not in a NIX_PATH-independent way)
<{^_^}>
[nixpkgs] @matthewbauer pushed to release-19.09 « ledger-udev-rules: update to 2019-05-30 »: https://git.io/JeKBC
not_a_frenchman_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer pushed to release-19.03 « ledger-udev-rules: update to 2019-05-30 »: https://git.io/JeKB8
gagbo has quit [Ping timeout: 276 seconds]
gagbo has joined #nixos
<Thra11>
It's probably frowned upon, but is it possible to package a file which is simply included alongside the package's default.nix (as opposed to fetching sources from elsewhere)?
fendor_ has joined #nixos
zebrag has quit [Ping timeout: 240 seconds]
inkbottle has joined #nixos
psyanticy has quit [Quit: Connection closed for inactivity]
<Yaniel>
that is sometimes done with helper scripts
<Yaniel>
also patches
<Yaniel>
so yes it is possible
<Thra11>
I tried putting `srcs = [ ./File1 ./File2 ];`, but they don't show up in the build directory
gxt has joined #nixos
<Yaniel>
your package has to copy them to $out
oscarvarto has quit [Quit: oscarvarto]
[Leary] has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @petabyteboy to master « tinyfecvpn: init at 20180820.0 »: https://git.io/JeKBK
<Yaniel>
nvm build directory
jimmyeatworld has joined #nixos
<Thra11>
I something like `installPhase = ''install File1 $out/path/'';`, but it complains that it cannot stat File1
kisoneca1 has joined #nixos
<Thra11>
If I run with --keep-failed, /tmp/nix-build-* only contains env-vars, not the "sources"
lounge-user22 has joined #nixos
<{^_^}>
[nixpkgs] @bjornfor pushed to master « Revert "gnomeExtension.system-monitor-applet: mark as broken" »: https://git.io/JeKB9
jimmyeatworld has quit [Quit: leaving]
Lears has joined #nixos
lounge-user22 has quit [Client Quit]
jimmyeatworld has joined #nixos
<Thra11>
I also have `dontUnpack = true;` I wonder if that means it does nothing with the sources (as opposed to unpacking them or copying them into the build directory)
hmpffff has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
<Thra11>
Ah. Looks like if I skip the srcs completely and just refer to ${./File1} in the installPhase, it works
lovesegfault has quit [Quit: WeeChat 2.6]
Neo-- has quit [Ping timeout: 245 seconds]
<selfsymmetric-pa>
I have a weird issue where if I type `nix-shell` and then `pipenv install`, everything installs correctly, but if I run `nix-shell --run 'pipenv install'` in the same directory then everything fails with e.g. `An error occurred while installing sqlalchemy==1.3.8`. Any idea why that would be the case?
cosimone has quit [Quit: Quit.]
<selfsymmetric-pa>
I have the same problem if I use `--command` instead of `--run`.
domogled has joined #nixos
<selfsymmetric-pa>
Running `nix-shell --command 'pipenv --rm'` works fine.
fendor_ has joined #nixos
<selfsymmetric-pa>
I am using an old pin of nixpkgs because I want python 3.7.2 explicitly. Anyone know how to fix the patch version in my `shell.nix`?
<{^_^}>
[nixpkgs] @risicle opened pull request #73707 → fribidi: add patch for CVE-2019-18397 → https://git.io/JeKRZ
kisonecat has quit [Ping timeout: 276 seconds]
<infinisil>
Oh, you mean including the minor version .2
<infinisil>
s/minor/patch
<infinisil>
That is very specific
sondr3 has joined #nixos
<selfsymmetric-pa>
Indeed it is, no argument there; I have a specific operating environment that does not permit upgrading the patch.
<selfsymmetric-pa>
Under most circumstances updating the patch version would be viable and recommended but it is not an option here.
zupo has joined #nixos
<infinisil>
selfsymmetric-pa: What if you run nix-shell with --pure?
<selfsymmetric-pa>
infinisil: I'll give that a shot, thank you.
<sondr3>
anyone here change the $NIX_PATH variable? Looking to move from symlinking my configuration.nix, but unsure if I can just copy over the defaults and change the `nixos-config` in $NIX_PATH
<selfsymmetric-pa>
infinisil: No dice. :(
domogled has joined #nixos
<selfsymmetric-pa>
sondr3: Yep, I've done that.
<infinisil>
selfsymmetric-pa: I want to know whether it leads to the same behavior with nix-shell vs nix-shell --run
<sondr3>
selfsymmetric-pa: sweet, do you have your configuration public so I can take a look? Or did you just change the `nixos-config` part?
<selfsymmetric-pa>
infinisil: No, `nix-shell` interactively works. `nix-shell --run`, `nix-shell --pure --run`, and `nix-shell --command` all break.
<selfsymmetric-pa>
In the same way.
<infinisil>
selfsymmetric-pa: What's the full error?
<selfsymmetric-pa>
sondr3: Yeah, I set `nix.nixPath = ["/nix/var/nix/profiles/per-user/root/channels" "nixos-config=/home/<me>/my/config/path/configuration.nix"]`
<selfsymmetric-pa>
And then I run it twice to bootstrap XD
<selfsymmetric-pa>
infinisil: You know what, I've not cranked up the verbosity on the pipenv command. I should try that first.
<sondr3>
alright, sweet, thanks!
<selfsymmetric-pa>
Thanks for humoring me here.
<selfsymmetric-pa>
sondr3: Good luck!
<sondr3>
if I disconnect and never return I'm blaming you
<selfsymmetric-pa>
sondr3: lol I'll keep that in mind. Hoping to see you again.
<{^_^}>
#39558 (by das-g, 1 year ago, closed): in nix-shell, 'pipenv install' etc. fail with "ModuleNotFoundError: No module named 'pip._internal'"
<infinisil>
Ah yup seen that too
<selfsymmetric-pa>
Looks like some work has happened here, so I think what I want to do is try and use a more recent version of nixpkgs. However to do that I'll need to figure out how to override the patch version of python.
<selfsymmetric-pa>
Right now I use `552d8a70d4c47a6e52a8e0b26e3a2e33d5b94ca6` because it happens to have python 3.7.2.
<infinisil>
Yeah that's the best course of action i think
mounty has quit [Ping timeout: 240 seconds]
mounty has joined #nixos
<sondr3>
followup, is there a way to make a variable accessible across my .nix files? I'd like to be able to access a hostname variable to set some paths
<mdash>
sondr3: pass it as an argument
<wucke13>
How does one use a module froma local nixpkgs checkout in his system configuration (/etc/nixos/configuration.nix) without fully switching to the local nixpkgs checkout?
<sondr3>
mdash: so I'd do something like `imports = [ ../../blah { hostname } ]`?
<mdash>
sondr3: oh, modules, not derivations
<mdash>
for that just add some stuff to your config and you can access it in any other module
civodul has joined #nixos
<sondr3>
mdash: is it enough with a `let blah = "blah"` at the top of my configuration file to be able to access it in files imported in it?
<{^_^}>
[nixpkgs] @jonringer pushed to master « python3Packages.cliff: fix build and add tests »: https://git.io/JeK0J
<selfsymmetric-pa>
Something like `-I "<nixpkgs>"`?
<selfsymmetric-pa>
I dunno, it's hard to Google.
<tilpner>
-f '<nixpkgs>'
<selfsymmetric-pa>
THAT was it. Thank you.
<selfsymmetric-pa>
tilpner++
<{^_^}>
tilpner's karma got increased to 54
<selfsymmetric-pa>
Okay I'll actually write it down this time...
<tilpner>
Make an alias
<selfsymmetric-pa>
Better, I'll make an Emacs function for nix files.
cosimone has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
<selfsymmetric-pa>
Okay, what's strange is that `${patch}` appears in the python37 default.nix, but the definition is nowher to be found. It's not in the package parameters either.
<selfsymmetric-pa>
Where do `major`, `minor`, and `patch` come from??
<{^_^}>
[nixpkgs] @B4dM4n opened pull request #73711 → cargo-crev: init at 0.11.0 → https://git.io/JeK0I
domogled has quit [Quit: domogled]
lovesegfault has joined #nixos
<selfsymmetric-pa>
Oh, I think it's gotten from `with sourceVersion;`. Cool.
<selfsymmetric-pa>
I should be able to just make an override, wish me luck.
domogled has joined #nixos
<{^_^}>
[nixpkgs] @virusdave opened pull request #73712 → substitute: init at 0 → https://git.io/JeK03
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<lovesegfault>
domenkozar[m], aszlig: any of you around?
<aszlig>
aszlig: busy, but somewhat[TM] around
troydm has joined #nixos
<Thra11>
Is it possible for an sd-image config (or /etc/nixos/configuration.nix) to *append* a package to hardware.firmware?
<buckley310>
at this point, nix.useSandbox is set to TRUE unless I disable it in my config, right?
<buckley310>
at one point i remember enabling it manually, but it seems like its on by default now
<{^_^}>
[nixpkgs] @rixed opened pull request #73713 → ocaml-sodium: init at 0.6.0 → https://git.io/JeK04
stzsch has quit [Ping timeout: 252 seconds]
isHavvyGhosting has joined #nixos
mexisme has joined #nixos
isHavvy has quit [Ping timeout: 250 seconds]
otulp has joined #nixos
sondr3 has quit [Quit: WeeChat 2.6]
sondr3 has joined #nixos
sondr3 has quit [Client Quit]
sondr3 has joined #nixos
<sondr3>
whoop, everything worked after some $NIXOS_CONFIG wrangling
<sondr3>
oh, I have created a recursive symlink in my dotfiles, fun
<samueldr>
Thra11: hardware.firmware is a "list of packages", so it will not be overriden if you set it in a configuration, but merged with the other values set
<samueldr>
Thra11: so depending on what is desired out of "appending" a firmware, it's likely doing what you want already
<Thra11>
samueldr: ah cool. Thanks
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philr has joined #nixos
<thoughtpolice>
domenkozar[m]: thanks for the update on the multi-user thing, in theory i think i know how to fix the mac builder (and might try) though it would be a huge hack
wildtrees has joined #nixos
<sondr3>
can someone take a look at this portion of my configuration.nix and see why it creates two symlinks? I get a symlink in ~/.emacs.d and a `emacs` symlink in the directory of the file
<clever>
sondr3: ~/.emacs.d/ says to create a symlink in an existing directory by that name
zupo has joined #nixos
<gchristensen>
any recommendations for the most trivial way to get a trivial wsgi application running under nixos?
gagbo has quit [Ping timeout: 246 seconds]
<clever>
gchristensen: is that python?
<sondr3>
clever: thanks, but that still made a symlink in `config/home/emacs/emacs` which is where I'm confused... it creates the ~/.emacs.d symlink fine but then I get a second symlink out of nowhere
<selfsymmetric-pa>
`.override { foo = "blah" }` works, but what is the equivalent of `.override { foo.bar = "blah" }` that leaves the rest of `foo` alone?
drakonis_ has quit [Ping timeout: 245 seconds]
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
Ariakenom has quit [Read error: Connection reset by peer]
ng0 has quit [Quit: Alexa, when is the end of world?]
growpotkin has joined #nixos
kisonecat has joined #nixos
selfsymmetric-pa has quit [Remote host closed the connection]
<eacameron>
I'm doing `let nixos = import (pkgs.path + /nixos); in nixos { system = ...; configuration = ... }` However I want to override some of the packages used by this new system. How do you do that? `configuration` doesn't expect a `nixpkgsOverlay` or `config`...
hmpffff has quit [Quit: nchrrrr…]
irl25519 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Jackneill has quit [Remote host closed the connection]
kisonecat has quit [Ping timeout: 246 seconds]
<clever>
eacameron: configuration itself, contains a nixpkgs.overlays option
<clever>
eacameron: what error does it give when you do that?
<{^_^}>
[nixpkgs] @ggPeti opened pull request #73720 → pgsidekick: init at unstable-2014-11-23 → https://git.io/JeKuy
<eacameron>
clever: error: value is a string with context while a set was expected, at /home/elliot/obsidian/tezos-token-dashboard-deploy-client--staging/src/.obelisk/impl/default.nix:311:23
<clever>
eacameron: can you paste a more complete example?
ggpeti has joined #nixos
<eacameron>
clever: Oh. No that was an issue with nixos1909
<ggpeti>
sup. any maintainers around who dabble in postgresql related packages?
<eacameron>
This looks like what I need. the ACME v1 EOL just went into affect .... :/
nschoe has quit [Ping timeout: 240 seconds]
<eacameron>
clever: related question: `import (pkgs.path + /nixos); in nixos ....` <- doesn't this throw away any particular overrides/configs that `pkgs` has when building the new `nixos` system?
<clever>
eacameron: yes
<eacameron>
clever: That's what I thought. That's probably not exactly what we had in mind...
<eacameron>
clever: Anyway it's working now so thank you!!
<clever>
there is also the nixpkgs.pkgs option
<clever>
which you can just set to an entire pkgs set
<eacameron>
oh interesting.
<clever>
then it will ignore nixpkgs.config and nixpkgs.overlays
domogled has quit [Remote host closed the connection]
<eacameron>
I see. That makes sense... that's cool. So you can at least recover the behavior easily.
domogled has joined #nixos
philr has quit [Ping timeout: 276 seconds]
<eacameron>
But that begs the question: Why even import a path like this? Isn't there a pkgs.buildNixos or something to do what you'd expect?
<eacameron>
I didn't write this code so maybe that's already a thing...
drakonis_ has quit [Read error: Connection reset by peer]
LysergicDreams has quit [Ping timeout: 240 seconds]
<clever>
eacameron: nixos is its own function, in nixpkgs/nixos/default.nix, that normally imports its own nixpkgs, based on the config in configuration.nix
<spacekookie>
Does anyone know why mount a zfs root fs would fail after luks with "mounting zroot on /mnt-zroot/ failed: no such device or directory" ?
<spacekookie>
The weird thing is that basically the same setup works fine on my laptop
<eacameron>
Sigh... I need to effectively backport the entire acme module to get acme working again. Is there a way to "override" an entire module?
<ggpeti>
what kind of override would that be?
<qyliss>
disabledModules and import the new one
<gchristensen>
eacameron: backport to what?
<eacameron>
ggpeti: Yeah I guess what qyliss said. Delete the old version and import my own copy from 19.09--possibly with tweaks.
<eacameron>
gchristensen: 18.09 or thereabouts
<gchristensen>
ouch
<eacameron>
yeah... :(
<eacameron>
Actually there's no way I'm gonna do that. I'd have to backport changes to nginx too
shabius has quit [Quit: Leaving]
domogled has joined #nixos
<eacameron>
Is there a way to *force* a value that isn't in an option's enum?
<eacameron>
I'm hoping that might get me by...
dansho has joined #nixos
Acou_Bass has quit [Ping timeout: 250 seconds]
shabius has joined #nixos
ambro718 has joined #nixos
<ambro718>
I want to make a pure nix-shell but add extra packages. I don't understand why this does not work: nice -n19 nix-shell /etc/nixos/nixpkgs -A firefox-unwrapped --pure -p git
<ambro718>
error: attribute 'firefox-unwrapped' in selection path 'firefox-unwrapped' not found
<ambro718>
it works without the -p git
Acou_Bass has joined #nixos
<eacameron>
gchristensen: qyliss: clever: is there a way to force my way around this? `error: The option value `security.acme.certs.token-dashboard.tezos.internal.obsidian.systems.plugins.[definition 1-entry 5]' in `<unknown-file>' is not of type `one of "cert.der", "cert.pem", "chain.pem", "external.sh", "fullchain.pem", "full.pem", "key.der", "key.pem", "account_key.json"'.`
<eacameron>
I've upgrade `simp_le` manually in this pkgset but now it won't let me specify that I want the plugins that I need
<qyliss>
Did you try mkForce? (I have no idea if it does this, but it'd be my first guess)
<ggpeti>
ambro718: have you tried shuffling the attributes around?
<ggpeti>
arguments*
<eacameron>
qyliss: Yes
<eacameron>
ggpeti: eh?
<{^_^}>
[nixpkgs] @chkno opened pull request #73724 → nixos/tlp: Say what TLP is → https://git.io/JeKzV
<ggpeti>
idk, maybe -p before --pure works
domogled has quit [Quit: domogled]
<qyliss>
ambro718: I'm not sure you can do that
<eacameron>
qyliss: Is there a `mkReallyDarkForce`?
<qyliss>
But you could do nix-shell /etc/nixos/nixpkgs -A firefox-unwrapped, and then do nix-shell /etc/nixos/nixpkgs --pure -p git inside that
<qyliss>
eacameron: none that has been revealed to me :P
<ambro718>
qyliss: not sure about that, wouldn't the second nix-shell get rid of most things prepared by the first?
<ggpeti>
eacameron: regarding your problem, where do the module options get loaded from? maybe you could make a derivation from nixpkgs, with only the option enum patched, but then how do we put that patched nixpkgs to the module-loading-place
<qyliss>
ambro718: Oh, maybe
<qyliss>
You could put the --pure on the outer one
<qyliss>
As long as you could still access nix-shell inside...
<ambro718>
yeah but I'm pretty sure the result is going to be a mess
<ggpeti>
a purification filter, eh eh
mexisme has joined #nixos
<eacameron>
ggpeti: I see. Yeah I could possibly just patch that one part of the original module
<eacameron>
I mean... even in Haskell I can `unsafeCoerce` through this. Nix has even fewer back doors than haskell??? wat
<eacameron>
:P
<ambro718>
well, I guess it might work assuming you only need the outer shell for path stuff
<ggpeti>
legend has it, the ones who use pure-eval walk a few centimeters above the ground, never touching it
<ambro718>
anyway I'm trying non-pure firefox build for now
<qyliss>
eacameron: it has a lot of backdoors -- it just may not have any that are useful for this purpose
waleee-cl has quit [Quit: Connection closed for inactivity]
<ggpeti>
I never contributed a module yet. But isn't there like an all-modules.nix where you link your freshly made module?
<ggpeti>
do modules just get loaded by virtue of residing in nixos/modules?
<gchristensen>
they need to be imported
<ggpeti>
then there you have it eacameron? derive from nixpkgs, patch the module in question, import it
<eacameron>
So, if I add this module to `disabledModules` and then provide my own with the exact same interface, with the existing users of `acme` (like nginx) use *my* version and not the one I disabled?
<eacameron>
*will
<das-g[m]>
clever: What file in should `./shell.nix` point to in