<Ashy>
i've also never bothered with the vm testing
<ldlework>
Well I'm pretty nervous about X not working..
<Ashy>
upgrading on nixos is probably the safest distro you can do it on
<Ashy>
worst case you just pick the previous generaton in the bootloader
<ldlework>
Unless it breaks the bootloader.
<Gaelan>
TIL nixpkgs rustc on darwin pulls in FOUR DIFFERENT VERSIONS OF LLVM
<Ashy>
which is fairly unlikely
<ldlework>
Gaelan: lol
<ldlework>
Ashy: seems to have happened to people
bhipple has joined #nixos
<Gaelan>
LLVM 5 for some undocumented workaround, LLVM 7 with and without python support in libxml2 (the without comes from stdenv, I don't know about the with) and LLVM 9, which Rust actually depends on
<{^_^}>
[nixpkgs] @mausch opened pull request #87451 → Pianoteq: init at 6.7.1 → https://git.io/JfWtn
<Ashy>
ldlework: true anything is possible but i havent had it happen to me yet and i've been using nixos as my main distro since 2018 across 3 or 4 laptops and 2 desktops
<Ashy>
ldlework: when troubleshooting this lenovo thunderbolt dock i downgraded and upgraded between 19.04, 19.09, 20.04 and nixos-unstable in the space of about an hour
<ldlework>
Ashy: I just wonder why the VM is broken now.
<Ashy>
ldlework: that said, make a backup or two first
<ldlework>
I wonder why it would boot the first time. And now, never again.
<_d0t>
does nix support regexp in any way?
<ldlework>
I wonder if I can ssh into it.
<eadwu[m]>
Depends on what you're trying to use regexp for?
<_d0t>
eadwu[m]: split a string into several chunks given a pattern
<eadwu[m]>
There is builtins.match
<eadwu[m]>
As long as it isn't too complicated
<_d0t>
eadwu[m]: thanks!
luna has quit [Remote host closed the connection]
<ldlework>
Heyyyyyyy
<ldlework>
I'm on unstable!
<ldlework>
\o/
* ldlework
cuddles Nix.
<Gaelan>
update: DARWIN STDENV HAS TWO COPIES OF LLVM 7
<bkv>
Gaelan: we need to go deeper
<bkv>
Ok thats deep enough
<ldlework>
qsynth still core dumps though lol
<ldlework>
Ah no it doesn't.
<ldlework>
Have to upgrade nix-env things manually
<cole-h>
lol
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfWqk
<ldlework>
OK now I need some soundfonts :)
<ldlework>
lol some icons that were broken in my WM are now fixed too
<ldlework>
cute little pomodoro tomatto :P
<ldlework>
Oh I am getting some nasty graphical glitches
<Ashy>
just looked like you were mashing the rearrange windows hotkeys
<dxtr>
So what is the idiomatic flow to developing packages? I have rather simple Go module I'd like to install no my server - do I have to clone the whole nixpkgs repo and put the package in there or can I tell the tools to use the default.nix in cwd?
noudle has quit []
hlisp has quit [Ping timeout: 260 seconds]
<clever>
dxtr: `nix-build` with no args, will load default.nix from the cwd by default
<dxtr>
So if I just call nix-build in the directory I get "error: cannot auto-call a function that has an argument without a default value ('lib')", google tells me I might have to do some "nix-build -E 'with import <nixpkgs>...'" magic - is that true? And how do I find out what kind of magic?
<{^_^}>
If you're updating a package file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A the-package-attribute` in the nixpkgs root with the corresponding package attribute to build it. The mapping from package attributes to package files is in pkgs/top-level/all-packages.nix
<cole-h>
o that doesn't really help
<clever>
dxtr: you can either use -E like that, or you can put `with import <nixpkgs> {};` on the 1st line of your default.nix
<clever>
cole-h: the help text got changed to be a bit less helpful
punkj has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Ma27 closed pull request #87115 → gitea: build package with go 1.13 → https://git.io/JfZ5b
<dxtr>
clever: too old? When was this feature added?
<dxtr>
I installed 20.03 like last week
<clever>
maybe buildGoModule is diff
mpiechotka has joined #nixos
<clever>
your nixpkgs version claims to be 210d8624ac4, but i cant find that in git
<dxtr>
No, adding version solves it too
<dxtr>
So it was because I didn't have version
eoli3n___ has quit [Quit: WeeChat 2.8]
<clever>
ah
<clever>
you left out the version in the example
<clever>
and it didnt get both, so it omited the name
<dxtr>
but now I get undefined variable fetchFromGithub
<clever>
dxtr: fetchFromGitHub
<clever>
case sensitive
<{^_^}>
[nixpkgs] @lukegb opened pull request #87457 → deluge: fix running the Gtk UI → https://git.io/JfWmf
mpiechotka has quit [Client Quit]
<dxtr>
Oh duh
<ex-parrot>
next question, why aren't the pdns utilities in my $PATH (e.g. pdnsutil, pdns_control)
<ex-parrot>
I assume there is a Nix reason for this :P
mpiechotka has joined #nixos
<morgrimm>
Does anyone know off the top of their head what package I need to drop in the modules to drive an Intel 8260?
<morgrimm>
I built a new gen and suddenly NixOS doesn't have the firmware for the wifi card :/
hlisp has quit [Ping timeout: 256 seconds]
eoli3n_ has quit [Ping timeout: 256 seconds]
<dxtr>
"hash mismatch in fixed-output derivation '/nix/store/ljrdpj6qw1g97c8hgdffnw4yv71pvqhb-goidentd-0b47508694bac09042abe2866432d1af6a9f1c3c-go-modules'"
<dxtr>
good job
webster23 has quit [Ping timeout: 252 seconds]
<morgrimm>
dxtr: that's good. it means you now have the correct source hash to feed the package.
proofofkeags has joined #nixos
braunse has quit [Ping timeout: 265 seconds]
<morgrimm>
It should have spit out the sha nix calculated, which if it's your first time fetching that source, will be the correct one
braunse has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
pjt_014 has joined #nixos
hlisp has joined #nixos
<ex-parrot>
is this expected? if I just enabled the PowerDNS service it runs, so clearly PowerDNS is being pulled in somehow as a dependency, but if I want the command line tools to be in my path I have to also explicitly add it to the systemPackages list?
<ex-parrot>
and it seems that the command line version of pdnsutil can't find the pdns.conf from the service version, so it doesn't know how to find the control socket etc...
<ex-parrot>
once I've made the wrapper, I don't need to include powerdns in my systemPackages anymore?
<morgrimm>
So I added the iwlwifi module just to be sure it was included, and it spit out a boot error about there being no suitable firmware for my wifi card... hmm
mpiechotka has joined #nixos
<cole-h>
lovesegfault: Woot, binutils is all green on ofborg. Maybe this time, it will work properly :D
<dxtr>
Do I just slap the systemd.services stuff under src = ...; ?
<mpiechotka>
Hi. When I added shell = pkgs.zsh to users.users.mpiechotka gnome-shell stopped working (no applications displayed - they were still in $PATH though.
<matthewcroughan>
It gives the example of `loadkeys de neo`, so I think "okay, great, so all I have to do is `loadkeys en qwerty`" or something of that nature.
<mpiechotka>
What have I done wrong?
<matthewcroughan>
But in fact, loadkeys says that en is not found, I'm really quite confused about the usage of it
<matthewcroughan>
No clear examples are given in the manual either
<mpiechotka>
matthewcroughan: s/en/us
<matthewcroughan>
but I'm gb
<matthewcroughan>
and gb isn't found
<mpiechotka>
GB uses different layout
<matthewcroughan>
I'm trying all combos.
<mpiechotka>
Oh. NM than
<matthewcroughan>
The problem, entirely, is that there are no clear examples, nor are there any in the manual.
jluttine has quit [Ping timeout: 260 seconds]
<matthewcroughan>
I'm looking in /nix/store/hash/share/keymaps, but I don't know if it's looking in there by default
nckx has joined #nixos
<matthewcroughan>
the man page points to it, probably due to environment variables, but I'm really really confused about where it' even looking
<emily>
matthewbauer: loadkeys uk
<emily>
iirc
<{^_^}>
[nixpkgs] @bhipple merged pull request #87440 → doc: use idiomatic overlay names in the python manual example → https://git.io/JfWTT
<ex-parrot>
hmm looking at the nixpkgs repo I don't think rndc is properly set up in the bind package either :(
<emily>
adding one with the # prompt would accomplish conveying that I guess, though the manual should probably also explicitly explain that convention
<matthewcroughan>
it's just a side-mention.
<slack1256>
I did a program which searches for haskell packages' documentation on /nix/store. Does anybody know if there is another project that does that?
<matthewcroughan>
I never knew that indicated root shell! ex-parrot :)
ixxie has joined #nixos
<matthewcroughan>
That's great to know, I never knew why it was included in guides for the past 3 years I've been using Linux haha.
<ex-parrot>
matthewcroughan: just to be clear, it's # for root and $ for normal user by convention
<ex-parrot>
I got it wrong in my haste :P
<matthewcroughan>
Got it, that's still interesting
<pistache>
matthewcroughan: most shells end the prompt with "#" for root and "$" for a normal user
<matthewcroughan>
In which case, I think all those guides have been using it wrong LOL
<matthewcroughan>
So let's just throw that convention out of the window :D
<ex-parrot>
I'm trying to find an example of a service which includes command line tools that I can crib the wrapping stuff out of it
<ex-parrot>
and so far all i'm finding are other services where the command line tools are also not properly wrapped :P
<ex-parrot>
does anyone have a good example they could point me to?
jluttine has joined #nixos
<pistache>
ex-parrot: I'm interested in that too, I've been wanting to wrap pdnsutil as well
<ex-parrot>
oh cool
<ex-parrot>
I am fixing up the pdns service file at the moment
kimat has quit [Ping timeout: 260 seconds]
<ex-parrot>
I note that rndc is also not wrapped, which makes me think nobody is running their DNS on NixOS :P
<ex-parrot>
those all have # for root, matthewcroughan
<ex-parrot>
but it probably needs to be more explicit upfront about that convention
<emily>
it first appears in section 2.2.1
<matthewcroughan>
e.g it's telling you to use wpa_supplicant, and I know that this is configuring networking, but how am I supposed to know NixOS isn't configured to allow the user to manage this?
<emily>
you're like, one page into the manual :P
<emily>
but yeah it should use it more consistently
<ex-parrot>
and I guess it's relying on some experience with Linux knowing that usually only root can modify interface configuration etc
<emily>
the manual also does $ sudo at some points
<emily>
it's kind of a mess in many ways
<keithy[m]>
hi guys, I am loking for a simple example explaining how to use nixFilesIn
<matthewcroughan>
Yeah it's not consistent enough
<ex-parrot>
I will agree as a newb to NixOS the manual was "enough" but if I was not more experienced with Linux I'd be struggling
<emily>
the overarching answer is that the docs are neglected. in part because nobody wants to write docbook
<matthewcroughan>
Because it's NixOS and I have heard a lot about it, I am going into this making absolutely NO assumptions about convention, since NixOS breaks convention.
<ex-parrot>
I'm still trying to find a service that ships w/ a CLI tool so I can crib the wrapping :(
<matthewcroughan>
as a result, I'm making mistakes, because I am assuming that it's telling me explicitly not to use root, but no, the manual assumes knowledge.
<emily>
ex-parrot: what kind of wrapping do you need?
<ex-parrot>
I need to expose the pdnsutil and pdns_control tools w/ a wrapper that points the --config-dir=... to the right place
<simpson>
emily: I am not willing to accept "nobody wants to write docbook" anymore. The reason why *I* have not contributed much of anything to the docs is because, frankly, I'm not sure what's missing that I'm supposed to be able to provide. That is, the docs are sufficiently complete that I don't have the experience of needing to add something.
<keithy[m]>
total noob
<ex-parrot>
I will definitely try and contribute some improvements to the documentation once I've got a few machines running NixOS properly
<emily>
simpson: I say "in part" because I can specifically say it's the #1 blocker to me contributing to the docs.
<simpson>
I don't think that it's fair to blame a format when piles of people have successfully contributed with the format and built a relatively formidable knowledge base.
<ex-parrot>
as a lot of it is still pretty baffling to me
<numkem>
I'm trying to import a function in nixops with a custom argument, nixops complains about a custom option. My understanding is I could do import ./file.nix { option = {} }. Where am I wrong?
<emily>
I can't speak for everyone else but I know it's not a non-factor.
<cole-h>
Well, I'm certainly one of those people who wouldn't write docbook unless their life depended on it.
<keithy[m]>
ex-parrot: me too
<ex-parrot>
I don't mind docbook particularly, I guess I'm weird :P
<emily>
I have active plans to uplift a NixOS wiki page I wrote into the manual once that doesn't involve DocBook.
<{^_^}>
[nix-mode] @matthewbauer pushed to fix-94 « Don’t skip over > in angle-path »: https://git.io/JfWm9
<dxtr>
Hmm, okay so do I have to separate the buildGoModule stuff from the rest? Like systemd.service and networking.firewall?
<ex-parrot>
though I'd prefer Sphinx and md or rst
<eadwu[m]>
The doc was correct but after someone brought up that the iso defaulted to root it was changed I'm pretty sure
<dxtr>
I mean into different files
<simpson>
emily: Understandable. From my perspecive, FWIW, "part of the reason is that nobody does it" is quite distinct from "the entire reason is that a few people don't do it"; two different approaches are required for those two different problems.
<emily>
I like DocBook as a document model but writing XML really bums me out
<emily>
ex-parrot: yeah, asciidoc and rest seem like the most likely candidates (there's an open rfc to move the format)
<{^_^}>
[nix-mode] @matthewbauer opened pull request #97 → Don’t skip over > in angle-path → https://git.io/JfWmH
<ex-parrot>
true. I wonder if you could just write in yaml then squirt it over to XML later
markus1199 has joined #nixos
dsiypl4 has joined #nixos
<keithy[m]>
In general I find examples written as if they ought to be obvious to understand, but they arent.
<emily>
simpson: I'm not sure what part of "the docs are neglected in part because nobody wants to write docbook" you're objecting to at this point? I agree it's not the whole story and I think prioritizing docs in general is hard but people are pretty loud and clear about the fact that it is a factor
<ex-parrot>
but I am not sure where I'm supposed to define that
<emily>
the docs contain a lot of material but the structure and discoverability is not great, imo
<keithy[m]>
for example "Here are a few helpful Nix expressions I’ve accumulated over the years, in case they’re useful to anyone else. I’ll assume the following stuff is in context:"
<emily>
nor is the consistency
hlisp has joined #nixos
<keithy[m]>
* for example "Here are a few helpful Nix expressions I’ve accumulated over the years, in case they’re useful to anyone else. I’ll assume the following stuff is in context:" with builtins;
<keithy[m]>
with import <nixpkgs> {};
<keithy[m]>
with lib;
<keithy[m]>
doesnt mean anything to me as I stare at configuration.nix
<aleph->
Yeah all in all the docs blow ****
<aleph->
Think there's a PR to work on it thankfully
<abathur>
anyone know if it's possible to filter down a git/github based src? I can't recall having seen it done
<cole-h>
tbh it would be much improved if there were subpages instead of having to load an N MB page just to find docs on `buildHostDepsDeps`
markus1189 has quit [Ping timeout: 240 seconds]
<emily>
cole-h: what, no, being able to ctrl+f the whole thing is the bes tpart
<emily>
that's the only way I find anything
<ex-parrot>
if I put that in my "let" section of the service, it compiles but I don't get a pdnsutil in my path out of it :P
<cole-h>
emily: If there was an actual search mechanism, that would be addressed, no?
<emily>
ex-parrot: hm, and I guess configDir is dependent on service config so you can't just do this wrapping in the actual powerdns derviation?
<ex-parrot>
right
<abathur>
even if not, google would give better results
<emily>
cole-h: if it was any good, sure. though I still wouldn't have reflexes for it
<ex-parrot>
I don't find anywhere else that wrapProgram is used in nixos/modules/services...
<ex-parrot>
so I feel like I'm barking up the wrong tree
<eadwu[m]>
abathur: Are you trying to filter out files from source tree?
<emily>
ex-parrot: I do feel like this is kind of a weird way to do things, but it's hard to advise what would be better without more context
<emily>
ex-parrot: does it look for config in /etc by default? you can always just use environment.etc and spit config out there and not wrap it at all
<{^_^}>
[nix-mode] @matthewbauer pushed commit from @jahkeup to master « Don’t overwrite smie-indent-exps & smie-indent-close »: https://git.io/JfWmp
<emily>
given that modules are singletons with no instancing anyway, you don't lose anything by doing that, and you could drop the wrapper?
<ex-parrot>
yeah it does. the only reason I've got the config where it is is that I'm modifying the existing powerdns service module, which did it that way
<matthewcroughan>
uh, so I'm following the guide now up to the point of wpa_supplicant
<abathur>
yeah, I'm repackaging someone else's repo that has a number of large vendored dependencies and such that I'm not using
<abathur>
^^ eadwu[m]
<matthewcroughan>
I get /dev/fd/63 no such file or dir, failed to read or parse configuration
<cole-h>
abathur: Maybe something like `lib.cleanSourceWith`?
<matthewcroughan>
Does anybody want to inform me as to how to get that wpa_supplicant command working in the nixOS installer?
<abathur>
cole-h: I've been playing with it, but getting the uh "'X' cannot refer to other paths" error
<ex-parrot>
matthewcroughan: I followed the instruction and it worked fine
<ex-parrot>
can you pastebin what you're running exactly?
<abathur>
cole-h nod, I'm aware that they are there; I just haven't found an example of them being used with something like fetchFromGitHub and am having trouble getting it to work
<ex-parrot>
and that gets executed in the context of your normal user, not inside the root shell
<matthewcroughan>
so why does the documentation tell me to run it in this manner?
<ex-parrot>
just "sudo -s" and do everything as root is probably easiest
<matthewcroughan>
I mean, I really don't want to make assumptions
<ex-parrot>
I feel like you might be being deliberately obtuse. the documentation has some flaws and assumes you know a bit about using Linux and the bash shell, I think
<abathur>
cole-h: so I'm trying to make sure I'm not just bashing my head against a wall that won't give :)
<matthewcroughan>
I'm not being deliberately obtuse. Why would I make assumptions?
<ex-parrot>
all the other examples it's giving there are things which need root
<eadwu[m]>
abathur: What's your filter
<matthewcroughan>
The other ones, I got over, but this one is genuinely confusing, I've never even used wpa_supplicant's cli before, to be honest, only its configuration files.
<emily>
wait, why wuoldn't wpa_passphrase be in the path?
<{^_^}>
[nix-mode] @matthewbauer pushed to master « Remove org-man.el from .texi makefile rule »: https://git.io/JfWYf
<ex-parrot>
you can work it out from context I think, given a pre-requisite understanding that "the documentation isn't perfect"
cr4y1 has quit [Ping timeout: 272 seconds]
<{^_^}>
[nix-mode] @matthewbauer pushed 8 commits to fix-94: https://git.io/JfWYJ
<emily>
doesn't the installer ship with an actual network manager
<emily>
I swear it has nm-cli or something
<matthewcroughan>
I cannot work it out from context, and I find your language a bit elitist..
<ex-parrot>
sorry, I am not trying to demean you
<matthewcroughan>
I'm simply reading, applying, making 0 assumptions
<emily>
(it really should if not)
<matthewcroughan>
That's how you read a manual.
<ex-parrot>
the documentation requires you to make assumptions though is the point I'm trying to make, and we know that
<ex-parrot>
so bringing up every example as if it's a revelation isn't that helpful
<matthewcroughan>
"The documentation requires you to make assumptions".
<ex-parrot>
we just agreed about that before :P
<emily>
matthewcroughan: fwiw I agree the docs could be a lot better, but I will say that in general the learning curve of Nix is fairly high and you're going to have to make educated guesses, experiment, and apply existing linux domain knowledge to the extent you can
<ex-parrot>
it's not perfect documentation, that's well known
<ex-parrot>
^
<matthewcroughan>
I'm not insulting the documentation.
<matthewcroughan>
I'm going through the documentation. I'm asking for help as I encounter problems.
<matthewcroughan>
It is you who is generating this narrative that the documentation is being insulted.
<emily>
I don't think that's ideal by any means, but it's just the self-reinforcing status quo
thc202 has quit [Ping timeout: 260 seconds]
<qyliss>
I don't think anybody has implied the documentation was being insulted
<qyliss>
(And I don't think anybody would mind if it was)
<ex-parrot>
I guess the way I'm reading what you're writing is that there's an air of incredulity that the "documentation is bad"
<matthewcroughan>
Not at all. I'm simply going through it.
<ex-parrot>
if you want help installing, we can definitely do that :)
<matthewcroughan>
I just want to learn about nix, and am reading.
<matthewcroughan>
That's it. There's nothing more to it. I'm simply going through it, and encountering problems, then asking about them.
<ex-parrot>
ok
<matthewcroughan>
And I am not going to make assumptions about how things work.
<matthewcroughan>
Why would I assume what's in the path?
leo60228 has quit [Quit: Lost terminal]
<abathur>
eadwu[m]: I haven't tried to work on the filter itself yet; just trying to get anything working first
<matthewcroughan>
I don't run into these issues in other contexts, so clearly things are different. I am not being told what *is* different, so issues are encountered.
<ex-parrot>
because the NixOS documentation is written mostly by people who are very familiar with Linux and have a good existing background knowledge about what things will and won't require root
<morgrimm>
matthewcroughan: I think everyone agrees that the documentation is far from a step-by-step guide - but that's not going to change unless contributors step up and fill in what's not there :)
<ex-parrot>
and so they haven't spelled it out carefully
<eadwu[m]>
abathur: What have you tried? Or what are you trying to filter away?
<morgrimm>
If you have changes that you think should be made to them, it'd be a great help to PR them
<matthewcroughan>
Now, I will make a bit of a joke. For something that is supposedly so stateless and rigorous about "keeping the playbook documented" or known, the fact that things like this are not configured to work properly is quite funny :)
<abathur>
I've tried cleanSourceWith filter = stdenv.lib.cleanSourceFilter; and src = fetchFromGitHub..., for example
<ex-parrot>
matthewcroughan: the example as given does work properly, you just have to know how bash and sudo work to know how to apply it
<ex-parrot>
you're yourself making an assumption that by whacking "sudo ..." on the prefix you'd get it to work, but that's not actually how bash works with file descriptor redirection
<abathur>
to start with, directories I don't need
<ex-parrot>
and that's not a NixOS specific issue, bash does that on all Linux systems
<abathur>
including a partial vendored python 2.7
<matthewcroughan>
The example as given does not work properly, because there is a system misconfiguration, isn't there?
<ex-parrot>
no, it works properly
<ex-parrot>
you're calling it wrong
<matthewcroughan>
If I did this in Ubuntu, Arch or Fedora, this error would not be encountered.
<ex-parrot>
if you want to use sudo you need to explicitly do something like "sudo wpa_supplicant -B -i interface -c <(sudo wpa_passphrase 'SSID' 'key')"
<matthewcroughan>
I would be able to run wpa_supplicant as root and this issue wouldn't present itself, is this not true?
<matthewcroughan>
rather, with sudo
<ex-parrot>
you'd run in to the exact same issue on any Linux distro
<matthewcroughan>
Let me test this, one sec.
<numkem>
is it possible to pass custom options? I'd like to be able to pass a set as an option
<ex-parrot>
because the part in the <(foo) is run outside of the "sudo" context
<energizer>
matthewcroughan: can you link to the part of the documentation you're talking about, and post your shell session?
<eadwu[m]>
abathur: Are you running the filter against the src?
<abathur>
eadwu[m]: I can gist something if you think that'll help, though I'm really just trying to find a real-world working example that combines a a fetch*git* with a *filter* of some sort
<matthewcroughan>
I can't post the entire shell session because I don't have a clipboard or network connection at the moment lol
<matthewcroughan>
but I have already done both of those things. I don't want to spam by posting the command again, but it is simply section 2.1 of the install guide.
<ex-parrot>
in the docs you'll note they don't use sudo, so the wpa_supplicant and wpa_passphrase are both running as the same UID (which it, perhaps wrongly, assumes you'll know needs to be in a root shell)
<ex-parrot>
so you've added "sudo ...", which has created an incorrect way to call that command that the documentation doesn't expect
<dxtr>
ex-parrot: Do I have to put systemd.services stuff in a separate file/module/unit/whatever from my buildGoModule stuff? I only get "cannot coerce a set to a string" if I slap it in the end of the file and "syntax error, unexpected '=', expecting $end" if I slap it in the beginning
<ex-parrot>
which is why it isn't working for you
<ex-parrot>
dxtr: I have no idea :P
<ex-parrot>
I'm very new to NixOS
<matthewcroughan>
That is true, so there is taht.
<dxtr>
err
<dxtr>
Yeah, wrong person :D Sorry
<matthewcroughan>
i guess the guide should just say you need to be in a root shell for the entirety of the install
<ex-parrot>
it probably should, yeah
<energizer>
agree
<emily>
I still don't understand why wpa_passphrase wouldn't be in the path for the normal user
<emily>
i.e. I have no idea why matthewcroughan's command failed
<matthewcroughan>
It is worth noting that I have already installed NixOS before, for someone. How did I do that? Simply copy and pasting commands, and figuring crap out as I do in Linux generally. But I don't want you to assume that I am a noob, just because I'm applying **no assumptions** okay?
<dxtr>
ex-parrot: In fact I didn't even mean to highlight you. Sorry :D
<energizer>
the doc gives the $ prompt instead of the # prompt too which is misleading
<ex-parrot>
ok emily to be fair, that guess was based on a non-nixos assumption that it was in /usr/sbin not /usr/bin
<ex-parrot>
I thin kthe real issue is
<ex-parrot>
that the file descriptor is owned by root
<ex-parrot>
but the wpa_passphrase command which is writing in to it, isn't being run as root
<ex-parrot>
so same outcome
<emily>
huh I guess nixos actually still has the sbin split
<matthewcroughan>
I want to understand, entirely, what is occurring, rather than just copy-pasting commands. Which is why I have ran into this issue. I cannot reproduce what I have been told to do by the documentation, purely by reading the text on the page.
<ex-parrot>
just different reasons :P my normal linux intuition is lousy here!
<emily>
that's wild, most distros ditched those quite a while ago
<matthewcroughan>
Which is not being deliberately obtuse, I'm simply trying to learn.
<ex-parrot>
matthewcroughan: that's a good approach I think. just understand that the documentation isn't perfect, so you'll need to apply some pre-existing Linux knowledge too
<matthewcroughan>
I'm aware, and I'm just documenting what happens here, I guess.
<ex-parrot>
cool
<matthewcroughan>
I hope I'm not being annoying.
<ex-parrot>
emily: yeah you're right I think, it's prob just the file descriptor was owned by root
<ex-parrot>
not that the path was wrong
<energizer>
matthewcroughan: does it work if you do it in a root shell?
mpiechotka has joined #nixos
<ex-parrot>
I'll also admit that the bash-specific <(foo) file redirection syntax is probably a bit exotic for your average bash / linux user
<matthewcroughan>
About to try. But was busy defending my position of making no assumptions, and being called deliberately obtuse.
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 260 seconds]
<energizer>
matthewcroughan: fwiw i think your confusion is reasonable
<ex-parrot>
"knowing what is safe to assume" is a bit of a difficult problem with NixOS. see before my surprise at pdnsutil not being in PATH after setting up PowerDNS. it makes sense but it's not intuitive from experience in other distros
<matthewcroughan>
I only found out earlier why `watch lscpu | grep MHz` doesn't work, whereas `watch 'lscpu | grep MHz'` does ;)
<ex-parrot>
similar reason why the <(foo) thing doesn't work with sudo, as the process tree forks off /before/ sudo
<matthewcroughan>
On another note, does anyone know why KiwiIRC didn't highlight that as code? I've seen other people use some characters that does highlight code in various IRC clients?
<{^_^}>
[nix-mode] @matthewbauer merged pull request #97 → Don’t skip over > in angle-path → https://git.io/JfWmH
<{^_^}>
[nix-mode] @matthewbauer pushed 3 commits to master: https://git.io/JfWY3
<matthewcroughan>
ex-parrot what would be the non <() manner of executing that command?
<matthewcroughan>
What is the parsed output? In fact, couldn't I get that? How can I get bash to echo the resolved output, rather?
<ex-parrot>
so you'd need to run "wpa_passphrase foo bar" first, which outputs the config for wpa_supplicant, then put that in a file, then wpa_supplicant -c ./path/to/file
<clever>
matthewcroughan: write the thing to a normal file first, and then just give it the filename
<matthewcroughan>
"Write the thing to a normal file" ?
<clever>
matthewcroughan: wpa_passphrase 'SSID' 'key' | sudo tee -a /etc/wpa_supplicant.conf ; sudo wpa_supplicant -B -i interface -c /etc/wpa_supplicant.conf
<matthewcroughan>
What, take the WHOLE command and > file.txt ?
hmpffff_ has joined #nixos
<ex-parrot>
<(foo) takes the stdout from foo and puts it in to an ephemeral file which bash then substitutes for a path to a file descriptor so the process that is being redirected in to can read from it
<mpiechotka>
I would like to amend a package. How to add an option to the list of options?
<ex-parrot>
for example: sed -e 's/foo/bar/' <(echo foo)
<ex-parrot>
actually that's a bad example because it'd work with stdin too :P
<mpiechotka>
(Yes. I will read manual in future but for now I just want to finish migration)
<clever>
ex-parrot: try with ls -lh!
<lovesegfault>
cole-h: I think it's ready
hmpffff has quit [Ping timeout: 252 seconds]
<lovesegfault>
I'm pumped to merge binutils
<abathur>
lovesegfault: could probably get punched for saying that in the wrong context
<matthewcroughan>
clever I didn't mean like that, I mean more like how one can echo resolved bash substitutions, can this not be done with this command in the same way?
<lovesegfault>
abathur: ❓
<clever>
matthewcroughan: `ls -lh <(echo foo)`
<ex-parrot>
matthewcroughan: if you want to know what <(foo) resolved to, just run "foo"
<abathur>
<3 lovesegfault
<{^_^}>
lovesegfault's karma got increased to 29
<matthewcroughan>
I was thinking that, but wasn't quite sure, thanks. ex-parrot
<keithy[m]>
*
<keithy[m]>
* .
<matthewcroughan>
Ah okay, so what's the difference between <() and $() ?
<ex-parrot>
it's slightly more complicated because it indirects through a pipe, substitutes the parameter for a file path to a file descriptor, then expects the program to open that file descriptor as a file and read from it
<ex-parrot>
but I'm failing at how to explain that more succinctly
<matthewcroughan>
I think I've always been using a subshell incorrectly, and for this purpose often
<ex-parrot>
$() substitutes the stdout from the program direct, <() does it through a file
<ex-parrot>
so if you have a program which expects to read from a file, you need to use <()
<keithy[m]>
The readmes say "here are my configuration.nix files and there is not file configuration.nix in the repo
<matthewcroughan>
no way, I never understood this, thank you
<ex-parrot>
and if you had a program which expects a value on its command line you need $()
<ex-parrot>
phew, I'm glad we got there :P
<clever>
ex-parrot: you may also want "$(foo)" or newlines and spaces get messed up
<keithy[m]>
I just want to know how to use a siple nixFilesIn function in my configuration.nix
<matthewcroughan>
right, so <() is returning a file, in all cases
<ex-parrot>
clever: true
<ex-parrot>
matthewcroughan: right
<matthewcroughan>
which is why clever is suggesting I need to get it into a file somehow
<matthewcroughan>
so can I just cat it instead?
<matthewcroughan>
yes I can :D
<clever>
matthewcroughan: if you want to see the contents, just `foo` by itself
<ex-parrot>
you don't need to, if you're running in a root shell you can just run the command as-is
<clever>
dont bother writing it to a file
<matthewcroughan>
That is so interesting. I didn't realise you could substitute a filename for whatever this is. You're calling it a file descriptor?
<eadwu[m]>
abathur: You can use `extraPostFetch` or `postFetch` as an attr depending on whether or not you use `fetchSubmodules`
<clever>
morgrimm: if you look in /nix/var/nix/profiles/system-42-link/firmware you can also see how the firmware looked in past generations
<eadwu[m]>
Took a while to find
<morgrimm>
clever: No, and udev wasn't able to pull down suitable firmware inside the min/max range for the chip either
<keithy[m]>
did any of my previous messages get through?
<ex-parrot>
keithy[m]: yeah, I saw you asking about nixFilesIn several times
<clever>
morgrimm: check older generations to see if they have the file you need
chagra_ has quit [Ping timeout: 258 seconds]
<morgrimm>
Good tip, will do that now
<keithy[m]>
ok, I went off to nickserve identify
<keithy[m]>
incase that was the problem
<EdLin>
is nixos-rebuild switch --upgrade the normal way to keep your system up to date?
<clever>
EdLin: that will update to whatever is latest for your channel, but not change the channel
hlisp has quit [Ping timeout: 246 seconds]
<EdLin>
clever: what do you mean?
hlisp has joined #nixos
<matthewcroughan>
"for the pid doing the read" What, the process I'm running interactively at the time/moment?
<matthewcroughan>
aka the last run process?
chagra_ has joined #nixos
<clever>
matthewcroughan: whichever process is trying to read /proc/self/
<EdLin>
do you mean release vs unstable?
<clever>
EdLin: yeah
<EdLin>
I believe I'm running unstable, my nixos file still says 20.03 or whatever though, is that OK?
<clever>
EdLin: `sudo nix-channel --list` to see which channel your on, and
<clever>
,stateVersion EdLin
<{^_^}>
EdLin: Changing stateVersion doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you need to change stateVersion for some odd reason regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value
<abathur>
eadwu[m]: Guessing you mean something like (extra)postFetch=''rm stuff I don't need''; ?
Fare has quit [Ping timeout: 272 seconds]
<morgrimm>
clever: so it looks like they do, and it looks like my current system firmware dir is actually entirely empty lmao
<morgrimm>
for my current gen
<morgrimm>
how does that even happen
<matthewcroughan>
clever ex-parrot you've been incredibly helpful and taught me some new things. My power level has increased.
<clever>
morgrimm: try one of these options like enableAllFirmware and see what happens
<clever>
morgrimm: if you know which file you need, you can also add it to hardware.firmware with the right pkg
<matthewcroughan>
No problem whatsoever ex-parrot
Fare has joined #nixos
<morgrimm>
So specifically I need an iwlwifi ucode blob, I know which one - and I added the iwlwifi kernel module hoping it would automatically pull it down
<morgrimm>
it did in earlier generations
<abathur>
<3 matthewcroughan clever ex-parrot can I do these all at once, or do they have to be separate?
<{^_^}>
matthewcroughan's karma got increased to 1
slack1256 has quit [Remote host closed the connection]
<energizer>
clever: i have a remote machine running nix but not nixos. i want to convert it to nixos. i dont have physical access atm. how risky would it be to try to convert it with your script, in terms of probability i lose access and have to grovel for somebody to unlock a bunch of doors for me?
<morgrimm>
clever: Is there a way to tell which package specific firmware came from?
<clever>
morgrimm: if you run ls -lh on the firmware from an old generation, youll get the derivation name
<clever>
morgrimm: then just search nixpkgs for that name
<clever>
energizer: kexec itself is relatively low risk, it rarely crashes, and even if you lock yourself out, the default config will reboot the machine at the end of the hour, restoring the original OS
<clever>
morgrimm: both enableAllFirmware and enableRedistributableFirmware will include that
<energizer>
dxtr: i think the question is installed into what
<morgrimm>
Beauty, thanks - not sure why that changed between gens. My hardward config didn't
<clever>
morgrimm: you can also be cheap and manually put only firmwareLinuxNonfree into hardware.firmware, if you dont want the rest
<energizer>
clever: i think i'd better not then :-)
<morgrimm>
Is one really better than the other? :P
<clever>
morgrimm: more a question of how much non-free code you want to pull in and never actually use
<energizer>
clever: is there a way to make the "formatting and post-formatting" portion of the installer more declarative and foolproof?
<morgrimm>
Very good point
<matthewcroughan>
ex-parrot `parted /dev/sda -- mklabel gpt` what does the -- actually do? Is that part of bash? I've always taken commands like this for granted.
<clever>
energizer: justdoit.nix
<clever>
energizer: which is included in the kexec image, but you need to configure it righ before you make the tar
<energizer>
clever: does it have a `test` command?
<clever>
energizer: nope
<ex-parrot>
matthewcroughan: the -- is convention to mean "anything after here is not an option flag"
turona has quit [Ping timeout: 246 seconds]
<ex-parrot>
it's just implemented per-application but it's quite common
<energizer>
ex-parrot: it's in the posix spec
<ex-parrot>
e.g. if you needed to grep for the literal string "-R" without grep interpreting it as you requesting recursion you could do grep -- "-R"
<ex-parrot>
energizer: true, but a lot of stuff doesn't implement it :P
<ex-parrot>
I guess the point I was trying to make is it's implemented in the application not in the shell
<energizer>
yep
<energizer>
clever: could it gain one?
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
<dxtr>
energizer: Well, my questions are really: A) Can I refer to it with pkgs.mypackage from my configuration.nix and B) Is it safe to make a systemd unit for it or will it eventually get wiped by, for example, nix-collect-garbage?
turona has joined #nixos
spacefrogg has joined #nixos
<clever>
energizer: not easily, because you have to boot the real hw and format things to test it all
<clever>
energizer: the mst you could do, is check what the root device is, against your config, and then stop before you continue
<energizer>
dxtr: A) no B) it wont get collected but dont do it that way
<dxtr>
So what would be the proper way to make sure a package that isn't in any channels is properly installed?
<energizer>
clever: alright
<energizer>
dxtr: add it to an overlay
<mpiechotka>
Hmm. I give up. How to add a build flag to package in configuration.nix
<clever>
energizer: so its more suited for non-nixos stuff
<numkem>
I've been going around in circles for a while but I think I understand a lot more about the language now. Yet I'm getting to the point where I'm trying to pass a package as an attribute to a function that I import in the `imports` block. yet I get an error that says the option (of the same name as the attribute) does not exists
<numkem>
energizer: error is `error: The option `consul' defined in `/home/numkem/src/nixops/deployments.nix' does not exist.`
<mpiechotka>
pie_: In general or in nix?
<pie_>
mpiechotka: your username seems familiar so i might have asked you before but i dont remembet x)
<pie_>
mpiechotka: in nix
<mpiechotka>
pie_: No
<pie_>
yeah so nix repl is a thing
hlisp has quit [Ping timeout: 264 seconds]
<pie_>
i mean `nix repl` the command
<mpiechotka>
pie_: I was involved in both Haskell and Gnome so you might recognize the username from there?
<pie_>
dunno pobably haskell
<pie_>
anyway the module system is different but if its just the language you can play with it from the repl (modulo some rough edges)
<pie_>
you can also invoke the module system from there but idk how to do that off the top of my heda
* mpiechotka
tries to reboot system and see if it works
mpiechotka has quit [Quit: mpiechotka]
<pie_>
should tell him about the vm infra so he doesnt have to reboot irc :p
<pie_>
,tell
<{^_^}>
Use `,tell john Remember to do the laundry` to send this to john next time he's talking in this channel
proofofkeags has quit [Remote host closed the connection]
<energizer>
numkem: im not sure
mpiechotka has joined #nixos
<numkem>
energizer: I'm still a newbie but reading the manual and pills tells me that it should work, assuming you can do it in nixops
<pie_>
,tell mpiechotka we also have infrastructure for testing stuff in a VM / qemu, so you dont hav eto reboot for everytihng (helps if you have good performance though). I migrated a machine across disks using the VM testing and booting a vm off the copied drive once - almost worked flawlessly but i messed up something with zfs, cant remmeber :P
<{^_^}>
pie_: I'll pass that on to mpiechotka
<energizer>
numkem: could be. there are experts here right now but i'm not one of them :)
<pie_>
oops youre back
<pie_>
anyway yeah
<numkem>
energizer: thanks for your help :)
<pie_>
numkem: since youre making a gist anyway you could have pasted the traceback too :P
mpiechotka has quit [Remote host closed the connection]
<numkem>
pie_: I've edited it to have the error and full stacktrace
<pie_>
numkem: wht are you passing consul and ip as arguments to the module?
<pie_>
im not saying its wrong but i dont think ive seen that
<numkem>
pie_: deployment.nix L24
<matthewcroughan>
168M, wow, that really is something lol
<pie_>
numkem: doh, misread
hlisp has joined #nixos
<numkem>
pie_: wasn't sure if I was doing it right
<pie_>
numkem: ok im not sure calling it like that is right either
<numkem>
pie_: is it even possible? I'd like to have the function be callable with different ip at the very least, as it would be used by many hosts
<pie_>
numkem: can you pass --show-trace
<pie_>
numkem: what you probaly want is {lib, ...}: {ip, consul}: ...
<keithy[m]>
so the timer script doesnt even have which
<pie_>
but im not 100% sure, you can give it a shot though
mpiechotka has joined #nixos
<mpiechotka>
pie_: Still got the message before reboot. Thanks
<{^_^}>
mpiechotka: 4 minutes, 49 seconds ago <pie_> we also have infrastructure for testing stuff in a VM / qemu, so you dont hav eto reboot for everytihng (helps if you have good performance though). I migrated a machine across disks using the VM testing and booting a vm off the copied drive once - almost worked flawlessly but i messed up something with zfs, cant remmeber :P
<pie_>
keithy[m]: you are aware how nixos generally does not make anything availible by default?
<keithy[m]>
yes
<keithy[m]>
but a clue as to how to make anything avialbel would be nice
<numkem>
pie_: doing last thing you said gave: error: value is a function while a set was expected, at /nix/store/xx6fdjvlsb8y7h391hhizln431b06jww-nixexprs.tar.xz/lib/modules.nix:195:27
<pie_>
though i think i saw things about systemd being screwy-er than usual, not sure whats up with that these days
<pie_>
numkem: just realized osmeting else
<pie_>
numkem: this is a list
<pie_>
numkem: i can leave it at that and leave you pondering, or i can just tell you my next best guess at the answer
<numkem>
pie_: consul should be a package, ip should be a string
<keithy[m]>
Surely it wouldnt kill to have a non trival timer example out there somewher?
<mpiechotka>
clever: It seems that gdm still uses the upstream mutter
<pie_>
keithy[m]: fwiw i highly recommend scouring nixpkgs for existing examples of things (though they may not all be great)
<keithy[m]>
The only timer examples seem to use echo, and they work
<pie_>
keithy[m]: look at somethin that isnt specificlal about timer and gives you access to other packages
<numkem>
pie_: I'm all ears
<keithy[m]>
honestly im pssin in the wind
<pie_>
keithy[m]: though a lot of them will probably just explicitly refer to the script via ${thingname}/bin/whatever
<mpiechotka>
clever: I need to at least substitute /nix/store/sacgxhnwdbj1hcxyrbrnicgxa4ghks6l-gdm-3.34.1/bin/gdm as well I guess?
matthewcroughan has quit [Ping timeout: 245 seconds]
<pie_>
but im just guesisng here since i dont have it open in front of my and i generally avoid poking at systemd because i havent learned it yet
<keithy[m]>
see I dont understand anything anyone saysa ournd here
<pie_>
thats fine, it takes a while
<mpiechotka>
pie_: I don't think VM will help with HW configuration issues though.
<keithy[m]>
and I watched all nine ours of nixonc
<keithy[m]>
* and I watched all nine ours of nixcon
<pie_>
clever: i was attemptin to illustrate but it didnt go well x)
<pie_>
keithy[m]: do you know how PATH works
<keithy[m]>
yes
<pie_>
keithy[m]: well, the problem is `which` isnt in PATH
verdys has joined #nixos
<mpiechotka>
clever: Hmm. Let me dig into this
<pie_>
i can throw some bits and pieces at you but i dont know how to solve it all without more work so it helps if you can work on connecting the dots
<pie_>
i know, thats not ideal
<keithy[m]>
sorry if im ratty, but I have been asking q's here for hours and you are the first person to answer me
<pie_>
well, the channel is kinda high traffic these days
<pie_>
well, if youll tolerate me being a bit ratty in return :P
hlisp has quit [Ping timeout: 256 seconds]
<keithy[m]>
so echo $PATH works
<pie_>
so anyway the answer to your quesiton is the answer to "how do i find a program" 1) have it in path 2) refer to it manually
<pie_>
the answer to 2) is to get the path from nix, usually statically at build time by substituting an expresison
<pie_>
keithy[m]: somethng you can test is working with nix-shell --pure somescript.nix
<pie_>
numkem: didnt forget about you, hold on
<numkem>
pie_: I've still got my ticket :P
<pie_>
keithy[m]: --pure does some stuff to make it so that the shell you end up in is in a way clean, so stuff like PATH will also be clean, i.e. no access to which and such
<pie_>
> let f = s: s.a + 1 ; in builtins.map (v: "${v}") [ 1 2 3 4 f { a = 1; } ]
<keithy[m]>
the file requires a { config, pkgs, lib, ... }: at the top?
<pie_>
ok nevermind about those things im > -ing
<pie_>
numkem: basically you need parentheses around function invocations in a list because lists dont use commas, make sense?
<pie_>
i can expand more if no
morgrimm has joined #nixos
<pie_>
keithy[m]: thats for modules. `args@{a, b, c, ...}: stuff` is in general a function. the module system has a calling convention. packages have a different one where you use .callPackage nixfile.nix {otherargs} to pass arguments to {thing1, thing2}: ...
<pie_>
note callPackages implicitly passes everythng in the top level package set
<pie_>
and the {} you pass to callpackage is for extra arguments
davidv7 has quit [Ping timeout: 260 seconds]
<fling>
Is there an lxd image?
<keithy[m]>
so... I am ready to try something in shell-nix --pure text.nix
<numkem>
pie_: ok that makes sense as you want it to be executed rather than just copied over (if I understand how import really works). So I tried doing imports = [ (./consul.nix { [...] }) which failed so can you do it through the imports?
Ralith_ has quit [Remote host closed the connection]
<pie_>
numkem: no i mean xD sorry my bad
<ldlework>
Ashy: there are little glitch artifacts everywhere
<pie_>
numkem: you have to do [ ./path1 ./path2 (import ./path3 {stuff}) ]
Ralith_ has joined #nixos
<clever>
numkem: though you probably just want `imports = [ ./path1 ./path2 ./path3 ];` and define more options, dont mix them into the args like that
<pie_>
numkem: whats probably happening there, though you could check the source, is something like map (v: if isPath then ... else isFunction ...) over { imports = [ stuff ] }
<ldlework>
It's happening all over.
<numkem>
pie_: clever: I wanna be mad because of how dumb this was but it's working so I'm happy :)
<pie_>
numkem: ikr , but after doing that a few times you remember xD
<ldlework>
Is it because I'm not running a compositor?
morgrimm has quit [Ping timeout: 272 seconds]
<numkem>
I was using clever repo as a reference and he got nothing like that so I was rather stuck
<clever>
ldlework: connection timed out
<ldlework>
hmm should be working
<ldlework>
refresh?
<numkem>
pie_: thank you! pie_++
<{^_^}>
pie_'s karma got increased to 0o10
<pie_>
ldlework: wow that looks kinda nice is that gnome or what
<ldlework>
it's just qtile
<numkem>
seems like the karma thing is useless?
<ldlework>
but you see the glitching artifacts right?
<ldlework>
this happened when I upgraded to unstable :(
<keithy[m]>
That looks like my level
<cole-h>
numkem: So what if it's useless? It's fun :)
<pie_>
numkem: i think it just got some $fun added to it, not sure tho
<energizer>
ldlework: i dont see artifacts
<clever>
ldlework: it worked on the 2nd attempt, i dont see any glitching at all
<ldlework>
what are you guys talking about
<clever>
ldlework: it might be a problem between your GPU and the monitor?
<ldlework>
look at the completion in chrome
<ldlework>
the white bits
<ldlework>
it happens in the video
<numkem>
cole-h: useless in the sense of keeping count, I like to be appreciative :)
<ldlework>
lol
<clever>
ldlework: it looks completely normal to me
<energizer>
ldlework: take a screenshot and draw an arrow or something
<mpiechotka>
clever_: I seems to have 2 mutter installed after nix-collect-garbage and 4 unit-display-manager. Which decideds which one is actually used?
<clever>
mpiechotka: when you boot, the systemConfig= in the bootloader config says where to start
<clever>
mpiechotka: that then gets symlinked to /run/current-system/
hlisp has quit [Ping timeout: 260 seconds]
<clever>
mpiechotka: and /run/current-system/etc/ gets mapped/linked into /etc, where /etc/systemd/system/ then controls which display-managaer.service is used
<energizer>
ldlework: just linking in case it's helpful, i dont have insight
<ldlework>
ah ok
<mpiechotka>
clever Thanks for confirmation. Digging more
<ldlework>
Well it does say that Bumblebee is deprecated.
<ldlework>
Maybe that's it.
<ex-parrot>
ok I'm read to submit a PR on the powerdns service in NixOS, does anyone want to have a glance over it first?
<ex-parrot>
I've done a few things... moved it from using a big string for config to key / value, moved from "nobody" to a dedicated daemon user, fixed the CLI tools, updated the systemd unit to reflect current state of upstream
<ex-parrot>
I believe it should work almost the same on upgrade except the user will change from nobody to pdns
<clever>
mpiechotka: you can also run `nix-store --query --deriver /nix/store/97bywhzi2y48h65a3m1lajfvgwqdgygy-mutter-3.34.5` and then run `nix show-derivation` on that drv file
<clever>
mpiechotka: that should show the modified mesonFlags
<ex-parrot>
but hopefully that doesn't break anything since you shojldn't have had files owned by nobody anyway
<pie_>
keithy[m]: i just googled for nixos systemd service path or somethin like that
dsiypl4_ has joined #nixos
<pie_>
keithy[m]: the description fields?
<keithy[m]>
yes
<pie_>
well, its documentation
<keithy[m]>
or are they simply pseudo comments in that file
<samueldr>
keithy[m]: broken how? seems to work fine on my end
<ex-parrot>
just working through the PR requirements at the moment
<keithy[m]>
it doesnt update
<samueldr>
what do you mean? stays empty with "Loading..."? Doesn't get new options added to master/unstable ?
<keithy[m]>
ill shift refresh..
<ex-parrot>
pistache: the "disabling chroot" thing might be a bit of an issue w.r.t breaking existing setups, I'm not sure how breakage tolerant people are on NixOS
<keithy[m]>
its not updating when youtype
<samueldr>
hm, weird
<keithy[m]>
chrome is opening a whole new world
hlisp has joined #nixos
<pistache>
ex-parrot: I'm more scared of the change from extraConfig to config
<ex-parrot>
mm
<pistache>
I think it's a good thing, but the way it's done currently it will break some existing setups
morgrimm has quit [Ping timeout: 264 seconds]
<ex-parrot>
the only impact it should have is adding a "launch=bind" to existing setups
<ex-parrot>
which iirc does essentially nothing
<ex-parrot>
if you don't have further bind config in place
<pistache>
ah, yes, you're right
<ex-parrot>
but I will confirm that too, one sec
<pistache>
ok, if it's a no-op if there's no further config then it may not be a problem
<ex-parrot>
hmm it maybe isn't so good
<ex-parrot>
you can launch multiple backends but they need to be in the same launch command
<ex-parrot>
otherwise whichever one comes last just "wins"
<ex-parrot>
by the look of it
sigmundv_ has quit [Ping timeout: 260 seconds]
<pistache>
if extraConfig is appended, shouldn't it be fine then ?
<ex-parrot>
I'm just confirming that
<ldlework>
nvidia offload mode does not work in 20.09
<ex-parrot>
pistache: yeah that does seem to be how it works
hlisp has quit [Ping timeout: 246 seconds]
<ex-parrot>
it might be better to make the presence of launch= in the default dependent on whether "^launch=" is in the extraConfig though?
<ex-parrot>
at least for a while
hlisp has joined #nixos
<pistache>
you could also make config default to null when extraConfig is not null
<ex-parrot>
ah yes, that seems even cleaner
<ex-parrot>
I'll do that
<ex-parrot>
presumably anyone with an existing extraConfig has everything in it they need for a working install
<pistache>
yes
<ex-parrot>
I just realised I left the "disable ..." line in too
<ex-parrot>
from testing
<pistache>
oh right, I missed that
<ex-parrot>
I think I'll make the default be [] if extraconfig is set, that way the type checking doesn't need to ever allow a null
<ex-parrot>
er {}
<pistache>
ex-parrot: no need to provide an example that is the same as the default value
<ex-parrot>
ok
<ex-parrot>
what about the conditional default though?
<ldlework>
eadwu[m]: Hello are you around?
<pistache>
ex-parrot: ah right, I'm not sure what to do in that case
<ex-parrot>
I'll PR it with the example for now I guess
<pistache>
I'll try to look in nixpkgs for existing conditional defaults
<ex-parrot>
thanks
<ex-parrot>
I'm doing the same :P
Fare has quit [Ping timeout: 260 seconds]
<ex-parrot>
or I could just provide a more useful example tbh
<bqv>
folks, what should i reply to this? I'm so close to telling him to do it himself if he thinks there's a better way, which is very passive aggressive, but i'm genuinely not sure how to not be passive-aggressive at this point. https://github.com/NixOS/nixpkgs/pull/85463#discussion_r422470199
<bqv>
in fact, seriously, would someone like to just take that PR off my hands? it's not worth the stress
<ircuser5678>
Hi. Is something wrong with the sshd service? I've added a RSA public key to my users.users.<my username>.openssh.authorizedKeys.keys entry (generated by putty on windows) but when I try to login it refuses the key. I'm using the correct private key file in putty, though...
<energizer>
ircuser5678: did you `nixos-rebuild switch`?
<ex-parrot>
also check that your public key starts "ssh-rsa ..." and not the PuTTY default format
<ircuser5678>
energizer: no, 'nixos-rebuild test'
<ircuser5678>
energizer: and yes, my key is a single line one with no line breaks and it starts with "ssh-rsa AA..."
<ex-parrot>
you can check if it placed the contents in to /etc/ssh/authorized_keys.d/<username>
verdys has quit [Quit: Konversation terminated!]
<ircuser5678>
ex-parrot: Mh, no, it didn't. I don't even have the authorized_keys.d subfolder
<ex-parrot>
ok well... that's probably why it's not working :P but why it hasn't built that directory I don't know
<ircuser5678>
well. me neither...
<JJJollyjim>
is your user defined in users.users?
<JJJollyjim>
it looks like only those users get their authorized keys added
<JJJollyjim>
for some reason
<ircuser5678>
JJJollyjim: Sure, I've set this up via users.users.<my username> = { isNormalUser = true; ... openssh.authorizedKeys.keys = [ "ssh-rsa AAA..." ]; };
hlisp has quit [Ping timeout: 272 seconds]
<JJJollyjim>
oh right yeah that's how it works ignore me
hlisp has joined #nixos
h0m1 has quit [Quit: WeeChat 2.8]
h0m1 has joined #nixos
quinn has joined #nixos
tmaekawa has joined #nixos
Heirlung has quit [Read error: Connection reset by peer]
Heirlung- has joined #nixos
Heirlung- is now known as Heirlung
hlisp has quit [Remote host closed the connection]
pjt_014 has quit [Ping timeout: 260 seconds]
virus_dave has joined #nixos
alexherbo2 has joined #nixos
knupfer has joined #nixos
hlisp has joined #nixos
<fps>
hmm, i'm trying to use nix-shell to compile and run a xonotic git checkout locally. i'm mostly successfull by using nix-shell -p [long list of packages
<fps>
]. the one thing missing though is i need to enable the build to load libcurl.so at runtime. and for this i need the path in the store of the curl package
<fps>
how can i find this path? if i used a default.nix or shell.nix i could use the shellHook attribute i guess. but i just use -p
<fps>
oh pkg-config works i guess :)
cole-h has quit [Quit: Goodbye]
<clever>
fps: make a default.nix that contains: with import <nixpkgs> {}; stdenv.mkDerivation { name = "name"; buildInputs = [ long list of packages ]; }
<clever>
fps: then you can just run nix-shell with no args, to get those packages again
awepfijas has joined #nixos
CMCDragonkai2 has joined #nixos
<fps>
clever: yeah, the problem with that is that the build scripts are rather aggressive in deleting things upon running the clean target. but i guess i can put the derivation on level higher in the fs hierarchy
<fps>
s/on/one/
<clever>
fps: i also try to avoid putting any source in the root dir of the repo, because it complicates `src = ./.;` you will want later
Darkmatter66 has joined #nixos
<clever>
fps: if you add `src = ./.;` to that file, and run nix-build, it will copy whatever is in ./. to the nix store, and then build from that copy of the source
<clever>
fps: but, if that . is the root of your repo, it also includes .git and default.nix, so even doing `git fetch` will change the "source" without changing any source files, and nix will want to build again
<awepfijas>
I built a nixos config and then manually switched to it via the switch-to-configuration. Also, I used nix-env to create a symlink to that new derivation in /nix/var/nix/profiles/system, however, on reboot, it always reverts back to the older derivation/config. Where do I have to set the config I want to boot too if i'm trying to replicate what
<awepfijas>
nix-rebuild switch does manually?
Darkmatter66_ has quit [Ping timeout: 260 seconds]
<fps>
clever: yeah, makes sense
<clever>
fps: instead, doing `src = ./app;`, it will filter things better, and rebuild less often, only when the contents of app changes
<clever>
awepfijas: was /boot mounted when you ran switch?
<fps>
clever: thanks
ilikeheaps has quit [Ping timeout: 260 seconds]
<awepfijas>
yes, the system was in completely running state and everything
ilikeheaps has joined #nixos
<awepfijas>
basically just used `sudo $(realpath result/bin/switch-to-configuration) switch`
<clever>
awepfijas: double-check that you have the right fs mounted to /boot/, that kind of issue usually happens if it isnt mounted
<clever>
awepfijas: no need for the realpath there, symlinks will be followed automatically
<clever>
fps: line 31-38 builds a libcommon.a, for both arm and vc4
<clever>
fps: lines 70-84 builds the arm chainloader for arm
<clever>
fps: and lines 93-118 build a bootcode.bin for the rpi, using a vc4 cross-compiler, and line 101 copies the arm build of the chainloader into the right path before building
<{^_^}>
[nixpkgs] @FRidh pushed 3 commits to python-unstable: https://git.io/JfWZA
<awepfijas>
clever: as far as I can tell, /boot is mounted, fs is vfat. I can send my config that I'm using if that might help?
<clever>
awepfijas: are you booting with efi or legacy?
<balsoft>
awepfijas: I think you need to `nix-env` your system first, and then switch
tmaekawa has quit [Quit: tmaekawa]
<clever>
balsoft: the nix-env step is mostly just to stop garbage collection from eating it, the switch is all that is needed to make it the default at boot
<balsoft>
clever: ah, yes, right, I forgot that switch actually does do `boot`
<balsoft>
Hmm, interesting, when I did it manually it required a `nix-env` first then switch
<awepfijas>
i ran the switch command again and it seemed to work this time in actually changing the boot config.
iyzsong has quit [Ping timeout: 260 seconds]
<awepfijas>
Yeah I'm not sure what I did differently, I'll ask again later if this issue pops up again. I'm basically trying to homebrew a replacement for nix-rebuild switch using a centralized build server and its going about as well as you would expect it to go for someone who has close to 0 experience with nix
leward[m] has joined #nixos
zannzen[m] has joined #nixos
mauamy[m] has joined #nixos
chloekek has joined #nixos
<clever>
awepfijas: whats wrong with nixops?
iyzsong has joined #nixos
<awepfijas>
I really dislike the way that nixchannels and nixpkgs pinning and stuff works, so I wanted to use flakes, however afaik, nixops doesn't work with flakes (might be very mistaken on that)
<clever>
awepfijas: currently, that includes an `import <nixpkgs>`, so you would need to `-I nixpkgs=something`
<clever>
awepfijas: but if you do `nixops modify -d name foo.nix -I nixpkgs=something`, it gets saved into the nixops state file, and will affect all future deployments
<clever>
awepfijas: and if your managing baremetal machines (or stuff manually provisioned elsehwere), your foo.nix can be this simple
<clever>
awepfijas: lines 12 and 16 tell it what IP to ssh into when you deploy, nas.nix and router.nix then function the same way as the configuration.nix youve been building manually
lord| has joined #nixos
<ldlework>
clever: can you try something for me real quick? can you install "sunvox" and tell me if it crashes on open (if you're running unstable)
<clever>
ldlework: ive not updated my channel in a few months
ircuser5678 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<rooke>
I've tried deleting every mention of jszip I could find just to try and force it to work, it was only present in generated files, but it showed up again
<{^_^}>
[nixpkgs] @FRidh pushed 5 commits to python-unstable: https://git.io/JfWn4
<clever>
ldlework: is sunvox a 32bit or 64bit binary?
mallox has joined #nixos
<energizer>
i got a hash mismatch for sunvox on nixos-unstable
mallox has quit [Client Quit]
<clever>
ldlework: ah, probably not the arch, its listing 2 libasound_module_pcm_pulse.so's because its trying both the 64bit and 32bit ones
<clever>
and its now 5am here, i should get to bed
<ldlework>
energizer: yeah I fixed that locally with an override
orivej has joined #nixos
<energizer>
how does a hash mismatch even get into nixos-unstable?
<clever>
energizer: upstream could have changed things after it got in
<evils>
balsoft: my shell.nix takes `pkgs ? import <channel-name> {}`; when i use your suggestion it fails with "file 'channel-name' was not found in the nix search path"
<balsoft>
Ah
<{^_^}>
[nixpkgs] @FRidh pushed to python-unstable « pythonPackages.line_profiler: mark as broken »: https://git.io/JfWcI
<balsoft>
Then just NIX_PATH=channel-name=/path/to/local/nixpkgs nix-shell ... , simple
iyzsong has joined #nixos
yuken has left #nixos ["Leaving"]
<evils>
balsoft: ah, then i prefer the format `nix-shell -I nixos-unstable-small=. my-shell.nix` balsoft++
<{^_^}>
balsoft's karma got increased to 4
<balsoft>
evils: ^
<balsoft>
evils: Yes, that works too :)
<evils>
:( gnat10 also fails to work for building coreboot
dnlkrgr has joined #nixos
<balsoft>
evils: What are you trying to coreboot? If it's somehow related to 51nb we might be on the same page soon
<evils>
balsoft: dunno what `51nb` is, i'm trying to build coreboot for my thinkpad t410, it's failing on building its own gcc saying "GNAT is required to build ada", but this is after not failing to find `gnat` xD
asbachb has joined #nixos
<balsoft>
51nb is a forum that makes custom thinkpad mobos
<evils>
wow
<balsoft>
I'm waiting for my X2100 (i7-10610u in X210 chassis) to be assembled by a reseller and sent to me, I'm planning on corebooting it :)
<balsoft>
evils: maybe try another GNAT version?
justanotheruser has quit [Ping timeout: 256 seconds]
<evils>
balsoft: i tried all, hence my attempt at running my coreboot shell from master since gnat10 just got merged
<balsoft>
BTW if you succeed, please let me know, I might practice on my T420 before bricking the rather expensive custom-made mobo
justanotheruser has joined #nixos
<balsoft>
Oh, you're just running from master? You don't need a local checkout for that
<balsoft>
Just NIX_PATH=channel-name=https://github.com/nixos/nixpkgs/archive/master.tar.gz
<evils>
was wondering about that as well, but i've often got stuff going from a local checkout so that seems like the more useful know-how
<balsoft>
(Or nix-shell -I channel-name=...)
<balsoft>
Can you share your expression for building it?
<evils>
atm it's just the set of build dependencies; getting stuck on the "it's not finding GNAT" thing, or "no config available" if i go the "actually a package" route
alp has quit [Ping timeout: 246 seconds]
asheshambasta has joined #nixos
<evils>
so far the build inputs i think i need are `m4 bison flex zlib gmp libmpc mpfr isl gnat curl git ncurses gcc`
<balsoft>
Maybe the instructions on wiki are for older coreboots
<evils>
maybe, i just saw there's a GSoC 2020 project for making coreboot work with clang...
datakurre has quit [Ping timeout: 272 seconds]
<balsoft>
That sounds like something RMS would hate... Non-free version of libreboot, built by an non-GPL-licensed toolchain...
Vikingman has quit [Ping timeout: 245 seconds]
<evils>
luckily we still have that freedom
alexherbo2 has quit [Ping timeout: 264 seconds]
dermetfan has joined #nixos
<balsoft>
Yeah, while I respect RMS and what he stands for, unfortunately his views are hardly compatible with modern IT. "Free or nothing" will usually be "nothing".
<balsoft>
That said, I still have config.allowUnfree = false in my config
datakurre has joined #nixos
<evils>
unfortunately i had to set that to true to do some good in the world
<evils>
or use my computer as an electric space heater, depending on your view (foldingathome)
dozn has quit [Quit: I'm probably just changing some settings or have had an outage, I'll be back soon.]
turlando has quit [Remote host closed the connection]
dozn has joined #nixos
<balsoft>
BTW apparently foldingathome is going FOSS soon
turlando has joined #nixos
<evils>
not soon enough :P
<evils>
btw, you wouldn't happen to have tried the memtest86+ (bios version) currently in nipkgs? (i've got a PR open for it, #85790, and haven't found anyone using it successfully)
hlisp has quit [Remote host closed the connection]
<Aleksejs_Home>
hello, is it possible to roll back to 19.09? 20.03 is soooo broken
o1lo01ol1o has quit [Ping timeout: 256 seconds]
hlisp has joined #nixos
<infinisil>
Aleksejs_Home: What's not working?
<balsoft>
Aleksejs_Home: I'd recommend taking the bits that are not working from 19.09
<balsoft>
And the rest from 20.03
<balsoft>
Because using old versions of stuff has security implications
<Aleksejs_Home>
many things. logind lid switch doesn't work anymore; i3 has some new annoying bug - it won't open terminals in new workspace if already opened in some other workspace; These are the most annoying ones
<balsoft>
logind works for me on unstablew
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Aleksejs_Home>
when I close lid, it does not go to sleep but opens xfce display settings
<balsoft>
Sounds like you just need some configurations is all
<symphorien>
(you can also access this settings and the related ones with xfce4-settings-editor
<symphorien>
)
zupo has joined #nixos
c0c0 has joined #nixos
dsg has quit [Remote host closed the connection]
zupo has quit [Client Quit]
zupo has joined #nixos
alp has quit [Ping timeout: 272 seconds]
opthomasprime has left #nixos [#nixos]
alexherbo2 has joined #nixos
zupo has quit [Client Quit]
<bqv>
adisbladis: thats funny. I saw "doas" in scrollback and decided to try it out. Came back to suggest a nixos module for it, then realised that was what I spotted in scrollback
<betawaffle>
there's a keyboard shortcut that works in sway (and probably other place), but it isn't defined in my config. where can i look to find where it might be configured?
<betawaffle>
places*
o1lo01ol1o has joined #nixos
<balsoft>
Which shortcut exactly?
<betawaffle>
in this case, ctrl+alt+<function key>
<balsoft>
Umm, that't a good question, I don't know
<betawaffle>
i want to know where that key is bound, how it can be changed, and what other things might be bound
<asbachb>
Any ideas what might cause the message: error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused (running inside a container)
fendor has joined #nixos
<balsoft>
asbachb: You need to systemctl restart nix-daemon , it
<balsoft>
it's a known issue
<balsoft>
Oh, running inside a container? That I don't know
<symphorien>
betawaffle: I think it's kernel level
<symphorien>
Just like sysrq
<balsoft>
symphorien: interestingly, I have CAPS remapped to Ctrl and CAPS-Alt-<f2> works for me
<balsoft>
(And ctrl-alt-<f2> doesn't)
<betawaffle>
right, but there are other kernel-level key bindings that are overridden by a graphical environment
<balsoft>
(remapped in sway, with XKB_DEFAULT_LAYOUT)
<betawaffle>
i'm trying to understand how that is controlled
<symphorien>
Oh.. My point was that it works in a tty...
<bdju>
anyone happen to know if the haswell intel gpu situation has improved since kernel 5.3.11? I have to keep going back to 4.19 the last few times I try a newer kernel
<bdju>
(it's not just haswell, but importantly to me includes haswell, and notably there were no issues on sandy bridge)
<Aleksejs_Home>
symphorien: after disabling terminator the bug disappeared. So, it looks like terminator somehow catches i3 bind, but only until I move a split...
<{^_^}>
[nixpkgs] @talyz merged pull request #86614 → php.buildPecl: Make it possible for PECLs to depend on other PECLs, fix apcu_bc and couchbase → https://git.io/Jf37B
<maddo>
ongy[m]: are you the developer of waymonad? If yes, I wanted to ask the state of the project in light of the recent changes to wlroots (VRR and such)
<bqv>
ooh waymonad, that sounds cool
<bqv>
i think i would consider using that, if i weren't married to emacs
<ongy[m]>
maddo: I am. Or was? Haven't done any work on it in nearly 2 years I think. Went from student with too much time, to working 40h/w...
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « gnomeExtensions.clipboard-indicator: 30 -> 34 »: https://git.io/JfW4E
<ongy[m]>
sway
<ongy[m]>
And feel free to pick up the project. I'm still around to help you through the code. And I'd probably contribute, but I can't run it as one-man-show developer
<maddo>
Thank you, I may bother you once this crisis is over, right now I don't have that much free time due to it
<gchristensen>
from the update log, release is: nixos-20.09pre225009.085282aa4ea (build 118714565) -> error: in package ‘php’: this derivation has bad 'meta.outputsToInstall' in generate-programs-index
Streetwalrus has joined #nixos
<LnL>
wait generate index?
<LnL>
I thought about that but doesn't it happen during the build?
<gchristensen>
I don't know if hydra runs it, but the one in the channel is definitely run by nixos-channel-programs
<LnL>
gchristensen: time for some nix ffi in ofborg?
<gchristensen>
oh maybe yeah :x
<emily>
arianvp: never mind, life is pain "The 'serviceConfig' option 'DynamicUser' for service 'acme-dns' is enabled in conjunction with 'confinement.enable'."
<elux>
is there a way to list the pkgs available within "androidenv" ?
noudle has quit []
<emily>
arianvp: hm, the commit that added that assertion documents it as not working at all, but it worked for me...
<emily>
ohhh
<emily>
confinement sets up the mounts imperatively at service startup and that's why / has to be writable? yuck
<arianvp[m]>
Emily I have a WIP pr with fixes for this
<arianvp[m]>
Feel free to pick it up though. Or poke me to pick it up :p
<emily>
but, I don't really understand why you'd take this approach of making a bunch of mutable tmpfses
<emily>
why not just create a static RootDirectory in the nix store?
bqv has joined #nixos
<emily>
I'm not really sure why those directories are needed anyway, BindReadOnlyPaths seems to work even with directories that don't exist in the target filesystem for me
<arianvp[m]>
I'm completely out of the loop again so I don't know
<arianvp[m]>
:')
<emily>
fair enough :p
<emily>
I think I might just write a manual static RootDirectory thing for this service to see how it would work out
<emily>
and see if that can be backported to confinement
<emily>
oof, it's a shame that closureInfo requires a build step
<emily>
arianvp: "Failed to set up mount namespacing: /nix/store/f6dl8jwqigx9ddmhfmlibzk2hjf0p313-acme-dns-root/etc/hosts: No such file or directory", strange
<emily>
is that the symlink thing the confinement module mentions, I wonder...
<emily>
it works without RootDirectory= which is the odd thing
<emily>
I'm not sure why it'd be looking for BindReadOnlyPaths relative to RootDirectory
<arianvp[m]>
There are some quirks and assumptions in systemd source code I remember running into
<arianvp[m]>
Not sure if that's this.
<arianvp[m]>
But systemd is a little insane sometimes
<emily>
it just confuses me because from my understanding of RootDirectory + BindReadOnlyPaths, confinement.enable shouldn't work at all
<emily>
because it should be looking for all these store paths relative to the near-empty RootDirectory
<emily>
going by the behaviour I'm observing
<emily>
maybe it's different if they're in separate unit files?? I would hate that so much
<arianvp[m]>
My idea was to calculate closure of package . Our those in BindReadOnlyPaths and not use Root directory at all
<arianvp[m]>
Use those*
<emily>
yeah
<arianvp[m]>
I'm pretty sure RootDirectory= still makes BindReadOnlyPaths look on the host
<emily>
I have an ulterior motive to set RootDirectory: systemd-analyze security penalizes you for not doing it :'(
<emily>
arianvp: then I really, really don't understand why it'd be looking for /nix/store/f6dl8jwqigx9ddmhfmlibzk2hjf0p313-acme-dns-root/etc/hosts
<arianvp[m]>
Then we patch systemd-analyze
<emily>
that's a simple concatenation of the RootDirectory and the "-/etc/hosts:/etc/hosts" BindReadOnlyPaths entry
<emily>
hm
<arianvp[m]>
:p
<emily>
/etc/hosts is a symlink so I think this might just be choking on symlinks really unhelpfully
wavirc22 has quit [Read error: Connection reset by peer]
wavirc22_ has joined #nixos
<bdju>
Should I have Firefox 76 if I'm on NixOS Unstable? I don't seem to have it yet. "About" says 75.0 still. Also, is there a way to check package versions through Nix? Something like "pacman -Qs" on Arch, maybe.
medvid_ has quit [Ping timeout: 260 seconds]
<b42>
bdju: if it's installed through configuration nix then you can do nix-store -qR /run/current-system | grep firefox
<bdju>
I just tried your command with something in my configuration.nix and it does output what I want, though, so thank you for that. I just have to see if home-manager can do something similar.
<evils>
bdju: the nixos-unstable channel has been stuck for 11 days, the nixpkgs channel has 76, to check versions i usually do something like `nix search -u --json "firefox" | jq`
<evils>
s/to check versions/to check available versions/
<bdju>
Never heard of jq. Seems I don't have it installed. Thanks for the tip, though. I will try that in a second.
<bdju>
Ah, it's for json stuff. Interesting.
<evils>
bdju: jq pretty prints json data if no options are used to query the input
hlisp has joined #nixos
wavirc22_ has quit [Read error: Connection reset by peer]
wavirc22 has joined #nixos
<emily>
76? ouch
<evils>
emily: the nixpkgs channel has firefox version 76, not 76 days of stuckness
<evils>
anyone have an idea why adding `shellHook = " exec zsh ";` to my shell.nix causes an `#include` to fail?
hlisp has joined #nixos
<srk>
maddo: :D I've struggled with that as well, had to add few xmonad like bindings to i3. they work differently though so layouts are probably harder
<maddo>
layouts are the number one reason I prefer Xmonad to i3
<maddo>
I have... nonstandard monitors
<ongy[m]>
maddo: not that I know of. Though I don't mind that much. Since it's still possible to build any layout, just a bit more manual. Though I do miss my greedyView a lot, then again I think that's possible to configure in as well.
<maddo>
(an ultrawide and a 3:2)
<ongy[m]>
I use an 21:9 (3840x1600) at work with i3wm
<srk>
I was forced to use i3 as xmonad on armv7 was no go but it should be fine now, using both is quite confusing
<fps>
drats. pkgs.linuxPackages_rpi4.override doesn't work :)
<fps>
rror: attribute 'override' missing, at ...
<{^_^}>
[nix] @LnL7 opened pull request #3584 → nix-env: add --outputs flag → https://git.io/JfW2i
<ongy[m]>
maddo: but if layouts is all you need, you can take a look at the IPC protocol sway supports. I'm pretty sure it should be possible to do something like that. Navigation would be the sway 2D style though
<craige>
I'm hitting "invalid byte sequence" in a fairly simple Hackyll deploy, There are a _lot_ of olld issues pointing the finger at locale_Archive setting but none of the solutions appear to work, for me. Has anyone else hit this recently and if so, what have been your workarounds?
<maddo>
ongy[m]: since I'm looking to learn haskell anyway, might as well restart your project once I get familiar with wayland as well
<maddo>
who knows, I might make you switch back ;)
<maddo>
(also that logo is absolutely fucking amazing)
hooo has quit []
<ongy[m]>
hehehe. just one tipi: Remove the multi-seat support and move back to proper zippers if you do. It makes stuff more compilcated and isn't necessary. I thought it might be cool for drawing-tablet support, but nope
philr has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @bjornfor merged pull request #87357 → nixos/tests/gitdaemon: fix spurious test failures due to flaky network → https://git.io/JfCVz
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @andir to master « nixos/tests/gitdaemon: fix spurious test failures due to flaky network »: https://git.io/JfW25
<{^_^}>
[nixpkgs] @veprbl pushed commit from @r-ryantm to master « snakemake: 5.15.0 -> 5.16.0 (#87496) »: https://git.io/JfWa3
<balsoft>
evils: cool!
<emily>
arianvp: afaict it never works if you have more than one root path, but even when you do, I don't know why you'd want to exclude the directly referenced package from the bind mounts
<emily>
ohhhh
alexherbo2 has joined #nixos
<emily>
you're excluding the file with the rootPaths itself
orivej has joined #nixos
<emily>
that's confusing :p
<balsoft>
evils: what command did you use to build it (and also, please recommend a coreboot noob some config options for T420/T410 (I assume they're similar))
<eadwu[m]>
ldlework: I should be idling somewhere for the next 12 hours but I'll be here so ping me when you're online
o1lo01ol1o has quit [Remote host closed the connection]
mpiechotka has joined #nixos
<mpiechotka>
Hi. Day 2 of my attempts with nixos - when I try chsh from user it seems to get overriden by the rebuild. When I set shell = in the configuration.nix it breaks the DM. Any ideas?
<mpiechotka>
Yeah. That was it - though I wonder why bash didn't read .profile.
bqv has quit [Ping timeout: 272 seconds]
swapgs has joined #nixos
swapgs has quit [Changing host]
swapgs has joined #nixos
bqv has joined #nixos
o1lo01ol1o has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
<emily>
arianvp: so it turns out that if you set DynamicUser then TemporaryFilesystem = "/:ro" is basically just ignored and everything is terrible. ouch. all the careful path-limiting I was doing was basically a nop
knupfer has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
knupfer has joined #nixos
eoli3n__ has quit [Ping timeout: 246 seconds]
mpiechotka has quit [Quit: mpiechotka]
eoli3n__1 has quit [Ping timeout: 260 seconds]
saimen has joined #nixos
Cale has quit [Ping timeout: 260 seconds]
fendor has quit [Read error: Connection reset by peer]
sarcasticadmin has quit [Ping timeout: 240 seconds]
Mateon1 has quit [Ping timeout: 256 seconds]
mpiechotka has joined #nixos
Mateon1 has joined #nixos
saimen has quit [Quit: WeeChat 2.8]
zeta_0 has joined #nixos
noudle has joined #nixos
zeta_0 has left #nixos [#nixos]
foldingcookie has left #nixos [#nixos]
<mpiechotka>
That's probably a stupid question. I'm organizing /etc/nixos/ and in hardware-configuration.nix it's written not to modify this file as nixos-generate-config can overwrite it. I presume after installation is done it won't be overwritten?
<mpiechotka>
And I can move the entries from there to subfiles.
<clever>
mpiechotka: you can re-run nixos-generate-config to update hardware-configuration.nix
simba1 has joined #nixos
avn has quit [Ping timeout: 272 seconds]
KeiraT has quit [Ping timeout: 240 seconds]
Cale has joined #nixos
KeiraT has joined #nixos
andromeda-galaxy has quit [Ping timeout: 272 seconds]
<matthewcroughan>
So, I'm confused about something. I've always thought of NixOS as allowing me to have portability between systems. In some cases this works, let's say you have two laptops and you want to take your entire config and boot it on there, that works!
wavirc22 has quit [Ping timeout: 264 seconds]
<matthewcroughan>
But in the case of a raspberry pi, I can't just take the configuration.nix from my desktop and boot it on my Pi, what is the recommended thing to do in this case? Do I have to have two separate configuration.nixes for that case? Or is there something I can do with the functional programming that lets me check what platform I'm on?
ddellacosta has quit [Ping timeout: 272 seconds]
<jumper149>
You can modularize your configuration.nix and share only parts of it.
<jumper149>
matthewcroughan: The same way that hardware-configuration.nix is modularized by default.
<cole-h>
lukegb++ Looks like you did indeed fix the issue with your PHP PR :)
<{^_^}>
lukegb's karma got increased to 1
NeoCron has quit [Ping timeout: 256 seconds]
<lukegb>
Hooray
<lukegb>
Accidentally fixing issues
chloekek has joined #nixos
<matthewcroughan>
jumper149 I don't quite understand what that means, I'm quite new to Nix. Do you mean that I have Pi.nix and Desktop.nix ?
hmpffff_ has quit [Quit: nchrrrr…]
<dadada_>
matthewcroughan: You can write parts of your configuration like modules in nixpkgs/nixos/modules. That means that you can import them and / or use options that you define inside.
<matthewcroughan>
Is there any way to get rid of the annoying Nix concepts from apps like Htop?
<jumper149>
You will have to dive a little bit into the nix language to understand everything here.
<jumper149>
matthewcroughan: Whats wroing with htop?
<matthewcroughan>
They're not annoying concepts, let me rephrase. Is there a way to mask them from apps that display such info?
<matthewcroughan>
Well every app is running from /nix/store/massive-long-hash/app
<matthewcroughan>
so of course htop shows the /nix/store/ path which obscures information, since the string is so long
<jumper149>
ahh.. yeah. afaik there is no way to fix that.
shibboleth has joined #nixos
kimat has joined #nixos
<matthewcroughan>
That is going to be an issue in a lot more apps than just htop, so there must be a solution to this in future.
<jumper149>
only htop has the ability to deal with it in this case. There is no way nix can change it.
<matthewcroughan>
Why do the hashes need to be so long? Is there a technical reason for it?
<dadada_>
You could let htop display the name of the process instead of the complete command line. top does it like that
<matthewcroughan>
are there no shorthand hashes?
<qyliss>
Hit "p" in htop
<matthewcroughan>
That satisfies me for now, yeah.
<matthewcroughan>
Though I get the feeling other applications are going to be confused by some stuff.
<jumper149>
the hashes serve are predetermined by the derivation so there is no way to change them
<b42>
til
Soo_Slow has quit [Quit: Soo_Slow]
<b42>
qyliss++
<matthewcroughan>
In fact, I imagine that at some stage, we're going to find out we've overflowed something, in some apps haha
<{^_^}>
qyliss's karma got increased to 61, that's Numberwang!
<matthewcroughan>
qyliss++
<{^_^}>
qyliss's karma got increased to 62
<matthewcroughan>
Does anybody know how the hash is generated?
<dadada_>
sha256sum of the derivation contents?
<matthewcroughan>
I remember watching some talk on this, I didn't get all the way through, but I just don't understand why it has to be so long and we cannot use shorthands.
<clever>
matthewcroughan: one min
<matthewcroughan>
I mean, granted, I do not know what I'm talking about!
<qyliss>
Most C programs in my experience use PATH_MAX-length buffers to store paths. PATH_MAX on NixOS is 4096 bytes. So an overflow just because of the store path is unlikely.
<emily>
matthewcroughan: you have to pick a length that avoids collisions. git opportunistically shortens things because it can dynamically lengthen the identifiers when needed
<matthewcroughan>
But how is it that github does shorthand hashes?
<emily>
but these paths get baked into packages that depend on them
<emily>
so we'd have no way to migrate to "longer, less ambiguous" hashes as clashes appear
<simpson>
matthewcroughan: GH does short hashes in exactly the way that you'd expect/be horrified by: Truncation.
<emily>
I mean, also, Nix stores are a lot bigger than your average git repository.
<qyliss>
matthewcroughan: github still stores long hashes, it's just that it can find the long one from the short one if it's unambiguous
<emily>
I frequently run into clashes typing /nix/store/sdfjhsf* and am shocked
<simpson>
Indeed, so does git, PGP, and basically anything else in this field. The hash disambiguates *because* it is long; a shortened hash collides more often.
<matthewcroughan>
I'm satisfied by that, as long as there's a reason for it, I just did not understand the reason.
<emily>
wish you could mine bitcoin with those
dingenskirchen has quit [Remote host closed the connection]
<clever>
simpson: the hash in /nix/store/hash-name is truncated
<keithy[m]>
hi guys, does configuration.nix reflexively know its own path, like BASHSOURCE[0]?
<matthewcroughan>
Does the hashing cause problems with searching?
<simpson>
clever: Indeed! IOW the tradeoff has already been made.
<clever>
keithy[m]: just use ./. in an expression
<matthewcroughan>
Do the long folder names halt recursive searches in software like find for example?
<clever>
keithy[m]: at parse time, that is turned into an absolute path, based on the dir the file was in
dingenskirchen has joined #nixos
<matthewcroughan>
if I did `find ./ -name 'htop'` would my search time be increased by the number of dirs and the length of the dir names?
fusion809 has joined #nixos
<keithy[m]>
how about in a script?
<clever>
keithy[m]: do you want the position of the script, or the nix expr that defines the script?
<matthewcroughan>
In which case, is there a better way to search through the available software in the nix store, and what is that way?
<simpson>
matthewcroughan: Try it and see, but probably not? Searches on disk are largely limited by I/O, and disk indirections are stored by inodes of relatively unchanging size.
<clever>
matthewcroughan: nix-build '<nixpkgs>' -A htop
<matthewcroughan>
Oh okay, what is the reason for that being in nix-build?
<qyliss>
You're not really supposed to go looking through the store
<matthewcroughan>
Why is it in the domain of nix-build to search through available packages? Philosophically?
<qyliss>
Think of it as opaque
<simpson>
One of the ideas of Nix (and more generally, of capabilities) is that one ought *not* to search, but instead use exactly the packages that one already has in front of them.
<qyliss>
matthewcroughan: nix-build doesn't search for packages
<clever>
matthewcroughan: if you want htop, build htop
<clever>
matthewcroughan: if you want to search, `nix search`
quinn has joined #nixos
<matthewcroughan>
Okay, let's say I have no internet connection, and I want to see what I Have.
<clever>
matthewcroughan: the `nix` command doesnt have any docs yet, just `nix --help`
<simpson>
matthewcroughan: You have the same things either way; there's a collection of profiles (nix-env), whatever development environments you have open (nix-shell), and prior generations of userland (nixos-rebuild).
<matthewcroughan>
That to me I thought was not a manpage, since it has all that formatting that I can't easily search through jumper149
<jumper149>
matthewcroughan: All the nix commands have normal man pages I think. It's not online but^^
<keithy[m]>
yay
<matthewcroughan>
Yeah but I'm not on a nix system right now :)
<matthewcroughan>
What would happen if I did nix search on a system that was offline>?
waleee-cl has joined #nixos
<qyliss>
It uses your local copy of Nixpkgs
<clever>
matthewcroughan: it would still work, it searches the copy of nixpkgs you have locally
<matthewcroughan>
So how should one think of Nix when being used offline? Is it still just as useful as it can be?
<matthewcroughan>
Does it try to be useful offline and online? Or is it clearly internet dependant?
<clever>
matthewcroughan: if you pre-download the dependencies for something, you can keep building stuff while offline
<matthewcroughan>
This is one thing I've not really ever understood about Nix. Can I install offline and online?
<clever>
matthewcroughan: if your offline, you cant download any new paths
<matthewcroughan>
If I have a new laptop I want to provision, or a network of airgapped computers, can I install offline?
<matthewcroughan>
Well the actual nix installer says you need to be online, and I'm just wondering why.
<clever>
matthewcroughan: but you can use `nix-copy-closure` to copy paths between different machines, or run your own binary cache on the other side of the airgap
<matthewcroughan>
It seemed bundled with so much stuff, at 500~MB, I was wondering what it didn't have?
<clever>
matthewcroughan: the nix install script download a tar file that has a minimal copy of /nix/store/
<clever>
matthewcroughan: which tar it downloads, is detected at runtime, based on your os and cpu
<jumper149>
matthewcroughan: Good question actually. afaiu you should be able to build everything yourself once you have cached a nixpkgs channel. correct me if im wrong
<clever>
matthewcroughan: x86? arm? linux? mac?
<matthewcroughan>
x86 nixOS installer
<matthewcroughan>
is "paths" a technical term that I'm going to come to understand?
<simpson>
Nix can be provisioned offline just like e.g. Debian or Gentoo. There's no meaningful difference in how Internet connectivity affects them; the difference is only in which tarballs need to be acquired beforehand when preparing installation media.
<clever>
matthewcroughan: each directory in /nix/store/ is the result of building a derivation
<clever>
matthewcroughan: and you can download one of those store paths from a binary cache, or use nix-copy-closure to copy them between machins
<matthewcroughan>
simpson So in the future, we could see nixOS install media that is made to be offline? It'll look like nixOS-Installer-X86, and ARM, etc like there is for debian, and all that will be is the base nixOS installer but with those tarballs.
<matthewcroughan>
clever copy them between machines? I'm sorry I'm not trying this since I don't have access to that machine right now, but what is the output of that command?
GerdFlaig[m] has joined #nixos
<matthewcroughan>
Is it a file? A series of files into a directory? Does it want SSH?
<simpson>
matthewcroughan: I'd humbly suggest that the typical installation image already supports offline installation. Remember, for ports trees, the tarballs needed for installation are sourceballs.
<clever>
matthewcroughan: `nix-copy-closure` uses ssh to copy things between 2 machines
<clever>
matthewcroughan: this one creates a directory of .narinfo and .nar.xz files
<clever>
matthewcroughan: you can then either --from back from it, or host that directory over plain http, and do `--option substituters http://that.server`
T0pH4t has quit [Quit: bye...]
<matthewcroughan>
And that will then transform your system's /nix/store ?
<clever>
matthewcroughan: so you could setup a server on the other side of the gap, to host the things
<ivegotasthma>
hello, I'm on stable but I'm not seeing new packages from the 1st of April
<evanjs>
so I am fairly certain #86893 is a non-NixOS issue, as GitKraken runs fine on NixOS with only i3 and sddm. Trying to get an Ubuntu 18.04 VM to test it on, though, and I can't rebuild for VirtualBox at the moment...
<clever>
matthewcroughan: it will let you add storepaths into /nix/store/
<matthewcroughan>
clever "storepaths" are the hash directories?
<clever>
matthewcroughan: yeah
<evanjs>
Any suggestions on the easist way to test on other systems from nixos? I would figure Qemu, wasn't sure if there were any nix functions that might make things easier. IIRC we primarily have stuff for generating _NixOS_ based VMs
<matthewcroughan>
clever Do we lose any information in doing that ?
<clever>
matthewcroughan: nope
<matthewcroughan>
Wow, so what happens to the configuration.nix?
<matthewcroughan>
When I say "information" I really mean are we creating a tarpit of hacked in things we're not keeping track of?
<clever>
matthewcroughan: the configuration.nix is parsed to generate build directions for store paths, like /nix/store/0iwz12wb5vfv6mdr2mzgy34r8s7lrz90-nixos-system-amd-nixos-20.03pre202088.e89b21504f3
alp has quit [Ping timeout: 272 seconds]
<clever>
matthewcroughan: and nix will then query all substituters, to see what paths are pre-built, and what it has to build locally
<evanjs>
I guess in that case... I'll just try to convert that. Only asked initially as I had some issues with an image from osboxes and don't use other distros enough anymore to want to deal with them much at all, if possible :P
EdLin has joined #nixos
<ivegotasthma>
clever: thanks! I'm however confused why after I do `sudo su; nix-channel --update` I don't see a recent package that's from 1st of April.
<ivegotasthma>
I don't have extra channels on my user, so I'm sure they're all updated
<clever>
ivegotasthma: nixos-unstable last updated 11 days ago, and you want `sudo -i` not `sudo su`
<ivegotasthma>
which is the last commit in the status page
<clever>
yep
<clever>
and that commit itself, is 14 days old
<{^_^}>
[nixpkgs] @aszlig pushed commit from @martinetd to master « nixos/confinement: add conflict for ProtectSystem service option »: https://git.io/JfWi4
<ldlework>
eadwu[m]: I've got a dell precision 5520, with a Quadro M1200 Mobile, and I've setup nvidia-offload as per the wiki, but I can't get anything running on the card.
<ldlework>
glxgears, etc
<ldlework>
Things seem to be running on the intel chip
<eadwu[m]>
Any errors in journalctl for nvidia?
<eadwu[m]>
Output of `xrandr --listproviders`
<superbaloo>
is there a way to get the dependency tree of the output of a derivation before building it? or some part of it is determined during the build?
<MichaelRaskin>
ldlework: not in NixOS, but packaged in Nixpkgs
<{^_^}>
[nixpkgs] @jonringer pushed 2 commits to python-unstable: https://git.io/JfW1G
asheshambasta has quit [Ping timeout: 260 seconds]
<ldlework>
MichaelRaskin: When I start SunVox, no other audio applications works. Chrome, Spotify etc. If Chrome or Spotify are playing audio, then SunVox wont start. This doesn't happen for other people on other OSes so I assume it is the pulseaudio by-pass at work.
hlisp has quit [Ping timeout: 260 seconds]
<emily>
there is nothing automatic like that
<emily>
you're just experiencing a regular old linux audio configuration issue unless you have something specific in your configuration doing this
<emily>
if you have pulseaudio enabled in your config then nixos uses pulseaudio
<Yaniel>
probably sunvox just using alsa directly without knowing that pulseaudio exists
<Yaniel>
like most DAWs I think
<Yaniel>
unless you have JACK, which it could use instead
fendor has joined #nixos
remirol has quit [Ping timeout: 240 seconds]
<emily>
pulse does fancy stuff to make alsa apps work though
<emily>
(at reduced performance ofc)
<emily>
so it might just be a matter of setting the right device
<ldlework>
Setting the right device?
<ldlework>
I'll try to install Jack I guess.
<MichaelRaskin>
Then of course alsa has dmix…
lorimer has joined #nixos
<fendor>
hello! I am trying just now to install nixos. I used rufus on win 10 to prepare the usb drive. When booting the drive, I get horrible visual bugs, and I cant boot to the terminal.
<emily>
fendoer: sounds like GPU driver issues. what graphics card are you using?
<fendor>
emily, gtx 2070 s
ATuin has quit [Quit: WeeChat 2.8]
<emily>
you may be better off with whichever of the proprietary nvidia drivers and nouveau isn't being used. I guess the install media probably has the latter, not sure
<fendor>
I cant boot the stick, though
<emily>
I would suggest installing via the console and then fiddling with drivers if you're comfortable with it
<fendor>
Ok, apparently, I can boot it, if I dont boot it with uefi
<emily>
hm, does the console not even work?
alp has joined #nixos
<fendor>
emily, only with nomodeset
<emily>
nomodeset is probably just effectively blocking nouveau I guess
<emily>
anyway, yeah, that card is way too new for nouveau to work well I think, so you want the nvidia proprietary drivers. I don't know if there's a convenient way to get an installer with them
<fendor>
yeah makes sense.
<emily>
but if you can install from the console then you can enable the proprietary nvidia drivers for your installed system
<fendor>
damn it :(
<fendor>
oh, ok
<fendor>
great
<fendor>
nice
<emily>
you could also live-edit the livecd configuration to add the drivers and "nixos-rebuild switch" to it, probably, if you can get network set up etc.
<fendor>
however, then there is this uefi <-> legacy issue. Is that even an issue?
<emily>
you want to boot with uefi to install a uefi bootloader
<emily>
othewrise EFI variables are inaccessible
<fendor>
it should be dual boot with win 10, maybe the initial installation didnt use uefi?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.ROPGadget: 6.2 -> 6.3 »: https://git.io/JfWMv
<fendor>
so, probably the cleanest solution would be re-install windows, then try again with windows to make sure it is uefi, right? Or is there no reason to want uefi?
emacsomancer has quit [Read error: Connection reset by peer]
hmpffff has joined #nixos
<emily>
I'd generally recommend UEFI boot if possible, especially on newer motherboards
<ldlework>
Hmm after installing jack, now spotify etc don't work. But Sunvox does!
<emily>
is your existing Windows install not UEFI?
<emily>
generally Windows will default to UEFI/GPT/etc. these days
<emily>
ldlework: you probably need to set up pulse to talk to jack
<ldlework>
oh right
<ldlework>
I read about that.
<emily>
btw jack is also pretty bad for battery life so you might want a switching setup
<fendor>
emily, I think it does, I think I remember seeing GPT in the partitions somewhere. Why would the drivers for nvidia work without efi, though?
<emily>
shrug, I don't use jack or spotify, sorry :p
<emily>
fendoer: that part I have no idea about. I'm guessing that maybe nouveau is only even trying to load with UEFI or something
<emily>
like I can imagine some story like "nouveau only even tries to support the new enough cards on UEFI systems"
<emily>
but I'd have to do actual forensics on the system to tell
<fendor>
ok, thank you. So, Ill attempt terminal installation
<emily>
in practice you're going to want the proprietary drivers if you're using that card at all, I think, since the free software support for the newer cards is very spotty
fabianhjr has joined #nixos
<{^_^}>
[nixpkgs] @jonringer pushed 258 commits to python-unstable: https://git.io/JfWMV
<fendor>
yeah, I know.
<fendor>
it is still good that they exist
<ldlework>
lol wtf you have to hit play inside qjackctrl....?
<cole-h>
I thought cadence was recommended over qjackctl these days
<ldlework>
cole-h there's no wiki instructions on how to get Jack working with Pulse with Cadence
<ldlework>
It does look nicer though.
vidbina has quit [Ping timeout: 256 seconds]
<cole-h>
All I need to do is run `cadence-session-start --system-start` and it works for me.
<cole-h>
(though I am not on NixOS, so that might change things)
<{^_^}>
[nixpkgs] @lukegb opened pull request #87530 → teamspeak_client: update to 3.5.2 → https://git.io/JfWMj
<energizer>
ldlework: is there something unusual about the computer you're using that you suspect is causing all these issues? asking because i'm curious how usable nixos is across various devices
<ldlework>
energizer: I had no problems whatsoever in 19.09
<ldlework>
cole-h: that gives me dbus.exceptions.DBusException: org.jackaudio.Error.Generic: Failed to open server
<energizer>
ldlework: sorry to ask but have you tried rebooting
<shreyansh_k>
Hello, I quickly wanted to check why hasnnixos-unstable p
cinimod`` has quit [Ping timeout: 256 seconds]
<shreyansh_k>
Hello, I quickly wanted to check why hasn't nixos-unstable progressed as status.nixos.org shows no build errors since some time now. What am I missing? Thank you.
o1lo01ol1o has joined #nixos
<clever>
shreyansh_k: there was a php problem that broke channel updating but didnt register on hydra
<LnL>
also has been fixed so should probably update soon
<cole-h>
It's only a matter of time until it gets into nixos-unstable
* cole-h
hopes.
<shreyansh_k>
clever: May I kindly ask the link to the issue tracker or something if possible? Thank you for reaching out.
<ldlework>
hmm ldd on the binary, doesn't show libjack
<finnwww[m]>
how do you configure home manager in configuration.nix instead of ~?
<finnwww[m]>
I'm having trouble with which ref i should use
<sshow>
how can I configure multiple domain names for an acme certificate in config.services.nginx?
eoli3n___ has joined #nixos
<NobbZ[m]>
I don't use home manager as a module, as I prefer to have my system and user config separate
<finnwww[m]>
NobbZ: good idea
Vikingman has joined #nixos
<finnwww[m]>
NobbZ: do you do separate GitHub repos or what?
<betawaffle>
is it possible to start something other than `login` from getty? like sway?
<betawaffle>
or is that a completely terrible idea
<NobbZ[m]>
finnwww I have a single home manager repo for all my machines, system configuration is a lot more ad-hoc and suited to each machine, therefore not in a repo, only backed up by regular means.
<{^_^}>
#86922 (by xaverdh, 5 days ago, open): channels do not advance? (e.g. nixos-unstable-small)
<cole-h>
andre: That's the same problem. It'll be closed once nixpkgs-unstable progresses again, I'd bet.
<EdLin>
foldingathome isn't working in Nixos, from the nix package...
<andre>
cole-h how are the builds green then? (not doubting you, genuinely want to know how this process works)
<cole-h>
I have no clue (:
<cole-h>
But I imagine it has something to do with trunk having 4k queued builds, the oldest of which is 2 days ago (which is before that PHP fix got merged): https://hydra.nixos.org/queue_summary
<EdLin>
so there's no updates too?
hlisp has quit [Ping timeout: 256 seconds]
<cole-h>
`nixos-unstable` hasn't updated in 11 days, no. However, every other supported branch has updated in the past day.
<EdLin>
I'm running unstable - for better updates. :(
<EdLin>
can I roll back somehow?
<cole-h>
Roll back to what?
<EdLin>
20.03
kozova1[m] has joined #nixos
<cole-h>
Maybe? However your packages will still be older than nixos-unstable
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<EdLin>
that bug report isn't getting much attention, folks are on top of this?
ixxie has quit [Quit: Lost terminal]
<cole-h>
Considering the fix should be working its way through Hydra, I'd say a couple more days of wait shouldn't kill you.
<EdLin>
oh, OK
<EdLin>
how about folding at home? Is it working in nixos? I just tried installing it from the package...
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<cole-h>
I don't know. I don't use f@h. Maybe you could be more descriptive of the problem you're having? Error messages, logs, etc.?
__monty__ has quit [Quit: Gotta work on that WPM, zaeph.]
<{^_^}>
[nixpkgs] @maralorn opened pull request #87543 → [20.03] vimUtils.vimrcFile: Backport fix packpath order → https://git.io/JfWHR
hlisp has quit [Ping timeout: 264 seconds]
smatting has quit [Ping timeout: 256 seconds]
matthewcroughan has quit [Quit: Connection closed]
mpiechotka has joined #nixos
<qyliss>
prusnak: only if the software doesn't work without it I think
<qyliss>
if we wanted to require it, we'd turn it on globally
<qyliss>
(Which you can do with a custom localSystem, but involves rebuilding everything)
mpiechotka has quit [Client Quit]
<prusnak>
SSE4 is OK? is there a list somewhere?
mpiechotka has joined #nixos
<prusnak>
i need to patch the software to not-autodetect the instruction set, otherwise it emits avx2 on hydra causing unusable binaries for older x86-64 systems
hlisp has joined #nixos
<cole-h>
Autodetection of supported features should be done at runtime for precisely this reason, change my mind. (Note: this opinion was made up on the spot just now.)
<qyliss>
cole-h: difficult to do when they're compiler flags
<qyliss>
prusnak: gimme a sec I'm just finding something
mpiechotka has quit [Remote host closed the connection]
<prusnak>
👍
<EdLin>
cole-h: I try to open the web administration page, and nothing happpens. Am unfamiliar with other forms of debugging for it. What do I do on this system for logs?
<{^_^}>
[nixpkgs] @wamserma opened pull request #87545 → libfm: fix duplicate inclusion of libfm-extra → https://git.io/JfWHQ
<qyliss>
(Just the default one, unless you're especially motivated)
andre has quit [Ping timeout: 245 seconds]
<asbachb>
Hi. I run NixOS on a MacBook Pro. There's some strange thing. Seems that SPDIF output is enabled by default. A red light is always shining out of my headphone jack.
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<ldlework>
Linux audio is a nightmare!!!!!!!
<asbachb>
+1
<johnw>
ldlework: but at least you can't hear it, amirite?
shreyansh_k has joined #nixos
<dnlkrgr>
if I have a haskell package with a nix file created by `cabal2nix --shell . > shell.nix`, how do I make it usable in the `build-depends` in another haskell project?
gustavderdrache has quit [Quit: Leaving.]
vidbina has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @JoeDupuis opened pull request #87553 → nixos/monit: Allow splitting the config in multiple files → https://git.io/JfW7p
o1lo01ol1o has quit [Remote host closed the connection]
ddellacosta has joined #nixos
o1lo01ol1o has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
Soo_Slow has quit [Quit: Soo_Slow]
hlisp has quit [Ping timeout: 260 seconds]
w3emperor has quit [Quit: Connection closed for inactivity]
<evanjs>
I noticed a lot of things in terms of enabled features are commented out of ffmpeg-full. What's the easiest way to e.g. enable libcaca support?
<evanjs>
as e.g. "#(enableFeature (libcaca != null) "libcaca") " is commented out...
<evanjs>
though... it looks like it's in the buildInputs, anyway..?
<clever>
[ 1.503471] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
<emily>
betawaffle: yeah, I agree it sucks. hopefully the services/tests can get corrected and it can be fixed for next release
<clever>
morgrimm: what about this file?
<morgrimm>
Would that affect the wifi drivers? I have no idea - I'll see if it's missing from my current gen to past gen
<{^_^}>
[nixpkgs] @Ma27 merged pull request #87186 → fix docs example for foldl → https://git.io/JfnMx
<keithy[m]>
Hi guys, I am trying to print out the environment with env within a script running in timer, so that it shows in journalctl, whats the way to do this?
chloekek has quit [Ping timeout: 256 seconds]
<keithy[m]>
set works env does nothing
<betawaffle>
hmm, what's the proper way to start a service but not wait for it to finish starting?
mbrgm_ has joined #nixos
<makefu>
betawaffle: oneshot is probably what you are looking for
<keithy[m]>
access("/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
<cole-h>
/usr/bin/env is probably a symlink
<cole-h>
keithy[m]: Maybe just paste the entire output in a gist or something. So far, that's pretty standard output and nothing worrying.
cr4y1 has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<energizer>
What am I supposed to do about this? `ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /nix/store/gk6jnn0zrj41srpjfrnjm1x7m19hncff-python3-3.7.7-env/lib/libpython3.7m.so.1.0)`
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
EdLin has quit [Ping timeout: 260 seconds]
<finnwww[m]>
I'm getting a strange error. I boot the computer, I see the xorg default screen. I enter my password correctly, and I see the error "Failed to start session". I'm trying to configure xorg through home manager. Any idea what's going wrong?
EdLin has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<cmk_zzz>
how do people keep there secrets in a nix configuration. Things like gpg keys, ssh master keys. Are these kept outside of nix and nix home manager or how to people do it?
EdLin has quit [Ping timeout: 256 seconds]
<keithy[m]>
I pass the location of the secret into an environment variable in the nix configuration.