Ariakenom has quit [Remote host closed the connection]
<kvda>
Why are all Nix packages so terribly out of date?
<hyper_ch2>
kvda: feel free to update them
Ariakenom has joined #nixos
Ariakenom has quit [Remote host closed the connection]
<etu>
kvda: Are they? https://repology.org/ say that nixpkgs unstable have 83.51% updated packages.
<kvda>
Is that really the problem? It looks like the bottleneck is rate of approval, 1229 PRs open
<etu>
kvda: Feel free to help reviewing updates.
<kvda>
Is there anything preventing a system where package maintainers don't need a central approval?
ym555 has joined #nixos
talqu has joined #nixos
ym555_ has quit [Ping timeout: 258 seconds]
<talqu>
hi, how do I add a www subdomain in a similar configuration to this? Do I just duplicate one the entries there prepending www. to the virtual host name?
<hyper_ch2>
talqu: where do you want to add it?
<talqu>
duplicating the expression starting at line 26, and adding www to line's 26 string
<talqu>
how do I install nixfmt binary? I remember before I could do nix-format-buffer in emacs + nix-mode, now it says it cannot find nixfmt.
knupfer has joined #nixos
mexisme_ has joined #nixos
mexisme_ has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @vcunat pushed commit from @tomberek to release-19.03 « openssl: fix CVE-2019-1543 »: https://git.io/fjBTD
ottidmes has joined #nixos
jackdk47 has joined #nixos
jackdk has quit [Disconnected by services]
jackdk47 is now known as jackdk
knupfer has quit [Ping timeout: 250 seconds]
<kuznero[m]>
Hi All! How can I install latest firefox 67 while still being on stable nixos channel? I was using the trick with pulling unstable tarball `fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;` but it seems that firefox 67 didn't hit it yet. Any recommendations? Can I have the same but for git HEAD instead of nixos-unstable somehow?
Synthetica has joined #nixos
thc202 has joined #nixos
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
sveitser2 has joined #nixos
wfranzini has quit [Remote host closed the connection]
equivrel has quit [Remote host closed the connection]
c0dr[m] has joined #nixos
Jetien_ has joined #nixos
rauno has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
rauno has joined #nixos
toppler`` has quit [Ping timeout: 258 seconds]
markus1189 has joined #nixos
<kuznero[m]>
I just now realized that firefox takes time to build ;)
ubert has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
toppler`` has joined #nixos
<meck>
Hi! Im tinkering with a module where I have a want to to set a couple of options defaults as dependent on neighbouring options in the same module. IE dataDir = "/tmp"; datafile = "${mymodule.dataDir}/datafile"; is that doable? I see a reference here https://nixos.wiki/wiki/NixOS_Modules but i can't figure where it is done in the referenced examples?
<bkchr>
Hey, does Nixos somehow magically patches in `fuse-ld=gold` to the compiler?
<bkchr>
andi-: I'm trying to get `ndk-build` working. That is using the clang shipped with the Android ndk. Somehow it picks up the the system ld.gold compiler and `fuse-ld=gold` is given as parameter to clang. If I search in the derivation, I don't find any piece of code that adds this argument
<andi->
in which derivation are you searching?
schjetne has quit [Remote host closed the connection]
<cyris212>
I am a bit confused on how to install emacs-libvterm on NixOS.
schjetne has joined #nixos
<cyris212>
Is there a way to do this directly in environment.systemPackages?
<bkchr>
andi-: `ndk-bundle` derivation
<bkchr>
`androidenv.androidPkgs_9_0.ndk-bundle`
<andi->
no idea, never used them. Sorry bkchr
lostman has quit [Quit: Connection closed for inactivity]
<bkchr>
np
vk3wtf has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @lostman opened pull request #61938 → Expose makeLinuxHeaders function from nixos/kernel-headers → https://git.io/fjBIr
<m0rphism>
the signal-desktop package on nixos-19.03 needs an update. It compiles and runs fine, but the author deprecated it remotely, which disables all functionality to force users to update...
vk3wtf has joined #nixos
mexisme_ has quit [Ping timeout: 268 seconds]
<etu>
m0rphism: Then do a backport of it
mexisme_ has joined #nixos
Maxdamantus has quit [Ping timeout: 248 seconds]
Maxdamantus has joined #nixos
mexisme_ has quit [Ping timeout: 246 seconds]
<lightbulbjim>
I’m looking to package an app which is distributed upstream as both a deb and an appimage. Is there a preferred format to use?
Ariakenom has quit [Ping timeout: 250 seconds]
vid has joined #nixos
max4 has quit [Ping timeout: 244 seconds]
<goibhniu1>
lightbulbjim, is the source available too?
mexisme_ has joined #nixos
<goibhniu1>
that would be best, otherwise the deb would be preferred
<lightbulbjim>
It is, but it just builds the deb and appimage. It’s an Electron app so doesn’t follow the traditional Unix workflow.
<m0rphism>
etu: Adding `libuuid` to `buildInputs` or `nativeBuildInputs` has no effect, maybe I'm doing something wrong
pie_ has quit [Ping timeout: 258 seconds]
esmerelda has joined #nixos
<m0rphism>
but I'm neither experienced with electron nor libuuid nor with non-trivial nix-development, so for something security related it would probably be better to notify the pkg maintainer right?
<goibhniu1>
m0rphism: is the package up to date on unstable?
<goibhniu1>
with a bit of luck, you can cherry pick from master to 19.03
<m0rphism>
primeos: Pinging you as the maintainer of `signal-desktop`: current version stopped working as the authors deprecated the version remotely again. Tried to backport, but got missing `libuuid.so.1` on program start.
pie_ has joined #nixos
ThatDocsLady has joined #nixos
<m0rphism>
goibhniu1: primeos: ahh, nvm, just found that it's already updated on nixpkgs master. Didn't think about checking before, sorry!
<m0rphism>
goibhniu1: thanks
ThatDocsLady has quit [Remote host closed the connection]
<goibhniu1>
cool!
<{^_^}>
[nixpkgs] @lsix pushed to release-19.03 « python3Packages.django_2_2: init at 2.2.1 »: https://git.io/fjBtU
<primeos>
m0rphism: ok, no problem - unfortunately I missed that expiration date :o
<m0rphism>
primeos: It happens; thanks for taking the time to maintain the package! :)
ThatDocsLady has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
max4 has quit [Ping timeout: 250 seconds]
<dminuoso>
So I have some abis.nix which has oraclejdk8 specified in its buildInputs. When I install it with `nix-env -i -f abis.nix` however, oraclejdk8 does not appear on my PATH. Why is that?
Shoubit has joined #nixos
ThatDocsLady has joined #nixos
sigmundv has joined #nixos
freddie-freeload has joined #nixos
<genesis>
dminuoso : try with -iA
<dminuoso>
genesis: Huh?
<freddie-freeload>
newbie: Hey! Signal-Desktop on 19.03 seems to be expired. I already did `nixos-rebuild switch --upgrade` and signal still complains. Should I open an issue for that? :)
max4 has joined #nixos
<genesis>
dminuoso : not sure why you want oraclejdk8 in your PATH, it has only to be in the abis path, isn't it ?
<dminuoso>
genesis: Because the application `abis.nix` is weird and requires javac to be on PATH
pie___ has joined #nixos
<dminuoso>
genesis: Its not fixable for reasons.
<genesis>
dminuoso : where is the derivation ?
cfricke has joined #nixos
<genesis>
anyway perharps you should consider to wrap it with the jdk in the path
<ar>
.36
pie_ has quit [Ping timeout: 248 seconds]
<dminuoso>
genesis: Oh you mean using wrapProgram?
<genesis>
yes
<dminuoso>
genesis: Ah! That sounds like it should work :)
<m0rphism>
goibhniu1: cherry picking worked, thanks for the suggestion :)
<goibhniu1>
\o/ good job!
saikrishi1109[m] has joined #nixos
<dminuoso>
genesis: Worked like a charm, cheers. :)
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
hoijui has quit [Ping timeout: 252 seconds]
<bricewge>
I'm trying to start `nixos-upgrade.service` when the system boots with ` systemd.services.nixos-upgrade.wantedBy = [ "multi-user.target" ];`.
delan has joined #nixos
delan has joined #nixos
delan has quit [Changing host]
<bricewge>
But now the service hang when started manually. What am I doing wrong here?
vid has joined #nixos
schjetne has joined #nixos
<bodqhrohro_>
I have installed two applications using GPU (openscad and minetest) via nixpkg, and both can't start due to errors with initializing graphics. Is it a known problem on foreign distributions? I have a pre-GCN Radeon card, if matters.
acarrico has joined #nixos
<genesis>
bodqhrohro_ : yes it could works with tricks
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « python37Packages.rasterio: 1.0.22 -> 1.0.23 (#61915) »: https://git.io/fjB3P
<ottidmes>
infinisil: I was indeed hoping something like that was out there
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
infinee has joined #nixos
<ottidmes>
guess I will just be wasting some disk space for now, not that its a big problem, but feels wrong for this particular use cased (a pinned lib)
<bodqhrohro_>
goibhniu1: home-manager is pretty interesting, thanks. I was already willing to fix the openscad's look, which it can do just by setting qt.platformTheme
<yorick>
pie_: ok the new one uses nix-daemon --stdio, the old one uses nix-store --serve
<pie_>
thanks
viric has quit [Remote host closed the connection]
<pie_>
wonder why it didnt work, maybe it doesnt do interactive stuff (like keys with passwords)
<yorick>
I always use NIX_SSHOPTS="-i keyfile"
<clever>
i just run ssh-agent
emi80 has joined #nixos
<attente[m]>
hi, is anyone getting `error: attribute 'xz_url' missing, at /nix/store/mdrhslrx13a5hs2kksxxx419h19vfamw-source/rust-overlay.nix:100:31` when trying to `home-manager switch --upgrade` with the mozilla nixpkgs rust overlay?
hmpffff has joined #nixos
m0rphism has quit [Quit: WeeChat 2.4]
klaas_ has joined #nixos
<klaas_>
when building a single python environment with 2 packages from the azure "family" I get the following error
<klaas_>
collision between `/nix/store/5r12zdh00fj7jy9my00gdj84h2ni49l5-python3.6-azure-common-1.1.18/lib/python3.6/site-packages/azure/__pycache__/__init__.cpython-36.pyc' and `/nix/store/vjw3w5vqr8yc7ajah3p1aq2732rgs3f3-python3.6-azure-storage-0.20.3/lib/python3.6/site-packages/azure/__pycache__/__init__.cpython-36.pyc'
<klaas_>
my understanding is that both packages supply "azure/__init__.py"... and that nix does not know how to resolve this
<klaas_>
infinisil: I don't think that will work... Python will not recognise that the packages, which are built in 2 distinct parts of the store, are part of a single thing then
<klaas_>
I think
<nh2>
what's the easiest way to turn a file directly into a derivation? I tried
<tilpner>
nh2: Does it really need to be a derivation?
<tilpner>
nh2: Paths with context, as produced by "${./foo}" or copyPathToStore work well too
knupfer has joined #nixos
polman has quit [Ping timeout: 248 seconds]
<nh2>
tilpner: well otherwise `nix-build` seems to demand it. But I just want to end up with `/nix/store/HASH-mfyle`, and that printed to stdout -- should I use something different than nix-build for that?
<tilpner>
nh2: nix-store --add
<nh2>
tilpner: ah, I didn't know that, that is good. Now I just need something that allows me to set the name, like `builtins.path { name = ...}` does (because the file name I'm being given is not necessarily stable across runs)
c0dr[m] has left #nixos ["User left"]
<klaas_>
scratch that... it actually works... thanks very much!
<attente[m]>
is anyone using ycmd with the vim plugin youcompleteme?
vidbina has quit [Ping timeout: 272 seconds]
camsbury has quit [Remote host closed the connection]
camsbury- has quit [Remote host closed the connection]
<attente[m]>
i keep getting `2019-05-23 10:55:49,823 - ERROR - HTTPConnectionPool(host='127.0.0.1', port=32991): Max retries exceeded with url: /shutdown (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe1e87f1780>: Failed to establish a new connection: [Errno 111] Connection refused'))
<attente[m]>
2019-05-23 10:55:49,930 - ERROR - The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1. Type ':YcmToggleLogs ycmd_55479_stderr_mhc_t3k5.log' to check the logs.`
<infinisil>
nh2: You can `nix-instantiate --eval --read-write-mode -E 'builtins.path { name = "foo"; url = ./file; }'`
<gchristensen>
a Nix "strace" which uses scopedImport to (1) instrument all the builtins (2) overrides `import` specifically to wrap all the values inside it (recursively) with trace statements
<Taneb>
That sounds neat
fendor has quit [Quit: Leaving]
englishm has quit [Excess Flood]
englishm has joined #nixos
drakonis_ has joined #nixos
drakonis1 has joined #nixos
schjetne has quit [Ping timeout: 258 seconds]
<greenerworld[m]>
does anyone know what `unwrapped` versions of `libreoffice` do?
drakonis has quit [Ping timeout: 264 seconds]
greenerworld has joined #nixos
<infinisil>
nh2: Sounds good
<greenerworld>
does anyone know what the difference between `libreoffice-fresh-unwrapped` and `libreoffice-fresh`?
JulianWels has left #nixos [#nixos]
hhefesto has joined #nixos
Ariakenom has quit [Quit: Leaving]
<nh2>
Bu what mechanism can `callCabal2nix` run cabal2nix with Internet? I'd like to make a similar `callStack2nix`
<nh2>
*By
<clever>
nh2: callCabal2nix cant get internet access, your just giving it a storepath with everything it needed
<nh2>
clever: oh, then I must have misunderstood that.
erasmas has joined #nixos
klaas_ has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<gchristensen>
hyper_ch: I think the main difference is simple means once systemd started it, it is considered Active, and on oneshot, systemd considers it active once it exits
<ottidmes>
dminuoso: most of such packages have corresponding NixOS modules defining services that set up such directories
<qyliss^work>
You can't have multiple instances with NixOS modules though
<qyliss^work>
dminuoso: you could namespace by output path, if you can set the path at build time
<gchristensen>
the application's module could be set up to supporte multiple instances
<qyliss^work>
that too
<dminuoso>
qyliss^work: Can I get just the hash directly or do I have to extract it manually?
<exarkun>
Hi. First time trying stack on nixos, `stack new hello; cd hello; stack build` is failing: "error: attribute 'ghc865' missing, at (string):1:43"
<qyliss^work>
dminuoso: I would just use $out
<dminuoso>
qyliss^work: Mmm fair enough.
<hyper_ch>
gchristensen: added those two, rebuilt, remove the entries from configuration.nix and it still works :)
<gchristensen>
nice D:
<gchristensen>
:D
<hyper_ch>
when KDE was started, the wgs were already running
<ottidmes>
exarkun: this is just a guess, but it could be that you are using a version of NixOS that no longer has that particular version available, so you could e.g. pin to an older nixpkgs or point ghc865 to some other other existing ghc version (but that this is your problem is just a guess, it was for someone else, no longer remember if it was stack related though)
<gchristensen>
hyper_ch: it would be much much nicer if wg supported resolving at run time :(
acarrico has joined #nixos
<exarkun>
ottidmes: Thanks
<exarkun>
`nix search ghc` shows me there's a ghc package but I don't see the version. How do I see what version it is?
<pie_>
did it get reverted or something or just never ended up in main
<m0rphism>
The `nixos.libcap` attribute creates not only `libcap-VERSION` but also `libcap-VERSION-lib`, the latter containing the actual `.so` files. Is there a way to refer to the latter via an attribute?
<clever>
i'm probably mixing it up with something else
<ondrejs>
Hello. I installed program foo with nix-copy-closure and now I want to define a systemd unit which will start it, unfortunately pkgs.foo is missing in configuration.nix. What's a proper way to find its location (for ExecStart=$pkgs.foo/bin/foo) please?
ym555 has quit [Ping timeout: 258 seconds]
<m0rphism>
is there some reason why overriding `steam` with `extraPkgs = [ libcaps.lib ]` wouldn't make the `.so`-files from `libcap`'s `lib`-output visible to steam?
ThatDocsLady has joined #nixos
<m0rphism>
steamvr keeps complaining about missing `libcaps.so.2` while that file is present at `/nix/store/HASH-libcaps-VERSION-lib/lib/` :/
<ondrejs>
* I installed it with nix-env -i <hash>-foo-<version>
jabranham has joined #nixos
pie_ has quit [Ping timeout: 248 seconds]
<astal>
how i can override my derivation and use it? (through the overrideDerivation)?
<genesis>
ondrejs try with ? nix eval nixpkgs.foo.outPath/bin/foo
<ondrejs>
genesis: that has the same problem, unfortunately
<tilpner>
kuznero[m]: FF67 is now in 19.03 and unstable, if you have any workaround to remove
<kuznero[m]>
Super! Thanks!
m0rphism has quit [Quit: WeeChat 2.4]
Thra11 has joined #nixos
m0rphism has joined #nixos
<waleee>
FF67 was an annoying update, insisted on creating a new profile instead of using your old one
<m0rphism>
nvm, steamvr is the problem... I created a copy of `libcap/default.nix` which doesn't use multiple outputs but the `.so` file is still not found. Problem lies somewhere else...
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #61942 → gtk{2,3}-x11: build against pango with X11 support enabled → https://git.io/fjBqt
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjB8z
hmpffff has quit [Quit: nchrrrr…]
pie_ has joined #nixos
bsima has joined #nixos
<ambro718>
How does one nix-build a package with overrides?
<dminuoso>
Mmm, are there alternative ways of getting a sym link from my build to `/var/tmp` in such a fasion, that it survives nix-env?
<symphorien>
The easiest way is to write a file "foo.nix" containing:
<dminuoso>
I mean I could probably just encode it into the run script, but Id prefer it to happen at installPhase
<symphorien>
with import <nixpkgs> {} ; bar.override {...}
genesis has joined #nixos
<symphorien>
And running: nix-build foo.nix
<zeta_wolf>
i still haven't figured out the elisp to fix rcirc irc in emacs to get into other channels that require registration, so i have a quick question that is off topic: in nixos i just installed an emacs package called gitlab which is a client that interfaces between emacs and gitlab, i just need to paste two lines of code to get the package to work in emacs but i am not sure what is the `gitlab-token-id` and where to fi
knupfer has quit [Remote host closed the connection]
<marek>
I think both failures might be related to a problem on the builders
knupfer has joined #nixos
<gchristensen>
does it need an eval, or a rebuild?
<marek>
sorry, rebuild
zupo_ has joined #nixos
<gchristensen>
no worries :)
<marek>
yay, thank you
<DigitalKiwi>
how could I make an ssh key embedded in a live usb?
m0rphism has joined #nixos
zupo has quit [Ping timeout: 272 seconds]
hoijui has joined #nixos
<DigitalKiwi>
gchristensen: you'll never guess what problems i've been having for 3 days now ;_; (ok maybe you will since they're in that gist)
zupo has joined #nixos
<DigitalKiwi>
was with nixos-unstable channel. and then like an idiot i tried switching the channel to nixos-19.03 which did work... but then failed to boot since i created the zfs with nixos-unstable :'(
<gchristensen>
:|
<tilpner>
And you didn't have an old generation?
{^_^} has quit [Remote host closed the connection]
zupo_ has quit [Read error: Connection reset by peer]
<DigitalKiwi>
it was the http framing layer failed to decompress xz stufff
<gchristensen>
ehhh that happens ... periodically.usually just a retry addresses it
bsima has joined #nixos
<DigitalKiwi>
i lost track of how many times i retried
<DigitalKiwi>
it occasionally made progress and then it got to having the same error every time :/
<DigitalKiwi>
(probably over 10 times idk)
tput has joined #nixos
<DigitalKiwi>
like i said days
<ottidmes>
DigitalKiwi: to embed files in a live usb you can add files to the contents of it, isoImage.contents or isoImage.storeContents, besides that you could also include it in the initrd and copy it over to /mnt-root during postMountCommands
<DigitalKiwi>
ottidmes: ok thanks i'll try that
schjetne has quit [Ping timeout: 272 seconds]
<DigitalKiwi>
also how come when i install a de, say kde, it always seems not as well setup as the one on on the live usb (iirc it's been a while), is there an easy way to make sure the install works more like the live usb?
<dminuoso>
tilpner: So the only way would be to have the application set up such directories at runtime?
<tilpner>
dminuoso: The solution in NixOS for that are modules
<gchristensen>
I'd write up something a bit longer, like ... "wireguard: restart on failure\nAs a oneshot service, if the startup failed it would never be attempted again. This is problematic when peer's addresses require DNS. DNS may not be reliably available at the time wireguard starts. Converting this to a simple service with Restart and RestartAfter directives allows the service to be reattempted, but at the cost of losing the oneshot semantics."
bsima has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<hyper_ch>
gchristensen: why do you link me to docker?
<gchristensen>
the commit message
<hyper_ch>
ah :)
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @xrelkd to release-19.03 « youtube-dl: 2019.05.11 -> 2019.05.20 »: https://git.io/fjB4s
<hyper_ch>
still no book 7 of "A Song of Fire and Ice" with the real ending :)
<hyper_ch>
but it's a pretty long commit message :)
tarikogut has left #nixos [#nixos]
kisonecat has quit [Ping timeout: 258 seconds]
<kuznero[m]>
Hi All! Is it enough to add new package name to `top-level/all-packages.nix` to get it discoverable through `nix-shell -I $(pwd) -p new_package_name`?
<genesis>
hum what you're trying to achieve ?
<genesis>
i don't think you're doing well .
<kuznero[m]>
For some reason it keeps telling me that it cannot find that new package I am trying to introduce ;(
<genesis>
for assuming $pwd is your nixpkgs root dir ?
<kuznero[m]>
Yes, it is my custom nixpkgs. I have introduced a new package under `applications/office/new_package_name/default.nix` and just want to make it a top-level pacakge.
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<genesis>
nix-shell doesn't work like that
<genesis>
whwy not nix-env or nix-build ?
<kuznero[m]>
Will `nix-env -I $(pwd) -p new_package_name` work this way?
<genesis>
nix-env -f you_nix_path -iA yourpkgname
<kuznero[m]>
sec
<genesis>
or nix-build nixpkgs-path -A yourpackname
<dminuoso>
So I have an unrelated question. Im staring at so many examples of activationScript using lib.stringAfter, which lacks any documentation - why do people use this? What is this for?
<dminuoso>
How do people navigate nix like this?
<kuznero[m]>
I did, but a couple of year ago already ;) Will have to go through it again
<{^_^}>
[nixpkgs] @sjau opened pull request #61971 → wireguard: restart on failure\nAs a oneshot service, if the startup f… → https://git.io/fjB4c
<infinisil>
kuznero[m]: `nix-shell -I nixpkgs=$PWD -p new_package_name` should work too
<infinisil>
Of course `nix-build -A new_package_name` is simpler if you just want to build it though
<kuznero[m]>
Nice, interesting that all three have slightly different way of doing the same
<kuznero[m]>
But I am sure there is just logic I don't understand yet
<infinisil>
The thing most out of line is nix-shell with its -p flag
<genesis>
yes :') ; all that is a bit confusing sometimes.
<kuznero[m]>
`-p` is not an issue here for `nix-shell` as we are bringing package for a specific shell. But what I am puzzled about is how to reference custom nixpkgs `-I` `-f`, etc.
<infinisil>
Hmm right, nix-env's -f is also out of line
Anton-Latukha has joined #nixos
<kuznero[m]>
yep
<infinisil>
(Having to use -I for nix-shell follows from how nix-shell's -p works though)
<infinisil>
That is, `nix-shell -p foo bar` gets translated to `nix-shell -E 'with import <nixpkgs> {}; stdenv.mkDerivation { name = "shell"; buildInputs = [ foo bar ]; }'
mexisme_ has quit [Ping timeout: 268 seconds]
<infinisil>
So it always takes packages from <nixpkgs> from NIX_PATH, and the way to change that is via -I nixpkgs=/some/path
shibboleth has joined #nixos
domogled has quit [Remote host closed the connection]
<genesis>
i still didn't sucess to fix my ~/.config/nixpkgs/config.nix to get NIX_PATH working
<infinisil>
genesis: What's the problem?
<genesis>
i don't know, i'm tired, i will see that another day
<genesis>
i'm more interesting on nix crosspackage, but seems very far from what i'm used to.
schjetne has joined #nixos
<genesis>
btw , nixwrt seems to be a good start.
<hyper_ch>
gchristensen: pr created
<gchristensen>
hrm. where is {^_^}
<infinisil>
,ping
<{^_^}>
pong
<genesis>
lazy {^_^}
* gchristensen
adds that to the to-do list
<gchristensen>
that list is getting awfully long :x
knupfer has quit [Ping timeout: 252 seconds]
<genesis>
^^
domogled has joined #nixos
<hyper_ch>
printf "%s" "" > /path/to/todo.list
<gchristensen>
sounds good
<hyper_ch>
run that before adding my PR on your todo list :)
<hyper_ch>
so, I'm off too bed.. it's way too late already... gottag get up in 5h 45m
drakonis has quit [Read error: Connection reset by peer]
<simpson>
genesis: Dhall is a typed configuration language: https://github.com/dhall-lang/dhall-lang nixpkgs has a utility that allows importing Dhall configuration as if it were Nix.
<azazel>
what's the simpler way to transform a file containing "shell environment" values (one per line, key="value" or key=value) and transform it into a attribute set?
<genesis>
th simpson , i missed the nix utility, i guess that why cachix use it
Ariakenom has quit [Quit: Leaving]
<genesis>
dhallToNix
<infinisil>
ZFS 0.8.0 \o/
<infinisil>
The waiting is over!
<genesis>
xfs for ever.
gxt has quit [Quit: WeeChat 2.4]
<cransom>
wooooooo.
<pie_>
infinisil, cool, whats new
<pie_>
besides maybe less data loss ;P
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @veprbl merged pull request #60877 → nukeReferences: fix for store paths with special characters → https://git.io/fjBBf
<{^_^}>
[nixpkgs] @veprbl pushed commit from @jonringer to master « vscode-extensions.formulahendry.auto-close-tag: init at 0.5.6 (#60405) »: https://git.io/fjBBU
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
toppler`` has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @AmineChikhaoui opened pull request #61974 → RFC: introduce a patches file in <pkg>/nix-support/ → https://git.io/fjBBT
drakonis_ has joined #nixos
<pie_>
hm
<infinisil>
In addition to native encryption, device removal seems pretty major too :o
selfsymmetric-pa has joined #nixos
toppler`` has joined #nixos
<pie_>
zfs does look verz complicated
drakonis has quit [Ping timeout: 250 seconds]
<pie_>
this stuff better have unit and integration tests to hell and back
<pie_>
infinisil, looks cool tho
<dminuoso>
So now I have a .nix containing a lambda that produces a derivation, but its parametrized over config and pkgs. Together I also produced a module, now how do I build that package in such a way, that it feeds the lambda with the config and pkg from my nixos?
<dminuoso>
(The module seemed to have been just a matter of importing it into my configuration.nix module)
<pie_>
are you feeding it to your configuration.nix or are you just doing a normal build
<dminuoso>
pie_: Im feeding it to my configuration.nix
<pie_>
i guessss you just put it in systempackages or wherever
<pie_>
maybe you have to callpackage it yourself
<pie_>
i cant remember, been digging too much in builds, barely doing any system config
<dminuoso>
pie_: Oh, you mean I'd just import the derivation and throw it in there? sort of like `let foo = import 'foo.nix' {}; ... environment.systemPackages = [ foo ];` ?
<pie_>
or just pkgs.callpackage (does that get config though?)
<dminuoso>
Interesting. Can I do this via nix-env as well?
<pie_>
well, since infinisil said " inherit (pkgs) config;" is possible, i figure you can just callpackage it
<dminuoso>
That is, can I take `nix-env` and have it feed the derivation with pkg and config?
<dminuoso>
Or do I have to go the configuration.nix route?
<infinisil>
Ah yup, callPackage would be simpler
<dminuoso>
infinisil, pie_: Regarding callPackage, it seems clear how to do it that way. Cheers.
<pie_>
dminuoso, my knee-jerk guess would be only things running as root have access to config (config contains stuff like user configuration and secrets and stuff right?)
wfranzini has quit [Remote host closed the connection]
<infinisil>
Like this?
<dminuoso>
infinisil: I guess systemPackages it is. :)
o1lo01ol1o has quit [Remote host closed the connection]
Thra11 has quit [Ping timeout: 268 seconds]
drakonis has joined #nixos
<pie_>
actually...im really not sure about the access to config thing. because the whole deal is you dont want seccrets in your config because it ends up in the store or somethng
<infinisil>
Note that I'm assuming you mean the pkgs.config value, which is very different from the config you get in NixOS modules
<pie_>
i was assuming the latter
tput has quit [Ping timeout: 244 seconds]
<dminuoso>
infinisil: Oh no, Im actually talking about the config from NixOS modules
<infinisil>
Can you show the file?
<dminuoso>
infinisil: which one?
<infinisil>
The file you've been talking about this whole time
<infinisil>
dminuoso: You *could* pass in the config from NixOS there, but this is not very nice, because you're mixing things
<infinisil>
dminuoso: I recommend taking a separate argument for each NixOS option that can influence the build
BL4NK_UNK0WN has quit [Remote host closed the connection]
<infinisil>
So `{ pkgs, unstable, abisHost, statePath }`
<dminuoso>
infinisil: I suppose part of the reason is that it would rebuild the package every time the config attribute set is changed, even if it didnt influence the abis package?
<infinisil>
dminuoso: No that wouldn't happen, the derivation would only have to be rebuilt if the options it depends on change
<infinisil>
But it's just cleaner to have package definitions on one layer, and NixOS above that
<infinisil>
Instead of NixOS depending on packages, but packages also depending on NixOS
Yakulu has left #nixos ["Error from remote client"]
<dminuoso>
infinisil: I suppose I could directly depend on some abisConfig, which is that inner most set.
<azazel>
so, no one has any shortcut on how to parse a file filled with bash variables definitions?
<dminuoso>
Would this be acceptable too?
<azazel>
unbelivable
<infinisil>
dminuoso: Yeah that wouldn't be too bad
mexisme_ has joined #nixos
<infinisil>
I mean, it'll work either way, but in nixpkgs you won't be able to have `config` as an argument to a package
<infinisil>
s/won't/wouldn't
<dminuoso>
infinisil: I see.
<dminuoso>
infinisil: So this makes it easier and semantically cleaner to use the package outside nixos I guess.
kisonecat has joined #nixos
<infinisil>
Yeah
<dminuoso>
infinisil: So I guess at that point, if I want it loaded into nixos, the cleanest way would still be via systemPackages (passing the config set to the import)?
ddellacosta has joined #nixos
<infinisil>
If you have `{ pkgs ? ..., unstable ? ..., abisHost ? "192....", statePath ? "/var/abis/state" }:` you'll even be able to build the package and change those values with `nix-build --argstr abisHost 10.125.52.67`
domogled has quit [Ping timeout: 258 seconds]
<dminuoso>
infinisil: Oh interesting, I could have a nixos default and a nix default - obviously. It just didn't occur to me to do it like that.
<infinisil>
Or `import ./file.nix { abiConfig = config.programs.abis; }` if you want to pass in the whole set (but note that NixOS adds a `_module` attribute to option set values)
<dminuoso>
infinisil: Ah good to know. Your input has been very helpful, thank you.
<infinisil>
Np :)
<dminuoso>
Also thank you pie_!
<dminuoso>
infinisil: One last thing, is there a sort of "local" channel that references a file system?
<dminuoso>
Such that I dont have to place my program nix file near the modules
Matthieu_ has joined #nixos
<infinisil>
dminuoso: overlays can be used for this
<infinisil>
dminuoso: Put `self: super: { foo = super.callPackage ...; }` into ~/.config/nixpkgs/overlays/foo.nix
<infinisil>
Ah, although this wouldn't make it available for NixOS :/
<infinisil>
dminuoso: I guess you could do this: `{ config, ... }: { nixpkgs.overlays = [ (self: super: { foo = super.callPackage ./file.nix { inherit (config.programs.foo) bar baz; }; }) ]; }`
Musk_Nakamoto has quit [Read error: Connection reset by peer]
<infinisil>
Then you have `foo` available in `pkgs.foo` in all modules
<pie_>
id guess theyd be equivalent if the operation your were folding was commutative
<pie_>
(after a bit more thought)
<pie_>
ah well idk, im tired, gnight o/
<dminuoso>
Good night \o
<{^_^}>
[nixpkgs] @suhr opened pull request #61976 → kvirc: init at 5.0.0 → https://git.io/fjBBj
<dminuoso>
infinisil: Though.. at that point I might as well just import the nix file directly.
<dminuoso>
(I mean as amusing as the idea is, of creating an overlay and reusing it in the same module)
<dminuoso>
Unless I grossly misunderstood what you meant by that.
<infinisil>
dminuoso: With above you'll have separated the definition of the package from it's usesite
Matthieu_ has quit [Ping timeout: 272 seconds]
<dminuoso>
infinisil: Wouldn't the same hold true for some `abis = import ./file.nix { inherit (config.programs.abis) bar baz }` ?
<infinisil>
So you could e.g. have a `/etc/nixos/pkgs` directory where you put file.nix, and put above expression in `/etc/nixos/pkgs/module.nix`, and import that file in your configuration.nix
<dminuoso>
Mmm
<dminuoso>
Oh that's not too shabby, actually
<infinisil>
And you could have 100 different files in different folders that use pkgs.foo
Musk_Satoshi has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
Soo_Slow has quit [Remote host closed the connection]
<infinisil>
Well maybe that's not needed though, because you probably only use the package from the module
<infinisil>
In any case there's lots of options how you could structure that
tbenst has quit [Remote host closed the connection]
tbenst has joined #nixos
azdle has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @kuznero opened pull request #61977 → vnote: init at 2.5 → https://git.io/fjBRL
<{^_^}>
[nixpkgs] @laMudri opened pull request #61978 → ibus-engines.table: fix after update of settings infrastructure → https://git.io/fjBRY
drakonis1 has joined #nixos
drakonis_ has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @kuznero opened pull request #61979 → vnote: init at 2.5 → https://git.io/fjBRs
<colemickens>
Is there an endorsed way of implementing plugins in nixos?
<colemickens>
Or rather of supporting plugins for applications?
<colemickens>
OBS plugins require some manual setup, but I've seen other things drop into /run/current-system/sw/share/x-plugins for example
<genesis>
why it would be different that packaging plugin as application ?
<glasserc>
How do I get access, within a derivation, to its output path? I'm patching an application's hardcoded path to a .glade file that the application ships
<genesis>
glasserc : outpath of the apps you're writing ?
<glasserc>
Is $out a complete and forever path? I thought it was only valid during a build
<genesis>
hum $out would be same since the derivation is same ?
<genesis>
since hash-name is based on derivation, if i understand
<glasserc>
Ah, I guess I didn't understand $out, thanks
<infinisil>
Yeah $out is the final path of the derivation
<genesis>
and since you're in the buildphase, whatever.
<{^_^}>
[nixpkgs] @andir opened pull request #61980 → firefox-wrapper: stop creating new profiles when the binary path changes → https://git.io/fjBRZ
<glasserc>
So how does Nix avoid having incompletely build derivations in the store?
<glasserc>
Like, if my build fails halfway through, does it have to clean up?
<genesis>
it won't be in nix store
<genesis>
since it build in /tmp/nix-*
<infinisil>
Hmm good question, I think it has to clean up, but I haven't checked
<infinisil>
genesis: That's just the build directory though, $out is different
<genesis>
ho means it creates $out but won't be populated and be keep ?
erasmas has quit [Quit: leaving]
<glasserc>
That's my question too
<glasserc>
Because I've seen derivations touch files in $out
<clever>
any lingering $out's will be marked as invalid, and nix-collect-garbage will delete them first
<glasserc>
Ah, very cool, thanks
<clever>
and if one is in the way at the start of a build, its cleaned up first
kisonecat has quit [Ping timeout: 246 seconds]
<genesis>
yes it's never a pb.
<azazel>
I sometimes wonder if there is better way to write expressions (one that allows to avoid parenthesis) when "chaining" function calls i.e. splitString " " (first (builtins.match "(fooo)" (readFile ../bar)))
<clever>
`nix-collect-garbage --max-freed 1g` will limit how much it deletes, so valid (but un-rooted) things can survive
<infinisil>
> :v hackyCompose
<{^_^}>
hackyCompose = hackyCompose is not defined
<infinisil>
> :v composeHack
<{^_^}>
composeHack = a: if lib.isFunction a then b: if lib.isFunction b then composeHack (x: a (b x)) else a b else a
wfranzini has quit [Remote host closed the connection]
<infinisil>
> composeHack (x: x + 1) (x: x * 2) 10
<{^_^}>
21
<infinisil>
azazel: ^^
wfranzini has joined #nixos
<azazel>
infinisil: thanks...mmm.. terse!
<kuznero[m]>
> [nixpkgs] @kuznero opened pull request #61979 → vnote: init at 2.5 → https://git.io/fjBRs
<{^_^}>
error: syntax error, unexpected '@', expecting ')', at (string):254:11
<kuznero[m]>
Please review a very nice markdown based note taking app written in c++ and qt. Very simple package.
<infinisil>
Or a not-hacky version would take the functions in a list
<azazel>
ah, and compose like a pipe operator ..?
<infinisil>
Hm no, `compose [(x: x + 1) (x: x * 2)] 10`
Matthieu_ has joined #nixos
<infinisil>
The composeHack thing is basically the same, but it gets this list by taking as many function arguments as possible. The first non-function argument tells it that the list is finished :P
<genesis>
kuznero[m] : i wonder if nix doesn't mkdir build/
<genesis>
you would avoid your configurePhase, have you test ?
<kuznero[m]>
I wouldn't suspect so, but not sure
<kuznero[m]>
But yes, by installing with nix-env
<genesis>
kuznero[m] : you copy to hicolor, you don't have hicolor theme as dependancies, i see this often
das_j has quit [Quit: "Bye!";]
rfold has quit [Quit: WeeChat 2.4]
<genesis>
what others think to force user to have hicolor theme in the dependancies in this case?
<kuznero[m]>
I see, could you please leave the comment on pr?
das_j has joined #nixos
<kuznero[m]>
Qt, but that shouldn't force that
<genesis>
i could but i've to sleep
<kuznero[m]>
Ok, will fix it tomorrow
<genesis>
so not this night, rendezvous tommorow 8H30 o'clock
<kuznero[m]>
Otherwise, looks good?
<genesis>
i've some issue
<genesis>
homepage "" your uri
<genesis>
qt5.full , i don't think you need the full package
<kuznero[m]>
Ok, will fix. It needs a lot of qt really
<genesis>
i could be, you told me it's an note app, i wonders :)
<kuznero[m]>
I finally found something close to OneNote on windows. So far that is the best from open source. For now
<genesis>
seems good yes
<infinisil>
Ah neat, I have a friend who still uses Windows exclusively for OneNote
<kuznero[m]>
And hopefully vnote can solve it for me too
Anton-Latukha has quit [Quit: Leaving.]
<genesis>
i've a try
<genesis>
shame nix-review is crazy overbloated on my hw
<colemickens>
I have a package definition that I had in my local nixpkgs copy. I moved it into my overlay and now when I try to build that specific package, I get: "warning: connection security to hg.sr.ht is disabled per current settings; communication is susceptible to eaves
<genesis>
i like to eliminate gtk apps one by one :)
<kuznero[m]>
:-)
<genesis>
last new thing from lxqt : lxqt-archiver , neat replacement to file-roller.
<genesis>
this DE is improving well since years i use it
<colemickens>
what is the magic that allows ~/.nix-profile/share to be populated with certain things that don't appear in /nix/var/nix/profiles/.../sw/share ?
_ris has joined #nixos
<infinisil>
colemickens: ~/.nix-profile is literally just a symlink to /nix/var/nix/profiles/per-user/$USER/profile
<infinisil>
So ~/.nix-profile/share must be the same as /nix/var/nix/profiles/per-user/$USER/profile/share
<infinisil>
Unless you have something weird going on!
<colemickens>
infinisil: I have a package, `wlrobs` that has `$(out)/share/obs/obs-plugins/wlrobs` it's available under that path
<colemickens>
this is in contrast to if the package is in `environment.systemPackages`, and then it does NOT appear in the current-system profile's /share... path
freeman42x has quit [Ping timeout: 258 seconds]
<infinisil>
colemickens: Ah, what gets linked in the end depends on environment.pathsToLink
<colemickens>
yeah, right, vim-plugins :)
<colemickens>
so there are different paths linked for user/sys profiles, or?
<infinisil>
Yeah I think so
<infinisil>
Not sure how nix-env decides that
<infinisil>
Maybe it links everything?
* infinisil
checks the source
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #61981 → nixos: Don't set LD_LIBRARY_PATH for graphics drivers that don't need it. → https://git.io/fjB0f
wfranzini has quit [Remote host closed the connection]