<infinisil>
energizer: activation scripts should be as few and as atomic as possible, so whenever something goes wrong, the system isn't borked in some intermediate state
<infinisil>
And systemd units are already handled well there
<clever>
also, activation scripts run before the network is up
<clever>
so they cant clone anything
<cole-h>
Oh, well there ya go. Bad suggestion on my part x)
<infinisil>
No worries :)
is_null has quit [Ping timeout: 265 seconds]
artemist has quit [Remote host closed the connection]
<kreyren>
Someone on NixOS run there for me: `lsb_release -si`, `grep -o "^ID\=.*" /etc/os-release | sed s/ID=//gm`, thanku <3
* kreyren
needs to implement logic for NixOS users to use his script~
<simpson>
kreyren: `ID=nixos` is the relevant bit from /etc/os-release. NixOS doesn't do FHS or LSB, so there is not an lsb_release or any other LSB hints.
<kreyren>
simpson, thanks !
<hyper_ch>
lsb_release -si; grep -o "^ID\=.*" /etc/os-release | sed s/ID=//gm
<hyper_ch>
The program ‘lsb_release’ is currently not installed. You can install it by typing:
<ldlework>
What is the right thing to interpolate instead of hard coding this path in an activation step? "/home/ldlework/.config/Sabaki/settings.json"
o1lo01ol1o has joined #nixos
lc has joined #nixos
<lc>
Has anyone here gotten coc.nvim working for python in less than five pages of text?
KindOne has quit [Ping timeout: 265 seconds]
<lc>
I seriously just want linting in my neovim
KindOne has joined #nixos
<joehh1>
clever:thanks very much
o1lo01ol1o has quit [Ping timeout: 258 seconds]
KindTwo has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @utdemir opened pull request #89340 → Fix cookiecutter build by adding slugify dependency → https://git.io/Jfigw
lc has quit [Ping timeout: 260 seconds]
ddellacosta has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @jtojnar closed pull request #57683 → gdk-pixbuf: make x11 optional, disabled on darwin → https://git.io/fjeSH
slack1256 has quit [Remote host closed the connection]
<ldlework>
I am getting "The option `home.activation.sabaki-config.data' is used but not defined." even though the only use of that is: home.activation.sabaki-config = lib.mkIf ((length []) > 0) sabakiConfig;
<ldlework>
I have an option defined like: engines = mkOption { type = types.listOf engineOption; };
<ldlework>
Where engineOption is defined: engineOption = types.submodule { ... }
<{^_^}>
[nixpkgs] @jtojnar pushed to master « sysprof: fix build on i686 »: https://git.io/Jfi2g
<ldlework>
But I'm getting: The option value `mine.workstation.sabaki.engines' in `/nixcfg/modules/home/linux/workstation/katago/default.nix' is not of type `list of submodules'.
<ldlework>
what gives?
hexa- has quit [Client Quit]
hexa- has joined #nixos
<ldlework>
oh
slack1256 has joined #nixos
<slack1256>
Is there a easy way to have the types of the arguments required by a function on nix repl?
<slack1256>
builtins.typeOf only tells me it's a funcion, but not what to pass to it.
<OmnipotentEntity>
arguments in nix can be of any type, and there's no restriction to the types passed to a function? Like, you can do different things in a single function if given different types, using builtins.typeOf and an if statement for instance.
<OmnipotentEntity>
Are you using the default? If so, yes, if not no, unless one of your inputs is the derivation itself, then yes, because the sha changed.
<slack1256>
I won't pass a "string" to builtins.add event if the arguments can be any type.
<OmnipotentEntity>
wait, I have that backwards ldlework
lc has quit [Ping timeout: 256 seconds]
<OmnipotentEntity>
I was thinking about whether or not it would rebuild.
<energizer>
i dont see any config options for systemd-journal-upload.service in nixos. what are people using to push logs to a central location?
hyper_ch has joined #nixos
<OmnipotentEntity>
energizer, it's a small distribution, chances are no one's needed it yet, feel free to implement it and make a pull request. :)
<energizer>
i don't believe that
<slack1256>
nixops should have solved that somehow.
veleiro has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @JJJollyjim opened pull request #89342 → openresty: make compatible with nixos nginx module → https://git.io/JfiaD
palo1 has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
marusich has quit [Quit: Leaving]
user_0x58 has quit [Quit: Leaving]
jwaksbaum[m] has joined #nixos
dermetfan has joined #nixos
Ariakenom has joined #nixos
<{^_^}>
[nixpkgs] @Emantor opened pull request #89343 → makeself: add which to nativeBuildInputs → https://git.io/JfiVa
<{^_^}>
[nixpkgs] @JJJollyjim opened pull request #89344 → openresty: disable perl module by default → https://git.io/JfiVo
endformationage has quit [Quit: WeeChat 2.6]
dansho has quit [Ping timeout: 260 seconds]
<kini>
Can someone help me understand why ofBorg can't instantiate `acl2-minimal` in this build? https://logs.nix.ci/?key=nixos/nixpkgs.85903&attempt_id=7f85bf66-2a87-475a-9e95-473612d06a5f
<kini>
acl2-minimal is calling the package with `certifyBooks = false`, which means that the `glucose` attribute isn't put into `buildInputs`. So why does the instantiation of the package trigger the instantiation of glucose?
<lovesegfault>
how can I nix copy (not nix-copy-closure) a drv with all it's deps?
<lovesegfault>
cc. clever
<lovesegfault>
I know with nix-copy-closure --include-outputs work
<lovesegfault>
but I want to use the new tool
lightbulbjim has quit [Quit: Connection closed for inactivity]
<energizer>
lovesegfault: the fact that there's a --no-recursive option makes me think its recursive by default
<lovesegfault>
energizer: I think it should be, but it doesnt work
alexherbo2 has quit [Ping timeout: 265 seconds]
<lovesegfault>
if I `nix copy` it does nothing, while `nix-copy-closure` is copying 3000 paths
<cole-h>
Oh, huh. That seems like it should be supported out of the box... If you don't get a satisfying answer when clever gets back to you, I'd file an issue.
<lovesegfault>
Yeah, it also smells borked to me
<cole-h>
Could you try maybe adding that drv to your store and then running the same command? Maybe it's not doing anything because there's no drv in the local store and for whateve reason `nix copy` doesn't bring that over?
<cole-h>
(If it isn't already)
<lovesegfault>
cole-h: already have
<cole-h>
F
<lovesegfault>
nix copy brings over _only_ the drv
<lovesegfault>
no deps
inkbottle has quit [Quit: Konversation terminated!]
<{^_^}>
[nixpkgs] @peti closed pull request #85522 → bioconductor packages: 3.8 -> 3.10, update R packages, other fixes → https://git.io/JfUID
iceypoi has quit [Ping timeout: 252 seconds]
dansho has quit [Quit: Leaving]
noudle has quit []
Ariakenom has quit [Quit: WeeChat 2.7.1]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has joined #nixos
<qyliss>
Is there a stdenv that uses clang and lld? clangStdenv's binutils appear to still be GNU.
alexherbo2 has joined #nixos
<qyliss>
I tried (overrideCC stdenv llvmPackages_10.lldClang), but then the linker couldn't find symbols in dependencies (so I'm guessing it wasn't wrapped?)
<JJJollyjim>
Hi all
<JJJollyjim>
is there a way to build a python package that dooesn't have a setup.py
<JJJollyjim>
i wanna say something like "this folder of python code, with these dependencies from pythonPackages, should be in the environment"
<JJJollyjim>
for a simple script or whatever that isn't totally packages
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JfiKH
<betaboon>
clever: i read up on iscsi some more and saw multiple mentions of iscsi not being intended for connecting multiple clients to it at the same time.
<symphorien>
JJJollyjim: is it a script or a module ?
<JJJollyjim>
a module
<symphorien>
I see buildPythonPackage takes an argument format
<symphorien>
format ? "setuptools": Format of the source. Valid options are "setuptools", "pyproject", "flit", "wheel", and "other". "setuptools" is for when the source has a setup.py and setuptools is used to build a wheel, flit, in case flit should be used to build a wheel, and wheel in case a wheel is provided. Use other when a custom buildPhase and/or installPhase is needed.
<symphorien>
I think you want "other"
<JJJollyjim>
yeah i was just investigating that
<symphorien>
note that it does not make sense to put a package "in the environment"
<symphorien>
you can put a python with this package available in the environment (with python.withPackage)
<JJJollyjim>
(i mean i want to be able to pass it to withPackages, then import it by name)
lord| has quit [Ping timeout: 256 seconds]
<JJJollyjim>
👍️
<JJJollyjim>
so for a trivial thing i guess i want an empty buildphase
<symphorien>
probably
<symphorien>
and installPhase would be just copying to the right folder in $out
<JJJollyjim>
oh "the right folder" seems hard to determine
<JJJollyjim>
is that passed as an envvar?
<symphorien>
build an other python package and have a look :)
lord| has joined #nixos
<JJJollyjim>
looking at a real package it's lib/python3.7/site-packages/flask/
<symphorien>
there is a variable for site-packages
<JJJollyjim>
so i'm hoping there's an envvar that includes the python version
<bahamas>
hello. I'm running `nixos-generate -f qcow` to generate a NixOS image, but I don't get any output. should the script output a path to the resulting file?
agsdheidjd has quit [Ping timeout: 246 seconds]
kenran has joined #nixos
agsdheidjd has joined #nixos
<kenran>
I'm getting this error while doing `nix-env -u` (or other things): opening lock file '/nix/store/biwv5cmm1n3nrfcr3zlivcnh3b25c9jf-source.drv.lock': Permission denied. This file doesn't even seem to exist. I'm on macOS Catalina, and this started happening after 'nix-collect-garbage -d'
<kenran>
What can I do about it other that re-installing nix? :)
pjt_0141 has joined #nixos
avidd has joined #nixos
<bahamas>
kenran: there's a store repair command or something like that. I don't remember the name
<clever>
betaboon: thats because it assumes that each client will be writing, and they will corrupt the fs
<clever>
betaboon: if you flag it as readonly in the tgt config, that cant happen
<bahamas>
`nixos-generate -f vm-nogui` produces output, so the issue occurs only for some formats. can anyone give me any pointers on how to investigate this?
asymptotically has joined #nixos
immae has joined #nixos
<kenran>
bahamas: I tried 'sudo nix-store --verify --check-contents --repair', and it ran but I still get this error. I feel like re-installing might be the quickest option actually.
<bahamas>
kenran: btw, how did you make it work on Catalina? I know there was that problem with installing stuff in the root
thc202 has joined #nixos
Ariakenom has quit [Quit: WeeChat 2.7.1]
<kenran>
bahamas: that was a while ago. I followed a comment in the gh issue which made me create a volume 'Nix' and then I could copy the saved store over
<{^_^}>
[nixpkgs] @bergey closed pull request #72004 → all firejail local includes should look in /etc/firejail → https://git.io/JeEs5
o1lo01ol1o has quit [Remote host closed the connection]
Ariakenom has joined #nixos
Neo-- has joined #nixos
Ariakenom has quit [Ping timeout: 260 seconds]
ph88^ has quit [Ping timeout: 272 seconds]
o1lo01ol1o has joined #nixos
cosimone has quit [Quit: Quit.]
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
<{^_^}>
[rfcs] @edolstra merged pull request #69 → Expand the RFC acronym at least once → https://git.io/JfiSu
<{^_^}>
[rfcs] @edolstra pushed commit from @andir to master « Expand the RFC acronym at least once (#69) »: https://git.io/Jfi9F
<bqv>
Ok I get that closing this speaks for itself, and I expected it to be closed anyway, but I was hoping for at least a comment https://github.com/NixOS/nix/issues/3612
<bqv>
App I'm using doesn't show the mention, my bad
o1lo01ol1o has quit [Remote host closed the connection]
cfricke has joined #nixos
<{^_^}>
[nixpkgs] @bjornfor merged pull request #89298 → zbar: use libintl on darwin → https://git.io/JfieN
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @soareschen to master « zbar: use libintl on darwin »: https://git.io/JfiHi
never_released has quit [Remote host closed the connection]
qz has quit [Ping timeout: 258 seconds]
m0rphism has quit [Ping timeout: 258 seconds]
never_released has joined #nixos
qz has joined #nixos
vidbina has quit [Ping timeout: 260 seconds]
m0rphism has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Neo-- has quit [Ping timeout: 265 seconds]
<nixbitcoin>
Can one make one option depend on another?
truckfump has joined #nixos
truckfump has quit [Remote host closed the connection]
cosimone has joined #nixos
<b42>
nixbitcoin: what do you mean?
<nixbitcoin>
Basically, that one can't set an option to enable unless another option is also enabled?
<{^_^}>
[nixpkgs] @wizeman opened pull request #89356 → fwupd: fix configuration on aarch64 → https://git.io/JfiQ4
<lassulus>
you can have options depend on each other, or other values
Avaq has quit [Remote host closed the connection]
<nixbitcoin>
How?
<simpson>
Sure, there are spots where something like `assert x -> y` happens, right? So if one option is set, and another isn't, then you'll get an assertion error.
<dminuoso>
simpson: *snarky* with custom algebraic data types this could be rejected statically!
<DigitalKiwi>
yay zfs snapshots accidentally deleted my firefox profile
<DigitalKiwi>
err to be clear i deleted it but because of zfs snapshots it was temporary
<lassulus>
that doesn't sound like what snapshots are supposed to do
<DigitalKiwi>
:D
<lassulus>
but okay :D
<dminuoso>
arent zfs snapshots atomic?
<simpson>
dminuoso: It *is* rejected statically, before any build actions happen, though?
<DigitalKiwi>
i launched firefox and have two profiles and accidentally hit the delete key on the one i use but because of zfs auto snapshots it was just a simple cp to fix
<dminuoso>
simpson: Oh it was just a joking reference to our discussion the other day about types and nix. Of course this is rejected at runtime, requiring the nix expression to be evaluated first.
<simpson>
Like, recall that NixOS modules come with their own type system, written in Nix. We could see these assertions as part of the shape determination of the type of the module, like refinement types.
<simpson>
dminuoso: Of course type systems
<simpson>
*must be evaluated. But yeah, whatever.
<dminuoso>
Didn't want to kick off a discussion again. Thought the reference was obvious.
sascha-grunert has joined #nixos
<simpson>
Then why say it?
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<{^_^}>
[hydra] @dasJ opened pull request #772 → Support multiple jobsets per Flake → https://git.io/JfiQP
<bbigras>
Any issue tracking that nixos-unstable is not building for 2 weeks?
<evils>
it has built, status.nixos.org isn't reporting age right
<bbigras>
oh nice. thank you
<evils>
still hasn't built in a few days, on the latest tracking issue someone asked about the age report, something to do with the scraper and they pointed to the grafana
simpson has quit [Remote host closed the connection]
<infandum>
Is anyone able to install Rhdf5lib? It's failing for me with applying the patch with a HUNK #1 failed. If I override the patch, it wants zlib even if zlib is put in buildInputs and nativeBuildInputs
mykiwi has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
Cadey1 has quit [Quit: Idle for 30+ days]
Ariakenom has quit [Ping timeout: 264 seconds]
AmitLevy[m] has quit [Quit: Idle for 30+ days]
thequux[m] has quit [Quit: Idle for 30+ days]
Null_A[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
virtusviri7321[m has quit [Quit: Idle for 30+ days]
ailiev[m] has quit [Quit: Idle for 30+ days]
mindtree[m] has quit [Quit: Idle for 30+ days]
tunx0000[m] has quit [Quit: Idle for 30+ days]
pleeplop has quit [Quit: Idle for 30+ days]
alexgood has quit [Quit: Idle for 30+ days]
killercup[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
MichalLaskus[m] has quit [Quit: Idle for 30+ days]
fasd has quit [Quit: Idle for 30+ days]
korrosive[m] has quit [Quit: Idle for 30+ days]
grahamc[m] has quit [Quit: Idle for 30+ days]
leonardp has quit [Quit: Idle for 30+ days]
boogiewoogie[m]1 has quit [Quit: Idle for 30+ days]
arcnmx has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
lycium[m] has quit [Quit: Idle for 30+ days]
ggpeti[m]1 has quit [Quit: Idle for 30+ days]
chip[m] has quit [Quit: Idle for 30+ days]
counterfactual[m has quit [Quit: Idle for 30+ days]
yeoldboogiewoogi has quit [Quit: Idle for 30+ days]
IslandUsurper[m] has quit [Quit: Idle for 30+ days]
aniketd[m] has quit [Quit: Idle for 30+ days]
rendeko[m] has quit [Quit: Idle for 30+ days]
das-g[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
<{^_^}>
[nixpkgs] @bhipple pushed to release-20.03 « colormake: use fetchFromGitHub »: https://git.io/JfiFu
<{^_^}>
[nixpkgs] @bhipple pushed to release-20.03 « go-bindata: use fetchFromGitHub »: https://git.io/JfiFr
<srhb>
jakob_rs: Logs would probably be informative here. Could be anything from oomkill to.. I don't know :)
<fresheyeball>
but if I pass --arg isJS true it fails
<fresheyeball>
I cannot see what is wrong, my main project works fine, and it's the same nix-pkgs hash and everything
morgrimm has joined #nixos
Rovanion has joined #nixos
<infandum>
srhb: Yes
<jakob_rs>
fwiw the radeon graphics have been problematic before, but I have little reason to believe that must be why this happened
<morgrimm>
Morning folks - is anyone using a solid audio production or podcasting setup primarily on NixOS?
<jakob_rs>
"Reached target Shutdown" this sounds kinda bad
<morgrimm>
I'm trying to test the waters for moving my setup from windows, if support is there enough to do that
<srhb>
infandum: I'd guess a treewide rPackages bump that didn't test it?
<LevelChart8>
Are there particularities to NixOS that would create issues with IMAP/email ports? I am able to connect web mail accounts in Windows and Mac using the same connection information, but Claws Mail in NixOS cannot reach the server.
<LevelChart8>
I am certain the that server URLs and ports are correct
<srhb>
morgrimm: I don't personally, but maybe look into the people who use musnix for overlap
<jakob_rs>
It looks like NixOS accidentally killed absolutely everything
<lassulus>
LevelChart8: you could try connecting via nc/openssl directly
<LevelChart8>
Ok.
<lassulus>
but there should be nothing special about nixos in that regard
<srhb>
jakob_rs: Unless you changed something related to the display manager, I don't think that should ever shut down, so something's already gone wrong at this point in the log.
<infandum>
Where can I find the .rej files from the failed patch in nix?
<ebopp>
I am trying to package a (proprietary) Qt app. Its deb package vendors a lot of .so files, however, I tried to link the binary to Qt on nixpkgs. Unfortunately, it errors out at runtime with an undefined symbol _ZTIN4QtTD5QFileE. checked with nm the symbol is present in the bundled libQt5Core.so.5, but not in the one from nixpkgs. Is there any way around that, if I can't compile the application?
floscr has quit [Ping timeout: 260 seconds]
kamid has joined #nixos
LevelChart8 has joined #nixos
bvdw has quit [Remote host closed the connection]
bvdw has joined #nixos
jakob_rs has quit [Ping timeout: 256 seconds]
exel[m] has joined #nixos
<ph88^>
ebopp, i think you can make your own cache for binaries
jakob_rs has joined #nixos
<{^_^}>
[nixpkgs] @patrl opened pull request #89364 → Update exult to 1.6 → https://git.io/JfiNQ
<infandum>
I found it, you need to use -K and it'll be in /tmp
<{^_^}>
[nixpkgs] @jakobrs opened pull request #89365 → nixos/manual: Document `boot.debug1mounts` and clarify what `exit` does with `shell_on_fail` → https://git.io/JfiNp
<srid>
is it advisable to share /nix between multiple machines?
<ebopp>
ph88^: caching is not really my problem. I just wonder how to get a fitting Qt version into the package. whether to use the vendored one or try to link against nixpkgs' Qt
<{^_^}>
[nixpkgs] @neilmayhew opened pull request #89367 → multipath-tools: Fix build failure due to GZIP make var → https://git.io/JfixA
oida has joined #nixos
Neo-- has joined #nixos
<wedens[m]>
is there some way to avoid orphan dependencies when using substituteAll?
<wedens[m]>
something that fails a build if placeholder is not filled or dependency doesn't have any placeholders
markus1199 has quit [Ping timeout: 260 seconds]
ebopp has quit [Quit: leaving]
justanotheruser has joined #nixos
lukash_ is now known as lukash_|away
<srhb>
wedens[m]: Not really. You'd have to roll your own basically. You can read more discussion of this from following links to prs/issues from here: https://github.com/NixOS/nixpkgs/issues/21195
<{^_^}>
#21195 (by matthewbauer, 3 years ago, closed): substituteInPlace: no warning when "--replace" doesn't match
andreas303 has joined #nixos
<betaboon>
clever: i got a working solution (based on nfs for now) thanks to your input :)
markus1189 has joined #nixos
KeiraT has joined #nixos
<fresheyeball>
so I just realized, I have been using packageSourceOverrides
<fresheyeball>
and maybe callCabal2nix does work with ghcjs?
<fresheyeball>
what does .extend do vs using .overrides in haskell nix
<fresheyeball>
?
proofofkeags has quit [Remote host closed the connection]
<fresheyeball>
you need to make sure hpack on the ghcjs set is actual ghc
Cale has quit [Ping timeout: 260 seconds]
<hir12111>
Hello, I'm having links collisions while installing several packages, is there a way to prevent linking some of the files in the output path? (without depending on envs)
asymptotically has joined #nixos
<infinisil>
hir12111: To avoid collisions you usually want to use `lib.hiPrio` or `lib.lowPrio` on one of the colliding packages
<hir12111>
atm I am using the meta.priority attribute to do so, but it doesn't seem scalable, I would prefer to just not link non interesting files
fendor_ is now known as fendor
<infinisil>
hir12111: pkgs.buildEnv is what does the linking together, and it has the pathsToLink parameter that tells it which subpaths to consider
<infinisil>
Not sure what your context is, but if you can control that, you can only whitelist the paths you care about
<hir12111>
thanks for the reply, I think I'm going for buildEnv, the problem is that it hides the installed packages
<hir12111>
I created an scripts that requires to know all the installed packages (by using nix-env -q --installed)
<hir12111>
but it wouldn't work if I depend on a env
<srhb>
hir12111: Yeah, you're running short of options. I think the last one would be to shadow all of those packages with versions that retain the name but remove the files you don't want/need from the packages you want to lose in the resolution. That's a lot of work though. Depending on what packages we're talking about, maybe they should even be split up in a more sensible way, if you have a lot of
<hazel>
also for the record thank this IRC for being so helpful over the last few days
<hir12111>
hazel: what network manager are you using? I think you would need to enable it explicitly e.g: networking.networkmanager.enable = true;
plutes has quit [Quit: If you judge me now, you have judge me prematurely.]
<hazel>
I did that yes
<srhb>
hazel: If /etc/resolv.conf does not reflect those changes, I imagine it's because your network manager of choice is actually overwriting it with whatever it got from DHCP
<hazel>
I'm using resolvconf for /etc/resolv.conf since WireGuard depends on itorres
<srhb>
hazel: networking.nameservers does not interact with them directly to override things such as this.
<hazel>
it! it! my bad.
<hazel>
autocomplete...
<srhb>
Seems to be going around. :-)
<srhb>
hazel: The "solution" is probably to configure whatever actually updates the resolv.conf file to take into account your change, instead of networking.nameservers
plutes has joined #nixos
<hazel>
where would that be?
<{^_^}>
[nixpkgs] @markuskowa pushed 0 commits to revert-69398-fancontrol: https://git.io/JfPeJ
plutes has quit [Max SendQ exceeded]
<srhb>
hazel: I imagine you'd have to see whether that can be overridden in networkmanager (if that's what you're using) either declaratively or imperatively.
plutes has joined #nixos
drewr has quit [Ping timeout: 258 seconds]
<hazel>
had to change it from DHCP to DHCP (addresses only)
<srhb>
hazel: Wait, did you have networking.resolvconf.enable = true? I think that should prevent networkmanager from changing it, so maybe I'm leading you on a wild goose chase.
hazel has quit [Remote host closed the connection]
<judson>
Building expressions for .debs - is the practice to fetchUrl the deb directly? I've got default instructions that involve adding to sources.list.d/
<cole-h>
Is there any reason it can't be built from source?
user_0x58 has joined #nixos
eoli3n_ has quit [Ping timeout: 264 seconds]
marusich has joined #nixos
avidd- has joined #nixos
zupo has joined #nixos
chpatrick has joined #nixos
<chpatrick>
hi, do you know how I can make a PYTHONPATH that contains the python standard library?
<chpatrick>
I have `with python.pkgs; makePythonPath [ numpy ]`
<chpatrick>
which gives me `/nix/store/...-python3-3.7.6/lib/python3.7/site-packages:/nix/store/...-python3.7-numpy-1.18.1/lib/python3.7/site-packages`
<chpatrick>
but the first thing is an empty dummy folder
orivej has joined #nixos
plutes has quit [Remote host closed the connection]
user_0x58 has quit [Read error: Connection reset by peer]
maxdevjs has joined #nixos
user_0x58 has joined #nixos
<infinisil>
chpatrick: What do you need this for?
<chpatrick>
infinisil: I'd like to bake it into a C++ package that calls some python stuff
<chpatrick>
I want to pass it to Py_SetPath
domogled has joined #nixos
<infinisil>
Generally in nixpkgs you call `python.withPackages` to get a python binary that knows about the given packages
plutes has joined #nixos
<chpatrick>
infinisil: I don't want a python binary though, I want to embed the interpreter
<chpatrick>
and then use some python packages from ni
<chpatrick>
x
erasmas has quit [Read error: Connection reset by peer]
sigmundv__ has quit [Read error: Connection reset by peer]
sigmundv__ has joined #nixos
<{^_^}>
[nixpkgs] @toonn opened pull request #89369 → wire-desktop: linux 3.17.2924 -> 3.18.2925, mac 3.17.3666 -> 3.18.3728 → https://git.io/JfPfz
<infandum>
How can I have a package replace a package in pkgs = import <nixpkgs> { };? I tried overlays = [ (self: super { self.rPackages.oldPackage = newPackage }; ) ]; and put that in import <nixpkgs> { overlays = overlays; };, but it still thinks pkgs.rPackages.oldPackage is the original one, not the new one.
chloekek_ has joined #nixos
justanotheruser has quit [Ping timeout: 258 seconds]
lsix has quit [Ping timeout: 272 seconds]
<jasom>
Is there an easy way to show which version of nouveau has been installed over the last several invocations of nixos-rebuild? I'm getting some serious instability in it and would like to move backwards or forwards in versions.
<fps>
jasom: i guess you could follow the links for the system generations and see what's in there
FRidh has quit [Quit: Konversation terminated!]
gentauro has quit [Ping timeout: 272 seconds]
burkelibbey_ has joined #nixos
lsix has joined #nixos
Maxdamantus has quit [Ping timeout: 272 seconds]
<srhb>
jasom: Yeah, something like for s in /nix/var/nix/profiles/system*; do echo $s: $(nix-store -qR $s | grep nouveau); done -- refine to taste.
Maxdamantus has joined #nixos
<infinisil>
chpatrick: Hm, not entirely sure how that would work, but sorry I don't see a way to get python's standard library path. Maybe that's not even possible because python is cpython in nixpkgs by default, which probably doesn't use .py files at runtime
<chpatrick>
infinisil: hmm the standard library appears to be in ${python}/lib/${python.libPrefix}
Avaq has quit [Remote host closed the connection]
Avaq has joined #nixos
<{^_^}>
[nixpkgs] @toonn opened pull request #89370 → wire-desktop: linux 3.17.2924 -> 3.18.2925, mac 3.17.3666 -> 3.18.3728 → https://git.io/JfPfy
<burkelibbey_>
I'm debugging an issue where a file referenced by local path doesn't match the copy in the Nix store, and Nix isn't picking up on it until I change the file or its mtime or whatever. Does this ring any bells for anyone?
<srhb>
burkelibbey_: As in, you have something like ./bar referenced, and it is different from the corresponding store path?
<simpson>
chpatrick: You'll probably want CPython's shared objects, which are also binary and are going to be near the python executable.
<burkelibbey_>
./Gemfile.lock specifically but yes
<simpson>
In particular, it seems that lib/libpython3.so is in the same derivation as bin/python3.
<srhb>
burkelibbey_: The specific name makes me think maybe it's par of a fixed output derivation (some gem-to-nix thing?)
<srhb>
burkelibbey_: Is the store path and the ./Gemfile.lock separated by eg. a sha256 somewhere?
<srhb>
burkelibbey_: That wouldn't explain mtime fixing it, hm. That sounds like caching going on, which I have not seen with plain file references, I think.
<burkelibbey_>
srhb: ok that's a good sanity check and starting point, thanks. I'll keep digging. I'm pretty sure I'm not using this in a fixed-output context...
<srhb>
burkelibbey_: Yeah, I don't think it rings any bells right now. Flakes are not involved either?
drakonis has joined #nixos
<burkelibbey_>
srhb: correct, no flakes
<srhb>
Yeah no, no immediate ideas. Perhaps someone else can weigh in.
<srhb>
burkelibbey_: Can you reproduce this in a simple nix repl?
<srhb>
To perhaps narrow down.
<burkelibbey_>
srhb: good idea, and that was my next plan. just wanted to make sure it wasn't one of those "oh yeah you just have to watch out for _____" things
<LevelChart8>
I am trying to build a React Native Android project on NixOS. It would build on OSX by running "npm run android". I pulled it into NixOS and added a shell.nix to the repo root. The contents are from the "Building Android on NixOS" on this page: https://nixos.wiki/wiki/Android -- When I run "nix-shell --pure shell.nix" it appears to compile as expected, but then leaves me at a command prompt within which npm commands dont
agsdheidjd has joined #nixos
KindTwo is now known as KindOne
<{^_^}>
[nixpkgs] @eadwu closed pull request #89368 → gzip: set default flag through alias → https://git.io/Jfij0
leah2 has quit [Ping timeout: 260 seconds]
proofofkeags has quit [Remote host closed the connection]
erasmas has joined #nixos
<fps>
LevelChart8: i think that wiki article is about building the android AOSP operating system, no?
orivej has quit [Ping timeout: 258 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teej has quit []
proofofkeags has joined #nixos
proofofkeags has quit [Remote host closed the connection]
<irimi1>
Hi! I set up NixOS on my main machine a few weeks ago and I’m having trouble using WireGuard. I can set up my config using wg-quick and everything, but DNS resolution seems to fail afterwards and internet access fails. I’m using networkmanager and haven’t messed with the network setup otherwise. Can anyone help me understand what’s going wrong?
KindOne has quit [Ping timeout: 256 seconds]
LevelChart8 has quit [Ping timeout: 258 seconds]
Thra11 has joined #nixos
KindTwo is now known as KindOne
hir12111 has quit [Quit: WeeChat 2.8]
<jtojnar>
Izorkin: any context?
gulplante has quit [Quit: WeeChat 2.7.1]
<{^_^}>
[nixpkgs] @gazally closed pull request #64384 → nixos/zerotierone: Sandbox the systemd service → https://git.io/fjivj
eoli3n_ has joined #nixos
drakonis_ has joined #nixos
<Izorkin>
jtojnar: ? I try to cleanup build configuration.
zupo has joined #nixos
drakonis has quit [Ping timeout: 246 seconds]
fendor has quit [Remote host closed the connection]
teej has joined #nixos
fendor has joined #nixos
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « lightstep-tracer-cpp: 0.12.0 -> 0.13.0 »: https://git.io/JfPTh
<jtojnar>
Izorkin: not really familiar with that part, it would be nice to see what is the purpose of the removed code and/or why it is not need any more
<{^_^}>
[nixpkgs] @jonringer merged pull request #89369 → wire-desktop: linux 3.17.2924 -> 3.18.2925, mac 3.17.3666 -> 3.18.3728 → https://git.io/JfPfz
<infinisil>
TheSirC[m]: Oh don't use nix-env to install libraries
<infinisil>
,libraries TheSirC[m]
<{^_^}>
TheSirC[m]: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
camsbury has quit [Remote host closed the connection]
<TheSirC[m]>
Oh?
<TheSirC[m]>
How should I do it ?
<infinisil>
TheSirC[m]: See the link the bot posted
<TheSirC[m]>
What bot...
<gchristensen>
{^_^}
<TheSirC[m]>
Wait I am missing something on the chat ?
meh` has quit [Ping timeout: 260 seconds]
infandum has quit [Remote host closed the connection]
<TheSirC[m]>
Wait...why am I not seeing this in the matric cxhat
alp has quit [Ping timeout: 246 seconds]
<{^_^}>
[nix] @matthewbauer opened pull request #3652 → Provide better error message when hash type is unknown → https://git.io/JfPIK
<TheSirC[m]>
infinisil: Still no success with `nix-shell -p alsaOss alsaLib alsaPlugins alsaTools alsaUtils pkgconf`
<infinisil>
TheSirC[m]: It's pkgconfig
<infinisil>
Previously I thought you were just missing two letters, but apparently pkgconf is a thing too
<ldlework>
I am making some option declarations. I have a submodule which has a variety of options. Each of the submodule's options have defaults. But Nix complains that the submodule itself isn't defined.
<infinisil>
ldlework: default = {} at the submodule mkOption
<freeman42x[m]>
is it possible to do it with an inline expression somehow?
agsdheidjd has joined #nixos
<fresheyeball>
freeman42x[m]: easiest way is to import nixpkgs a second time, with a hash that has cabal 3.0.0.0
<fresheyeball>
and then just reference it there
<fresheyeball>
OR
<fresheyeball>
move you main nixpkgs hash to a newer one
<fresheyeball>
also just in general
<freeman42x[m]>
fresheyeball: I tried changing that nixpkgs sha at the top and it does nothing, it seems to default to what is in front of it
<fresheyeball>
freeman42x[m]: did you change the sha256?
<freeman42x[m]>
20.03 seems to be having cabal-install 3.0.0.0
<fresheyeball>
if you didn't also update the sha256, nix will just trust you that the source you pointed at didn't change
<freeman42x[m]>
ah, no, I did not, I thought that changing the sha would trigger a conflict of sha256
<fresheyeball>
freeman42x[m]: nope!
<freeman42x[m]>
i only changed the git commit sha
<fresheyeball>
I find this to be a bad UX issue with fetchFromGitHb and friends
<fresheyeball>
I use builtins.fetchGit usually, because you don't pass a hash, it just takes the rev
kamid has quit [Ping timeout: 272 seconds]
fendor has quit [Read error: Connection reset by peer]
<freeman42x[m]>
fresheyeball: unfortunately changing to 20.03 won't work since project depends on a recent merge into nixpkgs. so i need to do the 2nd thing you mentioned
<fresheyeball>
freeman42x[m]: no worries, it should work fine
<freeman42x[m]>
how can I do this: import nixpkgs a second time, with a hash that has cabal 3.0.0.0 and reference it there?
<lovesegfault>
andi-: is my "network name" the iface name (e.g. wlan0)?
plutes has joined #nixos
<andi->
no
<andi->
it is the name of the network unit file name
<andi->
40-main might be a safe (undocumented?) bet in the case of NixOS
eoli3n_ has quit [Ping timeout: 260 seconds]
<lovesegfault>
Oh, interesting
<lovesegfault>
Also, why should I use .routes and not .gateway?
<andi->
you can do that as wekk
<andi->
IIRC Gateway= is just a shorthand for the routes
<lovesegfault>
then why isn't it sufficient to add to networking.interfaces.<name>.routes?
<andi->
does that translate to networkd or some weird scripted networking?
* lovesegfault
shrugs
Rusty1 has joined #nixos
<lovesegfault>
My understand is if useNetworkd is enabled it would end up in networkd stuff
<lovesegfault>
maybe flokli knows
chloekek has quit [Ping timeout: 264 seconds]
<andi->
the last time we had a discussion about moving away from the scripted network interface some people were reluctant because they just have some manual commands somewhere.. If we were to deprecate the scripted networking I'd be more motivated to make those options work better.. until that happens I just don't use any of those network abstractions besides generating networkd files.
<lovesegfault>
Okay, a gateway is just a route per man 5 systemd.network
<lovesegfault>
The gateway address, which must be in the format described in inet_pton(3). This is a short-hand for a [Route] section only containing a Gateway key. This option may be specified more than once.
<flokli>
lovesegfault: I think you can just keep setting networking.defaultGateway. Take a look at nixos/tests/networking.nix, the "static" test
<andi->
That isn't supported with networkd. It will throw an error and tell you how to fix it.
<flokli>
it adds [Route]\nGateway=$ip\nGatewayOnLin=false to all .network files, and surprisingly does the right thing
<lovesegfault>
andi-: so, it throws an error but does _not_ say how to fix :P
<lovesegfault>
- networking.defaultGateway.interface is not supported by networkd.
<lovesegfault>
it just says this
<lovesegfault>
flokli: I wonder how that test passes, it really shouldn't
<lovesegfault>
flokli: Ah, the issue is setting defaultGateway.interface
emilsp has quit [Quit: bye]
<lovesegfault>
let's see what happen s if I nuke that
emilsp has joined #nixos
plutes has quit [Ping timeout: 246 seconds]
LevelChart8 has quit [Ping timeout: 246 seconds]
<steell>
how can i determine the commit that a channel is currently set to?
<{^_^}>
[nixos-org-configurations] @LnL7 opened pull request #113 → remove custom registry from channel exporter → https://git.io/JfPYy
<lovesegfault>
steell: status.nixos.org
<steell>
lovesegfault: sorry, i mean on my system
hazel has joined #nixos
<steell>
i want to upgrade my channel but make a pin of it for a package im developing
<hazel>
so i'm trying to install ibus, but the default ibus package that gets pulled by `i18n.inputMethod.enabled = "ibus"` doesn't have wayland support
<hazel>
there's an override flag `withWayland`; how do I enable it?
<energizer>
does flakes get rid of things that look like `super.ibus.override { withWayland = true; }`? it always seemed weird to me that i'm overriding the result of calling a function instead of just calling the function with the right arguments in the first place
cyphase has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #nixos
hazel has quit [Remote host closed the connection]
simukis__ has joined #nixos
quinn has joined #nixos
simukis_ has quit [Ping timeout: 256 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
jb55 has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Ping timeout: 264 seconds]
sigmundv_ has joined #nixos
<andi->
no
sigmundv__ has quit [Ping timeout: 258 seconds]
<LevelChart8>
Has anyone here run Android simulators on NixOS?
dermetfan has quit [Ping timeout: 246 seconds]
cyphase has joined #nixos
jb55 has joined #nixos
justanotheruser has joined #nixos
philr has joined #nixos
CRTified has joined #nixos
<DigitalKiwi>
yes
Emiller88 has joined #nixos
<LevelChart8>
DigitalKiwi: I have android-studio installed, but when I run "npm run android", I get this error: "Couldn't start project on Android: spawn adb ENOENT"
<LevelChart8>
Do you know what this means?
mbrgm_ has joined #nixos
sigmundv_ has quit [Read error: Connection reset by peer]
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
sigmundv_ has joined #nixos
<slack1256>
LevelChart8: Do you have 'programs.adb.enable = true;' on your configuration.nix?
<energizer>
LevelChart8: ENOENT means "no such file or directory"
<energizer>
adb is "android debug bridge"
<energizer>
at a guess, maybe you don't have adb installed
ericsagnes has quit [Ping timeout: 260 seconds]
<LevelChart8>
slack1256: That seemed to be part of the solution.
<LevelChart8>
Now, it's saying I don't have an emulator installed.
<LevelChart8>
I suspect it's called: android-studio-emulator
<LevelChart8>
No...
nikivi has quit [Write error: Connection reset by peer]
matthiaskrgr has quit [Read error: Connection reset by peer]
<slack1256>
Do you have an device emulators installed from android-studio?
nikivi has joined #nixos
matthiaskrgr has joined #nixos
<LevelChart8>
I have android-studio installed but I did not open it after putting it in config
<slack1256>
Open it up, you have a "virtual device manager" inside.
<slack1256>
It will download api bundles, qemu images for you on your $HOME/android path by default.
<quinn>
how safe/unsafe is it to to add authorized_keys to public git?
MichaelRaskin has quit [Quit: MichaelRaskin]
<slack1256>
So there is nothing NixOS specific after this.
<LevelChart8>
Ok thank you.
<slack1256>
LevelChart8: Beware, android-studio is bloated.
<slack1256>
I use the "power saving mode" just to disable some background thread that pushes my machine to OOM. Then I barely can have firefox + emacs + android studio open on 5.6Gb machine and it's swapping sometimes.
<slack1256>
That is compiling to an physical phone. Compiling to a virtual devices takes more memory.
<slack1256>
Given that Android images are shipped as qemu images, see if having the 'kvm' module helps you.
orivej has quit [Ping timeout: 256 seconds]
agsdheidjd has quit [Ping timeout: 272 seconds]
<LevelChart8>
Did you buy a cheap android just for development?
<slack1256>
I had a huawei from 2017 already.
<slack1256>
Too bad it stopped getting updates at android 7, so I can only test against that API. Virtual devices for everything else.
orivej has joined #nixos
alp has quit [Ping timeout: 246 seconds]
<LevelChart8>
Looks like I need to do some major RAM upgrades.