matthiaskrgr has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net - currently broken?]
matthiaskrgr has joined #nixos
yasu has joined #nixos
<yasu>
quick questions to fellow nixos users - Is Home Manager any good? I have not really used NixOS actively for a long time and now trying to use it more
cr4y1 has quit [Ping timeout: 260 seconds]
<ldlework>
yasu, it's pretty popular yeah
<yasu>
Do you think it's worth it to use Home Manager? Or do you recommend better ways to manager .files?
<cole-h>
I like h-m a lot more than using something like GNU Stow
<yasu>
Thank you ldlework
<yasu>
If it's popular why is it not part of nixpkgs? (or is it?)
<yasu>
sorry another question, is there any effort to move away from freenode? This is so hard to use .... I wonder if there is some kind of cooperative or democratically managed discussion site
yasu has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfFV2
yasu has joined #nixos
<simpson>
yasu: There is Matrix, and you can connect to Freenode from Matrix. There is also Discourse, linked in the /topic, for forum posting. Unfortunately, decentralized chat is quite hard, so you'll have to connect somewhere to something.
<simpson>
Not everybody has (or can afford/understand to set up) a bouncer. There's also some legibility issues. (And I imagine that all of this is much worse for folks who don't natively speak English.)
<DigitalKiwi>
oh and there's also a discord
<DigitalKiwi>
but it isn't as active
<DigitalKiwi>
and the signup process for that was the worst experience i've ever had
amerigo has quit [Quit: Connection closed for inactivity]
<DigitalKiwi>
like... i never wanted to use it again after that crap
<DigitalKiwi>
gchristensen: can we setup a znc.nixos.community
<DigitalKiwi>
IRC IS THE ONE TRUE WAY WE MUST MAKE IT EASY
<simpson>
Discord isn't a good idea. The moderation model isn't community-accountable, the platform's not FLOSS so we can't maintain or hack it, and it's risky to trust centralized companies that don't have a long-term funding model in place.
mog has quit [Ping timeout: 256 seconds]
<DigitalKiwi>
yeah those are good reasons too (and why i avoided it for so long)
<DigitalKiwi>
i literally only signed up to contact one person
<andi->
simpson: GH is also not FLOSS yet nobody cares ;)
<andi->
(some do..)
<DigitalKiwi>
I CARE
<samueldr>
andi-: sure, so now we have to use only proprietary options?
<andi->
samueldr: no :)
mog has joined #nixos
leungbk has quit [Ping timeout: 260 seconds]
<andi->
I was just saying that usually that argument doesn't go far here.. people happily jump on whatever hosted service (free or non-free).
<samueldr>
I think a lot of people care, but also a lot of them pragmatically bite their tongues knowing it's a least bad situation
<simpson>
andi-: If our project were of the sort that constantly gets assaulted by DMCA claims, then it might matter more. However, GH *knows*, and hopefully everybody else here does too, that we can take our git repos and move them literally anywhere else.
<samueldr>
simpson: almost! remotes urls are not owned by the projects!
<DigitalKiwi>
if i didn't have to use github for nixpkgs i probably wouldn't use github anymore
leungbk has joined #nixos
<simpson>
samueldr: Sure, this is a fair point. And to it, I'll support any effort to add more source mirrors so that we are less dependent on GH, and also any effort to federate or decentralize code review. (Totally not working on some sort of decentralized git already~)
<samueldr>
simpson: what are you totally not working on?
* samueldr
hopes he doesn't get an answer that's a list of absolutely everything simpson actually doesn't work on
<simpson>
samueldr: Totally not looking for ways to publish Monte source code in a decentralized fashion, because I don't want to write Yet Another Package Manager nor Yet Another Package Repository.
<DigitalKiwi>
...i might still host my website on github pages but other than that (and even that i don't have to... i have a webserver that reverse proxies to it not hard to change...)
<samueldr>
owning the namespace / domain name of a thing really makes the difference, so e.g. github pages hosted sites, on a custom domain, this can be transparently moved
<simpson>
We can't avoid change. Things don't have to be perfect. We just have to keep our goals in mind as we consider which changes to make, so that we don't make changes which are contrary to our goals.
<andi->
Just one more thing before I hit the bed: If we can move source, why aren't we? That is the real question? When would we and why wouldn't we? It is all the gimmicks we've been given and that we've built upon that that keep us there. There is no point in postponing if the overall consensus is that we should do it eventually. We should have a plan and not just another equally bad actor as hoster.
<DigitalKiwi>
i think that "overall consensus" thing doesn't exist
<simpson>
Inertia is a thing.
<simpson>
We *should* have a plan, but we should also not be in a rush to change things which aren't currently changing. They will, in time, be ready to change on their own.
<DigitalKiwi>
and the other options...a lot of them aren't much better. gitlab said they'd take money from anyone and i guess is a pita to host/run. there's an open source bitbucket but atlassian has contracts with DHS... so...gitea? and all of the github hooks and bots and CI stuff etc....
<DigitalKiwi>
(the DHS uses jira lol)
<samueldr>
in fact, I think the reason there has been no move is because of the fact there is no desire to move to just another equally bad actor, rather than reactively move after "an event"
<samueldr>
it is possible, but it is hard (as in painful, not complex), so moving should be done once if it's done in an "incompatible" manner (e.g. requires new URLs for remotes)
codygman has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @MP2E pushed commit from @pwetzel to release-20.03 « mwprocapture: 1.2.4054 -> 1.2.4177 »: https://git.io/JfFwM
h0m1 has quit [Ping timeout: 246 seconds]
h0m1 has joined #nixos
lc has joined #nixos
<lc>
So, I'm trying to install a python 2 pip package
<lc>
how do I do that
<lc>
the wiki is super vague/I don't understand it. I'm using home manager
mfx has joined #nixos
<Ashy>
lc: in a pinch i use nix-shell quite a lot: `nix-shell -p python2Packages.pandas python2Packages.matplotlib ...`
Soo_Slow has joined #nixos
<Ashy>
and i usually make a shell.nix that lives in git with whatever script i'm writing that does the same thing
<Ashy>
venv works fairly well for some pip packages that aren't in nixpkgs too, eg: `nix-shell -p python3 python3Packages.pands ...` and then `python3 -m venv venv` `source venv/bin/activate` `pip install pathfinding ...`
Rusty1 has joined #nixos
mfx has quit [Quit: Leaving]
boxscape has quit [Quit: Connection closed]
urkk_ is now known as urkk
jumper149 has quit [Quit: WeeChat 2.8]
ddellacosta has quit [Ping timeout: 260 seconds]
sigmundv_ has quit [Ping timeout: 264 seconds]
delroth[m] has joined #nixos
tnks_ is now known as tnks
urkk has left #nixos [#nixos]
<energizer>
lc: which package?
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
Soo_Slow has quit [Quit: Soo_Slow]
cmk_zzz has quit [Quit: cmk_zzz]
yasu has joined #nixos
yasu has quit [Client Quit]
yasu has joined #nixos
leungbk has quit [Ping timeout: 240 seconds]
mrpi has quit [Quit: killed]
ajs124 has joined #nixos
Scriptkiddi has joined #nixos
das_j has joined #nixos
mrpi has joined #nixos
<ldlework>
I am very sad that I am having artifacts in google-chrome again thanks to nvidia-offload not working on it.
<cole-h>
lovesegfault: Blink twice if you're under duress
<cole-h>
OMG nixpkgs-unstable FINALLY UPDATED WOW
<yasu>
ii
ddellacosta has joined #nixos
buckley310 has joined #nixos
leungbk has quit [Quit: ERC (IRC client for Emacs 27.0.91)]
<buckley310>
is anyone here running nixos-unstable with a 5700XT video card? I have diagnosed a driver crash bug, but im not sure if it's specific to me...
<ashkitten>
buckley310: i have a 5700 that thinks it's a 5700xt
<ashkitten>
what's up
<buckley310>
after updating, my video driver instantly crashes whenever i open steam
<ashkitten>
what environment?
<buckley310>
gnome3
<buckley310>
kernels 5.4, 5.6, 5.7 all
<ashkitten>
what hardware? log output?
<DigitalKiwi>
+----------------------------------------------------------------+| Please enter the passphrase to unlock the OpenPGP secret key: |
<buckley310>
amd 3800x CPU, AMD 5700XT GPU. what other specs you want? ill loog for some logs
<DigitalKiwi>
that shows up at the end of the window.... it used to show up in the middle (and has more text)
<buckley310>
but then i further reduced it by checking out the latest unstable channel and then just downgrading mesa from 20.0.7 to 20.0.2 and that resolves the problem
<buckley310>
14fcd947a01
<ashkitten>
is there an open mesa bug about this?
<buckley310>
i dont know, i just finished recompiling the universe and just asked in here xD
<buckley310>
ill look around the mesa project
dansho has quit [Quit: Leaving]
<ashkitten>
if it's a bug in mesa not much anyone can do about it
<ashkitten>
except them
<buckley310>
i guess i was just hoping to find someone else with my problem so i would feel less alone :\
<ashkitten>
buckley310++ good job doing your homework, though
<{^_^}>
buckley310's karma got increased to 4
<ashkitten>
i'm not tracking latest unstable, haven't updated in a bit
<ashkitten>
i'm sure you're not the only one if you can reproduce it consistently with a specific mesa version, though
<buckley310>
oh look, the release notes for 20.0.8 mention a steam bug for iris graphics... maybe I should test 20.0.8 and see if that applies to me too
<buckley310>
although they say steam crashes, not the driver xD
<ashkitten>
possible
<ashkitten>
you should make a pr to nixpkgs if it does fix the issue
<ashkitten>
and make sure to note that it fixes a crash, because mesa upgrades are a huge rebuild
<buckley310>
yep, i have become intimately familiar with mesa rebuilds today xD
pr06lefs has quit [Remote host closed the connection]
pr06lefs has joined #nixos
<ashkitten>
the reason i say to note it for nixpkgs is because big rebuilds tend to get staged together to do in a batch, and it's probably easier to prioritize a rebuild if it fixes something important
<ashkitten>
i'm not sure who handles that or how it works/gets prioritized, though
<ashkitten>
someone around here probably knows better than me
<buckley310>
ah yeah
cjpbirkbeck has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @pmyjavec to master « circleci-cli: 0.1.7971 -> 0.1.8302 (#91013) »: https://git.io/JfFXc
yasu has joined #nixos
<mtn>
Is anyone here familiar with setting up a web server with nginx on nixos? I'm a bit confused about the steps before what's documented here: https://nixos.wiki/wiki/Nginx
drakonis_ has quit [Read error: Connection reset by peer]
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<muronglizi>
I am trying to add a "custom" python library as a dependency to Home-Assistant (another python software), but "nixos-rebuild switch" always complains with "Found duplicated packages in closure for dependency 'aiohttp'". I have no clue how to debug this. I added the python library (it's called pydeconz) with an overlay as described in the wiki and I am able to install and import it normally (using python3.withPackages in
<muronglizi>
environment.systemPackages). However when adding it to HomeAssistant via "override { extraPackages = [ pydeconz ]; packageOverrides = self: super: { pydeconz = python3.pythonPackages.pydeconz } }" it fails with the duplicated-packages-error.
orivej has quit [Quit: No Ping reply in 180 seconds.]
pr06lefs has quit [Ping timeout: 260 seconds]
agsdheidjd has joined #nixos
orivej has joined #nixos
<muronglizi>
Both home-assistant and pydeconz have aiohttp as dependency (propogateBuildInputs). It seems they refer to aiohttp in different ways such that two derivatives are built for aiohttp? I don't yet understand nix enough to see what's going on and how I can debug this. Code snippets are here: https://discourse.nixos.org/t/duplicate-when-installing-extrapackage-from-overlay/7736 help is appreciated :)
<muronglizi>
cript0nauta has quit [Quit: Leaving]
<energizer>
i'm at a console because stuff is failing
<energizer>
trying to debug but every 15 seconds or so some systemd stuff appears for a split second and i get a black screen
<energizer>
no idea what's going on
<energizer>
apparently sshd is failing so that's out
hazel has joined #nixos
<hazel>
so I'm aware of services.nginx.appendConfig which adds things to the end of the generated nginx.conf
<hazel>
what if I want to add data to the beginning of the generated nginx.conf
<srhb>
hazel: What are you functionally trying to achieve?
<hazel>
it's a stupid thing -- for a while, I've had a map block for `map $msec $rnd_text` that assigns quotes by ms-based timing to a variable `$rnd_text`, then I replace it with a `sub_filter`
<srhb>
hazel: If you really need "at the beginning" you'll have to bail out of the structured config entirely, more or less. But you probably don't _actually_ need that.
<hazel>
I don't believe you can embed a map inside a server block or an http block
<hazel>
I could just reimplement this with client-side JS but that puts a bad taste in my mouth
<srhb>
hazel: Perhaps there's an argument for adding it.
<srhb>
(bailing out ~= setting `config` explicitly and forgoing the smart options)
<mtn>
Are there any docs or example configs around that can help me understand what I need to do to expose a (python) flask app via nginx on my local machine?
<hazel>
you can embed maps into the HTTP block and use commonHttpConfig, probably
<hazel>
I'll give it a go
<srhb>
hazel: Ah, ok :)
<srhb>
mtn: Do you know how to do it on non-NixOS?
<srhb>
mtn: iirc flask creates a webserver -- if so, I imagine it's generic proxy_pass stuff in nginx and not python specific.
<srhb>
(as in, you'd set up a systemd service to run your flask application and configure nginx to proxy_pass to it)
<hazel>
the NixOS server experience is kind of wack and it'll take me a while to move stuff over
<hazel>
my desktop setup is already a 2000+ line config...
<hazel>
although I've been modularizing everything
<srhb>
hazel: Hmm, that sounds like a lot. :D Maybe I'm a very minimalist person.
<hazel>
I nix-encode most of my dotfiles and I use a tiling Wayland compositor rather than a DE
<mtn>
(my understanding is mainly tutorial-level) right, so I think the first thing I need to do is use something like uwsgi to serve it without the flask dev server
<srhb>
hazel: tiling xmonad/x11 here, but otherwise the same
<srhb>
hazel: Only about 3000 lines after... What, five years or however long it's been.
<srhb>
mtn: Ah, ok. Then, start by figuring out how to configure nginx for that in non-NixOS, I'd guess.
<mtn>
Not quite an nginx question (or nix), but is there a way of serving an app with eg. wsgi that keeps the process always running (maybe periodically restarting), rather than only serving it on incoming requests?
<srhb>
I have no idea how wsgi works, and have a feeling it's maybe contrary to its design.
<srhb>
s/and/but
<mtn>
Yea, I think this might not make sense in the context of a lot of apps, but I'm not sure
<srhb>
Well, I imagine you could just run the python part that's "always on" as a systemd service on the side
<mtn>
I might be misunderstanding this model though, so I'll just run it to try and find out what's going on
<srhb>
If the handler is asynchronous anyway, you'd have to do much of the same cross-communication
<mtn>
Oh I see
asheshambasta has joined #nixos
<srhb>
But meh. :) I prefer embedded servers much of the time.
<srhb>
(Exactly because of locality)
<hazel>
time to move over more of my services
<hazel>
i'm moving from a raspberry pi 4 running alpine to an apu2 running nixos
<mtn>
> embedded servers much of the time -- what do you mean by that?
<{^_^}>
error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):318:1
<hazel>
nginx... is really nice with Nix, like wow
<hazel>
if you can do structured config it's so *clean* compared to the clusterfsck I was assembling before
<srhb>
mtn: As in, I find it more flexible to have the server be very near to my code, so I can manipulate its behaviour from within the program
<srhb>
hazel: Hehe, yeah.
<srhb>
mtn: wsgi seems contrary to that. But I may be talking out of ignorance here :)
<hazel>
I missed being able to write "actual code" in my configs when I moved from xmonad to Wayland
<hazel>
and now *everything is xmonad*
<srhb>
Ah yes, a similar issue.
eoli3n_ has quit [Remote host closed the connection]
<hazel>
if you can call the Nix language a "real language", which it is if you try hard enough
Cale has joined #nixos
eoli3n has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed 8 commits to release-20.03: https://git.io/JfF1E
<{^_^}>
[nixos-search] @garbas pushed to fix-62 « add similar ranking queries to options as packages have »: https://git.io/JfF1u
user_0x58 has quit [Ping timeout: 240 seconds]
<mtn>
Nix newbie question: I now understand more of less the steps to get things functional. If I want to serve things from my local system, should everything go in my `configuration.nix`?
<mtn>
That is, all the nginx config, etc
<mtn>
(or be imported)
<srhb>
mtn: Yep!
<srhb>
mtn: That makes it reproducible and revisionable
<hazel>
correct, unless you install stuff as user
<mtn>
Awesome, thanks :)
<srhb>
mtn: Avoid imperative steps at all cost is definitely a good idea.
<srhb>
(well, almost all cost..)
<hazel>
yeah my first NixOS install I screwed up big time by `nix-env -iA`ing everything
<hazel>
you should use home-manager!
<mtn>
Oh yea that's on the todo list as well
<hazel>
home-manager is the final nail in the coffin for a true utopian reproducible setup
<mtn>
My tooling on this system is still not fully setup after >1 year, I've just been really slow to get everything going
<srhb>
You can always bail out of declarative config, and it can be great for one-offs, but I feel declarative pays off more the more you buy into it
<mtn>
I'm actually developing on this system everyday now so... time to get everything together
cr4y1 has joined #nixos
<{^_^}>
[nixpkgs] @expipiplus1 opened pull request #91079 → <!-- To help with the large amounts of pull requests, we would appreciate your reviews of other pull requests, especiall… → https://git.io/JfFMm
noudle has joined #nixos
<{^_^}>
[nixpkgs] @juliendehos opened pull request #91080 → curlcpp: remove myself from maintainers → https://git.io/JfFMz
<kenran>
Is there an easier syntactic way for doing `nix-build foo.nix -A bla && nix-build foo.nix -A blub && ...`?
<kenran>
That is, build multiple attributes in one go, but not all of them
<srhb>
kenran: -A ba -A blub doesn't work?
<srhb>
Yes, it does.
<kenran>
srhb: oh cool, thanks! I didn't know you could just repeat the -A :)
<srhb>
kenran: And if you need to go more complex you can always nix-build -E 'with import ./foo.nix; { inherit bla blub ; }' and get all of the nix tools at your disposal.
<srhb>
(That is, each attr that is a derivation will be built, so you can produce your own attrset)
andymandias has quit [Ping timeout: 246 seconds]
andymandias has joined #nixos
amerigo has joined #nixos
<kenran>
srhb: ah yes! Actually foo.nix in my case already is such a set, but now for some Docker image I need to pre-build only some of our own attributes (the rest changes a lot while those others rarely do)
knupfer has joined #nixos
nikita` has joined #nixos
<srhb>
Right right. Just pointing out that it's pretty flexible to either inline some nix-code or just throw together a one off file that has the attrs you care about.
<kenran>
srhb: sorry of that might have come across as "yeah, I knew that..", it wasn't meant this way at all. I'm very glad about any hint as to what I could improve in my nix usage :)
<srhb>
Ah, no no, no problem :)
<srhb>
mtn: Exactly that, yes.
<kenran>
I think it's time to revisit NixOS myself. I loved the desktop experience last time, but had problems with the Nim language where my binaries didn't contain any info for `ldd` on what they need at runtime, so I never really got those to work well
knupfer has quit [Ping timeout: 256 seconds]
hazel has quit [Remote host closed the connection]
lsix has joined #nixos
cole-h has quit [Quit: Goodbye]
linarcx1 has joined #nixos
<mtn>
When a derivation is being built, are inputs restricted to things in the store?
<mtn>
the first thing I changed is the `writeTextDir` to a file I created with those exact contents
<{^_^}>
[nixpkgs] @FRidh pushed 127 commits to staging-next: https://git.io/JfFD3
<mtn>
that was a bit unclear -- instead of using `writeTextDir` to create a directory in the store, I created a directory in my filesystem and pointed `chdir` to it
<sphalerite>
mtn: yes
<mtn>
Makes sense
<sphalerite>
mtn: whether this is enforced and how depends on your setup, but it's generally strongly discouraged :)
<mtn>
The reason why is this server I've written depends on some pretty big, unwieldy external repos that I think will be hard to get working within nix, and that I don't wanna invest a ton of effort into since I'm eventually going to deprecate
<{^_^}>
[nixpkgs] @rnhmjoj pushed 2 commits to release-20.03: https://git.io/JfFDP
sheepfleece has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<kenran>
mtn: not sure I understand all of it yet, but maybe you could just pull those external repos as-is with your stuff into the store by doing something like ${../../my-repo} in your derivation. Then at least you're not writing somewhere else
<{^_^}>
[nixpkgs] @rnhmjoj pushed 3 commits to release-20.03: https://git.io/JfFD5
<sphalerite>
mtn: then maybe you don't want to do whatever you're doing inside a derivation
risson has joined #nixos
<kenran>
mtn: I did that when I needed some static files in addition to a binary I built. In my `mkDerivation` inside the `buildPhase` or `installPhase` I could simply write `cp ${relative/path/to.txt} where-I-need-it.txt`
<sphalerite>
mtn: you certainly can use a mutable path for uwsgi's chdir option if you just want to run it
<sphalerite>
what kenran says is also an option — which approach to take depends on your use case
covercash has joined #nixos
<mtn>
Hm okay, I'm gonna walk through kenran's suggestion step by step since I'm pretty confused :P
muronglizi has quit [Ping timeout: 260 seconds]
<mtn>
So for context, I haven't actually written a derivation for my server or anything, I just wrote a `shell.nix`
<sphalerite>
Someone recently published a library of nix functions for generating service definitions for various service managers, does anyone have the link? I can't remember the name for the life of me
<sphalerite>
mtn: right, the thing with kenran's approach is that it copies the entire path you're referencing into the store. That might be undesirable if it's big :)
<mtn>
Oh I see, got it
<mtn>
And when you say a mutable path, that wouldn't work if I'm putting this in my `configuration.nix`, would it?
<xwvvvvwx>
Does anyone know how I would force nix to do a full from source rebuild of all packages on my system?
<mtn>
Because it doesn't make sense to parameterize the system config itself, I think?
<xwvvvvwx>
or rather all packages referenced from my config?
<sphalerite>
mtn: it would, as long as you're not trying to use the contents of the path within a derivation build
<sphalerite>
xwvvvvwx: nix-build --store /tmp '<nixpkgs/nixos>' -A system --no-substitute
<sphalerite>
xwvvvvwx: the --store /tmp makes it use an alternate root, so it doesn't reuse already existing paths from your system. --no-substitute disables the use of binary caches.
<sphalerite>
xwvvvvwx: oh wait, of all packages on your system? That's not always possible.
<xwvvvvwx>
why not?
<sphalerite>
xwvvvvwx: because you need the corresponding drvs, and they _may_ not be present
<xwvvvvwx>
can't those be generated from my config?
<sphalerite>
xwvvvvwx: that said, for any path in your system you can use `nix-store -r /nix/store/$path --check` and it will error if it doesn't know how to build it
<kenran>
can I somehow see what the "src" (or similar) is that is pulled in for some shell? background: my Haskell packages all use gitignoreSource, but the shell.nix uses "shellFor" for the packages, and when monitoring that via "lorri", I get rebuilds for stuff that should be gitignored.
<sphalerite>
xwvvvvwx: ok, let's define "on my system". If "on my system" is "referenced by my system config", the first command I sent you will do nicely.
<xwvvvvwx>
sphalerite: referenced by my config is perfect
<sphalerite>
xwvvvvwx: if "on my system" is "in the nix store", then you can use nix-store -r --check for each path, but it won't necessarily work for all of them
<sphalerite>
xwvvvvwx: yes, I think that's what I was looking for! Thanks!
<xwvvvvwx>
sphalerite: great :)
<mtn>
Okay so to summarize, kenran's approach is to write a derivation for the server so when I build it, everything I need ends up in the store, right? And are there any examples or docs about the mutable path thing? Still a bit confused about that
<sphalerite>
xwvvvvwx: also maybe don't use /tmp if you have it on tmpfs
<xwvvvvwx>
sphalerite: but if I understood your command correctly it will build those packages and place them in alternate root, but the existing pacakges are the ones that will still be on my PATH?
<sphalerite>
kenran: nix-instantiate --eval shell.nix -A src
<xwvvvvwx>
sphalerite: to clarify, I have trust issues and too much time on my hands so I would like to start building all my configs from source
<xwvvvvwx>
sphalerite: and I'm wondering how to replace all the cache.nixos provided binaries with self built ones
<sphalerite>
xwvvvvwx: yes. You can then compare to the stuff in your main store by comparing `nix path-info -r --json /run/current-system | jq 'map(.narHash)'` with and without --store /tmp
<xwvvvvwx>
sphalerite: I guess I could just set a new root in my configuration.nix and then everything should get rebuilt from the bootstrap?
<sphalerite>
xwvvvvwx: that said, it's probably easiest to just reinstall nixos and disable substitution from the start by passing --option substitute false to nixos-install
<sphalerite>
xwvvvvwx: unfortunately that doesn't really get you that much further in terms of trust, since if cache.nixos.org is evil it can just serve you an evil nix, which will interfere with how the builds happen :)
<xwvvvvwx>
sphalerite: hmmmm, well it's definately a reduction in the trusted base
buckley310 has quit [Quit: Connection closed for inactivity]
<sphalerite>
xwvvvvwx: not really, since nix is built by nix-built gcc which is built by an older nix-built gcc etc
<sphalerite>
xwvvvvwx: the best approach IMHO is to challenge the cache by rebuilding a selection of paths and seeing if they differ in suspicious ways. Unfortunately nix doesn't provide a convenient way to do this (while guix does, with `guix challenge`)
<sphalerite>
xwvvvvwx: yes, but also all the source code you're building ;)
<xwvvvvwx>
sphalerite: sure, just talking about binaries here
bbb has joined #nixos
bbb is now known as Guest2025
<sphalerite>
xwvvvvwx: then yes. If you're that paranoid though, maybe use guix instead, there's a lot more effort put into minimising trust there.
<xwvvvvwx>
sphalerite: I think that removing a dep on cache.nixos.org and rebuilding from that base would not protect against potential past compromises of the daemon or bootstrap but would protect against potential future compromises of the nix build infra?
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
<xwvvvvwx>
xwvvvvwx: re: guix I have way too much time invested in nix, switching is not an appealing prospect :D
<sphalerite>
xwvvvvwx: anyway, at this point my suggestion would be to set nix.binaryCaches = lib.mkForce []; in your configuration.nix, switch to the new system, and then on the next mass-rebuild you'll only have locally built stuff remaining.
<xwvvvvwx>
sphalerite: why the mkForce?
<sphalerite>
xwvvvvwx: because cache.nixos.org is otherwise added by defaults
<xwvvvvwx>
sphalerite: ah, nice tip thx!
<sphalerite>
xwvvvvwx: you can also then check: `nix path-info --sigs -r /run/current-system` — anything with "ultimate" was built by you
covercash has quit [Remote host closed the connection]
<kayg04>
what's the difference between the mkfs.ext4 option `stripe-width` and the ext4 mount option `stripe` ?
<{^_^}>
[nixpkgs] @FRidh pushed to master « python2.pkgs.markdown: keep at 3.1.1 for Python 2 »: https://git.io/JfFyp
tobi_ has joined #nixos
<kenran>
sphalerite: ahh good to know how that works in principle! Unfortunately the haskellPackages.shellFor doesn't emit a "src", but something is being watched. Do you have a hint how I could find out, what?
<tobi_>
hello, lets say I have a network link called eth0. by running "ip link add link eth0 name eth0.100 type vlan id 100" I can create a second link which uses the same interface as eth0 but attaches a vlan tag to all traffic, while the original link is still usable. how can I duplicate something like this in the declarative nixos configuration?
linarcx1 has quit [Quit: WeeChat 2.8]
<sphalerite>
tobi_: using the networking.vlans option
<tobi_>
sphalerite: I actually saw that, but it seems I misunderstood how it works (I assumed that the original interface wouldn't be usable anymore), thanks for your help!
<{^_^}>
[nixpkgs] @bennofs pushed to master « librespot: init at 0.1.1 »: https://git.io/JfFbH
lunik1 has quit [Quit: :x]
<gchristensen>
Taneb: this is confusing to me, because the point of the post is how to make systems like databases stateful even while the rest is not
domogled has quit [Ping timeout: 256 seconds]
<gchristensen>
Taneb: I wonder what is missing to help answer that question?
lunik1 has joined #nixos
<betaboon>
I'm running into `network-online.target: Found ordering cycle on dhcpcd.service/start` i am mounting an ro-nfs-export for the nix-store in stage1 and then creating an overlayfs on top of it, anyone has any ideas? info here: https://gist.github.com/betaboon/eb55984df0824e3fa73e8586444febff
<gchristensen>
Taneb: I think I should ask: what exactly are they wondering? :)
waleee-cl has quit [Quit: Connection closed for inactivity]
kreyren has quit [Remote host closed the connection]
alp has quit [Ping timeout: 272 seconds]
kreyren has joined #nixos
waleee-cl has joined #nixos
griff__ has joined #nixos
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
kreyren has quit [Remote host closed the connection]
griff_ has quit [Ping timeout: 256 seconds]
griff__ is now known as griff_
kreyren has joined #nixos
kreyren has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed 1000 commits to haskell-updates: https://git.io/JfFN2
<comrandroxaos[m]>
simpson just use matrix instead. A homeserver is basically a bouncer you (can) share with your circle(s). If u study history, the onnandogwa/souix, cythians and europeans all proved the superiority of federation. Idk why technology is struggling to adopt the concept (or why the usa fought a civil war to get rid of it!)?
kreyren has joined #nixos
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
asymptotically has quit [Quit: Leaving]
philr_ has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
to get rid of slavery
<gchristensen>
wow
Guest2025 has quit [Read error: Connection reset by peer]
<gchristensen>
DigitalKiwi++
<{^_^}>
DigitalKiwi's karma got increased to 12
<gchristensen>
fwiw, that isn't really a "discussion" we're going to have here.
Guest2025 has joined #nixos
<Taneb>
gchristensen: my friend says he thinks he gets it now
<Taneb>
He had skimmed it and missed the whole "opting in" section
<gchristensen>
gotcha
<gchristensen>
Taneb: and what does he think? :)
<DigitalKiwi>
skimming erase your darlings sounds like a bad time
<DigitalKiwi>
you might end up with an erase your everythings
<Taneb>
gchristensen: he's curious about the whole idea
<DigitalKiwi>
did you show them the repo
Chiliparrot has joined #nixos
<Taneb>
No, I haven't
<DigitalKiwi>
the one that i can't think of the name
<DigitalKiwi>
that gchristensen is always like should we link my blog post
o1lo01ol1o has quit [Remote host closed the connection]
drakonis has joined #nixos
<gthm>
I'm trying to run mbsync as my user via systemd units and timers. I haven't succeeded doing this with systemd.user.services and systemd.user.timers in /etc/nixos/configuration.nix and I haven't been able to find docs on defining systemd user services. Does anyone have pointers?
<dutchie>
i set it up with home-manager, that was pretty straightforward
orivej has quit [Ping timeout: 260 seconds]
<nobrak>
If I'm building an image using DockerTools with an image from dockerhub as my base, is it expected to lose environment variables, entrypoints and other settings from that base image and have to specify them explicitly in my file?
<gthm>
ah, I bailed on home-manager earlier after following its install instructions failed :)
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
orivej has joined #nixos
<hyperfekt>
geez nixos really needs davinci resolve packaged. i'm very sick of openshot and kdenlive
<{^_^}>
[nixpkgs] @arri-cc opened pull request #91102 → added firebase-tools, which also upgraded the other packages → https://git.io/JfbeM
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
erik4levels has quit [Remote host closed the connection]
<ixxie>
heya folks; I'm encountering a weird phenomenon... I make an Ubuntu VM and convert it to NixOS using clever's kexec method. This works fine, but ssh sessions in the nixosified VM are laggy while the original ubuntu machine runs fine...
<ixxie>
configuration is pretty much vanilla, nothing weird going on
<Habbie>
ixxie, just to be sure - is connecting slow, or is typing in an active ssh session slow too?
<ixxie>
Habbie: typing in the active session is slow
<gthm>
nevermind, I've figured this out. If I configure a timer to start after boot, I have to actuall boot for it to start. If I just tell it to run via OnCalendar it'll run fine :)
orivej has quit [Quit: No Ping reply in 180 seconds.]
<ixxie>
Oh never mind... seems this is intermittent connection issue Habbie... its affecting Ubuntu equally
<hoverbear>
Can someone help me understand why `inherit (definition.environmentVariables);` is not dropping the `PROTOC` fields in itself?
<gchristensen>
you need to specify what you want to inherit
<hoverbear>
Ohhhhhhh!!!
<hoverbear>
So like `inherit (definition.environmentVariables.*);`?
<hoverbear>
Because I want to drop in the whole lot of them
<ixxie>
Added a CLI to nixosify; you can now convert arbitrary remote targets to NixOS with only a few lines of bash script: https://github.com/sparkletco/nixosify
noudle has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
<hoverbear>
ixxie oh my gosh that's so cool
orivej has quit [Ping timeout: 240 seconds]
Rusty1 has joined #nixos
<ixxie>
hoverbear: I would say its in beta... its still sometimes bugs out, but I suspect it happens when you try and convert a machine with too little memory; kexec is filling up the memory too, so it can be an issue.
orivej has joined #nixos
<hoverbear>
ixxie: Yeah the GA runners are eternally a struggle there
<ixxie>
hoverbear: I don't mean the runner, I mean the machine you are converting
<hoverbear>
ixxie: Ohhh so it's not converting the GA runner?
rajivr has quit [Quit: Connection closed for inactivity]
<nobrak>
simpson: i guess that's good to know one way or the other. would you happen to know if there's a nix way to extract those details and put in as a part of my image?
ddellacosta has joined #nixos
<hoverbear>
gchristensen: I also tried using `//` on the record to merge them but that didn't seem to work either. :(
<hoverbear>
And I can't do like `inherit (definition.environmentVariables) (builtins.attrNames easy-ps.environmentVariables);` it seems....
<simpson>
nobrak: Reading pkgs/build-support/docker/default.nix and it doesn't look like it, no. There is some hardwired code in the builder for probing the JSON as needed, but the JSON's not copied out anywhere. What are you working on?
<ixxie>
hoverbear: no, it converts a remote linux machine; the requirement is that you have an ssh key in autherized key on that machine.
<hoverbear>
Dangit
jean-lopes has joined #nixos
<ixxie>
hoverbear: the idea is that most VPS providers don't make it easy to script the installation of arbitrary distros; this allows you to fully automatically convert a VM to NixOS.
<hoverbear>
ixxie: Yup get that. :) DO recently started supporting custom images so this is not a tool I need anymore. :(
<ixxie>
hoverbear: then again, MAYBE you can try to run this approach on a runner, but I sorta doubt it would work :D
<hoverbear>
I think I will lol
<hoverbear>
First I need to merge some recs.
orivej has quit [Ping timeout: 240 seconds]
pbogdan has joined #nixos
knupfer1 has joined #nixos
<jean-lopes>
Hi! I have an java application which uses ghostscript, it fails to find libgs.so, I do have ghostscript installed via `nix-env -iA nixos.ghostscript`
orivej has joined #nixos
knupfer1 is now known as knupfer
__monty__ has joined #nixos
ixxie has quit [Quit: Lost terminal]
<nobrak>
simpson: working with airflow and working on building an image with the dags embedded. And I have it working after specifying the variables and entrypoint myself. Which isn't the worst. Just was thinking that would be an expected behavior to carry down the settings like that if you're building on top of an image.
kleisli has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixos-search] @garbas pushed to fix-cron « another try »: https://git.io/JfbfZ
orivej has quit [Read error: Connection reset by peer]
jakobrs has joined #nixos
<jakobrs>
$ cat /boot/loader/loader.conf
<jakobrs>
default nixos-%s-generation-%d.conf
<jakobrs>
I think %s and %d are supposed to be replaced with the relevant values
jean-lopes has quit [Remote host closed the connection]
orivej has joined #nixos
o_miguel has joined #nixos
<o_miguel>
Hi
<meh`>
is there a way for rustPlatform.buildRustPackage to use the ssh-agent for cloning dependencies? I'm having some trouble getting private repository git dependencies to work
<simpson>
nobrak: Yeah, probably. Not sure exactly what ought to be passed through. Feel free to experiment and open a PR.
<o_miguel>
I am absolutely new to NixOS and try to understand how I can cleanly distinguish between mutable and immutable data in my build. Which chapters of the manual should I look at?
<craigMack00>
I have a quick question regarding the addition of new user packages under nixpkgs/pkgs/development/node-packages, is it possible to regenerate the expressions to add the new package without updating every npm package?
<Orbstheorem>
Hi. Is there a way to _extend a derivation_ instead of overriding it? I would like to take the built package from the cache and modify it afterwards. The best solution I can find is taking the original package as an input and copying over the output and then applying my patch.
Rusty1 has joined #nixos
rogue_koder has quit [Ping timeout: 258 seconds]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
drakonis has joined #nixos
cjpbirkbeck has joined #nixos
asheshambasta has quit [Ping timeout: 272 seconds]
drakonis_ has quit [Ping timeout: 244 seconds]
drakonis1 has joined #nixos
noonien has quit [Quit: Connection closed for inactivity]
orivej_ has quit [Ping timeout: 260 seconds]
leungbk has joined #nixos
orivej has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
Zetagon has quit [Quit: WeeChat 2.8]
<leungbk>
I had to resolve the same merge conflict five times on this PR because the reviewer never merged it after initially approving it: https://github.com/NixOS/nixpkgs/pull/87918
craigMack00 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simba1 has joined #nixos
KarlJoad has joined #nixos
codygman has quit [Read error: Connection reset by peer]
sbetrium has quit [Ping timeout: 240 seconds]
andreas303 has quit [Remote host closed the connection]
pbb has joined #nixos
justanotheruser has joined #nixos
MichaelRaskin has joined #nixos
mica[m] has joined #nixos
endformationage has joined #nixos
nurelin[m] is now known as nurelin
sigmundv_ has quit [Ping timeout: 246 seconds]
growpotkin has joined #nixos
philr_ has joined #nixos
<{^_^}>
[nixpkgs] @primeos opened pull request #91109 → bcache-tools: Fix the cross compilation → https://git.io/Jfbtd
mtre has joined #nixos
e has joined #nixos
<mtre>
Hi everyone. So, I think pretty much bricked my NixOS install: all calls to nixos-rebuild or nix-env give me: error: syntax error, unexpected DOLLAR_CURLY, at /nix/store/pcck1d4wirpj21qra01681xqmmqxp0gb-default.nix:20:23
<infinisil>
mtre: What's in that file?
<mtre>
This file comes from my nix configuration, and there is indeed a syntax error there.
<qyliss>
mtre: what's your NIX_PATH?
<clever>
mtre: you should be able to just edit the original file nix was copying
<clever>
mtre: what is that file supposed to be doing?
<mtre>
And honestly no idea how it got copied there. I was tweaking my config like I usually am, which means editing stuff until nixos-rebuild succeeds.
<mtre>
Needless to say I am not fluent in Nix
<clever>
mtre: where is the original version of that file (the one not in the store)?
orivej has quit [Ping timeout: 240 seconds]
<mtre>
Located in /home/treca/nix/lib/default.nix. I changed generations using "sudo nixos-rebuild switch -I nixos-config=/home/mtreca/nix"
alp has joined #nixos
<clever>
mtre: and if you just edit lib/default.nix to fix the problem, does it begin working?
<mtre>
No, that's my issue. Even rebuilding using a previous config (that I know works) cannot succeed because as soon as I switch nixos-rebuild complains about the syntax error in the store.
<clever>
what pointed nix in the direction of that file?
<clever>
what does `--show-trace` add to the error?
ZerataX has joined #nixos
ma27[m] has joined #nixos
chreekat[m] has joined #nixos
dtz has joined #nixos
nolan_d has joined #nixos
mkg20001 has joined #nixos
hiroshi[m] has joined #nixos
ptotter[m] has joined #nixos
alexherbo2[m] has joined #nixos
nilsirl[m] has joined #nixos
chvp has joined #nixos
Yakulu[m] has joined #nixos
Ericson2314 has joined #nixos
worldofpeace has joined #nixos
toraritte has joined #nixos
theduke[m] has joined #nixos
alexarice[m] has joined #nixos
aterius has joined #nixos
kai_w has joined #nixos
comrandroxaos[m] has joined #nixos
Houtworm[m] has joined #nixos
balsoft has joined #nixos
siraben has joined #nixos
hsiktas[m] has joined #nixos
iwvt[m] has joined #nixos
timokau[m] has joined #nixos
aanderse has joined #nixos
xavierm02 has joined #nixos
gnxlxnxx[m] has joined #nixos
Poscat[m] has joined #nixos
rgamma[m] has joined #nixos
unclechu has joined #nixos
NickHu has joined #nixos
regnat has joined #nixos
echel0n[m] has joined #nixos
roberth has joined #nixos
epitron[m] has joined #nixos
NobbZ[m] has joined #nixos
cmcaine[m] has joined #nixos
Valodim[m] has joined #nixos
david-sawatzke[m has joined #nixos
gsals[m] has joined #nixos
edrex has joined #nixos
wedens[m] has joined #nixos
axx[m] has joined #nixos
spinlock[m] has joined #nixos
tokudan[m] has joined #nixos
sonerhalis[m] has joined #nixos
Notkea[m] has joined #nixos
eadwu[m] has joined #nixos
srid has joined #nixos
Luigi[m] has joined #nixos
solomon[m]1 has joined #nixos
contrun has joined #nixos
goibhniu has joined #nixos
sjanes[m] has joined #nixos
jtojnar has joined #nixos
sasyctu[m] has joined #nixos
qbit[m] has joined #nixos
la-s has joined #nixos
bachp has joined #nixos
nocent has joined #nixos
jlv[m] has joined #nixos
haaksmash[m] has joined #nixos
emmanuelrosa[m] has joined #nixos
vegai1 has joined #nixos
denbrahe[m] has joined #nixos
davidak[m] has joined #nixos
JJJollyjim has joined #nixos
etrigan63[m] has joined #nixos
adit[m] has joined #nixos
yangm has joined #nixos
fresheyeball[m] has joined #nixos
danielrf[m] has joined #nixos
leons has joined #nixos
kraem[m] has joined #nixos
billsun has joined #nixos
terrymunro[m] has joined #nixos
mt[m] has joined #nixos
rycee has joined #nixos
watzon has joined #nixos
observer_alpha[m has joined #nixos
matthewbauer has joined #nixos
domenkozar[m] has joined #nixos
tet[m] has joined #nixos
thequux[m] has joined #nixos
evanjs[m] has joined #nixos
askatasun[m] has joined #nixos
sm[m] has joined #nixos
antpic01[m] has joined #nixos
Ox4A6F has joined #nixos
wak-work has joined #nixos
Elorm[m] has joined #nixos
JameySharp[m] has joined #nixos
hanemile[m] has joined #nixos
sshow[m] has joined #nixos
freeman42x[m] has joined #nixos
yutyo[m] has joined #nixos
philipp[m]2 has joined #nixos
basilbunting[m] has joined #nixos
anton-latukha[m] has joined #nixos
zarathustra[m] has joined #nixos
greghab[m] has joined #nixos
Nacho[m]1 has joined #nixos
Wouter[m]1 has joined #nixos
tilpner2 has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jojosch[m] has joined #nixos
boogiewoogie[m] has joined #nixos
kriteus[m] has joined #nixos
sparogy has joined #nixos
DamienCassou has joined #nixos
puzzlewolf has joined #nixos
jongeOld[m] has joined #nixos
colemickens has joined #nixos
phirsch has joined #nixos
fgaz has joined #nixos
vaibhavsagar has joined #nixos
willghatch[m] has joined #nixos
kuznero[m] has joined #nixos
dammndot[m] has joined #nixos
vtest[m] has joined #nixos
interro[m] has joined #nixos
drozdziak1[m] has joined #nixos
tbenst[m] has joined #nixos
d4rkshad0w has joined #nixos
utdemir[m] has joined #nixos
Cadey1 has joined #nixos
grahamc[m] has joined #nixos
sabry97[m] has joined #nixos
cornu has joined #nixos
jluttine[m] has joined #nixos
CRTified[m] has joined #nixos
neumantm[m] has joined #nixos
mindtree[m] has joined #nixos
grin[m] has joined #nixos
apple_at_cha[m] has joined #nixos
chrismatheson has joined #nixos
quiet_laika[m] has joined #nixos
ongy[m] has joined #nixos
slby[m] has joined #nixos
infinisil-m has joined #nixos
redcedar[m] has joined #nixos
cryptix has joined #nixos
jlv[m]1 has joined #nixos
bohan[m] has joined #nixos
bennofs[m] has joined #nixos
rednaZ[m] has joined #nixos
jschievink has joined #nixos
emily has joined #nixos
jonreeve[m] has joined #nixos
rschulman has joined #nixos
Caleb[m]1 has joined #nixos
bbigras has joined #nixos
epic_guy[m] has joined #nixos
Cdric[m] has joined #nixos
delroth[m] has joined #nixos
mullein[m] has joined #nixos
trufas[m] has joined #nixos
philipp[m] has joined #nixos
faewenys[m] has joined #nixos
azazel has joined #nixos
Strubbl[m] has joined #nixos
alienpirate5 has joined #nixos
hpfr[m] has joined #nixos
hsngrmpf[m] has joined #nixos
dngray has joined #nixos
atgo[m] has joined #nixos
bqy has joined #nixos
thefloweringash has joined #nixos
keithy[m] has joined #nixos
idontgetoutmuch[ has joined #nixos
flip[m] has joined #nixos
icetan has joined #nixos
alj[m] has joined #nixos
Minijackson[m] has joined #nixos
michaelpj has joined #nixos
aleph9[m] has joined #nixos
TheSirC[m] has joined #nixos
kaychaks_riot has joined #nixos
jordandoyle has joined #nixos
dasj19[m] has joined #nixos
maralorn has joined #nixos
faya01[m] has joined #nixos
musicmatze[m] has joined #nixos
ngerstle[m] has joined #nixos
wangoe[m] has joined #nixos
randnoise[m] has joined #nixos
psiperator[m] has joined #nixos
frobenius[m] has joined #nixos
cyberwolf[m] has joined #nixos
gmr has joined #nixos
blindidiotgod has joined #nixos
mdlayher has joined #nixos
chmod222[m] has joined #nixos
ohhaimark[m] has joined #nixos
Grauwolf[m] has joined #nixos
mzafkismugi[m] has joined #nixos
tyrion-mx has joined #nixos
felschr[m] has joined #nixos
regivanx[m] has joined #nixos
xfix has joined #nixos
Dandellion has joined #nixos
koschitzky[m] has joined #nixos
pitch has joined #nixos
vojta001[m] has joined #nixos
bricewge has joined #nixos
eddyb has joined #nixos
AberDerBart[m] has joined #nixos
sibachian[m] has joined #nixos
Vykook[m] has joined #nixos
daniels[m] has joined #nixos
TobiasKratzlitsc has joined #nixos
alexfmpe has joined #nixos
dwagenk[m] has joined #nixos
fsmnarmosta[m] has joined #nixos
srxl has joined #nixos
leonardp has joined #nixos
adam[m]3 has joined #nixos
user51[m] has joined #nixos
marius851000[m] has joined #nixos
metheflea has joined #nixos
atopuzov[m] has joined #nixos
arcnmx has joined #nixos
nikola[m] has joined #nixos
gcoakes[m] has joined #nixos
init_6 has joined #nixos
mkfart[m] has joined #nixos
rnhmjoj has joined #nixos
Irenes[m] has joined #nixos
MilkManzJourDadd has joined #nixos
dpc has joined #nixos
bobfett has joined #nixos
develobster[m] has joined #nixos
logan12358[m] has joined #nixos
q3ax[m] has joined #nixos
easamuilov[m] has joined #nixos
DanP[m] has joined #nixos
Markus[m]1 has joined #nixos
zrsk[m] has joined #nixos
limpid-kzonix[m] has joined #nixos
MawKKe[m] has joined #nixos
mlatus[m] has joined #nixos
tristan[m] has joined #nixos
mudrii[m] has joined #nixos
gs93 has joined #nixos
zannzen[m] has joined #nixos
dxtr[m] has joined #nixos
demoulin[m] has joined #nixos
das-g[m] has joined #nixos
hr[m] has joined #nixos
dkellner[m] has joined #nixos
jwaksbaum[m] has joined #nixos
koozz[m] has joined #nixos
piotrszegda[m] has joined #nixos
neonfuz2 has joined #nixos
gildedlink[m] has joined #nixos
geekimerssive[m] has joined #nixos
exel[m] has joined #nixos
vpfeiffer[m] has joined #nixos
spherinder[m] has joined #nixos
Stphan[m] has joined #nixos
phittacus has joined #nixos
acys[m] has joined #nixos
LeBronse[m] has joined #nixos
aquarial has joined #nixos
anarchomoh[m] has joined #nixos
ksevelyar[m] has joined #nixos
ibinzari[m] has joined #nixos
coyoneda[m] has joined #nixos
layus[m] has joined #nixos
ivank[m] has joined #nixos
cab404[m] has joined #nixos
d3c[m] has joined #nixos
quidome[m] has joined #nixos
chris[m]7 has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
pamplemousse has joined #nixos
Scriptkiddi has quit [Quit: killed]
ajs124 has quit [Quit: killed]
das_j has quit [Quit: killed]
mrpi has quit [Quit: killed]
<mtre>
clever: --show-trace does not add any information.
<comrandroxaos[m]>
simpson just use matrix instead. A homeserver is basically a bouncer you (can) share with your circle(s). If u study history, the onnandogwa/souix, cythians and europeans all proved the superiority of federation. Idk why technology is struggling to adopt the concept (or why the usa fought a civil war to get rid of it!)?
<clever>
mtre: can you pastebin the entire configuration.nix file?
<mtre>
I can, the issue being that it is split in a lot of different modules. I can pastebin what I think are the relevant parts to the problem though. Thanks for taking time to help me.
<exarkun_>
in a multi-host morph network, during a `morph deploy ...`, does a failing health check stop the deploy from proceeding to update the subsequent hosts?
<mtre>
clever That would have been my last resort solution indeed, but did not want to risk it since I had a live system to work with. Anyways, thanks a lot for your help!
dxu[m] has joined #nixos
<{^_^}>
[nixpkgs] @garbas pushed commit from @bqv to release-20.03 « sv-kalendar: fix meta »: https://git.io/JfbYJ
<{^_^}>
Found in packages: sad, qgis, blast, dcmtk, linux, smesh, bash_5, gecode, toybox, busybox, cmdstan, msgpack, paraview, boost.dev, coreutils, linux.dev, plan9port, rapidcheck, factor-lang, linux-libre, linux_mptcp, boost155.dev, boost159.dev, boost160.dev, boost162.dev, boost163.dev, boost164.dev, boost165.dev, boost166.dev, boost167.dev, boost168.dev, boost170.dev, boost171.dev, rPackages.BH, linux_testing, coreutils-full, and 37 more
<exarkun_>
:/
hazel has joined #nixos
<hazel>
is there a way to say that all files in one directory should go to another in Nix?
dingenskirchen has quit [Remote host closed the connection]
<hazel>
namely, I have /etc/nixos/config/gitea, and I want all the files there to be Nix-managed and get sent to /var/lib/gitea/custom
dingenskirchen has joined #nixos
nixbitcoin has quit [Ping timeout: 240 seconds]
<simpson>
hazel: Do you want to set services.gitea.staticRootPath? I imagine that you can pass a path at Nix level, and the path will be automatically imported into the Nix store and gitea will point at it. Or at least that's what I'm guessing might happen.
<cole-h>
exarkun_: It's part of coreutils
<cole-h>
,locate bin seq
<{^_^}>
Found in packages: toybox, busybox, coreutils, coreutils-full
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<exarkun_>
Thanks
<exarkun_>
What would you write in a shell script (in a nix expression)? `seq` or `${pkgs.coreutils.seq}/bin/seq`?
<hazel>
I'll give it a go
<energizer>
${pkgs.coreutils.seq}/bin/seq
<energizer>
${pkgs.coreutils}/bin/seq`
<energizer>
^
<exarkun_>
oops yea that
nixbitcoin has joined #nixos
janneke has quit [Remote host closed the connection]
janneke has joined #nixos
<exarkun_>
What about "rm foo"? or "${pkgs.coreutils}/bin/rm"? (just guessing rm is also coreutils)
<energizer>
exarkun_: though sometimes people do @coreutils@/bin/seq and `substitute`
<hazel>
simpson: that doesn't work, no -- Gitea looks for *all* its templates from that directory
<quinn>
ornxka_: build? if you're rebuilding it shouldn't switch over until if it doesn't build successfully
<cole-h>
They uninstalled it
<ornxka_>
well, yes, what happened was i tried to do nix-env -u \* and ti failed, so i thought i would just uninstall it and run the upgrade again
<ornxka_>
but now i want the old version installed again
meh` has quit [Ping timeout: 264 seconds]
drakonis_ has joined #nixos
<cole-h>
You could do `-f 'nixpkgs-with-working-package'`
<ornxka_>
hmm
<ornxka_>
ah nix-env --rollback
<ornxka_>
that works
<{^_^}>
[nixos-homepage] @garbas merged pull request #478 → Fix the file name bat opens → https://git.io/JfFAu
<{^_^}>
[nixos-homepage] @garbas pushed 2 commits to integrate-new-search: https://git.io/Jfbsy
<cole-h>
Oh nice. I don't like nix-env (since it's imperative), so I'm totally unfamiliar with it beyond a few minor things :D
<ornxka_>
how do you upgrade without nix-env?
<ornxka_>
ah i guess nixos-rebuild
<cole-h>
I actually use nixops to deploy my local machine, but yeah, same idea.
o_miguel has quit [Ping timeout: 245 seconds]
<ornxka_>
i see
<hazel>
i'm playing with nixos on the server and it is surreal to have the same configs between all my machines
<hazel>
really buying into the "configs are code" idea
<makefu>
ornxka_: nixos-rebuild uses nix-env under the hood. check out the source code, it is very straight forward
<ornxka_>
nix-env also links to nix :p
<timokau[m]>
ornxka_: home-manager can pretty much replace nix-env in a declarative way
<makefu>
with the nixos-rebuild code you can easily build your own "deployment" system
evhan has quit [Ping timeout: 246 seconds]
<ornxka_>
i am actually reading the source code right now because i want to fix the -k flag of nix-env to keep going with upgrades after a package fails
<makefu>
ornxka_: it is essentially a nix-build <nixpkgs/nixos> -A system && nix-env -p /run/current-system
<clever>
makefu: you dont even need the nix-build
<clever>
makefu: nix-env --profile /nix/var/nix/profiles/system -f '<nixpkgs/nixos>' -A system
yasu has quit [Quit: WeeChat 2.7.1]
orivej has quit [Ping timeout: 240 seconds]
<clever>
makefu: `-p /run/current-system` may not work right, since it points to a storepath, not a the profile
<makefu>
it was just out of my head :)
orivej has joined #nixos
<clever>
same, my memory is just wonky
<makefu>
after reading the nixos-rebuild code i was enlightened on how "deployment" with nix works
<energizer>
is it possible to see configuration options that have been set indirectly? e.g. i have services.jack.jackd.enable, which is supposed to set systemd.services.jack.environment (https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/audio/jack.nix#L256) but nixos-option systemd.services.jack.environment says "«error: attribute 'jack' in selection path 'systemd.services.jack.environment' not found»"
<clever>
energizer: run `nixos-option` or use `nix repl '<nixpkgs/nixos>'`
<energizer>
clever: i mentioned using nixos-option
<makefu>
clever: the cool thing with building it beforehand is that you can prepare the complete system on another machine and copy the closure, then switch to said closure
<clever>
energizer: `nix repl` can also tell you what is setting a given option
<clever>
makefu: yep, and thats pretty much what nixops does
<energizer>
clever: config.systemd.services.jack -> error: attribute 'jack' missing, at (string):1:1
<clever>
energizer: i can see the option when i do it
<clever>
energizer: which rev of nixpkgs are you on?
nobrak``` has joined #nixos
<energizer>
oops i had enable=false
<energizer>
sorry
<clever>
energizer: what does `config.services.jack.jackd.enable` say in nvm
<energizer>
working now
nobrak`` has quit [Ping timeout: 260 seconds]
sheeldotme has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « xmobar: jailbreak latest version to accept recent timezone-olson packages »: https://git.io/JfbGZ
orivej has joined #nixos
mtn has joined #nixos
slack1256 has joined #nixos
<ornxka_>
how do i get a dev env for the nix binary working..
<ornxka_>
the nix binary works after the instructions in the readme but i symlink nix-env to it and then it complains about error: --- SysError ---------------------------------------------------------------------------------------------------------
<mtn>
Is there a nix function that'll allow me to copy the contents of a directory into the store and return the path?
tom39291 has joined #nixos
delan has joined #nixos
delan has joined #nixos
delan has quit [Changing host]
<energizer>
mtn: "${./.}"
<infinisil>
mtn: Just ${./the/path}
puffnfresh has joined #nixos
evhan has joined #nixos
<quinn>
iirc builtins.path also works
<mtn>
Hm, I get this error: `unexpected DOLLAR_CURLY`
<mtn>
I'm trying to use it in my `configuration.nix` if that makes a difference
<clever>
mtn: you often dont even need the ${, just foo = ./path;
<mtn>
(removed it and it seems to be rebuilding fine)
<energizer>
^ scary subtleties when dealing with secrets
hazel has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfbGE
gustavderdrache has quit [Quit: Leaving.]
<energizer>
i forget, what was the conclusion of "is it possible to poison a string/path to ensure it doesn't end up in the store"?
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
Guest78 has joined #nixos
<mtn>
energizer: If I'm providing the path, shouldn't that be okay?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-single-tuple: don't mark as broken; the package builds fine »: https://git.io/JfbGz
kleisli has joined #nixos
<energizer>
mtn: maybe. the thing you're providing it *to* might save it in the store
<cole-h>
No, if you're providing the path, it gets copied into the store.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfbGg
<energizer>
i guess that's a safe rule of thumb, but it depends on what we mean by provide as to whether it's literally true
<cole-h>
`{ test = ./test; }` -> test now refers to a store path created from the contents of ./test
<clever>
cole-h: not exactly
<energizer>
i dont think that's true cole-h
<clever>
cole-h: test contains a path (a special type)
<clever>
cole-h: if you treat test as a string, THEN it copies it, but if you `test + "/foo"` then you get a new path, that would only copy the foo subdir
epitron[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
ashesham` has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-postgresql-pure: this build is probably not broken ... »: https://git.io/JfbZG
mtn has joined #nixos
user_0x58 has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfbZn
<mtn>
A few people here have mentioned poetry and poetry2nix as ways of managing python dependencies here. If I want to set up a python program to run as a service, would I be able to specify the dependencies for that using something like poetry2nix, if I get the app working with poetry and poetry2nix?
anton-latukha[m] has quit [Quit: Idle for 30+ days]
willghatch[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
boogiewoogie[m] has quit [Quit: Idle for 30+ days]
grahamc[m] has quit [Quit: Idle for 30+ days]
daniels[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
Cdric[m] has quit [Quit: Idle for 30+ days]
ksevelyar[m] has quit [Quit: Idle for 30+ days]
user_0x58 has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2020-06-19T00:10:12Z »: https://git.io/JfbZV
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hasura-graphql-engine: mark build as broken to fix infinite recursion »: https://git.io/Jfbnt
knupfer has quit [Quit: knupfer]
sheeldotme has quit [Read error: Connection reset by peer]
cosimone_ has quit [Quit: Quit.]
knupfer has joined #nixos
orivej_ has joined #nixos
<energizer>
mtn: you specify the python dependencies with poetry, and tell nix to install them with poetry2nix
orivej has quit [Ping timeout: 258 seconds]
<mtn>
energizer: Maybe a stupid question, but that applies if I want to specify the dependencies in my `configuration.nix` right, not just in a `nix-shell`?
<energizer>
mtn: yes. normally what i do is make a package , add it to nixpkgs in an overlay, and then use that package from my new nixpkgs in configuration.nix
<armin>
energizer: you can deactivate (and then re-activate) a connection in NM and it will obtain a fresh lease, but there's no guarantee the dhcp server won't assign you the same ip again.
<numkem>
clever: would you happen to have the format for the /etc/nix/hydra.iohk.io-1/secret file from your previous example? is it similar to what ~/.aws/credentials is? I got it working with minio without issues
<armin>
energizer: it could be that you're able to randomize your mac (or that NM does this by default these days)
<armin>
energizer: you can also try the "nmtui" program to get a nice simple terminal UI
<armin>
energizer: nmcli connection down "yourconnection" could work (only proven correct, not tested)
<clever>
numkem: that secret is a nix keypair, from `nix-store --generate-binary-cache-key`
<clever>
numkem: the aws secrets just sit in ~/.aws/ and the aws libraries just read them as normal
<clever>
numkem: the main thread on the PR i linked shows how i setup that auth
<numkem>
roger, this is an extra because they are signed right?
<clever>
yeah
<numkem>
perfect, I'll take a deeper look with the PR
<energizer>
armin: nmcli d disconnect enp.. worked, thanks
<sshow>
I forgot to enable wireless networking on a fresh nixos install. How can I install it using sources from the installation medium?
<sshow>
ok, lets rephrase; how can I add a path to the store, then install a package from that added store?
<cole-h>
since it's now a symlink to the proper installation URL
<cript0nauta>
yes, I solved it
<timokau[m]>
evils: Great, looks as it should :) Thanks! I'll leave a review
<evils>
timokau[m]: updating a comment doesn't change the marvin status
<cole-h>
Yeah, I was going to suggest that eventually, as well. timokau[m]: ofborg takes into account message edits (so you don't need to spam a thread if you need to test/build some other package) -- maybe something you'd want to watch for as well
<timokau[m]>
evils: Yes, that is kind of on purpose / I'm aware of it. I'm not sure if it should
<cript0nauta>
i want to make sure it's a known issue
<{^_^}>
nix#3716 (by SamirTalwar, 1 day ago, merged): Instruct the user to follow redirects when installing Nix.
<cript0nauta>
cole-h: oops I was looking into open PRs and din't note it, I guess it's just a matter of time for the Nix manual page to update
<timokau[m]>
cole-h: Its a bit of a different use case here though. Usually there will be some conversation between state changes, so it seems like weird UX if you go back to some old comment and edit it just to give a command to marvin
<cript0nauta>
thanks for answering!
<timokau[m]>
Also the state changes may actually be interesting in itself, I don't think github sends out notifications for label changes
<cole-h>
cript0nauta: Yep. It should update on the next release (I think I read that 2.3.7 should be released +/- soon)
<cole-h>
Nix release*
<timokau[m]>
I'm not totally opposed to it, but I'm not sure it would be the right behavior either.
<cole-h>
timokau[m]: Then maybe special-case for opting in, so if the author tries to change state without first opting in, they can go back and edit that in
knupfer has quit [Ping timeout: 244 seconds]
<timokau[m]>
cole-h: True, in that case it would obviously be the right thing to do. Not a very high priority for me now though, contributions welcome ;)
o1lo01ol1o has quit [Read error: No route to host]
orivej has joined #nixos
eoli3n_ has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
sheeldotme has joined #nixos
wnklmnn has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<meh`>
anyone else getting explosions from 6j2clxcqd047raz7z4an329d7vinqypr-python3.8-cheroot-8.2.1.drv ?
griff_ has quit [Quit: griff_]
justanotheruser has joined #nixos
<meh`>
tests are failing
orivej has quit [Read error: Connection reset by peer]
<bigvalen>
Huh. On an up to date nixos, "nix-build '<nixpkgs>' -A hello --argstr system armv7l-linux" fails with "*** These critical programs are missing or too old: compiler", when it builds glibc.
nate48423 has quit [Remote host closed the connection]
orivej has joined #nixos
dermetfan has quit [Ping timeout: 260 seconds]
nate48423 has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<{^_^}>
[nixpkgs] @saulecabrera opened pull request #91133 → asls: init at 0.3.0 → https://git.io/Jfb4t
<glittershark>
`/nix/store/vdzl2yh916ygj7qlylyswp1a3w46z6yf-cctools-binutils-darwin-wrapper-927.0.2/nix-support/setup-hook: line 138: ${role_pre}${cmd^^}=${cmd}: bad substitution` hmm