<cole-h>
evanjs: lol, that's why I was a little confused
<cole-h>
"<blank page> is good for tracking channel updates" heh
<evanjs>
obviously lol
<evanjs>
I think I might've been remembering "I have to expand these to see anything" and falsely applying it to the whole page, until I took a closer look and noticed nothing was there :P
<evanjs>
on another note, emily: nixpkgs-channels is deprecated? or just pinning on those?
<aditsachde>
I need to learn a lot more about actually using the nix lang and whatnot, but i'm reallly loving nixos and its declarative configs and being able to build everything with CI/CD
<emily>
evanjs: the repo is pointless, all the branches exist in the upstream nixpkgs repo
<evanjs>
emily: Yeah I figured that much, I just thought there was a point to having a read-only mirror of some sort, idk
<emily>
the relevant branches are read-only on github i believe
<evanjs>
yeah I'm reading dolstra's comment now. This makes more sense now
<evanjs>
Once again, out of date documentation strikes again :D (I'm not blaming anyone right now, I know this is a huge project and am vaguely familiar with the reasons behind the lack of various docs, etc)
<evanjs>
No wonder I didn't see anything on this, like emily said, it's just GH comments, and from late last year, at that x_x
<emily>
I don't know why the repo description hasn't been updated. maybe I should poke the issue again
MmeQuignon has quit [Ping timeout: 260 seconds]
<kini>
dumb question... I can do `nix-shell '<nixos>' -A amarok` to get a shell in the build environment for amarok in my nixos channel, but how can I get the build environment for an override of amarok (e.g. `(amarok.overrideAttrs ...)`)? Since that's not a `.`-separated attribute path, `-A` isn't sufficient. I assume I should be using `-E` somehow...
<emily>
kini: something like with import <nixpkgs> {}; amarok.overrideAttrs ...
<emily>
or just (import <nixpkgs> {}).amarok.overrideAttrs
proofofkeags has joined #nixos
gustavderdrache has joined #nixos
<kini>
emily: Thanks! That seems to work.
<{^_^}>
[nixpkgs] @veprbl merged pull request #87846 → openbox: Use python3 instead of python2 → https://git.io/JfBSd
<{^_^}>
[nixpkgs] @veprbl pushed commit from @SFrijters to master « openbox: Use python3 instead of python2 (#87846) »: https://git.io/Jf0on
proofofkeags has quit [Ping timeout: 265 seconds]
evils has quit [Quit: Lost terminal]
oxapentane has joined #nixos
hooo has quit [Quit: Connection closed for inactivity]
<hyper_ch>
that's been there for a long time.. so no recent commit
fabianhjr has quit [Quit: Leaving.]
<hyper_ch>
so, nixos-rebuild boot --upgrade --> does it pull new packages?
alexherbo2 has joined #nixos
<mac10688>
unpacking channels.. building Nix... building the system configuration...
<mac10688>
and it stops there
<hyper_ch>
pastebin?
<mac10688>
ok
<hyper_ch>
well, with boot it should generate new boot entry and set it to default after reboot... switch should change environment directly... I prefer to use boot in general
<slightlyq[m]>
Don't worry about earlier, I'll go install arch now. Thanks for the support
slightlyq[m] has left #nixos ["User left"]
<mac10688>
omg i don't know how to copy from urxvt
<mac10688>
i know shift + insert will paste into the terminal
<mac10688>
ugh
orivej_ has joined #nixos
<ben>
selecting text copies it?
<mac10688>
i guess no
<mac10688>
I fail
<mac10688>
very frustrated now, i can't even copy from terminal
<mac10688>
i'm just gonna go back to dotnet
<mac10688>
and windows
orivej has quit [Ping timeout: 258 seconds]
<energizer>
haha
slack1256 has quit [Ping timeout: 265 seconds]
<hyper_ch>
mac10688: --> To upload to sprunge from your terminal, use: <command> | curl -F 'sprunge=<-' http://sprunge.us #
<hyper_ch>
(I have an own little pastebin script for my pastebin that I like to use)
<energizer>
it's funny how nixos can be so bad it makes people give up linux altogether after years :-)
<energizer>
but it can also be so good!
<mac10688>
i just want to break my laptop, i'm so pissed right now
<mac10688>
spent all day just trying to update my neovim
<hyper_ch>
mac10688: may I suggest to use nixos-unstable instead of stable? sometimes it does break but that's where nixos atomic upgrades come in.. you can boot into an older generation if needed
<energizer>
just tried urxvt, it seems highlighting text copies it into the "primary selection" and middle-click will paste from there
<srhb>
I'm late to the party. Why are we going to unstable?
<mac10688>
ok i'm on unstable now but it seems like nothing really upgraded from that command
virus_dave has joined #nixos
<srhb>
mac10688: If I read the backlog correctly it seems we're trying to get you a new neovim, is that correct?
<hyper_ch>
because unstable is fun :)
<mac10688>
yes
<srhb>
mac10688: The first course of action if you're seeing a package "not update" is to determine by which method it was installed. The first clue is to check from whence the binary is coming
<mac10688>
thanks energizer, I tried to highlight and click but there was nothing to paste into pastebin
<srhb>
mac10688: `which neovim`
<mac10688>
which: no neovim in (/home/mac10688/bin:/run/wrappers/bin:/home/mac10688/.nix-profile/bin:/etc/profiles/per-user/mac10688/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin)
<mac10688>
oh that worked
<energizer>
mac10688: then i'm not sure, never used urxvt before
reallymemorable has quit [Quit: reallymemorable]
virus_dave has quit [Client Quit]
<srhb>
mac10688: How do you normally launch neovim from a terminal? I'm guessing it's not `neovim`
<srhb>
Then recreate the root one, called nixos, with 20.03
<srhb>
Then you should be good to upgrade.
<mac10688>
ok now i'm rebuilding and booting and upgrading. things are looking promising!
<srhb>
Good. :)
<srhb>
Channels, especially multiple channels can be confusing. I recommend only using one, that root owns, called nixos, which points to the current stable release.
<srhb>
That way you'll avoid most channel headaches in the future
<mac10688>
yeah i had no idea there was a user channel and a root channel
<mac10688>
i'm flabbergasted
<srhb>
Yeah, it does bite a lot of people unfortunately.
<energizer>
next up: there are three manuals
<mac10688>
thanks for the help energizer hyper_ch and srhb. I have some build errors in my configuration script that i'm working through. If I can't figure these out on my own, I'll ask in the channel tomorrow
<srhb>
mac10688: You're very welcome. :)
<hyper_ch>
mac10688: what errors?
<srhb>
mac10688: The release notes might help you too.
<mac10688>
i18n.consoleKeyMap has been renamed to console.keyMap, I renamed it and then it said the option console doesn't exist lol. And there's a dmenu2 package that I want that doesn't seem to be available anymore
<mac10688>
it says it's an undefined variable
<srhb>
dmenu2 was indeed dropped as unmaintained, unfortunately.
<energizer>
that consoleKeymap thing totally happened to me before, i forget what i did about it
<hyper_ch>
console is easy
<mac10688>
ok i fixed the console problem, there's no more i18n. I got that fixed
<hyper_ch>
they just maed it more logical
<mac10688>
yeah it's nicer now
<mac10688>
i think i was using dmenu for xmonad somehow
<hyper_ch>
no idea about dmenu
<srhb>
I am too, yeah.
<srhb>
I did the ugly thing and brought in the package in my own overlay.
<mac10688>
ok well then I'm about to drop xmonad for a few weeks until i figure out how to resolve that. One problem at a time. I'm just going to drop dmenu
<mac10688>
i don't know what dmenu did. I was just throwing a bunch of stuff at it to get stuff to work. Now i'm trying to clean things up
kayg049 has joined #nixos
<srhb>
mac10688: It's a bar that you can pop up to type in an application name to launch
<srhb>
mac10688: If that rings a bell
<srhb>
mac10688: You could probably just get rid of that instead of all of xmonad.
<mac10688>
ah! i know what it is now
kayg04 has quit [Ping timeout: 264 seconds]
kayg049 is now known as kayg04
<mac10688>
I will be trying to do more hacking on my xmonad config. It's a lot but I've been learning haskell for a long time (5+ years now). It's time I do some hacking
<srhb>
Cool. :)
<hyper_ch>
mac10688: updating works now?
<mac10688>
yeah i took out dmenu and it's doing a lot of updating now
<hyper_ch>
(still, using unstable is fun)
orivej_ has quit [Ping timeout: 256 seconds]
<srhb>
But unstable means you will get delayed security fixes and will have to follow git development to keep up with breaking changes.
orivej has joined #nixos
<mac10688>
I'm going with stable until I think I need unstable. I don't like the idea of things breaking on me
<mac10688>
that would make me angry again
<hyper_ch>
as said, the good thing about nixos are the atomic upgrades... if you're not happy, go back to an earlier generation
user_0x58 has quit [Quit: Leaving]
maxdevjs has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos
orivej has quit [Read error: Connection reset by peer]
drakonis_ has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @jtojnar pushed to master « wpa_supplicant_gui: fix build with Inkscape 1.0 »: https://git.io/Jf0D9
<colemickens>
<la-s "colemickens: is it normal for yo"> There's a recent issue about it. I3status-rust has started blocking the repo multiple times a day and I haven't had time to fix it
drakonis has quit [Read error: Connection reset by peer]
<{^_^}>
[nixos-hardware] @Mic92 opened pull request #166 → README.md: add missing link → https://git.io/Jf0S5
alexherbo2 has joined #nixos
<JJJollyjim>
srhb: could you elaborate on the security thing? i thought fixes were commited to unstable then backported
orivej has quit [Ping timeout: 256 seconds]
<hyper_ch>
I also tend to think security fixes end up in unstable quicker
<srhb>
JJJollyjim: unstable is generally broken more often than stable, so while the commits do land in master there first, the actual channel bump is much, much slower.
<srhb>
(on average)
<JJJollyjim>
ah right
khar0n has joined #nixos
<srhb>
Even when unbroken, it's more busy building.
<JJJollyjim>
yeah, a security fix to 20.03 is less likely to rebuild stdenv i guess :P
<srhb>
Right. stdenv should land in staging branches regardless though
alexherbo2 has quit [Ping timeout: 258 seconds]
<srhb>
If you build your own system straight from master, none of the channel logic applies, of course.
<JJJollyjim>
right, so hydra does somewhat fair scheduling between the different jobs?
<srhb>
And then "unstable" may indeed be faster for fixes.
<srhb>
JJJollyjim: There's a weighting system for it.
<JJJollyjim>
sweet
kharon has quit [Ping timeout: 260 seconds]
khar0n is now known as kharon
<hyper_ch>
unstable --> almost latest and bestest software :)
<JJJollyjim>
yeah i get the tradeoff now
<srhb>
It's definitely an evaluation thing, it depends on your use case.
smatting_ has joined #nixos
marsh has joined #nixos
smatting_ has quit [Ping timeout: 256 seconds]
mallox has joined #nixos
<JJJollyjim>
one day i will remember to look for "trunk-combined" on hydra instead of staring blankly when i can't see "unstable"
<srhb>
JJJollyjim: If you go there from status.nixos.org it might be easier.
<JJJollyjim>
ty
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
avn has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<hadrian[m]>
<srhb "Jamie: If you go there from stat"> A complete break in protocol, I'm aware. You've all selflessly devoted your time to me and my family for many hours - and i cannot thank you enough. I'll absolutely repay this kindness someday - i promise you this - and i want to learn to do this the right way; but i also want you to have your lives too. Can someone please just nudge me into building this build so you can all get
<hadrian[m]>
some rest and Ill review docs tomorrow morning and would like to debrief with SOMEONE because i still havent a clue as to whats actually afoot sans a conversation or two with the FBI.
pjt_014 has quit [Ping timeout: 256 seconds]
zaeph1 has joined #nixos
zaeph has quit [Disconnected by services]
zaeph1 is now known as zaeph
pistache has quit [Ping timeout: 264 seconds]
<srhb>
hadrian[m]: Sorry, I feel like I've been dumped into the middle of a conversation without context. What's broken?
pistache has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
<hyper_ch>
why do I keep getting this warning: unable to download 'https://nixos.org/channels/nixos-unstable': HTTP error 302 (curl error: Couldn't resolve host name); retrying in 268 ms ?
orivej has joined #nixos
codygman has quit [Read error: Connection reset by peer]
<srhb>
hyper_ch: Presumably you're having periodic troubles resolving the host name.
codygman has joined #nixos
<hyper_ch>
srhb: weird thing is, it's only my server... on my notebook it's fine... same lan
<srhb>
hyper_ch: Same upstream resolver? Same dns setup locally?
<hyper_ch>
server uses systemd
<hyper_ch>
and I use normal router
<srhb>
That sounds like a difference to investigate.
<hyper_ch>
that systemd is just so annyoting but I don't know how to turn it off
<srhb>
systemd-resolved, you mean?
<hyper_ch>
yes
<hyper_ch>
they also point to different ips for nixos.org for some reason
<srhb>
services.resolved.enable = false?
<srhb>
That's normal
ilikeheaps has quit [Ping timeout: 240 seconds]
<hyper_ch>
why is that normal?
<srhb>
Because it does have multiple IPs
<srhb>
hyper_ch: (And you're served one of the A records)
<hyper_ch>
but the routher should have cached it
ilikeheaps has joined #nixos
<srhb>
Sure, but it doesn't have a long TTL
<hyper_ch>
since both ask the router eventually, they both should get the same
<kyren>
is there an easy way to run activationScripts after mounting filesystems? is the best way to handle this just to make a systemd service to do it?
<c00w>
Probably?
codygman has quit [Ping timeout: 260 seconds]
<srhb>
hyper_ch: Right, if every component you have respects the TTL, they should end up with the same IP _at any given time_ - I agree with that.
<srhb>
hyper_ch: If you're not seeing that, maybe some component is not respecting TTL.
<hyper_ch>
let's see if disabling resolved breaks things :)
<niso>
i can't declare a submodule as a type right?
codygman has joined #nixos
avn has joined #nixos
<srhb>
niso: Depends what exactly you mean. An option type can indeed be a submodule.
<kyren>
oh right, I forgot about systemd 'RequiresMountsFor', that's perfect
<srhb>
niso: The easy way is to have the new thing be nullable and have it take precedence if it's not null
<srhb>
niso: I think that's quite common.
<srhb>
niso: (Instead of rolling it into a big either)
<niso>
srhb: means i'd need two options (e.g. file and fileSettings). i did use that before, however it seemed uselessly verbose
<hyper_ch>
srhb: ok, I'm still fighting wit that
<srhb>
niso: Well, I think you've bumped into the place where it might show that it's not useless, because bolting on more types and eithers and oneofs is difficult without algebraic datatypes
<hyper_ch>
I did disable systemd resolved but my resolv.conf only has nameserver 127.0.0.1 and options edns0 as entries
<srhb>
hyper_ch: Check which process is listening for dns on 127.0.0.1? :)
<srhb>
hyper_ch: Maybe you have some other resolver running.
<hyper_ch>
having options set for nameservers should add them to /etc/resolv.conf IMHO
<niso>
srhb: i see, thanks. as is the linked solution works (however the check for isAttrs and isDerivation seemed like a hack/workarround). means you'd refactor it back to file and fileSettings? or leave it the way it is now? (usability wise i like the current solution better, however i'm not sure on things like how the auto-generated docs will look)
<srhb>
niso: Without having reviewed the entire thing, my gut feeling is that I'd prefer old way and new way to be separate options. Explicit > implicit is my reasoning. And then they could be mutually exclusive.
<hadrian[m]>
Aren't my DNS requests being routed thru my hackers? I can see that on my side periodically, want me to kill them off again?
<hadrian[m]>
I'm not sure what you can and cannot see on your side.
<srhb>
hyper_ch: Like I said, check which process is listening for dns locally. It's probably the one moving your original resolv.conf away.
<hyper_ch>
srhb: and how to do that?
<JJJollyjim>
hm, if a derivation file in nixpkgs takes systemd as an argument (but only uses it if `stdenv.isLinux`), will it fail to build on darwin?
<srhb>
hyper_ch: `ss -tlnp | grep 23` might do it
<hyper_ch>
23? I thought dns is 53
<srhb>
hyper_ch: Yes, you're right.
<JJJollyjim>
and if so, what's the best approach? take pkgs as an argument and query it directly?
<srhb>
JJJollyjim: As long as the attribute exists on $othersystem it's OK to pass it as an argument as long as you don't use it
<srhb>
JJJollyjim: Because laziness.
<JJJollyjim>
ty
orivej has quit [Ping timeout: 256 seconds]
<JJJollyjim>
makes sense
<hyper_ch>
srhb: dnsmasq is listening there but I don't have anything dnsmasq related in my configuration.nix
<srhb>
hyper_ch: Presumably it's being transitively enabled by something else then.
<JJJollyjim>
how frequently does ryantm check for updates?
<niso>
srhb: i see where you are comming from. my reasoning was that one could leverage the typesystem instead, which would save a few lines of documentation/code. Guess i'll think it over another time
<clever>
JJJollyjim: due to lazyness, it wont eval the pkgs.systemd, and will just ignore it
<{^_^}>
[nixpkgs] @gnidorah opened pull request #88008 → gmemusage: init at 0.2 → https://git.io/Jf07n
<hadrian[m]>
I just shut down another block filter
<srhb>
hadrian[m]: I still feel like we're seeing like 10% of your conversation and none of it makes any sense to me yet. :-)
<hyper_ch>
srhb: now I can't even do a rebuild anymore and enable it again
<simpson>
I think that they're playing some sort of immersive video game?
<srhb>
hyper_ch: Roll back and start over? :)
<srhb>
simpson: That might explain something.
emacsomancer has joined #nixos
morgrimm_ has quit [Ping timeout: 256 seconds]
morgrimm has quit [Ping timeout: 256 seconds]
<simpson>
TBH that's how I feel about Nix sometimes. A very complex video game with unclear goals. And of course it's an 80s-era game, because it comes with a massive instruction manual that has all the answers.
<hyper_ch>
srhb: the whole thing is totally f****.... without me declaring anything different nameserver services get set and when trying to add what nameserver to use they just refuse
<hadrian[m]>
<srhb "hadrian: I still feel like we're"> @srhb You're probably right.
<srhb>
hyper_ch: Yes, implicit settings can be frustrating.
alexherbo2 has joined #nixos
<hyper_ch>
why isn't there a simple way to just add thigns to resolv.conf?
avn has quit [Ping timeout: 260 seconds]
avn has joined #nixos
<srhb>
hyper_ch: PResumably it already is. dnsmasq is just imperatively moving your file out of the way
<srhb>
hyper_ch: Likely it's there in /etc just under a different name
<JJJollyjim>
does it want the name of a package that it'll look at the passthrough of, or the name of an attribute under nixosTests?
<srhb>
JJJollyjim: nixosTests iirc, passthru ones will run during.. Build, I think?
<JJJollyjim>
tybm
<srhb>
Unless something changed, let me just verify.
janneke_ has joined #nixos
<pie_>
anyone know how to add extra files to a netboot image in some user accessible path? trying to use pathsToLink doesnt seem to add anything, but im rerunning my process just in case its still running th eold image or something
<srhb>
JJJollyjim: "test" is nixos/release.nix -A tests.$name, "build" takes passthru.tests as well.
<JJJollyjim>
got it
<JJJollyjim>
ty
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
janneke has quit [Ping timeout: 260 seconds]
janneke_ is now known as janneke
<JJJollyjim>
oh no
<niso>
where/how are manpages of modules created?
<JJJollyjim>
i just noticed by chance that a pull request of mine that was merged 40 days ago broke a package on hydra :/
o1lo01ol1o has joined #nixos
<srhb>
JJJollyjim: Don't worry too much about it. Especially if you can fix it. :D
hyper_ch has quit [Remote host closed the connection]
hyper_ch has joined #nixos
__monty__ has joined #nixos
smatting_ has joined #nixos
<pie_>
yeah dunno how to get the netboot thingy to do what i want
<pie_>
cc clever <pie_> anyone know how to add extra files to a netboot image in some user accessible path? trying to use pathsToLink doesnt seem to add anything, but im rerunning my process just in case its still running th eold image or something
<clever>
pie_: now /etc/busybox points to the derivation, but its not in PATH, so the dozen utils i didnt want dont break things
<hadrian[m]>
Something just happened :-/
mallox has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
quinn has joined #nixos
<bqv>
Again?
<hadrian[m]>
3 minutes ago my phone just rang voicemail (on its own) - just prior to your message. A seemingly innocous message from mum and my notification log lit up.
ixxie has quit [Ping timeout: 256 seconds]
<bqv>
I hate it when thing happen
asymptotically has joined #nixos
o1lo01ol1o has joined #nixos
<hadrian[m]>
Approx 02:18 am PDT. I believe it's Bluetooth initated and done via pedestrian or vehicle in front of my home.
<hadrian[m]>
Happens regularly. Front door wireless lock keeps unlatchig as well.
<hyper_ch>
what wireless lock?
<hyper_ch>
been pondering to add a smart lock
<simpson>
Turn on front porch lights to establish dominance.
thc202 has joined #nixos
<hadrian[m]>
<hyper_ch "been pondering to add a smart lo"> Lol you have no idea ;)
<potong>
I wanted to change the screen resolution, which I can by using the kcmshell5 but other settings might need altering and I can't see the gui at all
ris has joined #nixos
morgrimm has quit [Ping timeout: 265 seconds]
morgrimm_ has quit [Ping timeout: 265 seconds]
chloekek has joined #nixos
<potong>
Ah! found a --list option to kcmshell5 but I'd rather configure this kind of thing without resulting to the gui
<potong>
nixos, nix and kde combined is a tough learning curve!
<ixxie>
potong: in NixOS one typically tries to configure such things declaratively
<{^_^}>
[nixpkgs] @kini opened pull request #88016 → amarok: add last.fm support, bump version → https://git.io/Jf0Fm
<ixxie>
potong: I don't know about KDE but you may be able to configure it declaratively as well
Maxdamantus has quit [Ping timeout: 246 seconds]
<adisbladis>
ixxie: KDE is one of the worst offenders when it comes to statefulness
Maxdamantus has joined #nixos
kyren has left #nixos ["User left"]
<ixxie>
well, that doesn't bode well for declarative configuration then, potong :P
<potong>
That was my intention, I prefer working on the CL , found an issue #82141 which mentions kscreen but my version of 20.03 doesn't even show screen at all.
<{^_^}>
[nixpkgs] @SCOTT-HAMILTON closed pull request #87938 → Added shamilton to maintainers list (sorted) → https://git.io/Jf03a
<potong>
ixxie, I will try the options you mentioned. Thanks everyone for their input, I'll probably be back asking daft questions, forgive me in advance.
pistache has quit [Ping timeout: 264 seconds]
<gentauro>
I've disabled `hardware.bluetooth.enable = false;` on my `/etc/nixos/configuaration.nix`. Is there a way to `bypass` the 5-10 seconds the boot process looking for `bluetooht`?
<gentauro>
it's a bit annoying on restarts and power-on
<gentauro>
(why is it even looking for BT when it's disabled in the first place?)
<bqv>
services.blueman.enable = fales?
ixxie has quit [Quit: Lost terminal]
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
andreas303 has quit [Remote host closed the connection]
<betawaffle>
i feel like i asked this before, but where can i find all the "special" derivation attributes, the ones that have some meaning to nix besides just being passed to the builder as env vars?
captn3m0 has quit [Ping timeout: 256 seconds]
<betawaffle>
it seems like the documentation doesn't include all of them
<betawaffle>
another example is `buildInputs`, which seems to be used in a few examples but not documented/explained
observer_alpha[m has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
<betaboon>
zimbatm: i just saw you mention creating a #nixos-wayland back in 2018. i was looking for that as well. seems like that never happened. anyhow I'm in there now
mallox has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from @edolstra to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/Jf0NO
<hexagoxel>
nix repl does not handle some escapes correctly (home/end keys don't work) for me. How to fix?
Maxdamantus has quit [Ping timeout: 265 seconds]
<clever>
hexagoxel: thats also been bothering me for months
<delan>
g’day 👋 has anyone found that their boot.postBootCommands stopped running after upgrading to 20.03?
<hexagoxel>
oh and nix repl behaves mildly unexpectedly if you :l files that have unclosed parens. it just hangs, presumingly waiting for the closing parens. Should it not try to parse the file as one syntactically valid block, instead of pretending you pasted it to stdin?
Darkmatter66_ has quit [Ping timeout: 272 seconds]
<bqv>
engineer fix: you could >> the closing paren to the file to make nix happy
Darkmatter66 has joined #nixos
<{^_^}>
[nixos-homepage] @lukegb opened pull request #427 → Fix comma-separated list on /learn.html → https://git.io/Jf0NN
<hexagoxel>
bqv: I won't know what fix to apply if it does not give an error message
tom39291 has joined #nixos
<tom39291>
Given a set s and a variable v="foo" how do I look up v in s? s.v looks for a key called "v", I want to look for key "foo".
<tom39291>
In JS I'd s[v] but that isn't valid Nix. :)
<hexagoxel>
s.${v}
o1lo01ol_ has quit [Remote host closed the connection]
<bqv>
i was being entirely facetious, i don't expect that'd actually even work
<tom39291>
hexagoxel: Thanks!
<bqv>
rlwrap might fix the escape issue though
o1lo01ol1o has joined #nixos
Maxdamantus has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
eoli3n__ has joined #nixos
ohhaimark has joined #nixos
<gentauro>
13:08 < Mic92> gentaur: what process does block for Bluetooth?
<ohhaimark>
Hi. I'm trying to get i3status into my home-manager configuration, but it isn't in my local version despite being pulled in a couple of days ago. I have a channel for home-manager from the github master release. Should this not be the lastest or do I not understand something?
<gentauro>
I don't recall, but it's at the boot process
<gentauro>
(something like: "Waiting for Bluetooth device")
<gentauro>
even though it's disabled
ddellacosta has quit [Ping timeout: 265 seconds]
<gentauro>
it's a bit annoying cos it might be the part that takes the most of the `fast` NixOS booting ...
<gentauro>
:)
Maxdamantus has quit [Ping timeout: 272 seconds]
<ohhaimark>
I guess I could just keep a git submodule, but I'd rather have that managed by having a channel instead.
Maxdamantus has joined #nixos
morgrimm has joined #nixos
morgrimm_ has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
Maxdamantus has quit [Ping timeout: 265 seconds]
zupo has quit [Ping timeout: 265 seconds]
philr has quit [Ping timeout: 256 seconds]
Maxdamantus has joined #nixos
cosimone has joined #nixos
zupo has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
thc202 has joined #nixos
o1lo01ol1o has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie_>
maybe i will just add this whole thing to my todo
<keithy[m]>
ah I upgraded to High Sierra..
vyorkin has joined #nixos
<vyorkin>
is it possible to use cachix for 2 different hosts with 2 different binary caches?
orivej has quit [Quit: No Ping reply in 180 seconds.]
<vyorkin>
I'm asking because I don't see how I can generate 2 keypairs
<vyorkin>
it seems there is no way to do this for now
<vyorkin>
When I try to run cachix generate-keypair mysecondbincachenamehere it says: Public signing key already exists. It's currently not possible to override or add multiple signing keys. However, this feature is planned
orivej has joined #nixos
Neo-- has quit [Ping timeout: 272 seconds]
Maxdamantus has quit [Ping timeout: 240 seconds]
Maxdamantus has joined #nixos
<keithy[m]>
ok how does one reset nix and start again
<pie_>
clever: btw any idea why pathstolink doesnt seem to do anythig in netboot?
<clever>
pie_: how did you try using it? with what args?
<zimbatm>
betaboon: colemickens and I were in #nixos-wayland for a while too coordinate the work. Nowadays most of that work has been merged into nixpkgs so that channel isn't really needed anymore.
<clever>
pie_: pathsToLink must be a list of strings, not store paths
<keithy[m]>
im gonn just keep deleting stuff until the original install works
<pie_>
clever: well, one of them is a string
<clever>
pie_: for each package in systemPackages, it will link that path
<clever>
pie_: so if you set pathsToLink = [ "/foo" ];, then the $out/foo of everything in systemPackages will be merged together, creating /run/current-system/sw/foo
<pie_>
oh lol
<pie_>
smh
<pie_>
i remember that now
<betaboon>
zimbatm: I'm so used to irc since forever. not yet used to this discourse stuff xD
<zimbatm>
it's useful if you want more structured responses
<zimbatm>
IRC is not so great if the topic is larger than a few lines of text
<pie_>
otoh every discourse page i open lags my firefox for 20 seconds
<MichaelRaskin>
pie_: some of them are better without JS
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<edef>
pie_: i just avoid anything on Discourse
<edef>
imo it's not usable software, and anyone who can bear posting there must already have sufficient brain worms that i'm not interested in the content
<MichaelRaskin>
Well, it is _almost_ usable by replying to emails
<edef>
"almost"
<edef>
presumably this means i get emails that are just bad enough that using the accursed web UI is an improvement in usability
<edef>
quietly wishing our mailing list weren't a wasteland
<{^_^}>
[nixos-hardware] @Mic92 pushed 2 commits to master: https://git.io/Jf0hQ
<hsngrmpf[m]>
Hey guys, Is there a way to tell `autoPatchelfHook` to just ignore symbols which it cannot find a library for? The background to this is that some python manylinux1 wheels break the spec and link against `libcuda.so.1`. I'd like to just ignore that since the cuda functionalitty is not required. I cannot use `dontAutoPatchelf` variable, since i execute this on many projects with distinct directory structures.
KeiraT has quit [Remote host closed the connection]
teto has quit [Ping timeout: 260 seconds]
KeiraT has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<betaboon>
wtf. i found the reason for my sway-gtk3-antialiasing problem ... `xdg.portal.gtkUsePortal = true;` was causing it ... took 2 weeks to figure out
proofofkeags has quit [Remote host closed the connection]
<hyper_ch>
I ask regarding china because of https://www.apache.org/licenses/exports/ --> embargoed destinations. With Trumps latest decree (?) I tend to think software under apache licence can't be made available anymore in China
<hyper_ch>
betaboon: although, I think that still applies :) thx
Maxdamantus has joined #nixos
<simpson>
hyper_ch: In the 90s, the feds attempted to punish people merely for publishing FLOSS code which happened to be available to various nation-states. They backed off. https://en.wikipedia.org/wiki/Phil_Zimmermann is a good example coder.
<simpson>
I'd be more concerned with following whatever policies ASF asks of downstream distros, including ports trees like ours.
cole-h has joined #nixos
<clever>
simpson: i saw a comment on a recent youtube video, where the topic was cracking DRM in abandoned games, to preserve them
<clever>
simpson: and they mentioned that even discussing such things can be illegal in some areas
__monty_1 has joined #nixos
__monty_1 has quit [Client Quit]
<clever>
simpson: there is also the weird edge cases, like somebody buying the full rights to a once abandoned game, but the source has since been lost
<simpson>
clever: Yeah, it's a real problem. In the USA, discussion is usually not illegal, as long as the discussion doesn't involve explaining how to go do illegal things. But since information is so easy to transmit and copy, it's so hard to do things like avoid talking about forbidden chemistry or cryptography.
<hyper_ch>
betaboon: wouldn't curl be considered a hackertool?
<clever>
betaboon: another edge case, is what ive been doing with the rpi4 lately
<clever>
betaboon: the rpi4 boot process, involves loading a blob from SPI flash and running it
<betaboon>
hyper_ch: some ppl were arguing that ping might be considered a hackertool, thus making the sheer fact of owning a windows-pc illegal
<niso>
hyper_ch: maybe, stuff like dissasamblers and wireshark definitly is :/
<clever>
betaboon: that blob will enable the ddr4 controller, then load a start4.elf blob from SD, and execute it
<hyper_ch>
ssh allows you to break into remote computers... clearly a hackertool
<clever>
betaboon: and wanting to get as much open-source as possible, i wanted to replace both stages with open-source software
<clever>
betaboon: everything sounds fine so far, right?
<sasyctu[m]>
Is there documentation anywhere on how I can add a custom keyboard mapping to xkb?
<betawaffle>
i'm not super familiar with the C ecosystem in general
<clever>
betaboon: after a few days of stumlbing around and my custom binary always being ignored, i opened a ticket, and eventualy discovered, the 1st stage of the bootloader is signed
<clever>
betaboon: so only authentic firmware can run!
<clever>
betaboon: "ram copying", lol, so now memcpy() is illegal? :D
<clever>
betaboon: (also, i did "ram" copying to solve the rpi4 issue...)
<sasyctu[m]>
Thanks betaboon!
<sasyctu[m]>
Ah, I could set xkbDir
<simpson>
sasyctu[m]: To add to betaboon's link, you want the `services.xserver.extraLayouts` family. Also, if you need to experiment with the mapping, `xorg.xmodmap` is where xmodmap is hidden. (ji'a coi)
<sasyctu[m]>
Ah, that makes more sense.
<d4rkshad0w>
Hi. How can I add elements to a list in my configuration from two different imports?
<sasyctu[m]>
coi la simpson
<betaboon>
clever: yeah basically. they cited another case (linked there) which has "The court determined that a copy of a program made from a hard drive into RAM for purpose of executing the program was, in fact, a copy under the Copyright Act."
<clever>
betaboon: so, just running a program, is now illegal? lol
<betaboon>
clever: nono. only when you have to _copy_ it from harddrive to ram. if you buy the program on a ram-stick everything is fine XD
<clever>
lol
<betaboon>
i think thats what they call ramdisk xD
<clever>
betaboon: once i knew that the 1st-stage of the rpi4 boot was signed, i set to work cracking it!, i knew the address of the mask rom, and was able to easily dump that and begin disassembly
<sasyctu[m]>
Is there any way I can scope such xkb layouts to a particular user of the machine?
<clever>
betaboon: and with the hint of hmac-sha1 from another user who had already cracked things, i found the routines and eventually the full keys
<simpson>
That's a good question. I am lazy and just call xmodmap; I bet that there's a way to call xmodmap from the per-user xsession file.
<clever>
betaboon: and now i can sign my own boot files, and run them on an rpi4
<clever>
betaboon: which parts of that fall under the copyright act?....
<sasyctu[m]>
je'e
<simpson>
I think also home-manager has options for xkb.
zupo has joined #nixos
<betaboon>
clever: i have no clue. all of them ? XD
<clever>
betaboon: it also makes basically zero sense why the 1st-stage of the boot process is signed, it has never been signed on any other model
<clever>
betaboon: and it doesnt validate signatures for the 2nd stage, so any hope of secureboot style stuff is toast
<sasyctu[m]>
Yeah, I want to use home-manager eventually, but since this machine is just the result of me clobbering a borked arch installation with nix, my home directory is really chaotic and I haven't set about to cleaning it up yet.
<clever>
betaboon: the email in this tweet claims the signatures are required for "safety certifications" ....???
<simpson>
No worries; my homedir is still messy from changing from Gentoo from years ago. There's no shame in having a messy room; it means that you do things.
<betaboon>
clever: i have given up on trying to understand secure-boot, tpm and all the certificatoin bs surrounding that
<sasyctu[m]>
Yeah, my point was more when I looked at home manager it said it was likely to do bad things if you don't configure it right, and I haven't backed up everything off here that I need to yet. I'll get to it eventually though.
<clever>
betaboon: the basic idea with secureboot is just to ensure that no binary in the boot chain is ever modified without permission from some user or group of users
<sasyctu[m]>
tangentially, does anybody here do much with wine? I was trying to run Scrivener today and it failed saying wine failed to load kernelbase.dll. I have the normal wine-wow-5.0 packages, so I don't know what could be causing that.
<clever>
betaboon: for a typical x86 machine, the bios would maybe be signed, and validated by the maskrom in the cpu/management engine (optional steps)
<clever>
betaboon: then the bios will validate the .efi binary is correctly signed
quinn has quit [Ping timeout: 258 seconds]
<clever>
betaboon: and then its up to the user with the keys, to ensure that efi binary can only ever execute more code, that has been signed with approved keys
quinn has joined #nixos
<betaboon>
clever: yeah i know how it is supposed to work. at a past employer we discussed if we should use tpm or not. but then came all the attacks on tpm...
ddellacosta has joined #nixos
<clever>
betaboon: and the end result, is that everything in kernel mode and your drivers are all signed and can be trusted, so you dont have to worry about kernel level rootkits
<clever>
betaboon: tpm is a seperate thing, parallel to secureboot
<clever>
betaboon: i think the main thing you would have wanted is measured boot, where instead of restricting what runs, you just report the hash of each thing that runs (to the tpm), before passing on control
<clever>
betaboon: and if you can replay the same sequence of hashes, the tpm unlocks itself, and then you can use secrets
<clever>
betaboon: if the chain of hashes is wrong, you must reset both the cpu and tpm, and its up to the motherboard&bios to ensure you can never reset only the tpm
<clever>
betaboon: and then it relies on the bios being authentic, so the logs get reported correctly
<{^_^}>
[nixpkgs] @prusnak opened pull request #88023 → treewide: split name into pname/version for unstable packages → https://git.io/JfEe8
<clever>
betaboon: but you can always just rip the tpm off the board, and then play a fake log to it directly
afontaine[m] has joined #nixos
<clever>
then its just down to the tpm being configured to self-destruct when you get it wrong too many times, and if you know what the right hashes where ahead of time
<clever>
betaboon: i dont really see any way to stop things if the attacker has physical access, so this is mostly just a software restriction
<clever>
betaboon: in theory, you could also implement a lot of the above on an rpi4, if the per-device key wasnt burnt into it
<clever>
betaboon: and with the right docs, you could maybe even make it more secure then all of the above, to the point where not even physical access can beat it
vidbina has joined #nixos
<betaboon>
clever: yeah in theory secureboot etc is a nice idea. but then you run into: producers of firmware not caring, making huge mistakes, a truckload of working attacks on secureboot over the years. and woosh gone is the trust. which is like 1/3 of tpm :D
<clever>
betaboon: basically, there is a per-device signing key in the OTP memory, so if i got a "blank" cpu, i could program my own key, and then only a bootcode.bin i trust can ever run
aleph- has quit [Quit: WeeChat info:version]
<clever>
betaboon: my custom bootcode.bin can then implement the TPM functionality, and also block the arm from ever reading OTP, and ensure all VPU firmware is also signed by a key i trust
<clever>
betaboon: and boom, you now have secureboot and tpm, on an rpi4, and physical access suddenly requires MUCH higher skills, because the keys are on the same silicon as the cpu
<clever>
betaboon: at this point, you need to melt the epoxy off the cpu with acid and start probing the bare die, or use undocumented vpu jtag stuff
morgrimm has joined #nixos
morgrimm_ has joined #nixos
aleph- has joined #nixos
<clever>
betaboon: the rpi4 is basically setup to have videogame console level security, and if the firmware was done right, you could make it a nightmare to crack
<clever>
betaboon: but due to them half-assing it (turning it on, but then throwing security out the window), they have forced me unto RE'ing it more, and now half the secrets are out of the bag :P
<clever>
betaboon: though, from what i hear, most of this security code has been around since the rpi1, and others have already cracked it back then
bqv has quit [Quit: WeeChat 2.8]
oborot has joined #nixos
afontaine[m] is now known as sparogy
bqv has joined #nixos
kim0 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sasyctu[m]>
Is there an easy way to get nixos to reload a custom keyboard map that I gave it a directory for? I loaded it to make sure it'd work, and it does, but I made some changes and I'd like to reload them without logging out of x
reallymemorable has quit [Quit: reallymemorable]
numkem has joined #nixos
litschi has quit [Quit: WeeChat 2.7.1]
litschi has joined #nixos
<numkem>
I'm trying to understand what `niv` does and it looks interesting, but if I understand correctly it makes you able to pin specifc commits inside the channel and also import packages on github. From my exploration with `nix repl` it seems like what you add to niv through github needs to have a `default.nix` am I wrong?
reallymemorable has joined #nixos
<clever>
numkem: niv just provides a path to whatever you added
<clever>
numkem: you can then do `import sources.thing` to load the default.nix or `import "${sources.thing}/foo.nix"` to load foo.nix
zupo has joined #nixos
<numkem>
clever: that's what I understand. What puzzles me is why are they putting jq as the example when it doesn't have a default.nix inside the repo
<betawaffle>
hmm, why is nix-shell not doing backspace correctly...
<clever>
numkem: thats a bit of a bad example, the most you can do with that is then `pkgs.jq.overrideAttrs (old: { src = sources.jq; })`
<cole-h>
Does NixOS have a cups module, and if so what is its name?
<betawaffle>
i could have sworn it was working earlier today
<clever>
numkem: to replace the source of the jq package thats already in nixpkgs
<numkem>
clever: I guess it could be used inside an overlay definition, to not have to write it by hand
<numkem>
clever: since it does the sha256 by itself
<clever>
numkem: the main thing niv offers there, is making it trivial to update the rev/sha256, you just `niv update jq` and it will get the latest commit on the current branch
<clever>
numkem: or `niv update jq -a branch=testing`
<numkem>
clever: good, I understand than :)
<clever>
numkem: it becomes a lot more powerful if you point it to something with actual nix files, then you can import them
<betaboon>
cole-h: i have had success with `services.printing.enable = true; services.printing.drivers = with pkgs; [ ... ];`
<numkem>
clever: I've just started looking at my own overlay and see how I could build/distribute it, sounds like it would be useful
<cole-h>
betaboon++ Thanks, I'll have to check that out.
<{^_^}>
betaboon's karma got increased to 4
<betaboon>
cole-h: iirc i had to do `services.avahi.enable = true;` and `services.avahi.nssmdns = true;` as well. i dont use that setup atm tho. so cant check
<cole-h>
Cheers, thanks.
fling has joined #nixos
<pie_>
clever: somehow nixos-install puts stuff in the target store and then cant find it
<clever>
pie_: its using local?root=/mnt/ to fake a chroot
<clever>
pie_: but there are some bugs in the IFD stuff, where its looking on the host instead
<pie_>
ok this i weird, in nixos-enter it complains about some write not allowed
<pie_>
thats..possible
<clever>
pie_: you need to `nix copy --from local?root=/mnt /nix/store/foo` to copy it back out to the host
<pie_>
* i was using nixos-rebuild for the nixos-enter part
<clever>
nixos-enter is using namespacing to set things up, and that also has bugs that break the nix sandbox, --option sandbox false
<pie_>
blegh
<pie_>
is this stuff at least fixable in theory
<clever>
yeah
<pie_>
ill still maybe need to do store copying if it intends to build the kernel
<pie_>
lets hope it just works
<pie_>
well - it wont work if it hasnt copied into the target store yet and i imagine it hasnt
<clever>
pie_: have you seen my remote chroot idea?
<clever>
`?remote-store=` changes the URI the remote nix uses
<clever>
pie_: then the local?root=/mnt works as usual, but against the remote nix
<clever>
pie_: so you can now copy a storepath from one machine to another, but the destination is /mnt/nix/store/
<clever>
pie_: if you then pre-build a nixos from a given config, you can copy it over, and then just tell nixos-install to fix the bootloader and your done!
<pie_>
uhuh
<pie_>
i kinda get it
<pie_>
would be cool
<pie_>
would also be cool if those ancy urls get some documentation because they didnt have any last i looked at them :P
knupfer has quit [Remote host closed the connection]
<clever>
pie_: i went thru all of my irc logs, to get every example i could find, and then began documenting the ones that looked interesting
nschoe has joined #nixos
<pie_>
lmao nice
<pie_>
The True Nix Way
<cole-h>
betaboon: lol, I just scrolled down in the generated configuration and it has a CUPS comment... That's what I get for not reading the entire thing.
<pie_>
so im doing nix copy --from local?root=/mnt /nix/store/v1mww... and it says path is not in the nix store
<clever>
pie_: does it exist at /mnt/nix/store/foo?
<pie_>
clever: lol i made a typo i think sorry sigh
<clever>
pie_: if you know the full layout of the hw, and your also in control of the partitioning, you could pre-build the configuration.nix/nixos in the same container
<clever>
pie_: and then `nix copy` it over, after another script (like justdoit) has partitioned things
<pie_>
yeah but idk if i wanna do repartitioning here
<pie_>
oh but sure i dont see why i couldnt nix copy stuff over
<clever>
pie_: if your only formatting, you can still set a label, and use LABEL= in the configuration
<cole-h>
When installing a package that has $out/etc as a systemPackage, the contents get linked to /etc, right?
<MichaelRaskin>
Nope
EatThem has joined #nixos
<MichaelRaskin>
Only to /run/current-system/sw/etc
<EatThem>
hi, someone who runs nixos in wsl as a rootfs package?
<cole-h>
MichaelRaskin: I see. Does, for example, pam look in /run/c-s/sw/etc/pam.d as well as /etc/pam.d?
sylv-io has joined #nixos
<EatThem>
wsl --exec vim isn't working and don't know why, bash doesn't seems to be invoked when i use exec to run a command. Normal shell access with only "wsl" works as accepted..
<MichaelRaskin>
No
<MichaelRaskin>
(as far as I remember)
xelxebar has quit [Remote host closed the connection]
<rardiol>
I installed nvidiaLegacy340 (updated to 340.108 myself), but nothing opengl related seems to work. xpdyinfo does show GLX and NV-GLX active. There's a libGL.so on /run/current-system/lib. nvidia-settings says "failed to query the glx server vendor". glxinfo says "couldn't find RGB GLX visual or fbconfig". lsmod shows the "nvidia" driver loaded . kernel 5.4. Are the messages saying "nvidia_drm" and "nvidia_modesetting" weren't loaded important?
<evanjs>
You can do it on the commit but I figure that’s not what you want
<cole-h>
I'd rather not have to type out the entire hash lol
<evanjs>
I figured
fabianhjr has joined #nixos
<evanjs>
I know you can get patches/diffs from a PR, I wonder if commits have similar functionality
<evanjs>
And I’m assuming you want to do this without external tools like gh or even git, right? Like I’m assuming you’re just curious if you can do it with a specific url
<cole-h>
I don't think we have a toggle for sudo, so I think it should be fine to remove here as well.
* cole-h
verifies
<adisbladis>
Idk, I could easily be convinced the option is the correct choice here
opthomasprime has joined #nixos
opthomasprime has quit [Remote host closed the connection]
<adisbladis>
cole-h: I'm gonna leave this one up to you ;)
<cole-h>
Heh.
orivej_ has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
Neo-- has joined #nixos
opthomasprime has joined #nixos
fabianhjr has quit [Ping timeout: 265 seconds]
dermetfan has joined #nixos
<cole-h>
adisbladis: I say shipit as-is. It doesn't really affect the package for anybody other than the hypothetical people who wouldn't enable it in the first place.
<cole-h>
And if those hypothetical people don't want it, there's now a toggle for them.
xxlpitu has joined #nixos
<adisbladis>
Alright
chloekek has quit [Ping timeout: 258 seconds]
gustavderdrache has joined #nixos
aswanson has joined #nixos
opthomasprime has quit [Remote host closed the connection]
EatThem has joined #nixos
opthomasprime has joined #nixos
<cole-h>
adisbladis: btw that x86_64-linux test isn't going to happen any time soon. ofborg on network maintenance
<{^_^}>
[nixpkgs] @Mic92 pushed 3 commits to release-20.03: https://git.io/JfEIX
morgrimm_ has quit [Ping timeout: 272 seconds]
morgrimm has quit [Ping timeout: 272 seconds]
aswanson has joined #nixos
Fulgen has joined #nixos
asymptotically has quit [Quit: Leaving]
teto has joined #nixos
nschoe has quit [Quit: No Ping reply in 180 seconds.]
domogled has quit [Quit: domogled]
xxlpitu has quit [Remote host closed the connection]
nschoe has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
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
knupfer has quit [Client Quit]
zaeph1 has joined #nixos
Maxdamantus has quit [Ping timeout: 260 seconds]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
<{^_^}>
[nixpkgs] @mjlbach opened pull request #88031 → Bump cudatoolkit in pycuda derivation, remove boost dependency → https://git.io/JfEIj
Maxdamantus has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
zaeph has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
<quinn>
i am looking to bump my stateVersion, and per the release notes of for 19.09, apparently i need to be on stateVersion 19.03 to keep timesyncd working? is there any way i can fix this?
<clever>
quinn: i think theres something like just deleting a state file or rebooting to fix that?
shafox has quit [Remote host closed the connection]
<EatThem>
someone running nixos in wsl2?
<EatThem>
wsl --exec vim isn't working and don't know why, bash doesn't seems to be invoked when i use exec to run a command. Normal shell access with only "wsl" works as accepted..
<EatThem>
*expected
reallymemorable has joined #nixos
o1lo01ol1o has joined #nixos
reallymemorable has quit [Client Quit]
<quinn>
clever: i'm not sure but the related issue #64922 seems to indicate it's probably an easy fix
<adisbladis>
energizer: Under the hood it's just regular python builds
<adisbladis>
It's still using buildPythonPackage
<energizer>
mhmm
reallymemorable has quit [Client Quit]
reallymemorable has joined #nixos
oborot has quit [Ping timeout: 265 seconds]
cmk_zzz has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
cfinch has quit [Quit: Leaving]
<sasyctu[m]>
So I've been trying out wine on nixos and I'm getting an error that it can't load kernelbase.dll. I haven't been able to find anything about this either in nixos related things, or in wine related things, so I'm curious if this is something some people have run into, or if it's an issue I need to open.
CitadelCore has joined #nixos
<teto>
random question in case someone has an idea but it seems like google can access my microphone only in incognito mode. Any hint ?
morgrimm has joined #nixos
<clever>
teto: if you click the padlock, you should see options for things like media in there, for that specific domain
<CitadelCore>
Hello, I am trying to build a NixOS 20.03 image for ARM with nix on Ubuntu 20.04, and getting this error:
<CitadelCore>
"while setting up the build environment: executing '/nix/store/2d9hsg0c4afx1galgfmz2jhgwgcaqsx8-bash-4.4-p23/bin/bash': No such file or directory"
<CitadelCore>
even though that binary 100% exists...
opthomasprime has left #nixos [#nixos]
<clever>
citadelcore: what does file say about the binary?
<quinn>
for posterity: bumped stateVersion 19.03 -> 20.03, systemctl --failed is empty
<CitadelCore>
clever: "/nix/store/2d9hsg0c4afx1galgfmz2jhgwgcaqsx8-bash-4.4-p23/bin/bash: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /nix/store/l6pd77qpfb2930qs35z8ri9vfyyybhvz-glibc-2.30/lib/ld-linux-aarch64.so.1, for GNU/Linux 2.6.32, not stripped"
<clever>
citadelcore: and are you on an arm system?
<CitadelCore>
no, I'm using binfmt via QEMU
<clever>
citadelcore: did you tell nix to allow the qemu-user-aarch64 binary into the nix sandbox?
<teto>
clever: I checked several timesm enabled it etc, I enabled it again because you asked and only now it works. this is crazy xD ty
<CitadelCore>
what I've done is so far is set extra-platforms in nix.conf & passed --argstr system aaarch64-linux to nix-build
<clever>
citadelcore: the problem, is that binfmt-misc changed argv[0] to your qemu-user binary
<clever>
citadelcore: and its the qemu-user binary that was not found
<clever>
citadelcore: you need to add the qemu-user to this field in nix.conf
<CitadelCore>
thanks, will give that a shot
cfinch has joined #nixos
<CitadelCore>
what's the best way to find out the path of qemu-user?
<CitadelCore>
(in /nix/store)
<cole-h>
`readlink $(which qemu-user)` should work I think
slack1256 has quit [Ping timeout: 260 seconds]
dugur has joined #nixos
<{^_^}>
[nixpkgs] @flokli opened pull request #88032 → nixos/scripted-networking: use udev to configure link MACAddress and MTUBytes → https://git.io/JfELp
Negher has joined #nixos
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
<CitadelCore>
alright - it's working now, for anyone with the same problem, this is my extra-sandbox-paths line:
<clever>
citadelcore: if ld.so discovers that you set the env var LD_TRACE_LOADED_OBJECTS=1, it will print the libs and exit without running main()
<clever>
citadelcore: ldd is just a shell script to run ld.so on a binary, with that env var set
gnidorah has quit [Quit: Connection closed for inactivity]
<CitadelCore>
Huh
<clever>
and ld.so is the interpreter (its a field in the ELF file), so running a binary normally also runs ld.so on it
<clever>
the same way #!/bin/sh runs sh on the shell script
<clever>
citadelcore: try `LD_TRACE_LOADED_OBJECTS=1 ls` and youll see what i mean
<CitadelCore>
oh yeah, it prints its deps
<CitadelCore>
nice
<clever>
and if that var was set, when qemu-aarch64 got ran, it would print the x86 deps and exit
<clever>
rather then emulating the arm ld.so
<clever>
a static qemu-aarch64 cant do that, so the var properly leaks into the guest
<CitadelCore>
... should I be concerned about this?
<CitadelCore>
"error while reading directory /nix/store: Cannot allocate memory"
zupo has joined #nixos
<CitadelCore>
seems to be non-fatal, as it went ahead and finished the build
orivej has quit [Quit: No Ping reply in 180 seconds.]
mac10688 has joined #nixos
orivej has joined #nixos
cfinch has quit [Ping timeout: 260 seconds]
<mac10688>
hi all, i recently upgraded nixos. After the update, I find that the font in all my consoles are spaced too far apart. Any clue how to fix?
<mac10688>
I have looked at the configuration file and the urxvt .Xresources file but I don't see anything to fix it
<mac10688>
exit
<mac10688>
ugh! sorry!
mac10688 has quit [Quit: WeeChat 2.7.1]
mac10688 has joined #nixos
o1lo01ol1o has joined #nixos
<mac10688>
and nvm btw, I think the system font has changed the style I was using for urxvt. I think I can solve this by changing my urxvt .Xresources files
<unclechu>
hey, how do i customize font rendering settings? i don't like default rgba subpixel hinting, i'd like to keep grayscale antialiassing only
almostvoid has quit [Remote host closed the connection]
knupfer has quit [Client Quit]
knupfer has joined #nixos
charukiewicz has joined #nixos
<mac10688>
Are you talking about in the terminal unclechu ?
<unclechu>
mac10688: about everything, in gtk, qt applications
reallymemorable has joined #nixos
<charukiewicz>
Two questions: when defining a pkgs source in something like a Haskell package I'm developing (using builtins.fetchGit), is it better to use the nixos/nixpkgs repo or the nixos/nixpkgs-channels repo, and on each of those is it better to use the nixos-unstable or the nixpkgs-unstable branch? Or does it not really make a difference?
<mac10688>
unclechu: sorry I am no help to you then
<NickHu>
I don't think anything here would be particularly contentious
<energizer>
i accidentally killed ssh-agent and now x11-askpass is full-screen prompting me every couple minutes. i figure there's some process(es) that has the old agent pid in its environment. do i need to reboot in order to restore sanity or is there a less drastic action?
<cole-h>
Do you have an ssh-agent systemd service (user or system)? Try restarting it.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ashy>
hmm, i have nscd disabled and my configuration.nix is now failing to build on the nixos-unstable channel, is nscd a hard requirement now?
<Ashy>
i have it disabled because my only interaction with it is having it cache bad dns info and cause headaches on multiple machines without ever noticing any benefit from it
<Ashy>
nixos-rebuild fails with: Failed assertions: - Loading NSS modules from system.nssModules (/nix/store/fwaclgpjqbrz2dwq3alm49swzzrvv4p7-systemd-245.5/lib), requires services.nscd.enable being set to true.
<Ashy>
ah i see the doco "strongly discourages" disabling nscd, :/
<{^_^}>
[nixpkgs] @7c6f434c merged pull request #86843 → Enhanced support for Gerbil, Gambit → https://git.io/JfGWn