CMCDragonkai1 has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @worldofpeace closed pull request #75462 → nixosTests.proxy: port to python → https://git.io/Je90a
nckx has quit [Ping timeout: 268 seconds]
sigmundv has joined #nixos
<dashkal>
My X server hangs the system on reboot. This is a very fresh install. Used Xorg/slim/xfce as my base, but I've seen this with lightdm and no desktop manager at all (the xterm in the corner). Where should I look to diagnose? The install disk does not have this problem.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvObq
nckx has joined #nixos
<xavierzwirtz[m]>
I am attempting to add support for using k3s for testing to kubenix, is there anyone who knows how to configure a NixOS machine to route requests from a hostname to k3s?
<xavierzwirtz[m]>
Pointers for what to even research would be welcome, this is not my baliwick
hoobershaggus has quit [Remote host closed the connection]
* samueldr
quickly introduces breakage
hoobershaggus has joined #nixos
jluttine has joined #nixos
<dashkal>
Meh, I think I'm defeated on this. X hangs the system when it shuts down no matter what I poke at here. But the install image doesn't have that problem. I didn't see anything special in the configurations on the install image, so I'm at a loss.
tdeo has joined #nixos
tdeo has quit [Changing host]
tdeo has joined #nixos
Rusty1 has quit [Remote host closed the connection]
mexisme_ has joined #nixos
<qyliss>
evanjs: I think requesting a review is always fine. I (and I suspect most other active contributors) consider it a CC rather than a thing I must do.
<qyliss>
I usually request reviews from anybody who's likely to care at all, because a) that means I'm less likely to have to revert later if they don't like it and b) it makes it more likely I'll get a review
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvObd
<qyliss>
and whether there are bi dependents
<aanderse>
scenario: you find a bug in a nixos module/package and decide to fix it... only to find out the file has 3 spaces for the first level of indentation
<aanderse>
:S
<jtojnar>
worldofpeace also probably need to update pygobject & pyatspi since r-ryantm blocks them
<worldofpeace>
Jan Tojnar: will look into that
<worldofpeace>
Jan Tojnar: oooh
<worldofpeace>
Test built the update gnome3 iso, it's now 1.3 GB
<dashkal>
Ok, progress. I've got my nvidia card working via bumblebee. Is there anything I can do to get (slow) glx running on the intel?
<dashkal>
Use case is a Hybrid intel/nvidia laptop
<lovesegfault>
dashkal: X or Wayland?
<dashkal>
X... I think. Easy way to check?
<dashkal>
I configured via xserver settings.
<lovesegfault>
samueldr: What DM are you using? Gnome, KDE, i3, sway, xmonad,...?
<samueldr>
lovesegfault: uh... "none", but my WM is awesome (literally and figuratively)
<samueldr>
why?
<samueldr>
if it's related to the intel hangs, I haven't run 5.x since early 5.3, but did get some short self-solvable hangs
Drakonis__ has joined #nixos
<lovesegfault>
samueldr: Sorry, I meant to tag dashkal, not you :)
<dashkal>
lovesegfault: LightDM / Xfce atm
<dashkal>
No attachment. Just a simple env to get a terminal.
<lovesegfault>
But yeah, now correctly tagging samueldr, those patches fixed 5.4.x hangs for me (the i915 ones, not the xfs one ofc)
<dashkal>
I intend to switch to xmonad once I get my X issues ironed out.
<samueldr>
I figured :)
<worldofpeace>
lovesegfault: OOh, nice
<lovesegfault>
dashkal: If you're running X then prime render offload should work for you?
<dashkal>
If I read the nvidia wiki page correctly, doesn't prime mode mean the nvidia card is always active (and so draining battery)?
<dashkal>
Even if not, following those instructions did not work for me, perhaps due to a failure to read it right or understand it. nvidia-settings would work under that configuration, but the glx context was only available if I used DISPLAY=:0.1
<lovesegfault>
I just disable my card with bbswitch since I use sway, so unfortunately I can't help much
<dashkal>
Drat. I can live without intel glx, but I was hoping I wouldn't have to. Having my terminal (alacritty) always under the nvidia would murder my battery life.
<gchristensen>
ehhh what nix isn't doing scheduled GC on bastion...
<evanjs>
wait, is there a way to switch between nvidia and intel on nixos without bumblebee or etc? I don't mind the battery life since I'm usually plugged in, but...
<lovesegfault>
worldofpeace, samueldr: I just got a goddamn freeze
<lovesegfault>
dammit
<lovesegfault>
first one in 4 days
<samueldr>
:|
<dashkal>
I thought so, evanjs, by just not specifying optirun, but if I try that, I just get complaints about "count't find RGB GLX visual".
<worldofpeace>
lovesegfault: oh the woes, the note in the release notes to stick with 4.19 for intel IGPU is going to be much appreciated :D
<dashkal>
I know intel has some gl capability, so I was hoping to use that for the terminal. I can always just keep a crappier terminal I suppose for the rare time I'm running on battery.
<lovesegfault>
worldofpeace: I want my wireguard on 5.6 though :(
<colemickens>
worldofpeace: this is a silly question but you were testing with `firefox` and not `firefox-bin`/`firefox-nightly`? I ask not because I doubt, but because I'm confused. (And I'm also assuming you tested on your Intel system too?)
<worldofpeace>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 201
<worldofpeace>
colemickens: I first tested with firefox-bin, then realized it was that, then used the regular FF
<worldofpeace>
then realized I wasn't using wayland...
<colemickens>
Ooooh. I hadn't thought about that too.
<{^_^}>
[nixpkgs] @jonringer pushed to master « tzupdate: 1.5.0 -> 2.0.0, use python3 »: https://git.io/Jv3vd
<ar>
i've had it working on r9 280x
<boomshroom>
Last I checked which cards amdgpu supports, it wasn't listed.
<ar>
iirc for some of the older ones you need a kernel option to enable support
<notgne2>
`"radeon.si_support=0" "amdgpu.si_support=1" "radeon.cik_support=0" "amdgpu.cik_support=1" "amdgpu.dc=1"` adding these to `boot.kernelParams` can sometimes help
<notgne2>
dont remember what dc does, but si and cik params are for enabling support on some older cards
<Izorkin>
Mic92: Please recheck recheck and #67931 and #78819
<jakobrs>
Is it possible to `import` a .drv as a derivation?
<cap_sensitive>
Hi. In nixos, How to rename net interface with udev rules? I've tried to use services.udev.extraRules, but no actual 99-local.rules was created
<jakobrs>
Yeah I get it, but it would be nice if I could just specify the output directly
<cap_sensitive>
lassulus: I think the problem is that after I run the nixos-rebuild command, I did a find / -name '99-local.*'. I then inspected all returned files, and all of them are empty
<cap_sensitive>
lassulus: Could you check if 99-local.rules is empty in your setup?
<lassulus>
the exptected lines are in /etc/udev/rules.d/99-local.rules
<lassulus>
/etc/udev/rules.d is a link to /etc/static/udev/rules.d
<srhb>
jakobrs: In a superficial sense, sure, but it breaks purity in funny ways. Like, what are the dependencies of the path in question.
<srhb>
jakobrs: (In some cases this might be OK when there are _no_ dependencies)
eoli3n_ has joined #nixos
<jakobrs>
srhb: I'd expect systemPackages to include the output's dependencies like it would any other package
<cap_sensitive>
lassulus: Ah thanks. I can see the expected udev rules inside that file. Still, for some mysterious reason, the net interface name doesn't change
<srhb>
jakobrs: But that's not how Nix works. You have to specify every dependency. For a built package, the dependencies are just incidental because eg $somefile in your path is linked to $someotherstorepath
<srhb>
jakobrs: Allowing it to pick up random stuff from your drive (which is what it would have to do, read all the links of the store path) is impure.
<srhb>
It's fundamentally not doable while retaining purity
<jakobrs>
srhb: What I'm describing is exactly what `nix-env -i` does when given an output
<jakobrs>
as in, nix-env -i ./result
<srhb>
jakobrs: No, that just creates a symlink
<srhb>
(Well, and a new generation)
<srhb>
jakobrs: What you're asking for is using a nix expression to do the same
<cap_sensitive>
So it must be hardware-specific? (I was using Arch linux prior to switch to nixos, and I had similar udev rules, and I don't remember having this problem)
<lassulus>
¯\_(ツ)_/¯
<srhb>
jakobrs: You can create that symlink just fine if you want though :)
<srhb>
jakobrs: But you can't do it from systemPackages, at least, not easily and safely..
<jakobrs>
srhb: What's the difference between creating a symlink and adding it to systemPackages though?
m0rphism has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
<shyim>
Is it known that nvidia driver oes not work with kernel 5.5? 🤔
<srhb>
jakobrs: I'm finding it difficult to really sum up the exact difference... But: systemPackages will realise storepaths if it has to.
bvdw has joined #nixos
<srhb>
jakobrs: Maybe once I've had more coffee :-p
mananamenos has quit [Remote host closed the connection]
werner291 has joined #nixos
tilcreator has joined #nixos
lailaaa_19 has joined #nixos
<lailaaa_19>
hi
<lailaaa_19>
im new here im 19 years old i do some special videos over internet for oney if you are interested this is what i look like https://bit.ly/3aXyCwn
<mudri>
What's the best way of installing an application from pypi that doesn't appear in nixpkgs? It looks like just installing pip and doing `pip install` doesn't work.
cap_sensitive has quit [Ping timeout: 272 seconds]
<ddima>
karantan: If sth is already packaged, I'd go with those and handle the remaining ones separately or preferably write derivations for those (you can manage local derivations without having to get them merged quite easily).
<ddima>
but worst case, you can still fall back to the venv/virtualenv-esque approach.
<mudri>
This sounds doable. Thanks!
cosimone has joined #nixos
<karantan>
I actually have one python package that I'm hosting (in private) packagecloud.io. So atm on ubuntu I do `apt-get install <my-package>`. Can I do something similar in NixOS?
cap_sensitive has joined #nixos
chromiumBishop has joined #nixos
<ddima>
karantan: generally, you can write your own derivations and import them as needed in your config, either as nixpkg overlays or just as is and you can host them where-ever, be it github or a private webserver, or as a nix-channel. it's quite flexible.
<karantan>
and then just use those derivations in configuraiton.nix so that I'll be able to use those package everywhere on my new nixos?
<karantan>
ok I will. thank you for your answers. I really appreciate it.
<ddima>
karantan: np. you will probably get more concrete questions once you actually try to do it - in which case this channel is also a good place to ask when trying to debug the nix code.
<karantan>
:thumbsup:
phdoerfler has joined #nixos
kleisli has quit [Ping timeout: 265 seconds]
vidbina has quit [Ping timeout: 268 seconds]
chagra has joined #nixos
sigmundv has joined #nixos
andi- has quit [Ping timeout: 272 seconds]
peelz has joined #nixos
<mudri>
ddima: When that section of the manual (using pip in a virtualenv) talks about a requirements.txt, what's that about? I was expecting to start up the nix-shell, and in it run `pip install mozregression`, in which case I wouldn't see a requirements.txt, as far as I understand.
<ddima>
mudri: you dont have to use requirements.txt, but it's a convention and feature of pip to install packages based on this file as a descriptor. you dont have to.
<mudri>
ddima: Put another way, where the example default.nix has a comment saying “the following packages are related to the dependencies of your python project.”, what should I do? *I* don't have a Python project, I'm just installing an executable.
<mudri>
Do I need to download the sources of `mozregression`?
<ddima>
mudri: this means native dependencies that pip wont install for you.
<mudri>
ddima: Aah, okay, and when it says `pip install -r requirements.txt`, it'll be fine to replace this with `pip install mozregression`?
<ddima>
like openssl. just start out with empty buildInputs and see if anything is missing.
<ddima>
mudri: yep.
<mudri>
Cheers, I'll give it a go.
<ddima>
err, well, not entirely empty - you still need python and the shellhook or virtualenv or whatever, but without all the rest ;)
<phdoerfler>
I'm in a "nix repl '<nixpkgs>'" session and when I try to get "pkgs.jetbrains.idea-community" I only get a meek "error: attribute 'jdk' missing, at /nix/store/fibn09njw6q4s284h4mv96i4bg6wbvgq-nixos-19.09.1977.1dadefec574/nixos/pkgs/top-level/all-packages.nix:18477:11". How do I pass it the jdk to use?
<mudri>
ddima: I've tried a couple of variations on this, all with the same result. Example: I used exactly the default.nix from the manual and created a requirements.txt containing the line “mozregression”. I then ran `nix-shell .`, giving the following output (no module named main): https://www.irccloud.com/pastebin/QhArKwpF/
orivej has joined #nixos
<mudri>
It's at least created a bunch of stuff in ./venv.
<jakobrs>
Thank you, I didn't realise you could use --realise with output paths.
<{^_^}>
[nixpkgs] @d-goldin opened pull request #78953 → doc: python: fixing mistake in venv example → https://git.io/Jv3qG
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<ddima>
mudri: trying to fix some of the parts that seemed confusing to you. given that you've just tried this for the first time with fresh eyes - feel free to comment/add other parts that were confusing ^
Ultrasauce_ is now known as Ultrasauce
<mudri>
ddima: Part of the problem is that there's no mention of it at the start of the Python section. It says something like “there's a difference between installing applications and installing libraries”, and then proceeds to explain libraries in great detail. It'd be good to have a forward reference to where applications are explained.
<{^_^}>
[nixpkgs] @peti pushed 125 commits to haskell-updates: https://git.io/Jv3qu
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/Jv3q6
<ddima>
mudri: Hm, I see what you mean. If you have a wording on your mind, feel free to drop as a comment in the PR. Though, imho virtualenv itself is somewhat orthogonal to the application vs library issue since its about nix packaged stuff and nix way vs more common free-style interactive enviroment (not nix way).
<{^_^}>
[nixpkgs] @andir merged pull request #78476 → nixos/networkd: add vrfConfig option for netdevs, add simple test → https://git.io/Jvq0q
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jv3q9
hyper_ch2 has quit [Remote host closed the connection]
<ddima>
mudri: doesn't help that in the properly rendered version there is no TOC for the section (generally, the manual layout is a bit confusing at times).
jakobrs has left #nixos [#nixos]
is_null has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @peti pushed commit from @Infinisil to haskell-updates « haskell generic-builder: Fix package conf handling »: https://git.io/Jv3qx
<chagra>
I guess they are not that many, I could go check them out file by file
<tilpner>
Oh, that must be new
<chagra>
but asking in case in the future I use some overlay that adds options and want to query them
<chagra>
it'd be a useful tool
<tilpner>
If there is no documentation for it, you can probably use Nix to list them
<chagra>
yeah that's what I'm asking
<chagra>
how can I tell nix to list them
<tilpner>
On NixOS it's: nix repl '<nixpkgs/nixos>'
<tilpner>
Then interactively explore the "options" value
<tilpner>
You can probably write an expression that gathers all of them in a list too
<chagra>
oh I see
<chagra>
many thanks!
<chagra>
I might just do that
<chagra>
sounds very useful
<chloekek>
Why does nix run --store bind mount everything in / and then do a chroot, instead of just bind mounting /nix/store?
<chloekek>
Nevermind, it’s explained in a comment.
<chagra>
follow up question, on the Nix-on-droid github page, the author refers to a talk they did in NixCon 2019. I can't seem to find footage of that. Were there some talks that were not recorded?
<peelz>
is this an error with the makefile or am I doing something wrong?
<mudri>
ddima: Is there a way to run applications installed like this outside the nix-shell and venv? I think they're doing funny stuff to my environment that makes the application not run properly.
<{^_^}>
[nixpkgs] @vbgl opened pull request #78956 → coqPackages.bignums: enable for Coq 8.11 → https://git.io/Jv3OJ
<ddima>
peelz: Ive not built zsh myself yet, so dont really know how they prep releases and so on, but looks like the "raw" source does not contain a configure script and whatever else.
<peelz>
hmm alright
<peelz>
how would I execute additional commands to generate the build scripts?
<ddima>
mudri: yeah, that would be already kinda a strong argument for packaging it. usually applications are wrapped in a way that assembles all the required environment which you could kinda cobble together with nix-shell, but that would be probably more effort than packaging ;)
<ddima>
peelz: you could add sth to one of the phases; https://nixos.org/nixpkgs/manual/#ssec-controlling-phases - but it is probably easier if you either figure out how to prepare a prepare a release for your own fork or fix your patches to run on the source they ship.
drakonis_ has joined #nixos
<peelz>
ddima: ah gotcha. Thanks, will look into it
<peelz>
ddima: I updated the patches to compile for zsh 5.7.1 -- seems to work. Thanks for the tip!
iyzsong has quit [Ping timeout: 246 seconds]
<ddima>
nice.
orivej has quit [Ping timeout: 268 seconds]
dansho has quit [Read error: Connection reset by peer]
dansho has joined #nixos
<peelz>
ddima: I'm thinking of baking in the zsh version into my config. Is it possible to make it issue a warning if the replaced version is more recent?
<ddima>
peelz: should be doable, have a look at the `lib.trace*` functions which you could wrap your expression in.
<peelz>
oh great
<peelz>
lib.debug.trace or lib.trace?
jakobrs has joined #nixos
<ddima>
peelz: heh, didn't know about lib.debug - but I assume most of the trace* functions are just re-exports either here or there.
<peelz>
oh nvm they're the same
<peelz>
Yeah exactly
ddellaco1 has joined #nixos
<jakobrs>
Is it possible to use Plasma 5.17 with NixOS 19.09?
<peelz>
ddima: what about version comparison?
chromiumBishop has quit [Ping timeout: 265 seconds]
<ddima>
peelz: there are some functions that can help with semantic version comparisons, like lib.versionAtLeast or versionOlder. But you can also write your own function.
<peelz>
oh thanks -- didn't see those
<{^_^}>
[nixpkgs] @FRidh merged pull request #56415 → nixos/jupyter: Fix documentation example for `jupyter.kernels` → https://git.io/fhNYI
drakonis_ has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed commit from @BenSchZA to master « nixos/jupyter: Fix documentation example for `jupyter.kernels` (#56415) »: https://git.io/Jv33o
dansho has quit [Read error: Connection reset by peer]
dansho_ has joined #nixos
gustavderdrache has joined #nixos
andi- has quit [Ping timeout: 272 seconds]
kiloreux has joined #nixos
<kiloreux>
How can I list all fonts on nixkgs?
<kiloreux>
I mean fonts available to be installed
<kiloreux>
Is there like a type when querying nixpkgs?
kiloreux has quit [Remote host closed the connection]
<clever>
kiloreux: i just tab-complete that kind of thing under: nix repl '<nixpkgs>'
<kiloreux>
clever, Thank you. That means you need to know the font name to begin with at least. Otherwise it lists everything.
<anohigisavay>
it's slow because i'm in China. nothing much i can do about it
<anohigisavay>
can i temporarily disable the cache and build packages locally?
<kiloreux>
clever, I am more interested in listing all fonts available on nix.
<clever>
kiloreux: nix-locate is about all you can use then, to search for any package that contains font files
endocrimes has quit [Quit: No Ping reply in 180 seconds.]
<fyuuri>
Does anybody know how to make fish functions defined in ~/.config/fish/functions work in fish? The config file ~/.config/fish/config.fish is loaded properly
<kiloreux>
clever, got any idea how to use it? I can only find nix-index when googling
kiloreux has quit [Remote host closed the connection]
<clever>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<genesis>
what is that format = "other" i found in many derivation now ?
anohigisavay has quit [Quit: Konversation terminated!]
smatting has joined #nixos
<Shoubit>
anohigisavay, yeah you can change your `substituters` to an empty list and that should do the trick. It's configured in configuration.nix under `nix.binaryCaches`, https://nixos.org/nixos/options.html#nix.
<ddima>
genesis: If you mean for python packages, then it configured which python packaging format to use, if none of the usual suspects apply, that's when you use other and define your own build and install phases.
stepcut has joined #nixos
<genesis>
oki i should use that perharps, but it seems to work without
<gustavderdrache>
are there handy instructions for adding nix-bash-completions to a non-nixos bash?
bobble84 has quit [Ping timeout: 260 seconds]
<gustavderdrache>
i installed it with nix-env -iA, but i don't know what line(s) i need to add to my bashrc
acarrico has joined #nixos
<clever>
gustavderdrache: do you see things in ~/.nix-profile/etc/ ?
<clever>
that are bash related
<gustavderdrache>
i've got a profile.d directory
<gustavderdrache>
checking what's in it now
<gustavderdrache>
there's a nix.sh that does some startup logic, but i don't see much reference to bash
<gustavderdrache>
i do have ~/.nix-profile/share/bash-completion, though
<clever>
that might be it
MinceR has joined #nixos
<gustavderdrache>
it's a directory, though, and i'm only familiar with sourcing single files to feed into completion
ixxie has joined #nixos
<evanjs>
re https://github.com/NixOS/nixpkgs/pull/78420#issuecomment-580581757 - trying to do this right now, but while unpacking data.tar.xz results in usr/share/{applications,doc,gitkraken}, etc, unpacking the tarball only gives me what data.tar.xz would have under usr/share/gitkraken
<evanjs>
My question is, what's the most idiomatic way to say "okay, unpack this, and put it in the new directory $out/usr/share/gitkraken"? just making said directory and unpacking via tar in the unpackPhase?
<clever>
evanjs: pkgs.fetchzip with a postUnpack i'm thinking
ng0_ has joined #nixos
ng0_ has joined #nixos
ng0_ has quit [Changing host]
<gustavderdrache>
aha!
<gustavderdrache>
i needed to install nixpkgs.bashCompletion and now i have a bash_completion.sh
<evanjs>
clever: ahh didn't realize fetchzip works with, well, more than zip... :P
<clever>
evanjs: the name is misleading, it fetches anything, then runs the unpackPhase to $out, and adds zip support to the unpackPhase
<evanjs>
so like fetchanything,even zip :P
jakobrs has quit [Remote host closed the connection]
<clever>
evanjs: the reason its called fetchzip, is that a lot of websites auto-generating a zip for dl, include timestamps in the zip metadata
<clever>
evanjs: which breaks nix's hashing
<clever>
evanjs: so nix has to unpack, and hash the contents, rather then the zip itself
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<gustavderdrache>
... and it's still not reading my profile's completions
<gustavderdrache>
oh well
ng0 has quit [Ping timeout: 272 seconds]
<clever>
gustavderdrache: i tend to find the completions a bigger hinderance, it stops me from completing perfectly valid commands, because i know the command better then the author of the completion code
<gustavderdrache>
i got seduced into completions by kubectl since it has some really tediously long invocations
<gustavderdrache>
and now i'm just like "nix re<TAB>" and get upset that it completes "result" instead of "repl"
<clever>
heh
<gustavderdrache>
[insert joke about my being a lazy ubuntu user here]
<clever>
gustavderdrache: my problem, is that i try to complete `nix-env --profile /nix/var/nix/profiles/system` and it wont let me, because the author doesnt know all of the edge-cases
<clever>
so i'm constantly having to throw an `echo ` at the start of a cmd, just to be able to complete filenames
<gustavderdrache>
bleah
<{^_^}>
[nixpkgs] @peti pushed to master « maude: update from version 2.7.1 to 3.0 (including full-maude) »: https://git.io/Jv3GV
<genesis>
i try to write a derivation for a python program using pyqt
<genesis>
my question is about the right wrapping since if i use wrapPythonProgramsIn "$out/" "$pythonPath"
vidbina has joined #nixos
<__monty__>
I don't think I could live without ssh path completions for rsync : )
drakonis has quit [Ping timeout: 268 seconds]
<genesis>
i get the https://nixos.wiki/wiki/Qt#qt.qpa.plugin:_Could_not_find_the_Qt_platform_plugin_.22xcb.22_in_.22.22
gxt has quit [Ping timeout: 240 seconds]
<genesis>
but if i use the wrapQtAppsHook i don't get pyqt.
neeasade has quit [Ping timeout: 272 seconds]
ng0 has quit [Quit: leaving]
hyper_ch2 has quit [Remote host closed the connection]
<dminuoso>
Gah, I have liblapack in my buildInputs, when I compile hmatrix I get `<command line>: can't load .so/.DLL for: liblapack.so (liblapack.so: cannot open shared object file: No such file or directory)`
<dminuoso>
That is, when I build my cabal v2-* project
<virus_dave>
hey folks, qq. Checked docs, but didn't quickly find an answer. I have a deterministic derivation, and have `nix-build` it fine, so i have my `./result` symlink.
lsix has joined #nixos
<virus_dave>
I want to make a Fixed Output Derivation for this, so how can i easily tell nix "give me the recursive hash ouf the output" so i can add it to the deritivation?
iqubic` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
<virus_dave>
For posterity, it looks like "nix-hash --type sha256 result/ --base32" did what i wanted.
<LinuxHackerman>
virus_dave: the most common approach is to set an incorrect hash and then copy the observed one from the error message.
<virus_dave>
hm. i guess that would have worked also. :D
Izorkin has quit [Ping timeout: 240 seconds]
Izorkin has joined #nixos
<qyliss>
,tofu
<{^_^}>
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. See: tofu-vim
<LinuxHackerman>
(as far as I've observed, at least)
<LinuxHackerman>
your approach doesn't work when the sandbox is in use, if I've understood it correctly
<gchristensen>
oh noes a hacker
Drakonis__ has joined #nixos
Chiliparrot has joined #nixos
drew__b has joined #nixos
andymandias_ has joined #nixos
andymandias has quit [Ping timeout: 268 seconds]
opthomasprime has quit [Ping timeout: 265 seconds]
<{^_^}>
gustavderdrache's karma got increased to 4
lukash is now known as lukash|away
Naptra has quit [Quit: Leaving]
particle has joined #nixos
Drakonis__ is now known as drakonis
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nohTo has joined #nixos
Izorkin has quit [Ping timeout: 246 seconds]
Shoubit has quit [Quit: Leaving]
erasmas has joined #nixos
<jared-w>
gchristensen: is your website suffering from a broken redirect or is it just my browser being weird?
<nohTo>
Hey wonderful nixos people! Since Haskell support under Arch leaves much to desire, I'm thinking about using nix for haskell-* stuff. I would like to ask for your opinions on what the best way of doing that is.
<LinuxHackerman>
I'd switch to this name completely, but A) I don't have the domain name linuxhacker.man because MAN Group doesn't sell subdomains of .man and B) muh karma as sphalerite!
<jared-w>
(the homepage only goes to your docker container article for me)
Izorkin has joined #nixos
<gchristensen>
jared-w: that is what it does on purpose :P
<nohTo>
Should I use pacman to upgrade nix, or should I use nix itself for that?
<gchristensen>
jared-w: I didn't want to make a "home page"
<nohTo>
What about things like xmonad, better to install through nix or through pacman then? :/
<evanjs>
Hrm. Any ideas on how I might compile a program statically with uclibc?
<jared-w>
gchristensen: ahh, somehow when I was reading it on my phone I missed that the posts archive is below the post
<evanjs>
But I get `error: attribute 'targetPrefix' missing, at /nix/store/yi2fbywlqb511l6sb2ca93l3hpi851zi-nixos-20.03pre210639.e59dcf8ccec/nixos/pkgs/os-specific/linux/busybox/default.nix:84:37`
<qyliss>
nohTo: the answer you're probably going to get in here is to use Nix for everything you can, since lots of us are managing our entire operating systems with Nix
<gchristensen>
jared-w: ah, yeah :) what do you think of that? is it too confusing?
evelyn has joined #nixos
<evelyn>
hellooo
<jared-w>
eh, it's not great because it's a url redirect so unless you have it set as a 302 the browser will think your homepage *is* your latest article which'll subsequently break things should you write a new one. It also causes a flicker on reload that makes me think there is a homepage
chloekek has quit [Quit: WeeChat 2.6]
<qyliss>
nohTo: I would recommend just trying it out and experimenting for yourself to figure out what's right for you
* qyliss
waves at evelyn
<evelyn>
is there any info about packaging a program that can use bubblewrap?
<gchristensen>
hmm good point, jared-w
<jared-w>
Honestly, just the 'posts' and 'about' sections alone make a perfectly sufficient homepage without any other details
<evelyn>
I see the program is packaged, but it's notclear to me what I need to put in the expression. For instance, bubblewrap has a set of 'allowed' directories. Is therea wrapper for it or am I on my own?
jonten has joined #nixos
<gchristensen>
jared-w: I'll put it on my to-do to take a look and make that better, thank you :)
fresheyeball has quit [Quit: WeeChat 2.6]
<gchristensen>
jared-w: I'm not much of a web "person". I'm pretty sure I stole 95% of the design from an old Safari "reader view" rendering of my old template. =)
<jared-w>
I mean, no rush, I just noticed it and wanted to make sure it was intended behavior :)
<nohTo>
qyliss: Fair enough, yes. I guess I should just start playing with it and come back when I run into any trouble. :) Thank you.
<jared-w>
(I was also very much of a web person in my past life, so there's that)
Izorkin has quit [Ping timeout: 265 seconds]
<jtojnar>
evelyn: look at gnome-desktop or flatpak
<jtojnar>
They use bubblewrap
<evelyn>
jtojnar: oh cool, I think I see now
<evelyn>
thanks!
stites has quit [Remote host closed the connection]
WinchellsM has joined #nixos
gustavderdrache has quit [Read error: Connection reset by peer]
<WinchellsM>
What does the `inherit (nixpkgs) pkgs;` mean in the context of a `let` statement?
<evanjs>
I overrode stdenv.targetPlatform to "" and it seems to be building now. guess we'll see
<evanjs>
my resulting stdenv is `overrideCC pkgs.stdenvNoCC (pkgs.uclibc.overrideAttrs(old: {targetPrefix = ""; } ));`
smatting has quit [Ping timeout: 246 seconds]
alex` has joined #nixos
alex` is now known as Guest88106
juliancoffee has joined #nixos
<evanjs>
yeah that won't cut it. binutils then fails to compile :P
mehlon has joined #nixos
alexherbo2 has joined #nixos
doyougnu has joined #nixos
stites has quit [Ping timeout: 272 seconds]
mexisme_ has joined #nixos
<evanjs>
derp... stdenv needs a _cc_ which has an overridden libc... I am tired lol
mehlon has quit [Quit: Leaving]
Guest88106 is now known as alex``
mexisme_ has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @romildo opened pull request #78964 → canta-theme: init at 2020-01-31 → https://git.io/Jv3WG
opthomasprime has quit [Remote host closed the connection]
wildtrees has joined #nixos
<jluttine>
hmm.. it seems my problem is caused by direnv.. if i just run nix-shell, the environment is ok, but with direnv there are some problems. well, i'll just use nix-shell then
wildtrees has quit [Remote host closed the connection]
<jared-w>
gchristensen: Would a PR be accepted to change the "getting nix" instructions to include the https://nixos.org/nix/manual/#sect-multi-user-installation daemon command as well? I always go to the basic install instructions, forget what the daemon command is, and then have to look it up in the manual.
wildtrees has joined #nixos
<gchristensen>
jared-w: can you point to exactly where you're thinking you'd change? (probably yes, just looking for more context)
<jared-w>
https://nixos.org/nix/download.html basically right after the "as any user other than root" verbiage, just adding something along the lines of "for a multi user linux or macOS installation..."
vidbina has quit [Ping timeout: 272 seconds]
<jared-w>
In fact, if (according to the manual) opting into the multi-user installation is "highly recommended", honestly that should be the first and most prominent method with the single-user as the alternative below
Jackneill has quit [Read error: Connection reset by peer]
chagra has quit [Ping timeout: 268 seconds]
dsx has quit [Ping timeout: 245 seconds]
dsx has joined #nixos
ThatGuy has joined #nixos
<ThatGuy>
Hello all, can anyone tell me how to set the sourceRoot properly for github repos with build files not at root?
cosimone has joined #nixos
<ThatGuy>
sourceRoot = "..."; in mkDerivation, keeps aying dir is not found
xkapastel has quit [Quit: Connection closed for inactivity]
connor_k has joined #nixos
chagra has joined #nixos
<ThatGuy>
ah seems to be sourceRoot="source/..."
Naptra has joined #nixos
<ThatGuy>
i guess another qesution would be how to i get nix to invoke any make files with 'make -j'?
<ThatGuy>
basically enable multi-core on builds
<gustavderdrache>
add enableParallelBuilding = true; to the derivation
<arcnmx>
enableParallelBuilding=true
<qyliss>
Is that not on by default?
<gustavderdrache>
not in my experience
<ThatGuy>
dosn't seem to be
<qyliss>
whoops
<ThatGuy>
was limited to one core, thx btw
<arcnmx>
it'd be nice if it were :(
<qyliss>
I just removed that from a package because I assumed it was default
particle has left #nixos [#nixos]
<ThatGuy>
yup that fixed it :)
<jtojnar>
ThatGuy: I use `sourceRoot = "${src.name}/...";
<ThatGuy>
k thx jtojnar
<qyliss>
Ah, it's sometimes set to true automatically, depending on the build system
<jtojnar>
qyliss: only for Meson and CMake packages
<qyliss>
And qmake according to the docs
<qyliss>
The package I removed it from was a CMake package so all's good
kaliumxyz has joined #nixos
dm9 has quit [Quit: WeeChat 2.7]
drew__b has quit [Ping timeout: 268 seconds]
chagra has quit [Quit: WeeChat 2.6]
iaws has joined #nixos
iaws has quit [Quit: Quit]
iaws has joined #nixos
iaws has quit [Client Quit]
Fare has quit [Ping timeout: 268 seconds]
steve-chavez has joined #nixos
Drakonis__ has joined #nixos
<steve-chavez>
Hello. How to use $PWD inside a .nix file?
chagra has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<simpson>
./.
<simpson>
As in { dir = ./.; }
<steve-chavez>
Hmm.. but that gives the nix store path. I was intending to have an env var that gives the local directory.
<steve-chavez>
Like: BUILD_DIR = "$PWD/build";
lovesegfault has joined #nixos
<gchristensen>
steve-chavez: what for? sounds a it spooky
<{^_^}>
[nixpkgs] @tricktron opened pull request #78965 → r-modules/generic-builder: Add missing iconv library to fix build on darwin → https://git.io/Jv3lr
<steve-chavez>
gchristensen: I'm trying to build postgres and have a PG_DATA_DIR in my home directory.
<gchristensen>
interesting, passing that at run-time or via a config file (or a script wrapper) isn't sufficient?
<samueldr>
I'm using this to, among other, launch a "local" postgresql instance
chagra has quit [Ping timeout: 268 seconds]
<samueldr>
hmm, though I now review the file, all the magic is done in the bash file, not in nix
<samueldr>
(dev-database script)
<gchristensen>
nice, samueldr
<samueldr>
gchristensen: since it's not obvious from the name, this is like the "in a box" concept, but less secure and less isolated, about as good as a wet paper bag
<gchristensen>
oh, cute :)
chagra has joined #nixos
<samueldr>
still immensely powerful to be able to quickly spin up an hydra instance
<samueldr>
*for development
bitmapper has joined #nixos
<gchristensen>
*puts it in prod* sorry, what?
<steve-chavez>
samueldr: That helps me. Thank you.
<lovesegfault>
colemickens: I think the overlay is borked again?
<dashkal>
Just how unstable is nixos-unstable? We talking my machine will break randomly or more arch level pay attention and fix things as they come up level?
<gchristensen>
jared-w: sorry, I missed your reply. there is a bit of a cost to the daemon installer. I think adding to that homepage is a good idea, and a PR doing that has good chances of merging.
<gchristensen>
jared-w: I wouldn't recommend, though, putting it first, since there is some cost and the experience is not always as good as the single-user install
<colemickens>
lovesegfault: yeah, I'm referencing a patch without a commit ref and I updated the PR
<dashkal>
So many manuals to read. But then again, I *really* appreciate the commitment to documentation I find in this space.
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/Jv389
Henson has joined #nixos
<Henson>
Hi everyone, I'm trying to make a systemd-nspawn machine in NixOS. I've defined it in the systemd.nspawn.<name> section in my nixos configuration.nix file. I'm trying to give the machine low-level access to the USB devices, and the solution described here https://unix.stackexchange.com/questions/304252/access-usb-device-from-systemd-nspawn-container is where I'm at. Is there some way to get
<Henson>
NixOS to generate this override.conf file?
bitmapper has quit [Remote host closed the connection]
<AmandaC>
That was surprisingly easy: `home.file."Documents/NixOS Manual.epub".source = "${config.system.build.manual.manualEpub}/share/doc/nixos/nixos-manual.epub";`
drakonis has joined #nixos
rauno has joined #nixos
<gchristensen>
fancy :D
waleee-cl has quit [Quit: Connection closed for inactivity]
<Henson>
is there some way to make NixOS place a particular file in etc? I know of the environment.etc set in configuration.nix. I'm trying to put something at /etc/systemd/system/systemd-nspawn@foo.service.d/override.conf but it gives me build problems with nixos-rebuild
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-bustle: simplify the override now that those changes are in cabal2nix »: https://git.io/Jv3RT
jbgi has quit [Ping timeout: 265 seconds]
<gchristensen>
what kind of problems?
mexisme_ has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jv3RI
<{^_^}>
[nixpkgs] @peti merged pull request #78906 → Update Haskell package set to LTS 14.22 (plus other fixes) → https://git.io/JvOSx
<Henson>
gchristensen: or "duplicate entry systemd/system -> /nix/store/qky28lrlzj9j2l6x9id0rpplq2dsx2hv-system-units" and "mismatched duplicate entry <-> /nix/store/qky28lrlzj9j2l6x9id0rpplq2dsx2hv-system-units"
<dashkal>
How does one make a display manager (tried lightdm and sddc) see the ~/.xsession file provided by home-manager as a valid session? I find myself with an empty session list on both of those after disabling the system level xfce.
<gchristensen>
hrm
<Henson>
gchristensen: the first is with the simple "environment.etc."systemd/system/systemd-nspawn@foo.service.d/override.conf".text = "BARF";" and the second is with the "text" and "target" values of the set specified explicitly.
<dashkal>
And I do mean empty. The original xterm in the corner is missing too
<gchristensen>
weird, Henson :/
<gchristensen>
not sure ...
<Henson>
gchristensen: it would be nice is there was a systemd.services.<name>.override attribute that would let me specify the content of the override file and integrate properly with the building of the /etc directory
<gchristensen>
an interesting idea!
<Henson>
gchristensen: or for systemd.nspawn.<name> to allow things like DeviceAccess to be specified
<Henson>
gchristensen: the real problem here is that I'm unable to grant an nspawn machine appropriate low level access to the host's devices.
<Henson>
ok, here's another question: how can I import nixpkgs into an expression given a nixpkgs git tree? Do I just import the root default.nix file?
<jared-w>
yup
<Henson>
jared-w: ok, cool
<tilpner>
Henson: Import the directory
<Henson>
tilpner: ok
<tilpner>
Henson: If you import ./foo, and ./foo is a directory, Nix will read ./foo/default.nix
<jared-w>
default.nix is the index.html of nix files :p
<jared-w>
(as such, import ./foo and import ./foo/default.nix are equivalent)
<Henson>
haha :-)
juliancoffee has quit [Remote host closed the connection]
knupfer has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « ghc-8.10.x: add a bunch of jailbreaks to fix builds »: https://git.io/Jv3RN
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « ghc-8.10.x: add a bunch of jailbreaks to fix builds »: https://git.io/Jv3Rx
<{^_^}>
[nixpkgs] @peti pushed to master « ghc-8.10.x: add a bunch of jailbreaks to fix builds »: https://git.io/Jv3Rp
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
talqu has joined #nixos
knupfer has joined #nixos
werner291 has joined #nixos
four has joined #nixos
<dashkal>
Basic nix literacy question. I'm trying to fill in initExtra in my home.nix How do I refer to my home directory? Or env vars in general? Using the '' multi-line string style.
<talqu>
hi, i've installed nixos on my virtualbox in windows. I have virtualisation.virtualbox.guest.enable = true; as well as latestkerner, however, i cannot make this nixos guest get fullscreen (something wrong with guest additions?)
u0_a121 has joined #nixos
<dashkal>
talqu: What version of virtualbox? I ran into that last night. The guest additions available in nix were too old.
<four>
How should I go about adding a custom package not in nixpkgs from github that does not have a hash to include when using fetchurl?
<four>
I get an error saying I must include a hash
<tilpner>
,tofu four
<{^_^}>
four: 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. See: tofu-vim
<tilpner>
Or nix-prefetch-*
<tilpner>
Or sha256 = lib.fakeSha256;
<dashkal>
My answer: use $HOME, not ${HOME}
<talqu>
dashkal: 6.1.2 r..
<tilpner>
,escape'' dashkal
<{^_^}>
dashkal: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<tilpner>
^ for when you want to express ${HOME} anyway
<talqu>
dashkal, i have to downgrade the the virtualbox then. With which version does it work well?
<four>
Alright I'll give that a shot
<dashkal>
talqu: That's what I thought. That virtualbox version doesn't seem to like the 6.0.5 guest additions that nix has. I haven't yet dug into learning to provide an update to date additions.
<dashkal>
{^_^}: danke
<dashkal>
Let me try that again. I haven't yet dug unto learning to make an up to date guest additions package.
<dashkal>
I did a little poking, and saw that it wasn't exactly trivial (The existing package is built in terms of the existing virtualbox package, and I didn't want to deal with that late at night)
<four>
Alright so I was able to get past the sha hurdle, but now I'm running into an error while building. Here is my expression if anyone sees something I'm doing wrong. https://pastebin.com/5v5a54uv
<tilpner>
Ahh yes, you'd probably have to update the virtualbox package
<dashkal>
>.> I'm good at bots, honest. Danke, tilpner.
<talqu>
dashkal: i believe it's not trivial :) Im trying to see if i can stay on windwos and do stuff with nixos virtual machine without feeling to worse than when i run nixos on bare metal (i do js dev mainly and sometimes haskell). I don't want to login logout everytime i want to switch to windows. Is the experience good enough with virtualbox guest nixos machine?
<tilpner>
four: That's not going to work, sorry :/
<four>
oof
<tilpner>
four: Looking at the repo, it's Go and JS?
<dashkal>
Milestone get. Got my ancient xmonad config to actually work. I should probably modernize that poor thing, but now I have a familiar environment again.
doyougnu has joined #nixos
<tilpner>
four: I'm not quite sure how to approach that. The AUR PKGBUILD suggests that you might get away without a node buildstep
<four>
hm alright, I'll give it a look. First time trying to add a package not in nixpkgs to my system so still trying to figure most things out. thanks
<tilpner>
four: You didn't choose an easy one :/
<tilpner>
Sometimes your paste almost works, but that's usually depency-less C
patrl has joined #nixos
<four>
lol of course. I didn't know I had to specify all the dependencies. fun
UndefinedIsNotAF has quit [Ping timeout: 264 seconds]
UndefinedIsNotAF has joined #nixos
werner291 has quit [Ping timeout: 260 seconds]
virus_dave has quit [Quit: virus_dave]
__monty__ has quit [Quit: leaving]
doyougnu has quit [Ping timeout: 268 seconds]
talqu has quit [Remote host closed the connection]
domogled has joined #nixos
u0_a121 has quit [Remote host closed the connection]
<infinisil>
Is it possible to install Nix in single-user mode but allow all users to use nix still?
<four>
@tilpner how do I get the values for sha256 and modSha256?
<four>
also, how do I properly respond to ppl in weechat lmaoo
<infinisil>
I'm investigating using different users for nix docker images
<infinisil>
But that naively fails with a single-user install by root
<infinisil>
LnL: ^ Did you perhaps try to get a multi-user installation working at some point?
<LnL>
yeah I have
<LnL>
most of the docker images are multi user actually because of root in the container (just no daemon)
mallox has quit [Remote host closed the connection]
<Henson>
holy crap, I figured it out. By looking through the source for nixos/modules/system/boot/systemd-lib.nix I see that any redefinitions of systemd service that already exist get added to an override. Therefore I simply had to redefine the systemd-nspawn service with serviceConfig containing DeviceAllow and it works. This works for all nspawn machines, however, and can't be limited to a...
<Henson>
particular machine because the override only works for non-dynamically-added services
shibboleth has joined #nixos
<LnL>
infinisil: but if you want a daemon you can start it before the user's command by adding an entrypoint wrapper
<jared-w>
gchristensen: no worries. I nearly missed your reply too :) I wasn't aware that there was a cost and that the experience wasn't always as good as the single-user one. For me, personally, I've always had a better experience with the daemon. Should the manual *not* highly recommend the daemon approach then?
<LnL>
infinisil: not great but works good enough if you don't want to introduce a full service manager or k8s stuff
<jared-w>
gchristensen: I'm fine with the daemon being the secondary/alternative one on the install page. It might be a good idea to make sure the recommendations are pretty consistent between it and the manual, though. I'd hate to have one say "highly recommended" and the other say "well I guess you can do this if you're brave enough" :p
<jared-w>
samueldr: I likey your hydra thing
<infinisil>
LnL: I tried using both the official docker image and yours as non-root, but they have the same first problem that /nix/var/nix/gc/big-lock is owned by root and can't be taken by the user. Fixing this there are more problems with permissions awaiting
<jared-w>
samueldr: can't imagine how long it took to figure out all the subtle janky stuff in the shellHook though...
<infinisil>
And once I got those fixed, I was able to at least log in without any warnings, but then nix-shell didn't work for some other permission problem
<infinisil>
I guess I'll try again to get around all this, but I'm not confident this works
granra has joined #nixos
karantan has joined #nixos
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
<granra>
Hi, I've been googling around and coming up empty. I want to get a nix-shell with an aarch64 cross compiler to compile u-boot. Does it exist in nixpkgs?
<LnL>
yeah for unprivileged users you'll need the daemon to perform store operations
<samueldr>
jared-w: hah, I think it was a slow buildup of accreted knowledge, so probably longer than I want to know, but it was not that hard to write at that time
<infinisil>
LnL: Oh, so you think the daemon-less installation works for non-root users if they are in `trusted-users` in nix.conf?
<infinisil>
Wait no probably not
<LnL>
no everything needs to be chowned then
<infinisil>
Hmm
<infinisil>
LnL: Would you be interested in a PR that adds such multi-user support to nix-docker?
<LnL>
let me see if I can hack my thing together from memory
<LnL>
with the daemon yes, otherwise it's kind of tricky because who owns what?
o1lo01ol1o has quit [Ping timeout: 240 seconds]
oida has quit [Quit: byez]
<run500>
whats the right way to build an aarch64 image for raspberry pi 3b+? this is what i tried:
<run500>
nix-build nixos -I nixos-config=nixos/modules/installer/cd-dvd/sd-image-aarch64.nix -A config.system.build.sdImage
o1lo01ol1o has joined #nixos
<infinisil>
LnL: Yeah, probably with the daemon would be nicer, though I feel like that gets tricky because it needs to run during the layer building already
granra has quit [Remote host closed the connection]
is_null has joined #nixos
chloekek has quit [Ping timeout: 260 seconds]
<tilpner>
,tofu four
<{^_^}>
four: 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. See: tofu-vim
shibboleth has quit [Remote host closed the connection]
<four>
tilpner: okay thanks
<four>
same as lib.fakeSha?
knupfer has quit [Ping timeout: 265 seconds]
fragamus_ has joined #nixos
Unode has quit [Ping timeout: 252 seconds]
<ddima>
four: yep
st3r4g[m] has joined #nixos
werner291 has joined #nixos
<infinisil>
> fakeSha
<{^_^}>
undefined variable 'fakeSha' at (string):277:1
<infinisil>
> lib.fakeSha
<{^_^}>
attribute 'fakeSha' missing, at (string):277:1
<gustavderdrache>
you have to pick your flavor of SHA
<werner291>
Greetings! I flashed an ISO on a usb stick and I'm trying to boot it on a Macbook Air. It says it's waiting for /dev/root to appear, after which it complains about /dev/sdc failed to open. I think what it's looking for is on /dev/sdb, not sdc, how can I tell the installer to use that instead?
fragamus_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL>
infinisil: I remember now, the unprivileged part was only over ssh so the daemon could still start as normal
<infinisil>
LnL: Oh you mean to run the daemon as root in the docker container to be accessed by unprivileged clients outside the container
<infinisil>
?
ixxie has quit [Ping timeout: 265 seconds]
<LnL>
infinisil: seems like nix doesn't like to run as setuid so not sure if this can work in the regular docker context
<LnL>
yeah
<infinisil>
setuid is needed for nix-daemon?
<LnL>
well if you specify USER or -u docker starts the command (and entrypoint) as that user
drakonis has quit [Quit: Leaving]
<LnL>
you need some way to give the daemon more permissions, otherwise it's basically a single user install
mexisme_ has joined #nixos
drakonis has joined #nixos
<infinisil>
LnL: Ah yeah, though in my usecase I'm just thinking of programs that don't like being run as root, so you could still start the container as root but have a `su - user` at the start
<LnL>
right the reverse also works, but that's kind of hard to do in a generic way
werner291 has quit [Remote host closed the connection]
<LnL>
something like this but dropping permissions after the daemon instead of just exec should work
wildtrees has joined #nixos
kiloreux has quit [Ping timeout: 240 seconds]
<infinisil>
LnL: Nice, I'll probably try to use that
<infinisil>
Thanks
Rusty1 has quit [Remote host closed the connection]
<fyuuri>
Do fish functions in ~/.config/fish/functions typically work under NixOS? Even if this path is in the $fish_function_path, functions are not found...
<fyuuri>
I could not find anything on how to configure fish in NixOS, especially on how to configure plugins