<infinisil>
networking.useNetworkd if you want to try it out (experimental though)
hoverbear has quit [Quit: Connection closed]
<infinisil>
That implements most of the networking.* options using networkd I think
ris has quit []
<ajs124>
You can also configure networkd "manually". It's already declarative, just not particulary nice/beautiful. I've done that for some systems and haven't had any problems with it.
sigmundv_ has quit [Read error: Connection reset by peer]
iyzsong has quit [Read error: Connection reset by peer]
iyzsong has joined #nixos
<nanashi0x74Old[m>
I'm trying to set up a wireguard vpn tunnel. The link seems to work, I'm routing outgoing traffic through my other server now, but now I'd like to forward some external ports to the machine, but that doesn't seem to work. Could anybody help me here?
<nanashi0x74Old[m>
I've set networking.nat.enable = true, set external and internal interface and specified some ports to forward. Builds fine, but it just doesn't seem to work and I don't see any nat rules in iptables -L either
<b42>
iptables -t nat -L ?
<nanashi0x74Old[m>
where can I find kernel logs btw? 😅
<nanashi0x74Old[m>
🙈 thanks, I assumed -L gives me all tables/chains
<b42>
journalctl should have them (journalctl -b for logs only from this boot)
<b42>
(another useful option for iptables is -v which shows packet/byte counters so you can see which rules are getting applied)
markus1199 has joined #nixos
<nanashi0x74Old[m>
ok, they actually do seem to be getting applied... I'll have a look at the other machine's logs also
user_0x58 has quit [Remote host closed the connection]
<nanashi0x74Old[m>
I'm getting loads of spam traffic as well 😞
<MtotheM>
I'm quite confused right now. I want to configure dwarf fortress which had an overlay in `/home/mtothem/.local/share/df_linux` but it's impossible to make any changes to the config file. it's read only.
<nanashi0x74Old[m>
Still don't get what's going on. I inserted some log rules in the nixos-nat-pre chain and am assuming I should get some packets logged when rules get applied in there, no?
<nanashi0x74Old[m>
Either way, I'm getting too tired, I'll have to continue tomorrow
pbb has quit [Remote host closed the connection]
<MtotheM>
I get that this is an edge case. where the config isn't in a standard path like home or etc. but how would I get around this?
<chipb>
a let/in scope seems like the more clear way to go though...
<gustavderdrache>
yeah
<energizer>
pretty much always
<hoverbear>
chipb: Yes but I would like my configuration data localized to my cross compile targets since there will be almost a dozen, and having the configurations separate creates mental overhead
<hoverbear>
If I could see my whole configuration and the outputs in one screenful I can think about it completely without needing to scroll :)
<hoverbear>
gustavderdrache: Okay I think I can work with this, thank you :)
<gustavderdrache>
just be wary, because the scoping rules of rec are subtler than you'd expect
boxscape has quit [Ping timeout: 246 seconds]
<hoverbear>
Yeah :think: I kind of expected a 'parent' selector to be honest?
<gustavderdrache>
there's not really an "up" in attrsets
<chipb>
yeah, maybe think singly-linked list, not doubly-?
<hoverbear>
Oh hold on I reverted my changes and it's still broken so clearly I'm an idiot in some other way xD
<chipb>
a value could be bound to multiple keys, say.
<hoverbear>
Good!
<gustavderdrache>
also i would point out that in a functional language like nix, your unit of abstraction should be the function - i've found it's often fairly easy to write a small function that generates the config boilerplate from a smaller unit of dependencies
sb0 has quit [Quit: Leaving]
<hoverbear>
Yeah I'm trying to get my configuration knobs all together then build simple functions to take those knobs and build, but the recsursive set support and args support has been a real challenge for me :S
<gustavderdrache>
yeah, i'd advise starting with the functions
<hoverbear>
They're done xD
<gustavderdrache>
lol
<gustavderdrache>
not in a functional language they're not :P
<gustavderdrache>
time to wrap those functions in other functions :D
<hoverbear>
Sweetheart I'm not going to write more builder fns when I can't even test my current ones because I can't get fn args working how they are explained to work lol
<hoverbear>
I need more time hitting them with a wrench =D
<hoverbear>
Bears are slow to learn clever things. :) I think I have figured out a good solution now, thank you very much!
plutes has quit [Ping timeout: 272 seconds]
<gustavderdrache>
happy to help
<gustavderdrache>
good luck and happy wrench-banging :)
<hoverbear>
My issue was this
<hoverbear>
> ( { foo ? null } @ args: if args ? foo then args.foo else args.foo) { }
<{^_^}>
attribute 'foo' missing, at (string):317:59
<gustavderdrache>
oh!
<gustavderdrache>
there's a shortcut syntax for exactly that case
<{^_^}>
[nixpkgs] @cdepillabout pushed 8 commits to haskell-updates: https://git.io/JfpBX
<gustavderdrache>
hmmmmmmmmmmm
<gustavderdrache>
one sec, lemme sketch some code out
proofofkeags has quit [Remote host closed the connection]
<hoverbear>
gustavderdrache: =D I consider it solved enough for me right now
<hoverbear>
I need to get back to wrenching about why my rust compiler can't detect it's on stdlib :(
annadane has left #nixos ["Leaving"]
<gustavderdrache>
aha, i think i know what was irking me about the naming
<gustavderdrache>
i think i'd suggest renaming "pkgs" to "hostPkgs" and "cross" to "targetPkgs" - you'll know you're cross-compiling when hostPkgs != targetPkgs
<hoverbear>
gustavderdrache: Yeah I like that more :think:
<hoverbear>
gustavderdrache: I'm trying to do a whole bunch of restructuring unfortunately most of the attempts fail :S
<gustavderdrache>
yeah, do it in small increments
<hoverbear>
Yup right now trying to mush some files together
<gustavderdrache>
my personal rule for these kinds of things is the rule of three: don't centralize it until you see it three times
<hoverbear>
I have at least 12 build targets =D
<gustavderdrache>
:)
<kiwiirc>
rule of 3 is good
waleee-cl has quit [Quit: Connection closed for inactivity]
<gustavderdrache>
alrighty, i'm heading off to sleep
<gustavderdrache>
catch y'all later
<hoverbear>
Night!
gustavderdrache has quit [Quit: Leaving.]
radvendii has joined #nixos
moet has joined #nixos
moet has quit [Client Quit]
<radvendii>
hey y'all! I'm back, with more questions about cross-compiling (in particular, for SDL2)
<hoverbear>
radvendii: omg I'm about to go to bed but I want to listen
<radvendii>
first, it seems like things suceed at cross compiling way more when they're set to build static libraries as opposed to dynamic. I know libraries work differently on windows... should i just be making everything static libraries?
<radvendii>
i've just been setting dontDisableStatic = 1 and configureFlags = ["--enable-static" "--disable-shared"] on everything mostly, and it seems to get them to compile. is there any danger in doing that? is that standard for cross-compiling?
<radvendii>
another question is: do i just need to set nativeBuildInputs = [ buildPackages.cmake ]; instead of buildInputs = [cmake]; for cross compiling with cmake to work? Is that best practice?
<hoverbear>
radvendii According to my research cmake can go in buildinputs
<radvendii>
huh. that kept failing when cross compiling
<samueldr>
things that run when compiling needs to be in nativeBuildInputs
<hoverbear>
Hmm I wonder if that is my issue...
<samueldr>
so yeah
<radvendii>
so why does it need to be buildPackages.cmake instead of just cmake?
<samueldr>
though if it's in a normal derivation called with callPackage, you can skip `buildPackages` and use `cmake` directly, there's some heavy-handed stuff that does it for you
<samueldr>
it's complicated, as I alluded to
<samueldr>
radvendii: is your derivation built through a call to `callPackage`?
<hoverbear>
I wonder if that's part of why my rustcs can't find their stdlibs...
<radvendii>
right now i'm just using nix-build
<samueldr>
right, so the splicing (<- important keyword) doesn't happen
<samueldr>
that's why you have to specify buildPackages
<radvendii>
oh interesting
<radvendii>
i'll have to look up splicing
<radvendii>
so why do I often see cmake in buildInputs rather than nativeBuildInputs? is that just people being slopy?
<samueldr>
kind of
<samueldr>
it may be legacy from before the splicing thing was a thing
simba1 has joined #nixos
<hoverbear>
samueldr: Is `buildRustPackage` similar?
<samueldr>
or people not knowing about it and not knowing/caring (innocently) about cross-compilation
<samueldr>
hoverbear: I don't know for rust stuff, sorry
<hoverbear>
Ok :)))
<samueldr>
I didn't have success when I tried, but I also don't know the rust ecosystem either
<hoverbear>
I know rust I've just been trying to figure out an issue with the nix-rust overlay not pulling my core/std dependencies for some reason Q_Q
<hoverbear>
Current suspicion is what you just taught us =D
<hoverbear>
Might have a tool in the wrong buildinput
<radvendii>
okay, so i finally have my project cross-compiling, and I actually had to get rid of the --enable-static and --disable-shared (but kept the dontDisableStatic = 1.
<radvendii>
now i'm trying to get it to run through wine, and it's not finding any of the libraries
<radvendii>
the .dll files
<radvendii>
i know i saw stuff about how cross-compiling is a pain because windows deals with dynamic libraries weirdly
<radvendii>
but i didn't find a resolution
<radvendii>
does anyone know how to get it to find them besides `cp`ing them all into the directory with the .exe?
<hoverbear>
radvendii I can't wait to ask you more questions when I get to windows
<radvendii>
hahaha, i'm actually such a noob when it comes to windows. I'm slowly learning though
<radvendii>
I've been on mac and linux my whole life
<radvendii>
so it's quite a shock
<hoverbear>
I feel like you could teach me lots!
<radvendii>
=)
<hoverbear>
I used windows for dev for awhile
<radvendii>
ah yeah? with visual studio?
<hoverbear>
Uhhhh I was running `make` and rust compiler stuff =D
<hoverbear>
`scoop` is a great gift
<bqv>
Gosh, windoes
<radvendii>
is that for rust?
<bqv>
I pray I never have to use it
<hoverbear>
Scoop is a windows package manager.... scoop.sh
<cole-h>
scoop is kinda like a package manager for Windows, I guess?
<hoverbear>
It's not good or anything
<hoverbear>
It just, is.
<hoverbear>
But on windows, well, that's enough!
<radvendii>
yeahhh
<radvendii>
i was looking for windows package managers and didn't find that one
<hoverbear>
Well good news microsoft made(/copied off appget) winget
<radvendii>
copying all the dlls it said were missing recursively into the folder with the executable worked
<radvendii>
XD
<hoverbear>
omg yay
<radvendii>
my program runs though!
<hoverbear>
!!!
<radvendii>
i'll have to refine the process of compiling obviously, but at least in theory it can run on windows =D
<bqv>
At least its not DLL Hell
<bqv>
Ah those were the days
<radvendii>
i'll have to make pull requests to nixpkgs with the changes i made to SDL2 &c
<radvendii>
what's DLL hell?
endformationage has quit [Quit: WeeChat 2.6]
<bqv>
DLLs used to be incredibly brittle-y versioned, so not only did you have to have all the dlls for your program, but also hunt down each specific version
<radvendii>
oh wow
<radvendii>
yikes
<hoverbear>
Yeah static link binaries you distribute
<hoverbear>
If you include them in a repo yeah dynamic link like nuts
<radvendii>
I'm not sure how to force nix to statically link. looking into that now
<bqv>
Involves pkgsStatic, which is almost certainly comprehensively fscked on windows
aruniiird has joined #nixos
aruniiird has left #nixos ["Leaving"]
aij has quit [Ping timeout: 264 seconds]
palo1 has joined #nixos
cole-h has quit [Quit: Goodbye]
<radvendii>
what is the point of having dynamic libraries if they just end up putting them all in each folder with an exe?
<hoverbear>
I'm building llvm for musl so if anyone wants to roast marshmallows please come visit
palo has quit [Ping timeout: 264 seconds]
palo1 is now known as palo
<radvendii>
hahaha. i just built a really powerful computer for gaming. little did i know i would mostly be using that power for compiling
<hoverbear>
Yup I am shopping for a threadripper as we chat
aij has joined #nixos
<radvendii>
ooh nice
<radvendii>
i went intel because gaming but now i'm kind of regretting it :P
<hoverbear>
Yeah times have changed
<hoverbear>
I'm having a lot of issues finding a good matching gpu for a threadripper though, seems the AMD 5700 XTs dont really come water cooled yet :(
<patrickod>
hey folks. I'm new to nixos packaging and trying to wrap my head around how nixos deals with packages that also ship libraries, specifically looking at extending the obs-studio package to include libobs from the same project.
<hoverbear>
Hi! =D
<radvendii>
hoverbear: ah bummer
<patrickod>
is it possible/common for packages to ship both? I know people recommend looking at existing examples for reference but I'm not aware of any to hand
<radvendii>
I'm pretty sure there are packages that ship both
<hoverbear>
patrickod: I have seen openssl can have both `openssl` and `openssl.dev` etc...
<radvendii>
i'll look around see if i can remember which
<patrickod>
the background is that I'm trying to compile looking-glass's new obs-studio plugin which relies on the libobs package embedded in obs-studio
<hoverbear>
patrickod I wonder if it deserves its own package?
<lopsided98>
hoverbear: that is split outputs, which is often used to put libraries in a separate derivation, but I would avoid that if you are just learning Nix
<patrickod>
if that's the nix way to do it then happy to take that approach
<hoverbear>
Hmmm I know rdkafka ships a dynamic runtime lib but it has no matching binary...
<lopsided98>
normally you can just put executables in $out/bin and libraries in $out/lib and everything works
<lopsided98>
split outputs are only really useful to save space when some part of a package is large and you don't usually need it
<radvendii>
the description of flac says that it has tools and libraries, but i can't actually find the binaries
<patrickod>
lopsided98: it's possible that not all users of looking glass would like the entire obs-studio app installed
<lopsided98>
yes, that does seem like a useful case, but it might be good to get it working without splitting first
<lopsided98>
radvendii: flac uses split outputs; the libraries are in flac.out. Normally though, if you just include it in buildInputs you don't have to worry about that
<radvendii>
I found this, but the thread seems to have died even though the underlying problem hasn't gone away? Hello package now cross-compiles fine, but DLLs are still not forwarded: https://github.com/NixOS/nixpkgs/issues/38451
<{^_^}>
#38451 (by expipiplus1, 2 years ago, open): Cross compiling for mingw doesn't find gcc DLLs
<lopsided98>
patrickod: in your case, I would expect that just adding obs-studio to looking-glass's buildInputs should work. If so, then you could look into splitting obs-studio.
<patrickod>
lopsided98: it does appear that the library is working as expected. the remaining part is compiling the obs-studio plugin within the looking glass source directory.
<mtn>
I'm having trouble with `enableACME` in `services.nginx`. When I set it to false, everything works correctly and my site serves on the domain over http. When I enable it, ACME certificate renewal fails: the request to ${domainName}/.well-known... fails
<mtn>
So it's not an error message about ping, it's from ping :)
<mica[m]>
Can you ping just let's encrypt.org?
<mtn>
yep
<patagonicus>
Eh. You can't ping a https URL. ping only knows about domain names.
<mica[m]>
mtn: have you set security.acme.acceptTerms
<patagonicus>
I.e. ping acme-v02.api.letsencrypt.org should work. To test if you can download that file, use curl or wget or something (wget will save it as a file by default).
<mtn>
mica[m]: Yep
mallox has joined #nixos
<mtn>
patagonicus: Yep, pinging that base url works. Curl returns a json blob, even though ping doesn't work (even without the https)
<mtn>
I'll share the blob -- it seems like a more detailed error message
<patagonicus>
mtn: ping also won't work for anything with a slash in it. I.e. `ping example.com/foo` will never work.
<mtn>
patagonicus: Oh interesting, somehow I never realized that but it also makes complete sense
<mtn>
I guess it'd be nice if it just ignored everything after the domain though
<mtn>
Except maybe that doesn't make sense because it'd return even if there's no endpoint
<patagonicus>
mtn: based on the log it looks like Let's Encrypt has trouble connecting to your server. Can you access the server from a different network? I'm assuming it's a server somewhere that's not your home.
mtn52 has joined #nixos
<mtn52>
Ah, that seems like the problem
<mtn52>
I can't access the server off my home network, even though I can ssh to the computer that's running it from off the home network
<mtn52>
Weird, since port forwarding is set up the same way
<patagonicus>
I'd guess your servers firewall is blocking it. Over SSH forwarding it'll work as that looks like a local connection to the firewall.
mtn has quit [Ping timeout: 245 seconds]
<mica[m]>
mtn52: your ISP is likely blocking port 80 if its a home connection.
<patagonicus>
mtn: Oh, yeah. I doubt you'll be able to host a website with your ISP then. Some of them are really annoying with that. :/
<patagonicus>
Basically, you can't have a domain use a different port by default, it will to be explicitly specified in the URL (i.e. http://example.com:1234/foo) and Let's Encrypt will not work, I'm pretty sure they require port 80 as others would open it up for some attacks.
<mtn>
Ah, that's sad. Makes sense
<mtn>
I guess I might have access to a server I forward traffic through, but that'd be a drag
Chiliparrot has joined #nixos
<mtn>
Oh wait, one thing though
<mtn>
When I first set up the domain, it didn't time out, visiting the domain just went to my router config page
<mtn>
As if I'd visited 192.168.1.1 on the local network
drakonis_ has joined #nixos
<mtn>
Oh wait, nevermind
<mtn>
That was on the local network
aruniiird has joined #nixos
proofofkeags has quit [Ping timeout: 260 seconds]
kenji has joined #nixos
mtn has quit [Remote host closed the connection]
absoluutely has joined #nixos
<DigitalKiwi>
you might be able to get the dns letsencrypt method to work
mtn has joined #nixos
<radvendii>
is there a way to test the installPhase part of the build from nix-shell? It's giving me a permissions error, presumably because i'm not allowed to write to the nix store
<DigitalKiwi>
my isp blocks port 80 too but i have letsencrypt on my router
<mtn>
Oh wait, probably not like that, since that's for the computer resolving DNS requests rather than letsencrypt which needs to find our server/router
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.dns(-client): 4.6.0 → 4.6.1 »: https://git.io/JfpgF
karantan has joined #nixos
kleisli has quit [Ping timeout: 246 seconds]
<betaboon>
damn the new github design is confusing xD
<WIIIHEIIM>
Hello, I would like some pointer, I'm trying to update/upgrade a package, the overall project structure of the package changed, so I use `nix-shell $NIXPKGS -A anki` to interact and see where it fail but I'm having some issues: first, is my approach good? And second is there a way I can deal with absolute paths (/bin/bash and stuff) or do I need to
<WIIIHEIIM>
fix it with a symlink? Thank you in advance.
Zetagon has joined #nixos
<symphorien>
For absolute paths in shebang, there is patchShebangs
<symphorien>
For other cases, you need to patch by hand
<WIIIHEIIM>
Okay I'll look into it, thanks a lot
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<symphorien>
PatchShebangs is automatically run at the end of the build, if you need it sooner you'll have to call it yourself
<symphorien>
Like in postPatch or something like that
FRidh has quit [Ping timeout: 240 seconds]
FRidh has joined #nixos
<WIIIHEIIM>
Is there a way to use it inside of a nix-shell? Sorry I'm not really familiar with the workflow of nix
<WIIIHEIIM>
I think I got it, thanks again
m0rphism has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomasjm has joined #nixos
miguel_clean has joined #nixos
aruniiird has quit [Ping timeout: 260 seconds]
mtn has quit [Remote host closed the connection]
<gregf>
hmm, trying to deploy a server with nixos. It appears to be trying to downgrade packages that are already there. configuration.nix on the server is set to 20.03.. cany canyone tell me what might be going on here?
<gregf>
totally forgot how nixops works, forget that it builds locally. My local systme wasn't up to date with what the server had
<bahamas>
while deploying a system with nix-copy-closure, I see lines like this: warning: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 253 ms. anyone have any idea how I can debug this?
nikita` has joined #nixos
nikita` has joined #nixos
nikita` has quit [Changing host]
<pjt_tmp>
bahamas: That just means it can't connect. Double check your connection--see if you can ping the device--and try again later.
<bqv>
Fix host resolution :p
orivej has joined #nixos
graf_blutwurst has joined #nixos
boxscape has joined #nixos
Ashy has joined #nixos
karantan has joined #nixos
asymptotically has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
aw has quit [Remote host closed the connection]
spacefrogg has quit [Remote host closed the connection]
<radvendii>
wow compiling everything from scratch takes forever...
aruniiird has quit [Ping timeout: 260 seconds]
<patagonicus>
radvendii: Currently doing that on a RPi3. I totally agree. :D
orivej has quit [Quit: No Ping reply in 180 seconds.]
<radvendii>
all i did was change a function that has to run on every package build!
o1lo01ol1o has joined #nixos
<radvendii>
patagonicus: oof. I'm pretty sure nix burned out my raspbery pi's SSD because too many writes, but I might be wrong about what happened
orivej has joined #nixos
amohan has quit [Ping timeout: 260 seconds]
<patagonicus>
radvendii: Yeah, wouldn't be surprised, it just crashed after ~a day, although I would be surprised if a day of writes would be enough to break a new SD card.
copy has joined #nixos
<radvendii>
patagonicus: yours burned out after a day too?
kleisli__ has joined #nixos
<patagonicus>
I don't think so, it rebooted fine. It might have just had a hiccup.
o1lo01ol1o has quit [Ping timeout: 240 seconds]
kleisli_ has quit [Ping timeout: 260 seconds]
gxt has quit [Remote host closed the connection]
pjt_tmp has quit [Ping timeout: 240 seconds]
jmarhee has quit [Ping timeout: 260 seconds]
fendor has joined #nixos
kreyren has quit [Remote host closed the connection]
<Taneb>
How safe is it to upgrade the version of ZFS?
<Taneb>
And also is there a good way to go from a "normal" ZFS configuration (made on the command line with zpool/zfs) to one specified in a NixOS config?
karantan has joined #nixos
karantan has quit [Ping timeout: 260 seconds]
<Ashy>
Taneb: it's as safe as however many tested backups you have
lsix has quit [Ping timeout: 260 seconds]
meh` has joined #nixos
aveltras has joined #nixos
teto has quit [Ping timeout: 265 seconds]
<bahamas>
KarlJoad: you can import a nix file inside nix repl, if that helps
<bahamas>
`import ./path/to/default.nix`
zupo has joined #nixos
alexherbo2 has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<metasyntactic>
Does anyone know why I see a ton of messages like the following in my journald? I've been searching around through code and can't figure out what's causing all of the mounting behavior: run-docker-runtime\x2drunc-moby-5fb3bc2071eef752dd6adf645570811de6b538d1972dd68ba74cdc6ddcd093c0-runc.0BOB8I.mount: Succeeded.
agsdheidjd has quit [Ping timeout: 240 seconds]
pingiun has joined #nixos
<pingiun>
zfs tells my that my rpool is degraded, with errors found in the /nix directory. is there a way to rewrite these files?
<pingiun>
I'm thinking it might be that I got a bad ssd, but I want to try for a bit more to check if it was a fluke
<pingiun>
Arahael: I believe it's just cheap or something
<Arahael>
pingiun: Ah, fair enough.
fendor has quit [Remote host closed the connection]
<philipp[m]>
Somebody here with mod rights in #nixos-chat? Please take a peek over and ban the troll.
<pingiun>
xwvvvvwx: thanks for that, is there also a way to refresh links in /nix/store/.links?
tudorr has joined #nixos
<KarlJoad>
I have added the nixos-unstable channel to my nix path using `nix.nixPath`, however, when I try to install a package with environment.systemPackages = [ <unstable>.mu ] I get error: value is a path while a set was expected. How do I handle this?
<pingiun>
<unstable> is just the path to the unstable nix expression, to use it you should call it. i.e. (import <unstable>) {}
<pingiun>
iirc
<pingiun>
KarlJoad:
<KarlJoad>
pingiun: Gotcha. Is there any way to make my unstable channel behave similarly to my stable channel, where all I need to say is environment.systemPackages = [ pkgs.program ], without the (import <unstable>) { config = config.nixpkgs.config }?
<pingiun>
yeah, you can use overlays for that
<pingiun>
I'll post a snippet of my config, (which I got from someone else in this irc)
<pingiun>
then you can use pkgs.nixos-unstable.program
<pingiun>
or whatever you rename nixos-unstable
<pingiun>
so just put that overlay anywhere within your config and you can use it everywhere super easy
<KarlJoad>
PERFECT! Just 1 question, you seem to be missing a parentheses. Is that intentional?
<pingiun>
nah was an error
<pingiun>
because I copied it from a larger config
<KarlJoad>
Ok, just a parentheses to close the list then?
<pingiun>
yep just close everything
<xwvvvvwx>
pingiun: no idea sorry :( I'd never heard of /nix/store/.links before tbh :D
<metasyntactic>
Does anyone have any idea what these are?: run-docker-runtime\x2drunc-moby-5fb3bc2071eef752dd6adf645570811de6b538d1972dd68ba74cdc6ddcd093c0-runc.0BOB8I.mount: Succeeded.
<pingiun>
xwvvvvwx: seems like I need to do a reinstall probably
<pingiun>
which is not that hard because it's nixos :D
<pingiun>
metasyntactic: seems like it's a docker volume
<xwvvvvwx>
pingiun: what does /nix/store/.links contain normally out of curiosity? It's empty on my system.
<KarlJoad>
pingiun: That works perfectly! Thanks!
<pingiun>
xwvvvvwx: it contains lots of hashes, some linking to nix store files
<KarlJoad>
pingiun: I have /nix/store/.links on my system. I have no idea what it does though..
kiwiirc was banned on #nixos by gchristensen [*!68c88135@gateway/web/cgi-irc/kiwiirc.com/ip.104.200.129.53]
kiwiirc has left #nixos [requested by gchristensen (kiwiirc)]
<itshaydendev>
Anyone know why I might be having problems with bspwm's `configFile` option in nixpkgs seemingly having a cache of some sorts?
orivej has quit [Ping timeout: 265 seconds]
<KarlJoad>
pingiun: "many hard links can cause trouble". How can a hardlink cause troubles?
orivej has joined #nixos
<pingiun>
KarlJoad: I can't remember lol. just that I had seen that somewhere
<KarlJoad>
Ok, because, in my mind, that doesn't quite make sense to me.
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<pingiun>
I think I remember it having to do with exotic file systems
<pingiun>
but the problem is I don't remember if that was zfs, and I cannot find it in a google search now
<pingiun>
so Il
<pingiun>
so I'll just disregard that knowledge
derek_betak has joined #nixos
<pingiun>
and I'll just order a new ssd because zfs keeps complaining about checksum errors
<KarlJoad>
With ZFS, it might be something to do with snapshots, and the way those are handled.
jboy has joined #nixos
metasyntactic has quit [Remote host closed the connection]
<itshaydendev>
Anyone?
<pingiun>
KarlJoad: I found the thing I was thinking about: "Using NixOS on a ZFS root file system might result in the boot error external pointer tables not supported when the number of hardlinks in the nix store gets very high."
<pingiun>
itshaydendev: are you restarting bspwm in between config changes?
<itshaydendev>
Yeah. Even tried rebooting
<itshaydendev>
The thing is, I looked in htop at what the arguments were, found the config file it was loading, and looked in.
<pingiun>
itshaydendev: you can always look at the source of the module to see if there's something weird
<itshaydendev>
It *has* my changes
<pingiun>
hmm
<pingiun>
itshaydendev: does bspwm have some config validation? maybe your config is invalid and it defaults to something
<KarlJoad>
pingiun: That's an incredibly weird "bug". Interesting!
<pingiun>
KarlJoad: yeah for sure, but it wasn't happening in my case as I have /boot on an efi partition
<itshaydendev>
pingiun: The thing is, that's not the case. BSPWM is configured via an rc file and the `bspc` command. So for example, `bspc config window_gap 12`. If I run the config I changed manually from a terminal, it goes through ok
<KarlJoad>
pingiun: I wonder what really causes that problem. It seems weird to me that having too many hardlinks causes a problem in a pointer table.
<pingiun>
itshaydendev: it could be that you're using some commands in the rc file that are not available in the PATH at that point, but are available when you execute it manually
<itshaydendev>
the commands are fine. it's only a *change* to the config that fails
<itshaydendev>
the config loaded is the one that I was using when I set up my bspwmrc from before
<itshaydendev>
it was working then
<pingiun>
well that's really weird
<itshaydendev>
it still is but it isn't taking any changes i make
<pingiun>
but I don't think I can help any further, I don't use bspwm myself
<itshaydendev>
i dont suppose just disabling services.xserver.windowManager.bspwm, rebuilding, adding it and rebuilding again would help would it?
<pingiun>
don't think so
<pingiun>
you could try
<pingiun>
maybe gc inbetween
<itshaydendev>
so remove, rebuild, gc, add, rebuild?
<KarlJoad>
itshaydendev: What are you trying to change?
<itshaydendev>
KarlJoad: The names of some of my workspaces, there were typos
proofofkeags has joined #nixos
<itshaydendev>
And add my polybar launch script but that wouldn't halt execution because it's called *after* the workspace calls
bahamas has joined #nixos
<pingiun>
itshaydendev: yeah I think that way you can be sure that the old config is removed
inkbottle has joined #nixos
<itshaydendev>
pingiun: the thing is, the file that bspwm is being launched with *has* my changes
<pingiun>
that's true
<pingiun>
so probably it won't help at all
<pingiun>
can you send the config?
<itshaydendev>
yep. it's on my github, lemme grab the link
<itshaydendev>
actually, need to update it first one sec
<Taneb>
Upgraded a server at work from NixOS 18.09 to 20.03 :D
<itshaydendev>
KarlJoad: initially, yes. not after changes
<pingiun>
I think it will be good to narrow down the problem, so checking if it works without the .sh file execution seems smart
<itshaydendev>
ok
<KarlJoad>
Double check the shebang at the top. You /bin/sh doesn't really exist. Try to use ${pkgs.sh} or something like that. That might be causing some issues too.
derek_betak has quit [Quit: derek_betak]
<pingiun>
KarlJoad: /bin/sh should just exist though
<itshaydendev>
/bin/sh does exist tho ._.
<pingiun>
in fact it's the only thing in /bin
<itshaydendev>
Oh, i see what you mean
<itshaydendev>
It's a symlink
<pingiun>
I don't think the problem lies there
<pingiun>
and using ${pkgs.sh} makes this a factor more difficult
<pingiun>
because you're including the whole file and not doing any string interpolation in it atm
<KarlJoad>
yeah, I doubt it too, but I'd like to eliminate that as a possibility. If it still doesn't work, then it can be changed back.
<pingiun>
KarlJoad: but first remove the polybar and fehbg .sh files to check if it's a PATH issue
<itshaydendev>
Okay
<KarlJoad>
I don't use BSPWM, so I'm making some guesses as to what might be wrong. It feels like a path issue though. If only the scripts, and only the first line of the bspwmrc file are not loading, then it feels like a path issue.
itshaydendev has quit [Quit: itshaydendev]
itshaydendev has joined #nixos
<itshaydendev>
No dice
<itshaydendev>
removing didnt work
<pingiun>
:(
<pingiun>
what is dunst?
<itshaydendev>
notification daemon
<itshaydendev>
i removed that too
crazazy has joined #nixos
<itshaydendev>
i get the feeling this might actually be a case of bspwm not reading the config at all
<pingiun>
itshaydendev: so that would support the case of the config file containing some errors
<pingiun>
doesn't bspwm log those anywhere?
<pingiun>
in the journal?
<itshaydendev>
not that ive been able to find
alp has quit [Ping timeout: 272 seconds]
<pingiun>
what happens if you execute the file yourself with an empty path?
<pingiun>
or limited PATH
<itshaydendev>
How would I emulate that?
<pingiun>
you can check what a limited path looks like by checking a systemd unit with `systemctl cat nix-optimise.service` (for example)
<pingiun>
then `PATH=blabla /location-of-rc-file`
Chiliparrot has joined #nixos
<betaboon>
flokli: around? i just noticed that #50925 has been closed as it is supposed to successfully crosscompile now. that seems to be true for aarch64 but not for armv7l. would you be able to try building it for armv7l just to get a 2nd confirmation that it is still broken ?
<pingiun>
itshaydendev: it's empty or it doesn't exist?
<flokli>
Ah, but I don't build btrfs-progs anymore
<itshaydendev>
Doesn't exist
<itshaydendev>
It's calling config on a file that doesn't exist
<pingiun>
that's really weird
<pingiun>
because nix store paths are dependencies
<pingiun>
so nix should make sure it exists
<flokli>
betaboon: as the whole "generate sdcard" toolchain is currently somewhat hardwired to build a FIRMWARE vfat and a NIXOS_SD with ext4
<itshaydendev>
It's in a file starting with 281 in the nix store... But there aren't any files starting 281 in my nix store
itshaydendev has quit [Quit: itshaydendev]
itshaydendev has joined #nixos
<pingiun>
maybe it's a good idea to remove the module, gc, and add the module again in that case
<itshaydendev>
Could this be lightdm's fault?
taylskid has joined #nixos
<taylskid>
.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pingiun>
itshaydendev: nix dependencies don't suddenly vanish from the store
<pingiun>
nix always makes sure that it exists
<itshaydendev>
No, I'm saying could this be lightdm not getting the updated file path
<flokli>
betaboon: I disabled udisks2 and polkit on that machine, I think udisks2 pulled in btrfs-progs. I kicked off cross-builds for btrfs-progs on armv7l and aarch64 and will report back
<pingiun>
itshaydendev: you can check that with systemctl status lightdm maybe
<itshaydendev>
Unit lightdm.service could not be found.
<betaboon>
flokli: i am building against 536aad5776fd58a4576e482667ee4a6efc5b0c5d (trying to finish that docker cross-compile PR) and just noticed it still fails for btrfs-progs. just to clarify what I'm running: `nix-build https://github.com/NixOS/nixpkgs/archive/536aad5776fd58a4576e482667ee4a6efc5b0c5d.tar.gz -A pkgsCross.armv7l-hf-multiplatform.btrfs-progs`
<itshaydendev>
Ah, it's display-manager
<flokli>
the attribute sounds correct. currently building with nixpkgs d8d19f249793966d1cce391d54203cc717764e63 (current master)
<itshaydendev>
Right... that's just calling xsession.
<pingiun>
itshaydendev: yeah I was just guessing, I don't run nixos with a display
<crazazy>
https://hydra.nixos.org/build/122701057 says that racket failed building, however i seem to be able to build it from source on my computer when i called it as a dependency
<betaboon>
flokli: ok. so thats the only difference right now. the mentioned commit is where i forked my branch this morning. gonna rebase and try again. just so we're on the same commit :D
<flokli>
betaboon: nah, all good. It's enough if I burn my CPU cores :-D
<flokli>
I confirmed it
<itshaydendev>
Ah!
rajivr has joined #nixos
<itshaydendev>
it's not using the updated xsession!
<betaboon>
flokli: thanks for confirming and documenting in #50925
<Arahael>
Has anyone tried nix on the latest macos yet?
codygman has quit [Read error: Connection reset by peer]
<Arahael>
I'm wondering if native docker could be a way to run nix.
crazazy has quit [Remote host closed the connection]
codygman has joined #nixos
<symphorien>
asymmetric: it does not influence runtime through a wrapper but through patchShebangs iirc
lsix has joined #nixos
Negher has quit [Quit: Leaving ...]
<immae>
asymmetric: ah yes it’s in the file, around line 466 the _PATH variable is filled-in with buildInputs, and then later PATH is set to that variable
<immae>
Oh I misread "runtime"
Negher has joined #nixos
o1lo01ol1o has joined #nixos
zupo has quit [Client Quit]
<asymmetric>
yeah it def doesn't use a wrapper to set PATH
<asymmetric>
symphorien: patchShebangs only pins a specific interpreter, right? or does it also handle environment?
<pingiun>
itshaydendev: you got it working?
<pingiun>
Arahael: do you mean on big sur? I have it working on mojave
<symphorien>
No it does not do environment. But there is no implicit wrapping with stdenv.mkDerivation
<xwvvvvwx>
asymmetric: I think buildInputs is used as the set of potential runtime deps, and the actual runtimes deps are the buildInputs whose hash is found in the derivation output somewhere
<asymmetric>
xwvvvvwx: hmm, but wrapProgram works (by correctly patching the PATH) even if a dep is not declared in buildInputs.. so i'm not clear on why the list of potential runtime deps is needed in the first place
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos
<WIIIHEIIM>
Hi, I once again seek your help, I'm trying to compile a rust project within a nix-shell but I got an error saying `No such file or directory` while the file does really exist, the path is correct (in relative or absolute) in the source code but I keep crashing, is it possible it's due to how nix-shell/nixos works? On other OS like Manjaro it seems
<WIIIHEIIM>
fine.
agsdheidjd has left #nixos [#nixos]
oida has joined #nixos
<pie_>
can give more details about the context of the error and maybe paste a shell backlog? WIIIHEIIM
Rusty1 has joined #nixos
aruniiird has quit [Ping timeout: 260 seconds]
lordcirth has joined #nixos
<WIIIHEIIM>
Yes of course, I'm compiling anki in order to update the nixpkgs and so I got an weird error stating `thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/tale/anki-2.1.22/rslib/build.rs:127:5`
<WIIIHEIIM>
And when looking where the function crashes I see nothing weird, it's looking for an existing file
<WIIIHEIIM>
The line where it crash correspond to: prost_build::compile_protos(&["../proto/backend.proto"], &["../proto"]).unwrap(); but ../proto/backend.proto really exists
<WIIIHEIIM>
Sorry I forgot to put some backtip to make it cleaner
<WIIIHEIIM>
I'm not really familiar with Rust but since it compile without issue on other OS I'm thinking it may be related to nixos/nix-shell
dsg has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @neonfuz opened pull request #91406 → yaxg: Removed unstable from name → https://git.io/Jfp9x
cosimone has joined #nixos
meh` has joined #nixos
<asymmetric>
symphorien: ah, yes that makes sense
hoverbear has joined #nixos
aruniiird has joined #nixos
drakonis_ has quit [Ping timeout: 264 seconds]
<AmandaC_>
I'm getting this when trying to build hydra on my server: https://gitlab.darkdna.net/amanda/nix/snippets/100 -- I'm not seeing anything about it in the various projects, so I'm not sure if this is just a new issue, or soemthing I caused somehow?
<itshaydendev>
I've got this configuration for lightdm for bspwm, and the session config for bspwm is pointing at an xsession file
<itshaydendev>
In that file, it uses the correct config
<itshaydendev>
But it's not using that config in the boot args
<itshaydendev>
It's like lightdm is caching configs?
cfricke has quit [Quit: WeeChat 2.8]
proofofkeags has joined #nixos
gustavderdrache has joined #nixos
spacekookie has quit [Quit: **aggressive swooshing**]
drakonis_ has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]
spacekookie has joined #nixos
<{^_^}>
[hydra] @basvandijk opened pull request #788 → updateDeclarativeJobset: only set the emailresponsible column when defined → https://git.io/JfpQW
spacekookie has quit [Client Quit]
spacekookie has joined #nixos
drakonis has quit [Ping timeout: 240 seconds]
<srhb>
AmandaC_: Is that hydra-unstable?
<AmandaC_>
srhb: I don't believe so? I
<AmandaC_>
'm on nixos-unstable, though
<srhb>
AmandaC_: How did you try to build hydra?
itshaydendev has quit [Remote host closed the connection]
<srhb>
AmandaC_: Ah, yes, I see, I just bumped unstable and I get the same error. Looks like the nix version is incompatible with it indeed.
<AmandaC_>
srhb: it;s being built as pasrt of the `services.hydra` options of nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<duairc>
Has anyone ever come across "error: value is a string while a set was expected, at [..]/lib/modules.nix:266:25" when trying to do stuff with NixOS submodules?
zupo has joined #nixos
<srhb>
AmandaC_: (So to clarify, yes, it's a new issue, not just you, and probably caused by b505bf202b0c23e3bd22d2555d79d6fbb2fa498c)
dermetfan has quit [Ping timeout: 272 seconds]
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 258 seconds]
Mateon2 is now known as Mateon1
rootatarch has quit [Changing host]
rootatarch has joined #nixos
rootatarch has joined #nixos
rootatarch has quit [Changing host]
<{^_^}>
[nixpkgs] @mweinelt opened pull request #91408 → [20.03] curl: 7-68.0 -> 7.70.0; apply patches for CVE-2020-8169 and CVE-2020-8177 → https://git.io/Jfp7a
<pbogdan>
seems to be related to home manager's manual; and the path is actually referenced by some old generations so I don't quite understand why it's not valid
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
kfound has joined #nixos
zupo has joined #nixos
kfound has quit [Remote host closed the connection]
marsh has joined #nixos
lukebfox has joined #nixos
lukebfox has quit [Remote host closed the connection]
ddellacosta has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
arahael1 has joined #nixos
Arahael has quit [Ping timeout: 264 seconds]
<KarlJoad>
pbogdan: To my inexperienced eye, it looks like a derivation for a package that another package depends on is broken.
itshaydendev has joined #nixos
itshaydendev has quit [Client Quit]
mallox has quit [Quit: WeeChat 2.8]
<axx[m]>
hey everyone, i'd like to try NixOS out on my rpi4, do i understand correctly that the default `aarch64` image requires me to be able to connect a screen and keyboard to the rpi4 to be able to go through set up?
<axx[m]>
i'm looking at doing it headless
boxscape has quit [Quit: Connection closed]
sigmundv_ has quit [Read error: Connection reset by peer]
orivej has quit [Quit: No Ping reply in 180 seconds.]
sigmundv_ has joined #nixos
itshaydendev has joined #nixos
kreyren has quit [Remote host closed the connection]
<jakobrs>
Is there a way to imperatively setup NAT (non-persistently) without editing configuration.nix?
orivej has quit [Ping timeout: 246 seconds]
ebopp has joined #nixos
<jakobrs>
I mean I could do ipconfig with the relevant arguments but I can never remember which
<jakobrs>
So I was wondering if there's a standard way to do this
<evax>
I'm trying to build a flake to share a set of python and R packages between projects. Ideally it should support both x86_64-linux and x86_64-darwin, but the relation between overlays and systems isn't very clear to me.
orivej has joined #nixos
<adisbladis>
Wat, someone else is using that
MtotheM has quit [Ping timeout: 260 seconds]
<pie_>
jakobrs: afaik people use iptables
<pie_>
there might be other frontends for it, idk if ufw does nat
<pie_>
idk if nix has ufw
<pie_>
i havent used ufw but i remember it being something maybe worth looking into
<jakobrs>
It seems like a bad idea to use both nixos's firewall and ufw at the same time
<pie_>
otoh maybe im mixing it with something else
<jakobrs>
I remember reading through the nixos/nat module and there seemed to be some sort of system
<jakobrs>
so presumably there *is* a way to use iptables to do this that's consistent
o1lo01ol_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<b42>
looks like as long as you have networking.nat.enable = false nixos doesn't even touch the nat table
<jakobrs>
You can change te name: "nix-channel --add <url> <name>", replace <name> with whatever you want to call the channel
<hoverbear>
So how can I create a folder hierarchy of several outputs in my `nix build --out-link foo/` location isntead of ending up with `foo` `foo-1`?
<numkem>
I'm looking into integration between nixos and nomad and I was wondering if there was a way to get a closure of some kind built so I could than just start it by invoking systemd directly? It would be in an insolated systemd container
drakonis has joined #nixos
o1lo01ol_ has quit [Remote host closed the connection]
drakonis1 has joined #nixos
cr4y1 has joined #nixos
<seven-eleven>
;declarative
<seven-eleven>
,declarative
<{^_^}>
There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
drakonis_ has quit [Ping timeout: 258 seconds]
<seven-eleven>
the bot {^_^} recommends to write a buildEnv config.nix like this https://git.io/fp0aU is this also compatible to multi user installations, because when I use that config I get following permission error: error: getting status of /home/user/.cache/borg/de6415b3992d82c72aa2f9237e0a5bfd6e75730b7ead7e55804e5978e8d4048a/default.nix: Permission denied
drakonis has quit [Ping timeout: 240 seconds]
tokudan[m] has joined #nixos
<tokudan[m]>
numkem: depends on what exactly you want to build. basically you always get a closure when something is built. but what exactly do you need?
drakonis has joined #nixos
jakobrs has left #nixos ["WeeChat 2.7.1"]
<numkem>
tokudan[m]: I think what I want is what containerTarball gives, minus the tarball. If it was all in the store that would be preferable
o1lo01ol1o has joined #nixos
<Ankhers>
I seem to be having an issue updating nixops from nixpkgs-unstable at the moment. It is complaining that boto3 could not be installed because it could not satisfy the botocore dependency. Is anyone else having this issue?
__monty__ has joined #nixos
drakonis1 has quit [Ping timeout: 258 seconds]
Thra11 has quit [Ping timeout: 260 seconds]
mokulus has joined #nixos
graf_blutwurst has quit [Remote host closed the connection]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
Thra11 has joined #nixos
kreyren has joined #nixos
noudle has quit []
drakonis1 has joined #nixos
drakonis_ has joined #nixos
nixbitcoin has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 260 seconds]
<numkem>
tokudan[m]: that sounds promissing. But unfortunately it doesn't seems like ti would be as easy as I though as I'd need to somehow make an isolated root since that method has it's own nix store, I'd like to use the system's
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
quinn has joined #nixos
knupfer1 is now known as knupfer
proofofkeags has quit [Remote host closed the connection]
camsbury has quit [Remote host closed the connection]
proofofkeags has joined #nixos
camsbury has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
fpob has left #nixos ["Leaving."]
<{^_^}>
[nix] @jtojnar opened pull request #3741 → doc: Add prompt elements → https://git.io/JfphS
Seebi has quit [Quit: Leaving]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
dermetfan has joined #nixos
noudle has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos
erasmas has joined #nixos
cosimone has quit [Quit: Quit.]
MtotheM has joined #nixos
<sephii>
I'm still struggling with building a derivation for my Python app and its plugin. "A" is the Python application, "B" is the plugin, which is a Python package that depends on "A" (because it uses parts of its library). I've tried creating a default.nix with "A" built with "buildPythonApplication" and "B" with "buildPythonPackage" with "A" in "propagatedBuildInputs", and I thought I could then use "mkDerivation"
<sephii>
to create the derivation that would use both of them as "propagatedBuildInputs", but I need to set an "src" to "mkDerivation". I'm really out of ideas here :(
<numkem>
tokudan[m]: the tarball brings a good approach and it might be what I need after all, right now I seem to have paths issues so I'm trying to figure that one out. my goal would be to have nomad being able to spawn tasks that would be a nix host definition through an passed expression
<numkem>
tokudan[m]: the tarball approach is interesting as it could be a sort of image
<numkem>
tokudan[m]:I'm not even sure if it's possible, it's just guess work at this point
<{^_^}>
[nixpkgs] @FRidh pushed 1000 commits to python-unstable: https://git.io/JfhvT
<gchristensen>
woooo
oida has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed 10 commits to python-unstable: https://git.io/Jfhvq
cole-h has joined #nixos
Rusty1 has joined #nixos
justanotheruser has joined #nixos
<betaboon>
I'm currently thinkin about how to best integrate gitlab-ci in my teams workflows. We're building docker-containers and sd-card-images for armv7l and aarch64. can anyone point me in the right direction ?
<dminuoso>
What's the protocol for new nixos installation images? Is there a release cycle?
<dminuoso>
Or are they generated as part of hydra?
MidHotaru has joined #nixos
bennofs has joined #nixos
<simpson>
There's a documented release process, there's a release cycle and IIRC the next one will be 20.09, and yes, Hydra builds fresh installation media as part of its NixOS builds.
arahael2 has quit [Ping timeout: 260 seconds]
<dminuoso>
Do you have a link handy where that documentation is?
jb55 has quit [Quit: jb55]
<dminuoso>
Or I guess what Im wondering rather..
<dminuoso>
If I submit a patch to nixos-generate-config now, will I get an updated 20.03 installation image?
<srk>
only if it gets backported to release-20.03 branch
bennofs_ has quit [Ping timeout: 264 seconds]
<dminuoso>
Fair enough. I suppose with the ease of making my own installation image ,it
<dminuoso>
it's not a real big deal anyway
orivej has quit [Quit: No Ping reply in 180 seconds.]
<srk>
exactly. depending on breaking potential of the change it should be fine to backport, not sure if there's a policy about backporting installer changes
<taylskid>
If I am running Nix 20.03, but I would like to install a package newer than what's available, is there some way to just take the {default,build}.nix from nixpkgs and install it myself with the version updated?
kleisli__ has quit [Ping timeout: 265 seconds]
bahamas has joined #nixos
<energizer>
taylskid: make an overlay
bahamas has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
fresheyeball has joined #nixos
<freeman42x[m]>
how could I deduplicate this? \z->(sort$map toLower z)==(sort$map toLower w)
<{^_^}>
[nixos-hardware] @Mic92 pushed 2 commits to master: https://git.io/JfhIl
kmein has joined #nixos
alp has quit [Ping timeout: 272 seconds]
gungoman has quit [Quit: Konversation terminated!]
knupfer has quit [Quit: knupfer]
<visl>
There are a few articles about how to set up Rust on nixos, but i'm wondering is there a way to compile a linux binary against the standard directory structure for distribution using nixos?
<numkem>
what's the proper way to link a configuration.nix prior to building it?
<numkem>
*lint
knupfer has quit [Client Quit]
knupfer has joined #nixos
<infinisil>
There's no standard way
knupfer has quit [Client Quit]
<infinisil>
And there's not even a good linter available
knupfer has joined #nixos
<infinisil>
There are nixfmt and nixpkgs-fmt for formatting nix code though
<nolash>
nix-env -q --installed returns nothing
<nolash>
its to be expected?
agsdheidjd has joined #nixos
<numkem>
infinisil: thing is, nixfmt is not there by default, I guess I could just fetch it
zfnmxt has quit [Ping timeout: 246 seconds]
shibboleth has joined #nixos
orivej_ has joined #nixos
amohan is now known as aruniiird
orivej has quit [Ping timeout: 264 seconds]
<infinisil>
nolash: It's expected if you have nothing installed in your default user profile yes. It won't show the packages you have installed with NixOS
knupfer has quit [Client Quit]
<infinisil>
nolash: That is, it won't show the ones in configuration.nix
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
FRidh has quit [Ping timeout: 256 seconds]
<nolash>
infinisil: so far i only know about default.nix and shell.nix ... and using arch nikpkgs setup
knupfer has joined #nixos
<nolash>
never heard of configuration.nix so far
<infinisil>
nolash: Oh well then I have no idea what you mean with "what i was expecting was return all packages installed on my system"
knupfer has quit [Client Quit]
<ryantm>
infinisil: I have an issue with the NixOS module system. Recently a feature got added that checks if an option exists, and this check happens even if that option wouldn't get used because it is guarded by a `mkIf false`. We share a module system for multiple versions of NixOS at the same time, so when a new name for an option is added, we have trouble switching to it, because the new name becomes an error
<ryantm>
for the old NixOS versions that don't have that option. I know we could get around this by switching to conditionally imported modules, but I was hoping to avoid that. Do you have any suggestions for how to avoid this issue?
knupfer has joined #nixos
cosimone has joined #nixos
<infinisil>
nolash: Nix surely won't know about your arch packages :)
<nolash>
infinisil: of course, but I would imagine it would know about SOMETHING and NOTHING was returned
<infinisil>
ryantm: Got any more info on that? I'm not sure I know what you mean
<ryantm>
infinisil: I'll try to write some minimal example.
<{^_^}>
[nixpkgs] @neonfuz closed pull request #91406 → yaxg: Removed unstable from name → https://git.io/Jfp9x
knupfer has quit [Quit: knupfer]
<nolash>
infinisil: so dunno if my expectations are wrong but somehow I expected having a nix folder seemingly in a shell context to return "you have there packages installed" when asking
knupfer has joined #nixos
o1lo01ol_ has joined #nixos
<infinisil>
nolash: If nix-env -q doesn't return anything, you don't have any packages installed
domogled has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<nolash>
even if eg ls /nix/var/nix/profiles/per-user/lash/channels has content?
user_0x58 has quit [Remote host closed the connection]
user_0x58 has joined #nixos
<taylskid>
So I am trying to write an overlay to install a more recent version of a package. I've gotten this far: https://gist.github.com/taylskid/a99cec7d36fde215adaefbb630792167 but now I need `fetchFromGitHub` to get the overridden source. Do I pass that in to the overlay as an arg or what? I'm not really sure.
<cole-h>
That would be self.fetchFromGitHub
<cole-h>
(Or is it super.fetchFromGitHub?)
tertl3 has joined #nixos
<taylskid>
cole-h: I think it might have been super, we're building now :D thank you so much
<taylskid>
okay, that is good to know, I will keep that in mind
WIIIHEIIM has quit [Remote host closed the connection]
<taylskid>
https://gist.github.com/taylskid/a99cec7d36fde215adaefbb630792167 so now i am here, the package builds in my shell and all that jazz, but it's just the previous version. 0.15.1. When I which the executable, is the "correct" 0.16 package, so I'm seemingly still downloading the wrong thing?
<TheSirC[m]>
Does anyone has an idea why I can `nix-shell -p v4l2loopback` without an issue but when I try `extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];` it fails miserably ?
<{^_^}>
[nixpkgs] @timokau merged pull request #77982 → nixos/sslh: make it possible (and the default) to listen on ipv6, plus regression test → https://git.io/Jvksq
<{^_^}>
[nixpkgs] @NickHu opened pull request #91438 → nodePackages.purescript-language-server: init at 0.12.9 → https://git.io/Jfhq9
orivej has joined #nixos
<infinisil>
TheSirC[m]: Pedantic answer: Different things behave differently, just because two things share a similarity doesn't mean they're they have to share the property of "working" :)
o1lo01ol1o has joined #nixos
ris has joined #nixos
<TheSirC[m]>
🤔 Pedantic but accurate. I can take that
<TheSirC[m]>
The question now is "why the difference in behavior then ?" :D
o1lo01ol_ has quit [Ping timeout: 240 seconds]
<taylskid>
hmm, what's interesting is that I went to the source directory that nix mentioned when it started the build, and it does appear to be the correct .16 source. So where is the .15.1 code leaking in from?
ebopp has quit [Quit: leaving]
zfnmxt has joined #nixos
o1lo01ol_ has joined #nixos
s1341 has quit [Quit: Connection closed for inactivity]
jbox has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
zfnmxt_ has joined #nixos
zfnmxt has quit [Read error: Connection reset by peer]
pauldaoust has joined #nixos
<infinisil>
TheSirC[m]: Well again, even assuming you meant `nix-shell -p linuxPackages.v4l2loopback`, they're still different things. And even assuming config.boot.kernelPackages points to the same linuxPackages as in nix-shell, they're still different things, one just evaluates the package for some binaries, the other adds a kernel module
<pauldaoust>
Hello! quick Q that I couldn't find an answer for in the manual -- is there any way to run the new interactive installer in non-interactive mode? Asking because it's part of the CI pipeline for our documentation, whose bash commands ask users to install Nix first (and are stripped out of the markdown and fed to our CI scripts)
<infinisil>
TheSirC[m]: If you need help on some problem with one or the other, you need to mention what the problem is
<pauldaoust>
(or does it already recognise that there's a non-interactive terminal and just answers 'y' to everything)
<infinisil>
Sorry I'm a bit annoying, but I see way too many vague questions being asked here
<TheSirC[m]>
You're right I should be more straightforward
<TheSirC[m]>
infinisil: Yes I did mean the kernel package.
kreyren has quit [Remote host closed the connection]
<TheSirC[m]>
Do not be sorry, it sould be a riddle for you
<TheSirC[m]>
I am the one asking for help
<TheSirC[m]>
It should not be
cap_sensitive has joined #nixos
<{^_^}>
[nixpkgs] @wamserma opened pull request #91439 → gpsbabel: enable usb → https://git.io/Jfhmw
zfnmxt_ is now known as zfnmxt
<TheSirC[m]>
` (that yields the kernel 5.4.33) I get the following error log (https://paste.rs/UID)
<TheSirC[m]>
Anyway : by setting the option `boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];` with `kernelPackages = pkgs.linuxPackages_latest;
<evils>
TheSirC[m] is trying to load a kernel module provided by linuxPackages.v4l2loopback
<TheSirC[m]>
evils: Hey !
<TheSirC[m]>
Yeah... Still not a thing
<{^_^}>
[nixpkgs] @gebner opened pull request #91440 → uvloop: fix tests on python 3.8 → https://git.io/JfhmD
<infinisil>
My suspicion is that that kernel module isn't compatible with the latest kernel
<TheSirC[m]>
I did the nasty thing of asking `nix-env` to install the package and then copy the ko from the outputed derivation and just `insmod` it... I am ashamed but it works flawlessly (when you do not forget to `modprobe videodev` before)
<TheSirC[m]>
That's why I was coming to see if they were a better way
shibboleth has quit [Quit: shibboleth]
agsdheidjd has quit [Remote host closed the connection]
agsdheidjd has joined #nixos
jmarhee has joined #nixos
<pauldaoust>
hey folks, disregard my question above -- turns out single-user installation is non-interactive, which is sufficient for my needs! Thanks for such an excellent system.
pauldaoust has quit [Remote host closed the connection]
drdee has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 260 seconds]
<infinisil>
TheSirC[m]: If you have a nixpkgs version where it's not working (the one for NixOS) and one where it is working (the one from nix-shell), you could bisect the issue
<{^_^}>
[nixpkgs] @NickHu opened pull request #91442 → nodePackages.purty: init at 6.2.0 → https://git.io/JfhY3
cyphase has quit [Ping timeout: 264 seconds]
Thra11 has joined #nixos
<TheSirC[m]>
infinisil: The question is how do I determine what version is used for NixOS ?
<qyliss>
(Those are just the channel logs from today)
<cihancan>
ah another question i like how gentoo give the freedom of use which branch you want
<cihancan>
is nixos lets you do this too?
<qyliss>
What do you mean by branch here?
<cihancan>
i mean you can mix unstable tree with the stable one
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<qyliss>
You can do that in NixOS
<cihancan>
thats my second priority
<qyliss>
It's pretty easy to install most packages from stable, but the occasional one from unstable, all in the same NixOS configuration
<cihancan>
always felt stuck to gentoo because of that wish i did my research before
<samueldr>
cihancan: 12 years of gentoo makes it most likely that you are mainly a newbie at nix specifics, so you're probalby starting one leg up with your Linux knowledge on hand :)
<blisszs>
Hello! I just installed nixos today. One thing that is annoying me is that whenever I install a packages in userland it doesn't seem to show on the desktop environment altough it works if I write the command in the terminal.
<cihancan>
im a slow learner
<qyliss>
blisszs: how are you installing packages?
<blisszs>
It seems that XDG_DATA_DIRS isn't updated, altough it should?
<qyliss>
It also might be helpful if you tell us which desktop environment
<blisszs>
most recently zathura
<cihancan>
thats why im afraid of moving to a new distribution i wanna be able to use my system without problems but i can solve many problems thats what gentoo teach in years
<energizer>
qyliss: can you link to how you install those unstable ones?
<qyliss>
Isn't zathura a PDF reader?
<blisszs>
I am using gnome
orivej_ has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
<qyliss>
How did you install zathura?
<KarlJoad>
cihancan: In that case, I would recommend making a VM and trying to tinker with it to see if it fits your needs first.
<KarlJoad>
qyliss: Yes, Zathura is a PDF reader.
<blisszs>
"nix-env -i zathura-with-plugins" IIRC
agsdheidjd has left #nixos [#nixos]
<qyliss>
Have you tried installing it declaratively, in your configuration.nix?
<cihancan>
KarlJoad, ok i can another question hows package availability?
<blisszs>
That works but I would want something that works on userland
camsbury has quit [Remote host closed the connection]
<qyliss>
blisszs: have you tried home-manager?
camsbury has joined #nixos
<qyliss>
The reason I'm asking this is that lots of people configure nix-env -i semi-deprecated. It has a bunch of weird quirks and doesn't really get you the full advantage of NixOS.
<blisszs>
I heard of it, but it doesn't solve the problem if I need to install a new package on the run :()
<{^_^}>
[nixpkgs] @jonringer pushed commit from @ceedubs to master « tmuxPlugins.fingers: init at 1.0.1 »: https://git.io/JfhGz
<qyliss>
blisszs: I recommend trying to use nix-shell if you need something as a one-off, and home-manager otherwise. If you still have desktop problems with home-manager you're probably more likely to get help, because it's probably more widely used than nix-env -i, especially among more experienced users.
kreyren has quit [Remote host closed the connection]
<cihancan>
ok guys thx for answers apreciate it i will give it a shot in vm
<{^_^}>
[nixpkgs] @jonringer pushed commit from @FelschR to master « brave: 1.8.95 -> 1.10.97 »: https://git.io/JfhGo
<KarlJoad>
cihancan: Like any other distro, it varies. But, you are very likely to find a package you want. But, there is almost anything you would want.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @prusnak to master « protobuf: 3.12.0 -> 3.12.3 »: https://git.io/JfhGS
<cihancan>
KarlJoad, im not after aur i just want to be able to basic things with some alternatives in hand so i can change them when problems faced, gentoo have not that big repository too, sure it has overlays but they dont always work and tend to be outdated
<MtotheM>
can I not make VM's and Containers with just nix?
justanotheruser has quit [Ping timeout: 265 seconds]
<KarlJoad>
cihancan: If you want program alternatives, then you'll very likely be covered. Like always, depending on the program, the number of alternatives may vary.
<KarlJoad>
With Nix, you can choose a channel that gives you an expression that builds the package you desired.
<cihancan>
i dont do so much complicated things on my computer i think im likely to have no problems about that
<{^_^}>
[nixpkgs] @jonringer pushed commit from @danieldk to master « cadical: enable tests »: https://git.io/JfhGp
m0rphism has joined #nixos
<KarlJoad>
I only say that because I do not know your workflow, work field, preferred programs, etc. Essentially, because you aren't me, I don't know what you want and what you want out of Nix/NixOS. But, so long as it's not crazy exotic, custom stuff, you'll probably be fine.
gustavderdrache has quit [Quit: Leaving.]
<cihancan>
im just scared if i have hard time getting into the new concepts of nixos after 12 years of using the same distribution
tokudan has quit [Remote host closed the connection]
<cihancan>
i wanna leave that too much after latest disaster i had with the community
<KarlJoad>
NixOS has a large learning curve, correct. It's mostly due to the completely different way it manages things with Nix, nix channels, and system configuration. I'd recommend watching some videos about NixOS and making a VM or 2 before attempting to switch.
tokudan has joined #nixos
cyphase has joined #nixos
<emmanuel`>
I've been scouring the internet for what this could mean. What does this "nixpkgs.lib.makeScope nixpkgs.newScope" do?
jordansinn has joined #nixos
blisszs has quit [Ping timeout: 246 seconds]
D_ has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}>
[nixpkgs] @prusnak opened pull request #91446 → use latest protobuf (3.12), remove overrides where possible → https://git.io/JfhZW
D_ has joined #nixos
stigo has quit [Remote host closed the connection]
julm has quit [Quit: migration to hardened profile]
justanotheruser has joined #nixos
julm has joined #nixos
pingiun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mgdm has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
radvendii has joined #nixos
stigo has joined #nixos
orivej has joined #nixos
<{^_^}>
[nixos-homepage] @bbcmgdm opened pull request #488 → Remove extra characters → https://git.io/JfhZ9
<gchristensen>
bbc, eh
<mgdm>
I'm on my work computer and I didn't have my phone to hand so I couldn't log into my non-work github
<gchristensen>
no worries :P
<mgdm>
if the lawyers want to get antsy for 2 characters, let them :D
<{^_^}>
[nixpkgs] @MetaDark opened pull request #91448 → pythonPackages.debugpy: init at 1.0.0b11 → https://git.io/Jfhns
<iwq>
that reminds me, I should move my znc setup from ubuntu server to nixos<
<radvendii>
it works! woo!
o1lo01ol_ has quit [Remote host closed the connection]
cosimone has quit [Quit: Quit.]
<radvendii>
I wound up using acme certificates, which wasn't obvious to set up. Is it worth saying something on the wiki and/or setting up a nix option that will enable acme for znc? (also, is it necessary to set up a website in order to use acme certificates?)
itshaydendev has joined #nixos
<radvendii>
not sure if anyone has opinions about this. maybe i should make a github issue