<pennae>
infinisil: https://gist.github.com/pennae/92d0aba5b8064302bf964ae81ebb0a9c -- as said, no insurmountable problem. previously you readFile'd some things, now you import them into the zip. would be easier if eg every attrset key had a _fragments that did that automatically
stree has quit [Ping timeout: 260 seconds]
<pennae>
this is especially important if you *do* assign to config paths directly, because those *won't* be merged even though unbound could deal with the multiple values
<pennae>
say you have multiple fragments that assign to services.unbound.settings.include for some reason, the module *should* turn that into a list but can't realistically be smart enough to do that
<pennae>
use a string on just one and errors happen :<
judson_ has quit [Remote host closed the connection]
judson_ has joined #nixos
<pennae>
infinisil: it just uses the last one
judson_ has quit [Remote host closed the connection]
<infinisil>
I see
judson_ has joined #nixos
<pennae>
that's the problem :D
judson_ has quit [Remote host closed the connection]
judson_ has joined #nixos
<infinisil>
pennae: Also just suggested this in the PR, but the settings approach also allows doing more checking or transforming for specific settings keys. So this string -> list coercion could only be done for the local-* keys
judson_ has quit [Remote host closed the connection]
judson_ has joined #nixos
<infinisil>
But yeah, I do understand the main concern that the format isn't trivial to map to Nix, and yes there's no ideal solution for this unfortunately..
<pennae>
that's not enough, there's more of those. interface, allow-access, don't have the full list in our head
exondation has quit [Ping timeout: 250 seconds]
<pennae>
yup, thus just leave it and document the oddness :)
<infinisil>
Well, I'd love to push upstream's to use better config file formats
<infinisil>
I think that would be ideal
<infinisil>
But maybe not realistic
<pennae>
that would ne nice, yes
<pennae>
not a hill we're going to die on
<infinisil>
The composability of NixOS modules is really not something all program writers have in mind when choosing a config file format
judson_ has quit [Remote host closed the connection]
<pennae>
oh elements, i dread the day someone does this to dhcpd
<infinisil>
It really wouldn't have been hard to move that { a bit further back..
<pennae>
dhcpd maps these keys to interfaces. wouldn't be too surprised if it could map multiple blocks differing only in the netmask to different interfaces
f4r5983 has joined #nixos
ddellaco_ has quit [Ping timeout: 252 seconds]
<gchristensen>
/query infinisil
ahmed_elgabri has joined #nixos
NeoCron has quit [Read error: Connection reset by peer]
judson_ has quit [Remote host closed the connection]
judson_ has joined #nixos
hyiltiz has quit [Ping timeout: 252 seconds]
judson_ has quit [Remote host closed the connection]
hyiltiz has joined #nixos
judson_ has joined #nixos
ahmed_elgabri has quit [Ping timeout: 260 seconds]
gpanders has quit [Remote host closed the connection]
gpanders has joined #nixos
ddellaco_ has quit [Ping timeout: 252 seconds]
ram19890 has joined #nixos
nekroze has joined #nixos
safe has joined #nixos
dongcarl has quit [Ping timeout: 240 seconds]
<nekroze>
hello all, I am trying to install in a nix-shell a version of terraform with a specific commit used for the aws provider instead of the default. Following this https://discourse.nixos.org/t/terraform-how-you-override-a-version-using-nixpgks-way/10436/2 gets me as far as compiling the override however it fails building because none of the external go deps are available. How does nixpkgs manage the deps and
<nekroze>
why would simply overriding the rev and sha cause this failure? I am looking into generating a deps list with something like vgo2nix but I am unclear on if this is neccesary or even something that can be passed through using that override function.
<lukegb>
nekroze: there's a bit of a trick with some ecosystems, like the go one
theDon has joined #nixos
haijuno has joined #nixos
<lukegb>
Usually there's a separate hash for the dependencies
<nekroze>
maybe my searching is just failing me but I cannot find anything like that for the aws provider in nixpkgs, are you able to point me in the right direction?
<SumnerEvans[m]>
sisyphus: the keyboard layout is determined by the sway config. You can try and override the default config that gets written to `/etc/sway/config` (see: https://github.com/NixOS/nixpkgs/blob/nixos-20.09/nixos/modules/programs/sway.nix#L122). Alternatively, if you want to use home-manager, you can use that to decoratively define your sway config.
<thomasjm>
question, is there some way to programmatically find the completions for a given Nix expression? for example, if I were to type python3.pkgs.mat and hit tab in "nix repl" I would see completions like "matplotlib". but it doesn't seem possible to e.g. shell out to "nix repl"
<phalrax>
Hi, if I'm using shell.nix to pull in some dependencies (via lorri) what happens if those deps get updated in nixpkgs? Will they be updated as well or will they continue pointing to the previous version (since lorri creates a gcroot)?
<eyJhb>
phalrax: Might be the case as well yeah. But normally I would assume, that the deps would update once you update your channel
ddellaco_ has quit [Ping timeout: 260 seconds]
<eyJhb>
But I haven't used it ever, sorry phalrax :)
ahmed_elgabri has joined #nixos
lsix has joined #nixos
cr4y1 has joined #nixos
<srhb>
phalrax: Are your dependencies not pinned? If not, I'd just recommend doing that, then it's clear when something changes. eg instead of referencing <nixpkgs>, reference `fetchTarball https://github.com/NixOS/nixpkgs/archive/<rev>.tar.gz`
<srhb>
phalrax: This is not lorri specific, but the same logic applies.
ahmed_elgabri has quit [Ping timeout: 250 seconds]
stree has quit [Ping timeout: 246 seconds]
toppler has quit [Read error: Connection reset by peer]
<jdelStrother>
Is it possible to start a pure nix-shell that can also invoke nix-shell within it? (Longer version: I have a script that uses nix-shell --pure in its shebang. It updates some dependencies, then I want to run `nix-shell --run somecommand` within that script, but can't because nix-shell is no longer within the path. I thought I might be able to
<jdelStrother>
change the initial shebang to, eg, `nix-shell --pure -p nix-shell` but I guess nix-shell isn't actually a <nixpkgs> package ...?)
bahamas has quit [Ping timeout: 246 seconds]
<DigitalKiwi>
i'm not sure if the |& cat does what it's supposed to do as i'm not sure what it's supposed to do (i have an idea of it but not sure); it was definitely added in an attempt to solve something though lol
<DigitalKiwi>
jdelStrother: add nix to the first nix-shell
<DigitalKiwi>
i think i've done that before
mohamed1 has joined #nixos
<VuzeDev>
I can install nginx with VOD module???
<mohamed1>
Hey, need some explication plz, when I run nix-shell -p python37 python38Packages.requests run "python". I can import the requests in the python37 while the requests is installed for the python38. How make sure that the only available packages is package installed for python37? Thank you
tbreslein has joined #nixos
<thibm>
mohamed1: use python37.withPackages (ps: [ps.requests]) but AFAIK this is not possible with nix-shell -p. (You need to write it in a Nix file)
<VuzeDev>
thibm I can install nginx with VOD module???
<jdelStrother>
DigitalKiwi: ahh, that looks promising
<jdelStrother>
though I've immediately run into nix-shell being awful at combining inputs from .nix files and packages
mohamed1 is now known as redkahuna
<dutchie>
thibm/redkahuna: according to the man page you can pass an expression to nix-shell -p
<dutchie>
i'm sure i've done that at some point
<Kinnison>
nix-shell -E perhaps?
<emily>
error: renaming '/nix/store/d8jy5381074zyi4z75vkh39w5gfnsjqw-swift-sources-5.4-swift-tools-support-core' to '/nix/store/zgd98b69n1ggmc5zsi9p475cv1bqmgd2-swift-sources-5.4-swift-tools-support-core': Directory not empty
<emily>
I've never gotten this error before. am I cursed?
<dutchie>
i had `#! nix-shell -i python3 -p "python3.withPackages (p: [ p.requests ])"` at the top of a script
<dutchie>
and it worked fine
glyph[m] has joined #nixos
<dutchie>
(after the `#!/usr/bin/env nix-shell` line)
<thibm>
dutchie: indeed, I had just tested but added an extra `)` characters and assumed it did not work…
<thibm>
redkahuna: so you can use: nix-shell -p "python.withPackages (ps: [ps.requests])"
<dutchie>
in the end i switched that script out to be its own derivation though, since it took ages to load a custom nix-shell environment every time
<VuzeDev>
In /etc/nixos/configuration.nix i can install nginx with additional modules???
jbox has quit [Ping timeout: 252 seconds]
<dutchie>
VuzeDev: look at the man page for configuration.nix and search for services.nginx. there is a services.nginx.additionalModules option there
<redkahuna>
thibm: Thanks it's work for me, dutchie Thank you
toppler has quit [Read error: Connection reset by peer]
* Kinnison
imagines VuzeDev would be well served by experimenting with nixos/nginx, and thence with nixops, since I doubt there's an easy answer people here can give beyond "yes you can"
toppler has joined #nixos
<DigitalKiwi>
where's lambdabot when you need it
jbox has joined #nixos
<DigitalKiwi>
<lambdabot> cmccann says: @faq is it possible to find things Haskell can't do? <lambdabot> The answer is: Yes! Haskell can do that.
<VuzeDev>
And i can use NixOps locally with QEMU???
ahmed_elgabri has quit [Ping timeout: 245 seconds]
<strangeglyph>
Hi! I am currently trying to get Agda to work on my nixos installation. Agda itself runs, but it cannot find the standard library. I installed Agda as `agda-with-stdlib = agda.withPackages (p: with p; [ standard-library ]);`, which from my understanding of the package should register the location of the standard library with agda, but apparently it
<strangeglyph>
is not. Any help?
ahmed_elgabri has joined #nixos
<ThomasSanchez[m]>
Hey, is this the right room to ask question about nixos/shell.nix and C++ development setup?
<VuzeDev>
And i can use NixOps locally with QEMU???
<thibm>
ThomasSanchez[m]: yes, just ask :)
orivej has joined #nixos
jdelStrother has quit [Quit: Ping timeout (120 seconds)]
MJCD has joined #nixos
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<Taneb>
strangeglyph: hmm, that should work. Are you sure that agda-with-stdlib is what you installed?
<VuzeDev>
justanotheruser And to install modules using NixOps, requires to clone nixpkgs repository???
orivej has quit [Ping timeout: 252 seconds]
<Kinnison>
VuzeDev: Seriously, I strongly suggest you start simple - just install one thing, confirm you understand what it's doing and how, and then extend your configuration from there
<Kinnison>
VuzeDev: I made the mistake of trying to fly before I could crawl with nix once, and paid the price
babbaj[m] has quit [Quit: Idle for 30+ days]
* Kinnison
can *almost* walk now :D
<VuzeDev>
Kinnison So, nixpkgs is required to install modules using NixOps???
<Kinnison>
VuzeDev: I personally have no idea as I've never used nixops before
* Kinnison
is just providing general advice
<VuzeDev>
So, nixpkgs is required to install modules using NixOps???
<justanotheruser>
VuzeDev: yes, you need nix channel set up
<strangeglyph>
Taneb: Yeah, here's the relevant excerpt from my configuration.nix. Though I did try to install agda with nix-env first before I decided to put it into the configuration file, would that mess up things?
<VuzeDev>
justanotheruser Nix channel from repository or from repository???
<justanotheruser>
VuzeDev: you can either target a local repository, or a url
<justanotheruser>
what does `nix-channel --list` show?
<VuzeDev>
justanotheruser So, from channel???
<justanotheruser>
idk what you're asking
<justanotheruser>
read my link, it's pretty helpful I think
<pennae>
siers: more precisely, set hostBridge for A and give B an extraVeth in the same bridge
VuzeDev84 has joined #nixos
<pennae>
how the hell did that jump the command queue *grumbles*
<thibm>
justanotheruser: you can use nix-store --referrers/references on derivations, but you get build time dependencies. For the runtime ones you need to build the package.
<thibm>
Maybe you could get a superset of the runtime dependencies by taking all dependencies' out paths
toppler has quit [Read error: Connection reset by peer]
iori has joined #nixos
toppler has joined #nixos
<noonien>
is it possible to have the derivation hash inside the derivation? without parsing it from $out?
<dotlambda>
placeholder "out"
<dotlambda>
maybe that will do for you
strangeglyph has quit [Quit: Connection closed]
tomberek has quit [Quit: Connection closed]
<noonien>
will that not give me the full path?
<noonien>
it seems it does
<noonien>
i'm only interested in the hash
dev_mohe has joined #nixos
psy3497 has quit [Quit: WeeChat 1.6]
<noonien>
i need to use it a seed for a RNG, so that i can have random-looking (but not random, obviously) stuff generateed, and, so that the derivation is reproducible
dev_mohe has quit [Client Quit]
<MichaelRaskin>
You can also feed $out to a hash function
<noonien>
sure, i was just wondering if there's a way to get the hash without doing anything with $out, if not, i'll probably just do that
<MichaelRaskin>
It's not a commonly useful thing, and basename + cut -d- work, so I would not expect it to be already-supplied bit also never considered searching for it
<thibm>
noonien: you can use something like `drv: builtins.unsafeDiscardStringContext (builtins.hashString "sha1" drv.drvPath)` to get a random-looking hash seed determined by drv
<hoppfull>
Hello, my project requires libtinfo.so to work. In Ubuntu I can just install libtinfo-dev but there is no such package in nixpkg. How would I go about finding out where this file is? I think it's in ncurses5 as libtinfo.so5 but I have no idea how to symlink to it.
ManiacOfMadness has joined #nixos
ddellaco_ has joined #nixos
ram19890 has quit [Quit: Konversation terminated!]
htr has quit [Quit: working hard]
<SumnerEvans[m]>
,locate libtinfo.so
<{^_^}>
Found in packages: ncurses, ncurses5
<SumnerEvans[m]>
hoppfull: ^ just include ncurses in your derivation.
htr has joined #nixos
ece has joined #nixos
MacAndCheese4Eva is now known as MJCD
<hoppfull>
SumnerEvans[m]: I have ncurses in my default.nix under stdenv.mkDerivation rec { buildInputs = [ ncurses ]; } but it still doesn't work.
<hexa->
is there an easier way to fix this than disabling home-assistant, redeploying, gc'ing the faulty system derivation, and reenabling & redeploying?
<eacameron>
Why does 'date' give me the current date/time inside nix builds??
<adisbladis>
eacameron: Because the syscalls used are not intercepted
<eacameron>
adisbladis: doesn't this break determinism?
<adisbladis>
Kind of, yes
<adisbladis>
But I don't think it's possible to accomplish that in the case of time
Nuc1eoN has joined #nixos
justanotheruser has quit [Ping timeout: 245 seconds]
<abathur>
it is common to need to patch out date/time dependencies (in a simple case, something capturing its build time to show in --help or --version) to make builds reproducible; I guess I've just assumed intentionally freezing date/time causes unacceptable collateral damage of its own but I haven't looked for discussion on that point; I guess "it isn't possible" is a good one :)
toppler has quit [Read error: Connection reset by peer]
toppler has joined #nixos
<eacameron>
abathur: I'm sure it's *possible*... it's just probably a lot of work. Like maybe forking the date source code and pinning all the time data to unix epoch :P
growpotkin has joined #nixos
Raito_Bezarius has quit [Ping timeout: 248 seconds]
<abathur>
:}
Adluc has joined #nixos
ManiacOfMadness has quit [Ping timeout: 260 seconds]
ddellaco_ has quit [Remote host closed the connection]
<abathur>
I didn't bother censusing uses of "time" in the thesis since there are supposedly 109, but I did look at each instance of "date" and "time stamp"; the fact of date/time based build indeterminism is mentioned, and it discusses setting the timestamp for filesystem objects to a fixed value, but at least at those sites I didn't see any discussion of doing something globally tyrannical about it :)
exondation has quit [Ping timeout: 260 seconds]
Raito_Bezarius has joined #nixos
exondation has joined #nixos
zebrag has joined #nixos
cfricke has joined #nixos
bahamas has quit [Quit: leaving]
iori has joined #nixos
codezero has quit [Quit: Ping timeout (120 seconds)]
<kolaente_>
I'm trying to add a package from a git repo to my configuration.nix with "import (pkgs.fetchgit ..." and then just adding the variable to packages list of my user but keep getting "The option value `users.users.kolaente.packages.[definition 1-entry 79]' in `configuration.nix' is not of type `package'" error
<kolaente_>
any ideas?
cr4y1 has quit [Ping timeout: 246 seconds]
jgt_ has quit [Ping timeout: 240 seconds]
sangoma has joined #nixos
dev_mohe has joined #nixos
dev_mohe has quit [Client Quit]
proofofkeags has joined #nixos
<adisbladis>
kolaente_: Just a semi-educated guess, but you probably have it like `environment.systemPackages = [ import (pkgs.fetchgit ...)) ]`
<adisbladis>
But it should look more like: `environment.systemPackages = [ (import (pkgs.fetchgit ...) {}) ]`
<adisbladis>
Note the extra outer parens
<kolaente_>
adisbladis: looks like it hmm
<kolaente_>
Now the error is different: "anonymous function called without required argument 'stdenv'"
<adisbladis>
kolaente_: switch `import` for `pkgs.callPackage`
<kolaente_>
I guess I need to pass in the parameters the package requires in "{}"?
<kolaente_>
ah
<adisbladis>
Which does dependency injection
<kolaente_>
callPackage did the trick
<kolaente_>
Thanks!
ManiacOfMadness has joined #nixos
erasmas has joined #nixos
<{^_^}>
[nixpkgs] @sternenseemann pushed to haskell-updates « haskellPackages: fix eval of darwin specific overrides »: https://git.io/J3XKJ
ahmed_elgabri has joined #nixos
kolaente_ has quit [Quit: WeeChat 2.9]
nschoe has quit [Ping timeout: 252 seconds]
ahmed_elgabri has quit [Ping timeout: 246 seconds]
toppler has quit [Read error: Connection reset by peer]
toppler has joined #nixos
arjen-jonathan has joined #nixos
<{^_^}>
[nixpkgs] @sternenseemann pushed to haskell-updates « haskellPackages.arbtt: add missing frameworks for darwin »: https://git.io/J3Xxr
<mjlbach>
Does anyone know how to handle python requirements for a package that declare extras? I'm bumping matrix-nio, but one of the dependencies is python-socks[asyncio]. I've now packaged python-socks, but the asyncio extras I don't know how to add into the buildInputs
<hexa->
we don't care for extras, just add them uncoditionally
<hexa->
propagatedBuildInputs you mean
<mjlbach>
yes ^
<mjlbach>
How do I add an extra? The actual dependency of the extra is already added, but poetry is just failing to match
<benley>
I think 21.05 hasn't quite branched off yet
<cetjs2>
benley: what is?
<bigvalen>
Heh. I was messing around, trying to get smokeping-exporter for prometheus working. Took me a good 30 mins to realise that ... it was because it's only in unstable :)
<pie_>
Ankhers: idk about the easiest way, but i would probably pin my nixpkgs, then use patches = [ ... ] to apply the patch to nixpkgs, then import nixpkgs
<pie_>
too hand-wavy?
<Ankhers>
Yeah, sorry. I don't really know how to do that in my configuration.nix.
ahmed_elgabri has quit [Ping timeout: 250 seconds]
<pie_>
i dont know if github tars are stable, but you could use fetchurl with a sha256 to get the tar.gz of a commit, and then fetch the .patch URL of the PR , and apply the patch, OR you could clone nixpkgs, apply the patch, and import that
<pie_>
im kinda too preoccupied to go into more detail tho
<Ankhers>
pie_: No problem. I think that should be enough to get me going. Thank you!
<ajs124>
AFAIR github tars aren't stable. but why not use fetchFromGitHub or fetchGit?
<pie_>
ajs124: because im dumb and forgot
<ajs124>
relatable
<pie_>
Ankhers: in any case the steps are basically 1) acquire nixpkgs somehow 2) acquire the patch somehow 3) apply the patch 4) import the patched nixpkgs
<benley>
I think github might have actually made their tarballs stable at some point. Not certain though.
<pie_>
ajs124: oh. its probably because ive been using niv too much
<benley>
but you should probably still use fethFromGitHub or fetchTarball or fetchGit
<benley>
*fetchFromGitHub
<pie_>
Ankhers: depending on how much fun you want to have right now, you should also look into niv
<Ankhers>
pie_: Will do.
gustavderdrache has quit [Ping timeout: 240 seconds]
melg8 has joined #nixos
<pie_>
Ankhers: actually using niv basically consists of adding the repo to it, running update or something and then `let nixpkgs = import (import ./nix/sources.nix).nixpkgs {}; in ...`
<pie_>
or something like that
<pie_>
niv doesnt seem to be flexible in the path it expects you to have sources.nix
<drozdziak1>
This is thought to be a tarball flake and gives me "unexpected number of top-level files" which in the nix codebase expects it to be exactly one top-level file
Frosku has joined #nixos
<benley>
anyone know what the secret trick is to getting skopeo to work when installed via nix-shell or nix-env? It's angry that /etc/containers/policy.json doesn't exist, and that file isn't even in the derivation, it's only installed if you use the virtualisation.containers nixos module, which isn't really practical when running in a CI pipeline
<benley>
I guess I could just use --insecure-policy
VideoGameEnjoyer has quit [Ping timeout: 260 seconds]
<ris>
how does one typically do cross-option validation when writing a nixos module? just simple stuff like "this option is only mandatory when that option is enabled" - is this where `assertions = ` comes into play?
<clever>
ris: yeah
<ris>
kthx
<clever>
ris: the other power of `assertions =`, is that nixos-rebuild can spit out multiple errors at once
<ris>
oh neat
<clever>
so you dont run in cicles, fixing one error at a time
<exarkun>
is it expect that setting virtualisation.virtualbox.host.enable to true leads to a kernel compile (ie, the binary cache doesn't have a kernel build for that config)?
<hrnz>
also: what's the point of asdf when you have nix? *ducks and runs*
monokrome has joined #nixos
<MichaelRaskin>
For Nixpkgs package? You need more stuff. For just installing? Should work maybe. Do they need dynamically linked binaries downloaded on the fly?
<MichaelRaskin>
hrnz: preexisting scripts, duh
<atralheaven>
I think nix packages are not as up to date
ahmed_elgabri has joined #nixos
zupo has quit [Ping timeout: 252 seconds]
<atralheaven>
well what I need is to have latest versions (sometimes alpha versions) of some programming languages
<atralheaven>
but I'm very new to nix
<atralheaven>
and I've always used package managers, haven't built things from source much
<dotlambda>
atralheaven: If you look at https://repology.org/repositories/statistics/pnewest you'll see that Nixpkgs isn't so bad at all when it comes to being up to date, especially compared to repos of similar size.
<atralheaven>
when I install this font for example, is it just importing that file to nix config?
<cole-h>
(nixpkgs-unstable)
melg8 has quit [Quit: Connection closed]
kum0 has joined #nixos
<atralheaven>
I have 20.09 installed
<atralheaven>
is unstable, really unstable?
<cole-h>
it can be
<cole-h>
but you'll find many people run nixos-unstable just fine
<atralheaven>
is it possible to install only some packages from unstable?
<cole-h>
yes
<SumnerEvans[m]>
I find that nixos-unstable is about as fast as Arch + AUR
<hrnz>
while most distros allow you to just install a single unstable package, this isn't really possible with nixos. You will have to install the whole unstable dependency closure of it (or degrade your system to a gentoo)
justanotheruser has joined #nixos
<atralheaven>
hrnz: having dependencies installed is fine, as long as they're only used with that unstable package
<hrnz>
they are.
<adisbladis>
"while most distros allow you to just install a single unstable package, this isn't really possible with nixos" < I find this statement very untrue
<adisbladis>
Most distros "allow" you to but leave your system in a broken/undefined state when doing so
toppler has quit [Read error: Connection reset by peer]
toppler has joined #nixos
<hrnz>
:D
<lukegb>
If you want to install a single unstable package *and* force it to use the "stable" deps, I guess you could by using callPackage on it yourself
<hrnz>
this kind of depends on how outdated the "stable" tree is
meh` has quit [Ping timeout: 265 seconds]
<adisbladis>
lukegb: Yeah, though this doesn't work 100% reliably since the callsite can customise arguments
<hrnz>
lukegb: yup, but the binary cache won't serve you then
<lukegb>
right, but that's the whole premise of nix at that point :P
<atralheaven>
what's the advantage of configuring a program (like i3wm or vscode) using nix instead of using regular config files?
<hrnz>
you have all your configuration in a single place
<hrnz>
also some configuration files contain a lot of boilerplate you'd never touch, so using nix modules yields more reasonable files
<hrnz>
being able to structure your configuration like you want is also useful. For example you can put your mailserver config into a single file instead of 30 files distributed over 5 directories
zupo has joined #nixos
<hrnz>
oh, and you can also rollback your configs together with your packages if something stops working
<hrnz>
especially when using flakes
<atralheaven>
hmmm that's nice
fendor_ is now known as fendor
MidAutumnHotaru has quit [Quit: Quit 啾]
<cole-h>
you don't need flakes for that
<cole-h>
just use niv :P
MidAutumnHotaru has joined #nixos
fuiltilt has joined #nixos
exondation has quit [Ping timeout: 245 seconds]
<atralheaven>
how does nix know how to manipulate original config files, based on nix configs?
<cole-h>
people write modules for it
<cole-h>
these modules generate the underlying configuration file
<dupon1>
I don't understand, even when zlib is installed system wide, to `patchelf` then `ldd` is still not found
<dupon1>
(thanks evils)
ahmedelgabri has joined #nixos
<evils>
,libraries dupon1
<cole-h>
,libraries
<{^_^}>
dupon1: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
toppler has quit [Read error: Connection reset by peer]
<dupon1>
cole-h: even from a nix-shell it don't works
toppler has joined #nixos
<MichaelRaskin>
From nix-shell it works for building
<MichaelRaskin>
Externally obtained binaries usually need patchelf
<MichaelRaskin>
or LD_LIBRARY_PATH
<dupon1>
yes, I'm trying to patchelf
lsix has quit [Ping timeout: 260 seconds]
lsix has joined #nixos
catern has joined #nixos
<dupon1>
there is wayyy too many things to patchelf, it would be faster and safer to extension myself or to just have a VM/machine dedicated to Inkscape. Thank you anyway for your help
<MichaelRaskin>
LD_LIBRARY_PATH might be a solution
arjen-jonathan has quit [Ping timeout: 260 seconds]
<MichaelRaskin>
(If you need many extensions but the same boring dependencies)
<winterqt>
quick question, is it bad etiquette to ask for a PR to be reviewed here if the person revieiwng it hasn't responded to the request to re-review for a week, or should I just wait?
<ryantm>
I'm trying to use libvirt on NixOS and our documentation says "Users in the "libvirtd" group can interact with the daemon (e.g. to start or stop VMs) using the virsh command line tool, among others." I have a VM running, which I can see with `sudo virsh list`, but it I run it as my user who is in the libvirtd group I do not see the VM. Should I expect my user to be able to interact with the system VMs, or is the `libvirtd`
<ryantm>
group only supposed to allow me to start VMs as my user?
ahmed_elgabri has quit [Ping timeout: 250 seconds]
dorwna has joined #nixos
<colemickens>
did you try something along the lines of virsh -c "qemu:///system" ...
<colemickens>
there's also virtualistion.libvirtd.qemuRunAsRoot which I've used both true/false.
gustavderdrache has quit [Quit: Leaving.]
<ryantm>
colemickens: That works great, so it's just about the default of where it is connecting. Cool.
<colemickens>
I want to package a javascript thing for Nix, one of those projects insists on downloading something during build time. I've tried in the past to package it and could never figure out how to patch this inner dependency. Any npm+nix experts have any advise on the best tool to use if I were going to try again?
<tpw_rules>
colemickens: i mean what was stopping you from patching it?
<infinisil>
,locate libsgx
<colemickens>
tpw_rules: I couldn't figure out the syntax. All of the tools generated some soup of nix that I couldn't comprehend and every attempt I made to "override" the package just seemed to not work.
<{^_^}>
Couldn't find in any packages
<colemickens>
it's not terribly specific since it was a year ago, but I tried a few tools and all of my nix fu to try to guess at what I should do. Docs didn't match tools. There are two tools with the same name. Just a very confusing place to be.
<infinisil>
drozdziak1: So {^_^}'s nix-locate database is a bit outdated, so the only chance for it to exist is if it was relatively recent..
<colemickens>
Hard to not draw conclusions about the nix npm tooling space mirroring my perceptions of the javascript space at large, but I don't really know the reasons/story
<infinisil>
drozdziak1: Or it could be that it's an unfree library, those aren't indexed
Synthetica has quit [Quit: Connection closed for inactivity]
pinkieval has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
jb55 has joined #nixos
<infinisil>
cole-h: Fonts being built with js.. geez!
jgt_ has quit [Ping timeout: 246 seconds]
<mjlbach>
I've had a lot of issues trying to get personal JS projects like my website to build in nix-shells, for example post-css cli seems to fail to find postcss in a nix shell for me
ddellacosta has joined #nixos
toppler has quit [Read error: Connection reset by peer]
toppler has joined #nixos
MatrixBot24 has quit [Quit: Bridge terminating on SIGTERM]