toraritte has quit [Remote host closed the connection]
<risson>
ugh, my zfs pool decided to die
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJ9K3
kalbasit_ has quit [Ping timeout: 256 seconds]
tilcreator has quit [Ping timeout: 265 seconds]
torarittex has quit [Read error: Connection reset by peer]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
abathur has joined #nixos
<_habnabit>
so.. /nix/var/nix/profiles/ has system-1-link through system-11-link in it. it's using up a ton of space that way haha. what command is supposed to manage those? nix-env seems to manage e.g. /nix/var/nix/profiles/per-user/habnabit/
<clever>
_habnabit: something has changed since boot (but not nixpkgs), so you still have 2 profiles rooted, but they likely share a lot
<_habnabit>
hmm ok
<clever>
_habnabit: next up, find a random fat thing in /nix/store (ncdu -x /nix/store), and then run `nix-store --query --roots` on it, to find out why its rooted
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<_habnabit>
huh, gnupg is in there twice
<clever>
_habnabit: run --query --roots on both versions, how do the roots differ?
<_habnabit>
ahh, that's booted system vs. current system
<_habnabit>
guess i'll reboot and re-gc
<clever>
yep
mmmattyx has quit [Quit: Connection closed for inactivity]
<clever>
_habnabit: /nix is part of /, so you have stuff outside the store, sudo ncdu -x /
<_habnabit>
OH right. i forgot i made a 4G swapfile on this system. that would do it!
emacsomancer has quit [Ping timeout: 260 seconds]
sigmundv has quit [Ping timeout: 256 seconds]
Rusty1 has joined #nixos
emacsomancer has joined #nixos
<moet>
clever: yeah, i was playing at maybe running nixops without running the manual installation steps first
h0m1 has quit [Ping timeout: 246 seconds]
<moet>
but i guess i can't do that
<clever>
moet: yeah, it wont work right, because nixops expects the state in / to persist, and be the final system
<clever>
moet: the issue i linked is how to install remotely, and make the very first generating be what nixops made, so you can skip that dummy generation
<moet>
oh, that's pretty close to what i wanted!
<moet>
thank you
nixbitcoin_ has joined #nixos
<_habnabit>
and is there a way to easily mount the rootfs readonly? whether that means rebooting or something i can do online
<clever>
veleiro: line 12 points to a static path, so you dont have to keep relogging, and then line 16 sets up that path to point to a copy of nixpkgs
<alienpirate5>
can someone help me with my transmission issue please
<veleiro>
ahh yes, thanks clever!
<veleiro>
i needed a visual example
<boomer[m]>
Omg
<alienpirate5>
after the recent transmission bump and hardening i have experienced an issue
<boomer[m]>
Discord owner
<alienpirate5>
about three months ago my transmission data directory got seemingly wiped
<alienpirate5>
boomer: what?
<boomer[m]>
Nothing
<DigitalKiwi>
does switching from nouveau to nvidia require a reboot or merely display-manager.service restart
<alienpirate5>
anyway, after upgrading my channels to the most recent nixos-unstable-small, my data directories have returned to the state they were in May
<clever>
the nixos-config bit is where it deviates from `gcc -I`, that maps <nixos-config> to /src/configuration.nix
<veleiro>
well the part after ":" plus nixpkgs being defined as well throws me off
<veleiro>
in '/nix/var/nix/profiles/per-user/root/channels I do see a manifest.nix though
<clever>
because its a normal nix-env profile, and manifest.nix allows nix-env -i usage
<veleiro>
damn i forget about nix-env
<clever>
when you `nix-channel --update nixos`, it will do something like `nix-env -i -E .... --profile /nix/var/nix/profiles/per-user/root/channels` to "install" a thing called "nixos" to the profile
<moet>
clever: how do i get nixops to generate without copying? deploy attempts a copy & doesn't necessarily print out the path i need to copy to the target store
<moet>
clever: or a better question, how do i get nixops to just print out the name of the configuration
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JJ9M0
<moet>
nixops dump-nix-paths ..?
<moet>
that /seems/ right ..ish.. i guess the symlink contained within is the correct one
cjpbirkbeck has quit [Ping timeout: 246 seconds]
davidrusu has joined #nixos
justanotheruser has quit [Ping timeout: 244 seconds]
zangi has quit [Ping timeout: 265 seconds]
jumper149 has quit [Quit: WeeChat 2.9]
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #95301 → geos: fix build on 32-bit ARM → https://git.io/JJ9Df
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<davidrusu>
Hello! I'm trying to package up ompl: https://ompl.kavrakilab.org/ and I'm running into an issue with generating python bindings to the c++ library. The OMPL folks rely on a tool called castxml to turn c++ source code into an XML tree which they then parse to produce their python bindings. Anyways, long story short is that castxml is relying on
<davidrusu>
LLVM libraries to parse the c++ code, I'm running into an issue where some low level c/c++ libraries are not getting included or linked properly.
<kini>
siraben: not sure, but what's the full command you're running to start `nix-shell`? also have you tried opening a new terminal and trying to reproduce it there? also by delete do you mean actual delete or backspace? Does $TERM show something different inside and outside the nix-shell? What happens if you run the `reset` command inside the nix-shell and try again? Does the output of `stty -a` look different inside and outside the nix-shell?
<joko>
Hey, does anyone know if Hydra supports GitHub PRs on flake-based repositories? E.g., I make a PR and Hydra evaluates it, too.
gthm has joined #nixos
<cinimod>
I have mkShell {
<cinimod>
physicell
<cinimod>
buildInputs = [
<cinimod>
imagemagick
<cinimod>
xquartz
<cinimod>
python3
<cinimod>
];
<cinimod>
Sorry
<cinimod>
But I get [nix-shell:~/PhysiCellTest]$ display logo.gif display: unable to open X server `foobar` @ error/display.c/DisplayImageCommand/410.
eoli3n has joined #nixos
davidrusu has quit [Ping timeout: 245 seconds]
<cinimod>
I am on macos btw not nixos
<immae>
do you have something in DISPLAY environment variable? (not sure it’s the same on macos, I hope it’s not too far from linux)
o1lo01ol_ has quit [Remote host closed the connection]
mikeplus64 has joined #nixos
<mikeplus64>
anyone use crate2nix here?
<cinimod>
immae: I tried export DISPLAY=:0 but I think the main problem is starting an X server
<cinimod>
[nix-shell:~/PhysiCellTest]$ startx /nix/store/bybd1c51gvn09l8cm1hraxgbgggxgs9n-xquartz-1.18.4/bin/startx: line 60: /nix/store/bybd1c51gvn09l8cm1hraxgbgggxgs9n-xquartz-1.18.4/lib/X11/xinit/privileged_startx: No such file or directory
<mikeplus64>
anyway, i am hit by this https://github.com/kolloch/crate2nix/issues/133 issue and want to use the workaround of "[setting] cargo_web = false" ... but i have no idea where to set that
<kini>
I don't have a mac but I've seen my mac-using colleagues use this. It looks kind of dead though since the last release was in 2016, but maybe it still works
<energizer>
maybe xvfb
alp has quit [Ping timeout: 272 seconds]
dansho has joined #nixos
<cinimod>
kini immae: I installed xquartz via `brew cask` and set `export DISPLAY=:0` and now I have an image
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
proofofkeags has joined #nixos
<cinimod>
Of course it would be nicer to have to use brew
<{^_^}>
[nixpkgs] @primeos pushed commit from @zowoq to master « lf: use buildFlagsArray (#95219) »: https://git.io/JJH4c
<immae>
cinimod: There seem to be a bug in the xquartz provided by nixpks but without a mac I can only guess from the derivation: The privileged_startx is in $out/lib/X11/xinit/privileged_startx.d/privileged instead of $out/lib/X11/xinit/privileged_startx
<Cadey>
...huh that file does look syntactically wrong
<Mic92>
This looks also wrong to me
<Cadey>
how do i override protections and edit it manually?
smatting_ has quit [Ping timeout: 272 seconds]
sputny has quit [Quit: sputny]
<Mic92>
for a quick fix:
<Mic92>
mount -o rw,remount /nix/store
<Mic92>
And than we should fix this in nixpkgs itself
<Mic92>
if it is still there
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Cadey>
it's still there
<Cadey>
i'm opening it in vim as root and writing the file with w!
<Mic92>
chmod +w
lordcirth__ has quit [Ping timeout: 244 seconds]
<Cadey>
that seemed to fix it
<Mic92>
If I checkout the very same commit it is correct
<Mic92>
so your channel is broken somehow
<Cadey>
i'm gonna go do some hardware tests. thanks for helping me figure this out!
lsix has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
icefrost_ has quit [Ping timeout: 260 seconds]
<karetsu>
is transmission 'broken' in some way on nixos-unstable? it seems to be picking only small parts of my settings = {}; block but not others
<karetsu>
and refuses to connect to anything
zupo has quit [Ping timeout: 246 seconds]
sangoma has quit [Ping timeout: 264 seconds]
<Mic92>
karetsu: are spreading settings = {} over many files?
<karetsu>
nope, just one
<Mic92>
because it's type.attrs and that does not deep merge properly
<Mic92>
I have a different type in home-assistant for that reason
Thra11 has quit [Quit: WeeChat 2.8]
<karetsu>
I have my entire config spread across multiple files, but unless its a breaking change when nix itself got an update it has worked for months previously
<Mic92>
karetsu: in any case you can debug things like that with nix repl
sangoma has joined #nixos
<Mic92>
karetsu: that is fine, just settings = {} must be in the same file.
<karetsu>
so in the repl its showing my settings, but in the application itself so much of it is unset, all of the config in my ~/.config/transmission-daemon looks correct but when the service starts its ignoring it (I have it set to run as my user so the path is correct)
<cosarara>
hi there! I'm trying to install otb bitmap fonts on my new nixos system but I'm having trouble. I'm looking at https://github.com/NixOS/nixpkgs/issues/75160 which I see is too new an effort for 20.03, so I tried to get terminus and dina from the unstable channel, but I'm doing something wrong. This is my config https://p.teknik.io/zFd6C
<{^_^}>
#75160 (by rnhmjoj, 35 weeks ago, open): fonts: provide opentype files for X11 bitmap fonts
<cosarara>
you'll see I set unstable.dina and unstable.terminus_font in fonts.fonts
<cosarara>
but after a rebuild, I still have only pcf files
zupo has joined #nixos
<infinisil>
mariatsji: Yes, the network is not available in derivations, unless it's a fixed-output derivation
schlumpp[m] has joined #nixos
lsix has joined #nixos
zupo has quit [Ping timeout: 240 seconds]
cosimone has joined #nixos
rardiol has quit [Ping timeout: 240 seconds]
philr has quit [Ping timeout: 256 seconds]
cosimone has quit [Remote host closed the connection]
<karetsu>
should my default group be 'users' rather than a group matching my username? trying to figure out what the permissions on ~ should be and the group on *everything* is users
<seanparsons>
Does `nixos-rebuild` also build the old configuration as well as the new one? I've just removed something which used to depend on ghc864 from my config and now `nixos-rebuild switch` complains about `ghc864` not existing.
<seanparsons>
With that complaint pointing at the source code in nix for the thing that I removed.
<infinisil>
seanparsons: No, nixos-rebuild doesn't build old configs
<turion>
I'm trying to make a shell.nix where I override some haskell packages with newer versions that I just released to hackage very recently. I can't use callHackage for that, right?
andymandias has quit [Ping timeout: 272 seconds]
gustavderdrache has quit [Ping timeout: 256 seconds]
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
est has joined #nixos
<{^_^}>
[nixpkgs] @danieldk opened pull request #95336 → nixos/manual: add a section about common GPU acceleration issues → https://git.io/JJHDy
<infinisil>
turion: You can use callHackage if your nixpkgs version is from after the package was updated on hackage (more or less)
<infinisil>
turion: If it's not though, you can still use callHackageDirect in any case
wolfshappen has quit [Ping timeout: 240 seconds]
est31 has quit [Ping timeout: 240 seconds]
alp has joined #nixos
<turion>
infinisil: callHackageDirect sounds just like the thing I need, thanks!
<turion>
infinisil++
<{^_^}>
infinisil's karma got increased to like 332, I think
wolfshappen has joined #nixos
sangoma has joined #nixos
<seanparsons>
infinisil: The complaint I'm seeing is about the attribute `activationScript`, which makes me think it does...for that so that it can determine what needs adding/removing from things like systemd? *handwaving intensifies*
<seanparsons>
It's definitely digging down into stuff that isn't referenced anymore as adding `--show-trace` is flagging it up clearly.
<infinisil>
Ke: I think both get enabled, but I don't think this is an intended use case
<infinisil>
I guess unless you have different boot disks for the different loaders
<seanparsons>
infinisil: It appears to be because I had a `config.packageOverrides` adding something to `pkgs.haskell.packages.ghc864` if I try to add a different package I've built and that override isn't referenced anymore, somehow it's rematerialising.
<seanparsons>
Oh and that's with it not even being referenced from the current generation, merely the process of adding a new haskell based package causes this issue to occur.
rardiol has joined #nixos
acarrico has joined #nixos
<infinisil>
seanparsons: I need error, logs, code, etc. to help
<infinisil>
There's only ghc844, ghc865, and some others
Arahael has quit [Ping timeout: 240 seconds]
knupfer has quit [Remote host closed the connection]
<infinisil>
seanparsons: And if you're wondering why podcast-chooser is evaluated at all because you think it shouldn't, then I also need the file you include release.nix from to help
knupfer has joined #nixos
<infinisil>
Or the command you use to evaluate release.nix
Arahael has joined #nixos
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
Profpatsch has left #nixos ["WeeChat 2.8"]
<{^_^}>
[nixpkgs] @DIzFer opened pull request #95340 → targetcli: build with python3 → https://git.io/JJHHt
<Ke>
infinisil: there is no reason that would not work, though mine just does not
mariatsji has joined #nixos
Darkmatter66_ has joined #nixos
zebrag has quit [Ping timeout: 240 seconds]
zebrag has joined #nixos
Darkmatter66 has quit [Ping timeout: 265 seconds]
mariatsji has quit [Remote host closed the connection]
<infinisil>
seanparsons: Ah, maybe you are looking to pin your nixpkgs. Because currently you're doing `import <nixpkgs>` which just uses the nixpkgs you happen to have in NIX_PATH, which could be different for everybody
Guest78268 has quit [Quit: WeeChat 2.7.1]
<infinisil>
By pinning nixpkgs you can use a specific nixpkgs directly in the nix expression
<seanparsons>
Have done that previously, but now this `podcast-chooser` package is completely unused, which is why this is confusing.
<infinisil>
seanparsons: Then again, what do you mean by unused, it's unused where?
<infinisil>
You just linked to the project itself, but not where you're including it (your configuration.nix perhaps?)
<seanparsons>
infinisil: It's not referenced in `systemPackages` and the package and source definitions in my config are commented out.
eoli3n has quit [Ping timeout: 246 seconds]
<Ke>
bios can boot from auxiliary partition with blocklist and EFI can boot the normal way
<infinisil>
Well Nix doesn't evaluate anything that's not used
<infinisil>
seanparsons: Maybe put a `podcast-chooser = throw "Nope"` in there and evaluate with `--show-trace`, then you can see where it's included from somewhat
stephaneyfx has joined #nixos
<flythief>
hi, my locale has errors. when I run `locale` , I get this: locale: Cannot set LC_CTYPE to default locale: No such file or directory (same for LC_MESSAGES, LC_ALL)
<flythief>
LC_NUMERIC="mn_CN.UTF-8"
<flythief>
LC_CTYPE="mn_CN.UTF-8"
<flythief>
locale: LANG=mn_CN.UTF-8
<{^_^}>
[nixpkgs] @flokli opened pull request #95342 → nixos/systemd: don't try to install systemd-initctl.{service,socket} → https://git.io/JJHN5
<flythief>
I try to set LC_CTYPE to zh_CN.UTF-8 in configuration.nix. Can someone give me some guide? thanks :)
<{^_^}>
[nixpkgs] @vcunat pushed to master « rtlwifi_new: switch fetchFromGitHub to a working repo »: https://git.io/JJHNd
<{^_^}>
[nix] @Ericson2314 opened pull request #3928 → Use `TeeSink` and `TeeSouce` in a few more places → https://git.io/JJHNb
<{^_^}>
[nixpkgs] @vcunat pushed to release-20.03 « rtlwifi_new: switch fetchFromGitHub to a working repo »: https://git.io/JJHNx
<ramses_>
Hey guys, is it possible to have fetchFromGithub pull a package from github using SSH instead of HTTPS?
<infinisil>
seanparsons: task repo is private, can't see code
<infinisil>
Oh it's not relevant, never mind
<seanparsons>
infinisil: Made public either way just to prove there's no nonsense in there. :)
<infinisil>
seanparsons: So I'm pretty sure you must include podcast-chooser from elsewhere in your config
<flythief>
well, I find that my kde setting's region is mn_CN, I change it to zh_CN, now it's good.
<infinisil>
seanparsons: Assuming you have a standard nixpkgs from a channel, nixos-rebuild doesn't evaluate anything other than what you specify in your NixOS config
invokesus has joined #nixos
cosarara has left #nixos ["WeeChat 2.3"]
turion has joined #nixos
<Ke>
seabios absolutely does
<seanparsons>
infinisil: I just ran `ag pod` in /etc/nixos and only see reference to what's in that common.nix file.
<seanparsons>
Usual 20.03 channel according to `nix-channel --list`.
<infinisil>
seanparsons: Run nixos-rebuild with -v to see all Nix files it evaluates
<infinisil>
podcast-chooser should be referenced in one of them
<seanparsons>
Oh lord that's a lot of files.
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
<infinisil>
Can ignore all the ones from nixpkgs
<FireFly>
ooh that's a good flag to be aware of
fendor has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<{^_^}>
[nix] @edolstra merged pull request #3928 → Use `TeeSink` and `TeeSouce` in a few more places → https://git.io/JJHNb
<infinisil>
seanparsons: Well, the --show-trace shows that /nix/store/yx2lbnddcwv01q9f5jjb02fc5w7ylij3-source/release.nix was evaluated
<infinisil>
Which is your podcast-chooser source
zupo has joined #nixos
<infinisil>
And should definitely contain the podcast word in it
<infinisil>
You sure this wasn't part of the list of evaluated files with -v?
<seanparsons>
infinisil: Yeah, just confirmed it wasn't part of the output as I have both the original output and the list of files that I used in that gist output.
<symphorien[m]>
iwq builtins.typeOf
<iwq>
perfect! Thank you
erasmas has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
zupo has quit [Ping timeout: 265 seconds]
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
<seanparsons>
infinisil: Plot twist, it is included if I uncomment the reference to my task project in systemPackages.
knupfer has joined #nixos
<iwq>
im guessing there is no way to get the return type of a function? i would like to check if the return type is a set before i call it
knupfer has quit [Client Quit]
knupfer has joined #nixos
waleee-cl has joined #nixos
<symphorien[m]>
you can't because it could depend on the input, or even be random
<infinisil>
seanparsons: The list of files it evaluates is in the order it needs them, so you might be able to infer what needs it from the files prior to it
growpotkin has joined #nixos
emptyflask has joined #nixos
<seanparsons>
infinisil: Immediately before it appears to be all the things in `systemPackages`, this is feeling more and more like a proper bug of some kind.
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
wolfshappen has quit [Ping timeout: 240 seconds]
wolfshappen has joined #nixos
* infinisil
doubts it
ramses_ has quit [Ping timeout: 265 seconds]
<numkem>
seems like on unstable-small `gjs` isn't compiling anymore
noudle has joined #nixos
fresheyeball has quit [Ping timeout: 246 seconds]
fresheyeball has joined #nixos
nature has joined #nixos
<nature>
Hi, how can I add a plugin to vim that is not in the vimPlugins package ?
<Mic92>
nature: out-of-tree or as part of nixpkgs?
wolfshappen has quit [Ping timeout: 256 seconds]
<nature>
out-of-tree (if it means not in the nixpkgs)
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @r-ryantm to master « bazel-kazel: 0.0.10 -> 0.0.11 (#95026) »: https://git.io/JJQ1e
<drakonis>
hmm, i need to deploy laravel on nginx and i dont think i get how to make it work
knupfer has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @jonringer opened pull request #95352 → python3Packages.pybfd: remove due to prolonged breakage → https://git.io/JJQQm
freezeboy has joined #nixos
<nature>
Can I "import" multiple attribute in the namespace with the "with" keywords ? let's say something like: `with pkgs.vimPlugins, pkgs.vimUtils;` ?
<freezeboy>
just write two with
<clever>
nature: with pkgs.vimPluguns; with pkgs.vimUtils;
urkk has joined #nixos
invokesus has quit [Remote host closed the connection]
<nature>
thanks
lordcirth has quit [Ping timeout: 260 seconds]
<urkk>
hi, I'm dealing with binary distributed library that dlopens other libraries outside the (current) rpath
proofofkeags has joined #nixos
<urkk>
I use the autoPatchelfHook to patch all other libraries
Dagger2 is now known as Dagger
<urkk>
But I want to also add a custom rpath to this one
proofofkeags has quit [Remote host closed the connection]
<urkk>
However, my postFixup hook runs *before* the autoPatchelfHook, which destroys my rpath
<urkk>
Also runtimeDependencies only are added for binaries not libraries :(
ysgard has joined #nixos
<freezeboy>
urkk maybe remove autoPatchElf and patch with all the deps ?
user_0x58 has joined #nixos
mjsir911 has quit [Quit: Goodbye, World!]
<urkk>
freezeboy: yeah, but there are a lot of other lib where the auto patchelf hook works fine
<{^_^}>
[nixpkgs] @jonringer merged pull request #95352 → python3Packages.pybfd: remove due to prolonged breakage → https://git.io/JJQQm
<urkk>
I was looking for an alternative to having to do it all manually
<{^_^}>
[nixpkgs] @jonringer pushed to master « python3Packages.pybfd: remove due to prolonged breakage »: https://git.io/JJQAG
mjsir911 has joined #nixos
<freezeboy>
urkk you just remove the deps from buildInputs and put these in a rpath variable, then use patchelf
<veleiro>
how can you prefetch the sha256 of a *.tar.xz?
<freezeboy>
@vel
<freezeboy>
veleiro you can use nix-prefetch-url
<symphorien[m]>
,tofu veleiro
<{^_^}>
veleiro: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<veleiro>
freezeboy: doesnt work for *.xz, only *.gz or .zip
<freezeboy>
oh ... sad
<veleiro>
it might just be the packed version sha256sum since its for fetchurl
<dminuoso>
Many nix/nixos users have fallen prey to the OOM killer.
<infinisil>
dminuoso: Mic92: Yeah, but one could still use e.g. nixops (or any other deployment tool that builds the system locally then pushes it to the target) to get around the memory requirements
<nature>
Could somebody give me a hand, I really can't figure out what is wrong with my config, yet when I do a nixos-revuild switch I have the following error: `error: syntax error, unexpected '=', expecting ';', at /etc/nixos/home-manager.nix:72:19`
<infinisil>
So while evaluating/building NixOS takes a bunch of memory, _running_ it technically doesn't :) (unless you want to rebuild on the machine itself of course)
<{^_^}>
[nixpkgs] @jonringer pushed commit from @catern to master « pythonPackages.exchangelib: 1.12.2 -> 3.2.1 »: https://git.io/JJQpO
<bqv>
Anyway, a more reasonable suggestion would have been to use abduco, which I also already use, but then as I said, another abduco to worry about, I lose the ability to pkill abduco
xlei has joined #nixos
xlei has quit [Excess Flood]
<{^_^}>
[nixpkgs] @jonringer closed pull request #95313 → pythonPackages.exchangelib: removed due to prolonged breakage → https://git.io/JJHOn
<drakonis>
i see
justanotheruser has joined #nixos
<{^_^}>
[nixpkgs] @0x4A6F opened pull request #95359 → timescale-prometheus: init at 0.1.0-beta.1 → https://git.io/JJQpw
<bqv>
/run/weechat/$(which
<bqv>
/run/weechat/dtach)
<drakonis>
real talk though
<drakonis>
anyone's got experience with nginx and php?
<drakonis>
the entry on the wiki isnt very helpful
<drakonis>
i need to deploy laravel
sputny has quit [Remote host closed the connection]
<drakonis>
you have both dtach and tmux in the store
<quidome[m]>
Question about installing full desktop environments. By including gnome I seem to get the entire gnome setup but KDE seems to leave out all KDE applications. Is there an easy way to include those apps or should I be adding them to my package list one by one?
<bqv>
drakonis: yeah, but I don't want the window stuff, y'know
<drakonis>
okay?
<bqv>
Otherwise say weechat closes but tmux has randomly grown a new window
<drakonis>
ah i see
<bqv>
Now that service won't die
<bqv>
Tmux is not the pick here
<drakonis>
i've seen someone write a weechat service that uses tmux
emmanuel_erc has quit [Read error: Connection reset by peer]
jakob_rs has joined #nixos
emmanuel_erc has joined #nixos
spudly- has joined #nixos
<jakob_rs>
Are the internals of Nix documented anywhere?
spudly has quit [Ping timeout: 260 seconds]
spudly- is now known as spudly
<bqv>
In the source code, mostly
mariatsji has joined #nixos
<jakob_rs>
I figured I could look at the original thesis but the design of Nix seems to have changed noticeably since then
emmanuel_erc has quit [Read error: Connection reset by peer]
<jakob_rs>
For example the original paper claims that if you write something like "${bash}/bin/bash", Nix won't count bash as a dependency iirc
emmanuel_erc has joined #nixos
<clever>
jakob_rs: modern nix does count that as a dep on bash
<jakob_rs>
Yeah that's my point
<jakob_rs>
So it's kind of hard to figure out how Nix _actually_ decides what counts as a dependency, for example
<Taneb>
(does nix inspect binaries for paths?)
<edef>
it does
<edef>
specifically, the hash part of the path
<clever>
jakob_rs: all strings have some "context" invisibly attached to them, which says which derivations it depends on
<clever>
jakob_rs: when you pass those strings into a new derivation, they get collected together, and form the build-time dependencies
alp has quit [Ping timeout: 272 seconds]
<Taneb>
edef: interesting
<clever>
for runtime deps, nix will NAR up $out (similar to tar), and grep the entire NAR for the hash of each build-time dep
<jakob_rs>
So that's why Nix won't pick up a dependency if you were to just copy-paste the path itself?
mariatsji has quit [Read error: Connection reset by peer]
mariatsj_ has joined #nixos
<clever>
jakob_rs: correct
<jakob_rs>
Are all dependencies normally always a build output of something in the `inputDrvs` part of the derivation?
mariatsji has joined #nixos
<lovesegfault>
What's the right way to do "1.2.3" -> "1_2_3"?
<clever>
jakob_rs: deps are either other derivations, or a raw path (the result of things like "${./foo}")
<jakob_rs>
More specifically, is there something special about the way the `builtin:builenv` builder registers dependencies? (note that the store derivation for ~/.nix-profile has an empty inputDrvs)
<lovesegfault>
in particular: I'm formatting a version into it's git tag name
<nature>
I have the following setup: https://paste.rs/m2b would anyone know why the plugin I created manually doesn't seem to work ?
<clever>
jakob_rs: builtin:builenv stuff is technically a derivation, but instead of running a program in the sandbox, it runs a function in the nix library
mariatsj_ has quit [Ping timeout: 260 seconds]
<clever>
jakob_rs: so it behaves like a derivation in nearly every way, including the sandboxing
<nature>
The seem to be loaded when I enter `:scriptnames` but they don't seem to be working
<jakob_rs>
Ah, dependencies of inputSrcs are considered as well
<{^_^}>
[nixpkgs] @corngood opened pull request #95360 → Ignore SIGINT in chroot → https://git.io/JJ7en
<clever>
jakob_rs: yeah, the runtime deps of each build-time dep is also included in the sandbox
mariatsji has quit [Ping timeout: 246 seconds]
missionformilk has quit [Quit: leaving]
rajivr has quit [Quit: Connection closed for inactivity]
mariatsji has joined #nixos
<drakonis>
aight i have php now
<drakonis>
time to get into laravel
shibboleth has quit [Quit: shibboleth]
<stephaneyfx>
lovesegfault, does that do what you need? `builtins.replaceStrings ["."] ["_"] "1.2.3"` -- there might be simpler
<jakob_rs>
^ I didn't expect that to actually work when I tried it 2 minutes ago
<nature>
I have the following setup: https://paste.rs/m2b the plugins I manually built seem to load but I don't have access to any of their function, I really don't know why...
eoli3n has joined #nixos
<nature>
Help would be very much appreciated :)
<bqv>
no idea
est has quit [Quit: No Ping reply in 180 seconds.]
<_user>
its weird that if i am in the base minimal iso environment gcc is not present but if i `nix-shell -p llvm clang` then suddenly gcc is also installed
<bqv>
no that's normal, lol, that's why i suggested it
<bqv>
if you have internet, it'll just fetch stuff from the cache
kalbasit has joined #nixos
zaeph has quit [Ping timeout: 265 seconds]
<samueldr>
_user: that's because of `pkgs.runCommand/pkgs.runCommandCC`
<samueldr>
there are assumptions that this is used for building stuff
<FossiFoo>
Hi. I'm trying to get v4l2loopback-0.12.5-5.7.15 running, because 0.12.4 from 20.03 is actually broken. So I checked out nixpgs and can build and install it, but I can't figure out how to insmod/modprobe it because it's now a .ko.xz and all I can find on the internet is to run depmod, but I guess that won't work with nixos? Any hints?
<jakob_rs>
With "checked out nixpkgs and can build and install it", what do you mean?
<jakob_rs>
You'll generally want to add the package to boot.extraModulePackages
<jakob_rs>
I am aware that v4l2loopback fails to build on stable on linuxPackages_latest, but it works on unstable, and you can selectively specify to get the package from nixos-unstable instead:
<clever>
--arg can take any nix expr, just like -E, and then just passes it into the file
<clever>
in my case, its a function that takes a pkgs tree, and returns a list of packages you chose
<nature>
I have a problem with some manually built vim plugins, and I suppose it's du to the fact that they are meant to be installed with vim-plug, how would I be able to do that with nix ? here is my config: https://paste.rs/m2b
<_user>
clever: yep, my first thought was passing in --arg extraPkgs '[ pkg1 pkg2 etc ]'
<bqv>
oh, that reminds me, is there a simple way to enable e.g. allowBroken, on a nix-shell cmdline?
<bqv>
(or nix shell, in my case)
FRidh has quit [Quit: Konversation terminated!]
<clever>
_user: the expr is evaled in its own isolated context, so pkg1&pkg2 dont exist yet
Darkmatter66_ has quit [Ping timeout: 246 seconds]
<makefu>
,locate libGL.so.1
<{^_^}>
Found in packages: libglvnd, primusLib, xorg_sys_opengl
<makefu>
,locate libGL.so
<{^_^}>
Found in packages: libglvnd, primusLib
<seanparsons>
infinisil: I figured it out, or at least fixed it. That mysterious source code had a gc root of some direnv created folder for my regular non-root user, so I nuked that, ran `nix-collect-garbage` and then it worked.
<{^_^}>
[nixpkgs] @siriobalmelli opened pull request #95364 → neovim: fix build on Darwin → https://git.io/JJ7Um
<nature>
What is the correct way to install a npm package on nixos ?
<bqv>
step 1: burst into tears
<bqv>
step 2: investigate napalm
alp has joined #nixos
<nature>
:'(
<nature>
thanks anyway
<crazazy[m]>
i just have a shellscript that automates fetching a package from npm and then uses node2nix to fetch all dependencies
<simpson>
nature: There's no universal JS packaging system, so there's no single correct technique. Most of the time, you can follow the instructions in the nixpkgs manual for adding the desired package: https://nixos.org/nixpkgs/manual/#node.js
FossiFoo has quit [Remote host closed the connection]
<_user>
nature: if you think NPM is bad i dare you to try to bootstrap autotools and friends from scratch
<_user>
the dependency graph is a connected graph
<crazazy[m]>
as in cyclic graphs?
<simpson>
_user: Isn't that apples to oranges? NPM is a package manager; it fetches packages, or bundles of modules. autotools configures and builds packages. I suppose also that "from scratch" is something of a strange term, since *both* all computing is from scratch and *also* nobody here is cooking their own rocks to make their own CPUs.
<{^_^}>
[nixpkgs] @siriobalmelli opened pull request #95366 → vimPlugins.vim-clang-format: init at 2019-05-15 → https://git.io/JJ7Uj
<_user>
well, the thing is each autotool depends on every other one, unless you use the precompiled configure script blobs. however, some tools like flex and bison depend on themselves, which is sad
<{^_^}>
[nixpkgs] @jtojnar pushed 69 commits to staging-next: https://git.io/JJ7Tk
<crazazy[m]>
_user: versions excluded, that does sound like cyclic graphs yea
kalbasit_ has quit [Ping timeout: 240 seconds]
shibboleth has joined #nixos
griff_ has joined #nixos
<simpson>
Not sad, just bootstrapping. A fact of life and of computation.
fendor has quit [Read error: Connection reset by peer]
kalbasit__ has quit [Ping timeout: 240 seconds]
kalbasit has quit [Ping timeout: 240 seconds]
kalbasit_ has joined #nixos
raiaq has joined #nixos
raiaq has left #nixos [#nixos]
never_released has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #95367 → nixos/nixos-*: use runtimeShell → https://git.io/JJ7Tb
gthm has quit [Ping timeout: 260 seconds]
never_released has joined #nixos
<bqv>
isn't guix shepharding the majority of the effort to bootstrap all-the-things
<bqv>
what have they got, for autotools, so far
noudle has quit []
kalbasit has joined #nixos
kalbasit__ has joined #nixos
noudle has joined #nixos
zaeph has joined #nixos
LuisCh has joined #nixos
never_released has quit [Remote host closed the connection]
kalbasit_ has quit [Ping timeout: 265 seconds]
never_released has joined #nixos
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #95368 → zstd: fix shebangs when cross-compiling → https://git.io/JJ7kW
alp has quit [Ping timeout: 272 seconds]
never_released has quit [Excess Flood]
<catern>
how does the multiprocessing library in the Python stdlib work on Nix? Nix doesn't set PYTHONPATH, it sets sys.path via a Python wrapper, so how do the subprocess Pythons get their PYTHONPATH/sys.path set up since they can't just inherit it?
<kini>
I'm not sure but I think you need to have that channel added and also named "nixos", in order for the usual commands to work properly to install it as your bootable system (probably there's some way to configure it otherwise, though)
<kini>
I seem to recall seeing a warning somewhere that nixpkgs-unstable should never be used as a nixos channel, fwiw
domogled has quit [Ping timeout: 264 seconds]
<W1lkins>
kini: thanks, I'll keep digging and avoid having nixpkgs-unstable named as nixos for now :-)
emptyflask has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @nasadorian opened pull request #95371 → Rename incorrectly named vim Dracula plugin → https://git.io/JJ7IA
<Miyu-saki>
Does anyone remember the name of one of the NiOS alternatives? Not Guix, not not-os.
cole-h has quit [Quit: Goodbye]
emptyflask has joined #nixos
alp has joined #nixos
<Miyu-saki>
(Not SLNOS either)
<crazazy[m]>
wiki mentions triton, other than that i don't know of any
<Miyu-saki>
Oh yeah, Triton! Thanks.
<crazazy[m]>
np
<_user>
is there any approximate timeline for how long it will take to stabilize nix flakes?
<{^_^}>
Escape this in '' strings with: ''${$$$(hello)}
<{^_^}>
Escape this in " strings with: \${$$$(hello)}
criptonauta_ has quit [Read error: Connection reset by peer]
<makefu>
,escape ${''${HELLO}}
<{^_^}>
Escape this in '' strings with: ''${'''''${HELLO}}
<{^_^}>
Escape this in " strings with: \${''\${HELLO}}
<makefu>
> ''''${'''''${HELLO}}''
<{^_^}>
"${''${HELLO}}"
erasmas has quit [Quit: leaving]
<jlv>
Hmm. What do I do if the `src` for a derivation is a single, unarchived, file? I'm getting an error because it doesn't know how to "unpack the source archive".
<makefu>
bqv: everybody knows that bash env vars always are full-caps
<clever>
makefu: bash only listens if you scream
<makefu>
that explains alot
<bqv>
lol
ramses_ has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Ping timeout: 264 seconds]
jurlerci has joined #nixos
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
urkk has quit [Ping timeout: 240 seconds]
<jlv>
Anyone know why `fetchGit` sometimes doesn't work with `ref`? I'm getting errors like "error: cannot update ref 'refs/heads/v4.1.1': trying to write non-commit object 8c0a45c20e76c7571c2fb31b21fced1682e6c980 to branch 'refs/heads/v4.1.1'".
<kini>
jlv: is it a sporadic error or is it reproduceable? Can you give the full `fetchGit` call that produces the error?
o1lo01ol_ has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
dingenskirchen1 is now known as dingenskirchen
<jlv>
kini: also, if you add `rev` for the commit in the corresponding error message, it works. However, even with `rev`, if you try it on a new machine (or collect Nix garbage, presumably), it will give the error message on the first try but then work.
<clever>
jlv: it gets cached in ~/.cache/nix/gitv2 so a GC wont delete it
jurlerci has quit [Quit: leaving]
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<jlv>
clever: I see. I didn't actually try GC to reproduce that behavior. I just noticed it when building the project on a different machine.
nature has quit [Ping timeout: 272 seconds]
<clever>
jlv: i find pkgs.fetchgit to be a lot more reliable
<clever>
jlv: and pkgs.fetchFromGitHub is faster, if its github
<pikajude>
and 60 is the default, which i am using
<pikajude>
i wonder if it'd even help to set it higher
<pikajude>
i also gave nix-daemon lower "nice" priority
<spease>
Hi...today I'm trying to use xcodeenv to build an iOS app via nix-build. I was able to reduce some initial "not able to write" errors by adding "-UseNewBuildSystem=NO" to the Xcode args. However now I'm getting "Unable to determine SimDeviceSet, set_path=(null)" (and some additional not writable errors wrt logs). The final error is "No
<spease>
architectures to compile for (ARCHS=x86_64, VALID_ARCHS=arm64)." I believe the "Unable to determine" may be caused by the simulator data living in "~/Library/Developer/CoreSimulator/Devices/" which is presumably not accessible from the nix environment (which I believe is executed by nixbld*, not my user). Is there a graceful way to handle this with
<spease>
nix?
<spease>
Sorry that's a mouthful
kraeXen has joined #nixos
<steadmon>
specifically, the unit-script-postfix-pre-start script calls `postfix set-permissions config_directory=/var/lib/postfix/conf`, which then complains that the generic map file is on a read-only filesystem and can't be chowned
<energizer>
yeah i'd like a solution to that, i guess i should just give up and buy a new computer with more ram
<bqv>
more?!
mbrgm_ has joined #nixos
<energizer>
for my desktop, not for my remote
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
<jlv>
clever: doesn't `pkgs.fetchgit` require a `sha256`? That wouldn't be easy to use here. I'm reading from a package set that only provides git url and reference tag.
<clever>
jlv: you could pre-fetch things, compute the sha256, and then generate an extra lock file that lists the sha256's