<clever>
energizer: doesnt help the client end, where you need to eval half the expr, download 2gig, then eval 1/4th of the expr, download another 100mb, then finish the eval, only to discover $out is already on your disk
AmandaC has quit [Ping timeout: 258 seconds]
kaivai has joined #nixos
<clever>
energizer: i think that blog is just about how hercules can cache the IFD products, so the giant mess wont happen on the 2nd eval, assuming no changes
thelounge52 has quit [Ping timeout: 240 seconds]
<energizer>
clever: i think i'm following. what's the difference to recursive nix?
<gchristensen>
it evaluates during the build
ahmedelgabri has joined #nixos
<energizer>
instead of building during the eval
<clever>
and by that point, nix can be running each derivation in parallel, over several build machines
<energizer>
right?
<clever>
so its not going to be forcing the build to be serialized
<gchristensen>
right
<gchristensen>
but has tight and fairly annoying rules about what you can do, it requires a lot of rigor to make recursive nix work
davidv7 has joined #nixos
<energizer>
i see. thanks.
<hyper_ch>
hmmm, in a nix expresion I require an older c++ compiler. how would I alter stdenv to use an older version?
lukegb has quit [Read error: Connection reset by peer]
lukegb has joined #nixos
ahmedelgabri has quit [Ping timeout: 264 seconds]
<aleph->
Huh. Think nixops failed now due to failing to build the manual... wat
<{^_^}>
[nixpkgs] @logan12358 opened pull request #112351 → nixos/prometheus-nginx-exporter: only create service if nginx exporter is enabled → https://github.com/NixOS/nixpkgs/pull/112351
thelounge52 has joined #nixos
supersandro2000 has quit [Disconnected by services]
<EmoSpice>
Good evening, all. I'm seeing segfaults in emacs. First, I was seeing them with my config immediately on startup when using emacsWithPackages (inadvertently - I'd forgotten to revert that change to my home-manager config). I've changed to just the emacs derivation and `emacs -q` seems to work fine. I've re-added my configuratioin and think I have narrowed it down to company. However, I'm at the end
<EmoSpice>
of my knowledge here. How can I go about debugging this further?
<evils>
gchristensen: as an intermediate solution, i'm just getting my data from the github repo now xD
<gchristensen>
cool :)
<matthewcroughan>
if I use nixpkgs.config.allowUnfree = true; in an imported module, what will happen?
<matthewcroughan>
will I still be blocked from using unfree software in other modules?
rj_ has quit [Quit: rj_]
rj_ has joined #nixos
<matthewcroughan>
let's say I have allowUnfree = true; in wireless.nix and I import wireless.nix in my configuration.nix, but I do some unfree stuff in my configuration.nix, I expect my build to fail.
<matthewcroughan>
will this not happen?
zakame has quit [Quit: WeeChat 2.9]
<qyliss>
it's a global setting
<qyliss>
so no
rb2k has joined #nixos
<matthewcroughan>
qyliss: how could I make this behavior owrk
<matthewcroughan>
work*
<gchristensen>
it isgoing to be tricky, can you clarify your use case?
<matthewcroughan>
gchristensen: I do not have one, this just seemed like an intuitive use of the tool
<slabity>
matthewcroughan: For a specific package, it can be done
<slabity>
But not for one configuration file that's imported
<matthewcroughan>
I was wondering whether I could say only use *some* nonfree things, like might be the case for a wireless firmware
<slabity>
I have a nix flake that provides a NixOS configuration and an overlay. Is it possible to reference the overlay provided in the flake from within the configuration?
<slabity>
So that I can set `nixpkgs.overlays` from within the NixOS configuration
<DigitalKiwi>
trace: Warning: `stdenv.lib` is deprecated and will be removed in the next release. Please use `pkgs.lib` instead. For more information see https://github.com/NixOS/nixpkgs/issues/108938
<{^_^}>
#108938 (by siraben, 4 weeks ago, closed): Deprecate use of stdenv.lib across Nixpkgs
<cole-h>
Well, you're only one person, to be fair :P
<DigitalKiwi>
Feb 08 02:52:59 mvp-nixos nix-daemon[13604]: accepted connection from pid 3947, user kiwi (trusted)
<infinisil>
I've seen plenty of people being confused about stdenv.lib
<qyliss>
fwiw, when I proposed this I had no intention of completely ripping the thing out
rb2k has quit [Ping timeout: 260 seconds]
<qyliss>
I wanted to add a two sentence addition to the manual recommending one over the other
h0m1 has quit [Ping timeout: 272 seconds]
jkachmar has quit [Quit: Connection closed for inactivity]
<infinisil>
Idea: What if we deprecated things probabilistically
<qyliss>
but then once I'd done that other people felt strongly enough to take it all the way
<infinisil>
At every commit, there's a 1% chance of the deprecation warning being enabled
<DigitalKiwi>
what's this all about i get thousands of them
<infinisil>
This increases over time, until it's 100% some number of nixos releases later
<gchristensen>
sounds very annoying :P
<cole-h>
I share part of the blame for putting that idea in (or bringing to the forefront of) qyliss's mind
rb2k has joined #nixos
<infinisil>
It's like A/B testing!
h0m1 has joined #nixos
<cole-h>
which sounds very annoying :D
<cole-h>
+1 gchristensen
<DigitalKiwi>
journalctl -r|grep -c "accepted connection from pid"
<DigitalKiwi>
76598
* infinisil
likes probabilitieus
<infinisil>
That sounds like a greek name ^
<cole-h>
infinisil: new username / hostname for the next machine you provision
<DigitalKiwi>
am i going to have to make xsession log to dev null
<infinisil>
Lol nice
<DigitalKiwi>
...can i log to a program that filters what i don't want hmm
logand``` has quit [Ping timeout: 272 seconds]
<DigitalKiwi>
oh that one's not xsession is it *sigh*
<DigitalKiwi>
the other one that i have tens of thousands of was some Qt thing
thelounge52 has quit [Ping timeout: 272 seconds]
<DigitalKiwi>
Feb 01 23:57:42 mvp-nixos xsession[9121]: qt.svg: <input>:413:631: Could not add child element to parent element because the types are incorrect.
<DigitalKiwi>
Jan 25 18:23:25 mvp-nixos xsession[5006]: file:///nix/store/is3ixxd8i5a6b1ymq10qcczhmd2ik47b-plasma-framework-5.73.0-bin/lib/qt-5.15.0/qml/QtQuick/Controls/Styles/Plasma/ScrollViewStyle.qml:60:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
<{^_^}>
[nixpkgs] @ajs124 pushed 2 commits to fix/php-xls-xmlrpc: https://git.io/JtVlu
bvdw48 has joined #nixos
<DigitalKiwi>
slabity: it's not even useable like how am i supposed to find important messages when there are 100k warnings about broken javascript on every website...
<aleph->
Neat, nixops inadvertantly broke my torrent client
<slabity>
I'm trying to use it to set my overlays, but it doesn't seem to be working...
<aleph->
And a bunch of other stuff. Sigh. Probably some reason it upgraded me to 21.03~
<slabity>
Actually, better yet, can anyone explain why setting `nixpkgs.overlays` in my NixOS configuration doesn't provide access to the overlays when I use `nix-shell` or any other nix tool?
<DigitalKiwi>
what version of nix
<clever>
slabity: the overlays are only applied to the pkgs passed to nixos modules, and nothing else
<slabity>
@clever: Well that sucks. Any other options besides manually adding it to /etc/nixpkgs/overlays.nix?
<clever>
slabity: this arranges for a directory of overlays to be the system-wide default, and also (at one time) loads the overlays into nixos
<clever>
slabity: line 13&17 of the file i just linked
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<slabity>
That's interesting...
thelounge52 has joined #nixos
<slabity>
How can I replace `./overlays` to be the value from the `nixpkgs.overlays` though? Does that even evaluate to a path?
<clever>
slabity: it needs to eval to a path, thats best done by having all of your overlays in the form of ./overlays/foo.nix
<clever>
and then build nixpkgs.overlays by just importing every file in that dir
<slabity>
The problem is that I'm using nix-flakes and I don't think I can access them from within my nixos-modules
<clever>
relative paths still work fine
<clever>
the flake puts your entire repo as one dir in the store, and files can cross-reference within that dir
oldandwise has joined #nixos
<slabity>
But I'm using an external overlay
<slabity>
mozilla overlay specifically
<clever>
that complicates things a bit more
<slabity>
This entire flakes thing is really starting to frustrate me. It feels like everything just got 10x more complicated and I'm not even getting any benefit
thelounge52 has quit [Ping timeout: 256 seconds]
<clever>
ive only used it for basic packaging so far, not nixos level things
rb2k has quit [Ping timeout: 264 seconds]
<DigitalKiwi>
i thought i read overlays don't work with nix flakes
<slabity>
Considering one of the outputs of a flake is `overlays`, I would expect it should
<clever>
DigitalKiwi: more, that the flake is pure, and wont load any overlays in $HOME, only overlays the flake said to load
jonringer has joined #nixos
<DigitalKiwi>
oh that's probably what i'm thinking of
<aleph->
I forget is there a function to just write a file to the store?
<clever>
aleph-: pkgs.writeText and builtins.toFile
<slabity>
@alpeh-: writeTextFile
<clever>
toFile happens at eval time, and behaves identically to ./foo.txt
<aleph->
clever: slabity: Thanks. Incidentally found a fun bug with nixops and the deluge service it seems.
<clever>
writeText is a wrapper over writeTextFile
<aleph->
clever: toFile returns a path right?
<clever>
and writeTextFile takes a set, and writes a file at build-time
<clever>
aleph-: yeah, all of them return a path
<aleph->
Trying to do something like: `deluge.authFile = builtins.toFile ('bla:foo')
<clever>
slabity: a function for loading a flake from non-flake code
<slabity>
jgart: Honestly I just intentionally mess up the hash, let Nix tell me the correct one, and then paste that into wherever it needs to go
<slabity>
Then make a PR and send it off if necessary
<cole-h>
FWIW, on nixUnstable, you can leave the hash blank, which will treat it as 00000... or sha256-AAAAAAA...
<clever>
,tofu jgart[m]
<{^_^}>
jgart[m]: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<slabity>
I'm still confused on what `(builtins.getFlake (toString ./.)).overlays.foo` will allow me to do. I already have access to my two overlays through `overlays.personal` and `(import mozilla)`.
<cole-h>
Well, I guess the nixUnstable on 20.09 also doesn't have the empty-hash functionality
<cole-h>
Basically: make your legacyPackages point to your nixpkgs-with-overlays-imported, and then use my compat wrapper trick
kreisys has joined #nixos
<slabity>
As nice as that probably is, I don't think I have enough skill with Nix to even comprehend whatever the hell is going on in that
<cole-h>
It makes it so all references to `<pkgs>` will refer to the compat/default.nix
<cole-h>
compat/default.nix uses the flake-compat shim that Eelco created to allow the flake to be used with nix-build and other "old" interfaces
<cole-h>
It refers to the "defaultNix" attribute, which is basically the entire flake.nix IIRC, and then to the legacyPackages attribute, which has attributes for all architectures I specified in my flake.nix, and pkgs imported for each of those architectures
thelounge52 has joined #nixos
<cole-h>
I agree, it's not very intuitive as a newbie. But neither is flakes in general :P
<slabity>
I understand none of that.
<jgart[m]>
Is it easy to convert my vanilla NixOS system to a flake based one?
<slabity>
jgart: If my experience is any indicator: No
<jgart[m]>
Any blog posts or configs that someone can recommend for that?
<slabity>
But to be fair I think flakes are still kind of in development
<{^_^}>
jgart[m]: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<slabity>
I usually just do `xlibs.libX11` and whatever other libs I use
<slabity>
But there's a LOT of xlibs, so not sure what the best would be
<jgart[m]>
and that's a `buildInput` correct?
<clever>
yeah, since your linking against it
evanjs has quit [Read error: Connection reset by peer]
<jgart[m]>
thanks!
<jgart[m]>
now it's complaining about `<X11/Xft/Xft.h>`
<jgart[m]>
I'll go look for that
<clever>
,locate Xft.h
<{^_^}>
Found in packages: xlibs.libXft.dev
<jgart[m]>
xorg.libXft
<clever>
nixpkgs adds the .dev for you, so just buildInputs = [ xorg.libXft ];
<jgart[m]>
wow that bot is awesome!
<clever>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<slabity>
You're usually going to be pulling in a lot of `xlibs.*` if that's what you're doing.
<slabity>
Also I would recommend using `nix-index` and then running `nix-locate` so that you don't need to use the bot
<slabity>
It would be all local
<jgart[m]>
I have a separate nix file for luke's fork that I am importing into my configuration.nix
<jgart[m]>
<slabity "Also I would recommend using `ni"> slabity: Ok, I'll start using that. Thanks!
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixos
cole-h has quit [Client Quit]
<jgart[m]>
<clever "nixpkgs adds the .dev for you, s"> clever: thanks!
evanjs has joined #nixos
<slabity>
Strange... My $NIX_PATH did not update when I switched my NixOS configuration with `nix.nixPath` added...
<clever>
slabity: env variables only update if you relaunch the shell
<slabity>
Yea, started a new shell and terminal
<clever>
it may also inherit the env vars from the window manager
<clever>
so you have to fully logout, or ssh back into yourself
<clever>
thats why my expr uses a constant in $NIX_PATH, and then swaps out the symlink at that constant path
<slabity>
Oh hey clevver++
<slabity>
clever++
<clever>
so you dont have to do that dance on every single rebuild
<{^_^}>
clever's karma got increased to 556
<slabity>
Hmm... Bot is broken
<slabity>
Nevermind apparently I just lagged
<slabity>
That makes sense
<jgart[m]>
where is the source code for that bot?
<clever>
,
<{^_^}>
Special commands: find tell locate expand inclusive-language random-pr permalink - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help channels ping libraries -a escape'' escape" library ifd botsnack pinning ask overlay unfree tofu which-channel imperative xml xy launch wololo fancy-uninstall nixlang++ commands pointers cache home-manager thesis unstable pills runtimedeps stateversion invite exec smart-questions dnw howoldis
<slabity>
No, wait. I'm using `nixos-rebuild --flake`
<matthewcroughan>
clever: omg lukesmith
jb55 has joined #nixos
<matthewcroughan>
clever: unaboomer
EdLin has joined #nixos
<matthewcroughan>
do you guys enjoy laughing at people like Luke Smith? Have you seen his vids on Docker? :D
<matthewcroughan>
I think Nix would make his head explode.
<clever>
havent heard of him before
<EdLin>
hi. Is there a way to make the default compilation working directory in a different location in Nixos, or failing that, to mount a device at its location (wherever that is?) I have a fast small optane SSD perfect for this.
<jgart[m]>
<clever "jgart: the install section just "> what is facepalm?
<jgart[m]>
ohh was that supposed to be an emoji showing discontent?
<clever>
yeah
ahmedelgabri has joined #nixos
<jgart[m]>
should I be trying to sed chop the Makefile then?
<clever>
or a .patch file
<jgart[m]>
like a boomer
<jgart[m]>
so Make a patch for the Makefile and then call it in my nix expression?
<clever>
patches = [ ./foo.patch ];
<clever>
and nix will apply it for you
<jgart[m]>
cool! got it
<EdLin>
does anone know the answer to my question, or need clarification?
<matthewcroughan>
Nix taught me how to boot on Arm.
<matthewcroughan>
So I can now get away from this stuff
<clever>
the way i look at it, that change only does 2 minor things
<clever>
1: on every `apt-get update`, it will fetch a package list from MS
<clever>
2: MS can potentially release a duplicate of some package, claiming to be newer, and since its signed with a gpg key the os trusts, it will be prefered
Cale has quit [Remote host closed the connection]
<clever>
and then the tinfoil hat guys come out of the woodwork, claiming MS can gather telemetry data, before you even install vscode
<clever>
also, MS has contributed code to the linux kernel, so MS is already on the rpi :P
<eyJhb>
For some reason, defaultGateway will not work on my current setup? I have set networking.defaultGateway.address = "172.31.1.1"; but it doesn't take effect
thelounge52 has quit [Ping timeout: 264 seconds]
lord| has joined #nixos
ahmedelgabri has joined #nixos
oldandwise has quit [Quit: leaving]
<alienpirate5>
hi, i'm trying to investigate why on my Oracle Cloud server, nixos-rebuild is segfaulting
<alienpirate5>
specifically it's a segfault within bash
<alienpirate5>
i looked at the coredump but it doesn't have debug symbols enabled
<larrym>
Hi, I've been trying to install a system-wide gcov package into a nixos-vm but can't find out how to do it. It seems that almost any nix-shell has it as a part of stdEnv, but I'm struggling with installing it system-wide
<larrym>
but when I nix-shell, it seems like stdenv kicks in and I _do_ have gcov. But I can't seem to install stdenv system wide (if that makes sense)
<adisbladis>
gcov is a part of the gcc derivation
<lovesegfault>
,locate gcov
<{^_^}>
Found in packages: libgccjit, linux.dev, linux-rt.dev, gcc-unwrapped, linux-libre.dev, linux_mptcp.dev, linux-rt_5_6.dev, linux_testing.dev, linux_mptcp_94.dev, linuxPackages_4_4.kernel.dev, linuxPackages_4_9.kernel.dev, linuxPackages_5_8.kernel.dev, linuxPackages_5_9.kernel.dev, linuxPackages_zen.kernel.dev, linuxPackages_4_14.kernel.dev, linuxPackages_4_19.kernel.dev, linuxPackages_hardened.kernel.dev, linuxPackages_xen_dom0.kernel.dev, and 6 more
s7evink[m] has quit [Quit: Idle for 30+ days]
spinlock[m] has quit [Quit: Idle for 30+ days]
<larrym>
hmm, I have gcc in my `environment.systemPackages` but no gcov...
<adisbladis>
larrym: It's in gcc-unwrapped
<lovesegfault>
try `linux.dev` or `gcc-unwrapped`?
<adisbladis>
Though I still think you're doing something wrong adding compilers system-wide
<lovesegfault>
^^^
<adisbladis>
You're unlikely to get your desired result
<lovesegfault>
^^^^^
<lovesegfault>
adisbladis++
<{^_^}>
adisbladis's karma got increased to 133
<larrym>
ok, can you recommend a better approach?
naivesheep has quit [Read error: Connection reset by peer]
thc202 has joined #nixos
<lovesegfault>
What are you planning on using this image for?
naivesheep has joined #nixos
<larrym>
C/C++ development using Linux tools on a windows machine. Eventually CI
<larrym>
but no internet access
vrinek has joined #nixos
<adisbladis>
I think you'll still want to use nix-shell
<adisbladis>
Just make sure ahead of time that all your required packages are included in the image
<lovesegfault>
does `nix-shell` have `--offline` these days?
<larrym>
OK. How do I do that besides adding them to `environment.systemPackages`?
<adisbladis>
No, but you could "trick" them into being in the system closure
<adisbladis>
You could stick those in environment.systemPackages
<adisbladis>
And then enter a nix-shell inside the VM without networking
<larrym>
Hmm OK. I'm trying to wrap my head around what that would buy me. I'm familiar with using nix-shell for development environments on internet connected machines so I can have many isolated environments, but for this single-purpose VM it's less obvious to me what the advantage is
<larrym>
Hmm, what variables would those be? I manually set CC, CXX with my build and I'm not using any system libraries other than libc which seems to work without a nix-shell
<adisbladis>
larrym: A bunch of Nix specifics too
<adisbladis>
Like NIX_LDFLAGS
orivej has joined #nixos
<adisbladis>
larrym: Let's just say development with Nix provided tooling / libs is not going to be fun outside of a nix-shell
<lovesegfault>
it's IME the difference between stuff just working and it being an nightmare to get things to work
jani_ has joined #nixos
<adisbladis>
^^^
thelounge52 has joined #nixos
<adisbladis>
Yeah, I wouldn't even attempt doing dev outside of nix-shell
jani_ has quit [Client Quit]
<larrym>
haha I guess I'm kind of "getting away with it" because my basic little project doesn't have any system library dependencies
<larrym>
fwiw, I don't plan to ever need system libraries either. These are programs that will eventually be cross compiled for no-os embedded systems, so I have to build all the source myself regardless
<larrym>
I don't plan to build any of that directly with nix anytime soon either, because there are other non-nix users who need to be able to build it as well
thelounge52 has quit [Ping timeout: 264 seconds]
<larrym>
I'm a few minutes from trying a VM with gcc-unwrapped in systemPackages, I can try overriding mkShell next I suppose
<larrym>
so for overriding mkShell, I would use the snippet you gave in my `systemPackages` and then inside the vm would I could write any `shell.nix` with a subset of the `buildInputs` I gave in `systemPackages` and it will work without needing the internet?
<lovesegfault>
larrym: Yeah, I expect that to work!
<adisbladis>
Yeah, that was roughly the idea
<adisbladis>
The main thing is that you don't want nix-shell tooling on the system-wide $PATH
<adisbladis>
And you want the setup hooks that nix-shell does for working includes/linking
Taneb has quit [Client Quit]
Taneb has joined #nixos
<larrym>
Yes, I think I can see how that's generally good advice. I don't think for my weird little edge case its going to matter too much, since I'm only ever going to compile everything from scratch, but I'll give it a shot!
<larrym>
thanks for all your help so far adisbladis and lovesegfault! I'll chime back in in a few with some more `nix-shell` questions most likely :)
<lovesegfault>
np :)
sss2 has quit [Quit: Leaving]
fendor has joined #nixos
sigmundv__ has joined #nixos
<shla>
hi, wouldn't be good idea moving those -{^_^} notifications to a dedicated read-only channel?
sangoma has quit [Ping timeout: 256 seconds]
<adisbladis>
shla: I like them popping up in the main channel
<adisbladis>
Sometimes they become the basis of discussion
<adisbladis>
And just purely as a "marketing tool", they show newcomers how active the project really is
<jawr>
im impressed how high the pull request index is
<shla>
me too.
<jawr>
highest on github?
<etu>
shla: I really like {^_^} announces, I've more than once found out that things are packaged that I didn't know about :)
<etu>
shla: You can always filter it in your IRC client :)
<adisbladis>
jawr: I think maybe kubernetes beats us
<adisbladis>
But yeah, we hit a lot of scaling problems with github :P
<adisbladis>
That very few projects hit
<jawr>
they seem to be @ 98853
<shla>
etu, good point, although not sure if ignore list works on notices
<adisbladis>
Alright, we have a lot more PRs than k8s
<etu>
shla: You can ignore notices all together :)
<shla>
i'll try that.
<jawr>
flying in to the lead
<adisbladis>
I think maybe you're right
thelounge52 has joined #nixos
hiro98 has joined #nixos
<lovesegfault>
Only two states for a package: "I cannot believe someone put this in nixpkgs" and "How is it possible no one put this in nixpkgs"
<adisbladis>
Huh
<adisbladis>
At this pace we're gonna have more commits than the kernel at some point
<jawr>
running in to issues with nix-env/nix search on a 2gb vm was a little disconcerting
<jawr>
as a newbie
<shla>
jawr, same here, I even refused to believe in that for a moment.
pjt_tmp has quit [Ping timeout: 264 seconds]
<lovesegfault>
we're closing in to 300,000, right?
<adisbladis>
Yeah
<jawr>
but groking nixops is making up for it
<adisbladis>
It wasn't that long ago since it was 100k O.o
<lovesegfault>
I took a screenshot of when it was 200k
<etu>
lovesegfault: 268k ._., so almost there.
<lovesegfault>
it's in my twitter somewhere
<adisbladis>
lovesegfault: Wasn't that last year sometime?
<lovesegfault>
god, 2020 really was a flash wasn't it?
<lovesegfault>
feels like yesterday that I tweeted
<lovesegfault>
*tweeted that
<adisbladis>
2020 was odd
<adisbladis>
Both slow and fast
<energizer>
shla: i "ignore" mask = {^_^}!*@* type = 2 which blocks the feed notifications but retains the other stuff
<shla>
as I understand lots of those PRs are automated
<shla>
like bumping package's minor version and running tests
<energizer>
but it would be easier if they were two different bots so you could ignore the feed one
<shla>
energizer, thanks, I'll try that, not sure how to specify type
<adisbladis>
shla: Yeah, probably the bulk are automated atm
<adisbladis>
Which is great, package bumps are boring grunt work
<lovesegfault>
yeah
<energizer>
shla: mine's in hexchat's ignore.conf. not sure how to do it in other clients
<shla>
my point was is that it is affecting number of PRs heavily :)
<shla>
and it's not a good indicator of community involvement.
<lovesegfault>
they're still reviewed and merged by community members
<adisbladis>
Usually these stats are summed up at nixcon
<lovesegfault>
there's no auto-merging
thelounge52 has quit [Ping timeout: 264 seconds]
<adisbladis>
And bot PRs are excluded from the count
<s1341>
hi all
<s1341>
so i'm trying to cross compile protobuf-c.
<terinjokes>
Its not March 2020 anymore? *shocked*
<s1341>
and i consistently get errors at link time about 2-nd degree library dependencies being missing.
<s1341>
for e.g., if i'm trying to link with -lprotoc, i get an error about libprotobuf.so being missing, even though it is in the link path (as specified by -Ls)
sangoma has joined #nixos
<s1341>
i get this kind of error:
<s1341>
/nix/store/08s05g0wr32vmrc9d6gw9y0swy6mgjb5-ndk-toolchain-binutils/bin/aarch64-linux-android-ld: warning: libprotobuf.so, needed by /nix/store/znz3gygll7yjf67ibfzmf4slsqmrwcpc-protobuf-3.14.0-aarch64-unknown-linux-android/lib/libprotoc.so, not found (try using -rpath or -rpath-link)
<s1341>
as you can see, it's even resolved the libprotobuf.so... so why is it saying it can't find it?
oldandwise has joined #nixos
<s1341>
anyone?
oldandwise has quit [Client Quit]
Maxdamantus has quit [Ping timeout: 264 seconds]
oldandwise has joined #nixos
Maxdamantus has joined #nixos
m0rphism1 has joined #nixos
oldandwise has quit [Quit: leaving]
oldandwise has joined #nixos
oldandwise has quit [Client Quit]
sangoma has quit [Ping timeout: 264 seconds]
ambro718 has joined #nixos
<larrym>
so putting a `mkShell` call in my `systemPackages` leads to this error: "A definition for option `environment.systemPackages.[definition 1-entry 31]' is not of type `package'."
AlpineLlama96 has joined #nixos
<siraben>
s1341: are you using the cross infrastructure?
<siraben>
nixpkgs has infra to cross-compile the entire build graph of a package
<siraben>
s1341: what system are you trying to cross-compile to?
<AlpineLlama96>
Hey guys I'm having some trouble with ssh. The daemon only seems to run when my main user logs in. I'd like it to start at boot. I currently have services.openssh.enable = true; set in my configuration.nix
<AlpineLlama96>
is there any way to change this?
<s1341>
siraben: yes. i'm using the crossSystem infrastructure.
<siraben>
you shouldn't be putting a mkShell in your systemPackages...
<larrym>
building '/nix/store/iy14c07ki18bda5azgibq1rfk9vm98m1-nix-shell.drv'...
<siraben>
larrym: please don't paste
<larrym>
nobuildPhase
<larrym>
building '/nix/store/ip93kln2dm0kcs58x7yzn4z859m1fwl3-system-path.drv'...
<larrym>
sorry, how do I make the snippet work?
<siraben>
use paste.debian.net or similar
<larrym>
ok, will do
Lord_of_Life has quit [Ping timeout: 272 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<siraben>
s1341: what commands are you running in the nix shell?
mallox has quit [Quit: WeeChat 3.0]
<s1341>
the nix-shell doesn't pop, because the protobuf-c doesn't manage to compile succesfully.
<s1341>
@siraben
<siraben>
ok, hm.
thelounge52 has quit [Ping timeout: 240 seconds]
<s1341>
siraben i'm using my own custom-patched androidndks because the existsing one didn't work... So it's possible I've done something wrong there...
<siraben>
I wonder if that .overrideDerivation is clobbering the old linker flags
<s1341>
siraben: no... it adds them...
<siraben>
oh I was looking at protobuf_with_log
<s1341>
and even without it it doesn't make a difference...
<s1341>
yeah Ericson2314 hasn't been around in a few days.
<siraben>
I don't know the android cross well enough to see what's going wrong
<s1341>
ok.
<s1341>
i guess i'll have to wait for ericnoan
<s1341>
woops.. Ericson2314
<{^_^}>
[nix] @garbas pushed to add-stale-bot « Auto closing issues/PRs after 1year. »: https://git.io/JtVMa
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}>
[nixpkgs] @WilliButz merged pull request #112351 → nixos/prometheus-nginx-exporter: only create service if nginx exporter is enabled → https://github.com/NixOS/nixpkgs/pull/112351
<{^_^}>
[nixpkgs] @WilliButz pushed commit from @logan12358 to release-20.09 « nixos/prometheus-nginx-exporter: only create service if nginx exporter is enabled »: https://git.io/JtVyf
<eyJhb>
The only thing that Discord gives me is this `(node:17128) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.`
<ronthecookie>
madonius[m]: you can have a normal `pkgs.python3` in there i think
<ronthecookie>
it's weird
<Rovanion>
I'm trying to package a Go module, but its failing during the check phase. Using `nix-build $NIXPKGS --run-env -A prometheus-slurm-exporter` I can get an environment populated with the functions that belong to a generic build. Is it possible to get shell/environment populated with the functions/phases that are used during a buildGoModule build?
<{^_^}>
[nixpkgs] @zhenyavinogradov opened pull request #112391 → nixos/oauth2_proxy_nginx: specify hostname in X-Auth-Request-Redirect → https://github.com/NixOS/nixpkgs/pull/112391
philr has quit [Ping timeout: 240 seconds]
<{^_^}>
[nix] @regnat pushed 6 commits to ca/store-unresolved-outputs: https://git.io/JtV7T
sangoma has joined #nixos
<jawr>
https://nixos.wiki/wiki/Kubernetes#Node says to set kubeMasterAPIServerPort as an integer, but that fails with: cannot coerce an integer to a string,
<jawr>
tis a bug, no?
<madonius[m]>
Ah ok, will give a whirl ronthecookie
<hugolgst>
running nix-linter I get a Unused Argument "self" on an overlay
<hugolgst>
any idea on how I could solve that?
lesby has joined #nixos
zmacs has joined #nixos
thoughtpolice has joined #nixos
nick_h has joined #nixos
theuni has joined #nixos
bgupta has joined #nixos
parseval has joined #nixos
buggymcbugfix has joined #nixos
zot has joined #nixos
robmyers has joined #nixos
mpickering has joined #nixos
Tritlo has joined #nixos
theuni is now known as Guest99400
<patagonicus>
hugolgst: My guess would be to change 'self' to '_', which is normally used as an indicator that that argument is unused. But I'm not very familiar with nix-linter.
<patagonicus>
hugolgst: `find . -name '*.nix' -exec nixfmt -c '{}' +` should do the trick (-c, so it only checks and not formats). '{}' tells find to put the file name here and '+' tells it that it can put multiple args, so it doesn't have to exec a new instance of nixfmt for each file.
<adisbladis>
euandreh: Iirc that's cached by Nix itself
malook has joined #nixos
<eyJhb>
Ohh look at me, I am adisbladis , I have more than 16 GB of ram and can use tmpfs \s :D I feel like tmpfs on / and rollback on reboot of / is a trend in NixOS that suddenly got very big
thelounge52 has joined #nixos
kini has quit [Remote host closed the connection]
<euandreh>
adisbladis: I guess so. I'll have to do a GC to invalidate an old tarball?
<adisbladis>
eyJhb: This laptop only has 16G RAM :/
<euandreh>
hmm, GC not needed
rb2k has joined #nixos
larrym has quit [Quit: Connection closed]
<euandreh>
the answer is: no need to change the configuration.nix, just adding an option via CLI
<novafacing>
I was talking to someone else here the other day who was getting an issue with home-manager reporting that "error: attribute 'xdg-utils' missing, at /nix/store/swb2fmp89kgyqi54whv1lngnvwld1a8s-source/modules/programs/newsboat.nix:74:22"
berberman has quit [Ping timeout: 264 seconds]
<novafacing>
If you're here I found a workaround lol
<novafacing>
Turns out nixpkgs renamed xdg-utils to xdg_utils, you just need to add an overlay that maps xdg-utils to pkgs.xdg_utils
<davidtwco>
having an issue on a fresh NixOS install, which I've just put my regular config on whereby firewall fails to start with "another app currently holding xtables lock" and then networkd fails to start with "could not enumerate neighbors: device or resource busy"; any ideas why that might be?
<novafacing>
siraben: Hmm....on unstable I assume?
<lfam>
Hi! I'm curious where the default sysctl flags are configured for NixOS
<siraben>
yeah on unstable
kini has joined #nixos
<siraben>
like 1 week ago
<lfam>
Specifically, I'm trying to figure out where the fs.protected_hardlinks flag is set
<novafacing>
Ah yeah I'm on 20.09 (as are I assume a lot of folks) so I didn't notice that, thanks for the note!
<lfam>
I noticed that, in the Minimal ISO Image, that flag is set to the non-default option (it's turned on). I'm trying to figure out where this is done in the code
<novafacing>
Yeah doesn't look like Nix has a configuration for that at all, https://nixos.wiki/wiki/Linux_kernel this might point you in the right direction lfam
<eyJhb>
ehmmm... I think it depends on what you want to do matthewcroughan . If you want to run commands in the image, then you need a virt inside the container, if it is just adding files+packages+whaever, then yes it is as easy as qyliss put it
<matthewcroughan>
yeah which would solve not much in this context ;D
<matthewcroughan>
you could always cross compile anyway
<qyliss>
in that case I don't understand your problem
<matthewcroughan>
my problem is that the Arduino Nixpkg doesn't work, without a FHSUserEnv.
<matthewcroughan>
And I can't use an FHSUserEnv inside of Docker.
<matthewcroughan>
Because when you try to do that it results in complaints about the kernel.
<qyliss>
right, which is why I'm saying you can run a new kernel where you have the root namespace and can use FHSUserEnv
<simpson>
Sure. It would be nicer if the Arduino tools didn't have that FHS requirement.
<matthewcroughan>
so let's say I had pkgs.dockerTools.buildImage { contents = pkgs.busybox } that fails with Settings issues: Arduino cannot run because it could not create a folder to store your settings.
<matthewcroughan>
Providing you start it like this "docker run --privileged -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --user="$(id --user):$(id --group)" arduino:hd1fdkpvxfc7ad11hv5qs28l7icxqzyn"
hamishmack has quit [Ping timeout: 264 seconds]
thoughtpolice has quit [Ping timeout: 246 seconds]
mpickering has quit [Ping timeout: 272 seconds]
jmercouris has quit [Read error: Connection reset by peer]
robmyers has quit [Read error: Connection reset by peer]
Tritlo has quit [Read error: Connection reset by peer]
SanchayanMaity has quit [Read error: Connection reset by peer]
lvrp16 has quit [Read error: Connection reset by peer]
nick_h has quit [Read error: Connection reset by peer]
zmacs has quit [Read error: Connection reset by peer]
lesby has quit [Read error: Connection reset by peer]
sam_w has quit [Read error: Connection reset by peer]
zot has quit [Read error: Connection reset by peer]
dmj` has quit [Read error: Connection reset by peer]
<colemickens>
Does anyone have any tips for troubleshooting dropbeard?
<colemickens>
AFAICT I have it enabled but I never seem to see udhcpd doing it's job, from the router side at least.
srk has quit [Remote host closed the connection]
easbarbosa has joined #nixos
srk has joined #nixos
<luxemboye>
torbrowser (tor-browser-bundle-bin) can't be installed anymore due to a 404 when downloading from dist.torproject.org
<luxemboye>
It seems like the Tor Project doesn't keep the older versions for long on dist.torproject.org, the oldest available there is 10.0.9 (20.09 version is 10.0.8)
<lassulus>
alright, weird style :D packages are usually called with callPackage. so pkgs in in scope, when you use imports = [ ]. you just get pkgs, config, lib as arguments (line 1)
vrinek has joined #nixos
<jgart[m]>
What is the best way to include the above package as part of my systemPackages?
<jgart[m]>
I should be using `callPackage` instead?
vidbina has joined #nixos
<eyJhb>
There is a multitude of small issues in there
<jgart[m]>
lassulus: Should I look at you config for an example?
<jgart[m]>
s/you/your/
o1lo01ol1o has joined #nixos
<lassulus>
so there are different ways to fix it, the most canonical way would be: remove the environent.systemPackacke in line 4 and 24, and in your configuration.nix do a callPackage inside your environment.systemPackages
<eyJhb>
You should remove `pkgs`from your first line, as you would call that file with `pkgs.callPackage ./your-file.nix {}`, which would pass all the other arguments
<eyJhb>
Hopefully lassulus agrees with that
<jgart[m]>
<lassulus "so there are different ways to f"> this option makes sense to me. I'll try that next :)
<jgart[m]>
<eyJhb "You should remove `pkgs`from you"> I'll test that too
<jgart[m]>
I must be doing something silly for it to still be failing
<jgart[m]>
It complains 'is not of type package`
<eyJhb>
jgart[m]: put () around `callPackage ./beautysh.nix {}` -> `(callPackage ./beautysh.nix {})`
<supersandro2000>
callPackage ./beautysh.nix {} is not a package
<henri>
supersandro2000: That sounds misleading.
<henri>
jgart[m]: The problem is that spaces are list separators in Nix, so it sees callPackage (a function), ./beautysh.nix (a path), and {} (an empty attrset) individually.
<henri>
jgart[m]: And none of these is a package.
<eyJhb>
^ what henri said
<eyJhb>
ALso, when in doubt in Nix, put a lot of ()
fendor has quit [Remote host closed the connection]
proofofkeags has joined #nixos
cmk_zzz_ has joined #nixos
fendor has joined #nixos
<{^_^}>
[nixpkgs] @fabaff opened pull request #112435 → python3Packages.pyvex: init at 9.0.5739, python3Packages.ailment: init at 9.0.5739 → https://github.com/NixOS/nixpkgs/pull/112435
cmk_zzz has quit [Ping timeout: 240 seconds]
n-osborne has joined #nixos
<fast1[m]>
Is there a way to sandbox nix-shell? I want to use it for dev environments and would like to limit access to the filesystem
n-osborne has quit [Remote host closed the connection]
thelounge52 has joined #nixos
<aleph->
So has anyone here tried setting up deluge in declarative mode with nixops? Curious if you've run into issues with it complaining about the yet to be deployed key not existing.
<colemickens>
Do we have any "toram" infra for our boot?
<colemickens>
It would be nice to be able to tell people to boot installation media in "toram" mode, so they could then install in-place back to the install media, or could re-use the usb port, or whatever.
<sshow>
I'm attempting to add a cpio to initrd with boot.initrd.prepend = ["/boot/mycpio"], but returns `cat /boot/mycpio no such file or dir[..]`. What am I missing?
<viq|w>
AFAIK upgrading dbus or systemd pretty much requires a reboot to properly (re)load those
<viq|w>
Is there a good way to detect that? On things like archlinux or debian I've been using needrestart to tell me that.
<ajs124>
I thought systemd supports re-executing itself
quinn has joined #nixos
<viq|w>
To be honest I never looked into this bit. I know needrestart generally didn't want to restart things like say systemd-logind, and that system wasn't happy when I did try restarting them.
mallox has quit [Quit: WeeChat 3.0]
<ris>
what is the canonical way of checking what the latest stable release is?
philr has joined #nixos
n-osborne has joined #nixos
<lordcirth>
ris, in an automated fashion?
<ris>
yup
<ris>
see, i'm looking at using niv to keep a project up to date, but even _it_ doesn't keep up to date with the latest stable - its default is still 20.03
<ris>
which of course is not even getting security updates anymore
<infinisil>
ris: Yeah there isn't really a good way to do that..
<ris>
:S
<ris>
i assume the lack of a nixos-stable alias is deliberate
<infinisil>
I personally think we should have such an alias
<ris>
really i'm trying to put together something for colleagues who are the sort that tend to forget about a project and rely on dependabot to keep it updated
thelounge52 has joined #nixos
<ris>
i think with nix i can do one better than dependabot and only propose a bump when an update to nixpkgs actually changes the drv hash
<ris>
infinisil: that might be enough - in theory all i need to do is a bit of API curling to fetch the "name" of the latest release - it's not perfect
<ris>
it's not quite as simple as `niv update nixpkgs` but :shrug:
lordcirth has quit [Ping timeout: 265 seconds]
<infinisil>
Maybe that could be a niv feature
<energizer>
do you want the tags to update?
<ris>
i get the idea that the niv author rather has his own ideas on this
<energizer>
nixos-21.03-SP1
<ris>
energizer: i don't actually need the tags, once i know the name of the release i can follow the branch
<ris>
it's just discovery of that branch name (and knowing when it's "ready")
lordcirth has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]