<siraben>
I cross-compiled nix and copied the closure to my tablet, but I get an exec format error when I try to run `nix-channel --update` http://ix.io/2Fg2
<clever>
siraben: run the file command on a binary that works, and a binary that doesnt work, how do they differ?
proofofkeags_ has joined #nixos
<{^_^}>
[nixos-homepage] @garbas pushed to donate-graphics « add the merch graphic »: https://git.io/JkPOZ
<{^_^}>
[nixos-homepage] @garbas opened pull request #647 → Add the merch graphic to Donate page → https://git.io/JkPOl
proofofkeags_ has quit [Ping timeout: 260 seconds]
rajivr has joined #nixos
gxt has quit [Ping timeout: 240 seconds]
proofofkeags_ has joined #nixos
proofofkeags__ has quit [Remote host closed the connection]
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
proofofkeags__ has joined #nixos
gxt has joined #nixos
proofofkeags_ has quit [Ping timeout: 240 seconds]
<cole-h>
gchristensen: I mean we could add more, no? It just requires a redeploy.
proofofkeags_ has joined #nixos
<siraben>
clever: so the linker versions are different, but I think it's the bash exec format being incorrect that is the problem
<siraben>
-bash: /nix/store/516z50fm1jbpcl32qnzy7kynrh0vl22w-bash-4.4-p23/bin/bash: cannot execute binary file: Exec format error
<siraben>
Which is strange, should it not be cross-compiled?
selfsymmetric-mu has joined #nixos
<bsima>
Is there a standard way to prepend to LD_LIBRARY_PATH from mkDerivation? I can set it in buildFlags but it clobbers the entire var which causes build problems
proofofkeags__ has quit [Ping timeout: 240 seconds]
<jonringer>
you shouldn't be using LD_LIBRARY_PATH during build time
<jonringer>
that's shell dependent behavior, and the resulting build-output will most likely not work correctly
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkPnr
<{^_^}>
[nixpkgs] @drewrisinger opened pull request #104728 → pythonPackages.pyqtgraph: convert to pyqt5 → https://git.io/JkPn1
<bsima>
do you know where this '–with-lib' stuff is documented?
<jonringer>
generally, the configure script is auto generated
<jonringer>
and you can do ./configure --help
<jonringer>
to see what most scripts expect to be passed
<bsima>
yeah i'm reading the configure script
<bsima>
actually, i think this is a problem with the underlying build script, because ./configure doesn't fail as it should, but the actual compile command does fail
<euandreh>
Hmm, I think the problem isn't with libfive, but with libfive-guile
<euandreh>
The ./configure says that "checking for libfive... yes"
<euandreh>
But fails with "libfive-guile"
<bsima>
libfive-guile is in "${libfive}/lib/libfive-guile.so"
Guest74098 has quit [Quit: Leaving]
<bsima>
i'm not sure how guild can know about that path though
<euandreh>
yep, it was compiled from "library.scm", right?
<bsima>
i don't know
<bsima>
the libfive derivation uses the standard build phases
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<bsima>
do you mean to imply that inspekt3d/library.scm shouldn't call '(load-extension "libfive-guile" ...)'?
<bsima>
my understanding is that load-extension will load the .so from the standard paths, so as long as guild can find that .so, then it should compile successfully
<euandreh>
I don't think there is any problem with the (load-extension ...) call
<euandreh>
Only the path to libfive-guile is missing, indeed as you first stated
<daf66>
the build step fails without much helpful information.
<danderson>
lukegb: yeah, mkYarnPackage does rsync shenanigans already (although I do different ones, since I'm building an outdir for bundling into a binary, not an actual package for reuse)
<lukegb>
daf66: hmm, how are you running the build? what output _do_ you get?
<daf66>
@lukegb copied that to a file `build.sh`, and changed the builder to `builder = "./build.sh"`. I am seeing the same error `bash: ./build.sh: No such file or directory`
<lukegb>
Try just ./build.sh, not as a string - you want it to be an actual "path".
<clever>
also, you almost never want to set builder
<clever>
usually, its a sign that your using nix wrong
<lukegb>
^
<daf66>
clever, what should I do instead?
<daf66>
@lukegb this time it ran but I got `npm: command not found`
<daf66>
so it's like it's not getting the buildInputs
<clever>
daf66: because the default builder puts buildInputs into PATH for you
<clever>
daf66: but you replaced the builder, and none of that is helping anymore
<clever>
daf66: try using buildPhase = ''shell code''; instead
<daf66>
@clever thanks! i'll try it
icey_ has joined #nixos
<lukegb>
you're also likely going to run into problems because your build script won't have access to the internet (e.g. to fetch things from npm)
<lukegb>
unless you have sandboxing turned off(?)
<lukegb>
but again, that's usually a sign you're using nix wrong
<{^_^}>
[nixpkgs] @ju1m opened pull request #104734 → nixos/network-interfaces: fix typo in udev rule syntax → https://git.io/JkPrh
<daf66>
clever, i overlooked it, but node2nix generated a `default.nix` also https://termbin.com/11r6
<clever>
ah, then just nix-build -A buildNodePackage
<clever>
i think
<julm>
bqv: right, thanks for supporting me! I've been fixing and rebasing many PR for the last few days, the apparmor one and the gnupg one amongst them, next is the syncoid one
<bqv>
Cool :)
<julm>
bqv: I haven't had the courage to rework the apparmor one regarding the hydra problem though, I need time to reload my motivation to dive again on that unknown problem
red[evilred] has joined #nixos
<red[evilred]>
fun times huh julm (IRC) :-)
<bqv>
julm: to be honest, I was thinking it might be worth moving the apparmor one outside nixpkgs
Supersonic112 has joined #nixos
<julm>
well, I'd prefer to get it merged, it touches a lot of moving modules
<bqv>
Then you don't need to change it. It works, it's just hydra's weird rules and the committer's discretions that are stobping you
<bqv>
Eh, up to you. I'm of the mind it'd work nicely as an external flake
<julm>
a compromise could be to drop the use of import-from-derivation in nixpkgs to generate profiles automatically
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to staging « gnugrep: 3.5 -> 3.6 »: https://git.io/JkPj1
daf58 has joined #nixos
<daf58>
clever, following those instructions for `configuration.nix` didn't get me the result I wanted, so I removed the channel and undid my changes. now `nixos-rebuild` is telling me this: http://www.hastebin.net/anodisewun.lua
<srhb>
daf58: Right.. Even then it might be helpful to change what root's "nixos" channel points to, rather than having more than one channel :)
<daf58>
so, i should remove the `nixpkgs` channel, then?
<srhb>
I would recommend that, yes.
<clever>
yeah, nixos only needs a channel named nixos
<daf58>
cool. `--remove, --update, rebuild` all worked
SanchayanMaity has joined #nixos
<daf58>
i ran the garbage collector because i suspect the prior rebuild duplicated tons of packages
<daf58>
thanks guys
<srhb>
daf58: "duplicated" packages like that is completely normal
<srhb>
daf58: They're not, in fact, duplicates, but slightly different.
<srhb>
daf58: When some package changes in nixpkgs, every package that depends on it changes too, so you get a new "version"
<daf58>
so, there's not any technical danger to using more than one channel?
<daf58>
just pebcak
rtjure has quit [Ping timeout: 272 seconds]
<srhb>
Right. But it's known to be really confusing to people.
<srhb>
So it's not just you :)
rtjure has joined #nixos
Lord_of_Life has quit [Changing host]
Lord_of_Life has joined #nixos
<dminuoso>
Will the need for channels disappear with flakes?
<srhb>
Probably, if flakes happen.
<dminuoso>
"if"?
<aterius>
Still experimental, design may change, RFC not accepted yet, etc.
<srhb>
The momentum is pretty big right now, granted, but I'm not convinced and not particularly happy about how it's implemented, so color me a skeptic. :P
<aterius>
What don't you like? I just started playing with flakes this week and have been fairly pleased
<aterius>
It doesn't add much over niv for me to be fair
<srhb>
Composability is really annoying, pinning inputs via strings, etc.
<srhb>
Yeah, I prefer the niv way, if only it were pure.
<srhb>
(in eval as well, that is)
<aterius>
What do you mean pinning inputs via strings?
<aterius>
You mean adding the rev in the url?
<aterius>
Or not recreating the lockfile?
<srhb>
inputs.foo.inputs.nixpkgs.follows "/bar" etc.
<aterius>
ah
<dminuoso>
Mmm, we're currently debating whether to go for niv or not right now.
<aterius>
Niv is great, recently it's been hanging frequently for me while updating pins which was enough motivation for me to try flakes
<srhb>
Well, the flakes nix is really unstable currently, so I'd hold off just for that reason
<srhb>
But depends on your stability requirements :)
<aterius>
You can use flake-compat
<srhb>
True.
<aterius>
Still agreed re: niv being more established
<dminuoso>
I guess we could go niv now, and wait for flakes to land
<srhb>
Either way, as long as you don't have a bunch of impure eval, changing later is no great investment.
<aterius>
Swapping from niv to flakes shouldn't be too bad
<aterius>
I've done it for a couple overlays
<srhb>
I've had more breakage with the nix interface honestly.
<srhb>
So it's recommendable to avoid "v2" style nix commands if you go nixStable first.
iH8c0ff33 has joined #nixos
<srhb>
That may be a pain to disentangle from your infra later :)
<dstzd>
how would i use boot.kernelPackages with both 5.9 and hardened on 20.09? kernel_latest_hardened or whatever still points to 5.8
<{^_^}>
[nixpkgs] @siraben opened pull request #104748 → bitcash: init at 0.6.0, coincurve: init at 13.0.0 → https://git.io/JkXOd
<dstzd>
I think i'm doing it incorrectly: "boot.kernelPackages = pkgs.recurseIntoAttrs (pkgs.hardenedLinuxPackagesFor pkgs.linux_5_9 { });" is not of type package.
<clever>
dstzd: pretty sure that recurseIntoAttrs is only ever to make nix-env play nicely, and can usually be ignored
supermarin has joined #nixos
<{^_^}>
[nixpkgs] @peti merged pull request #104721 → nixos.postfix: make postfix.enableSmtp work again → https://git.io/JkPqr
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JkXcx
noudle has joined #nixos
satoko has joined #nixos
satoko is now known as satoko-nixos
Boomerang has quit [Remote host closed the connection]
lambda-11235 has quit [Quit: Bye]
Boomerang has joined #nixos
<satoko-nixos>
Hello. I have a question. I have a package called "Anki" that is optionally dependent on "mpv'. I do have it installed, but it is not available to the "Anki" package. How can I add this dependency to it?
civodul has joined #nixos
cole-h has quit [Ping timeout: 260 seconds]
thc202 has joined #nixos
<andi->
satoko-nixos: that depens on how Anki is trying to execute it
TomCruise has joined #nixos
<TomCruise>
yoooooooooooooo
<TomCruise>
what's fucking going on ya bastards
cfricke has quit [Quit: WeeChat 2.9]
<TomCruise>
FUCKING PUSSY
cfricke has joined #nixos
mkaito has joined #nixos
mkaito has joined #nixos
<TomCruise>
welcome back cfricke you crazy bitch
<ivan>
satoko-nixos: might need to fix pkgs/games/anki/default.nix to add mpv where player is
<TomCruise>
ivan what's hoppin playa
sangoma has joined #nixos
<TomCruise>
sangoma my man
<TomCruise>
whaddeedoo boi
<ivan>
gchristensen: ^
<ivan>
srhb: ^
eyenx has quit [Quit: Bridge terminating on SIGTERM]
eyenx has joined #nixos
m0rphism has joined #nixos
satoko-nixos has quit [Remote host closed the connection]
<srhb>
Oh, too slow
ndarilek has quit [Quit: Idle for 30+ days]
mallox has joined #nixos
TomCruise was banned on #nixos by srhb [*!~tomcruise@096-040-117-061.res.spectrum.com]
<{^_^}>
[nixpkgs] @zowoq pushed commit from @saschagrunert to master « crun: 0.15.1 -> 0.16 »: https://git.io/JkXEL
<ravndal>
anyone have any idea why the edac drivers aren't being built?
<ravndal>
last time they were loaded on my system was on 2020-08-08
<ravndal>
kernel version 5.7.13
mallox has quit [Ping timeout: 246 seconds]
mallox has joined #nixos
ronny has joined #nixos
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<ronny>
hi, anyone aware of a doc on how to use nixos-rebuild/generating a image for a system from a current non-nixos host (im preparing for another attemt to nixos and would like to start by updating my system specs and generating a image for my raspberri pi 4
wfranzini has quit [Remote host closed the connection]
<DigitalKiwi>
hahaha wow this is amazing. i accidentally found a file that every time i nixpkgs-fmt it does the 1/1 file reformatted. which it should only do once. i was too tired to figure it out and i just found it while closing terminals.
<DigitalKiwi>
i should make a repo
mallox has quit [Ping timeout: 260 seconds]
<sphalerite>
ravndal: hm, intereesting. It doesn't seem to have been enabled or disabled explicitly.
<DigitalKiwi>
zimbatm: consider this my bug report ^^
christoph7 is now known as christoph9
domogled1 has joined #nixos
domogled1 is now known as domogled
domogled has quit [Ping timeout: 272 seconds]
veleiro has quit [Ping timeout: 272 seconds]
<DigitalKiwi>
hey i just found more problematic files :3
<DigitalKiwi>
and i have a very angry nixpkgs git repo now :<
kdlv has joined #nixos
<{^_^}>
[nixpkgs] @siraben opened pull request #104758 → vyper: init at 0.2.7 → https://git.io/JkXrh
<DigitalKiwi>
nixfmt is idempotent
orivej has joined #nixos
bn_work has joined #nixos
<energizer>
i just moved my root ssd to another computer and it doesnt make it to the display manager. it gets to "Reached target Graphical interface" and hangs after that
SanchayanMaity has quit [Quit: SanchayanMaity]
<energizer>
i'm guessing i need to add some kernel params to support this computer
<energizer>
which means i need to regenerate
<gchristensen>
<3 srhb
<{^_^}>
srhb's karma got increased to 137
<energizer>
i wish i could have my full git tree with branch names in the grub list
<energizer>
s/tree/history/ (since 'tree' is overloaded)
<__monty__>
Would the UUIDs remain stable when transplanting a disk?
<sphalerite>
__monty__: yes
<__monty__>
sphalerite: Are they stored in some early sector of the disk?
<sphalerite>
__monty__: depending on which uuids you mean exactly, but they're all on disk
<sphalerite>
so if you take the disk out of one computer and put it in another, they won't change.
alp has joined #nixos
<sphalerite>
(there's the partition table UUID, the partition type UUIDs, the partition UUIDs, and depending on filesystem the filesystem UUIDs)
<__monty__>
I guess for some reason I was thinking the system needs a UUID to figure out which disk to boot from but that's not how it works since the bootloader's on the disk too.
<typetetris>
Creating a vbox image with nixos, the x server always starts out with 800x600. How can I change that?
daGrevis has joined #nixos
dansho has quit [Ping timeout: 240 seconds]
<ravndal>
sphalerite: who are the maintainers I should notify when submitting the pull request, you and nequissimus?
<__monty__>
ravndal: A bot automatically pings all maintainers.
lassulus has quit [Ping timeout: 256 seconds]
<ravndal>
__monty__: well, that solves that then, thanks
<srenatus>
hi there. I've got a package that's defined in nixpkgs. for my local `default.nix` (to be used with nix-shell), I'd like to use that other package's buildInputs. this strikes me as something simple, but I just can't figure it out right now.
iH8c0ff33 has quit [Ping timeout: 264 seconds]
euandreh has joined #nixos
<srenatus>
oh. mkShell. it really is that easy. sorry for the noise
<mkaito>
only discovered that after writing my own mkShell wrapper, of course...
thibm has joined #nixos
werner291 has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 260 seconds]
kreyren has quit [Remote host closed the connection]
<tom39291>
I have a raspberry pi 3 that I want to install nixos on, which I will then control remotely via nix-copy-closure (as I do my other nixos machines). I could do this by downloading the sd-image, and going through an install process. That's a bit of faff. It'd be handy if I could use the same configuration.nix that I plan to use to generate a bootable SD card. Are there docs on this?
marcusr has quit [Read error: Connection reset by peer]
kreyren has quit [Remote host closed the connection]
<thibm>
tom39291: and you replace config.system.build.isoImage by nixos.config.system.build.sdImage
cosimone has quit [Quit: cosimone]
kreyren has joined #nixos
supersandro2000 has quit [Ping timeout: 246 seconds]
<thibm>
tom39291: the configuration should set nixpkgs.crossSystem (to `lib.systems.elaborate lib.systems.examples.raspberryPi` if it did not changed) and import <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix>
<jophish>
Is it possible to unmount root, and drop to a ramfs shell with some derivations?
<jophish>
I'd like to run btrfs check on root
<jophish>
but I need to unmount it
malook has joined #nixos
domogled1 has joined #nixos
domogled1 is now known as domogled
domogled has quit [Ping timeout: 256 seconds]
negaduck has joined #nixos
<siraben>
When cross-compiling, how do I access the host's packages?
<siraben>
A package I'm trying to cross-compile depends on itself but on the host.
rtjure has quit [Ping timeout: 265 seconds]
<srk>
buildPackages I think
domogled1 has joined #nixos
rtjure has joined #nixos
malook has left #nixos [#nixos]
domogled1 is now known as domogled
werner291 has joined #nixos
malook has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
zupo has joined #nixos
civodul has quit [Remote host closed the connection]
<Abdullah>
Hello guys. count me in as new nixos user ;-)
* etu
notes it down for the register of all nixos users
<makefu>
Abdullah: welcome to the community! i saw you already created a wiki account :)
<makefu>
if you have any questions regarding the wiki, be sure to join #nixos-wiki
<Abdullah>
yeah I did a few hours ago as there was no page for window managers. I'll create one once I'm done with tinkering the system. still I'm new to this.
<etu>
Abdullah: Welcome to our community :)
<Abdullah>
Thanks guys.
civodul has joined #nixos
cosimone has joined #nixos
<Abdullah>
well, this is my encrypted install and I plan to write it up on my website as well as on my YouTube channel.
SanchayanMaity has quit [Quit: SanchayanMaity]
<Abdullah>
I'm a bit late as today I was in hospital the whole day. Just came back a few hours ago. now I'm on this system.
<Abdullah>
You know I had my machine with me there tinkering with it. I had some problems with default display manager. which I have resolved.
<Abdullah>
How can we fix the shebang issues? like in one systemd unit file, I have feh for setting wallpaper. although its in my path but still not working
<{^_^}>
[nixpkgs] @jonringer pushed commit from @Artturin to master « mullvad-vpn: add iproute2 »: https://git.io/Jk1tZ
<typetetris>
i have ... like 40 GiB?
al3x27 has quit [Quit: WeeChat 3.1-dev]
<typetetris>
store i mean
<bqv>
i mean, i do a lot
<bqv>
but i've been trying to balance mine below 128G for ages
<bqv>
it just means every time i update and rebuild, i have to collect-garbage aggressively and make a few attempts before i have a run that doesn't run out of space midway
<bqv>
no matter. doubled the partition's size
<bqv>
i was hoping to use that space for other things
<Abdullah>
Thanks. I think I have seen this -qaP on wiki as well
<Abdullah>
used this search but only found one emacs font.
<thibm>
Well, I find the right packages with both methods, and the name is pretty self-explanatory
<Abdullah>
maybe I tried to search for FontAwesome
<thibm>
I found it with '.*awesome.*'
<Abdullah>
now I also found them ;-)
<thibm>
great
cmk_zzz_ has joined #nixos
cmk_zzz has quit [Ping timeout: 256 seconds]
<thibm>
(did you see the fonts.fonts option?)
<Abdullah>
I'm confused there. I saw it yeah. Can I add this to nixos configuration?
<thibm>
Yes
malook has quit [Quit: malook]
supermarin has quit [Quit: leaving]
<thibm>
If you want, it's like environment.systemPackages but for fonts (because they need some special handling)
<Abdullah>
I tried to edit sudoers file. I just want it to don't ask for password for my user. But it said I have to do something else in nixos for this. Can someone explain it?
supersandro2000 has joined #nixos
<Yaniel>
,manual
<thibm>
(WTF the fonts.fonts documentation is in nixpkgs manual and not in nixos manual?)
kreyren has quit [Remote host closed the connection]
domogled1 has joined #nixos
<{^_^}>
[nixpkgs] @adisbladis pushed 2 commits to release-20.09: https://git.io/Jk14o
kreyren has joined #nixos
<raghavsood>
Right, I'll take it step by step - for filecoin, I need to first add filecoin-ffi, another go package, as a vendored package (I don't need the go binary, just the source files). As part of this set up, I need to compile some rust code into foreign function interface files, and copy them into the filecoin-ffi src, which has to be copied into the
<raghavsood>
main filecoin lots src. What would be the best way of doing this?
<Cadey>
hey rycee, when using home-manager as a nix module, how do i reference global nixos options from home-manager?
<raghavsood>
Should I just build the rust step, then copy the output files into the correct location as part of building the lotus package?
<{^_^}>
[nixpkgs] @grahamc opened pull request #104776 → utillinux: rename to util-linux → https://git.io/Jk147
<{^_^}>
[nixpkgs] @FRidh pushed commit from @jonringer to master « python2Packages.cryptography: mark insecure, CVE-2020-25659 »: https://git.io/Jk1wm
ilyaigpetrov has joined #nixos
<{^_^}>
[nixpkgs] @flokli closed pull request #71737 → nixos/wireguard: allow setting a readable name for peers → https://git.io/JeRjL
<prusnak>
is there a way how to crosscompile from nixos-x86_64 to darwin-x86_64?
<prusnak>
if I use crossSystem.config = "x86_64-apple-darwin" I get infinite loop :-(
growpotkin has joined #nixos
<teto>
I would like to specify a specific branch with my flake via nix.registry.XXXX . What's the syntax ? (more examples in configuration.nix regarding this option would be nice)
<srhb>
aanderse: ping. Got a moment to talk about postgres?
<aanderse>
srhb: sure. what can i do for you?
<srhb>
aanderse: I'm considering how to restore "include" functionality to postgres. Currently, that is unrepresentable, because it's a statement-like syntax in postgresql.conf, which cannot be expressed with settings options. I'm pondering what your thoughts are on a separate "includes" list for this purpose.
<srhb>
Statement like as in: _not_ key-value, but multiple `include foofile` lines.
<aanderse>
srhb: are you looking to include some files imperatively or some such?
<srhb>
aanderse: My alternative, which I tend to favor, is to grant the user access to the rendered config _and_ the destination of the config file, which grants more power to nix
<srhb>
aanderse: Yes, our clusters are combinations of our declarative nix config and includes that can be altered imperatively.
<aanderse>
srhb: understood. have similar situation for some other services myself.
saschagrunert has quit [Quit: Leaving]
<srhb>
aanderse: And this is more like RFC talk, but often I find myself wanting to access cfg.renderedConfig and cfg.configFile, where configFile would default to writeText renderedConfig. With this option, the user regains a ton of flexibility in using both the rendered settings config BUT are still able to alter ad-hoc the final config file without resorting to rewriting entire systemd units.
<srhb>
That said, the less powerful cfg.includes list is more declarative in a way.
<aanderse>
infinisil is probably a good person to pull into this conversation... but i'm thinking a filter run over the settings to pull out an "include" key, then custom write the value for the "include" key to the file might provide some value here
<srhb>
I feel very hesitant to grant special meaning to otherwise free-form config key-values.
<srhb>
But maybe that's just me being overcautious.
thibm has quit [Quit: WeeChat 2.6]
<aanderse>
yes, understood, as would i
ilmu1 has quit [Ping timeout: 272 seconds]
<aanderse>
but... with careful consideration it might be a reasonable answer
superherointj has joined #nixos
<srhb>
Yes, true. I will mull that over. As far as I can tell include and include_dir are the only special cases (?) in postgres that are not key-value pairs.
<infinisil>
A separate include option sounds like a good idea
<aanderse>
infinisil i wondered if you would say that :)
<srhb>
I still wish for the renderedConfig every christmas... :-)
<infinisil>
The `settings` approach only works 100% if the program config is fully representable in Nix, but that's only like 98% the case here.
ilmu1 has joined #nixos
<srhb>
Indeed.
<infinisil>
Having a special option for the remaining 2% seems like a good compromise
jonatanb has joined #nixos
<srhb>
Good enough. I'll take that route.
cole-h has joined #nixos
<aanderse>
infinisil: the format is 100% representable by nix (ish), but srhb needs to do something imperative
<srhb>
aanderse: It's not (is it?)
jonatanb_ has joined #nixos
<aanderse>
an include directive simply includes more things that are representable by `settings`
<aanderse>
srhb: from a ridiculous "purists" point of view it is
<srhb>
Right, okay, you're saying semantically.
<infinisil>
srhb: For my modules I try to have `configFile = mkDefault (format.generate "settings" cfg.settings)`, where `configFile` is another option, such that the user can override `configFile` if needed
<aanderse>
much like you, i live in the real world though, so i also have the need to do what you are doing here and there :)
<infinisil>
And the rendered config is easy enough to get from `format.generate`
<srhb>
infinisil: Right, if format.generate is available to the user that's exactly what I want
<infinisil>
Hm yeah but I guess it's not always available
<infinisil>
For program-specific formats, they should have generators only defined with a `let in` in the programs module. E.g. that's at least the case for znc
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/Jk1ii
<infinisil>
Yeah maybe it would be nice to have something like `cfg.generatedConfig` for this :)
<srhb>
infinisil: I wish that weren't so. Having access to both is a really powerful escape hatch. Having only one or the other is often not very useful.
<srhb>
(Because you get to rewrite that crazy ExecStart script regardless, and then you might a well... etc.)
jonatanb has quit [Ping timeout: 260 seconds]
acarrico has quit [Quit: Leaving.]
<teto>
FRidh: thanks !
<aanderse>
srhb: if you didn't know MichaelRaskin (not sure what his nick is here right now...) is also fairly interested in your renderedConfig case - it was discussed a fair bit at nixcon in a breakout room with svanderburg
jonatanb_ has quit [Remote host closed the connection]
<srhb>
aanderse: We've talked about it in here before as well, but indeed, it's been a while. Missed the breakout though! Would have been useful :)
<betaboon>
doronbehar: thanks for all the work on packaging gnuradio 3.8 :D quick question tho, is there a way to use plugins with it yet, i need gr-limesdr :D
aiverson` has quit [Remote host closed the connection]
ilmu1 has quit [Ping timeout: 260 seconds]
jonatanb has joined #nixos
<aanderse>
i have been meaning to ping MichaelRaskin on this for a while now, see what the "next step" ideas are
ilmu1 has joined #nixos
<evanjs>
aanderse: just checked my #nixos logs. Looks like it _is_ MichaelRaskin, but he d/c'd yesterday?
<srhb>
aanderse: fwiw I think he's usually MichaelRaskin on freenode, but has been absent for a while.
<aanderse>
srhb: infinisil if anything materializes on this or help needed please ping me, topic i'm very interested in
<srhb>
Right back atcha.
<teto>
I have my registry pointing at https://github.com/teto/neovim/tree/flake but 'nix flake info neovim' fails with json.exception.type_error.302 type must be a string but is null.
<srhb>
And thanks for taking the time :)
<aanderse>
srhb: just to be clear... you're not up the creek without a paddle are you?
<srhb>
No, just a slight hitch in our 20.09 upgrade plan. Good thing about NixOS -- you rarely get really stuck when you know how to rip things apart ;-)
<aanderse>
well i apologize for the inconvenience caused :(
<srhb>
No worries, I think .settings is for the benefit of all humankind. :)
<spacetato>
teto: `nix flake info github:teto/neovim/flake` works for me
<teto>
spacetato: thanks I think that may be a cache issue; the previous flake was bad. I tried to pass tarball-ttl 0 without success
eoli3n_ has quit [Remote host closed the connection]
<spacetato>
ah, ok
jonringer has joined #nixos
vidbina has quit [Ping timeout: 246 seconds]
eoli3n has joined #nixos
<{^_^}>
[nixpkgs] @timstott closed pull request #104696 → terraform-providers: update script with Go module support → https://git.io/Jkiok
<{^_^}>
[nixpkgs] @primeos pushed to master « wlsunset: init at 0.1.0 (#103606) »: https://git.io/Jk1Qt
_0bitcount has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<dmedinag>
I've managed to mount the drive manually so that users can write on it with the -o umask=000 option, but I'd like for this to happen automatically when we're talking about usb drives? Is this a bad idea?
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #104792 → sssd: fix build on glibc-2.32 → https://git.io/Jk1QD
<{^_^}>
[nixpkgs] @mweinelt pushed 2 commits to release-20.09: https://git.io/Jk1NL
Morfio has joined #nixos
Steelwire has joined #nixos
<{^_^}>
[nixpkgs] @mweinelt pushed to release-20.03 « sddm: add patch for CVE-2020-28049 »: https://git.io/Jk1Nc
teto has joined #nixos
jonatanb has quit [Remote host closed the connection]
saschagrunert has joined #nixos
noudle has quit []
saschagrunert has quit [Client Quit]
iH8c0ff33 has joined #nixos
<Steelwire>
Hey everyone, I was wondering if anyone with commit access is available. I have an open PR which has been approved by 2 users, but hasn't been merged yet: https://github.com/NixOS/nixpkgs/pull/103936
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/Jk1pX
<simpson>
energizer: (FWIW what's happening behind the scenes is that Xorg's GPU drivers, just like the kernel's GPU and microcode drivers, know how to check hardware IDs and bail if they shouldn't be loaded.)
<fuzzypixelz_>
ToxicFrog: All I got was a nix-store.squashfs
<energizer>
simpson: but the gpu hasn't changed so how does that work?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/Jk1hB
rprije has joined #nixos
<fuzzypixelz_>
it's read only
tarruda has quit [Ping timeout: 260 seconds]
<fuzzypixelz_>
nevermind I'll just decompress it
tarruda has joined #nixos
<simpson>
energizer: Oh! Maybe your kernel *doesn't* have the GPU drivers that you need? Not sure. Can you boot from rescue/installation media and rebuild your system? Perhaps use nixos-generate-config to see if anything needs to be updated in hardware-configuration.nix?
zupo has quit [Ping timeout: 240 seconds]
deadpixels has quit [Remote host closed the connection]
h0m1 has quit [Quit: WeeChat 3.0]
cosimone has joined #nixos
zupo has joined #nixos
jonatanb has joined #nixos
h0m1 has joined #nixos
mkaito has quit [Quit: WeeChat 2.9-dev]
mkaito has joined #nixos
mkaito has joined #nixos
mkaito has quit [Changing host]
supersandro2000 has quit [Ping timeout: 265 seconds]
<pushqrdx>
can someone help me get clangd to work properly inside a nix-shell?
jonatanb has quit [Ping timeout: 240 seconds]
<pushqrdx>
the problem i am facing is that it seems like clangd doesn't seem to find any includes
<simpson>
bourbon: We have /var and startup scripts via systemd; you can set up your mutable FS state in /var on startup.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bourbon>
what is the "nix way" to define these resources I want?
<bourbon>
in my specific case, it's the CA for a kubernetes install
<bourbon>
like... do I just go and put the stuff in /var from inside a derivation?
<simpson>
That's a good question. I don't know offhand. You can /join #nixos-kubernetes to see if there's a k8s-specific answer.
<bourbon>
ah, thanks
<stoile>
bourbon: There is a dhparams module (security.dhparams) which can create random files and store them in the nix store. Depending on how you configure it. In case you want to read some nix expressions.
<bourbon>
many thanks
Izorkin has quit [Ping timeout: 264 seconds]
Mateon1 has quit [Quit: Mateon1]
supercoven has quit [Ping timeout: 240 seconds]
Mateon1 has joined #nixos
<pushqrdx>
clangd seems to get so confused for some reason inside a nix-shell
Izorkin has joined #nixos
lsix1 has quit [Quit: WeeChat 3.0]
<pushqrdx>
i have clang_11 as build input, so part of that is clangd language server, and i run vim from a nix-shell so it has clangd, it's executed fine but apparently can't find any headers
<pushqrdx>
(i have compiler_commands.json at the root as usual etc)
<energizer>
vigoux: there's a boot system called systemd, and a bunch of other tools that have systemd- prefixes on their name. you can replace any of them if you so choose
pbb has joined #nixos
<pushqrdx>
the war is meaningless imo :D if you hate systemd you should be hating it for not doing it's job or for some of it's flaws, politics aside and philosophical shit aside too xD
<vigoux>
But you can't replace systemd itself, right ?
<pushqrdx>
no afaik nixos switched from something else before to systemd and systemd is here to stay
<vigoux>
huh
<vigoux>
good to know though
<vigoux>
thanks for the answers, gtg though
<simpson>
vigoux: There is no real obstacle to replacing systemd, aside from a large pile of work and no obvious candidate to switch to.
jneto has joined #nixos
<simpson>
If you feel strongly about this, you could look at Guix, which IIUC doesn't use systemd.
<euandreh>
It doesn't use systemd, but GNU Shepherd instead
<euandreh>
But if switching away from systemd because of "I don't like it" reasons, people will probably find even more of them when encountering "herd"
<NemesisD>
is there such a concept in nix as a derivation that's simply a collection of other derivations? i'm trying to bundle up a bunch of dependencies that can be included into a shell derivation or a docker image or something. i could probably just export a list but giving it a name that will show up in the builder seems preferable
<euandreh>
I think you can do it with symlinksJoin, or something similar
<euandreh>
NemesisD: let me look it up
<euandreh>
symlinkJoin, almost correct, just without the "s"
<mutantmell>
Would anyone here mind helping me out setting up a network bridge? I'm trying to set up a bridge interfacing with the sole ethernet port, but when I switch to the configuration I lose network connectivity (persisting through a reboot), even when I enable DHCP for the bridge interface.
<NemesisD>
euandreh: thanks! and is the difference between this and mkDerivation that it just sort of eliminates all the build, fixup, unpack phase stuff?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkMGr
<Cadey>
(I have a good reason, i want to do a nixos test that for reasons that are too complicated to explain here MUST access a resource on the public internet)
<supersandro2000>
Cadey: they shouldn't. Fetch the stuff before
<supersandro2000>
or disable the sandbox
<Cadey>
do i have to disable the sandbox in the host or in the guest VM?
<supersandro2000>
Cadey: ufff Idk. I would assume you can do that somewhere in the test
<Cadey>
i can't :(
<Cadey>
it has to be the host
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #104823 → pythonPackages.pyscard: Remove patch that is included in 1.9.9 and 2.0.0 → https://git.io/JkMnI