<samueldr>
I don't know if in a chroot it's supposed to work
<K0kada>
This is what I did for my config
<bqv>
davidak[m]: do you use bcachefs?
<bqv>
natively? on your nixos
<samueldr>
colemickens: it's extremely useful for early boot with bad UEFI, it's also why it's on the nixos install image :)
<K0kada>
The nice thing is that you can merge ovewrite the configuration for some specific service using the merge operator
<aterius>
I can just try finding a usb stick
<samueldr>
colemickens: if your system ends up unbootable due to bad UEFI implementation losing the entries, you can use the installer image to choose an UEFI program
chiefgoat has joined #nixos
<samueldr>
I *personally* have been saved a couple of times by that feature
supersandro2000 has quit [Disconnected by services]
<colemickens>
samueldr: is the installer image refind too, or is grub able to scan as well then?
supersandro2000 has joined #nixos
<K0kada>
@boon Does it make sense?
<samueldr>
there is refind on the installer image, which grub can boot into
<colemickens>
aha
domogled has quit [Quit: domogled]
<K0kada>
bo
K0kada has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @MetaDark opened pull request #109060 → # nixos/xdg/portal: fix loading portals from systemd service → https://git.io/Jtvfr
<davidak[m]>
bqv: no. i only test it every now and then. i wouldn't trust it with important data until it is in mainline linux. maybe if i tested more... but it's not that important. i just wait for more development
<bqv>
interesting. okay
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/Jtvfo
K0kada has joined #nixos
<bqv>
i want to use it for something but every filesystem i have is either EFI system or part of my btrfs disk
<b00n>
K0kada: thanks for that hint, which sounds great. Sadly it throws by me: "undefined variable 'commonFlags' at /etc/nixos/configuration.nix"
<K0kada>
b00n, you need to set it in a let
<K0kada>
let commonFlags = {...} in { #your actual configuration }
<K0kada>
You can't set random variables inside a set because they're generally used as input for functions in NixOS
<K0kada>
In the cases where you can, you can use a recursive set, but anyway it is better to use a let
<bqv>
actually, it's better to use options
K0kada has quit [Remote host closed the connection]
<bqv>
nixos evaluation is painfully un-introspectable and not as maximally configurable because there's so much 'let' everywhere. things should be options in every place possible and sane
Jd007 has quit [Quit: Jd007]
<aterius>
Looking over the manual, the section on UEFI configuration is kind of confusing
<aterius>
I don't think that's true? I use grub on UEFI instead of system-d boot?
<bqv>
K0kada: it's better to use options. nixos evaluation is painfully un-introspectable and not as maximally configurable because there's so much 'let' everywhere. things should be options in every place possible and sane
<colemickens>
mjlbach: I just pulled it up, I think that section is not well written
<colemickens>
mjlbach: it does misleadingly make it seem like you can't use grub for uefi
<davidak[m]>
systemd-boot is recommended for EFI i think
<colemickens>
maybe it should also mention refind as an option
<colemickens>
The "you *must*" verbiage is the weird part
<b00n>
"syntax error, unexpected LET, at /etc/nixos/configuration.nix". Sorry, if I'm too dump. I try a web search with that new knowledge from you, so thanks a lot for your help 'til this point.
<aterius>
I don't know if this has changed, I feel like the first time I installed nixos ~2 years ago this wasn't the case
rajivr has joined #nixos
<aterius>
this ~= the verbage
<K0kada>
bqv, Is there somewhere you can add a random attrs to use somewhere else as a option?
<bqv>
K0kada: yes, anywhere
<K0kada>
I remember that I was having this exactly issue, it didn't allow me to set something like myUser
<Zoom[m]>
You probably shouldn't *follow* K&R at this point
<K0kada>
But let is not wrong too
<K0kada>
On my private config at least
lukegb has quit [Quit: ~~lukegb out~~]
<b00n>
K0kada: Thanks a ton! I got your patebin example to work, after fixing some expected ';'. Now I try the bqv version...
<K0kada>
And btw, I was quite excited by using your example bqv, but seeing that you need to type
<K0kada>
Well, I will keep my hack
<DigitalKiwi>
can i just say please don't use pastebin.com :(
<K0kada>
I mean, I like typing in modules for NixOS, but my personal config is my personal config
<bqv>
you can use types.unspecified, but you'll end up with someone else screaming at you
<K0kada>
I don't want to add types everywhere
<K0kada>
Well, remember this is my own config
<bqv>
types are a good thing, my dude.
<K0kada>
Only me will scream at myself
<K0kada>
I know, re-read what I said
<bqv>
DigitalKiwi: i only used it cause the clone button is very convenient
<DigitalKiwi>
00:27 phrik: Pastebin.com is swamped with advertisements and random captchas. Malware found on pastebin.com has resulted in it being blocked for some users. It injects CRLF line-endings. Please, use something else. Use something sane like https://gist.github.comhttps://bpaste.nethttp://ix.iohttps://paste.rs
lukegb has joined #nixos
<bqv>
K0kada: once your config grows reasonably big, you're going to change your mind
<K0kada>
Well, my config is reasonably big thank you ;)
<armin>
fork/exec /home/armin/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-g++: no such file or directory
<armin>
Error compiling for board ESP32 Dev Module.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JtvJU
m0rphism has quit [Ping timeout: 256 seconds]
<K0kada>
b00n: yay, gladly I can help
<K0kada>
I just found your question funny because I did this exactly same thing like last week
<aterius>
I feel like we should add something on the wiki about recovering your EFI with refind
<aterius>
jfc that was easy
<aterius>
Thanks samueldr
<aterius>
and colemickens
<cole-h>
supersandro2000: Though it is definitely a bit hacky, when used in conjunction with flakes (as you can see, I had to hardcode the current dir's path).
<supersandro2000>
cole-h: I don't see any benefit over my current git repo
<cole-h>
I'm just saying
<cole-h>
It's possible
<supersandro2000>
I need to clone that one anyway because I need the nix config
<cole-h>
Having writable state without needing to redeploy
<supersandro2000>
and can't deploy WSL over nixops
<supersandro2000>
cole-h: yeah but I won't gain anything
<supersandro2000>
putting most stuff into extra config is also not great
<K0kada>
BTW, is someone suffering with the current inflexibility of libinput module and want help me to review/merge a fix?
<supersandro2000>
and that nix sorts things is also not great
<K0kada>
I separated the libinput config in mouse/touchpad, so no more services.xserver.libinput.naturalScrolling = true affecting both mouse and touchpad
<K0kada>
It is working for me, but I need someone to review/test it
<supersandro2000>
my wild guess why no one fixed that yet: you either use one
<b00n>
I can't get the bqv version to work: "attempt to call something which is not a function but a set, at /etc/nixos/configuration.nix"
mbrgm_ has joined #nixos
<bqv>
this is why i don't code in pastebins :p
<K0kada>
supersandro2000, well I saw some PRs trying to fix it
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
aswanson has quit [Ping timeout: 256 seconds]
<K0kada>
I posted a workaround in one of the issues and I think most people that suffered from it ended up using my workaround (or one of the multiple workarouns I found)
<bqv>
b00n: what line?
aveltras has quit [Quit: Connection closed for inactivity]
<b00n>
line 7
<{^_^}>
[nix] @rickynils opened pull request #4443 → Don't let 'preferLocalBuild' override 'max-jobs=0' → https://git.io/JtvJc
<bqv>
i'm not sure how that could go wrong, it's hard to say without seeing the file
<aterius>
Another roadblock, if your network.interfaces is set to a non-existent interface, so you don't have internet, what can you do?
<cole-h>
Statefully set up internet with ip(1), probably
<bqv>
b00n: tl'dr, if you take the file you had before, move everything {<here>} into { config = {<here>}; }, and then add the options thing from the pastebin, you can set and use 'my.commonArgs'
<armin>
what's "network.interfaces"?
<armin>
ah, you mean "networking.interfaces"?
<armin>
if you don't set that, at all, it defaults to using dhcp anyways
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JtvUY
<Vanilla[m]>
what the heck does `fetchgit` do?? I want to extract a list of submodules and their hashes from a git repository. However, even with `deepClone` and `leaveDotGit`, I'm getting _nothing_? how can this be?
<aterius>
Hah I get kernel panic when trying to use the iso installer
<colemickens>
!
<aterius>
Really not my day
<aterius>
Fails during stage 1 for some reason
<Vanilla[m]>
mjlbach are you installing on real hardware?
<aterius>
Yes
<Vanilla[m]>
darn. never tried that
<aterius>
Is it a zen 3/x570 issue with the kernel version?
<fuzzypixelz>
this https://github.com/NixOS/nixpkgs/blob/nixos-20.09/pkgs/data/soundfonts/fluid/default.nix#L18 doesn't build properly for me, it just ouputs a derivation. If I build the derivation with nix-build it just outputs a tar archive (what?). In regular linux, you're supposed to have these files under /usr/share/... and select them through a gui or something
<fuzzypixelz>
Line 14 supposedly installs it at $out/share/soundfonts/FluidR3_GM2-2.sf2
<fuzzypixelz>
well
<b00n>
Tried a lot now, and mixed with the infos from here: https://nixos.wiki/wiki/Module, but can't get your (bqv) version to work, while it's looking great. Thanks a lot K0kada & bqv for your help. I will play around a bit more with your solutions.
<colemickens>
Someone made a flake for nixpkgs-mozilla, right? for rust at least?
<aterius>
It would be great to have this as a download link on the install page haha
<aterius>
(thank you for the link)
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 39 commits to staging-next: https://git.io/JtvUg
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 44 commits to staging: https://git.io/JtvU2
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JtvUa
<Piece_Maker>
I still can't seem to get my lets Encrypt cert to renew, when I run the service manually (like sudo systemctl start acme-domain.service) it tells me that it was 'unable to deactivate the authorisation'? does anyone know what this means? I've tried searching that error and not come up with much
<fuzzypixelz>
I don't get it at all. The nix drv supposedly installs it _somewhere_ but when I build it all I get is the tar archive, that's the same as not packaging it at all
<aterius>
Still failing now with `mounting /deve/loop0 on /mnt/root/nix/.ro_store failed: invalid argument`
<colemickens>
cole-h: yeah, thank you! I just shared it on Discourse.
<abathur>
they at least provide a known-good-ish reference point if it is new enough
<Vanilla[m]>
abathur: I doubt it, since the PR got merged this morning
<abathur>
gotcha
<Vanilla[m]>
pbb: this looks like it will work. Might this rebuild every single package that's not cached, though?
<Vanilla[m]>
I'm running in a VM and that would probably take the full day
<cole-h>
It'll only rebuild nix itself
<Vanilla[m]>
I guess I'll try and see :)
<{^_^}>
[nixpkgs] @iblech opened pull request #109064 → abuse: init at 0.8 → https://git.io/JtvUd
<Vanilla[m]>
oh, sweet
EmoSpice has joined #nixos
noonien has quit [Remote host closed the connection]
<EmoSpice>
Good evening - I'm curious what people are doing for a problem I am facing and having trouble coming up with a solution for. I'm interested in testing out devshell, but it's distributed only as a master release tarball on github. As I understand it, `fetchFromGitHub` will download, unpack, and place a tarball's contents into the store - but I'm unsure how to then use that as a package source in,
<EmoSpice>
say, my home-manager config without explicitly pre-downloading the repo in question.
<EmoSpice>
I'm far from afraid of managing a git clone, but am curious if there's a better way
dandart has quit [Ping timeout: 256 seconds]
<cole-h>
It has a default.nix, so you could probably just add `((import ([fetchFromGitHub source])).devshell)` to your home.packages
* EmoSpice
shrugs.
<EmoSpice>
Why not try it.
<EmoSpice>
I'll report back shortly. Thanks for the feedback.
thc202 has quit [Quit: thc202]
<Vanilla[m]>
looks like fetching from github's archive worked. It'll take forever to build Nix either way, though.
<Vanilla[m]>
isn't there a karma system here?
<Vanilla[m]>
pbb++
<{^_^}>
pbb's karma got increased to 4
<Vanilla[m]>
cole-h++
<{^_^}>
cole-h's karma got increased to 119
<pbb>
^-^
D_ has joined #nixos
slack1256 has joined #nixos
cole-h has quit [Ping timeout: 264 seconds]
<aterius>
Does anyone know if you have to enable an interface under interfaces?
<EmoSpice>
well, nothing quite resembling success yet...nix-darwin seems to have barfed on the permissions on my nix store. Now to debug that before I can install anything :/
<ZaraChimera>
I added channels with my user and when running a nix-env -qa command I gett a message about name collision in input Nix expressions, skipping /home/$user/.nix-defexpr/channels_root/nixos
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ZaraChimera>
What did I end up glitching?
<clever>
ZaraChimera: compare `nix-channel --list` and `sudo nix-channel --list`
copumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<clever>
each user has their own list of channels, and you can cause a collision if both $user and root have the same name
<ZaraChimera>
Ah, looks like user and sudo have the same name nixos for the nixos-20.09 channel.
<clever>
there is no point in having nixos-20.09 on both users
<ZaraChimera>
Makes sense, since that is also the one set in configuration.nix...
<clever>
,stateVersion
<{^_^}>
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
<clever>
it isnt
<ZaraChimera>
I have left my stateVersion as is. I didn't realize that I don't need a nixos-20.09 in both sudo and user.
<clever>
root's channels are available to every user
<ZaraChimera>
Ah. So as long as the channel is listed in root, then I don't need to duplicate them in my user profile?
<clever>
correct
veleiro has quit [Ping timeout: 240 seconds]
<ZaraChimera>
Okay. Is there a way for nix-env -qa to display options only from a specific channel? -f doesn't seem to be the right flag for how I have my system set up.
<clever>
by default, <nixpkgs> maps to the channel named nixos on root
<clever>
so `-f '<nixpkgs>'` would probably work
<ZaraChimera>
In single quotes with the <> ?
<clever>
yeah
<ZaraChimera>
Okay.
<jasom>
Is there a directory that contains all of the system fonts in /run/current-system (equivalent to /usr/share/fonts on a traditional system)?
<clever>
jasom: /etc/fonts/fonts.conf i think
<jasom>
clever: no, that's for fontconfig; the program I'm working with expects a directory that contains the fonts
<clever>
jasom: not sure that one exists...
<ZaraChimera>
Is it possible to add older nixos-xx.xx to channels? I was looking for one that had enlightenment-DR16 in it to add it as a window manager option.
<clever>
ZaraChimera: check the man page for nix-channel, you can just give a name and url at the same time
<ZaraChimera>
Okay.
orivej has joined #nixos
* ZaraChimera
is slowly learning my way around.
<ZaraChimera>
Loving the ability to test, roll back and upgrade without having to reboot most of the time.
<jasom>
clever: I'll point it at x11.fontmiscmisc for now
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 18 commits to staging-next: https://git.io/Jtv3V
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 19 commits to staging: https://git.io/Jtv3r
<ZaraChimera>
Odd. DE added two entries for the same program. One with an icon and one without (Midori 9.0 browser)
dandart has quit [Ping timeout: 246 seconds]
palo1 has joined #nixos
<ZaraChimera>
I have been using ls | grep foo in the nix/store directory to locate things. Is there an easier method to search and locate stuff (i had to locate the maia directory to be able to customize icons in my DE)
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
waleee-cl has quit [Quit: Connection closed for inactivity]
LeafGecko has quit [Ping timeout: 240 seconds]
kalbasit has quit [Ping timeout: 240 seconds]
CMCDragonkai has quit [Remote host closed the connection]
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<{^_^}>
[nixpkgs] @jonringer pushed 5 commits to release-20.09: https://git.io/Jtvs4
<aterius>
Anyone using flakes run into an issue where a package will build as an output, but building the package manually in a devshell throws a missing library?
<aterius>
It's in make CMAKE_LIBRARY_PATH for sure
EmoSpice has quit [Ping timeout: 264 seconds]
vidbina_ has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed commit from @primeos to staging-next « gnupg: 2.2.26 -> 2.2.27 »: https://git.io/JtvZa
saschagrunert has joined #nixos
saschagrunert has quit [Read error: Connection reset by peer]
ChengCat has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed commit from @primeos to master « gnupg: 2.2.26 -> 2.2.27 »: https://git.io/JtvZr
<aterius>
Is there a convenient way to bring in standard debugging tools into a devshell? Or do you just normally add it into buildInputs?
saschagrunert has joined #nixos
<ChengCat>
Hi. When a package put a user systemd service file in $out/lib/systemd/user/xxx.service, the service file isn't symlinked in /etc/systemd/user. Is this intended behavior?
<dminuoso>
rauno: Not sensibly in the general case.
<DigitalKiwi>
not when i do this lol nixos-rebuild switch -I nixpkgs=~/projects/github.com/Kiwi/nixpkgs
ericsagnes has joined #nixos
<bqv>
I used arch way back when... then mainly gentoo. Even gentoo's more stable than arch
attila_lendvai has joined #nixos
attila_lendvai has joined #nixos
attila_lendvai has quit [Changing host]
<bqv>
DigitalKiwi: well if you're using your fork, all stability guarantees go out the window :D
<DigitalKiwi>
idk i've updated arch by 3 years at a time and it still worked :P
<DigitalKiwi>
i used to have a picture "fsck hasn't been run in 1300 days"
<dminuoso>
rauno: Just do it yourself, nixops doesn't really do anything fancy under the hood.
<bqv>
Has anything in nixos-unstable ever truly just "not worked"? worst I've seen is a systemd bug and that firefox incident, neither of which got further than -small
<dminuoso>
The moment you realize that it's just nix-copy-closure beneath, it's really boring..
<DigitalKiwi>
bqv: yes that's why i use a nixpkgs checkout :)
<dminuoso>
the main purpose of nixops really is just cloud resource management, the rest you can just do with nix-copy-closure yourself.
<DigitalKiwi>
like right now xmonad+plasma5 is borked... plasma breaking in general is quite common
<DigitalKiwi>
i've had times i no longer had wifi
<bqv>
Damn... fair enough, guess I'm just always lucky
<rauno>
hum, your taking all the speciality away from it now :D
<Mic92>
Izorkin: would it be also possible to just adapt to the new syntax? Or is this a real regression?
<dminuoso>
I frequently reflect on my debugging sessions, and my favourite line of the day is "bugs usually appear because someone made false assumptions"
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
saschagrunert has quit [Remote host closed the connection]
saschagrunert has joined #nixos
<DanielEbbert[m]>
<ehmry "Daniel Ebbert: baresip works for"> Thanks, I will give it a try. Although, if I see it right there is no GUI? I was kinda hoping for one.
riksteri has joined #nixos
MmeQuignon has joined #nixos
<ehmry>
DanielEbbert[m]: no gui, but its the only one thats worked for me
unacceptable has quit [Ping timeout: 260 seconds]
hexa- has joined #nixos
skrzyp has quit [Ping timeout: 256 seconds]
<ehmry>
this is 2021, shit is too broken to do gui's anymore
<DanielEbbert[m]>
😀
<kandinski>
Issues with USB-connected bluetooth (it's an internal adapter, but I can unplug it and plug it back via /dev/usb/bus/001/024: https://termbin.com/gher)
<DigitalKiwi>
i have more devices with signal than i do people to talk to :( i made a group with all of them so i can talk to myself
spudly1 has joined #nixos
<hugolgst>
DigitalKiwi: hilarious
<ehmry>
I don't have time to mess around with that stuff. I'm like putin, I make other people carry phones and make my calls
<{^_^}>
[nixos-homepage] @rickynils opened pull request #666 → Add Immutable Solutions to the list of companies providing support. → https://git.io/JtvE3
<supersandro2000>
sadly he has to many nice people around him otherwise we could charge him
sangoma has quit [Ping timeout: 240 seconds]
<qyliss>
I need to figure out how2SIP
<qyliss>
then I can finally ditch my phone properly instead of keeping it around solely for when i need to call a company for whatever reason
<Mic92>
DanielEbbert[m]: schmittlauch fixed one
<Mic92>
DanielEbbert[m]: It was linphone in unstable.
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @lourkeur to release-20.09 « oraclejdk8: 8u261 -> 8u271 »: https://git.io/Jtv21
fuiltilt has quit [Quit: WeeChat 2.9]
<{^_^}>
[nixos-homepage] @edolstra merged pull request #666 → Add Immutable Solutions to the list of companies providing support. → https://git.io/JtvE3
<{^_^}>
[nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/Jtv29
lsix has quit [Ping timeout: 272 seconds]
thibm has quit [Ping timeout: 256 seconds]
thibm has joined #nixos
hiro98 has quit [Ping timeout: 256 seconds]
hiro98 has joined #nixos
<DigitalKiwi>
oh nice now i don't have to finish the PR i started for jdk8...
<{^_^}>
[nixpkgs] @wakira opened pull request #109105 → linux: enable display core support for all amd gpus → https://git.io/Jtva4
<eyJhb>
Any idea what the error is in here? https://termbin.com/gxm3 , guessing `builder for '/nix/store/j2c26ycgnsafd724bcchwp1sb0hy12yj-linux-5.10.6-modules-shrunk.drv' failed with exit code 1`, but I cannot see the underlying error
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 14 commits to staging-next: https://git.io/JtvwY
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 16 commits to staging: https://git.io/JtvwO
qwfpluy has joined #nixos
gianarb has joined #nixos
<l-as>
eyJhb: you will probably be able to figure it out if you use nix-shell and do what the build script does
hugolgst_ has joined #nixos
hugolgst has quit [Ping timeout: 256 seconds]
<eyJhb>
l-as: It is a nixos-rebuild basically
<eyJhb>
So not sure which packages I should choose. Or are you thinking something like nix-build -I nixpkgs=/some/path linux-5_10 or whatever
<l-as>
I *think* you can do `nix-build '<nixpkgs/nixos>' -A system.config.boot.kernelPackages.kernel` or something like that, but I don't remember the exact command
<l-as>
actually, I think you can just pass the .drv to nix-build directly
<l-as>
ah, btw, replace `nix-build` with `nix-shell` obviously
<DigitalKiwi>
eyJhb: you can run it with only one build thread to narrow down what's failing
thibm has quit [Ping timeout: 264 seconds]
<DigitalKiwi>
i think it's this one though builder for '/nix/store/j2c26ycgnsafd724bcchwp1sb0hy12yj-linux-5.10.6-modules-shrunk.drv' failed with exit code 1
<typetetris>
Hi in `networking.wireguard.enable` meant for wireguard as server or client or both?
<eyJhb>
l-as DigitalKiwi yeah, I could just nix-build that derivation. but ... I dont't see any useful information in it :/
<typetetris>
hugolgst_: Thanks. I didn't get it from reading the wiki.
cfinch has quit [Read error: Connection reset by peer]
<eyJhb>
https://termbin.com/c6zo guessing it might be the firmware crud that doesn't want to work
cfinch has joined #nixos
<l-as>
`firmware for /nix/store/wgkdm83dln3qk8aksl54ckazhcj03j4b-linux-5.10.6-modules/lib/modules/5.10.6/kernel/drivers/usb/host/xhci-pci.ko.xz: renesas_usb_fw.mem` is probably the error
oxalica has joined #nixos
<eyJhb>
Hmm, not sure how that error can get fixed however...
<l-as>
eyJhb: are you using a custom kernel config?
<l-as>
I'd recommend just trying to bisect your configuration
sangoma has quit [Ping timeout: 240 seconds]
bitmapper has joined #nixos
<DigitalKiwi>
pros of nixos: you can git bisect nixpkgs; cons of nixos: sometimes you have to git bisect nixpkgs :(
<betawaffle>
is it possible to use `users.mutableUsers = false`, `users.users.<name>.hashedPassword`, and flakes at the same time without committing my hashed password to git?
<betawaffle>
like, having it hashed is great, but putting that in git is still a bad idea
<l-as>
you can just use passwordFile or something
<betawaffle>
but then my password is in cleartext, isn't it?
qwfpluy has quit [Quit: Connection closed]
<l-as>
there is also a hashedPasswordFile I think, and why does that matter?
<l-as>
you should be using a unique password anyway
<betawaffle>
it's unique, but i still don't want it out in git
<l-as>
I get that, but you do know that if you use hashedPassword, the password is store in the nix store, right?
<l-as>
s/store/stored
<betawaffle>
yes, it's also in `/etc/shadow`, i'm ok with that
<betawaffle>
i don't put `/etc/shadow` on github
<betawaffle>
nor my nix store
<l-as>
ah, right, I had forgotten that some people put their configuration on GitHub. I recommend just using hashedPasswordFile then
<l-as>
or whatever it's called
<l-as>
actually, it doesn't seem like that exists...
<hugolgst_>
you can just use builtins.readFile
<hugolgst_>
and put in in hashedPassoerd
civodul has joined #nixos
<l-as>
is that stored in the nix store?
<hugolgst_>
what?
<l-as>
if you build a derivation using builtins.readFile, is the contents of the file stored, or is the file path stored?
<eyJhb>
l-as: It is store in /nix/store
<hugolgst_>
oh it's for a drv
<l-as>
thanks
sangoma has joined #nixos
<eyJhb>
stored in*
<eyJhb>
Damn it
<betawaffle>
the problem is this is a flake-based config too
<betawaffle>
so any file i try to read, would need to be in git too
<l-as>
you can probably hack in a hashedPasswordFile somehow
<l-as>
you could maybe not have a password and then set the password manually in a script
<l-as>
maybe environment.extraSetup?
<betawaffle>
also, it looks like /etc/shadow isn't in the nix store, which is nice
<andi->
but that is generated from a JSON file during system activation
<andi->
and that JSON file is in the nix store
<betawaffle>
fair enough
lsix has quit [Ping timeout: 264 seconds]
<andi->
Unfortunately there is no argon2 support in for crypt(3) yet which would allow using argon2 hashes for user passwords. Until then salted sha256 with a few rounds should probably be good enough.
<betawaffle>
i wonder if i can somehow use u2f for login rather than a password
<andi->
(few = not actually few but many, depending on the hardware of your potential attackers)
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to master: https://git.io/JtvKX
rhyfore[m] has joined #nixos
<rhyfore[m]>
Hi people we are planning the RhyFoRe a software package to support your local protest, by enabling participants to sync their druming together.
<rhyfore[m]>
The API is finished but it needs frontends to display the signals seems this is doable really fast. Please have a look or share it if you know interested communities.
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/Jtv6m
<typetetris>
Tried wireguard with networkmanager, but it seems network-manager is too old for it. nm-applet doesn't offer the connection for connection tries.
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/Jtv6x
<esotericnonsense>
is there a way to 'assert' in a derivation? something like 'if this condition then exit'
<esotericnonsense>
at the moment i'm doing stuff like just defining strings "this should not happen" but that seems ugly, i want a way to explicitly error
<thibm>
esotericnonsense: yes, what is "thing"?
zupo has quit [Client Quit]
<thibm>
esotericnonsense: in Nix or in a shell script?
<immae>
note that with asserts you may have some surprises in some situations
<thibm>
esotericnonsense: please note that parenthesis are superfluous
<thibm>
not sure why I wrote them
<immae>
for instance, if you nix-env -f foo.nix where foo.nix is a list in which some derivations have an "assert false" you’ll get a valid list with just this derivation absent from the result (and not a throw interrupting the whole process)
<esotericnonsense>
basically I want to do something like this; if isPy39 then "foo" else if isPy38 then "bar" else assert isPy37; "baz";
<esotericnonsense>
which seems to work fine
<esotericnonsense>
(as opposed to having a final 'else' that just returns gibberish)
<immae>
esotericnonsense: but then you’ll get the surprise if you end up in the situation that I talked about above
<immae>
your derviation will just be (silently) absent from the final set and you’ll wonder why it’s not there
<esotericnonsense>
there might be a better way to do this by defining a set and using the python version as a key or something, but this at least seems to work
<lukegb>
and this is why non-trivial FODs are a bad idea :(
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/Jtvi5
<thibm>
esotericnonsense: you could maybe `assert isPy39 || isPy38 || isPy36` for readability (in my opinion). Otherwise, I don't know if there's a bettery way
<thibm>
(I forgot one)
<esotericnonsense>
thibm: it's done in the disabled check though right
<esotericnonsense>
thibm: my issue is that regardless of that being done, you still end up with an 'else' that needs to be handled
supersandro2000 has quit [Quit: Ping timeout (120 seconds)]
acarrico has joined #nixos
<thibm>
esotericnonsense: just do the 'else' for the latter case
mallox has quit [Ping timeout: 265 seconds]
<esotericnonsense>
ah you mean just remove 'if py36' ... eh, I guess, it seems better to have the versions there so that you can easily see which version is which hash
<thibm>
esotericnonsense: as you wish (in such case I usually leave a comment for the last condition)
<thibm>
esotericnonsense: do you know if python has some attribute for "36", "37", etc?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to master: https://git.io/JtvDI
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #108977 → various: mark as broken or fix → https://git.io/JLjrX
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 4 commits to master: https://git.io/JtvDt
<attila_lendvai>
i'm building something with buildGoModule. it depends on some header files (native libs), so i tried adding buildInputs = [ hidapi secp256k1 ]; but it doesn't seem to help
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/Jtvyj
<edcragg>
is there some way to symlink /run/current-system/sw/bin/ to /usr/bin/ in a shell derivation without having to do it as root outside the shell? (for buildroot, which seems to require /usr/bin/file to be present)
teto has quit [Quit: WeeChat 3.0]
<multun>
souds like a bad idea, you could create a mount namespace to make it work, a bit like steam-run does
wifiprobzmannn has joined #nixos
<multun>
that's annoying to do though (i've never done it before)
<multun>
another option would be to patch buildroot
<dutchie>
it did fix it for me, so i'm out of ideas i'm afraid wifiprobzmannn
mmmattyx has joined #nixos
<betawaffle>
does `nixos-rebuild switch --flake . --update-input nixpkgs --commit-lock-file` work if nixpkgs is pinned in the system registry?
<matthewcroughan>
Do you think we can make a virtual machine run the same on a Mac as it does on Linux, via nix-shell?
<wifiprobzmannn>
dutchie I didn't enable the module I made the change in. It did fix it for me too :)
<matthewcroughan>
if so, does anyone have any examples?
mcwitt has left #nixos ["ERC (IRC client for Emacs 27.1)"]
<matthewcroughan>
I'm thinking via virt-manager. Imagine you just run `nix-shell shell.nix` and you get virt-manager on macOS and Linux, and are able to run an example virtual machine.
<matthewcroughan>
might be crazy, but yeah, the dream.
<dutchie>
wifiprobzmannn: heh, nice
Izorkin has quit [Ping timeout: 246 seconds]
mcwitt has joined #nixos
Izorkin has joined #nixos
aswanson has quit [Ping timeout: 246 seconds]
<eyJhb>
Is there anything in NixOS atm. that sets up a service, that will listen for webhooks from e.g. Github, and trigger a systemd service when it gets a verified webhook?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mcwitt>
I've noticed a few dhall-related packages are marked as broken (in haskell-updates branch) while they build for me with allowUnbroken. I'd like to start contributing more to nixpkgs, and was wondering if it's common practice to open a PR marking these packages as unbroken, or if there is some automation/process that is already taking care of this once the packages build on all platforms?
<infinisil>
mcwitt: Needs to be done manually, in pkgs/development/haskell-modules/configuration-hackage2nix.yaml
<matthewcroughan>
eyJhb: why not nixops?
<infinisil>
mcwitt: And on the haskell-updates branch
<infinisil>
matthewcroughan: How would nixops help here?
<mcwitt>
infinisil: thanks! I'll open a PR :)
<matthewcroughan>
infinisil: because there is a lot of stuff already out there that does stuff on github/lab hooks with nixops
<matthewcroughan>
which can ultimately do the thing they want with systemd afaik
<infinisil>
Hmm, haven't seen any of that
<{^_^}>
[release-wiki] @worldofpeace pushed 3 commits to update: https://git.io/Jtv9E
<eyJhb>
matthewcroughan: In which way ? Seems to overcomplicate a systemd unit that should just "git pull"
<matthewcroughan>
infinisil: Oh, I'm just linking ways of changing the system that are tied into git
<matthewcroughan>
sort of hooks and triggers
<matthewcroughan>
just an example of why you might not want to implement this in systemd, raw
aswanson has joined #nixos
<matthewcroughan>
if you want to update a system on a webhook, you can do that, nixus and nixops CI actions are examples of that. So, you can make a small change like restarting or redefining a systemd service, which ultimately does what you want.
<infinisil>
Ah, you're thinking of specifically webhooks that would update the system?
<matthewcroughan>
Similarly to the reason you might want to write your config files in home-manager. So all your bash aliases end up being `something = /nix/store/`. Seems complicated.
<infinisil>
Oh yeah eyJhb did mention doing a deployment
hnOsmium0001 has joined #nixos
<eyJhb>
I think that word might have been misused :D Not much will change, it will not be a deployment as in, change the system a lot etc. it is more of "I updated my static site. please pull it to get the latest version"
<eyJhb>
Sorry
<eyJhb>
Thinking of hosting my blog that is on Github atm. myself
<{^_^}>
[release-wiki] @worldofpeace pushed 2 commits to update: https://git.io/Jtv9D
<infinisil>
I see, but no I don't think there's a prebuilt nixos service that would take care of that
<eyJhb>
Damn. having such thing managed with Nixos is trivial, but if you want auto-update, then I should have something that updates my repo of .nix files where all my servers are configured, and then deploying it with nixus
<eyJhb>
But that does NOT seem nice as well :p
turlando has quit [Read error: Connection reset by peer]
turlando has joined #nixos
<eyJhb>
webhook -> change hash in .nix file -> build -> deploy -> success ? commit new hash in .nix to server conf git repo
<esotericnonsense>
how are python packages generally updated? are there some magic auto-update scripts somewhere that pull from pypi and make a PR?
<esotericnonsense>
(in th nixpkgs repository, I mean)
<esotericnonsense>
e
<sterni>
esotericnonsense: nixpkgs-update tries to update them from data acquired via repology.org, but mostly they are updated manually as far as I am aware
<eyJhb>
Well damn it matthewcroughan and infinisil , now I am conflicted...
<matthewcroughan>
eyJhb: flakes
<infinisil>
eyJhb: Hmm, I'd probably go for not needing to rebuild for updating a web page
<matthewcroughan>
the flake.lock contains the hash of the inputs that you want to utilise.
<eyJhb>
infinisil: So having a impure dir /somewhere?
<matthewcroughan>
it's absolutely amazing, I figured out how to use arbitrary git inputs that have nothing to do with nix via flakes a few nights ago.
<infinisil>
Seems like not something that really benefits a lot from doing it with nix
Acou_Bass has joined #nixos
<matthewcroughan>
then all you'd have to do is nix flake --update-inputs <input>
<matthewcroughan>
Perhaps an example is in order, one sec.
srk has joined #nixos
teto has joined #nixos
<{^_^}>
[nixpkgs] @mcwitt opened pull request #109126 → dhall-json, dhall-lsp-server, dhall-yaml: unmark as broken → https://git.io/Jtv9p
<eyJhb>
matthewcroughan: but that will still need to update my central repo, where I keep all my server configs I would assume
<infinisil>
eyJhb: Does the web page need to be built?
<infinisil>
Or is it just a bunch of html/css/js files
<eyJhb>
infinisil: True. Maybe I am overcomplicating it a lot. Ehmm. slightly
<matthewcroughan>
eyJhb: sure, or you could just not track it and have the clients run that cmd.
<eyJhb>
matthewcroughan: The case is, I have a NixOS server which should run a website that is a Jekyl site. Each time a commit is pushed to master, it should get a webhook telling it, that there was samething new. It then needs to get this new update. And I am guessing the biggest snatch is, that I usually manage this server using Nixus, so if I have a .nix file, with a hash, then if it updates this hash,
<eyJhb>
it should commit it so I can get it as well, for when I update nixpkgs for the server
<eyJhb>
Otherwise, I should keep it as a impure dir, and just do a git pull and then run the jekyl command needed
<{^_^}>
bitmapper: 9 weeks, 4 days ago <sphalerite> (re bcm4331) I was afk, but I think it was mostly working towards the end of my time with it, with the b43 driver and networking.enableB43Firmware
<mbrgm>
hey! what's the preferred way for fetching a source from a private git repo? I found that fetchgitPrivate was removed, but builtins.fetchGit uses the system's auth mechanism?
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 112 commits to staging: https://git.io/Jtv7h
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 111 commits to staging-next: https://git.io/Jtv7j
<energizer>
i'm having trouble using vscode-with-extensions. https://bpa.st/YAEQ any idea what's going wrong? the second file is part of my home-manager config.
<energizer>
figured it out. home-manager needs to know if it's vscode or vscodium or vscode-insiders so it knows where to put the config
<energizer>
s/config/extensions/
<philipp[m]>
It seems like v4lSupport in wine is broken in nixpkgs. I installed the full package of wine where it should be enabled, but wine itsefl complains that it was built without support.
<philipp[m]>
I did some digging and couldn't find how an actual configure flag for v4l (or any other of the switches) is set. There are optional dependencies being added, but no configure flags.
<philipp[m]>
I compared it to the gentoo ebuild and they set `v4l` and `v4l2` and I can't find a way how nix could figure that one out with some mechanism that I don't see.
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #109143 → dune: let dune 1 install itself → https://git.io/Jtv5N
<fresheyeball>
problem is now I can't turn it on! as with no wifi it wont go
<eyJhb>
fresheyeball: network cable?
<fresheyeball>
laptop with no cat5
<eyJhb>
Not sure if the installation media comes with WiFi drivers.
<eyJhb>
Do you have any USB to ethernet?
<fresheyeball>
I don't
<fresheyeball>
let me try booting off the usb again
<fresheyeball>
that had wifi
<eyJhb>
If it is a clean install, then I would just reinstall and remember to enable Networkmanager again fresheyeball
<eyJhb>
Then you can set WiFi up afterwards
<fresheyeball>
ok
<fresheyeball>
eyJhb: so I booted of the usb
<fresheyeball>
and connected to wifi
<fresheyeball>
I then mounted /mnt and /mnt/boot
<fresheyeball>
how can I rebuild?
<fresheyeball>
oop I think I got it
<fresheyeball>
sudo nixos-enter
cmk_zzz has quit [Ping timeout: 240 seconds]
cmk_zzz has joined #nixos
<eyJhb>
If you did it correctly, else you can just copy your configuration.nix out, do the mounts again, make configs, override it, edit it. But seems like you are doing it the right way!
Volk has quit [Quit: See you next time!]
lambda-11235 has quit [Ping timeout: 264 seconds]
lsix has quit [Ping timeout: 240 seconds]
<eyJhb>
fresheyeball: did it work?
<Duponin>
Hi, I define an interface MTU with my configuration.nix and a switch and it never change according to settings, even after a reboot. Any clue?
zupo has joined #nixos
davidv7 has joined #nixos
davidv7_ has quit [Ping timeout: 256 seconds]
justsomeguy has joined #nixos
evanjs has quit [Ping timeout: 272 seconds]
proofofkeags has quit [Remote host closed the connection]
evanjs has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.9]
riksteri has quit [Quit: riksteri]
<lordcirth>
Duponin, what is the interface type? Are you using networkmanager?
<Duponin>
lordcirth: it's a physical interface, only configured via the configuration.nix
MmeQuignon has quit [Ping timeout: 244 seconds]
<Duponin>
if you want I can paste the configuration in a snippet
<infinisil>
Unfortunately I don't know a lot about wifi debugging though
<noonien>
thanks for trying, i'll try to debug it more
<noonien>
i'm guessing it has something to do with the fact that when the connection was created, it was not made available to all users, so probably the secret is stored in a user-specific place, even though i did make it available to all users and changed the password afterwards
dstzd has quit [Read error: Connection reset by peer]
dstzd_ has joined #nixos
joesventek has quit [Quit: Quit]
dstzd_ is now known as dstzd
joesventek has joined #nixos
<energizer>
security.pam.services.<name>.text is a `null or strings concatenated with "\n"` and i want to add a line to the default security.pam.services.light.text. is that possible?
<energizer>
s/light/lightdm/
dstzd has quit [Client Quit]
joesventek has quit [Client Quit]
nikivi has quit [Client Quit]
gianarb has quit [Ping timeout: 260 seconds]
nikivi has joined #nixos
erasmas has quit [Quit: leaving]
eliteqhjsj has joined #nixos
dstzd has joined #nixos
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ManiacOfMadness has joined #nixos
joesventek has joined #nixos
<Duponin>
energizer: a 'null or strings concatenated with "\n"' is a block of text, just write your conf in that option and it will be added
<energizer>
Duponin: i just want to add a line, not replace all the lines
<Duponin>
energizer: true, there is no `extraConfig` option?
<energizer>
i have X running on vt 7, so ctrl+alt+7 shows the gui. is it possible to add another gui, on ctrl+alt+8?
ransom has joined #nixos
<Duponin>
energizer: I know how to do it by hand but not how to automate it with NixOS. But yes it's 1000000% doable and very funny
<energizer>
Duponin: how to do it by hand?
ericsagnes has joined #nixos
<Duponin>
energizer: a `startx`/`xinit` or whatever command to start your DE
<{^_^}>
[nixpkgs] @fabaff opened pull request #109232 → python3Packages.pylutron: init at 0.2.6 → https://git.io/Jtvxs
__monty__ has quit [Quit: leaving]
<energizer>
Duponin: it says display is already active for display 0
<Duponin>
DISPLAY=:1 <your command>
<pinpox>
How would I check if a nixOS system (uses flake config) is up-to-date in a script? I'd like to add that to my monitoring, e.g. alert if the system/nixpkgs hasn't been updated in the last 30 days
<energizer>
Duponin: `DISPLAY=:1 startx` showed some weird display of a bunch of xterms but i couldn't get it to do anything
<jasom>
cole-h: how does NixOS work on the rock64? I have one and have considered trying Nix on it?
K0kada has joined #nixos
<cole-h>
Dunno, I quite literally just got it up and running :)
acarrico has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/Jtvhv
<supersandro2000>
jasom: my experience with an other SBC is that you do not want to build things on it
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cole-h>
Yeah, I'm using my desktop as a builder (with binfmt enabled for aarch64)
<cole-h>
If you have a powerful enough machine to use binfmt on, it should be alright. Alternatively, if you don't plan on building anything from scratch (e.g. due to an overlay), it should be fine to just use Hydra's cache
oida has quit [Remote host closed the connection]
<flokli>
cole-h: you should also be able to cross-compile from x86_64 ;-)
<cole-h>
Well, that's true. Is that what would happen if I specified my builder as supporting aarch64 but without binfmt enabled?
dstzd has joined #nixos
<flokli>
I went via pkgsCross.aarch64*.nixos ./configuration.nix
<flokli>
but yeah, that should be equivalent to setting crossSystem when calling nixpkgs
dstzd has quit [Client Quit]
dstzd has joined #nixos
<jasom>
cole-h: is it possible to configure the SBC to initiate builds on my desktop, or do I need to build manually and copy-closure them over?