<notgne2>
then for things with more than 1 file you can of course use `builtins.fetchGit` or whatever else is convenient
<adam_>
is there an advantage to putting it in your home manager?
<adam_>
wouldn't you want your fish shell even when you ar ein tty?
<adam_>
also how are you managing your fish config
<adam_>
are you still just using the traditional ~/.config/fish/config.fish
<notgne2>
home-manager will control that too, internally it's just writing that text under interactiveShellInit to `.config/fish/config.fish` the same way NixOS often writes to files in `/etc`
<bqv>
how bad do you guys think it is to use home.file.".config/?" over xdg.configFile."?" ?
<notgne2>
the name `home-manager` is apt in the sense that it's mainly for managing your home directory
<adam_>
okay, and so if you want syntax highlighting, you can actually create a config.fish file and then use builtins.Readfile as the source for your interactiveShellInit
<infinisil>
bqv: Not bad at all
<notgne2>
I prefer to put my fish stuff in home-manager instead of using a tool like oh-my-fish so that way any OS I put my config on will already have my fish shell set up
<bqv>
mmm
<notgne2>
adam_: yes, though then you can't use Nix's interpolation to source things, so you'll probably want to do like `"source ${myTheme}" + builtins.readFile ./config.fish`
<adam_>
I see
<adam_>
so if you fetch from github what would you source? there are several files, but it seems like you can presumably just source the fish_prompt.fish
<adam_>
I want to use bobthefish
<notgne2>
another line I have for example is `source ${doneSrc}/conf.d/done.fish`, where `doneSrc` is using fetchGit
xd1le has quit [Read error: Connection reset by peer]
<adam_>
so I would `source ${bobthefishSource}/fish_prompt.fish`
<adam_>
I'll try that now
xd1le has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JUkVp
adam_ has quit [Remote host closed the connection]
<KarlJoad>
That's what I figured. It's just that by default alsamixer writes these changes to asound.state, not asound.conf and was unsure if they are interchangable.
slack1256 has joined #nixos
adam_ has joined #nixos
<lightandlight>
Is there a NixOS configuration option to manage the nix channels that are available to users? Rather than running `nix-channel --add`, I would prefer to be able to specify the channel in my OS configuration
<adam_>
notgne2: I was actually able to put the theme in fish.plugins
<adam_>
is that the recommended way or should you source it as you have done?
<notgne2>
well, I didn't even know that existed, I'll probably switch to using that way myself too
<adam_>
but... it didn't actually enable the theme haha
<adam_>
I can see it has been downloaded
<adam_>
it even created /home/adam/.config/fish/conf.d/plugin-bobthefish.fish
rajivr has joined #nixos
<adam_>
but nothing has changed when launching fish
<adam_>
any ideas?
<adam_>
do I actually have to navigate to the plugin directory and source everything? I tried doing that manually and it does seem to work
<notgne2>
looking at the implementation it looks like it should source them automatically, I'm not sure why that wouldn't work
<notgne2>
I'm going to try it myself now and have a look
<notgne2>
looks like it worked for one of my plugins, maybe themes are different somehow
<notgne2>
yeah doing it for a theme didn't work for me, huh
<bqv>
jesus, how do you override a python package
<bqv>
i'm tearing my hair out
<notgne2>
adam_: ok so it looks like themes have a different structure, and what home-manager actually puts into your conf.d is a script that launches plugins, so sourcing it manually won't work either, as that script won't be loading the right files for themes
<infinisil>
bqv: override what
<infinisil>
The answer might be .overridePythonAttrs
<bqv>
i want to override PyChromecast to an older version for catt
<bqv>
i've been using overridePythonAttrs
<bqv>
in various incantations
<bqv>
all of them result in some kind of build failure
<infinisil>
Oh then the answer is .override
<bqv>
right now, i have catt.override (pychromecast.overridePYthonAttrs ...)
<bqv>
that does not build
<bqv>
apparently i have multiple versions of dependencies in the list
<infinisil>
catt.override { PyChromecast = ...
<bqv>
yes
<bqv>
it complains about "package duplicates in the closure"
<{^_^}>
#67422 (by Infinisil, 1 year ago, closed): pythonPackages: Switch to lib.makeScope for `overrideScope` support
<notgne2>
adam_: I guess a reasonable solution would be to do a combination of both methods, put bobthefish in plugins, and then source the prompt too, that way the plugins handler can still load all of it's functions
<bqv>
oh
<bqv>
that sounds good, i'll do that
<infinisil>
Well the PR isn't merged
<infinisil>
But yeah something like that should also work with overlays
h0m1 has quit [Ping timeout: 260 seconds]
<infinisil>
Or if you don't mind, you could override every single argument that has the dependency, recursively, manually
<infinisil>
Like I showed in the PR for jupyterlab
<bqv>
jesus christ
<bqv>
so this isn't just me, right? this is insane, right?
<infinisil>
Definitely not you, overrides are a mess!
h0m1 has joined #nixos
<infinisil>
There's like 20 different ways in nixpkgs for doing overrides, and each works slightly differently
<infinisil>
There's a lot of potential for improvement there
<bqv>
i've not actually cared that much with most other ways, but python gives me a headache
<adam_>
notgne2: did you have any luck with the theme since then?
<{^_^}>
[nixpkgs] @marsam opened pull request #96422 → act: use go 1.14 on darwin → https://git.io/JUkok
<adam_>
if you do use the source method, how are you finding the path?
<notgne2>
adam_: I've actually just switched to bobthefish too, I put it in plugins and sourced it and that seems to make it work fully, putting in plugins loads the functions it uses, then sourcing loads the prompt
<notgne2>
you can't source it out of where plugins installs it to without more weird stuff though
<notgne2>
so I've just included it in both places seperately
pylsan has quit [Ping timeout: 272 seconds]
<adam_>
ah interesting
<adam_>
would you mind posting a gist? I'm curious how you approached that
<adam_>
what do you think of bobthefish btw?
<adam_>
you can create a custom colorscheme for it too to match your vim airline theme
lemmih has left #nixos ["Leaving"]
<adam_>
also what was the advantage of putting it in plugins and sourcing it?
<adam_>
if you're going to source it can't you do only that
<samueldr>
the fixed output not being as fixed as expected
stoile has quit [Ping timeout: 240 seconds]
zeta_0 has quit [Ping timeout: 264 seconds]
<nickeraqua>
Well I'm a bit of a noob here. I installed Nix, successfully installed some packages, but this one (smartmontools) is not installing due to hash mismatch in fixed-output derivation '/opt/pkgs/nix/store/15y3d3n9j4bmv876fmb4m40lf5m5rsrq-xz-5.2.5.tar.bz2': (i have custom path)
ddellacosta has quit [Ping timeout: 265 seconds]
<samueldr>
oh, using a path other than /nix/store can have misc. issues because the paths are part of the outputs
<samueldr>
some schemes for fixed output derivation hashes the *extracted* archives
<samueldr>
since the paths are different, in those instances I believe they would end up not matching
<nickeraqua>
Oh you think so? I've successfully done like 10 packages prior to this..
hyper_ch2 has quit [Read error: Connection reset by peer]
<nickeraqua>
in that case no real solution to this
<samueldr>
I'm not positive, but that was my hunch
<samueldr>
though it could be that I'm partly wrong here
<{^_^}>
[nixpkgs] @blaggacao opened pull request #96424 → doc: fix wording on dockertools → https://git.io/JUk6t
<samueldr>
a side-effect of the sources being a build output, they are cached on the organization's hydra
domogled has quit [Ping timeout: 240 seconds]
<samueldr>
if the hosted .tar.bz2 changed, our derivation would still end up using the cached derivation
Zee1nOnly has quit [Remote host closed the connection]
Zee1nOnly has joined #nixos
kreyren has quit [Ping timeout: 240 seconds]
Zee1nOnl_ has joined #nixos
Zee1nOnly has quit [Read error: Connection reset by peer]
xd1le has quit [Remote host closed the connection]
<dminuoso>
Mmm, `cabal v2-build --ghc-options=-fno-code -j1` with cabal 3.0.0.0 and ghc865 fails to build anything for me, failing with errors like: /nix/store/hrkc2sf2883l16d5yq3zg0y339kfw4xv-binutils-2.31.1/bin/ar: dist/build/Data/Algorithm/Diff.o: No such file or director
<bqv>
Not that this … I don't even want to call it a derivation, is anywhere near suitable for public consumption
<bqv>
Heh
<srk>
that's why you've mentioned haskell.nix the other day?
<bqv>
Yeah
<bqv>
Been fighting with thir
<bqv>
Currently I have all the deps built! But vervis itself does some crazy TH cte stuff
<bqv>
I literally don't know how to handle that so I'm just sedding stuff out like an utter troglodyte
griff_ has joined #nixos
is_null has quit [Ping timeout: 256 seconds]
<Taneb>
I've been spending a little time trying to figure out how big a change it would be to ensure the minimal install iso doesn't depend on python 3
<Taneb>
bqv: I'm trying to make sure we're not standing on it when it does
<bqv>
it has an in-place replacement, and it's not immortal like perl
<bqv>
Fair
<Taneb>
Not quite in-place enough :(
<bqv>
Heh
simonpe^^ has joined #nixos
<Taneb>
The one I can't figure out what to do with is polkit -> spidermonkey -> python2
<simonpe^^>
is there a more idiomatic way of doing the following?: nix-build -E '(import <nixpkgs> { crossSystem.config = "aarch64-unknown-linux-gnu"; }).callPackage ./default.nix {}'
<simonpe^^>
to cross compile a code base with a default.nix in its root
<simonpe^^>
Also, the header of the default.nix is something like: { pkgs ? import <nixpkgs> {}, stdenv ? pkgs.stdenv, cmake ? pkgs.cmake, ...}:
<simonpe^^>
that feels a bit ugly and repetitive
<oleks>
Hi, which package do I need to instal to get system call manual pages?
<bqv>
srk: TH itself is fine, its what it's trying to do that seems broken in each case
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
cfricke has quit [Quit: WeeChat 2.9]
thc202 has joined #nixos
veleiro`` has joined #nixos
<srk>
Taneb: nixos/release.nix tests attribute
<srk>
bqv: you can try asking fr33 on #peers
aswanson has quit [Quit: WeeChat 2.7.1]
<bqv>
Heh. Eventually
alp has quit [Remote host closed the connection]
alp has joined #nixos
pheoxy has joined #nixos
pheoxy44 has joined #nixos
pheoxy44 has quit [Remote host closed the connection]
veleiro` has quit [Ping timeout: 265 seconds]
lightbulbjim has joined #nixos
graf_blutwurst has joined #nixos
alexherbo28 has joined #nixos
<pheoxy>
trying to test nixos in virtualbox (6.1.12) and I keep getting "error 9 while decompressing xz file" for "nixos-system-nixos" when running 'nixos-install -v --show-trace'
<pheoxy>
search around I found some people fixed it by downgrading there virtualbox to before 6.1.x to 6.0.x
<pheoxy>
is this an issue at the moment with the new 'VMSVGA' default setting for display or something else
<pheoxy>
and is there already a issue for it on github?
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo28 is now known as alexherbo2
civodul has joined #nixos
<{^_^}>
[nixpkgs] @Taneb opened pull request #96450 → grub2: use python3 by default → https://git.io/JUk5z
werner291 has joined #nixos
mcaju has quit [Quit: Idle for 30+ days]
fendor has joined #nixos
antpic01[m] has quit [Quit: Idle for 30+ days]
utdemir[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
nocturnalbeast[m has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
truby has quit [Quit: Idle for 30+ days]
greghab[m] has quit [Quit: Idle for 30+ days]
bachp1 has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
<{^_^}>
[nixpkgs] @jappeace opened pull request #96453 → nixos/redis Add connection wait script to ensure connections can be made to redis → https://git.io/JUkbH
butcher_ has joined #nixos
munksgaard has left #nixos ["WeeChat 1.0.1"]
griff_ has joined #nixos
CMCDragonkai has quit [Ping timeout: 256 seconds]
CMCDragonkai1 is now known as CMCDragonkai
confignoob has joined #nixos
<confignoob>
Does anyone here use (lm_)sensors? 'man sensors.conf' specifies '/etc/sensors3.conf' and '/etc/sensors.conf' as global configuration files, however, running 'sensors' doesn't pick them up on my machine. I can force load either one fine by passing the '-c' flag/parameter to 'sensors'. Did I find a bug or is there something I don't understand?
butcher_ has quit [Remote host closed the connection]
cosimone has quit [Read error: Connection reset by peer]
Zee1nOnly has quit [Remote host closed the connection]
<pheoxy>
can you have multiple "environment.systemPackages = with pkgs;" configs within configuration.nix ?
Zee1nOnly has joined #nixos
<q3k[m]>
yes.
<q3k[m]>
ah, within one configuration.nix? unsure, actually.
<LnL>
not within the same file
<q3k[m]>
no, that's going to probably cause a nix evaluation error
cosimone has joined #nixos
domogled has quit [Ping timeout: 265 seconds]
<q3k[m]>
yeah, repeat key in attrset
<pheoxy>
but multiple files its ok and won't conflict?
<LnL>
but you can ++ in that case
<q3k[m]>
across different files it would work, because of nixos option merging magic
<symphorien[m]>
you have to use `lib.mkMerge` to do so
<LnL>
pheoxy: yes, lists like systemPackages are merged together by default
<q3k[m]>
(plenty of nixos modules define `environment.systemPackages`)
<pheoxy>
but using one file you would have to use lib.mkMerge ?
<pheoxy>
I plan on splitting the .nix file when I get the the first one right
<q3k[m]>
if you split them up using nixos modules
<q3k[m]>
instead of plain imports
<LnL>
++ is fine unless you want to merge modules
<pheoxy>
when you split .nix files you just add them to imports right?
<q3k[m]>
then you can just declare two different environment.systemPackages values, each in one file
<q3k[m]>
pheoxy: you use imports = []; in nixos to get merge magic, because what you import is basically also a nixos module
<q3k[m]>
pheoxy: this is different from `import ./foo.nix`
gxt has quit [Ping timeout: 240 seconds]
<q3k[m]>
(which is plain nix)
<pheoxy>
I see
<q3k[m]>
the thing you stuff into imports = [] being another nixos module basically means it's another function like this: `{ config, pkgs, ... }: { networking.hostName = ...; environment.systemPackages = [...]; }`
<q3k[m]>
nixos will then, as it builds the system derivation, build itself a happy little import tree that was declared this way
<{^_^}>
[nixpkgs] @Mic92 opened pull request #96455 → bitwarden_rs: make EnvironmentFile mergeable → https://git.io/JUkxg
<q3k[m]>
and call all these functions in order to get a final configuration, merging things where necessary
<dminuoso>
Earlier I mentioned a problem with no solution: `cabal v2-build --ghc-options=-fno-code -j1` failing with errors like on every package: /nix/store/hrkc2sf2883l16d5yq3zg0y339kfw4xv-binutils-2.31.1/bin/ar: dist/build/Data/Algorithm/Diff.o: No such file or director
<dminuoso>
As soon as I drop -fno-code, everything is fine.
<dminuoso>
What's going on here?
<{^_^}>
[patchelf] @edolstra pushed 0 commits to refs/tags/0.12: https://git.io/JUkhq
<bqv>
-fno-code probably disables the code
<bqv>
That sounds unproductive
<dminuoso>
Ohh actually, the hint earlier was absolutely right. I just spend the past 3 hours not looking close enough at the ghc version.
<dminuoso>
bqv: It's very productive for ghcid :)
domogled has joined #nixos
<dminuoso>
Apparently this is broken for ghc865, I sort of went on earlier because I looked at the wrong shell.nix and thought this was running on 884
domogled has quit [Remote host closed the connection]
sangoma has quit [Ping timeout: 240 seconds]
Zee1nOnly has quit [Remote host closed the connection]
Zee1nOnly has joined #nixos
kreyren has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
Thra11 has joined #nixos
kdlv has joined #nixos
kreyren has joined #nixos
butcher_ has quit [Ping timeout: 246 seconds]
<dminuoso>
Or... mmm. Actually, no it triggers with 884 as well. :(
<JJJollyjim>
is it possible to abort an ofborg job? I arbitrarily picked a nixos test to validate a change to the test runner, and now it's building rustc D:
<JJJollyjim>
oh god and firefox
butcher has joined #nixos
<eyJhb>
Building the entire world JJJollyjim ?
cfricke has quit [Quit: WeeChat 2.9]
<dminuoso>
Oh gosh, ignore everything I said. Im dumb today.
<{^_^}>
[patchelf] @edolstra pushed to master « Bump version »: https://git.io/JUIem
<{^_^}>
[patchelf] @edolstra pushed to refs/tags/0.12 « Bump version »: https://git.io/JUIem
<hexo>
hi folks, please how do i install python package so that i could import it in ipython3 and do stuff?
<hexo>
i need opencv4
kreyren has quit [Ping timeout: 240 seconds]
<Extends>
python38.withPackages (pp: with pp; [ opencv4 ]) should work
* hexo
tries
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
zupo has joined #nixos
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
<hexo>
error: build of '/nix/store/kpsnb8fi6gw6znyqvciyrkvj14qvdnxd-nixos-system-prickachu-19.09.2520.289466dd6a1.drv' failed
<hexo>
:D
<hexo>
so, no, it doesnt work :(
<Extends>
how are you importing / using it
<dutchie>
you'll need to put the function call in brackets if you are calling it inside a list
<hexo>
i launch ipython3
<hexo>
and import it
<hexo>
ah you mean nix configuration.nix
<Extends>
oh, ipython is an interactive shell ?
stephaneyfx has joined #nixos
<simpson>
hexo: I built `python38.withPackages (ps: [ ps.opencv4 ps.ipython ])` in the REPL, and then ran my result/bin/ipython3 and tried `import cv2` and it worked.
<simpson>
Yikes, I'd refactor that. I bet a lot of those packages are only needed/used in specific development environments; have you considered direnv?
<{^_^}>
[nixpkgs] @ttuegel merged pull request #93306 → kdesu: provide a script in bin and look for daemon first in /run/wrappers/bin → https://git.io/JJZU6
<{^_^}>
[nixpkgs] @jonringer pushed commit from @danieldk to master « python3Packages.wasabi: 0.7.1 -> 0.8.0 »: https://git.io/JUIOl
mhueschen has joined #nixos
mhueschen has quit [Client Quit]
stephaneyfx has quit [Remote host closed the connection]
noudle has quit []
<pikajude>
so, i'm running macos in qemu on a nixos host
<pikajude>
and i'd like the two operating systems to be able to share the nix store directly
<pikajude>
since they're different systems, is that possible, or would it cause conflicts?
<pikajude>
e.g. if i don't share the nix store, and i use the nixos host system as a "remote builder" on macos, everything that's built for linux will be duplicated on disk
<pikajude>
inside the qemu hard drive and outside of it
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL>
in principle yes, as long as you maintain a separate profile for each platform
<pikajude>
i see
<pikajude>
so the easy part is done, then
<pikajude>
now to figure out how to convince macos to share a filesystem as a qemu guest
<LnL>
but the sharing mechanism needs to be safe for sqlite operations since there's 2 daemons/clients writing to it
<pikajude>
oh, also i guess the nix store has to be mounted readwrite if the guest is going to write to it
<LnL>
and I'm not sure if that works in combination with remote builds
<LnL>
since the local client might lock the store path, making it impossible for the remote side to build it
<pikajude>
hmm
<pikajude>
yeah i actually don't know if that's how it works or not
<LnL>
there's definitively locking during the build, but I'm not sure at what point that happens
<pikajude>
i can't imagine flock even works across an emulator boundary
<LnL>
nix uses .lock files IIRC
dyaso has quit [Ping timeout: 272 seconds]
<pikajude>
that doesn't mean anything
<pikajude>
it's just a file
<pikajude>
it also uses flock internally, and i'm not sure whether both clients are simply allowed to hold locks or if the syscall will fail on one side if the other holds it
<{^_^}>
[nix] @glittershark opened pull request #3965 → Pass all args when auto-calling a function with an ellipsis → https://git.io/JUI3e
stephaneyfx has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar opened pull request #96483 → python3.pkgs.pyexcel: init at 0.6.4 → https://git.io/JUI3U
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
<{^_^}>
[nixpkgs] @danieldk opened pull request #96488 → libtorch-bin: init at 1.6.0 → https://git.io/JUIGR
kenran has joined #nixos
spudly- has joined #nixos
<hpfr>
why are so many builds failing on nixos-unstable
domogled has joined #nixos
dansho has quit [Ping timeout: 240 seconds]
kenran has quit [Ping timeout: 258 seconds]
spudly has quit [Ping timeout: 240 seconds]
spudly- is now known as spudly
<edcragg>
i want to use a python package, which was merged to nixpkgs master 11 days ago, but i can't seem to use it. i'm on nixos-unstable channel and have updated channels and rebuild --switch'ed
<edcragg>
not sure why i still can't call the package from a shell derivation
jjakob has joined #nixos
<aveltras>
im trying to run a script as root with steam-run but there's a permission error even as root, is there a way around this ? (this is for my drawing tablet configuration script)
xelxebar has quit [Remote host closed the connection]
<zeta_0>
jtojnar: i thought the same thing, so i guess i'll just paste the code in home.nix, and if nix build errors are thrown, then i'll just paste it into configuration.nix.
butcher has joined #nixos
dansho has quit [Remote host closed the connection]
xelxebar has joined #nixos
quinn has joined #nixos
<yurb>
Is there a description of how the system-wide part of nixos works, as opposed to user profiles? For instance, how `/etc` gets generated and how the boot process happens?
stephaneyfx has joined #nixos
<symphorien[m]>
> Is there a description of how the system-wide part of nixos works, as opposed to user profiles? For instance, how `/etc` gets generated and how the boot process happens?
<symphorien[m]>
nix generates a derivation containing /run/current-system/activate, and the boot process runs it
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):321:66
<symphorien[m]>
this script is responsible for setting up all symlinks, including /etc/ content and /run/current-system
<symphorien[m]>
that's the big picture
butcher_ has joined #nixos
<yurb>
symphorien: thanks; yeah, I tried to read that script, but, well...
<yurb>
it's hard to get a big picture from that :)
<cole-h>
bqv: And why merge specialArgs with `{ super = config; }`?
<moet>
k, my jobs are constrained correctly with -j1; thank you qyliss
moet has quit [Quit: leaving]
<bqv>
cole-h: you never want to access nixos config from inside a home-manager import?
<cole-h>
bqv: I haven't yet :P
<bqv>
You probably will :p
kenran has joined #nixos
dyaso has joined #nixos
<cole-h>
So it just becomes, e.g. `super.nix.package`?
<cole-h>
Cool.
<cole-h>
Appears that `modules = ...` is necessary, so I just set it to `[]`. Hope there're no side effects :P
<bqv>
Ah lol
<bqv>
Fair
domogled has quit [Read error: Connection reset by peer]
<bqv>
Should be benign, its a no-op merge
<tobiasBora>
ok, solved my problem
domogled has joined #nixos
<eyJhb>
I can never remember the syntax for { nixpkgs ? <nixpkgs> }: what is it?
<samueldr>
eyJhb: depends exactly what you want
<samueldr>
{ pkgs ? import <nixpkgs> {}}: # gives you a `pkgs` ready to use
<eyJhb>
Yeeees
<eyJhb>
Thanks !
<samueldr>
the important part is `import <nixpkgs>` imports the path where your NIX_PATH's nixpkgs component points to, and since it's a directory, defaults to default.nix
<samueldr>
*this* in turn is a function that gets one argument that is an attrset
<samueldr>
nixpkgs configuration can go in there
kenran has quit [Ping timeout: 240 seconds]
<samueldr>
but if you do it in the argument, you won't get your custom config if someone passes a pkgs arg!
turlando has quit [Ping timeout: 256 seconds]
<eyJhb>
Ahh thanks, I will try to remember that!
<Raito_Bezarius>
is there an option on NixOS to create multiple routing tables?
<Raito_Bezarius>
I'd like to reply some packets on the same interface as incoming
<Raito_Bezarius>
But it'd require me to add two default gateways on IPv6 and that won't work
<eyJhb>
samueldr: If I need to use lib, that resides in pkgs.lib, right?
<Raito_Bezarius>
I know, there is some "ip rule add […]" + "ip route add default" on the proper table, but I don't know if some NixOS module is wrapping this
<Raito_Bezarius>
I checked networking.interfaces.*
<lordcirth>
Is there an clean way to trigger a download of a package, without doing anything with it, just so I can get the download started while I write a config?
<samueldr>
do you want the modules to integrate into nixos, or be a separate use?
ConsumeristProvo has joined #nixos
<ConsumeristProvo>
hello
<eyJhb>
Seperate usage
<lordcirth>
ConsumeristProvo, hi!
<samueldr>
then you still need to eval somehow :)
<eyJhb>
It should just be a nix-build thing. I just want something I can "configure" and then turn into a json thingy
<eyJhb>
:(
<samueldr>
types.submodule won't help you if you don't have the thing that makes the modules system work evaluating
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.breathe: 4.19.2 -> 4.20.0 »: https://git.io/JUIlm
<ConsumeristProvo>
I have a question regarding wireless drivers, my wireless driver (according to dmesg) is b43legacy, but NixOS seems to not be able to recognize it if I use enableRedistributableFirmware to true, or enableB43Firmware to true. What can I do?
<ConsumeristProvo>
(apart from buying a new wireless card... ;)
<infinisil>
fresheyeball: Because you need linux packages to build the linux container
<infinisil>
And you don't have those on a mac
<infinisil>
It might be doable though if dockerTools cleanly separates local and container packages
<pikajude>
so i'm trying to figure out ways to make vscode remote development on nixos ergonomic
<pikajude>
it's usually pretty good, i just have to patchelf most of the binaries that ship with whatever extensions i'm using
<pikajude>
but there's one extension i'm having trouble with, specifically vscode-lldb, which i can't get to work on nixos at all and works out of the box in an ubuntu vm
<pikajude>
would it make sense to run vscode-server inside a fhs env instead?
<ConsumeristProvo>
so what can I do to install a wireless driver not packaged by NixOS?
<fresheyeball>
infinisil: you can build docker on Mac with a dockerfile
<fresheyeball>
So I assume there is a way to do it with nix
mmmattyx has quit [Quit: Connection closed for inactivity]
<adisbladis>
I think that maybe that firmware package was removed in error
<bqv>
thankfully, nix is futureproof
redmp has joined #nixos
<unclechu>
hi. i have some issues with rendering emoji in gtk (at least, can tell about qt) applications. at some point after an update i have one pixel yellow dot being rendered instead of emoji
<bqv>
summoning cole-h
<ConsumeristProvo>
ok adisbladis, thanks for the help, I'll get back to you
<adisbladis>
Ah Nix. The cause of and the solution to all of life's problems.
<unclechu>
p.s. i’m using unstable channel as `nixpkgs`
<ConsumeristProvo>
have to unplug my PCs wifi adapter >_<
<redmp>
i have a project where i pin nixpkgs and do some overrides in haskellPackages in `pins.nix` and then import that in `default.nix` to do nixpkgs.buildEnv on a selection from haskellPackages .. for some reason _all_ of my packages are rebuilt on every call to nix-build.. is this the expected behavior?
<V>
unclechu: known issue
<unclechu>
does anyone have an idea what could be a problem? because it used to work fine
<unclechu>
V: any references?
<V>
unclechu: just looking for it
zeta_0 has joined #nixos
<V>
On my phone so a bit slow
<adisbladis>
redmp: Any path references such as `./.` ?
<{^_^}>
#86601 (by wmertens, 16 weeks ago, open): fontconfig: Enable color emoji as a fallback
<{^_^}>
[nixpkgs] @jonringer opened pull request #96501 → python3Packages.phonopy: fix build and tests → https://git.io/JUI4d
<bqv>
unclechu: i'm sure cole would, iirc there was a recent kerfuffle that broke fonts a bit
<chloekek>
Hi, I have a desktop computer with a graphics card to which a monitor is connected via HDMI. If I idle the computer for about ten minutes then it turns the monitor to standby mode. I want to turn this behavior off but I don’t know if this is caused by systemd, X, i3, or something else. I don’t recall me explicitly enabling it, so it must be a default somewhere.
<bqv>
unclechu: best i can reccomend, unset all fonts options, see if that fixes things
<bqv>
(and delete all imperative fontconfig files
<bqv>
)
ConsumeristProvo has quit [Ping timeout: 240 seconds]
<redmp>
adisbladis: yeah, i thought that paths might be the problem so in `default.nix` i switched out the `import ./pins.nix {};` for `import (toString ./. + "/pins.nix") {};` ... additionally, the packages i'm adding to haskellPackages are specified using `callCabal2nix "name" ./path {}` with raw paths
<unclechu>
bqv: what imperative fontconfigs files are you referring to? i deleted ~/.cache/fontconfig already
<bqv>
yes, that'll do
<redmp>
however, none of the files in those paths are changing; i just `$ touch pins.nix` and then the whole thing rebuilds from scratch
<unclechu>
bqv: it didn’t help anyway
<bqv>
did you also unset all the fonts options?
<unclechu>
so, something with `fontconfig`...
<lordcirth>
Is cache going up and down? I can't ping it
<unclechu>
bqv: i found this directory `/etc/fonts/2.11/conf.d/` and there are few symbolic links
<unclechu>
bqv: like this one: `90-synthetic.conf -> /nix/store/4arv3m974gnhl5jyry94bbhp25lv20cr-fontconfig-2.13.92/etc/fonts/conf.d/90-synthetic.conf`
<bqv>
that's managed by nix, you can leave that
<bqv>
just unset all your fonts options, see if that helps
lsix has quit [Quit: WeeChat 2.9]
<bqv>
if it doesn't, i don't know what to advise, i'd just see if cole-h has any ideas
<unclechu>
bqv: i mean one weird fact is that it has `2.11` in its path, but symlinks are linked to `fontconfig-2.13.**`
<unclechu>
is this `2.11` supposed to be a fontconfig version?
<zeta_0>
i already have the emacs pkg lsp-java installed in home.nix, but i am not sure about how to go about installing Eclipse JDT Language Server, what would you guys recommend ?
<zeta_0>
bqv: are you responding to me ?
<adisbladis>
ConsumeristProvo: Maybe try altering the expression to install the firmware files inside a lib/firmware directory?
<adisbladis>
Other than that, I don't know.
<bqv>
yes
<danderson>
hm. I'm making a NixOS module that has to mess with the system's DNS configuration. Is there already a good facility within nixos to figure out what kind of DNS thing is in use?
<danderson>
(e.g. openresolv vs. systemd-resolved vs. NetworkManager)
<henri>
redmp: Do the hashes change when you rebuild?
<ConsumeristProvo>
how would I do that adisbladis? not really well-versed with Nix, just need to get this laptop to work
<redmp>
henri: looking back at the history, yeah, they are .. all of the subpackages..
<redmp>
good thought .. i'll have to figure out what content is changing i guess
<zeta_0>
bqv: ok, any tips, i'm stumped on where to go from here ?
<henri>
redmp: Good luck finding the impurity. Good candidates are `src = ./.;` and local overlays.
<henri>
danderson: It's a bit hacky but you can check the value of networking.networkmanager.dns
<bqv>
zeta_0: install the server using nix, generate a .el file to set it up using nix, and then import that .el file as part of your init.el
cyphase has joined #nixos
<ConsumeristProvo>
ok adisbladis, going to try that
asbachb has quit [Ping timeout: 245 seconds]
<adisbladis>
ConsumeristProvo: Mind you that's just an educated guess
Darkmatter66_ has joined #nixos
erasmas has quit [Quit: leaving]
rtjure has joined #nixos
<zeta_0>
bqv: that's really complicated, i thought that i'd just have to write a quick nix script.
<bqv>
you don't use home-manager?
<bqv>
if you do, you could potentially do that in one line of nix...
<redmp>
henri: thank you for the pointer; i'm going to try using the gitignore stuff to see if that cuts out the changing things.. it might be vim swapfiles or these logs i noticed are gitignored
<zeta_0>
bqv: yes, i'm using home-manager, i'm listening ...
<lordcirth>
Ok, that's weird, I set allowUnfree = true; in ~/.config/nixpkgs/config.nix, but it's still refusing... does "nix build" not reference that file?
<bqv>
lordcirth: if you want 'yourflake#package' to allowUnfree, then you have to make sure that package comes from a nixpkgs eval'd with allowUnfree
<bqv>
and package, in that context, will come from legacyPackages or packages
Izorkin has quit [Ping timeout: 260 seconds]
_rvl has quit [Ping timeout: 260 seconds]
Izorkin_ has joined #nixos
_rvl_ has joined #nixos
Izorkin_ is now known as Izorkin
<lordcirth>
bqv, This flake is currently defining it's own package directly
<lordcirth>
But it needs unrar
<zeta_0>
ya, i think the `Search NixOS packages` web search is not working correctly.
jybs| has joined #nixos
fendor_ has joined #nixos
jybs- has quit [Ping timeout: 260 seconds]
wrunt has quit [Ping timeout: 260 seconds]
worldofpeace_ has joined #nixos
<bqv>
lordcirth: actually, i think you can get away with something like `newpackage = (import inputs.nixpkgs { config.allowUnfree = true; }).callPackage <thepreviousderivation> {}`
werner291 has quit [Quit: werner291]
<lordcirth>
bqv, hmm, I will try!
wrunt has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
<zeta_0>
i forgot, what is the way to quickly install a package on the command line in a nix-shell, to test it out ?
worldofpeace_ has quit [Quit: worldofpeace_]
<V>
nix-shell -p package
<V>
you can specify more than one package after the -p
<zeta_0>
V: thanks, that's nice and simple.
codezero has quit [Quit: Ping timeout (120 seconds)]
<V>
And they're attributes, not package names (like you use when passing -A to nix-env)
codezero has joined #nixos
<lordcirth>
bqv, it's now erroring (from import) that currentSystem isn't defined
<bqv>
lordcirth: oh, pass system too
<zeta_0>
V: oh i see, thanks.
<bqv>
beside config
ardumont has quit [Ping timeout: 260 seconds]
worldofpeace_ has joined #nixos
<lordcirth>
Oh, I just realized, there is already a "with import" with system defined
<lordcirth>
I 'mkdir src' in unpackPhase, then try to copy it to ${out} in installPhase, but I get "cp: cannot stat 'src': No such file or directory"?? Is the pwd different between phases?
dyaso has quit [Ping timeout: 272 seconds]
<bqv>
you probably want $out, not ${out}
<lordcirth>
Oh, I do have $out actually
dyaso has joined #nixos
<energizer>
wonder why nix mixes syntax like that
<bqv>
there's a good reason
<energizer>
i'm curious what it is!
<lordcirth>
Well, it's not nix syntax. $out is just a bash var
<bqv>
$var is an env variable, so it's distinctly after-eval. ${var} is a nix variable, so it's distinctly during-eval
<bqv>
$out is a thing that isn't really final until eval is finished
<energizer>
i mean: ${out} is valid nix but it's also valid bash
<lordcirth>
Oh. Well yeah
<bqv>
it wouldn't be used by bash unless you quote the $
<bqv>
but i guess in that scenario ''${out} == $out
<bqv>
i hate everything about that expression
<bqv>
bbl
<energizer>
iow, nix couldve used a different syntax instead of the bash ${x} so bash could keep working without escapes, but for some reason they didnt do that
<infinisil>
Nix's escaping sure is rather complicated
<infinisil>
Btw:
<infinisil>
,escape
<{^_^}>
Usage: ,escape <text> to show how to escape the given text in Nix
dyaso has quit [Client Quit]
<lordcirth>
Huh, it seems like installPhase automatically cd'd to "src"?