<mehlon>
well it's fetchFromGithub but the .git dir is missing and also there's no submodules
<mehlon>
so I changed the fetchsubmodules setting but that didn't update the source
Ariakenom has quit [Read error: Connection reset by peer]
<qyliss>
Did you remember to change the sha256?
<mehlon>
hmm
<qyliss>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<worldofpeace>
👍️
<mehlon>
guess that makes sense
Henson has joined #nixos
<mehlon>
thanks that did the trick
<DigitalKiwi>
worldofpeace: nice
<b42>
,tofu-vim
<{^_^}>
<esc>52i0<esc>
<worldofpeace>
DigitalKiwi: it used to have a doCheck instead of fileValidation, but it doesn't use mkDerivation anymore on master.
<infinisil>
Is there any reason we wouldn't want to do that? It's such a common pitfall
<infinisil>
In short: It changes the name of the derivation from "source" to "source-${owner}-${repo}-${rev}"
<samueldr>
all source uses a static name to re-use source FODs IIRC
<infinisil>
re-use from where?
<samueldr>
not sure
<samueldr>
but there was a reason for all source (not only github) to be named "source"
<infinisil>
Yeah I heard something like this too, but I could never really understand it
<qyliss>
infinisil: wouldn't changing that mean you'd have to change every use of fetchFromGitHub?
<qyliss>
or does changing the name not affect the sha256?
<infinisil>
qyliss: Nope, hashes stay the same
<qyliss>
oh, cool
<samueldr>
but it wouldn't be able to fine xxx-y+1 with the new old hash
<samueldr>
to find*
slack1256 has joined #nixos
<infinisil>
No idea what you mean
<infinisil>
What's "it"? What's the "new old hash"?
<samueldr>
given source xxx-1 with hash 00001, when you naïvely change the version to 2, xxx-2, it'd search for xxx-2 with hash 00001, wouldn't find it, dowload with the new version number (or revision for github fetcher) and then barf on different hash
<infinisil>
That sounds like exactly what we want no?
<samueldr>
yes, exactly, I was re-stating the result
<infinisil>
Ah
dsx has quit [Remote host closed the connection]
<kolbyjcrouch>
Is there anyway to remove a string from a variable in nix? I know how to add onto NIX_CFLAGS_COMPILE or configureFlags, but is there a way to remove elements from them?
<simpson>
Depends on which flag you want to remove. Sometimes it's easier to find whatever inserts the offending flag, and disable that feature. What are you working on?
<kolbyjcrouch>
simpson: I'm trying to add a compiler flag to CFLAGS/CXXFLAGS to every package, and then manually remove certain flags from derivations that are broken with them.
<simpson>
kolbyjcrouch: Huh. Which flag? Some flags are really not for every package, while some packages really are broken for any custom flags.
<kolbyjcrouch>
simpson: I know how to add the flags I want to everything, but to remove them I'd have to override the whole variable for each offending package.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noudle has quit []
<samueldr>
good history diving there infinisil
dsx has joined #nixos
<kolbyjcrouch>
simpson: I wanted to mess around with LTO the same way gentooLTO does. it basically adds a lot of flags to everything, then uses a blacklist file to remove certain flags from packages they break.
<infinisil>
So, the given reason is to have all fetchers return the same store path
<infinisil>
But I wonder why that matters
mbrgm has joined #nixos
<simpson>
kolbyjcrouch: Fixing broken packages is a form of messing around. You hoped to have a working environment, it sounds like?
<infinisil>
niksnut mentions to see domenkozar[m]'s talk from nixcon 2017, but the link is dead, so I can't see it
<evils>
infinisil: so i don't have 2 copies of a 5gb repo of 3D models because one was fetched from launchpad, even though it's the same rev?
<infinisil>
evils: Why would you use two different fetchers to download the same thing is my question then
slack1256 has quit [Remote host closed the connection]
<evils>
infinisil: because kicad moved their repos
<infinisil>
evils: That's a *very* rare case though
<samueldr>
though I have no idea when in the talk this is touched upon
<infinisil>
He said slide 8
<infinisil>
I'll try to find it..
<kolbyjcrouch>
simpson: No not necessarily. Fixing the package itself from breaking with lto or -Ofast etc is out the scope of what I'm trying to do. gentooLTO already has a good list of which packages are broken with certain flags. I just wanted to emulate that in nix.
<samueldr>
infinisil: the link in that comment is good for me
<DigitalKiwi>
what's lto?
<samueldr>
though it's a different video
<samueldr>
I can cross-reference though I think
<simpson>
DigitalKiwi: Link-Time Optimization. Here, likely referring to a specific cluster of GCC flags and features.
<simpson>
kolbyjcrouch: You could do a hilarious and horrible hack where you put it onto stdenv, and then have packages mark themselves broken on LTO-using stdenv.
<simpson>
But it really does depend on whether you want this to go upstream, whether you want this to build a complete NixOS configuration, etc.
<DigitalKiwi>
simpson: oh, ty
<samueldr>
infinisil: yes
<kolbyjcrouch>
simpson: I think setting several variables for each flag and then concatenating them together for the generic override, then overriding CFLAGS/CXXFLAGS and concatenating only non-broken ones for certain derivations might work.
<samueldr>
that's about the same time
<infinisil>
Hm okay, we can solve the ./. problem by using `builtins.path { path = ./.; name = "foobar"; }`
<infinisil>
And similarly we can set the name in all other cases
<infinisil>
That seems like a small price to pay for people not always having to remember to change their sha256's
<infinisil>
(the price being constant: setting the name once for all important things in nixpkgs)
<infinisil>
So there is indeed a problem with doing this, but I think the wrong solution was chosen
<jared-w>
Anyone have luck getting simple-hydra working? I'm assuming that all I should need to do is make a blank, vanilla, 19.09 nixos and just copy-pasta the example and voila, hydra?
<infinisil>
gchristensen: Yeah I thought of that too earlier
<infinisil>
Though I wonder how long it takes to be accepted!
<jared-w>
gchristensen: that one hasn't been updated since 2016 (which is fine, I just don't know if that means "possibly broken on a recent nixos version" or not)
<gchristensen>
I find delivering an RFC with working code to help grease wheels
<gchristensen>
jared-w: not sure, but it is the one I followed when I was doing it last :)
<jared-w>
Fair enough. I'll look through it if this next try doesn't do it for me. I knew declarative configuration wasn't going to magically make things easier, but I was hoping to need less lengthy, error-prone, manual/tedious copy+pasta style walkthroughs. Can't have your cake and eat it too I suppose :p
<gchristensen>
declarative config often does help, but the trouble is hydra is rarely configured so the crufty bits are rarely exercised to make them go away
jluttine has quit [Ping timeout: 240 seconds]
<jared-w>
yeah, that's true. I'm just used to more "modern" devops situations where people look at you weird if you can't get everything setup with one button hands-off
<jared-w>
Of course, that's because tearing down and rebuilding your infrastructure repeatedly to make it "work better" is pretty common... So there's something to be said for "people almost never ever have to configure their hydra multiple times"
tbenst_ has quit [Ping timeout: 250 seconds]
<kolbyjcrouch>
Anyone know how to get non-prefixed binutils in a pkgsCross stdenv? Some packages I'm trying to build are failing because they don't respect $AR from env.
<{^_^}>
[nixpkgs] @veprbl opened pull request #75730 → texlive: provide a working pygmentex executable → https://git.io/JeQSQ
<Orbstheorem>
Hello, can somebody give me a hand? :)
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Orbstheorem>
I'm trying to get started with reflex (haskell). But building from nixpkgs fails :( `nix-store --realise "$(nix-instantiate '<nixpkgs>' -A haskellPackages.reflex)"`
<Orbstheorem>
I'm looking at `hackage-packages.nix` and the apparently missing dependencies are listed, I don't understand why cabal can't find them :( (my build log: https://paste.gnugen.ch/raw/SaVV
<Orbstheorem>
(Nixos 19.09)
gustavderdrache has quit [Quit: Leaving.]
<Orbstheorem>
I'm trying to get the build logs from hydra, but it's not responding (:
<jared-w>
we have a stack2cabal? How does that even work?
<{^_^}>
[nixpkgs] @cdepillabout opened pull request #75732 → haskellPackages.stack2cabal: mark unbroken → https://git.io/JeQ9T
cjay- has joined #nixos
<jared-w>
ah it just adds new-build support for git repos; nifty
vld has joined #nixos
mehlon has quit [Remote host closed the connection]
<jared-w>
Orbstheorem: hmm, I'm also getting a failure if I try work-on for reflex-vty
Lears has joined #nixos
<jared-w>
"called with unexpected argument 'buildToolDepends'"
gustavderdrache has joined #nixos
[Leary] has quit [Read error: No route to host]
<cjay->
I think I found a bug with redshift, though I'm not entirely sure if it's a real bug or just a consequence of how nixos works. I installed redshift-plasma-applet without directly installing redshift. The applet behaved strangely, it could only make the screen darker and darker. It seems to work correctly after I installed redshift explicitly.
<jared-w>
cjay-: did you install the applet through the "normal" plasma method?
infinee has joined #nixos
vld has quit [Ping timeout: 246 seconds]
<cjay->
jared-w: installed with nix-env and then added to the taskbar via the gui
<jared-w>
ah okay
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<cjay->
on second thought, it might have to do with me logging out and back in, after the screen got too dark. maybe it was that which "fixed" it
<jared-w>
It's a straight build of the applet itself. So, since the applet doesn't install redshift for you, neither does this. If you have redshift installed, though, then it'll work fine.
<Orbstheorem>
jared-w: I had a similar problem with redshift if I don't run it as a daemon
<jared-w>
(unless I'm reading the package file horribly wrong)
<Orbstheorem>
(which I now use to temporarily make my screen redder, by SIGSTOPPING the daemon ^^)
<jared-w>
Orbstheorem: does running ./try-reflex inside the reflex-platform directory work?
<cjay->
weird, I thought I had seen redshift being installed as a dependency
<cjay->
the applet on its own can't make the screen darker, can it?
<Orbstheorem>
jared-w: running ./try-reflex in reflex-platform works for me
<jared-w>
It's a function input, but I don't see it in buildDepends anywhere. Which, admittedly, seems odd to me. Especially since the screen darker thing happened... idk how that works
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeQ9z
<jared-w>
the applet could be independently controlling brightness since redshift doesn't do that by itself?
<pie__>
given that i cant seem to be able to properly start firefox RAM-limited by a cgroup, could i somehow run firefox in a container instead?
captn3m0- has quit [Ping timeout: 240 seconds]
<jared-w>
Orbstheorem: I think I've narrowed it down to the haskell generic-builder not supporting buildToolDepends that's getting passed to it somehow?
<Orbstheorem>
pie__: You may wanna take a look at firejail first :)
Chiliparrot has quit [Ping timeout: 252 seconds]
NoctisLabs has quit [Quit: WeeChat 2.6]
NoctisLabs has joined #nixos
<pie__>
Orbstheorem: hm
<keithy[m]>
Hi guys, still on my first outing with nixos... the machine I am using has a broadcom wireless, but is refusing, asking for useFree to be set in the config. However I thought I would just override the kernelModules list to remove "wl" and extraModulePackages: [], no dice?
<clever>
keithy[m]: all list based options are additive, so nixos will add the lists together, rather then removing things
<CMCDragonkai>
In Nix, is there a way to use environment variables at a evaluation time? Or is `NIX_PATH` the only thing that can be used?
<clever>
> builtins.getEnv
<{^_^}>
<PRIMOP>
fragamus has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
oida has quit [Remote host closed the connection]
<jared-w>
hah, got simple-hydra working. I must've screwed up some small thing somewhere else before trying it; running it in a clean VM worked great (pinging gchristensen in case you're curios)
oida has joined #nixos
<gchristensen>
yay :) glad to hear it
<jared-w>
using krops to remotely configure because nixops doesn't work on macOS. niv for dependency management of random sources. And simple-hydra to spin up the hello-world hydra server. Very happy with it. Now to go break it all tomorrow trying to get the next steps working... heh
<clever>
jared-w: why does nixops not work on macos?
<jared-w>
*squints* hmm... actually I take that back. I had previously attempted to use morph
<jared-w>
which more or less does "nix-build + copy-to-server" and I was trying to use it with hydra definitely doesn't work on macos
<clever>
jared-w: and thats basically what nixops does, nix-build + nix-copy-closure
<jared-w>
right. So I think I assumed nixops wouldn't work for me because I wanted to use it with hydra and potentially other "builds on linux only" derivations
<clever>
jared-w: nixops needs a linux build machine configured in /etc/nix/machines
<jared-w>
ah, good point; I forgot about that. I now have _two_ different options to waste my time on tomorrow. Redoing the hello world with nixops + build slave or breaking the hello world with trying to get it to do some more complicated things. Either way, should be fun :)
<{^_^}>
nixops#984 (by cleverca22, 1 year ago, open): update the automatic build slave functions under darwin
<jared-w>
oooh, noice
<clever>
gchristensen: should i maybe edit the title of that now?
<angerman>
clever: that still means you *need* a linux machine somehow :D
<angerman>
jared-w: glad if that article did provide any utility.
cyris212 has quit [Ping timeout: 265 seconds]
<clever>
angerman: but if your deploying with nixops, it will first create a linux machine, either in the cloud or virtualbox (depending on the backend of choice)
<jared-w>
angerman: it provided plenty! Even if it's just "oh yeah you can use docker too y'know".
<clever>
angerman: and it can then use that remote machine, to build itself
<jared-w>
clever: I have access to a vm farm running ovirt
<jared-w>
but I don't have access to the API of it and can't assume that, so I don't know if I can get nixops to automagically make VMs for me
<angerman>
clever: can I setup a linux virtualbox vm with no bootstrapping requirements?
<gchristensen>
clever: please do :)
<clever>
angerman: i believe the nixops virtualbox backend starts with a vbox app file, that has a base nixos pre-installed
captn3m0- has joined #nixos
<jared-w>
Although, honestly, even if I have to hit "create from template" 10 times it's not the end of the world if everything else follows from there
<angerman>
clever: that would be sufficient then yes.
cyris212 has joined #nixos
<clever>
gchristensen: and github wont let us sweep that under the rug! lol
captn3m0 has quit [Ping timeout: 265 seconds]
<jared-w>
Would be super nice if I just pointed it to a VM and it could nuke the hard drive and install nixos on the VM for me
<gchristensen>
clever: ehh, it is okay :) it shows an open mind :)
<clever>
jared-w: my basic plan with the 1189 issue, is that you would have a pre-built kexec tar, and nixops will just upload it to a target running any version of linux
<lovesegfault>
jared-w: god as my witness we will see an unstable release
<clever>
jared-w: or for virtualbox, it could just be a slight variant of the installer iso
viric_ has quit [Read error: Connection reset by peer]
<jared-w>
ah perfect, that would be great
<jared-w>
One step closer to re-inventing terraform in nix :p
<gchristensen>
lovesegfault: I can, but unfortunately "unstable" doesn't tell me what job to kick :P
<lovesegfault>
and the aarch64 sd-image the night before :P
spwx has joined #nixos
justanotheruser has quit [Ping timeout: 245 seconds]
<spwx>
Hello, new nixos user here, I have read the nixos manual, but i was wondering if anyone here has set up spice-vdagentd to work with sway?
<spwx>
I have this in my configuration.nix: services.spice-vdagentd.enable = true;
<spwx>
but everytime i try to run: spice-vdagent -d -x i get the following error: spice-vdagent[3087]: connect /var/run/spice-vdagentd/spice-vdagent-sock: No such file or directory
h0m1 has quit [Ping timeout: 245 seconds]
<jared-w>
Does it work when not using sway?
jluttine has joined #nixos
h0m1 has joined #nixos
<spwx>
jared-w: I haven't tried another manager
<spwx>
i suppose ill install gnome and give it a go
<spwx>
was really hoping i could find another solution
<dansho>
,locate gnu/stubs-32.h
<{^_^}>
Found in packages: zig, glibc_multi.dev
<jared-w>
spwx: I don't think the manager is the issue, but there might be some odd configuration in spice-vdagentd that is breaking for one reason or another
<jwaksbaum[m]>
Following up on an earlier issue: I am trying to use linuxPackages_custom to run a custom kernel with custom config on NixOS. I'm getting errors, and I think I have a minimal example. Running nix-instantiate on tiny.nix gives me the error:
<jwaksbaum[m]>
error: attribute 'dev' missing, at /nix/store/da5i5y6vm0z538a17yfczwwkf0q592bd-source/pkgs/os-specific/linux/amdgpu-pro/default.nix:14:42
jbaum98 has joined #nixos
<spwx>
jared-w: yea its weird, once i start that service, i still have to manually start spice-vdagent... think im just gonna install gnome as well and see how stuff there works.
justanotheruser has joined #nixos
<{^_^}>
[nixpkgs] @nh2 merged pull request #75677 → glog: Add upstream patch to fix tests with musl. → https://git.io/JeQB4
<jared-w>
if it works great out of the box, all you need left to do is figure out where the systemd integration is going wrong, since that's the only "difference"
felixfoertsch has joined #nixos
<Orbstheorem>
How do you decide which packages are built on hydra? In particular, why is haskellPackages.xmonad-spotify built but not haskellPackages.reflex?
<jared-w>
Orbstheorem: package sets are the magic that makes the hydra spawn its heads
spwx has quit [Quit: WeeChat 2.6]
<Orbstheorem>
jared-w: I don't understand how that answers my question :)
<Orbstheorem>
For project nixpkgs, I thought all top level packages were built ^^
<jared-w>
erm, I swear I was going to follow that up with the real explanation and then I got distracted
<Orbstheorem>
That's a cool attention span xD
felixfoertsch23 has quit [Ping timeout: 265 seconds]
<jared-w>
yeah the TV is on and my wife's watching Fuller House and I have a severe inability to focus when a TV is on; it's a problem :p
<jared-w>
anyways, the package might be disabled
<jared-w>
or if a sub dependency is failing, it won't try to bulid
migralito has quit [Ping timeout: 260 seconds]
* Orbstheorem
just realised that it may not be reachable from top-level
bvdw has quit [Quit: Ping timeout (120 seconds)]
bvdw has joined #nixos
<jared-w>
haskellPackages is a bit odd in that regard
<Orbstheorem>
If a sub dependency fails, it should still be in the “Still failing jobs” list, right?
<clever>
Orbstheorem: i believe so
<Orbstheorem>
Okay ^^
<Orbstheorem>
Does all of hackage make it into hackage-packages?
<{^_^}>
"Primitives for manipulating the state of the universe"
<clever>
jared-w: i think this one is of more use
<jared-w>
Beauty. How have I never seen this one before?
<clever>
jared-w: i got bored one day, and read the docs for every single acme package :P
<jared-w>
lol, that'll do it
EdLin has joined #nixos
<Orbstheorem>
Is there a json API to get result from the latest eval for a given project? I would like to curl hydra.nixos.org/magic/nixpkgs | jq '.filter("failed"==true)' ...
<jwaksbaum[m]>
clever: not sure if you remember, but you were helping me yesterday with my issue with linuxPackages_custom. i have the system available now, can you help me debug?
<clever>
jwaksbaum[m]: sure, let me read the paste above...
<jared-w>
Orbstheorem: so I can't find the exact thing that causes reflex to not show up, but I can't find it in nixpkgs anywhere
<jared-w>
Or, well, in the hydra at least
<jwaksbaum[m]>
clever: cool sorry, wasn't sure if you read every message
<Orbstheorem>
jared-w: Yeah, I think it's may not be reachable from top-level/all-packages.nix
<jared-w>
I suspect there might not be a strong motivation to get reflex in there correctly because reflex-platform has a huge amount of tooling around it and nix integration and it's just so much easier to use that than to try and dump all of that into nixpkgs somewhere
<clever>
14 kernelDir = if libsOnly then null else kernel.dev;
<clever>
jwaksbaum[m]: its trying to read kernel.dev, to get the headers
<Orbstheorem>
Also not upstreaming reflex platforms' hacks causes `callCabal2nix` not to work...
<jared-w>
Orbstheorem: They haven't even upstreamed to hackage regularly
<clever>
jared-w: checking nixpkgs...
<Orbstheorem>
time to dig into reflex-platform's hacks...
vld has joined #nixos
bhipple has quit [Ping timeout: 265 seconds]
bhipple_ has quit [Ping timeout: 268 seconds]
<Orbstheorem>
Fun fact, I don't need reflex-platform, just reflex :(
bhipple__ has quit [Ping timeout: 268 seconds]
bhipple has joined #nixos
bhipple_ has joined #nixos
bhipple__ has joined #nixos
vld has quit [Ping timeout: 246 seconds]
<CMCDragonkai>
Given that `builtins.fetchGit` works at evaluation time and can use the user's SSH keys. How can I use `pkgs.fetchgit` to use use SSH keys that only the root user has access to? Is there a way so that only the nix-daemon can see these keys?
<CMCDragonkai>
I'm thinking of putting keys in `/run/keys` and only owned by root.
<CMCDragonkai>
But what else is needed?
<clever>
CMCDragonkai: you want pkgs.fetchgitPrivate, which needs some funky stuff with your ssh agent, and then any derivation downloading something can make use of your keys
<CMCDragonkai>
clever: that no longer exists
EdLin has quit [Quit: WeeChat 2.6]
<CMCDragonkai>
clever: even if it did, the fetchGitprivate seemed to make use of an agent to try to get keys, but I'm not actually interested in using my own personal keys, I want there to be keys that only the root user/nix daemon has access to.
<clever>
CMCDragonkai: socat acting as a proxy, will blame everything on root, and ssh-agent has an exception to let root in, so `sudo ssh foo` can use your agent, even though root isnt you
<CMCDragonkai>
was this the proper way of using fetchgitPrivate, or were you doing something special in addition to fetchgitPrivate
NoctisLabs has quit [Quit: WeeChat 2.6]
<clever>
CMCDragonkai: fetchgitPrivate never documented how to use the ssh-auth-sock, and this is the only way i found that works
<CMCDragonkai>
clever: Another alternative I was exploring is the use of token URIs, this means switching the fetch URL to https instead, and making use of an environment variable. But this has to happen only in the CI environment, whereas on Dev environments, it would be preferable to keep using `builtins.fetchGit` so they can reuse the dev's ssh key.
drakonis1 has quit [Quit: WeeChat 2.6]
ninegrid has quit [Ping timeout: 268 seconds]
drakonis has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos
remirol has joined #nixos
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 250 seconds]
lorimer has quit [Ping timeout: 240 seconds]
LLED2_2 has joined #nixos
LLED2_3 has quit [Ping timeout: 265 seconds]
drakonis has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
LLED2_2 has quit [*.net *.split]
bhipple__ has quit [*.net *.split]
captn3m0- has quit [*.net *.split]
jluttine has quit [*.net *.split]
elibrokeit has quit [*.net *.split]
Henson has quit [*.net *.split]
kleisli has quit [*.net *.split]
fresheyeball has quit [*.net *.split]
orivej has quit [*.net *.split]
eri has quit [*.net *.split]
Izorkin has quit [*.net *.split]
grumble has quit [*.net *.split]
nixy has quit [*.net *.split]
mounty has quit [*.net *.split]
ZeDestructor has quit [*.net *.split]
lukash_|away has quit [*.net *.split]
Guanin has quit [*.net *.split]
peanutbutter144 has quit [*.net *.split]
betaboon has quit [*.net *.split]
ToxicFrog has quit [*.net *.split]
evanjs has quit [*.net *.split]
lord| has quit [*.net *.split]
lunik14 has quit [*.net *.split]
xqsl has quit [*.net *.split]
hyper_ch has quit [*.net *.split]
kcalvinalvin has quit [*.net *.split]
rembo10 has quit [*.net *.split]
MinceR has quit [*.net *.split]
drainful has quit [*.net *.split]
judson_ has quit [*.net *.split]
Gohla has quit [*.net *.split]
silver_hook has quit [*.net *.split]
octe has quit [*.net *.split]
orbekk has quit [*.net *.split]
buckley310 has quit [*.net *.split]
Acou_Bass has quit [*.net *.split]
dirkx has quit [*.net *.split]
dirkx_ has quit [*.net *.split]
grw has quit [*.net *.split]
betawaffle has quit [*.net *.split]
nbp has quit [*.net *.split]
Sargun has quit [*.net *.split]
cjay- has quit [*.net *.split]
aleph- has quit [*.net *.split]
njd has quit [*.net *.split]
catern has quit [*.net *.split]
bastion-tester has quit [*.net *.split]
RustyRobot has quit [*.net *.split]
dsg has quit [*.net *.split]
kisonecat has quit [*.net *.split]
aminechikhaoui has quit [*.net *.split]
v0|d has quit [*.net *.split]
drozdziak1 has quit [*.net *.split]
rprospero has quit [*.net *.split]
mrlizard has quit [*.net *.split]
vk3wtf has quit [*.net *.split]
Arahael has quit [*.net *.split]
sheenobu has quit [*.net *.split]
shyim has quit [*.net *.split]
pjan has quit [*.net *.split]
multun has quit [*.net *.split]
jeaye has quit [*.net *.split]
j4m3s__ has quit [*.net *.split]
Raito_Bezarius has quit [*.net *.split]
marcusr has quit [*.net *.split]
ajp_ has quit [*.net *.split]
ddima__ has quit [*.net *.split]
ptrcmd has quit [*.net *.split]
ornxka has quit [*.net *.split]
kwork has quit [*.net *.split]
dooms has quit [*.net *.split]
iMatejC has quit [*.net *.split]
mfernandez has quit [*.net *.split]
ivegotasthma has quit [*.net *.split]
HedgeMage has quit [*.net *.split]
joko has quit [*.net *.split]
kaychaks has quit [*.net *.split]
monokrome has quit [*.net *.split]
mupf has quit [*.net *.split]
locallycompact has quit [*.net *.split]
disasm has quit [*.net *.split]
Intensity has quit [*.net *.split]
linuus has quit [*.net *.split]
hodapp has quit [*.net *.split]
mrus has quit [*.net *.split]
dev3 has quit [*.net *.split]
kriztw has quit [*.net *.split]
pemeunie1 has quit [*.net *.split]
heath has quit [*.net *.split]
umachan has quit [*.net *.split]
klys has quit [*.net *.split]
swistak35 has quit [*.net *.split]
adamCS has quit [*.net *.split]
switchy has quit [*.net *.split]
danderson has quit [*.net *.split]
o1lo01ol1o has joined #nixos
<jwaksbaum[m]>
clever: now i'm not so sure my example is relevent because, for example, even linuxPackages won't instantiate without error. it seems boot.kernelPackages lazily accesses certain attributes and some of them are broken
<jwaksbaum[m]>
clever: thanks for your help, i found the issue was in my own configuration. Thanks again for your prompt responses and sorry for wasting your time.
<lovesegfault>
how do I get my default.nix to use nixpkgs?
<clever>
jwaksbaum[m]: what was the issue?
<lovesegfault>
I thought it was { pkgs, ... }: ...
<lovesegfault>
but it complains pkgs is not a thing
<lovesegfault>
error: cannot auto-call a function that has an argument without a default value ('pkgs')
<clever>
,callPackage lovesegfault
<{^_^}>
lovesegfault: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<lovesegfault>
clever: That's annoying though, can't it just callPackage itself
<clever>
lovesegfault: it cant
<jwaksbaum[m]>
clever: my configuration was failing various assertions. It was only after wrapping it in things like recueseAttrs or linuxPackagesFor that the other errors happened. Not being able to instantiate the whole set was a red herring. Fixing the config itself to enable for example rpi filter, and then just using the result of linuxPackages_custom fixed it.
NoctisLabs has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @jonringer opened pull request #75744 → python3Packages.starfish: disable due to incompatible dependencies → https://git.io/JeQ7n
jbaum98 has quit [Quit: Connection closed for inactivity]
NoctisLabs has quit [Quit: WeeChat 2.6]
vld has quit [Ping timeout: 265 seconds]
kolbycrouch has joined #nixos
<kolbycrouch>
Why do I get "output '/nix/store/*-stdenv-linux' is not allowed to refer to the following paths: /nix/store/*-musl" when I tried to override pkgs.coreutils for pkgs.pkgsMusl.coreutils in a mkDerivation?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
NoctisLabs has joined #nixos
<MichaelRaskin>
kolbycrouch: the stdenv code doesn't want to have references to the glibc of the wrong stage or something like that, so it limits what runtime dependencies are allowed.
<MichaelRaskin>
You seem to have done something this check does not like
<kolbycrouch>
MichaelRaskin:Hmm, maybe I can disable this check? I've combed through nixpkgs and haven't found anything about it though.
<pie_>
my wifi drivers seem to be borked regardless of kernel version
<pie_>
rolling back does work but i dont know what changed
<pie_>
actually hold on, i thought firmwareLinuxNonfree hasnt changed, but i confused myself
<pie_>
ah. that might be the culprit.
<pie_>
I guess I can try downgrading that to the one on stable
<pie_>
bbiab
<pie_>
clever: bad thing about rare reboots, everything is broken when you do reboot :P
<clever>
pie_: and thats why i never reboot! lol
<kolbycrouch>
MichaelRaskin: After looking at, It seems like it should work with musl via override. It complains about attr too even though its in allowedRequisites.
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #75747 → pango: fix darwin build → https://git.io/JeQ7D
fusion809 has quit [Remote host closed the connection]
<DigitalKiwi>
almost all of my reboots are either because of a kernel segfault, or initiate a kernel segfault
<DigitalKiwi>
so by reboot i mean i have to hold the power button :|
<clever>
DigitalKiwi: in my case, its having a panic, on bootup, because pid 1 failed with SIGILL
mexisme_ has quit [Ping timeout: 276 seconds]
<DigitalKiwi>
can't reboot if you never boot *taps head*
sjkelly1 has quit [Remote host closed the connection]
pie_ has joined #nixos
Acou_Bass has joined #nixos
lord| has joined #nixos
bhipple_ has quit [Remote host closed the connection]
bhipple has quit [Remote host closed the connection]
<keithy[m]>
im struggling to get an old mac imac circa 2008 to boot with nixos.
<pie_>
clever: turns out its not a version problem. i think the firmware isnt being found for some reason. after some reverse engineering of nixpkgs; i created /lib/firmware and put the iwlwifi firmwares in there and a manual reload of the kernel module worke
<pie_>
so either the firmware isnt added to the config as it should be or something is screwy in stage1, apparently firmwares are loaded by the kernel in stage1 afaict
<pie_>
clever: also the new nixos-option is sooooo goooooood
<pie_>
compared to the old one its amazing
<pie_>
well its probably like two months old at this point but my configuration was so broken it was hard to update :P
<pie_>
oh you know what
<pie_>
i bet the problem is i removed "not-detected.nix" from my config
<pie_>
its what seems to set enableredistributablefirmware
<keithy[m]>
it was booting directly into fedora, but nixos instructions didnt help
<clever>
pie_: ls /run/current-system/firmware
rauno has quit [Ping timeout: 250 seconds]
<pie_>
clever: oh. also yeah its empty
<pie_>
clever: so what actually goes in there
<pie_>
how would i know to check that directory
<pie_>
is that remnants of stage1 or what
<clever>
[clever@amd-nixos:~/apps/nixpkgs-hasura]$ ls /run/current-system/firmware/iwlwifi-* -l
<pie_>
clever: i figures /lib/firmware is hardcoded into iwlwifi or something. its configurable?
<Orbstheorem>
I find funny there's a NixOS logo in the pinephone image x)
<clever>
pie_: when a driver wants to load firmware, it tosses the filename down to udev
<pie_>
clever: oh....
<clever>
pie_: udev is then responsible for finding the file, and given the kernel a copy
<pie_>
clever: LFS?
<clever>
pie_: lfs?
<pie_>
clever: do you know this from doing LFS? (i happen to have gotten an lfs thread while googling(
palo1 has joined #nixos
<clever>
pie_: i know this, because i manually reverse engineered, and then implemented firmware handling, in bash, to get wifi in the initrd, lol
<clever>
pie_: back when i was playing around with initrd's in gentoo
<pie_>
oh. 'xD
<pie_>
with all the crazy stuff people put in initrd im not sure why an initrd even exists
bahamas has joined #nixos
<pie_>
just directly go into linux
<clever>
pie_: the main job of the initrd, is to let you customize which modules get loaded at boot, without having to compile the kernel again
<clever>
pie_: so you can do things like add zfs to the initrd, to deal with root on zfs, without rebuilding a new kernel
<pie_>
hm
<bahamas>
I have this shell.nix file https://bpaste.net/show/MA2PU. can anyone remind me how do I change it so I'm actually dropped in a shell where those packages are installed in ghc?
<{^_^}>
[nixpkgs] @jonringer opened pull request #75749 → python3Packages.gym: disable due to missing dependencies → https://git.io/JeQ5G
<clever>
bahamas: thats giving you a shell suitable for building ghcWithPackages, not using the result of a built ghcWithPackages
palo has quit [Ping timeout: 252 seconds]
palo1 is now known as palo
<pie_>
clever: so the point of the initrd is to enable making scripts that do IO, so kernel modules can be loaded?
<clever>
bahamas: you must create another derivation, and add ghcWithPackages to the buildInputs of it
<clever>
pie_: the scripts are more just a way to load the modules, and configure other stuff to mount the real root
<pie_>
bahamas: mkShell is a shorthand for the above ^
<pie_>
clever: well ok
kvda has joined #nixos
<pie_>
at least i can say i learned something from shooting myself in the foot
<lovesegfault>
clever: for future reference, pypi2nix is wonderful
<MichaelRaskin>
kolbycrouch: note that this is not about _any_ coreutils, it is about the specific-stage coreutils
<MichaelRaskin>
clever: I think when I was using my own bash replacement for udev, firmware loading was OK-ish documented in the kernel docs
<clever>
MichaelRaskin: maybe i just didnt read the docs back then, lol
<clever>
MichaelRaskin: currently, i'm deaing with FPU exceptions on bootup
<bahamas>
clever: pie_ I made it work. thanks!
<pie_>
i finally installed direnv
<pie_>
do i want to do any config on it or does it more or less work out of the box
<bahamas>
but before I found the solution I hit a gotcha. why did this https://bpaste.net/show/DGWCG cause the error: "cannot coerce a function to a string"?
MichaelRaskin has left #nixos [#nixos]
janneke_ has joined #nixos
<clever>
bahamas: nix doesnt use , to seperate list items, so [ function value ] is a list with 2 elements, not 1, which can lead to confusing errors
<clever>
bahamas: you must wrap line 15 in ( and )
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
kvda has joined #nixos
kvda has quit [Changing host]
janneke has quit [Ping timeout: 245 seconds]
<bahamas>
clever: ah, that makes sense. I went around it by assigning the return value to a variable and putting that in the list
<bahamas>
thanks!
<bahamas>
I'm curious. is there any way I could have done that strictly from the command-line without using a file? my goal was to have a nix-shell with a different version of time, but I had to disable tests, because they were failing
<clever>
bahamas: basically, just shove that entire string into -p
<Gopal-M>
I'm trying to do an rclone mount using a systemd service but it isn't able to find `fusermount`. if I include `pkgs.fuse`, it fails with: "fusermount: operation not permitted"
<Gopal-M>
but the `fusermount` in /run/wrappers/bin is able to do mounts
<Gopal-M>
symphorien: yeah, I tried that but I'm talking about a wrapper here
<symphorien>
.path = [ "/run/wrappers/" ]; I expect
<Gopal-M>
oh
<Gopal-M>
shit
<Gopal-M>
I never thought of that
vld has joined #nixos
<Gopal-M>
let me try
rardiol has quit [Ping timeout: 250 seconds]
<Gopal-M>
Fatal error: failed to mount FUSE fs: fusermount: exec: "fusermount": executable file not found in $PATH
<Gopal-M>
i get this
<Gopal-M>
I think I have to include `pkgs.fuse` too then?
<Gopal-M>
didn't work, says "mount helper error: fusermount: mount failed: Operation not permitted"
<symphorien>
can you check the actual definition of PATH with systemctl cat foo.service ?
<symphorien>
if you include pkgs.fuse, the non-setuid fusermount will shadow the one in /run/wrappers/bin
<symphorien>
so you should leave it out
o1lo01ol1o has quit [Ping timeout: 250 seconds]
vld has quit [Ping timeout: 268 seconds]
<Gopal-M>
oh! for some reason, the first entry is `/run/wrappers/bin/bin`
<Gopal-M>
I think it appends the bin
<Gopal-M>
fixed
<Gopal-M>
thank you so much <3
<symphorien>
the reason is that when you add pkgs.fuse, it will add ${pkgs.fuse}/bin to PATH
<aterius>
I'm having some trouble understanding the default.nix in https://github.com/gilligan/nix-neovim-nightly. When I update the shas to point at nixpkgs master (instead of the fork) and to the latest neovim with niv, the binary output by nix-build points to a very an older version of neovim rather than the one provided by the overlay...
<Gopal-M>
one more thing, why do I have to do: ${pkgs.rclone}/bin/rclone in ExecStart?
<Gopal-M>
when `pkgs.rclone` is already in $PATH
<symphorien>
systemd requires absolute paths in ExecStart
<Gopal-M>
otherwise it says: "executable not found at /no-such-path"
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Gopal-M>
so if I were to refer to fusermount, I'd have to hardcode /run/wrappers/bin/fusermount ?
<symphorien>
it will ignore custom paths
<symphorien>
yes
<Gopal-M>
alright
<Gopal-M>
I was thinking if I could refer to the wrapper somehow to
<asheshambasta>
I've been unable to get Alsa and PA to work correctly on 19.09 (and probably others too); If I reboot my system and run, say csound, which I think talks to PA; none of the other applications can connect to PA: I get a "Connection refused" in the logs.
<keithy[m]>
Hi, I tried a ./result/bin/run-server-vm and got a... gtk initialization failed ... does it assume a graphical environment?
<asheshambasta>
so, I'm using Stack (Haskell) with its nix option pointing to a .nix file. I'd like to think that Stack evaluates this nix expression and runs all stack commands (ghci etc.) within a nix-shell (or equivalent).
janneke_ is now known as janneke
<asheshambasta>
How do I let this environment spawned by stack connect to PulseAudio running on the system?
<elvishjerricco>
asheshambasta: I don't remember if Stack uses a --pure nix-shell or not but I'd wager that'd break pulseaudio
<elvishjerricco>
Not sure on that
<asheshambasta>
the strange thing is; I can run cmds that need to connect to PA to play sound from the cli and also from `nix-shell -p csound --command csound -odac somesound.csd`
<asheshambasta>
elvishjerricco: it does; if I run the repl and play sound from Haskell the first thing that accesses PA after a reboot, PA daemon seems to die afterward.
<asheshambasta>
AFAIR; it can no longer acquire a DBus related resource (a name or something)
shabius has quit [Ping timeout: 276 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sigmundv has joined #nixos
<asheshambasta>
so that was the issue: the nix.pure = false fixes this. And this caused PA to break indeed.
civodul has joined #nixos
domogled has joined #nixos
sigmundv has quit [Remote host closed the connection]
psyanticy has joined #nixos
qualiaqq has quit [Remote host closed the connection]
<asheshambasta>
an interesting point from a NixOS newbie: is this a leak in the isolation provided by nix-shell? For example; I can alter system state from within it?
<__monty__>
asheshambasta: As long as you have a shell.nix that provides everything you can still use cabal to get sub-package incremental builds. (lorri+direnv+shell.nix makes for an amazing development setup)
shabius has joined #nixos
bahamas has quit [Ping timeout: 245 seconds]
cfricke has quit [Quit: WeeChat 2.6]
cjpb2 has quit [Quit: Quitting now.]
gkmngrgn has joined #nixos
mexisme_ has quit [Ping timeout: 245 seconds]
mexisme_ has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
grumble has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 closed pull request #74726 → linux_latest-libre: remove due lack of maintenance → https://git.io/Je1id
vld has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<chrisaw>
When using a FHS (chroot) environment for a package is there a standard set of fonts recommended? Packaging vmware workstation and all text is squares (i.e. missing font.)
patrol02 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
opthomasprime has quit [Remote host closed the connection]
zupo has joined #nixos
bahamas has joined #nixos
<patrol02>
Hi! Does anyone know how to set/update gnome3 settings (such as background image, theme, etc.) in configuration.nix? I have tried "extraGSettingsOverrides" but it doesn't seem to change anything...
<karetsu>
patrol02: I have that set up in my home-manager overlay, do you need it as a system-wide setting?
<patrol02>
karetsu: I only have one user, it's a laptop, so whatever is easier. I only want to be able to change these settings through the conf file. Thanks, looking at your conf!
<patrol02>
karetsu: I don't quite understand how it works... Is that `gtk` record is being used somewhere to configure GTK? I don't see `gtk.fonts` as NixOS options
<simpson>
gchristensen: I've used trackballs for like a decade, and have not ever seen this problem. I'm usually using Logitech, though, which has fantastic driver support. (Currently holding an Elecom Deft)
<gchristensen>
it only happens sometimes
travelion has quit [Ping timeout: 248 seconds]
<gchristensen>
and isn't limited to trackballs, but also my rollermouse red and other USB devices
<simpson>
Like, roll the ball, but no cursor movement or waking? It's super-curious.
<simpson>
Ooh, interesting. That's probably a hint.
<gchristensen>
right, no mouse input is accepted at all until I click a button
dingenskirchen has quit [Remote host closed the connection]
<LnL>
I've had keyboard weird lag problems before but turns out that was just the receiver that was too far away
<grw>
hi, does anyone have dota2 working in steam with navi gpu?
<grw>
i have tried new kernel, new mesa, always just hangs as soon as it start
<{^_^}>
[nixpkgs] @alyssais pushed commit from @Luflosi to master « kakoune: 2019.07.01 -> 2019.12.10 »: https://git.io/Je7UO
<grw>
adisbladis: i had some problem before which did show up in dmesg before but i copied some patch from mesa bugzilla and it seemed to go away
<adisbladis>
grw: Which mesa version are you on?
dingenskirchen has quit [Quit: dingenskirchen]
<grw>
something about 'flip hangs'
<grw>
adisbladis: 19.3.0
dingenskirchen has joined #nixos
<grw>
i wanted to try 20 but i could not get to compile 32bit.. "undefined refeences to __divmoddi4"
<adisbladis>
grw: Hm? You bumped it locally then I guess?
<roberth>
jco: your stdenv.mkDerivation call is missing a `src` argument. If you don't want to unpack a source, use `unpackPhase = "";`
<grw>
adisbladis: yes, can share my tree if you want to try
<grw>
i did not make PR since i think 19.3 is 'development release'
<Henson>
gchristensen: use dmesg to figure out what USB ID your mouse has. Say it's 2-5. Then type "cat /sys/bus/usb/devices/2-5/power/level" and see what it says.
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<jco>
roberth: thanks, I'll try this, also I just did : cachix push lambdaman /nix/store/jg3jy0cxvvwn5kvymsk3f1bkkhn0957p-lambda-man
o1lo01ol1o has joined #nixos
<jco>
which was the location of the compiled environment in the nix store, but thanks!
<roberth>
jco: looks good
<jco>
also I had a problem with regarding the version of nixpkgs used : for this enviromnment I used a pinned version of nixpkgs.unstable
<jco>
while it worked on nixos-19.09, it failed on nixos-unstable
<adisbladis>
grw: That's OK
<adisbladis>
grw: I also have a tree with 19.3.0 :)
<jco>
let me find which problem it was
andreas303 has quit [Ping timeout: 260 seconds]
andreas303 has joined #nixos
<grw>
adisbladis: the recommendation on bugzilla for "fewest hangs" (lol) is mesa 20 with llvm 10.. maybe i will try to package this
<grw>
did you try?
fusion809 has joined #nixos
<adisbladis>
Nope, I didn't
<adisbladis>
grw: Do ping me for a review :)
<grw>
heh.. seems a big task and i wont manage it, but will ping if i do :)
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @ehmry opened pull request #75761 → gubbi-font: init at 1.3 → https://git.io/Je7Uz
<asheshambasta>
__monty__: mind sharing your setup a bit?
o1lo01ol1o has joined #nixos
<roberth>
jco: usually cachix on nixos-unstable breaks due to untested changes in pkgs.haskellPackages, which is why we recommend pinning or using something like nix-env -iA cachix -f https://cachix.org/api/v1/install
<__monty__>
asheshambasta: Sure, this is what I'm using for this year's AoC for example, http://ix.io/24B8
<jco>
roberth: good to know, however it wasn't cachix at fault, just a linkage error with the ocaml libraries
<__monty__>
asheshambasta: Just requires nix and lorri are installed and gives me an environment with ghc/cabal/ghcid/fast-tags and a couple dependencies.
<__monty__>
asheshambasta: lorri updates the environment in the background if I change shell.nix and it let's me avoid a nix-shell so I can work in fish rather than bash.
<jco>
which is surprising because the environment is the same no matter on which version of nixos the host system is
Rusty1 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
ddellacosta has joined #nixos
o1lo01ol1o has joined #nixos
cfricke has quit [Quit: WeeChat 2.6]
ftzm has quit [Ping timeout: 250 seconds]
ftzm has joined #nixos
swapgs has quit [Ping timeout: 246 seconds]
<jco>
so on nixos unstable the error is /nix/store/cck34jmmlzi3rwvnl39c0bxyb6c22mb9-ocaml-findlib-1.8.1/nix-support/setup-hook: ligne 9: createFindlibDestdir : variable sans liaison
<jco>
"variable without linkage"
<jco>
while on stable it works
<jco>
and I'm using a pinned version of nixos unstable in the environment
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
eacameron has joined #nixos
jco has quit [Ping timeout: 246 seconds]
jco has joined #nixos
gilligan_ has joined #nixos
m4ts has joined #nixos
m4ts has quit [Client Quit]
m4ts has joined #nixos
ng0_ has joined #nixos
Ariakenom has joined #nixos
<Ariakenom>
what's the difference between python36 and python36Full?
<Taneb>
I think python36Full includes the Tkinter stuff
ng0 has quit [Ping timeout: 260 seconds]
mexisme_ has joined #nixos
zupo has joined #nixos
halfbit has joined #nixos
<exarkun>
Anybody at all using development mode for a Python project with Nixpkgs?
ng0_ is now known as ng0
mexisme_ has quit [Ping timeout: 246 seconds]
zupo has quit [Ping timeout: 268 seconds]
erictapen has quit [Ping timeout: 268 seconds]
boogiewoogie has joined #nixos
Chiliparrot has joined #nixos
gustavderdrache has joined #nixos
<Ariakenom>
Taneb: ok
<Ariakenom>
is it easy to do freeipa like things with nixos? im following some company instructions
<simpson>
exarkun: I think that I had had it working once upon a time. Preferable, IMO, is going to the desired working tree and then using nix-shell to overlay the nixpkgs expression into the working tree. (ISTR this is due to special nix-shell hooks in our Python subsystem.)
isHavvy has joined #nixos
kiwi_8 has joined #nixos
<exarkun>
It seems like you need to do more than that to get many projects to work, though. Any project that uses the `src/` layout, for example?
<FRidh>
exarkun: with many projects is not really possible; all deps are expected to be in the nix store. All you can do is set PYTHONPATH yourself to point to alternative locations
<gustavderdrache>
is there a way to encourage nix to spread the contents of an image created with buildLayeredImage? the last layer is getting 73 store paths copied into it, and i want to separate some in order to get a little better layer sharing behavior between some variations
<exarkun>
FRidh: I don'
<gchristensen>
gustavderdrache: what is your maxLayers set to?
<gustavderdrache>
whatever the default is
<gchristensen>
increase it :) maxLayers = 120
<exarkun>
FRidh: I don't follow. Aren't deps always expected to be in the nix store, for projects implemented in any language? And that doesn't seem like much of a constraint given one has bought into the Nix philosophy.
Havvy has quit [Ping timeout: 250 seconds]
<exarkun>
Is it related to the behavior of not procesing .pth files during the build stage?
<gustavderdrache>
gchristensen: magic!
<gchristensen>
:)
<FRidh>
exarkun: you want development mode for multiple projects, at the same time, right? That means you need to express that somewhere, that those packages would be installed impurely. That means these dependencies need to be overridden with a reference to the impure version
<gchristensen>
should probably just make 100 the default, or something
<gustavderdrache>
that's what the manual says it is
<exarkun>
FRidh: I might settle for a development mode for just one project to start with.
<Ankhers>
Is there a way yet, or maybe a competing tool, for nixops to be easily useable from multiple machines?
MmeQuignon has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<lordcirth__>
Ankhers, like, sharing the state db?
<Ankhers>
lordcirth__: Yes. I have 3 different computers that I use on a regular basis and would love to have them synced with nixops.
<Ankhers>
Sorry, that wording my be wrong. I do not want the computers themselves synced. I just want an easy way to make my deployments from any of my machines.
<lordcirth__>
Hmm. Well, you can always ssh from one to the other. Alternatively, you could put the DB on a network mount, but you might need to be careful with locking
<lordcirth__>
At some point there will probably be support for using SQL connections rather than a local SQLite file
<exarkun>
Ankhers: have you seen morph
<Ankhers>
exarkun: I have not.
<exarkun>
Ankhers: it's kinda like nixops except without a local database
<jared-w>
Is there a deprecation plan for pkgs.fetchgit now that we have builtins.fetchGit? I've seen things like "DONT USE THE PKGS FUNCTION" popping up in readmes which is why I ask
<jared-w>
Ankhers: I've been heavily doing various ops like things with nix the past few weeks, so I have all the fun things open in different browser tabs lol
<{^_^}>
[nixpkgs] @rycee pushed commit from @emilazy to master « whipper: 0.9.0 -> 0.9.1.dev7+g9e95f06 »: https://git.io/Je7It
<jared-w>
Yes, morph doesn't provision, it only manages. I'm fine with separating provisioning from management since the former is significantly harder than the latter
<Ankhers>
Fair enough. I just wanted to make sure I was reading that properly.
<jared-w>
yup!
Ariakenom has quit [Quit: WeeChat 2.6]
<jared-w>
I've personally been using krops over morph recently because morph only works on linux and I'm trying to make a setup that can deploy from macos/*nix to nixos VM(s) with minimal hassle
<jared-w>
krops is essentially a fancy rsync + run some nix commands
<Ankhers>
lorri looks interesting too. I am going to have to dig through that repository.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has joined #nixos
<Ariakenom>
I suppose you cant run freeipa on nixos?
<Ankhers>
exarkun, jared-w: Thanks for the help. You've given me some stuff to dig through.
<jared-w>
Christian[m]3: lorri + niv is probably my favorite setup for dev so far. Absolutely killer in terms of getting all your dependencies lined up; it's as reliable as containers for me but far far faster and more ergonomic
<jared-w>
I'm still working through my configuration.nix and slowly ripping out everything not related to essential non-development stuff. I want to push all of that down into per repo setup
<{^_^}>
[nixpkgs] @filalex77 opened pull request #75768 → hydroxide: init at 0.2.11 → https://git.io/Je7I8
<{^_^}>
[nixpkgs] @softinio opened pull request #75769 → Add new vim plugins 3 → https://git.io/Je7I4
chloekek has quit [Quit: WeeChat 2.6]
<jared-w>
The only thing that annoys me about it is there's no easy way to DRY out per-repo setup without making that repo somehow coupled to your personal environment... At least that I've found
<lordcirth__>
I love "nixops check". It does seem to take a long time, though.
<catern>
is there an easy way to build an installation binary tarball containing a patched version of Nix? I just tried building it with release.binaryTarball from the Nix repo, but it looks like install-multi-user doesn't pass shellcheck, so the build fails...
<elvishjerricco>
I'm curious. With `users.users.<name?>.cryptHomeLuks`, what happens when you login with an SSH key? Are you prompted for a decryption key on login anyway, or do you have an empty home directory?
stears has quit [Quit: WeeChat 2.6]
<boogiewoogie>
hey, I'm still having some issues, mostly with games, on current (and younger) 19.09. none of these happen on latest 19.03, which I'm therefore still keeping a generation of (so it's not a biggie yet). I've compiled what I thought might be useful here: https://hastebin.com/efitugesom.
sigmundv has quit [Ping timeout: 246 seconds]
<boogiewoogie>
The issues don't seem very connected to me, but then again I'm not at all competent to conclude such a thing. Yet I'm curious about what's going on and would of course love to see them fixed for future nixos builds. :)
<boogiewoogie>
maybe it's just my system though, which I deem unprobable because of determinism and it working on 19.03 for me? but I'd still be interested, of course, if any of you can reproduce this. :)
<evanjs>
okay I was seriously overthinking shell.nix-ing the linux kernel. just needed `pkgs.mkShell { nativeBuildInputs = [ pkgconfig ncurses flex bison ]; } and that works fine
<exarkun>
mehlon: fwiw I think maybe I recall hearing that armv7l wasn't reliably being built anymore, so the caches won't have any recent versions of anything
dingenskirchen has joined #nixos
<mehlon>
oh
<mehlon>
eh I guess I'll have to just use another distro
<mehlon>
or get a new pi...
<mehlon>
by the way, how is cross-compilation on nix?
<genesis>
:D
<mehlon>
is it easy? does it work well?
<genesis>
the little i test, it's not as easy as real stuff like openembedded
<exarkun>
It's kind of doable
<exarkun>
depending on what you're compiling
<mehlon>
last time I tried to cross compile on linux I used a chroot into alpine, with qemu user emulation
<exarkun>
nixpkgs does some of the hard stuff for you
<exarkun>
but not all of it
<mehlon>
(easier than getting gcc to do it)
<exarkun>
fwiw, recently, I went with nix on one of my rpi projects and raspbian on another
<exarkun>
nix was harder to set up but has proven easier to maintain so far
boogiewoogie has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @grahamc opened pull request #75778 → docker examples: Drop unneeded contents list → https://git.io/Je7q3
boogiewoogie has joined #nixos
asheshambasta has quit [Ping timeout: 246 seconds]
<duairc>
aaaagh
chloekek has joined #nixos
zupo has joined #nixos
<duairc>
If I disable network.useDHCP, then my initrd networking doesn't work
<duairc>
How could that be? It's statically configured
<{^_^}>
[nixpkgs] @grahamc opened pull request #75779 → dockerTools.buildLayeredImage: update maxlayers from 24 to 100 to match documentation → https://git.io/Je7qW
<duairc>
I need to disable network.useDHCP to continue using systemd-networkd but that's a separate issue for now
<{^_^}>
[nixpkgs] @peti opened pull request #75782 → Update mailman, postorius, and hyperkitty to their respective latest versions → https://git.io/Je7qV
lovesegfault has quit [Ping timeout: 276 seconds]
hmpffff has quit [Quit: nchrrrr…]
kalipso has joined #nixos
<duairc>
It seems that my ip= line may never have had any effect and that it was using dhcp all along
<exarkun>
mehlon: 1 and 3 b+
<duairc>
And also that my ip= line is wrong
Chiliparrot has joined #nixos
knupfer has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @costrouc opened pull request #75783 → pythonPackages.casbin: init at 0.8.3 → https://git.io/Je7qr
knupfer has quit [Remote host closed the connection]
orivej has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
cosimone has joined #nixos
knupfer has joined #nixos
<jared-w>
Is there a reason hydra from nixpkgs basically duplicates the entire release.nix file inside the hydra repo?
<{^_^}>
[nixpkgs] @grahamc merged pull request #75778 → docker examples: Drop unneeded contents list → https://git.io/Je7q3
<srhb>
jared-w: nixpkgs is not allowed to import nix expressions from external derivations.
dingenskirchen has quit [Remote host closed the connection]
<srhb>
jared-w: (which any sort of fetching would be)
gkmngrgn has quit [Ping timeout: 246 seconds]
<jared-w>
ah, so then the better question is why does hydra's release.nix file mostly duplicate the upstreamed nix file instead of overriding it?
asheshambasta has joined #nixos
<srhb>
jared-w: Yes, you could argue that. The hydra nixpkgs jobsets do get nixpkgs fed in via the hydra input mechanism, so that would be doable.
<srhb>
I think the answer to that is mostly convenience -- being able to develop Hydra in isolation.
puffnfresh has quit [Ping timeout: 268 seconds]
gnidorah has joined #nixos
<srhb>
jared-w: Questions like that inevitably lead to "nix expressions from disparate sources don't compose well" -- which is part of the motivation for proposed solutions like nix flakes.
<jared-w>
srhb: I had flakes in the back of my head and suspected it would lead to that at some point :)
puffnfresh has joined #nixos
<srhb>
jared-w: Sneaky. :-)
jgeerds has joined #nixos
gxt has quit [Remote host closed the connection]
gxt has joined #nixos
dx_ has quit [Read error: Connection reset by peer]
dansho_ has joined #nixos
dansho_ has quit [Client Quit]
<{^_^}>
[nixpkgs] @charles-dyfis-net opened pull request #75784 → sqlite-sqldiff: init at 3.30.0 → https://git.io/Je7mc
kalipso has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @eraserhd opened pull request #75785 → weechat: Fix build on Darwin (includes TCL fix) → https://git.io/Je7ml
scasc has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cosimone has quit [Quit: Quit.]
<jared-w>
Nice. If I make an overlay that overrides hydra with the git hydra and use callPackage on its release.nix file, I can do that instead of manually copying over any changes. Probably terrible, but it works surprisingly well :p
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cosimone has joined #nixos
jonreeve[m] has joined #nixos
<{^_^}>
[nixpkgs] @grahamc merged pull request #75780 → dockerTools: the API has basically never changed → https://git.io/Je7qR
<{^_^}>
[nixpkgs] @grahamc merged pull request #75779 → dockerTools.buildLayeredImage: update maxlayers from 24 to 100 to match documentation → https://git.io/Je7qW
<{^_^}>
[nixpkgs] @chkno opened pull request #75787 → nixos/nixos-option: "See also configuration.nix manpage" in nixos-option manpage → https://git.io/Je7mD
<{^_^}>
[nixpkgs] @FRidh pushed 129 commits to staging-next: https://git.io/Je7mS
<jco>
Error "the execution of the gapplication failed (no such file or directory)"
<jco>
anyone has faced this issue?
<zeta_0>
could someone paste the link to nixos haskell infrastructure, i can't seem to find it
rardiol has quit [Ping timeout: 268 seconds]
mehlon has quit [Quit: Quit]
<evils>
jco: what channel is this from?
psyanticy has quit [Quit: Connection closed for inactivity]
<eacameron>
Is there a way to configure `NIX_PATH=nixpkgs=X` such that `X` is effectively something like `(import some/file.nix {}).attr`or must I put that in a file and point to that
<catern>
eacameron: you basically want to set things up so that "import <nixpkgs>" does an import-from-derivation, right?
<arcnmx>
afaik it needs to be in a file though it's worth noting those kinds of things can break imports like <nixpkgs/nixos>
<eacameron>
catern: Yes
hmpffff has joined #nixos
<catern>
I don't know of a way to do that, sorry
<infinisil>
Since NIX_PATH is used with imports, you have to have some file
<catern>
but I've wanted to do it as well
philr has joined #nixos
<infinisil>
eacameron: Use-case?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
rardiol has joined #nixos
mexisme_ has joined #nixos
<arcnmx>
I do that on my system as a kind of way of preapplying configs/overlays/etc. to nixpkgs in a deterministic way but it's fairly ugly.
levdub has joined #nixos
<eacameron>
Build tool. I already have a nixpkgs pinned but I have some user-specified-code that sometimes uses `<nixpkgs>` and I can't change it. I happen to be in a nix-shell --pure when building their stuff though so I want to just pin NIX_PATH to my pin and make their <nixpkgs> use it.
<catern>
infinisil: well you said "Well, I just wanted the nix-instantiate & co. commands to work with the correct nixpkgs without having to specifiy it every time"
<infinisil>
catern: Problem is, it's not my code that's importing <nixpkgs>
<danderson>
elvishjerricco: I know how the tests work for nixos itself. Wondering how to make it work for random other things, rather than nixos itself
<elvishjerricco>
danderson: Oh. Wouldn't you just issue the desired commands to the vm in the test script?
<{^_^}>
[nixos-weekly] @noteed opened pull request #109 → Add nix-notes, a collection of short notes about Nix, each contributing to the same virtual machine image → https://git.io/Je7Yu
shibboleth has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
phreedom has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
phreedom has joined #nixos
gxt has joined #nixos
ghutzriop has joined #nixos
<evils>
jco: it seems to work for me from unstable, can you try that?
<danderson>
elvishjerricco: not sure how I'd do that without having to import all of the nixos repository into my own unrelated git repo. Maybe it's just failure of the imagination though, I could definitely see that :)
gxt has quit [Client Quit]
<{^_^}>
[nixpkgs] @jonringer opened pull request #75791 → errbot: fix darwin tests → https://git.io/Je7YK
<{^_^}>
[nixpkgs] @costrouc opened pull request #75792 → python3Packages.aiokafka: init at 0.5.2 → https://git.io/Je7YX
<catern>
infinisil: wow, that's lame. I've never used nixops, and to see that it has such low code quality makes me not want to use it, either!
mehlon has joined #nixos
<mehlon>
how do you manually compile a package from the repository?
<lordcirth__>
I wasn't following, what is so bad about the nixops code?
<lordcirth__>
mehlon, in the root of nixpkgs, nix-build -A pkgname
<lordcirth__>
mehlon, it's one way. Do you want to build from stable channel?
<mehlon>
that would require switching the git branch, right?
<lordcirth__>
I think you can specify a tarball over https as well?
`_ has joined #nixos
`_ has quit [Remote host closed the connection]
ghutzriop has quit [Quit: Leaving]
<mehlon>
so when you do nix-build, can you then 'install' the package?
drakonis has quit [Ping timeout: 246 seconds]
fpletz has quit [Remote host closed the connection]
mehlon has quit [Quit: Quit]
fpletz has joined #nixos
Ariakenom has quit [Quit: Leaving]
fpletz has joined #nixos
fpletz has quit [Changing host]
<srhb>
danderson: Well, while you can import the test infrastructure directly, you don't win much. They really are NixOS vms, and as such rely on NixOS modules (and as such rely on nixpkgs...)
<hodapp>
could someone try installing fping, and seeing what 'fping localhost' says?
<srhb>
hodapp: unreachable unless I tell it to bind to lo
fendor has quit [Quit: Leaving]
fendor___ is now known as fendor
dingenskirchen has joined #nixos
cosimone has joined #nixos
asheshambasta has quit [Ping timeout: 276 seconds]
<hodapp>
srhb: weird. from another host (non-NixOS) it works
<hodapp>
srhb: what about 'fping google.com' or the like?
<cransom>
does `fping -4 localhost` behave any differently?
<hodapp>
nope.
<hodapp>
nor fping 127.0.0.1
<cransom>
are you in a container where localhost doesn't exist?
dx_ has quit [Ping timeout: 265 seconds]
<srhb>
I have to bind to specific (correct) interfaces for it to work, no matter the host, it seems.
<srhb>
So presumably it's doing something silly on my system re. interfaces.
<hodapp>
cransom: no. 'ping' works fine for all that I am trying
<{^_^}>
[nixpkgs] @jappeace opened pull request #75794 → cut-the-crap: Add automated video editing for streamers at 1.0.0 → https://git.io/Je7Ol
<ekleog>
,tell dx_: if you're also `oldandwise`, I'd suggest you reconnect under that nick, I've left you an answer here with {^_^}
<{^_^}>
ekleog: I'll pass that on to dx_:
<hodapp>
'binding to specific interface (SO_BINTODEVICE): Operation not permitted' if I try with '-I lo'
<cransom>
fping requires root because it's icmp. if it's not a system installed fping, try it as root
<srhb>
Yeah, other systems might have it suid I guess
<srhb>
Which would explain the disparity.
<hodapp>
oh, so perhaps ping is suid and fping isn't?
<srhb>
hodapp: Right. Well, suid requires nixos support
<srhb>
hodapp: (They can't exist in the Nix store)
<srhb>
hodapp: So presumably a NixOS module adds ping to security.wrappers
<{^_^}>
[nixpkgs] @alyssais opened pull request #75799 → public-inbox: init at 1.2.0 → https://git.io/Je73H
<{^_^}>
[nixpkgs] @Ma27 opened pull request #75800 → nixos/iwd: add `networks` and `interfaces` option → https://git.io/Je73F
<sshow>
I deployed to a machine using nixops and the password for both my user and root disappeared. as in; /etc/shadow shows blank passwords. what to do?
ng0 has quit [Quit: Alexa, when is the end of world?]
MmeQuignon has quit [Quit: WeeChat 2.6]
ng0 has joined #nixos
zupo has joined #nixos
<sshow>
I'm not sure how to re-deploy. Hand-editing /etc/shadow on an offline disk does not work
<gchristensen>
can you reboot it and access the console?
<sshow>
yeah
<gchristensen>
you should be able to roll back at the bootloader
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @jonringer closed pull request #75749 → python3Packages.gym: disable due to missing dependencies → https://git.io/JeQ5G
<infinisil>
Say I have a symlink `foo -> /nix/store/xxx-foo`. Now I can't just change foo/bar/baz, since that path is immutable. What's the best way to do it anyways?
<infinisil>
Like, move/copy the files around the simplest way such that I can change foo/bar/baz
gnidorah has quit [Quit: Connection closed for inactivity]
<lordcirth_>
infinisil, like, something is looking inside 'foo' for a fixed path './bar/baz', and the stuff in nix store doesn't work that way?
<infinisil>
lordcirth_: Nah, in my case I need to change some files inside foo to be different
<lordcirth_>
infinisil, ah. So you make a new 'foo' derivation, and change the symlink to point to it.
<lordcirth_>
(normally handled automatically)
<infinisil>
I don't really want to create a new derivation, but in any case I need to have some bash to copy all subdirs to that path or so
erictapen has quit [Ping timeout: 245 seconds]
<lordcirth_>
infinisil, what are you trying to accomplish?
<infinisil>
The nicest way to achieve that!
<infinisil>
I mean I can do it with some bash, but
<infinisil>
It's like bar/baz/qux/qurx/florp in my case
<lordcirth_>
No, I mean what derivation is 'foo' and why do you need to change it?
<infinisil>
Doesn't matter at all trust me, but if you want to know, it's a crystal library collection where a library has hardcoded static libraries which I need to change to nix-compiled ones
<infinisil>
And the libraries are just fetched with a github fetch, no compilation
<lordcirth_>
Hardcoded static libraries, at absolute paths?
<infinisil>
Nah, relative in the library
<lordcirth_>
Ok, so there's some root derivation, and the dependencies need to show up inside it?
<infinisil>
Like, the actual .a files are included
<infinisil>
Ahh whatever, I'm just gonna try to write the bash I need
<lordcirth_>
You should be able to modify the root derivation such that it contains symlinks to the .a's
<craige>
If anyone has any current, public examples of a NextCloud deployment, I'd be pretty grateful. Mine's currently stuck on postgres permissions and I"m unsure if it's me, a bug or something else :-)
nornagon8 is now known as nornagon
hmpffff has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<gustavderdrache>
gchristensen: there are some steps between where i am and where i want to be that i'm missing
jgeerds has joined #nixos
jgeerds has quit [Remote host closed the connection]
<pie_>
wait what
<pie_>
To use another deriver instead of stdenv.mkDerivation, use mkDerivationWith:
<pie_>
Use mkDerivation instead of stdenv.mkDerivation. mkDerivation is a wrapper around stdenv.mkDerivation which applies some Qt-specific settings. This deriver accepts the same arguments as stdenv.mkDerivation; refer to Chapter 6, The Standard Environment for details.
<gchristensen>
is there a very cheap way to determine if some process is listening to a microphone?
lovesegfault has quit [Ping timeout: 248 seconds]
<cmacrae>
Hey people o/ If I have a list of strings, how can I "template" this out in a multiline string to include each element? Something like ''for i in arr { "thing: ${i} "}''
<cmacrae>
I'm aware it wouldn't look like this, it's just the best way I feel I can express what I mean :)