<AndroUser>
hi, i just installed nixos on zfs, but when I reboot my PC into the install, it gets stuck on "importing root ZFS pool "zroot". and says "cannot import zroot more than 1 matching pool". Does anyone know how I can fix this? Thanks
rj has quit [Ping timeout: 268 seconds]
<kunrooted[m]>
<jared-w "kunrooted: yup"> thx
supersandro2000 has quit [Disconnected by services]
supersandro20004 has joined #nixos
o1lo01ol1o has joined #nixos
rj has joined #nixos
wnklmnn has quit [Quit: Leaving]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
nicoo has quit [Remote host closed the connection]
cartwright has quit [Remote host closed the connection]
rajivr has joined #nixos
cartwright has joined #nixos
nixi5 has joined #nixos
<nixi5>
hello, i'm currently running arch and was wondering if it's advisable to install nix on top of it. the system has been running for a while, so i'm not sure if it's better to start from scratch or if it's feasible to add nix onto it and make a slow transition
<{^_^}>
[nix] @Ericson2314 opened pull request #4594 → WIP: Use `BuildableReq` for `buildPaths` and `ensurePath` → https://github.com/NixOS/nix/pull/4594
waleee-cl has quit [Quit: Connection closed for inactivity]
<dusty50>
Hello. Anybody experienced issues with Kodi on an AMD GPU? It worked fine on my Nvidia GTX 1050Ti, but when I upgraded to the AMD Rx 5700XT, everything else seems to work just fine, but Kodi is "unable to create GUI". There were a few "failed to initialize off screen DRM" messages in the kodi log
<dusty50>
Kodi also loads if I kill the xserver. But on my laptop, and before I changed the graphics card, it loaded just fine alongside the xserver
<{^_^}>
[nixpkgs] @cole-h opened pull request #114818 → [staging-next] python3Packages.virtualenv: don't add fish as a checkInput → https://github.com/NixOS/nixpkgs/pull/114818
<fendor>
seems like I cant build nvidia drivers with latest kernel. Is that a known problem? Where I can check whether somebody already reported such an issue?
<fendor>
evils, thanks! should have started at the issue tracker
n-osborn_ has joined #nixos
respawn has joined #nixos
mniip has quit [Ping timeout: 600 seconds]
n-osborne has quit [Ping timeout: 272 seconds]
mniip has joined #nixos
Rainy has joined #nixos
<Rainy>
hey
malook has quit [Quit: malook]
vidbina has quit [Ping timeout: 276 seconds]
<Rainy>
I am having issues with the tor-browser-bundle-bin package, the tarball on the tor project's site is 404ing, is there an alternative package available?
<eyJhb>
adisbladis: Ohh that might be! I can try that in a while
dominikh has joined #nixos
dominikh is now known as Guest25360
mirtyl has joined #nixos
<mirtyl>
hi there
<mirtyl>
is this a good place to get place as a noob?
<adisbladis>
mirtyl: As good a place as any :)
olto[m] has joined #nixos
<mirtyl>
cool, so I'm using nix on ubuntu (on a vps)
<mirtyl>
and wanted to install caddy, the web server
<mirtyl>
it installed fine with nix-env but how do I enable it on systemd?
<adisbladis>
mirtyl: We don't have unit generators for other distributions
<adisbladis>
So you're likely going to have to write a systemd unit yourself
<mirtyl>
I see
<mirtyl>
how would it work on nixos?
<adisbladis>
On NixOS you could add `services.caddy.enable = true;` and run nixos-rebuild
<mirtyl>
gotcha
<mirtyl>
different question: what's a good resource to learn how to make a derivation? there's this app I want to use on nix but the nixpkgs version is outdated
Negher has joined #nixos
teasea has quit [Quit: teasea]
teasea has joined #nixos
<rnhmjoj-M>
mirtyl: did check if there is a more recent version in the unstable channel?
<sphalerite>
you can also pass -h to get results displayed as MiB/GiB rather than bytes
<eyJhb>
sphalerite: Could I give it a package name instead sphalerite ?
<sphalerite>
eyJhb: yes, the example gets the size both for nixpkgs.hello and for a literal store path of hello
o1lo01ol1o has quit [Remote host closed the connection]
<eyJhb>
Nice! I have another. Can I specify two packages, and see their total size (ie. they depend on some of the same packages, so the two individual values doesn't say much)
<s1341_>
I've run out of space on /run/user/1000/..., which is the TMPDIR. How do I increase that tmpfs mountpoint?
edwtjo has quit [Ping timeout: 264 seconds]
<evils>
s1341_: i use `export TMPDIR=/tmp` in a script
<sphalerite>
eyJhb: I'm not sure there's a built-in way to do that immediately, but if you can create a package that depends on both (e.g. buildEnv { … paths = [ foo bar ]; … }), build that, and then get the closure size of that
NeoCron has joined #nixos
vrinek has quit [Ping timeout: 272 seconds]
edwtjo has joined #nixos
edwtjo has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<sterni>
sphalerite: I think you want to change boot.runSize
<kenran>
(How) can I use `nix search` using a custom packages set, say in a file called pkgs.nix?
vidbina has quit [Ping timeout: 240 seconds]
<sterni>
kenran: nix search -f pkgs.nix should work
hiro98 has quit [Ping timeout: 260 seconds]
<pie_>
nixos eats so much space. i tried making a 14gb recovery partition and now im stuck because any system config i build wants several gigs for some reason and i dont have any major roots afaict but i still cant get it to go below 8 gigs of used space
<kenran>
sterni: In my pkgs.nix, I add a package with the unique name lbfgsb to `pkgs`, but doing `nix search -f nix/pkgs.nix lbfgsb` and it doesn't hit anything. Going in a repl there finds it though, so I'm thinking something's wrong with the nix search usage.
<_rht>
o/ I wonder if anyone can recommend a debugging method for this problem: https://github.com/NixOS/nixpkgs/issues/111657 . basically, upgrading to latest nixos-unstable causes Kitty, Brave, Chromium to hang. But Firefox, xterm, urxvt work
<{^_^}>
#111657 (by a4d442663580, 3 weeks ago, open): Launching either Brave, Chromium, or Kitty freezes the system with loud CPU fan on latest unstable
<sterni>
nixbitcoin: this simpler solution should also work: nix.nixPath = [ "nixpkgs=https://github.com/nixos/nixpkgs/archive/<commit>.tar.gz" ]
civodul has quit [Remote host closed the connection]
shibboleth has joined #nixos
philr has quit [Ping timeout: 260 seconds]
<kenran>
sterni: Thanks, the -u did the trick!
<nixbitcoin>
sterni: the simpler solution seems to be working
<nixbitcoin>
sterni: how can I make sure pkgs are coming from the pinned archive?
<kenran>
Is there a way to get a "download url" for a package? That is, as part of a project the customer needs to have some url associated with a couple of packages. It doesn't need to be the one where the project is hosted for instance, so I thought about "asking nix".
<kenran>
sterni: the description just says "The URL the source artifact was downloaded from, or where the binary same source artifact CAN be downloaded from.", including the strange "same" in there
<kenran>
I'd interpret that as "anything as fine, as long as I can download the "artifact" from there"
<sterni>
kenran: well you could figure out the binary-cache url for the archive nix would substitute from, but there is no way to point to the latest version or anything
<sterni>
and the archive isn't very useful in itself
<tpw_rules>
i mean it sounds like they just want to be able to verify the download in some way. i think pointing them to the nar would be the correct move. although yeah they can't super easily extract it so
<tpw_rules>
but it fits the letter imo
<tpw_rules>
the nar of what's actually installed
sangoma has joined #nixos
<sterni>
the problem is it changes all the time because every dependency update changes the hash part of the nar file name
<tpw_rules>
i mean that's the same for pointing directly to e.g. a deb. just the new name is less predictable
<tpw_rules>
conversely, you have to involve the hash, because otherwise they are not getting the same file you downloaded (which i think is what "binary same" means)
<attila_lendvai>
but this shouldn't even be referenced by what i'm building, only when building the unstable, latest git commit
<attila_lendvai>
somehow this "leaks" into the release, even though i'm building using nix-build -v --pure -E "with import <nixpkgs> {}; callPackage /home/alendvai/workspace/nixos/nixpkgs/pkgs/applications/networking/bee/bee.nix { version = \"release\"; }"
<attila_lendvai>
and when i look into the "unpacking source archive /nix/store/ibdkk1g8b02ld7fi950dx91l3a0ayb3h-source", go-log is not referenced there in the go.mod
bparker has quit [Remote host closed the connection]
<exarkun>
If I activate a config w/ an nfs filesystem in it and the nfs server is unavailable, activation fails. Can I make an nfs filesystem optional?
<kenran>
sterni: tpw_rules: It's such a dumb requirement, as they basically want the source code + binaries machine-downloadable to check for copyright infringement and license problems. But this isn't even about our code. We build a Docker container via the dockerTools and now they want to check every single binary that's somewhere in there. Without nix that wouldn't even be doable really.
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kenran>
But: they don't do this for their own Docker images using node, java, ... they just have an accept-list of base images that are "trustworthy", and that consists of exactly those images they use ><
<sterni>
kenran: you can probably use a combination of nix-store and parsing derivations / nix show-derivation to figure the entire closure including source and binary output
<kenran>
sterni: Thankfully the list of things in the nix-store inside the image is quite small and I can use a Haskell/Cabal package to find out the external (direct) dependencies of the Haskell stuff we use. At least that suffices. I was looking for a more nixish way, but now opted for manually adding 6 download URLs.
<Cadey>
i have had events happen that have made me need to compile C code for windows
kenran has quit [Quit: leaving]
domogled has quit [Read error: Connection reset by peer]
<srhb>
Cadey: pkgsCross.mingw32.hello should be GNU hello as a mingw32 compiled exe.
<srhb>
Cadey: (and so on)
<Cadey>
ooh
<adisbladis>
srhb: How well does that actually work? :P
<srhb>
adisbladis: wine runs it :-)
<blaggacao[m]>
Kindly click and enjoy: github.com/divnix/devos -- a maturing project with an excellent value proposition to manage one's (private or company) environment.
<srhb>
Never actually tried on Windows.
<srhb>
So, yes, I guess you might say the "and so on" is a little misleading, since hello is quite trivial, but the infrastructure is technically there.
<maralorn>
If it really is nix-build I assume the output is not different?
ahmedelgabri has joined #nixos
<maralorn>
It’s really not very magical if the output looks like the normal nix-build output it will work on it. It just parses text.
<exarkun>
ajs124: thanks
<hexa->
maralorn: nom-build when?
<maralorn>
hexa-: idk. I think it’s a nice idea. I am currently considering whether to put it into the repo or to just add it in the nixpkgs derivation.
<maralorn>
It’s apparently very simple so anyone can do it.^^
<fendor>
Trying to build cryptominisat-rs on nixos and I get binutils errors, e.g. it cant find base libraries such as lm, ldl and so on: https://paste.tomsmeding.com/tvSO0J1d
<hexa->
yeah, even you :D
<fendor>
What do I have to do to make nix tell binutils about the linker path?
<maralorn>
So that nom-build supports colored output.
_rht has quit [Quit: Connection closed for inactivity]
ahmedelgabri has quit [Ping timeout: 272 seconds]
jeff37 has joined #nixos
<jeff37>
hey, so i have networking.usePredictableInterfaceNames set to true, but my wifi still shows up as wlan0, does anyone know how to troubleshoot this? Thx
<maralorn>
supersandro2000: Well accessing the build-time estimate history is a bit racy in the moment. But the worst possible scenario would be to loose all build-time estimates. The user wouldn‘t even see an error about that.
zebrag has joined #nixos
rj has quit [Ping timeout: 268 seconds]
orivej has joined #nixos
<supersandro2000>
maralorn: I wanted to do it because I would like to accumulate build time estimates
<maralorn>
supersandro2000: Yeah, I hadn‘t really thought about multiple nom instances. I can make that saver easily I’ll probably do that next weekend or something …
<jeff37>
if iwd enables the wifi first, udev can't rename it. So it disables the renaming 👍👍
<maralorn>
Have found one other bug that I need to fix anyways.
<supersandro2000>
maralorn: that would be great
<maralorn>
hexa-: I was always a bit weary about feature creep with "nom-build" next Idea would be to copy the command line passed to nix-build to nom so that nom can take that into account, too.
<maralorn>
But that’s not really an argument against doing it.^^
<hexa->
maralorn: you can always decide where to stop. right now nom-build would be a convenience wrapper that requires little maintenance.
<maralorn>
Yeah, let’s do it.
orivej has quit [Ping timeout: 276 seconds]
BaughnLogBot has quit [Ping timeout: 260 seconds]
<fendor>
Do I have to tell binutils manually about the dependencies? Why does it not find the one from glibc?
<hplar>
things D are so broken on nixos unstable at the moment, neither dmd nor ldc build ... ldc is more recent (and not due to any update of ldc itself, ldc 1.24.0 used to build fine)
sigmundv_ has quit [Ping timeout: 265 seconds]
<cm2_>
hello, on debian using nixpkgs in unstable-small the last git update removed gitk.
<cm2_>
anyone see same?
<hexa->
,locate gitk
<cm2_>
if i go back a couple gens i get it back.
<{^_^}>
Found in packages: git, gitMinimal, gitAndTools.gitSVN, gitAndTools.gitFull
<hexa->
cm2_: we updated git from 2.29.2 -> 2.30.0 around newyears
<hexa->
and then from 2.30.0 -> 2.30.1 on february 10th
<cm2_>
hexa-: that's when it happened
awmv has joined #nixos
<cm2_>
hexa-: yes i'm on 2.30.1 ... not gitk?
<hexa->
cm2_: can you check the git 2.30.0 release notes?
<adisbladis>
How did you install it?
<cm2_>
hexa-: sure
<hexa->
and answer adisbladis first :)
<cm2_>
adisbladis: guys i just use nixpkgs so please a little patience?
<cm2_>
adisbladis: i just did a nix-env -i git
<adisbladis>
That was exactly my hunch
<cm2_>
like 5 years ago, and it's been rock solid
<adisbladis>
cm2_: gitk is only in gitFull
adyatlov has quit [Quit: Connection closed]
<cm2_>
adisbladis: got it. that's why hexa- kindly pointed me to the release notes.
<hexa->
no, that was a wild guess
<cm2_>
adisbladis: ok. crazy question. how do i install gitFull?
<adisbladis>
cm2_: `nix-env -i` isn't very friendly
<adisbladis>
If you're using nix-env to install stuff use `nix-env -iA`
<adisbladis>
Which does so by the attribute instead of the derivation name
<cm2_>
adisbladis: which way should i install pkgs then? i do read through the docs here and there, but like i said i'm not a very active users. mostly nixpkgs just works :)
<cm2_>
adisbladis: so i should do nix-env -iA gitFull ?
<supersandro2000>
maralorn: can you add support when using nix-flakes nix-command with --log-format bar-with-logs ?
<hplar>
and what it was in weechat and tmux was having somehow scrolled back, and not had live updates, but still been able to submit
<hplar>
(lucky you all did not get a lot more spam before i figured that out, no idea i had hit that key combination, i & could have had even more egg on my face :)
<supersandro2000>
so basically --print-build-logs which appends the package name and > to the logs
clime has joined #nixos
<attila_lendvai>
can i please invite someone who understands the building of the manual to have a look at the first TODO entry on this PR? https://github.com/NixOS/nixpkgs/pull/113940
<{^_^}>
#113940 (by attila-lendvai, 1 week ago, open): DRAFT bee: make it able to start n instances
<jmetaj>
After installing nix for multiuser, .nix-profile does not exist in ~. Any ideas? OS: Ubuntu 20.04
<clime>
hey, anyone using wireguard on NixOS? I have a client config file and I would like to use it to setup wg quick systemd service. There is no /etc/wireguard directory like e.g. on Fedora, however.
ahmedelgabri has joined #nixos
apache801 has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
<attila_lendvai>
i suspect the manual is built module by module, and cross references do not work that otherwise work when the config is applied
<{^_^}>
nix#4498 (by ihsanturk, 4 weeks ago, closed): nix run with different binary name
duckfullstop has joined #nixos
<cole-h>
siraben: Indeed. I still think it's a bit weird for it to be so nixpkgs specific, but /shrug
ahmedelgabri has quit [Ping timeout: 240 seconds]
<maralorn>
supersandro2000: I am not sure. Do you have an example output?
<siraben>
cole-h: yeah
sigmundv_ has quit [Ping timeout: 245 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<maralorn>
supersandro2000: Also we should keep in mind, that nom is supposed to be a hot fix for the lack of convenience of old-style nix commands. Unless nix supports an api that is more sensible than parsing it's output I don‘t think nom is a long term solutions and ui improvements should land in nix directly.
erasmas has quit [Read error: Connection reset by peer]
mananamenos has quit [Ping timeout: 245 seconds]
sangoma has quit [Ping timeout: 240 seconds]
rj has quit [Ping timeout: 268 seconds]
sangoma has joined #nixos
<supersandro2000>
well, nix-flakes can only output the build log and the bar style progress
<supersandro2000>
which is sub optimal
clime has quit [Ping timeout: 245 seconds]
rj has joined #nixos
drdee has joined #nixos
drdee has quit [Remote host closed the connection]
<supersandro2000>
maralorn: I think you need to take a deeper look at this yourself because it probably requires a bit more work. nixFlakes can take --log-format internal-json which outputs json which should be easier to parse
<maralorn>
I don‘t think that writing a parser for the bar style progress is anything between reasonable and fun …
<maralorn>
otoh
<jmetaj>
Ok, I can create .nix-profile, but how to properly config? None of the nix execs (nix-shell, etc.) are on path now. I found them in /nix/store, but am not sure whether to add hashed location in PATH
<supersandro2000>
maralorn: parsing the bar is probably near impossible or at least very hard and error prone. The json could be reasonable. I also couldn't get unbuffer to work in the python shell so it is a bit complicated
<mkaito>
I don't suppose anyone happens to be running libvirt VMs on hetzner bare metal servers? I'm having the worst time trying to get the routed network to work. I suspect the nixos firewall might be doing something to interfere with the rules libvirt inserts, but I'm pretty lost.
<tpw_rules>
how can i get inputs of the flakes i include in my flake? i know how to set them with "follows"
sigmundv_ has joined #nixos
cm2_ has quit [Quit: leaving]
<mkaito>
I'm not sure what you mean, but have you tried just accessing them the same way you set them?
evils has quit [Ping timeout: 240 seconds]
<maralorn>
phew, how can I pass nix 2.4 two --experimental-features?
<maralorn>
The flag does not get displayed in the help message.
<maralorn>
Passing the flag twice overrides the first one.
erasmas has joined #nixos
<mkaito>
--experimental-features 'foo bar'
ahmedelgabri has joined #nixos
<maralorn>
Hm, whatever, solved it.
<maralorn>
mkaito: Hm, yeah, thank you.
dansho has joined #nixos
emmanuel_erc has joined #nixos
dbmikus has joined #nixos
<jmetaj>
do I just need to populate .nix-profile with symlinks into nix store?
<mkaito>
you're not really supposed to touch that
<cole-h>
s/really //
<tpw_rules>
mkaito: that doesn't seem to work? i'm talking about how you can say e.g. inputs.nixpkgs.url = "github:Mic92/nixpkgs/master"; inputs.sops-nix.url = "github:Mic92/sops-nix"; inputs.sops-nix.inputs.nixpkgs.follows = "nixpkgs";
clime has joined #nixos
<tpw_rules>
but i need to reverse that. the flake i'm including uses a weird nixpkgs that i need access to in my flake
<mkaito>
I think you can inputs.banana.inputs.nixpkgs.follows = 'strawberry.nixpkgs' or something along those lines
ahmedelgabri has quit [Ping timeout: 264 seconds]
endformationage has joined #nixos
<tpw_rules>
mkaito: oh, you can but it's / instead of . thank you!
svrana has quit [Quit: WeeChat 2.9]
svrana has joined #nixos
ddellacosta has joined #nixos
emmanuel_erc has quit [Read error: Connection reset by peer]
<maralorn>
supersandro2000: Can you guide me a bit? If I do 'nix --experimental-features "nix-command flakes" build .#nix-output-monitor' I don‘t get any reasonably parseable log.
avaq has joined #nixos
<maralorn>
Now, what flags do you recommend? Is there any chance to get the original output?
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<maralorn>
Hm, can I find a list of supportet --log-formats?
evanjs has quit [Ping timeout: 245 seconds]
jimmiehansson has quit [Remote host closed the connection]
lordcirth has quit [Read error: Connection reset by peer]
mananamenos has joined #nixos
lordcirth has joined #nixos
evanjs has joined #nixos
meh` has quit [Ping timeout: 260 seconds]
gueorgui has quit [Ping timeout: 265 seconds]
<maralorn>
Okay, supersandro2000 I had a look at it. None of the supported output --log-formats documented here https://nixos.wiki/wiki/Nix_command, look like nom could support them trivially.
emmanuel_erc has quit [Read error: Connection reset by peer]
saschagrunert has quit [Remote host closed the connection]
<maralorn>
Of course the json output looks like it could work. But I assume it's called "internal" for a reason?
rajivr has quit [Quit: Connection closed for inactivity]
<hplar>
adisbladis++
<{^_^}>
adisbladis's karma got increased to 144
<hplar>
for pointing me in the direction of dub2nix months back ... before i knew i could do that
<hplar>
also
<hplar>
feedback today ... which reminds me
ddellacosta has quit [Remote host closed the connection]
clime1 has joined #nixos
ddellacosta has joined #nixos
<hplar>
is there any reason things like poetry2nix and dub2nix are not in nixpkgs, the more obscure dub2nix would be good for discoverability
<adisbladis>
poetry2nix is in nixpkgs
<hplar>
(and those ++ things appear to be a bit of a fad, not as popular now as a little while back :)
<clime1>
can you even make wireguard work on NixOS? It requires kernel 5.6 for the new wireguard kernel module but I just updated all the packages and got kernel 5.4.100
ddellacosta has quit [Remote host closed the connection]
emmanuel_erc has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
<adisbladis>
As for dub2nix you'll have to ask lionello
emmanuel_erc has joined #nixos
<adisbladis>
Or just make a PR yourself ;)
dusty73 has joined #nixos
ddellacosta has quit [Remote host closed the connection]
ddellacosta has joined #nixos
clime has quit [Ping timeout: 245 seconds]
<stevenro->
Is there a way to prevent a service from turning on when it's being updated? Like I manually stop it, then do a nixos-rebuild and it changes and then it always automatically starts up.
ddellacosta has quit [Remote host closed the connection]
<hplar>
k
ddellaco_ has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
pridumyvatel-bog has joined #nixos
erasmas has quit [Quit: Lost terminal]
<pridumyvatel-bog>
<hplar "k"> n
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<dusty73>
I recently switched my graphics card from an Nvidia RTX 1050Ti to an AMD RX 5700XT. Kodi (version 18.9) was working fine before the switch, but after the switch, it won’t open. My drivers are amdgpu (not amdgpu-pro). When I invoke kodi on the command line, I get
<hplar>
pridumyvatel-bog k was short for ok, i thought it sufficed with context of prior message; "n" ? n attached to my k is what? ... will try to be more expansive in my responses in future
hc is now known as hc_
<hplar>
heh, i have time, my compiler fails to compile ;-)
rj has joined #nixos
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<clime1>
so I have found out there is some /nix/store/jymcy5m3660s4pfai8y59zqwba2r8h07-wireguard-1.0.20210219/lib/modules/5.4.100/extra/wireguard.ko.xz
<clime1>
so I guess I need to modprobe that to fix: modprobe: FATAL: Module wireguard not found in directory /run/current-system/kernel-modules/lib/modules/5.4.100
jmetaj has quit [Quit: Konversation terminated!]
<dusty73>
Yaniel, yeah, I've not noticed any issues with vainfo. You have the 5700xt? Are you running amdgpu? You don't happen to use Kodi, do you?
clime1 has quit [Quit: WeeChat 2.9]
<Ke>
just out of curiosity, did you try reboot
pridumyvatel-bog has left #nixos ["User left"]
sigmundv_ has quit [Ping timeout: 246 seconds]
emmanuel_erc has quit [Read error: Connection reset by peer]
<Ke>
hmm, I guess should not help, as the tmpfiles.d entry is L+
emmanuel_erc has joined #nixos
<dusty73>
Ke, assuming you are asking me, yes
chisui has quit [Quit: Connection closed]
sigmundv_ has joined #nixos
shibboleth has quit [Remote host closed the connection]
<clime>
srhb: tried to make wireguard kernel module load that I found in some extras path under /nix/store but it isn't avaialable under /run/current-system/kernel-modules/lib/modules/5.4.100 where modprobe looks by default
<srhb>
clime: Why aren't you using the wireguard nixos modules?
<clime>
srhb: not sure? I just want to load the kernel module from command-line
emmanuel_erc has quit [Read error: Connection reset by peer]
<srhb>
clime: It sounds like you're doing some low-level stuff that you maybe shouldn't be, and definitely imperatively manipulating "raw" store paths is not a reliable plan :)
<clime>
i didn't manipulate any paths
emmanuel_erc has joined #nixos
<AndreyCherkashin>
Maybe someone can help me or tell me it's too much work: I want to build a custom rpi zero w image, with either rasberrian kernel or a custom kernel module. Plus some rust packages that aren't in nixpkgs.
<clime>
srhb: i tried to make wireguard work on NixOS VERSION="20.09.3341.df8e3bd1109 (Nightingale)"
<clime>
didn't succeed
<AndreyCherkashin>
Nix-generators don't work on armv6, sp that won't work.
<clime>
it doesn't seem to be suppoerted/possible at the moment
<lordcirth>
Anyone using packer on NixOS? #packer-tool is dead and special characters (eg <enter>) aren't working
emmanuel_erc has quit [Read error: Connection reset by peer]
<srhb>
clime: Let me back down a bit. What you were trying to do by hand may/will probably turn out to be harder to "fight the system" on than doing it through the nixos module system
emmanuel_erc has joined #nixos
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
emmanuel_erc has quit [Read error: Connection reset by peer]
<srhb>
clime: Not that it can't be done, but loading something from an arbitrary nix store path, even if you succeeded, is bound to eventually go wrong through garbage collection or reboots or whatnot.
emmanuel_erc has joined #nixos
<clime>
srhb: that's possible, but i don't really have time to create some module for it.
<AndreyCherkashin>
Any docs on how to use device tree overlays on nixos?
<clime>
srhb: i have a client confg file that i copied into /etc/wireguard/wg0.conf. Normally I should be able to just run `wg-quick up wg0` but i can't right now because the wireguard kernel module is not loaded
<clime>
i don't understand the configuration to the extent that I would be able to quickly workaround it.
<clime>
(or "do it in the NixOs way")
civodul has joined #nixos
<clime>
but thanks
pie_18 has joined #nixos
<srhb>
clime: Okay, then you'll need something like what the wireguard module does; boot.extraModulePackages = optional (versionOlder kernel.kernel.version "5.6") kernel.wireguard;
<nicolas[m]>
clime: you just need to add `boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];` to your configuration.nix
<srhb>
clime: Whether the wg-quick application actually works with the kernel module available, I don't know :)
rj has quit [Ping timeout: 268 seconds]
<srhb>
clime: (Use nicolas[m]' example, the optionals are just cruft if you're below 5.6 anyway, which you are since you need it)
<pie_18>
qyliss you use kvm much right? any idea why grub could show only one hd0 device when i have two raw disk partitions added? (im using virt-manager so i dont have a command to give you)
malvo[m] has joined #nixos
proofofkeags has joined #nixos
<clime>
nicolas[m]: can you tell me where I should put it specifically, please? I guess there are several places from which final configuration.nix is composed?
shibboleth has quit [Quit: shibboleth]
rj has joined #nixos
<nicolas[m]>
It should work anywhere within your configuration.nix
<srhb>
clime: Anywhere within the configuration.nix top level attrset (the big { } enclosing most of your config aside from the arguments at the top)
meh` has joined #nixos
<Yaniel>
dusty73: rx5700xt and non-pro amdgpu yes
<Yaniel>
no kodi though
<Yaniel>
vaapi is fine in obs and mpv, maybe the kodi package doesn't have that dependency set correctly?
<clime>
nicolas[m], srhb: well, that worked (i have also run nixos-rebuild switch and then needed to kill some pending wireguard-go instance that i experimented with before)
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<clime>
I would almost say "brilliant"
<srhb>
clime: yay :)
<dusty73>
Yaniel, right on. Yeah, everything else seems to be working fine. It seems to be a driver issue based on other people's similar problems. I tried switching to amdgpu-pro, but I couldn't seem to un-break it
<Mic92>
nf: I primarly kept it compatible with nixops model...
<nf>
would you be inclined to change that? (i've never used nixops)
<srhb>
clime: Welcome, enjoy :)
<dusty73>
Yaniel, seems to have something to do with the DRM. People mentioned libdrm. I can run it fine if I kill the xserver, but that's not necessary in any other setups. I get the following errors in the Kodi log:
<dusty73>
```
<dusty73>
CDRMUtils::FindPlane - could not find plane
<dusty73>
WARNING: CDRMUtils::InitDrm - failed to set drm master, will try to authorize instead: Permission denied
<{^_^}>
Mic92/sops-nix#86 (by ncfavier, 17 seconds ago, open): Make permissions for /run/secrets 0751
<jess>
but yeah, nixos is definitely something i've thought about
<Mic92>
nicolas[m]: I just cargo-culted this part
<srhb>
Hmm, I want something to tell nix to replace NIX_PATH lookups with something deterministic in flaky pure eval mode. I don't suppost that's a thing uet, right?
emmanuel_erc has quit [Read error: Connection reset by peer]
dusty65 has joined #nixos
emmanuel_erc has joined #nixos
<srhb>
Woops, transposed a bit there...
<simpson>
Puppet's still popular. It's a thing that one can know how to use, even if it's not Nix. There's no shame in knowing many tools.
<hexa->
true
<jess>
dusty65: hey, try not to paste lots of stuff at once like that
<pie_18>
qyliss ok i uhhh....figured it out? it looks like the disks dont show up unless theyre enabled in the "boot order" list...
clime has quit [Ping timeout: 240 seconds]
<pie_18>
which seem kinda dumb but ok...
<figgyc>
Is there a good way to configure services.postgresql.initialScript across multiple files? I'd like to only make databases in the same file where I define the services so I don't have to make all the databases on the machines where I only run 1 or 2, but I just get conflicting definition values errors if I try to do pkgs.writeText in two places even with different filenames.
<__monty__>
Is bsdtar not packaged?
<figgyc>
I think it's in libarchive
<__monty__>
That's where I expected it too, but a nix-shell of that still had GNU tar.
<srhb>
figgyc: I'm not completely sure I understood your question, but it sounds like you just want to do a little bit of indirection and define eg. lib.dbscripts.foo = ... and then locally where you actually use it writeScript the appropriate union of foo, bar, ... ?
<figgyc>
__monty__: i just tried it, turns out its in libarchive but its renamed as bsdtar
<srhb>
figgyc: Then I suggest using the magical lib option to do exactly that. It gives you ad-hoc options (that aren't checked) that you can then reuse later via config.lib.yourattrset
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<srhb>
nicolas[m]: Note though that this problem seemed very specifik to the G9, or at least ultrawides in some way
<pie_18>
nh2 im going to try to get around to making a bit of a writeup, but the short verison is i solved things by running mkimage and installing the efi file to the appropriate place, in the extrainstallcommands r whichever option (which is actually a rather recent addition so ends up requiring unstable..)
bokononi3t has joined #nixos
<srhb>
(I've done so much searching it's not even funny)
<nicolas[m]>
srhb: thanks. I asked because I'm also cursed by my g9
<pie_18>
i have some ugliness with hardcoded uuids but maybe that can be pulled from the filesystem options
<srhb>
nicolas[m]: On a kernel newer than 5.4?
<nicolas[m]>
srhb: Yeah, I had to pin the kernel to 5.8 for my monitor to be usable at 120Hz
<srhb>
nicolas[m]: Then I have high hopes that it'll just work for you. :)
<nicolas[m]>
Will test with the latest kernel and the patch :)
<pie_18>
nh2: and there is a mailing list post describing how to get grub to do the luks2 stuff. you also have to make sure you use pbkdf2 with luks because thats the only thing currently supported bygrub
<pie_18>
n2: i dont remeber what the exact problem i was talking to you about was, i think it was figuring out how to reconfigure this part of grub, so yeah, the mkimage.
<pie_18>
and echoint the embedded config line into the appropriate cfg file
<pie_18>
and setting the prefix
cmk_zzz has quit [Ping timeout: 240 seconds]
<srhb>
I still have _other_ issues, but I think the 5700XT is just a horrible GPU in other ways. Or I have defective hardware. :-P
<pie_18>
(which also gets embedded and is the last thing if you run strings on the efi binary
<srhb>
But that patch certainly fixes the G9
bokononi1t has quit [Ping timeout: 264 seconds]
cmk_zzz has joined #nixos
<nicolas[m]>
I've also had issues with my 5700XT from day one
<LilleCarl>
nicolas[m]: Problems with resets? There's a kernel patch(hack) for that nmow
<srhb>
LilleCarl: Do tell!
<srhb>
I was on 5.11 so I thought I had everything relevant.
emmanuel_erc has quit [Read error: Connection reset by peer]
<srhb>
(Which leads me to believe the remaining issues were hardware being shitty or broken)
emmanuel_erc has joined #nixos
<LilleCarl>
1s, looking for it
<srhb>
LilleCarl: Thank you :-)
emmanuel_erc has quit [Remote host closed the connection]
<LilleCarl>
It's not available in Nix, but there's a hackfix for the reset bug that people contantly experience when using these cards in passthrough environments, doesn't hurt to try
<LilleCarl>
It's not mainline as it's essentially a hack, but hacks > broken
<srhb>
LilleCarl: Definitely, thanks for the reference, I'll give it a shot :)
<nicolas[m]>
Never had a reset fortunately
<nicolas[m]>
LilleCarl: Thanks for the link!
gustavderdrache has joined #nixos
<srhb>
nicolas[m]: Well, that embiggens my fear of faulty hardware at least. These things are so hard to narrow down...
rj has quit [Ping timeout: 268 seconds]
lsix has joined #nixos
<srhb>
Since we're in random try-your-luckmode; has anyone else started experiencing bluetooth headsets dropping off the face of the planet for the last week+ on unstable? It's driving me nuts.
<vldn>
hey, i'm trying to build my default.nix via "nix-build -E 'with import <nixpkgs> { }; ( callPackage ./default.nix {} )'" but with buildPythonPackage rec { } ... it complains about "error: attempt to call something which is not a function but a set, at ... customisation.nix"
<vldn>
whats the right command to build it locally?
<shapr>
srhb: is there a guide for connecting a bluetooth headset to my nixos laptop?
attila_lendvai has quit [Ping timeout: 272 seconds]
<immae>
vldn: your default.nix should be staritng with something like '{ python3Packages }: python3Packages.buildPythonPackage rec { ...}`
<immae>
It needs to be a function with an attrset as argument
b10c__ has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
evanjs has quit [Read error: Connection reset by peer]
petar has quit [Remote host closed the connection]
evanjs has joined #nixos
<srhb>
shapr: Don't think so specifically. It's the same as any other distro after enabling bluetooth though, really. pulse/pipewire will just work once you've done pairing via bluetoothctl
<xAr86>
Hey, I'm new to nixos and found out that I need plasma-desktop at least 5.21 - I tried with unstable which is only 5.20 - can I build it myself somehow? Best Ressources/Tipps?
<ADISBLADIS>
tl;dr; It's on the way, but needs to go through our regular staging workflow
pie_18 has quit [Ping timeout: 240 seconds]
edef is now known as EDEF
riksteri has quit [Quit: riksteri]
<xAr86>
ADISBLADIS Can I use it anyway before like importing staging as channel if I'm sure I want it?
<xAr86>
(also like testing it out)
testingspeed has joined #nixos
edwardk has joined #nixos
<testingspeed>
hi guys what command can I use to test my internet speed on NixOS? I would like to test on fast.com or speedtest
<edwardk>
dumb nix newbie question. i need to use a modern clang 11. is there an easy way to get that off of some cache server or the like?
<xAr86>
testingspeed terminal only or with desktop and browser?
<srhb>
edwardk: clang_11 looks like it's cached
<testingspeed>
terminal only
<srhb>
edwardk: At least from nixos-unstable branch
<xAr86>
testingspeed might not work, isn't any other solution which works from terminal possile?
<srhb>
edwardk: In other words, oyu should be able to treat it like any other package (depending on your needs) and it'll get substituted from the binary cache.
<srhb>
edwardk: Then maybe a simpler answer to transfer is `nix-build '<nixpkgs>' -A clang_11` (which will leave a result symlink in pwd containing clang11)
dusty65 has left #nixos [#nixos]
asbachb has joined #nixos
testingspeed has quit [Quit: Connection closed]
Raelifin has joined #nixos
* edwardk
gestures at Raelifin
<Raelifin>
Edward is asking on my behalf. I get "error: attribute 'clang_11' in selection path 'clang_11' not found"
<eyJhb>
Anyone that have Nextcloud setup using NixOS + using Nextcloud app to autoupload? I cannot get the autoupload to work. Using android... But not sure if it is a NixOS or a nextcloud thing
<jeff37>
hi, so im coming from arch, and i had a udev rule that restarts systemd-networkd when I plug in my android phone with usb tethering. However, this doesn't work as i can't run "systemctl restart..." In the udev rule cause it cant find the command. Is there a workaround for this? Thx
<immae>
jeff37: you can give the full path to systemctl?
<immae>
(I’m not sure if you’re talking about something that works in arch and not in nixos, or something that doesn’t work in either of them)
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @TredwellGit to release-20.09 « element: 1.7.21 -> 1.7.22 »: https://git.io/JtjN4
<infinisil>
jeff37: And you can use /run/current-system/sw/bin/systemctl as the path
<jeff37>
@infinisil: i used the full path, but i still get "/run/current-system/sw/bin/systemctl is called in udev rules but is not executable or does not exist"
<infinisil>
jeff37: Well does it exist?
mananamenos has quit [Ping timeout: 276 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jeff37>
Yes, it does exist
ddellacosta has quit [Ping timeout: 240 seconds]
superherointj_ has quit [Quit: Leaving]
<jeff37>
Solved, i had to call bin/bash in front
<jeff37>
${pkgs.bash}/bin/bash systemctl to be complete for reference