<CMistress>
Does nixos have a policy about what it accepts for program options? For example, in terms of X11 display manager, I noticed that "xdm" wasn't an option I could use in my configuration.nix -- if I ever get round to understanding all of this and could add that as an option, would it likely be accepted?
<hexa->
CMistress: the program modules usually don't do too much
bennofs_ has joined #nixos
<hexa->
i think programs.* is mostly about suid wrappers, putting pam files in place etc.
<hexa->
if you need any of that, sure go ahead
<CMistress>
I guess it means I'll have to do this outside of configuration.nix if I want to use (in this case) a display manager that isn't sddm or lightdm. OK.
<CMistress>
supersandro2000, can you point me toward some docs?
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm_ is now known as mbrgm
bennofs__ has quit [Ping timeout: 272 seconds]
<energizer>
how can i point the makeDesktopItem {exec = } at the output if i'm creating the desktop item in the middle of creating the derivation for the binary?
<energizer>
or do i need to do it in two steps
<energizer>
first make the binary, then make the desktop item
<CMistress>
supersandro2000, I wasn't. I guess what I'm asking, is how do I specify an alternate displayManager in my configuration.nix, if it's not listed on the option search? Or can't I?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ktims>
hi folks, fairly new to nixos, i'm trying to package an in-house python module and i just cannot grok where i am going wrong. first i tried a default.nix with just buildPythonPackage, this works with nix-build but fails when imported in configuration.nix. then i copied the 'outside the nixpkgs tree' example from the nixpkgs documentation verbatim, and that does not work either.
<ktims>
the first case fails either because it is passed an unexpected config, options etc., or if i add '...' then it fails for infinite recursion. the second case says 'value is a string while a set was expected' and neither trace nor the error is illuminating where the problem is.
patagonicus has quit [Ping timeout: 246 seconds]
patagonicus5 is now known as patagonicus
<ktims>
does anyone have a trivial example? the former case seems to be what is in the nixpkgs repository... there are plenty of examples out there but none that include how to properly add it from the custom.nix file to configuration.nix
ahmed_elgabri has quit [Ping timeout: 272 seconds]
mizu_no_oto has joined #nixos
<tpw_rules>
are you using callPythonPackage?
<tpw_rules>
have you heard of overlays yet? you should make one of those
<tpw_rules>
actually sorry i misremembered you just use callPackage
nhs has joined #nixos
<ktims>
i have used overlays in the past to override the setup of packages that exist in nixpkgs already, is this also necessary to create a new package?
superherointj has joined #nixos
<evanjs>
is there an easy way to use my nixos configs from nix-darwin and just... ignore things that don't exist?
<evanjs>
I have extracted my home-manager configuration in such a way that it can be consumed by both nixos and non nixos platforms before, just wanted to see if there's a way around doing that sort of thing again
<evanjs>
Currently running into issues evaluating files that contain attributes like hardware, boot, etc.
teej has joined #nixos
nhs has quit [Ping timeout: 265 seconds]
thelounge52 has joined #nixos
craige has joined #nixos
<evanjs>
re out of tree python packages, I just used an overlay and copied the file structure from the nixpkgs repo
<evanjs>
And then just callPackage -- e.g. `kivy = callPackage ../python/kivy { python = python37; };`
<evanjs>
ktims: no clue if any of that will be helpful, though
superherointj has quit [Quit: Leaving]
Lord_of_Life_ has joined #nixos
Lord_of_Life has quit [Ping timeout: 240 seconds]
shah^ has quit []
Lord_of_Life_ is now known as Lord_of_Life
xcmw has joined #nixos
BoipiSigre has joined #nixos
<ktims>
evanjs: thx, gets me on the right track at least, i guess. thought i was pretty good at this stuff and like the idea of nixos, but after spending a few days on it i have almost no intuitive understanding of the incantations.
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<abathur>
evanjs my general approach is to extract/modularize out of the primary configuration.nix/darwin-configuration.nix and mainly just keep the non-overlapping bits there
<evanjs>
abathur: yeah I'll probably just start with a subset of my main config for now. I probably just need to do the same thing I did with my non-nixos configs and am just doing something dumb right now
<hexa->
,locate jupyterhub-singleuser
<{^_^}>
Found in packages: python37Packages.jupyterhub, python38Packages.jupyterhub
<ktims>
is there any way to use fetchGit in a fully declarative system? it seems to lead to a race condition where the .nix that would install git can't be evaluated since git is missing. it seems the only workaround would be installing git with nix-env.
jmeredith has quit [Quit: Connection closed for inactivity]
<growpotkin>
does anyone know good resources to learn about using the Nix build system for non-nix targets? Essentially to cross-compile a binary, but rolling in it's necessary dependencies
m4ts has quit [Ping timeout: 272 seconds]
<growpotkin>
they don't necessarily need to be static executables, but I would definitely need to have Nix package shared objects for the target system alongside my executable in a manageable way
<evanjs>
had to uninstall nix on darwin (again). now failing at "Setting up the basic directory structure" when attempting to reinstall
<evanjs>
It just jumps from that to "oh no!"
<growpotkin>
evanjs: did you have it working previously? Or is this your first install?
<growpotkin>
maybe I mean "did you previously have a 'working' install"
<evanjs>
yeah I had it working previously
<evanjs>
then I thought I broke something and tried to reinstall
<growpotkin>
I know the uninstall process is finicky
ahmed_elgabri has quit [Ping timeout: 264 seconds]
<growpotkin>
Nix leaves all these weird files/folders that interfere with later installs
nhs has quit [Ping timeout: 264 seconds]
<evanjs>
yeah, I was able to uninstall/reinstall earlier, but having issues doing so now
<growpotkin>
About a year and a half ago I had to get a team moved onto Nix with a mix of Linux and OSX boxes. I used to remember all of the weird places it leaves crumbs
<evanjs>
oh bonus points
<evanjs>
vifs is missing :D
<growpotkin>
I know the `.profile` stuff was a nasty one. Then there is `/nix/`, `~/.nix`, `~/.nix-profile` and some other weirdos hanging around the home directories
<growpotkin>
then check the `~/.config/` folder for anything
<growpotkin>
check for the `nix-builder` users that it adds to your system, you might have to manually delete them
<growpotkin>
check your ZSH/Bash RC files
<evanjs>
yeah, checked those too
<growpotkin>
and after you clear all of that crap out get a fresh shell
<evanjs>
the heck do I do with fstab if vifs can't be found, though?
<evanjs>
what the
<evanjs>
reinstalled brew, suddenly I can run it again
<evanjs>
phew. Removed nix from fstab with vifs. that might've been one of the missing pieces
<growpotkin>
Yeah I wish the uninstall was cleaner. It's one of those things that "someone should really just patch because it wouldn't take long", but the PR/review process is a hassle.
<growpotkin>
Honestly I think the majority of users are on NixOS so they don't remember the annoying quirks of installing `nix` standalone
<rauno>
how to nix garbage collect only cenrtain stuff? Forexample created by nix-build and nix-shell package development and not nixops and other generated stuff ?
<clever>
rauno: `nix-store --delete /nix/store/foo` will delete foo and everything that depended on it
n-osborne has quit [Remote host closed the connection]
n-osborne has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nhs has joined #nixos
questaetang[m] has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 1000 commits to haskell-updates: https://git.io/Jt6WC
ahmedelgabri has joined #nixos
zeorin has joined #nixos
exasperr has left #nixos [#nixos]
nhs has quit [Ping timeout: 264 seconds]
<zeorin>
Hey everyone. Bit off-topic, but it seems that #home-manager is very quiet. Is there a handy go-to explainer for the email accounts system in home-manager? I've found https://beb.ninja/post/email/ but it doesn't cover all of it wholistically…
<sphalerite>
zeorin: on-topic enough :) (though I don't have an answer for you)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jt6Wb
<zeorin>
I did ask in #home-manager a couple of hours ago… No biggie, I'm comfortable reading the manual + source code, but it's a little tedious to build up a big-picture mental model of the design of it that way.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds to fix evaluation errors on Hydra »: https://git.io/Jt6lG
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jt6lZ
is_null has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2021-02-12T08:19:51Z »: https://git.io/Jt6ll
hiro98 has joined #nixos
bennofs_ has quit [Quit: No Ping reply in 180 seconds.]
<ishan2>
I am trying to build glfw from sources so I am trying it using `nix develop nixpkgs#glfw` but it is showing me an error `shell environment '/nix/store/q8qj5aq573dmawml12r50qx54fs4dgnw-glfw-3.3.2-env' has unexpected line 'cmakeFlags='-DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS=-D_GLFW_G'`
<bqv>
It amuses me that all that we had to do to get the mastodon PR in was threaten to make it a flake. Almost like some people really don't like them :p
<qyliss>
I think it was more that people weren't aware of what the issues were
<Hurttila>
I'm trying to get vscode plugins to vscodium by adding a few lines to a package.json file (https://www.chrisatmachine.com/Neovim/22-vscodium-neovim/). The problem is that I can only find that json in the store and seems like the store is read-only. How do I edit the files in the store?
Jd007 has joined #nixos
rb2k has quit [Ping timeout: 246 seconds]
rb2k has joined #nixos
nhs has joined #nixos
<NinjaTrappeur>
I have an issue with the gnome3 pinentry. It fails and fallback to the ncurses one after complaining about not having a gcr system prompter available.
Tv` has joined #nixos
<NinjaTrappeur>
Is somebody else here having the same issue?
<NinjaTrappeur>
Exact error message: "No Gcr System Prompter available, falling back to curses"
<NinjaTrappeur>
(followed by "OK Pleased to meet you". At least the software is nice to me, that's appreciated :P)
<erictapen>
Izorkin: could you post your config somewhere? How do you use the module?
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<NinjaTrappeur>
hexa-: I've been banging my head against this issue for the last 30 minutes. It was working fine until the last nixpkgs bump I performed. We did not seem to have updated any package or module involved into this. That might be the most resonable thing to do.
<hexa->
Ouch
<supersandro2000>
qyliss: it saves a ton of RAM and if you run more than a single user instance you want to have
we3fan has joined #nixos
<NinjaTrappeur>
hexa-: I saw it. The confusing part is that in my case, the dbus-user-session is correctly set :(
<erictapen>
Izorkin: I doubt that the profile has anything to do with it. I guess when i tested the module I generated otpSecretFile by hand, so rake got never called in mastodon-init-dirs.service.
<erictapen>
Izorkin: so thats why I never saw your error. I'm working on a PR to fix that.
<qyliss>
erictapen: make sure not to forget about the manual + tests btw
nhs has joined #nixos
<adisbladis>
Izorkin: Do you have a local nixpkgs checkout?
<adisbladis>
Izorkin: An actual patch file for the same diff http://ix.io/2PaR
<Izorkin>
adisbladis: thanks, check back later
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bahamas has quit [Ping timeout: 264 seconds]
<Izorkin>
erictapen: i removed all manul configurations, mastodon-init-dirs service started. Error starting mastodon-init-db. Now I'll try to restart.
nhs has quit [Ping timeout: 265 seconds]
<erictapen>
NinjaTrappeur: ah nice, thanks
<erictapen>
adisbladis: yeah I'm going to open exactly that patch as PR.
zupo has joined #nixos
<erictapen>
qyliss: I'm on it. I planned to spend the next days refining mastodon-nixos. As that project just got obsolete, I'll spend it with fixing tests and the manual ;)
<erictapen>
aveltras: I'm using this module to supply other cabled devices via my laptop. https://pastebin.com/pYDr73kv For it to run you need to configure an external interface and an internal one. In my case, the external one is my laptops wireless interface and the internal is ethernet. It then does NAT, DHCP and IPv6 prefix delegation for you.
oida has quit [Remote host closed the connection]
oida has joined #nixos
<aveltras>
erictapen: thanks, going to try it
j-k has quit [Quit: WeeChat 3.0.1]
nhs has quit [Ping timeout: 272 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkaito has joined #nixos
nhs has joined #nixos
bukkitgerman8608 has joined #nixos
xcmw has joined #nixos
<aveltras>
erictapen: do you have anything special to do on the client ?
<aveltras>
any idea what could cause the following to happen on reboot ? (config-switch is just a rebuild, i've done nothing else than entering the commands seen here)
<nickeragua>
Right, but I don't know what commands actually run in fixupPhase. I don't see it in the derivation. I'm trying to find out why and when it tries to chmod Libsystem. https://pastebin.com/CFi5fT53
<lordcirth_>
supersandro2000, thanks!
<rnhmjoj-M>
nickeragua: try `echo $fixupPhase` or run the build with env NIX_DEBUG=7
<rmcgibbo[m]>
Is it possible to find the filename correponding to a nixpkgs attribute from within the nix language? (`nix edit` is able to do this with some black magic.)
<adisbladis>
rmcgibbo[m]: Under the hood that's driven by `builtins.unsafeGetAttrPos`
styledash has joined #nixos
<exarkun>
For anyone who might care, I fixed the gitlab-redirect-to-"localhost" issue I was having. The GitLab configuration was fine. The broken piece was the integration with nginx, which (I guess) doesn't pass a Host header to GitLab when proxying to a unix socket
<voidcontext[m]>
ronthecookie: thanks for all the help, the Pi is up and running, and seems to be stable
zakame has quit [Ping timeout: 272 seconds]
<matthewcroughan>
prusnak: Do you know why `nix-build '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.arduino --option build-use-substitutes false` fails with an error related to Firefox 60-9? Why is the Arduino IDE somehow dependant on Firefox, and that specific version? Might be cairo?
<rmcgibbo[m]>
@ij: I think it's necessary to have something to make a wheel, and setup.cfg isn't usually enough.
<rmcgibbo[m]>
pyproject.toml is enough if they use flit or something.
greeem has joined #nixos
thelounge52 has quit [Ping timeout: 272 seconds]
ece3 has quit [Ping timeout: 264 seconds]
ece38 is now known as ece3
bennofs_ has quit [Quit: No Ping reply in 180 seconds.]
<ij>
rmcgibbo[m], what do you mean by a wheel? :)
andoriyu has joined #nixos
<rmcgibbo[m]>
it's sad python packaging speak...
<adisbladis>
ij: Wheels are binary python packages
<rmcgibbo[m]>
the standard python build/install pipeline is basically that setup.py gets invoked to compile anything that needs to be compiled, package up the code, etc and turns it into a .whl (wheel), which is a zip archive, and then that zip archive is unpacked into the final install directory ($prefix/lib/pythonX.Y/site-packages).
<andoriyu>
halp, i have new dell xps with intel's xe graphics. Tired booting stable and nixos-21.03pre269343.758b29b5a28 both result in black screen. I think nixos-21.03pre269343.758b29b5a28 has blinking `_` in top left corner, not sure it was blinking in stable, but it was there
<andoriyu>
anyway i can get 5.11 kernel with nixos?
<rmcgibbo[m]>
there are some alternative tools that can generate the .whl from the project directory / git checkout without setup.py that some python developers use, but it's pretty rare. one of those alternatives is called "flit", which is why i brought that up. 99% of python packages need a setup.py if they want to get "installed" (rather than just running them as scripts right out of the project checkout)
<andoriyu>
adisbladis so another issue is that I don't see wifi working on it neither, so I won't have internet during install.
<ij>
I'm trying to convert my shell.nix to a default.nix for proper installation
<adisbladis>
rmcgibbo[m]: That's not entirely true PEP517/PEP518 have some significant adoption nowadays
<ij>
I added propagatedBuildInputs with packages, setup.py with install_requires and scripts=['myscript']. result/bin/myscript is loking for a missing result/bin/_vendor
<rmcgibbo[m]>
oh right right. lots of people use poetry especially for python apps (rather than libraries). good point.
<ij>
this is with python3.pkgs.buildPythonApplication
<andoriyu>
adisbladis Probably. No entirelly sure how to do this. I'm reading https://nixos.wiki/wiki/Creating_a_NixOS_live_CD I just never used nix or nixos before, so not very verse in nix files yet.
<adisbladis>
andoriyu: Just a sec, I have a much more terse example somewhere
<benley>
anyone know if it's possible to use the nixos tests framework to run things that must talk to the internet?
<benley>
context: I'm trying to run integration tests for a whole kubernetes distribution, which includes letting it fetch various remote docker images, and I think pre-seeding them with nixos dockerTools would be more trouble than it's worth
rb2k_ has quit [Ping timeout: 264 seconds]
<supersandro2000>
benley: I am not fully sure if sandbox controls that
<supersandro2000>
but you can try disabling it and see what happens
<benley>
oh - oh right, if this is happening inside a nix build I'd have to do it at the nix sandbox level
cosimone has quit [Quit: cosimone]
thelounge52 has quit [Ping timeout: 256 seconds]
<benley>
hrm. Maybe instead of the normal nixos test driver I could use one of the runInVm type things where building the derivation results in an executable that launches qemu and does the thing
<benley>
or ... yeah I guess this is kinda what Vagrant is for. It's been a while since I had to deal with Vagrant.
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/Jt6b4
<benley>
oooh that does look promising. I had overlooked that in the manual
aswanson1 has quit [Ping timeout: 240 seconds]
<benley>
doing it that way could also sidestep the other issue I was about to run into where nixbld users can't access /dev/kvm by default on non-nixos machines
<benley>
huh cool this might actually work. It's a bit awkward to launch the test script but it's possible
<benley>
also wow, my first run of this caused a kernel panic inside the VM somehow
<benley>
oh it's just a OOM
<supersandro2000>
first problem can be solved with a wrapper script
<benley>
yup - and the wrapper script could be extracted from the `buildCommand` of the test derivation
nhs has joined #nixos
<benley>
second problem, I know there's some way to give the VM more ram because I've done it before. Turns out running a whole kubernetes cluster with a database server in it needs more than 400mb of ram, surprise surprise :-)
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #112950 → e2fsprogs,yosys,verilog: mark broken on darwin; ranger: cleanup stale substituteInPlace; pythonPackages.img2pdf: Disable… → https://github.com/NixOS/nixpkgs/pull/112950
rb2k has quit [Read error: Connection reset by peer]
<pbb>
Does anyone here know a way to patch strings in a binary? I have a binary application that references some absolute paths of binaries like "/usr/bin/awk" in shell snippets. I have tried sed, xxd+sed, bbe. All of them result in a binary that is not recognized by patchelf.
<benley>
re giving more memory to a nixos test: you just set virtualisation.memorySize = 1024; in the node spec
thelounge52 has quit [Ping timeout: 240 seconds]
<benley>
now something, probably some stray environment variable, is causing a golang app to be INCREDIBLY verbose and print like 25 lines every time it spawns a goroutine
<pbb>
avn: actually i don't want to use an FHSUserEnv and I thought it should be technically possible to replace those paths with space-padded relative paths of the binaries
jimmiehansson has quit [Remote host closed the connection]