<Ankhers>
I'm not sure if this is specific to NixOS or not, but I just used GCC to compile an application, and when I try to run it I get and error saying "symbol lookup error: /nix/store/...-gblic-2.27/lib/libpthread.so.0: undefined symbol: __libc_vfork, version GLIBC_PRIVATE". Does anyone know anything about this?
<Ankhers>
I also tried with clang and it has the same issue.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jv9dy
nuncanada2 has joined #nixos
bdju has quit [Ping timeout: 260 seconds]
nuncanada3 has joined #nixos
nuncanada has quit [Ping timeout: 272 seconds]
raingloom has joined #nixos
<raingloom>
sorry to repeat this noob question again, but what the hell does this error mean?
<raingloom>
error: cannot read '/nix/store/flmf4v59kv8r8r2ma6sqmi6rhj63dj6d-from-toml', since path '/nix/store/3i2558a7r4g8py1xwgh0d9ym1jbnncw5-from-toml.drv' is not valid, at /nix/store/arq0lahkq7i4w89n39m58fk54sv722zw-nixpkgs-20.09pre217463.053ad4e0db7/nixpkgs/pkgs/development/tools/poetry2nix/poetry2nix/lib.nix:39:9
<raingloom>
or more specifically, how do i fix this?
zeta_0 has joined #nixos
nuncanada2 has quit [Ping timeout: 272 seconds]
justanotheruser has quit [Ping timeout: 256 seconds]
bdju has joined #nixos
nuncanada2 has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<bqv[m]>
haha, poetry2nix
nuncanada3 has quit [Ping timeout: 272 seconds]
<bqv[m]>
raingloom: im assuming you're not editing/maintaining that package, in which case if you're seeing that, it's probably broken. alternatively, you're just not providing it a valid toml file? hard to say
<bqv[m]>
you'd probably get a better response if you post more than that contextless error message
<infinisil>
raingloom: What command are you using to get that error?
<raingloom>
nix-env -qa sqldeveloper
<raingloom>
this from-toml error has been there for months
Parra has joined #nixos
<raingloom>
host distro is guix btw. idk if that matters.
benedikt93 has quit [Quit: No Ping reply in 180 seconds.]
<infinisil>
builtins.fromTOML was only introduced in Nix version 2.1
<infinisil>
The problem with the IFD fallback is that it doesn't work in read-only mode, in which the /nix/store can't be written to, which IFD requires)
<infinisil>
And `nix-env -q` uses read-only mode
nuncanada2 has quit [Ping timeout: 272 seconds]
justanotheruser has joined #nixos
<raingloom>
ah. i see. is updating nix in my user profile enough?
<infinisil>
On NixOS you need to use NixOS to update it
<raingloom>
i guess that means a guix system reconfigure.
<raingloom>
thanks! i hope this works...
bvdw has quit [Ping timeout: 265 seconds]
<shor>
How can I ensure a nixOS ISO is built with ALL the closures needed to install without internet. such as including all of stdenv's build dependencies
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
iqubic has joined #nixos
<pjt_014>
have you had a problem with that before? last time I built my own Iso I didn't have any problems with an offline installation
<pjt_014>
most of my problems come during building it tbh
<shor>
no problems building, how did you get it to install offline?
<shor>
someone earlier helped with getting '<nixpkgs/nixos>' system's entire set of depends into the ISO, but requires a modified install script to ensure it doesn't attempt to connect offline
<shor>
but it means I have to build an iso with an unchanging configuration.nix
<pjt_014>
I ran nixos-install and it didn't need/try to fetch anything,
<shor>
might I have a copy of your iso.nix for building it?
<pjt_014>
I made it specially for an old i686 machine, I'll have to dig up the pyhsical CD I burned it to (bios didn't support usb booting)
<pjt_014>
disk was on top of the tower, that was easy
<{^_^}>
[mobile-nixos] @samueldr opened pull request #109 → Add `bin/menuconfig` to configure kernels → https://git.io/Jv9N9
<pjt_014>
so I spun up the cd itself, and unfortunately cfg.nix is not included in it. I do have nix-store.squashfs, which might have useful things inside though
<pjt_014>
also shor I'm looking at your paste and It's not like sonething I've seen before. Is it based on anything?
<pjt_014>
I mean I can see some of it comes from the wiki page
<shor>
Someone here named clever weaved it together for me, it causes a running system to build the closure that would normally be installed into an actual system, then its "system" attribute derivation lists the depends and puts them in the store.
<shor>
He included a script in environment.systemPackages to install from the closure rather than running a real install from the image
<shor>
but it requires me to know the entire desired config of the target machine in advance
<shor>
thus the "stub.nix", which is the configuration.nix for the specific machine and only that target machine. not useful for a modular iso, but amazing as its the closest I've gotten to an offline install
<shor>
the documentation on the wiki itself says it is impossible to install offline, but anecdotal evidence would suggest otherwise
wavirc22 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<pjt_014>
what? It doesn't really say that
<pjt_014>
"The installation will definitely need a working internet connection. It is possible to install without one, but the available set of packages is limited.
<simpson>
shor: What you're planning to do is equivalent to knowing what configuration you'll eventually deploy, sort of, since the ISO builder needs to know everything that you might want to enable.
<shor>
"First of all, NixOS cannot be installed without an internet connection."
<simpson>
Presumably this is a system that, even after install, won't have Internet? Then indeed you need to plan for that.
<shor>
simpson: yes, and this is what I want to avoid
<pjt_014>
maybe it's only talking about the custom kind?
<shor>
I saw that one too
<shor>
which tells me official documentation isn't quite caught up everywhere
h0m1 has joined #nixos
<colemickens>
That page is a bit misleading.
wavirc22 has joined #nixos
<pjt_014>
lemme see If I can find the one other page I was thinking of--It's not on the wiki
<simpson>
shor: Like, *the* reason why you wouldn't be able to install some particular package without Internet is because it's not already on the ISO. So this really *is* equivalent to knowing your configuration ahead of time.
<colemickens>
I think it means you "could" do that, by employing the method described (include a script that refernces the eventual installed-system-closure thereby including it into the iso's store)
<shor>
I'd like a modular solution to offline installs where I don't need to build a new ISO for every hardware config
mirux has quit [Quit: WeeChat 1.9.1]
dongcarl has joined #nixos
<shor>
the issue is still that if I have a bare bones cfg.nix, and all the build depends for that in the ISO, it *still* wants to pull depends from tarballs.nixos.org, or from non nix-cache locations
<shor>
even with --option substituters ""
<pjt_014>
man I'd love that--I still don't have a fully working armv6l :\
sigmundv_ has quit [Ping timeout: 258 seconds]
<pjt_014>
also: found it
<shor>
its not even that I need to prepare for missing packages, its that even the base system apparently isn't fully available on the ISO
<pjt_014>
this one notably deviates from what the wiki gives
<shor>
then here lets assume the minimal system without specifying any additional packages, any special filesystem support, no bootloaders, just the default config generated by nixos-generate-config
buckley310 has joined #nixos
nuncanada has quit [Quit: Leaving]
<shor>
this default then cannot be installed without an internet connection from the ISO at current time. It's not the extra packages I'm worried about, its that I can't change the disk that the bootloader would install to, and cannot always know the UUID of the disk the root filesystem would be on (or the filesystem configuration that machine might have to begin with)
<shor>
all of this would have to also be known, which is less modular than I would like to be prepared for. Even this level of barebones nixos is close enough to "one size fits all" for my satisfaction, as it can at least turn on and be configured in post
<{^_^}>
[nixpkgs] @petabyteboy opened pull request #83461 → xonotic: split glx, sdl, dedicated, data → https://git.io/Jv9AO
<pjt_014>
can you not factor out that information to other files which you would then import?
<simpson>
pjt_014: It sounds like these machines won't have Internet, even after installation.
<shor>
I could, but the idea is that I don't want to need that information in the first place.
<shor>
This is akin to having a basic debian install medium. I can walk around with a usb stick or cd that doesn't need internet to get a machine booting into debian
<shor>
But to have nixos rather than debian would be like carrying around a nuclear warhead over a 9mm pistol. I'd rather have nixos (;
<simpson>
Sure, but Nix ain't Apt.
<simpson>
nixpkgs/nixos/modules/profiles/installation-device.nix suggests that system.extraDependencies can be used to bring extra things to the CD "to speed up installation a little bit".
<shor>
but what would that large list of dependencies be?
<pjt_014>
and where would you use that?
<shor>
Anywhere I would install nixos, I don't find it unreasonable to attempt an offline installation of an OS
<simpson>
nixpkgs/nixos/modules/profiles/clone-config.nix seems to more directly tackle this desire, talking of using existing NixOS configuration to configure the ISO with tools to rebuild itself.
<infinisil>
extraDependencies isn't necessary if the contents of it are referenced elsewhere
<simpson>
shor: I don't know; you tell us. e.g. does it bother you that Debian doesn't have sudo in the minimal ISO and that you'd need Internet to get it? It's that sort of decision.
<shor>
it doesn't require sudo to just get debian into a bootable state
<shor>
I don't need to know the disk letter (sdX/hdX) to install grub to, and I don't need to know which partition or uuid of a partition the root is on before I begin installation, I just install and worry about that as I discover/configure
<simpson>
shor: Crucially, unlike with Debian, the packages on the ISO aren't necessarily the packages that will be installed onto the target machine. Therefore the ISO needs to have all of the tools and sources required to rebuild those packages. If the target machine won't *ever* have Internet, then you need to know the frontier of available packages ahead of time. Presumably this is just enabling whatever kernel
<simpson>
firmware you'd need? I would *not* recommend NixOS for machines that won't have Internet directly.
iqubic` has joined #nixos
<infinisil>
shor: What specific paths does it try to fetch from the internet when you attempt offline installation?
<infinisil>
shor: The full logs would be useful
<shor>
Lets even assume it will have internet later, or access to a binary cache somewhere on the network, or even a usb with nix-serve (which is what this machine will need actually)
iqubic` has quit [Client Quit]
<shor>
with that config of iso.nix in pastebin, it attempts to build stdenv-linux, the 1st depend of which is binutils, which it tries to get from a gnu mirror
iqubic has quit [Ping timeout: 240 seconds]
<infinisil>
Oh hm that shouldn't be
<shor>
I could in theory add binutils, then build the iso, and boot the machine over and over until I've tracked every depend. I just feel that there are hints of an offline install once being conanically possible but somewhere along the way this magic has been lost to us
<infinisil>
binutils should be included regardless
<simpson>
shor: Sure; if you know the target machine's configuration.nix, then you can build it far away.
<infinisil>
Something else must be the problem
<simpson>
infinisil++ focus
<{^_^}>
infinisil's karma got increased to 242
<shor>
With my current solution, its binutils. If I just attempt to install with the default ISO, its bash
<infinisil>
Like what are the contents of ./stub.nix
<shor>
there isn't more
<shor>
the stub.nix referenced there is just whats default in nixos-generate-config
<shor>
but with the bootloader.grub.enable set to false
<diekl>
I'm getting this error "unable to execute 'cmake': No such file or directory" when trying to install pyarrow. How can I solve this?
<simpson>
diekl: Guessing you want cmake in buildInputs?
<infinisil>
shor: Do you have the full start of the logs of an attempted offline installation?
andymandias has joined #nixos
<evanjs>
or nativeBuildInputs, depending, but yeah, shouldn’t matter if not cross compiling, I think..?
<shor>
let me spin up qemu to get a screenshot
andymandias_ has joined #nixos
<pjt_014>
shor: one other thing, maybe consider adding the let..in block described here under custom-iso.nix. It'd be convenient to move that boilerplate from the command line to the config file.
<pjt_014>
honestly the wiki page should be modeled after it
<shor>
pjt_014 what do you mean moving the boilerplate?
andymandias has quit [Ping timeout: 265 seconds]
<pjt_014>
nix-build -A '<nixpkgs/nixos>' etc. With this version it's just nix-build file.nix
<pjt_014>
the whole config's in a let block, and the in block is "20in { iso = (evalNixos myisoconfig).config.system.build.isoImage; }
<pjt_014>
"
<pjt_014>
* in { iso = (evalNixos myisoconfig).config.system.build.isoImage; }
andymandias_ has quit [Ping timeout: 264 seconds]
<pjt_014>
not what you're trying to solve here, but still good to file away for later
hlavaty` has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<shor>
sorry I don't think I follow, replace the current in {<block>} with that, right?
andymandias has joined #nixos
<infinisil>
Well I'm gonna go now, but shor, try to figure out why it tries to fetch things by e.g. comparing `nix-instantiate '<nixpkgs/nixos>' --arg configuration ./stub.nix -A system` on the iso-build system and the install system
<diekl>
I just had to gc so I'm rebuilding a bunch of packages. will report back.
hlavaty has quit [Ping timeout: 256 seconds]
<shor>
infinisil, thanks for the advice. safe travels ^^
<infinisil>
shor: These probably aren't the same, otherwise the local files could be used instead
<shor>
good point, hand't considered comparing
andymandias has quit [Client Quit]
<infinisil>
Oh and then you could also use `nix-diff` to compare the outputs of `nix-instantiate`
iyzsong has joined #nixos
<pjt_014>
shor: in the link above to the mayflower.consulting page, there's an example file called custom-iso.nix.
<pjt_014>
If you use it as a template you can reduce your build command from "nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix" to "nix-build iso.nix".
<evanjs>
Okay wait now im confused. You’re just trying to use pyarrow? Like just using the package from a nix shell? Or what? Because I can do that just fine over here
<evanjs>
diekl: like what do you mean by “install” pyarrow?
<diekl>
evanjs: I'm writing a package that has a dependency on pyarrow. My package uses Poetry, which uses a lock file. I'm trying to build the version of pyarrow that's pinned in the lockfile.
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 256 seconds]
<evanjs[m]>
which presumably is different from that provided by nix? Anyway, might be a little different for python deps
<diekl>
It's a different one than that provided by nixpkgs. pyarrow is a python wrapper around a mainly C++ lib.
<aria>
for some reason the "freefont-ttf" font package is installed onto my system, yet i have no reference to it in my config.nix. how can i investigate what installed it? it's messing with my font fallback, i want symbola!
<diekl>
evanjs[m]: Yep
zaeph1 has joined #nixos
zaeph has quit [Ping timeout: 250 seconds]
<shor>
so can't get qemu working at all right now to capture logs of install
nwspk has quit [Quit: nwspk]
simukis__ has joined #nixos
mir100 has joined #nixos
nwspk has joined #nixos
<pjt_014>
aria: presumably something else you're importing from is adding it in. One thing you could try (I think?) is adding pkgs.lib.mkForce in front of the fallback.
<aria>
pjt_014: i solved it a different way and just blacklisted the font 😅
<keith`>
I'm using kodi on a standalone media player built from nixos-19.09 and my remote, which requires lirc, does not work. The build logs for the kodi derivation indicate that cmake could not find the lirc client libraries, so I'm pretty sure kodi is built without lirc support. However, lirc is includedas a buildDepend in the derivation and there is a CMake define for the lirc socket path that seem to imply that it is intended to be
<keith`>
included. The problem seems to be that CMake is looking for the lirc pkg-config file and can't find it. I see that PKG_CONFIG_PATH in fact does not have an lirc directory in it, but I can't figure out why when it has entries for all the other dependencies. Is there anyone here that can give me some hints?
<tnks>
man... an upgrade of Catalina messed up my Nix installation (set up with LnL's "create volume" script), so I tried to reinstall Nix. But the installer doesn't seem to be setting up shells any more correctly. I thought /etc/bashrc or /etc/zshrc were set up to source shell snippets. That doesn't seem to be there any more.
blibberblob has quit [Quit: WeeChat 2.7.1]
xelxebar has quit [Ping timeout: 240 seconds]
gxt has quit [Ping timeout: 240 seconds]
<tnks>
Do I just have to source /nix/var/nix/default/etc/profile.d/nix-daemon.sh manually?
<danderson>
I also contributed a t495 profile to the nixos-hardware channel, you might want to pull that in
cole-h has quit [Quit: Goodbye]
<danderson>
although I don't remember it doing anything super interesting to make suspend work
<est31>
thx
<danderson>
mostly forces a recent kernel, and does some thinkpad generic things
<danderson>
my config for the laptop is a huge mess atm
<danderson>
the bits you care about are going to be in either boot.nix or configuration.nix
<danderson>
the latter is still the unsorted mess of "do whatever it takes to make it work"
<danderson>
haven't refactored yet
<est31>
ok
<danderson>
main things you should do: the acpi_call stuff in configuration.nix, acpi_backlight=native in kernel params (allows backlight keys to work)
<danderson>
and services.xserver.videoDrivers = [ "amdgpu" ]
<danderson>
I can't remember what driver it came up on out of the box, but it wasn't that one
<est31>
I'll check
<danderson>
you might also want to enableRedistributableFirmware and hardware.cpu.amd.updateMicrocode
<danderson>
I don't know if it's required, but it's good hygiene to give laptops the latest possible firmware for everything
<est31>
wow that's a lot of options
<danderson>
since modern hardware ships out of the factory half-finished with day 1 patches...
<danderson>
it's in... I think /var/log somewhere?
abathur has quit [Ping timeout: 240 seconds]
<est31>
it's systemdified it seems
<est31>
journalctl -b -u display-manager.service
* lovesegfault
nods
<est31>
(EE) Failed to load module "amdgpu" (module does not exist, 0)
<est31>
hmm
<est31>
I guess it has to be specified then
delan has joined #nixos
delan has joined #nixos
delan has quit [Changing host]
<lovesegfault>
gdm?
Maxdamantus has quit [Ping timeout: 250 seconds]
<est31>
I'm using sddm
<est31>
+kde plasma
<lovesegfault>
Ah, nice
<est31>
very happy that I got the laptop at all, amidst the corona chaos
<est31>
it was direct shipment from china
Maxdamantus has joined #nixos
<danderson>
heh, same. I ordered it at the end of January. It arrived early March.
captjakk_ has quit [Remote host closed the connection]
<danderson>
after a lot of Lenovo going "so yeah, about that, it's shipping from that _other_ quarantined hi-tech city you're reading about in the news"
FRidh2 has joined #nixos
<est31>
:p
FRidh has quit [Ping timeout: 264 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 264 seconds]
palo1 is now known as palo
* est31
reboots wish me luck
tsrt^ has quit [Ping timeout: 250 seconds]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
<est31>
rebooted
<est31>
twice
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
<est31>
fist I tested the suspend mode
<est31>
didnt work :/
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
<est31>
but I do have amdgpu now
<Ashy>
est31: if your card is recent then the amd drivers should be included in the kernel already
<Ashy>
you don't have to do anything special in your nixos config
KeiraT has joined #nixos
<est31>
there are kernel drivers and drivers that run in userspace
<est31>
both are needed
<Ashy>
you mean mesa?
<est31>
yeah
<est31>
kernel has a module called drm
<est31>
which does general setup of the card
<est31>
the details are then done by userspace
<est31>
there is a layer in between where systemd manages permissions so that x doesnt have to run as root
<est31>
not sure how it's done on nix os
<danderson>
there's an open bug to make X run as !root on nixos :(
<hlavaty>
how can i start new thread in discourse per email? sending email to nixos1@discoursemail.com gives [NixOS Discourse] Email issue -- Unknown To: Address. i can reply to existing threads though
<srk>
existing thread emails probably use some kind of List-Id identifier
<hlavaty>
well, i had to register an account, and now i cant even post:-(
<srk>
probably not possible to start new threads via email, how would you choose a category for example
<srk>
yeah, someone need to approve your account
<srk>
won't take long, don't worry
<hlavaty>
i created an accound long time ago
<hlavaty>
i can reply to things
<hlavaty>
but i cannot send a new question
<srk>
even via web?
<hlavaty>
per email, in 2018, Click the following link to confirm and activate your new account:
<qyliss>
You can start new threads via email
<hlavaty>
srk: i have no interest in fiddling with yet another website
<qyliss>
Or at least you're supposed to be able to
<srk>
that's good if it works
knupfer has joined #nixos
<srk>
hlavaty: I'm not a huge fan of modern web ifaces either
<qyliss>
cc zimbatm
Maxdamantus has quit [Ping timeout: 240 seconds]
Maxdamantus has joined #nixos
<hlavaty>
qyliss: is there an explanation, how to do it?
<hlavaty>
srk: yeah
cinimod has joined #nixos
<colemickens>
so even if I pass --print-build-logs I still can't actually tell what's going on or why these remote builds re taking forever :/
<qyliss>
hlavaty: I thought what you were doing should have worked
<qyliss>
So possibly something is broken? I'm not really sure.
<qyliss>
But I do know that it's definitely supposed to work.
<hlavaty>
srk: good find, but it doesn't seem to be possible without browser: To create a new topic in a category via email, navigate to that category, and click the envelope button:
<srk>
hlavaty: yeah but with you can figure out how to construct these by hand ;)
<hlavaty>
might also forget about discourse
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
* srk
can't find the envelope button :D
<hlavaty>
:D
<srk>
and! the discourse.mozilla.org image is 404, just lol
<srk>
maybe it's some plugin
<yorick>
colemickens: do they have a lot of dependencies?
<yorick>
colemickens: nix copy of big closure to somewhere you have a high ping to is notably slow
Makaveli7 has joined #nixos
<colemickens>
I don't even know. I canceled it, converted from nix cli2 to nix cli1 as I've done countless, countless times before and then it finished somehow very quickly, though still seemed to take its time copying each derivation up, then copying back the build result every time
<colemickens>
:/
<yorick>
colemickens: remote builds copy the full build result back, yeah
<colemickens>
I'm fine with that, but it doesn't seem efficient to transfer them all back and forth one by one
<colemickens>
...
<colemickens>
I just wrote that script, ha
<colemickens>
It seems unfortunate this script need be written
<hlavaty>
colemickens: you could have a look into substitutes, or nar files
<colemickens>
mine will take nix-instantiate args and then do roughly the same steps
<colemickens>
hlavaty: hm, afaict the nix tooling should do this or hide this for me, and then the process yorick and I are using indeed uses nars and rsync to batch things (or at least, that was my theory)
turion has joined #nixos
<turion>
How would I go about when I want to build a fetcher that accesses a database?
<zimbatm>
hlavaty: let me bump your account trust level. I don't want us to get spam
<est31>
according to it, the first option it gives won't work because I depend on stuff
<zimbatm>
hlavaty: if you send me your account name
<est31>
the third seems to work for additional packages but not when you want to modify an existing package deep in the system
<est31>
and the for the second option I couldnt find any info on how to make nix os use locally patched nixpkgs
<zimbatm>
hlavaty: try again, I think I found your account
fendor has joined #nixos
ottidmes has joined #nixos
<hlavaty>
zimbatm: understand, thanks. i dont have anything to send now as i have opened an issue instead. i will try to send something to discourse when i have something to say/ask and will tell you if it doesnt work. thanks a lot
<turion>
Is there a way how I can add a single python module (not a package) to python.withPackages?
<turion>
The module is just a local file
hlavaty has quit [Quit: ERC (IRC client for Emacs 26.3)]
<turion>
I don't have a setup.py and all that
hlavaty has joined #nixos
<Yaniel>
the Right Way would be to make a package from it I think
cybrian has quit [Read error: Connection reset by peer]
<zimbatm>
hlavaty: alright, ping me if it still doesn't work :)
<FRidh2>
turion: override the python packages set, include your package there. build a derivation with say runCommand and apply toPythonModule to it.
__red__ has quit [Remote host closed the connection]
bridge[evilred] has quit [Remote host closed the connection]
cybrian has joined #nixos
<FRidh2>
you can do without overriding the packages set by just including the dreivation directly in the list...just apply toPythonModule to it first
<FRidh2>
so it gets recognized as a library
<turion>
FRidh2: And if it's a module that I want to import from my script?
abathur has joined #nixos
<FRidh2>
"my script" what script? If you want to have the script managed by nix, then you need to create a derivation that includes that script and your python environment
<turion>
FRidh2: I have two scripts. Say a.py and b.py. a.py does some deterministic number crunching, but has "import b".
<turion>
I'm currently trying to make a.py into a fixed-output derivation
<turion>
But I need to pass it b.py somehow so it can import it
<turion>
FRidh2: So I don't know how to turn my single local file b.py into a reasonable derivation
abathur has quit [Ping timeout: 260 seconds]
<turion>
I mean, what should its install phase be?
<turion>
`cp b.py $out`?
pjt_014 has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 264 seconds]
<FRidh2>
so, a is an executable and b a library
cybrian has quit [Remote host closed the connection]
<FRidh2>
I suggest creating a propert python package out of it, e.g. using setuptools
sigmundv_ has joined #nixos
<turion>
b doubles as an executable
<turion>
(To add to the confusion)
<turion>
FRidh2, Yaniel: Yeah probably I need to bite that bullet
vandenoever has quit [Read error: Connection reset by peer]
chagra_ has quit [Read error: Connection reset by peer]
<turion>
It's a bit annoying, I'm not a Python dev (anymore), these are just some scripts that my team threw around
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<ottidmes>
Valodim[m]++ When I tried setting up a buildMachine few days back I had to do a few searches and check the source to find out what each did, so thanks for the PR!
<turion>
Another (hopefully) simple question. Why does this not work:
<turion>
let file = ./path/to/an/existing/file; in stdenv.mkDerivation { name = "foo"; builder = "cp ${file} $out"; }
<turion>
It says "bash: ... No such file or directory"
<ottidmes>
Valodim[m]: I tried just now, it does not break anything else, but when I enable my builders, I get: error: The option value `nix.buildMachines.[definition 1-entry 1].sshKey' in `/cfg/shared/modules/nix-daemon.nix' is not of type `string'.
erictapen has joined #nixos
<ottidmes>
Valodim[m]: I only set 2 attributes, the hostname and system attribute
cybrian has joined #nixos
<ottidmes>
Valodim[m]: which makes sense, given you have: type = types.str; default = null;
<ottidmes>
Valodim[m]: this is also the case for the system attribute
orivej has joined #nixos
o1lo01ol1o has joined #nixos
chloekek has quit [Ping timeout: 265 seconds]
<ottidmes>
Valodim[m]: maybe add that higher is faster (at least I assume that is the case) at speedFactor, cause a lot of relative numbers in Nix prioritize the lower numbers
<Valodim[m]>
ottidmes: I don't have time right now, mind posting that to the PR so I can revisit later?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<Valodim[m]>
ottidmes: I actually don't know if higher is faster :) I guess so?
<Valodim[m]>
thanks for the feedback!
snicket has joined #nixos
<LnL>
tnks: yeah, I noticed that too :/ the update replaced a bunch of stuff (luckily this is much less of a pain with nix-darwin)
chagra_ has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 265 seconds]
kenji has joined #nixos
kenji_ has joined #nixos
{^_^} has quit [Remote host closed the connection]
<turion>
I tried: let a = ../path/to/a.py; b = ../path/to/b.py; in pkgs.runCommand "foo" { buildInputs = [ myPython ]; } ''
<turion>
export PYTHONPATH=${b}
<turion>
'';
<turion>
${myPython}/bin/python ${a}
<turion>
And I checked with an echo that PYTHONPATH gets indeed mutated to the correct value
<turion>
Nevertheless python doesn't find my script
<turion>
I.e. "import b" fails
chpatrick has joined #nixos
chagra has joined #nixos
opthomasprime has left #nixos [#nixos]
chloekek has joined #nixos
chagra has quit [Ping timeout: 265 seconds]
<turion>
Oh. I need to create a folder and put the scripts there, together with an __init__.py.
chagra has joined #nixos
iyzsong has quit [Ping timeout: 256 seconds]
<chpatrick>
hi guys, any idea how I can get xdg-open to work with appimageTools?
<chpatrick>
it finds xdg-open and tries to open a URL but then nothing happens, I guess because it's sandboxed?
cosimone has joined #nixos
mokasin has joined #nixos
<mokasin>
Is it safe to use a module from unstable in a stable installation?
FRidh has quit [Ping timeout: 240 seconds]
<mokasin>
Context: I did this via let unstable = import <unstable> {}; in { services.*.package = unstable.*; } and it worked fine. However, I just tried to return to the stable version (which is the same upstream version and there are issues)
FRidh has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<ottidmes>
mokasin: depends on the module, in your example though you are just using an unstable package within a stable module (assuming you run stable by default), which would again depend on the module whether it works well with later versions, but most of the time this should work just fine
iyzsong has joined #nixos
<ottidmes>
mokasin: to use a unstable module, you would have to use disabledModules with the path (relative to /nixos/modules) to the module, and then add your unstable one with e.g. imports = [ (unstable.path + "/nixos/modules/some/service.nix") ];
reanimus has quit [Quit: Logging off...]
o1lo01ol1o has quit [Ping timeout: 264 seconds]
snicket has quit [Ping timeout: 240 seconds]
<bqv[m]>
Is the bot not here?
reanimus has joined #nixos
maddo has joined #nixos
<bqv[m]>
{^_^}
<betaboon>
is it somehow possible to allow a specific derivation to access online git during build ?
<nextloop>
i just tried booting kernel_latest and my synaptics touchpad no longer works. what could be the reason?
<hlavaty>
betaboon: maybe if you turn of sandbox, but it is a bad idea anyway
<betaboon>
na don't want to do that XD
<betaboon>
i was hoping to being able to do that for just a single derivation
<ottidmes>
,ping
<clever>
betaboon: define an output hash and nix will allow network
<betaboon>
clever: is that documented somewhere ?
<clever>
betaboon: add outputHash = "hash"; outputHashMode = "recursive"; outputHashAlgo = "sha256"; to a derivation, and it will enable network access
<betaboon>
clever: thank you. wont help in my case :(
snicket has joined #nixos
<clever>
betaboon: what are you trying to do?
<betaboon>
clever: i am using zsh and antibody as my plugin-manager. i was trying to switch to the static-mode of antibody (which downloads the plugins first, creates a sh-file that loads them. opposed to doing that dynamically)
<betaboon>
clever: thus it fetches all the defined plugins once. does that from the network obviously.
<clever>
betaboon: youll probably need to have nix download things with fetchurl, then point antibody to a dir of pre-fetched things
<betaboon>
just gonna rebuild that in a nix-way. shouldnt take to much work
<ottidmes>
betaboon: that fits the use case clever described though
<betaboon>
ottidmes: i dont know the outputhash beforehand, thus it doesnt (afaik)
<clever>
,tofu betaboon
<clever>
betaboon: just give it the wrong hash on purpose, build it once, and then copy the real hash
<ottidmes>
betaboon: but it will always return the same static output in static mode, right? Than that is fine
<betaboon>
clever: yeah thought so to. but: that is everything antibody would have done in that usecase. so it becomes obsolete when doing the prefetch with nix XD
<ottidmes>
betaboon: tofu = trust on first use
<betaboon>
ottidmes: no it wont. it will fetch the most-recent versions of the plugins
<clever>
betaboon: is there a lock file, that lists the hash of everything antibody is going to download?
<nextloop>
does the kernel configuration change a lot?
<clever>
ah, youll need a lock file then, to stop it from getting latest
<turion>
How do I give a runCommand internet access?
<betaboon>
clever: nope. i'll just switch to defining derivations for the few plugins that i use, wire stuff together "manually" and get rid of antibody XD
<turion>
clever: Thanks!
<gchristensen>
turion: what are you doing with it?
<ottidmes>
nextloop: your problem probably just stems from a driver change, doubt it is NixOS related, be sure to search for your device name / driver name with the kernel version, maybe there are other distro sources you could use to figure out what is going on
<ottidmes>
nextloop: I had it happen to my network driver once, where I had to enable a flag after a certain kernel version, otherwise it would no longer work after coming out of sleep
<turion>
gchristensen: Building my own little fetcher for an append-only database
to8 has joined #nixos
<gchristensen>
cool
<turion>
gchristensen: Basically, we have a lot of different scripts for (deterministic) data analysis, and I want to tie them together with nix such that we can cache intermediate data dumps, share our results as derivations, have a build server that builds our analyses and pushes them to a joint cache, and so on
<bqv[m]>
you can use `svn co https://github.com/owner/repo/trunk .` to clone a github repo without using git, but that doesn't seem to work for nixpkgs... guess it's just too big
<gchristensen>
neat!
<gchristensen>
you're not using runCommand to do the pushing, right? :)
<turion>
But all these scripts are standalone python things, and I can't ask the package authors to get them organised in a package. At least not before I have something valuable to show.
<bqv[m]>
hey, anyone else matrix-side, are we missing messages?
<turion>
Haha no :D nix-build | cachix push mycache
<gchristensen>
cool
<srk>
bqv[m]: why svn? :) why do you think so?
<turion>
And I'm not enough of a Python dev to package them in a way that doesn't disrupt my colleagues workflow
<bqv[m]>
srk: because github supports svn
opthomasprime has joined #nixos
<bqv[m]>
i don't actually use svn, it's just a convenience
opthomasprime has left #nixos [#nixos]
<srk>
but what's the reason to use inferior tool? :)
<bqv[m]>
inferior hahaha
<srk>
like opposite is quite common - using git with svn remote but first time I see someone do svn -> git
<srk>
*the
<bqv[m]>
one good reason is that it clones it without .git, or any history, beyond that, just for fun
<bqv[m]>
i can't see any decent free svn hosts out there these days anyway
<srk>
you can do shallow git clones btw
orivej has joined #nixos
abathur has joined #nixos
teto has joined #nixos
<infinisil>
gchristensen: Bot dead
<bqv[m]>
i know, but there's less letters in "svn co" than there is in "git clone --depth=1"
<turion>
When I define a derivation with runCommand, and then I _change_ the command, it doesn't get re-executed???
<bqv[m]>
like i said, convenience :p
<srk>
:D
<turion>
I need to touch the hash as well... that's confusing
<gchristensen>
infinisil: oops
<mokasin>
ottidmes, ah, that means, it kinda works on accidence and would in this case break, if the config breaks
<infinisil>
turion: You could do something like `let cmd = "..."; in runCommand "foo-${builtins.hashString "sha256" cmd}" {} cmd`
<turion>
infinisil: Ah! Makes sense, thanks :)
<infinisil>
Though this doesn't really help much actually
<infinisil>
Because without changing the outputHash, you can't have any different output
<mokasin>
ottidmes, *by accident
<infinisil>
Oh, but you get an error then at least
abathur has quit [Ping timeout: 265 seconds]
<infinisil>
turion: Oh but better: Embed all parameters that should change the hash into the name
CptCaptain has joined #nixos
<ottidmes>
turion: I have used this when testing a fetcher (make sure it has no roots, or else it won't delete): nix-store --delete $(nix-build --no-out-link '<nixpkgs>' -A hello.src) && nix-build --no-out-link '<nixpkgs>' -A hello.src
<turion>
Ah ok
<turion>
But why doesn't the store path hash change when I have a different command?
<turion>
Is it computed from the outputHash?
<ottidmes>
turion: You basically say, it has this output hash, trust me
<ottidmes>
turion: else it would have to refetch all the time
<ottidmes>
because who knows maybe the fetched files changed in the mean time, but to prevent constant rebuilding, it trusts that if the output hash you specified did not change and it is still in the store, no need to refetch
linarcx has quit [Ping timeout: 256 seconds]
andi- has quit [Quit: WeeChat 2.7.1]
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
{^_^} has joined #nixos
<infinisil>
And note that it's the /nix/store path that's checked for existence, which is why changing the derivation name has the same effect as changing the hash
<ottidmes>
mokasin: Well, only when the corresponding module of the package underwent changes needed to support a later version (e.g. different CLI) is it required to update the module too when updating the package, but often times just setting the package to a later version won't break the module.
<turion>
My users need to be able to use my custom fetcher with very little friction. I guess it's ok to tell them "run that prefetch script first"
<ottidmes>
turion: Pretty much, some do the computation themselves, others (like mine) basically automate what you would normally do (since it is a general prefetcher), they are mostly there to fetch and store the files in the /nix/store and report the correct hash
<turion>
But anything that goes beyond copy-pasting a hash is too complicated
<turion>
kenji: how would I use niv for this?
<ottidmes>
turion: I also have an updater that automatically changes the source code with the corrected hash
<turion>
ottidmes: Hmmm, that sounds more like it ;)
<gchristensen>
is there a way to set some environment variables for every systemd service from within NixOS's module system? (environment.variables doesn't do it)
<ottidmes>
gchristensen: probably just using mkOption's apply would do that
<gchristensen>
hmm
<turion>
I think I'm also fine with nursing my own little ~/.mypackage/hashes.json file and writing a little script that creates one for every user
<ottidmes>
gchristensen: you get it, right? or do I need to eloborate?
<gchristensen>
yep, thanks, ottidmes!
kenran has joined #nixos
<ottidmes>
turion: that is why niv was mentioned, it handles that use case best, although my nix-prefetch could do almost the same, niv is more specific to that use case
bvdw has joined #nixos
kenran has quit [Client Quit]
<ottidmes>
How does one set SOURCE_DATE_EPOCH when you use a local path, it will be build in a sandbox, so the local path will already be copied to /nix/store, which truncates the info necessary to determine SOURCE_DATE_EPOCH
<thinkingeye>
Hi, is it possible to specify the exact minor version of the nvidia driver in nixos configuration without cloning extra the whole nixpkgs from github and change it manually directly in the code? ... like kind of an override
tpmadz[m] has joined #nixos
sigmundv_ has quit [Read error: Connection reset by peer]
jboy has quit [Quit: bye]
snicket has quit [Ping timeout: 240 seconds]
sigmundv_ has joined #nixos
apeyroux has quit [Remote host closed the connection]
<thinkingeye>
@Yaniel. I am a bit familiar with overriding the version string of a regular package, but I don't know for nvidia where it is splitted in multiple files
<betaboon>
anyone knows how to use `zsh-fast-syntax-highlighting` ? oO
<alexarice[m]>
think this has been asked before but is there a nice way to work out where `warning: dumping very large path (> 256 MiB); this may run out of memory` is coming from
philr has quit [Quit: WeeChat 2.7]
<bqv[m]>
probably something not cleaning a source
AREISME has joined #nixos
AREISME has left #nixos [#nixos]
init_6 has joined #nixos
snicket has quit [Remote host closed the connection]
philr has joined #nixos
<tilpner>
alexarice[m]: strace and -vvvvv
<alexarice[m]>
will give it a go, thanks
<tilpner>
alexarice[m]: Most nix tools accept multiple -v, which gets them to output more information, like what path is being read
knupfer has quit [Remote host closed the connection]
to has joined #nixos
knupfer has joined #nixos
to is now known as Guest61533
<evils>
is there a way to `nix-env -u` but skip failing/broken packages and still update the others?
vinymeuh has joined #nixos
vinymeuh has quit [Client Quit]
vinymeuh has joined #nixos
<xfix>
you can nix-env -u separately for each package
vinymeuh has left #nixos [#nixos]
<xfix>
out of curiosity, what package is broken, maybe it could be fixed?
<evils>
matterhorn, the mattermost-api package fails on building the documentation, a fix is on their github master, the previous version works just fine...
Guest61533 has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @globin pushed commit from @flokli to release-20.03 « gitlab: 12.8.7 -> 12.8.8 »: https://git.io/JvHK3
<evils>
current workaround for me is to `nix-env -e matterhorn; nix-env -uv; nix-env -i /nix/store/*matterhorn*`
<evils>
any idea how to see which channel env packages come from? (i still have some 19.09 packages in there even though i've been using nixpkgs-unstable for quite a while)
LysergicDreams has quit [Ping timeout: 256 seconds]
<bqv[m]>
,locate makeinfo
<{^_^}>
Found in packages: texinfo, texinfo4, texinfo5, texinfoInteractive
<thinkingeye>
I tried like: nixpkgs.config.packageOverrides = super: let self = super.pkgs; in { nvidia_x11_legacy340 = super.nvidia_x11_legacy340.overrideAttrs (old: rec { version = "340.18"; });});};
<thinkingeye>
But it is not working to update manually my nvidia driver
v0|d has joined #nixos
<srk>
version is probably not enough, you need to change src
<srk>
even if ${version} is part of src it would result in wrong hash
<thinkingeye>
yes, I tried also to set src, but no change...like it would be ignored
learnday20 has joined #nixos
ottidmes has joined #nixos
<thinkingeye>
nvidia default.nix calls a local generic.nix file but I dont know how to do this in an override
dongcarl has joined #nixos
hlavaty has quit [Remote host closed the connection]
<srk>
better to refactor this into overlay
<srk>
,overlays thinkingeye
<{^_^}>
srk: Did you mean overlay?
<{^_^}>
thinkingeye: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<learnday20>
hello nixos-experts- I am trying to upgrade my nixos from 19.03 to 19.09, after rebuild switch reboot, all I see is a black screen with no blinking cursor. What am I doing wrong? thank you!
<srk>
thinkingeye: also are you sure you're overriding correct package?
<ottidmes>
I currently have AllowGroups sshusers in my sshd config, just wondering, is there really any security benefit in doing so
<thinkingeye>
ok, thanks, I will try with overlays
dooms_ is now known as nbathum
anderslundstedt has quit [Ping timeout: 264 seconds]
<thinkingeye>
@srk yes I am overriding the correct one...if I set this package to for example an other nvidia_legacy390 package, its downloading this version
<srk>
learnday20: not enough details to know why, can you access logs? can you switch to another pty?
<ottidmes>
learnday20: best way is to boot back into your 19.03 generation and check the journal for what went wrong
<ottidmes>
learnday20: most likely a display manager or GPU issue though
<srk>
thinkingeye: cool, if you kept the same hash but change url it wouldn't download anything
<learnday20>
thanks srk: I can boot back to 19.03 but I want to upgrade to latest relese and I am not knowledgable to know where my nixos logs are. thanks
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #83503 → uberwriter: renamed to apostrophe → https://git.io/JvH6h
<ottidmes>
learnday20: NixOS uses systemd, so you can access the logs with journalctl
FRidh2 has joined #nixos
<srk>
learnday20: as oddtimes said check the journal. even if graphics are broken you can often switch to pty with e.g. ctrl-alt-F1 and log-in
<srk>
oddtimes, sorry ottidmes /o\
FRidh has quit [Ping timeout: 265 seconds]
<learnday20>
ottidmes: xserver is enabled in configuration.nix. thanks i will check journalctl
cinimod has quit [Ping timeout: 250 seconds]
zaeph has quit [Ping timeout: 264 seconds]
<thinkingeye>
@srk I mean, if I write: [...] nvidia_x11_legacy340 = super.nvidia_x11_legacy390 [...] then it is downloading the 390 version
<peelz_>
If I'm cherry-picking packages from nixpkgs-unstable while on a stable branch, am I at risk of breaking pkg dependencies?
<peelz_>
through an overlay
ratsclub has joined #nixos
<ratsclub>
Hi guys! How are you?
<srk>
thinkingeye: and that's the correct version you need?
glittershark has quit [Ping timeout: 250 seconds]
<ratsclub>
I'm having a little trouble with emacs may someone help me?
<srk>
peelz_: not really, unstable packages will bring their own deps
<ottidmes>
peelz_: it could indeed cause breakage, only way to see is to try and see if it works
<ratsclub>
I can't really start the emacs.service with systemctl
<thinkingeye>
@srk: no, I need exactly 340.108, but it is not available in nix, yet
growpotkin has joined #nixos
<peelz_>
two conflicting answers hmmm
captjakk_ has joined #nixos
drakonis has joined #nixos
<learnday20>
ottidmes: I am able to see gui login in 19.03 with xserver and plasma5 as displaymanager but 19.09 not liking for some reason, any special configuration i have to do for 19.09 i read the manual but doesnt list graphics issue
<ottidmes>
peelz_: well @srk is right when you would use say, unstable.package, but if you copy the definition from unstable and put it locally and add it to an overlay with callPackage ./local-copy.nix { }, well the latter could break
bvdw has quit [Ping timeout: 258 seconds]
glittershark has joined #nixos
<ottidmes>
learnday20: could still be a kernel issue, newer NixOS, is newer stable kernel
zaeph has joined #nixos
<ottidmes>
learnday20: which could mean a different GPU driver, causing xserver to crash if it does not work for your card anymore
anderslundstedt has joined #nixos
<peelz_>
ottidmes++ srk++
<{^_^}>
ottidmes's karma got increased to 23, srk's karma got increased to 4
<Orbstheorem>
How can I install a given output using nix-env ?
<peelz_>
ottidmes: could this cause breakage?
<learnday20>
thanks nixos experts, the best people! I will struggle through and do some testing
<ottidmes>
peelz_: nope, that should work, because the versions of its dependencies will match that of unstable
<clever>
Orbstheorem: nix-env -iA nixos.hello.out
<peelz_>
ottidmes: match? how so? when are those dependencies resolved?
cinimod has joined #nixos
<Orbstheorem>
clever: I'm trying to install pinentry.curses, but I still don't get the curses output, just 'out'
<clever>
> pinentry.meta.outputsToInstall
<{^_^}>
[ <CODE> ]
<clever>
> :p pinentry.meta.outputsToInstall
<{^_^}>
[ "out" ]
<clever>
Orbstheorem: this may bypass things
<ottidmes>
peelz_: BTW, I assume you are defining this within your NixOS config, seeing you use nixpkgs.overlays, then I would recommend using pkgs.fetchzip with a hash, unless you really want to stay on the bleeding edge and don't mind redownloading unstable nixpkgs everytime you garbage collect
<peelz_>
ottidmes: fetchtarball doesn't create a derivation?
<clever>
peelz_: fetchTarball is an eval-time fetch, that behaves more like ./.
<ottidmes>
peelz_: nope, it's a builtin that works differently
<peelz_>
ah gotcha
<peelz_>
will keep that in mind. for now I'm fine with staying on the bleeding edge
<ratsclub>
but those are my files right now and I can't figure it out why it's not working
<clever>
you managed to spam while using a pastebin!
growpotk- has joined #nixos
ArdaXi has joined #nixos
<bqv[m]>
lmao
<ratsclub>
I'm really sorry, it's the first time I'm using ERC and I don't really know how things works here hehe
<bqv[m]>
incredible
<hyper_ch>
ERC? Emergency Recovery Clone?
<peelz_>
I'm getting this message in my `nixos-rebuild switch --upgrade` logs: https://termbin.com/bqof -- what's it about?
<ratsclub>
ERC the IRC client on emacs
<hyper_ch>
emacs comes with an irc client? never knew
<hyper_ch>
thx
<learnday20>
hello nixos experts: can someone log at my kernel error messages during upgrade to 19.09 from 19.03 at cryptobin.co/q3s4h7e3
<hyper_ch>
learnday20: I'm no Bruce Schneier
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #83505 → pythonPackages.matplotlib: remove propagated nose dep → https://git.io/JvHiM
<peelz_>
lmao
<hyper_ch>
peelz_: feel free to pastebin your configuration.nix - remember to edit out sensitive information
<ratsclub>
so things I have tried so far: putting emacs as a system package, putting it as a user package and tried to make every possible combination on the service.emacs flags
<learnday20>
nixos to get in
<bqv[m]>
hyper_ch: it actually comes with 4
<bqv[m]>
erc, circ, rcirc, and something else i think
<ratsclub>
but none of them gives me a emacs.service
<hyper_ch>
bqv[m]: everything I know about emacs I learnt from this https://xkcd.com/378/
<ottidmes>
ratsclub: what is exactly the error when you run systemctl --user enable emacs.service? I get some warnings when I enable a NixOS created user service, but it works, and starting and such goes without problem
<ratsclub>
Failed to enable unit: Unit file emacs.service does not exist.
<ratsclub>
<bqv[m]>
lol
shor has joined #nixos
<peelz_>
hyper_ch: I'm guessing it's a new nix flag or something? related to the flake RFC I've been hearing about?
<ratsclub>
it's weird because it should generate this file, shouldn't it?
<bqv[m]>
have you enabled the service?
<bqv[m]>
(i haven't looked at the pastes, i'm only half paying attention)
<ratsclub>
yep
<clever>
ratsclub: and did you rebuild switch?
<ratsclub>
yes
<hyper_ch>
peelz_: no idea... I don't see anything weird in your config... but why do you use unstable packges? now not just change to unstable channel?
<clever>
ratsclub: what about `systemctl status emacs` as root?
<ratsclub>
It can't find emacs.service with sudo systemctl
captjakk_ has joined #nixos
<peelz_>
hyper_ch: some packages haven't been backported to NixOS 19.09. I prefer to stay on stable channels so to minimize bugs with bleeding edge builds.
<hyper_ch>
those are no bugs. those are random features :)
<peelz_>
lol
<ottidmes>
peelz_: you can safely ignore those warnings
arahael2 has quit [Ping timeout: 250 seconds]
<ratsclub>
ottidmes: it gives me true on the terminal
matthiaskrgr has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net - currently broken?]
<peelz_>
ottidmes: okay thanks. do you know what it means though?
<peelz_>
ottidmes: yeah I saw that, but I'm not sure if this is a result of my unstable packages or an issue with NixOS 19.09
<ottidmes>
ratsclub: if it returned false, what about nix-instantiate --eval --expr 'with import <nixpkgs/nixos> { }; config.services.emacs.enable', if that is false as well, clearly it is not loading the right config file
<bqv[m]>
oh
<bqv[m]>
hang on
<bqv[m]>
i think i know why
<ottidmes>
peelz_: should be 19.09, cause you just installed some unstable packages, and did not change your modules
<ottidmes>
systemctl --user enable /etc/systemd/user/emacs.service (just brainstorming here, but who knows, maybe it works, since you said it does exists over there)
ratsclub33 has joined #nixos
<clever>
ottidmes: enable will never work on nixos
<bqv[m]>
so i was kinda right with the daemon-reload
evanjs has joined #nixos
ladfkjgad has quit [Ping timeout: 240 seconds]
<ratsclub>
daemon-reload didn't work too
<clever>
ratsclub: didnt work how?
<clever>
ratsclub: did it error, or not do what you wanted?
<ottidmes>
clever: I wondered about that, hardly have an experience with user services, but I got errors/warnings when I enabled, seemed to have an effect though, so I thought it worked regardless
<ratsclub>
Failed to enable unit: File /home/ratsclub/.config/systemd/user/emacs.service already exists and is a symlink to /nix/store/ibaz5azw5fr4b2mwdpcnaiq72888iz3l-unit-emacs.service/emacs.service.
<ratsclub>
<clever>
ratsclub: thats not an error daemon-reload can give
<ottidmes>
clever: BTW how do they work on NixOS, cause some of my user services seemed to automatically start after installing NixOS
<ratsclub>
clever: even after doing daemon-reload it says "emacs.service does not exist"
LysergicDreams has quit [Ping timeout: 265 seconds]
ATuin has quit [Ping timeout: 240 seconds]
<ratsclub>
I have no idea what I'm doing wrong here I followed the manual as he told me to do
<clever>
ottidmes: nixos will dynamically generate /etc/systemd/user to suit what is enabled
apeyroux has joined #nixos
LysergicDreams has joined #nixos
ratsclub33 has quit [Remote host closed the connection]
<ratsclub>
I'll try a reboot again
ratsclub has quit [Remote host closed the connection]
<ottidmes>
clever: must be a case of daemon-reload not being run then, why I thought I needed to enable them myself, thanks for the info :)
kenji_ has quit [Ping timeout: 240 seconds]
kenji has quit [Ping timeout: 250 seconds]
<ottidmes>
clever: maybe you know, is it possible to define a system group without hardcoding an id? If I just remove the id, I get an error saying it is not within the system group range
ratsclub has joined #nixos
<ratsclub>
yeah, no success
<ratsclub>
I'll try #nixos-emacs
<ratsclub>
Thank you so much for your time guys!
justanotheruser has joined #nixos
jbgi_ has quit [Ping timeout: 260 seconds]
<ottidmes>
clever: nevermind that, think its an issue with one of my modules
organixpear has joined #nixos
<ottidmes>
Yep, it was one of my own modules that had the assertion... well at least its fixed now
turbo_MaCk has joined #nixos
arahael2 has joined #nixos
<turbo_MaCk>
Hi folks! I have a question - is GNU R (language interpreter) packaged in nixpkgs? Due to name its sort of difficult to search for
fenedor is now known as fendor
<evanjs>
nix search ^r$ is one way of doing so
<evanjs>
nixos.R (R) Free software environment for statistical computing and graphics
<turbo_MaCk>
nix search ^r$ did not return any results for me
captjakk_ has quit [Ping timeout: 240 seconds]
<turbo_MaCk>
anyway thanks evanjs! The attribute works
<ratsclub>
ok so I removed all emacs.service by hand and did a rebuild switch and now it's working... I guess
<evanjs>
turbo_MaCk: try giving it -u (e.g. `nix search ^r$ -u`) if it doesn't show up, anyhow
<bqv[m]>
lol
<ottidmes>
ratsclub: Great to hear, and thank you for reporting your solution, might be able to help someone later on :)
glittershark has quit [Ping timeout: 256 seconds]
<turbo_MaCk>
evanjs: I did try to update index. It does return the nixos.R result for you?
<ottidmes>
evanjs: I just tried nix search -u, followed by nix search hello, although it find some packages, I expected nixpkgs.hello to be there too, but its not
<ratsclub>
ottidmes: It's not loading the packages I declared on my nix module but I'll keep trying and I'll report here later
captjakk_ has joined #nixos
v88m has joined #nixos
<evanjs>
interesting. Yes, both of them work on mine haha
vandenoever has quit [Read error: Connection reset by peer]
<jared-w>
evanjs: you'll need '^$' if you're using zsh. ^ does fun things on zsh.
<Dandellion>
is there some a guide somewhere on how to use flakes?
ZoomZoomZoom has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<gchristensen>
Dandellion: you're aware they're not released or merged in to Nix, yeah?
<turbo_MaCk>
evanjs: I have an answer. It does indeed work in BASH but I'm using ZSH. I guess it escapes the regex or something
<evanjs>
jared-w: interesting. powerlevel10k + ohmyzsh doesn't seem to treat ^$ and '^$' any differently
<bqv[m]>
that repo is forked from a decent guide
<evanjs>
strangew
ratsclub has quit [Remote host closed the connection]
<turbo_MaCk>
nix search '^r$' <- this works in zsh as well
<evanjs>
turbo_MaCk: yeah it's weird, works fine on my config but I'm using powerlevel10k + ohmyzsh so that might be related *shrugs*
<turbo_MaCk>
jared-w: sorry I missed your mesage. You're right!
<evanjs>
urk, anybody have experience debugging bcma stuffs? BT is acting weird on my BCM4352. But then I don't typically use it on here so I'm unsure if it's acting "abnormally"
<turbo_MaCk>
evanjs: My zsh config is based on prezto
<{^_^}>
[nixpkgs] @gnidorah opened pull request #83507 → test → https://git.io/JvHXs
<evanjs>
like `bluetoothctl scan on` seems to return some results _eventually_... but doesn't give me a flood of devices like my laptop usually does
cole-h has joined #nixos
zaeph1 is now known as zaeph
<turbo_MaCk>
evanjs: Do you have `agent on` and `default-agent` ?
plutes has joined #nixos
<evanjs>
it does look like it was defaulted and on, yes
thinkingeye has quit [Quit: thinkingeye]
<evanjs>
went through the NixOS wiki page, checking the Arch wiki now. Hrm
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<turbo_MaCk>
evanjs: I'm testing it on my machines. I have USB dongle on desktop and Thinkpad T480s. Thinpad is detecting devices while scan is on but desktop doesn't
<turbo_MaCk>
Anyway I never had an issue with pairing the device and anything like that (except with XboxOne wireless controler which requires disable_ertm)
<{^_^}>
[nixpkgs] @globin pushed commit from @flokli to release-19.09 « gitlab: 12.8.7 -> 12.8.8 »: https://git.io/JvHXo
<evanjs>
*I'm using broadcom and didn't realize this was an option... networking.enableB43Firmware. Trying that after rebuild...
cosimone has joined #nixos
<evanjs>
turbo_MaCk: and yeah never any issues on my laptop, but I don't typically use it on my desktop. Both have the same generic bt config so presumably it's something with the specific NIC on my desktop or etc
<{^_^}>
[nixpkgs] @AndersonTorres pushed 3 commits to master: https://git.io/JvHX9
ZoomZoomZoom has quit [Ping timeout: 264 seconds]
<ratsclub>
ottidmes: so I got it working. I removed all emacs.service files and put this on the service module: emacs = { install = true; package = import ./emacs.nix { inherit pkgs; }; defaultEditor = true; };
dermetfan has quit [Quit: WeeChat 2.7.1]
dermetfan has joined #nixos
<turion>
ottidmes, kenji: I didn't realise from its documentation that niv can do that sort of thing. Thanks! I'll have a look again!
<mananamenos>
hi, I'm tried to install nixos alongside windows 10 pc. It has efi partition, so during nixos installation i just create `mkdir -p /mnt/boot` and mount that efi partition there. Nixos installed, but now after rebooting window 10 directly loads up with no option to choose nixos. I tried ESC button for some boot menu but nothing. I hoped that would have worked. What have i done wrong?
<Yaniel>
you probably have to go into UEFI settings to change the boot order and disable fastboot
evanjs has joined #nixos
<yorick>
since 19.09, nixos-rebuild switch seems to be activating my systemd timer
<yorick>
and I have no idea why
<yorick>
it has OnActiveSec=20min
<Yaniel>
yorick: there is a setting for auto-updating IIRC
<Yaniel>
oh wait, you mean you have a timer that gets activated when you run nixos-rebuild switch
<yorick>
yeah
<yorick>
and it didn't in 19.03, and it's not supposed to
bvdw has quit [Quit: bvdw]
rardiol has joined #nixos
LysergicDreams has quit [Ping timeout: 265 seconds]
<Yaniel>
switch does restart services though
captjakk_ has quit [Ping timeout: 256 seconds]
<yorick>
this timer has X-RestartIfChanged=False
zarel_ has quit [Ping timeout: 260 seconds]
<evanjs>
bluetooth hci0: Direct firmware load for brcm/BCM20702A1-0b05-17cf.hcd failed with error \n hci0: BCM: Patch brcm/BCM20702A1-0b05-17cf.hcd not found
<evanjs>
trying with enableAllFirmware now
evanjs has quit [Client Quit]
realrokka has joined #nixos
<yorick>
it happens after a systemctl reload
LysergicDreams has joined #nixos
<Yaniel>
mm so probably something on the systemd side rather than nix-specific
<yorick>
but it doesn't happen when I systemctl daemon-reload
<mananamenos>
Yaniel: you answered to me? :) I don't think i saw those options in my bios
evanjs has joined #nixos
<Yaniel>
mananamenos: yes, I vaguely remember seeing something about fastboot bypassing the part where you can choose the boot device
<Yaniel>
also I don't think esc is usually a key you can use for that to begin with
<mananamenos>
ok i am going to check once more
<evanjs>
That was it :D
<Yaniel>
you might have to do it from the windows side
<Yaniel>
in fact you should disable fast booting in windows if you want to access the windows partition from nixos
<Yaniel>
if windows "fast boot" is on, it won't shut down but just go into hibernate mode
<evanjs>
to clarify: hardware.enableAllFirmware and maybe networking.enableB43Firmware to solve my BT issues in the end
<mananamenos>
Yaniel: the way to disable fast boot is only through the bios ui right?
<Yaniel>
I think so, I haven't done it myself though (my PC is too old for taht)
<Yaniel>
but the windows fast boot is a separate thing
<Yaniel>
you can find it in control panel under power options when you enable advanced options
mananamenos has quit [Remote host closed the connection]
<learnday30>
hello, Iam getting this message arfter rebuild switch. has someone else seen similar? Thanks - removing obsolete symlink ‘/etc/sysctl.d/nixos.conf’...
<learnday30>
error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused
chloekek has quit [Ping timeout: 265 seconds]
<evils>
learnday30: sounds like issue #72372 does it occur if you rebuild again?
<{^_^}>
[nixpkgs] @minijackson opened pull request #83510 → maintainers: add githubId and GPG key for minijackson → https://git.io/JvHMI
<learnday30>
evils: thank you i get it on rebuild switch, will rebuild again
<turion>
Is there something like niv, but for custom built fetchers? (Like the fetcher I'm building for my append-only database)
<learnday30>
evils: the error went away after rebuild switch. Thank!
learnday30 has quit [Remote host closed the connection]
learnday20 has quit [Remote host closed the connection]
snicket has quit [Ping timeout: 240 seconds]
<ottidmes>
turion: that would be my nix-prefetch, it could be used to build that
<turion>
ottidmes, ok, I'll focus on that then, thanks :)
<turion>
Together with upfetch, I presume
<turion>
I wonder how clever it will be when I create lists of derivations programmatically
<ottidmes>
turion: if you want to go the way of using a json file, you could just use nix-prefetch with --output json, if you want some .nix file that already has all code in it, upfetch would be the way to go
<evils>
what's the default value for hydraPlatforms? i'm trying to set it to [ ] on a certain condition but leave it unchanged otherwise
<turion>
ottidmes: Ah, ok! So I'll try upfetch, and if it doesn't work, I can still create a JSON
<peelz_>
if my system is hanging on boot and waiting for a systemd unit to timeout... do I have to wait for the entire 3mins or is there a way to skip it?
o1lo01ol1o has quit [Remote host closed the connection]
<peelz_>
or do I have to boot into rescue mode?
<ottidmes>
turion: I think for your use case upfetch won't work, unless you plan to generate a nix file
<turion>
Ok I see
<turion>
Guess that's fine. Until someone deletes a column in the database, then I probably need to delete the JSON and fetch everything again ;)
<evanjs>
is there anything special I'd need to do to import musnix via niv?
snicket has quit [Ping timeout: 240 seconds]
raingloom has quit [Ping timeout: 240 seconds]
dermetfan has quit [Quit: WeeChat 2.7.1]
<Bunogi>
ottidmes: Yeah, I have it imported into my package expression but you have to call a function to select the version you want and I'm not sure how to do that.
<ottidmes>
not really, sure last has one meaning in which it is synonyms
<ottidmes>
its not that I was being serious though (and neither were you, I guess XD)
<cole-h>
The last item in "a b c d" is "d", but the item "previous" to c is not "d"
<energizer>
anyway, why does self.urwid work?
<T_S_>
next: curr: ?
<ottidmes>
energizer: as opposed to what?
<energizer>
ottidmes: not working
<ottidmes>
energizer: I get that, but when does it not work?
<energizer>
ottidmes: there is no nixpkgs.urwid, so how does self.urwid work in that link if self refers to nixpkgs
<ottidmes>
T_S_: well, if we go by list semantics, next does not really fit what it is
<ottidmes>
energizer: first of, it seems to be a different package set than the top-level packages
arahael2 has joined #nixos
<cole-h>
If it's using python3*Packages, then it would make sense that it works. urwid is in nixpkgs.python3{7,8}Packages
<ottidmes>
energizer: secondly, pkgs in the module system equal the self in the nixpkgs.overlays, so that already tells you are not looking at the same thing
<ottidmes>
Bunogi: I will soon work om some Rust code, so I will try and setup my Rust environment again, so once I am done I can show you what I did
<energizer>
ottidmes: can you explain that more, i'm not sure what 'pkgs in the module system equal the self in the nixpkgs.overlays' means
<T_S_>
when next == curr, we're done. but nobody likes to mention fixed points by name.
<{^_^}>
[nixpkgs] @peti pushed 874 commits to haskell-updates: https://git.io/JvH9E
<ottidmes>
energizer: so if you are interested you can follow the imports from there and you will see how nixpkgs comes to be, but at some point the overlays will be applied to the pkgs
<{^_^}>
[nixpkgs] @herrwiese opened pull request #83521 → matrix-dl: init at (unstable-)2019-09-22 → https://git.io/JvHHY
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2020-03-27T01:22:37Z »: https://git.io/JvHHG
T_S_ has quit [Remote host closed the connection]
<ottidmes>
Bunogi: do you still need help, if so, you're problem lies in only adding the overlay, that in itself does not overwrite the current rust version used, cause it will not know what version you might want, not everyone wants to have stable or vice versa for nightly
<Bunogi>
ottidmes: I was able to figure it out in the end, I changed `buildRustPackage` to `buildRustPackage.override { rustc = rust-package-to-use; }` and then it worked. I tried that earlier but turns out I had to set rustc, not rust
kenji_ has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 16 commits to haskell-updates: https://git.io/JvHH4
lsix has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvHHz
<buckley310>
does anyone know how, or where to start looking if i want my system to NOT change the resolution of my TTYs while booting? like nomodeset, except I still want xorg to be able to change res?
organixpear has quit [Remote host closed the connection]
chpatrick has quit [Quit: Connection closed for inactivity]
snicket has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
o1lo01ol_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 264 seconds]
<betaboon>
argh. allowUnfreePredicate makes me crazy again: I'm using `pkg: builtins.elem (lib.getName pkg) []` but for a specific package ("vivaldi") it doesnt work. any suggestions ?
kyren has quit [Quit: authenticating]
markus1189 has joined #nixos
kyren has joined #nixos
cosimone has quit [Quit: Terminated!]
<ottidmes>
betaboon: how about trying to trace? I tried myself (just by passing pkgs.vivaldi) and the logic should work if you put "vivaldi" in the empty list
remirol has joined #nixos
W1lkins4 has joined #nixos
xelxebar has quit [Ping timeout: 240 seconds]
edcragg has quit [Ping timeout: 265 seconds]
xelxebar has joined #nixos
snicket_ has joined #nixos
Streetwalrus_ has joined #nixos
KeiraT has quit [Ping timeout: 240 seconds]
cartwright has quit [Ping timeout: 240 seconds]
CodeKiwi has joined #nixos
fiddlerwoaroof_ has joined #nixos
azdle has quit [Ping timeout: 265 seconds]
snicket has quit [Ping timeout: 240 seconds]
kaychaks has joined #nixos
bob_twinkles has quit [Remote host closed the connection]
azdle has joined #nixos
lassulus has quit [Ping timeout: 265 seconds]
cybrian has quit [Ping timeout: 265 seconds]
Phlogistique has quit [Ping timeout: 265 seconds]
cruxeternus has quit [Ping timeout: 265 seconds]
kgz has quit [Ping timeout: 265 seconds]
DigitalKiwi has quit [Ping timeout: 265 seconds]
inkOne_ has quit [Ping timeout: 265 seconds]
elibrokeit has quit [Ping timeout: 265 seconds]
Streetwalrus has quit [Ping timeout: 265 seconds]
fiddlerwoaroof has quit [Ping timeout: 265 seconds]
dweller has quit [Ping timeout: 265 seconds]
litschi has quit [Ping timeout: 265 seconds]
yorick has quit [Ping timeout: 265 seconds]
Streetwalrus_ is now known as Streetwalrus
edcragg has joined #nixos
v88m has quit [Read error: Connection reset by peer]
dominikh has quit [Read error: Connection reset by peer]
est31 has quit [Ping timeout: 240 seconds]
Guest70711 has quit [Read error: Connection reset by peer]
turion has quit [Ping timeout: 265 seconds]
never_released_ has quit [Ping timeout: 265 seconds]
lorimer has quit [Ping timeout: 265 seconds]
greymalkin has quit [Ping timeout: 265 seconds]
W1lkins has quit [Ping timeout: 265 seconds]
delroth has quit [Ping timeout: 265 seconds]
W1lkins4 is now known as W1lkins
kaychaks is now known as Guest24897
lemsip has joined #nixos
est has joined #nixos
cruxeternus has joined #nixos
<tokudan>
as a general question: I've implemented a package request (https://github.com/NixOS/nixpkgs/issues/63335) with a module in my NUR repo. Does it make sense to try to get this into nixpkgs?
<ottidmes>
tokudan: other than if something does not fit nixpkgs somehow (e.g. using import-from-derivation, patching prebuilt binaries when it could be source build) it don't see why not, go for it (no pun intended :P)
<Darkmatter66>
I'm trying to build nixos mobile for xiaomi-lavender
<ottidmes>
betaboon: let me try, so you just set that as opposed to allowUnfree = true; I presume?
<betaboon>
ottidmes: yes
<tokudan>
ottidmes, ok, I'll try to do that
<Darkmatter66>
Is this the right irc channel for nixos mobile support?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @drewrisinger to master « pythonPackages.qiskit-aer: init at 0.4.1 »: https://git.io/JvH7G
<xfix>
i wonder if it can get to 0 before next mass rebuild
zupo has joined #nixos
* evils
must work harder on getting kicad-unstable to build on hydra
hmpffff_ has joined #nixos
Darkmatter66_ has joined #nixos
<Darkmatter66_>
Does mobile-nixos support booting from sdcard like postmarketos
<ottidmes>
betaboon: I just tried on my system, allowUnfreePredicate = pkg: elem (getName pkg) [ "google-chrome" "unrar" "vista-fonts" "vivaldi" "vscode" "zerotierone" ]; and now it builds again. In other words, your nixpkgs config is likely not loading, where are you setting it?
hmpffff has quit [Ping timeout: 240 seconds]
apiccion has joined #nixos
Darkmatter66 has quit [Ping timeout: 264 seconds]
mgdm has joined #nixos
raingloom has joined #nixos
apiccion has quit [Quit: leaving]
<ottidmes>
betaboon: I am curious, why use allowUnfreePredicate? You want to keep full control on what unfree software is being used? I felt 0 surprise seeing the list I ended up with (vivaldi is just there to test for you)
<mgdm>
Hello. I'm running NixOS 19.09, and I tried to install nixos.tor-browser-bundle-bin, which looks for version 9.0.5 on the Tor project site but it's been removed in favour of 9.0.7. Is there a way I can fix this package locally to grab that version instead?
<evils>
Darkmatter66_: i think most of the mobile-nixos discussion happens at #nixos-aarch64, you'll probably get a better SNR there
<betaboon>
ottidmes: for some odd reason now it works oO
<Darkmatter66_>
evils, ok thanks, will hop on there
<betaboon>
ottidmes: yes i want to keep full control on what unfree stuff i got. I'm not so keen on having unfree binary stuff in my system that i dont know about
<betaboon>
ottidmes: thanks for the assistance :D
<ottidmes>
mgdm: easiest is to just use a locally pinned nixpkgs nixos-unstable and overwrite tor in an overlay
<mgdm>
ottidmes: I've not done any of that before, is there a dummy's guide you might be aware of, or just the manual?
turion has joined #nixos
<xfix>
mgdm: honestly, for tor-browser-bundle-bin, you don't want to use outdated versions
<evils>
i'm getting "cannot coerse a set to a string, at pkgs/stdenvv/generic/make-derivation.nix:191:11" (derivation name attribute creation), due to this line being moved there from the `let` block, https://git.io/JvH5J
<xfix>
although i suppose i should wait for grahamcofborg-eval, oh well
<mgdm>
ottidmes: shoudl that work if I put that in ~/.config/nixpkgs/overlays, or am I better putting it system-wide?
<ottidmes>
evils: I think that is just the thing were attributes on mkDerivation are converted into env variables passed to the builder, I think you need to add it to passthru instead
turion has quit [Ping timeout: 256 seconds]
<ottidmes>
mgdm: the example I gave only works system-wide, and I would personally put it system wide, but you could simplify it to make it work in ~/.config/nixpkgs/overlays if that is what you prefer
<evils>
ottidmes: how would i then use the libraries in that derivation?
hmpffff has joined #nixos
<ottidmes>
evils: its an attrset now, if you want to use it in your build script, you will have to convert it to a string somehow
<ottidmes>
evils: nvm
<ottidmes>
evils: just checked your source, you would want to put it in a let, no way around it really
<{^_^}>
[nixpkgs] @drewrisinger opened pull request #83526 → pythonPackages.scikit-build: fix test bug on python3.8 → https://git.io/JvH5B
<ottidmes>
evils: except maybe the passthru thing, let me check the exact way that goes again
<ottidmes>
evils: then why not create it as its own package set and have that set be marked with pkgs.recurseIntoAttrs, so it as seen as a subset of packages?
<evils>
because no one needs kicad.libraries.i18n on its own
<mgdm>
ottidmes: sorted, thanks very much
<evils>
ottidmes: i may have misread that, the libraries should be a package set under kicad., right?
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
<ottidmes>
evils: I have no idea what you are really trying to accomplish, so there is definitely no "should be". I just responded to your questions, cause you seemed to not want to have it in a let, I told you the only way I know of to have it in mkDerivation
Shoadi has joined #nixos
<evils>
ottidmes: the ultimate goal is to have kicad-unstable.base built by hydra
pluplog has quit [Remote host closed the connection]
<evils>
atm i'm assuming that hydra builds whatever's discoverable via the repl, which `base` and `libraries` aren't if they're in the `let` block
knupfer has quit [Ping timeout: 240 seconds]
FRidh2 has quit [Quit: Konversation terminated!]
zaeph1 has joined #nixos
<ottidmes>
evils: I have no experience with that, but I think you might want to look at outputs and moveToOutput, anyway try to look at other packages that support such a structure
<evils>
ottidmes: i haven't found anything that looks remotely comparable xD
<ottidmes>
evils: naively I would say using passthru and setting passthru.recurseForDerivations = true; might work, but this is just guess work
zaeph has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @xfix opened pull request #83530 → lib.licenses: Add Unicode Terms of Use → https://git.io/JvH5x
<evils>
ottidmes: it seems like simply putting `passthru.` in front of `libraries =` on that linked line fixed everything
<evils>
which feels like too simple a solution xD
<ottidmes>
evils: I think it is, cause you assume that because you can access it through the repl that hydra can discover it, but that's not how it works. It might actually just work for passthru in that it is a special case, but in general any nested structures are ignored by hydra unless marked with recurseForDerivations
<{^_^}>
[nixpkgs] @jonringer pushed 3 commits to release-20.03: https://git.io/JvH5h
<ottidmes>
evils: if it does not work for you I can only suggest to check for recurseForDerivations, it shows a few packages (aside for true package sets, like haskellPackages) that use it and thus seem to have the nested structure you want
<{^_^}>
[nixpkgs] @xfix closed pull request #83530 → lib.licenses: Add Unicode Terms of Use → https://git.io/JvH5x
<evils>
so i could add a kicad-components entry in all-packages.nix, but there's no reason to have that be discoverable with nix-search, and i'm not finding how to implement a package set
tilpner has quit [Remote host closed the connection]
tilpner has joined #nixos
<ottidmes>
evils: a package set is just what I said, any attrset with recurseForDerivations = true; will be considered as such
<{^_^}>
[nixpkgs] @xfix opened pull request #83531 → lib.licenses: Add Unicode License Agreement for Data Files and Software → https://git.io/JvHdE
<evils>
ottidmes: so sounds like i should passthru libraries, (yet somehow not base), and set recurseForDerivations to true, so hydra will build the component derivations?
zaeph1 is now known as zaeph
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « zita-at1: init at 0.6.2 »: https://git.io/JvHdr
<ottidmes>
evils: thinking some more about it, that idea was indeed to naive, cause that would make the derivation itself considered a package set, but only those in passthru should be considered as such
<ottidmes>
evils: better to look at other examples, looking at multi output and others that use recurseForDerivations/recurseIntoAttrs, to see if you see one that matches your general structure and copy what they are doing
<sshow>
I don't think it's smart that unbound automatically enables `networking.resolvconf.useLocalResolver = mkDefault true;`. Any thoughts on this?
<sshow>
If you only use unbound for forwarding from localhost, it makes sense, but when you're using it to e.g. serve another subnet, it's not intuitive that it overwrites resolv.conf with 127.0.0.1
<ottidmes>
sshow: one way to solve that would be to change the module to not have any defaults, requiring an explicit choice of the user, prevent unexpected surprises
<evils>
ottidmes: do you know of a way to test if hydra will build an attribute?
turion has quit [Ping timeout: 256 seconds]
jlv has joined #nixos
<jlv>
Is there an installation media for 20.03 yet?
<ottidmes>
evils: AFAIK it will take pkgs and loop over all of them and try to build them and if it is not a derivation but an attrset, check for recurseForDerivations and recurse into that attrset, repeat
<sshow>
ottidmes: are you suggesting I make a PR? or am I misunderstanding? I was looking to get a discussion -- to see if I'm the one with strange thoughts about this :)
<ottidmes>
sshow: I agreed with your sentiment and gave a suggestion on how it could be solved, that's all
kenji_ has quit [Ping timeout: 240 seconds]
<sshow>
ottidmes: cool :)
shor has joined #nixos
<ottidmes>
sshow: I have my share bit of surprises and would rather have an error thrown at me about it, that I myself have to make some choice, than to figure out some default was at fault
<evils>
ottidmes: so kicad and kicad-unstable are wrappers that bring tie together the base package and the libraries, optimally, i'd have the wrappers and libraries.packages3d not built by hydra, and everything else build by hydra
<evils>
i'm not seeing a way to get something built by hydra without the entry in all-packages.nix being built
<ottidmes>
evils: Hopefully someone with some more hydra knowledge can help you out, since I don't host one myself
<Unactive>
Hello ! I have been trying out NixOS for a very little amount of time, so I'm really a noob. I've been wondering how I could use a custom font, as in, my own modified version, on NixOS. Specifically, should I add it in a specific folder? the one related to Fontconfig? should I then add this path to fonts.fonts? And then how would I go about still
<Unactive>
keeping this configuration as reproducible as possible?
philr has joined #nixos
<Valodim[m]>
Unactive: you can have custom fonts in your home directory like on any other distro, that's probably the easiest option
<Valodim[m]>
you can also package your font, in that case it's probably easiest to pick any other packaged font and work from there
<Unactive>
I would like to use it in various places (mainly terminal emulator and status bars). After I put it in a given directory I just add its path to fonts.fonts and I will be able to use it elsewhere in Nix configurations?
<nilsirl[m]>
I set `documentation.dev.enable = true`, however, for example, if I run `man strlen` I don't get the libc library. Is there anything I am missing?
<nilsirl[m]>
Is there another package I should install?
lsix has quit [Ping timeout: 256 seconds]
<nilsirl[m]>
Okay, I forgot the manpages package
bukkitgerman86 has quit [Quit: Ping timeout (120 seconds)]
LysergicDreams has quit [Ping timeout: 252 seconds]
bukkitgerman86 has joined #nixos
rogue_koder has joined #nixos
rogue_koder_ has quit [Remote host closed the connection]
ZaraChimera has quit [Read error: Connection reset by peer]
<worldofpeace>
bhipple: in "How to help" step 1 is that exact link
justanotheruser has quit [Ping timeout: 252 seconds]
<bhipple>
Yeah, I see it there, but for newcomers or repeat visitors it might be useful to have a "Current Status" badge/link (maybe, dunno)
<evils>
i do find myself searching for that link when i'm on that page...
<bhipple>
Yeah I know where the link is, but that's the one link that I really want to visit repeatedly, and right now it sometimes takes me upwards of 5-10 seconds to find it (the horror!)
<bhipple>
I'd swap the "How to Help" and "How many failing jobs are there" sections, perhaps
<bhipple>
worldofpeace: are there any ZHF / Hydra scripts/metrics/queries to run to answer a question like "this broken package blocks X other packages" and sort by X?
la_tihei has quit [Ping timeout: 265 seconds]
<bhipple>
wondering if there are any systemic ones lurking t hat would be extra valuable to fix, or if it makes sense to just pick ones pseudo-randomly based on interest one-at-a-time
aveltras has quit [Quit: Connection closed for inactivity]
<deni>
I quote like pass and I'm fine with using it but I was wondering if there are new approaches perhaps?
<deni>
I assume this is a bit date as well since I'm getting an error saying unknown setting 'extra-builtins-file'
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
mniip_ is now known as mniip
<elvishjerricco>
deni: Nothing newer that I know of. I'm still using the technique of that blog post
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<deni>
elvishjerricco: thanks for the blog post..I quite enjoyed it!
<elvishjerricco>
deni: If you're getting `unknown setting 'extra-builtins-file` then you didn't read the whole article ;)
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #83547 → proj: use pname instead of name → https://git.io/JvHx7
<deni>
elvishjerricco: hm I read it a couple of times.... but I suspect this might have something to do with the fact that I'm running nix and nixops from Debian to deploy to a nixos machine
<deni>
it's not uncommon for me to stumble upon edge cases like this
<elvishjerricco>
deni: `extra-builtins-file` comes from the `nix-plugins` package, as described in the blog post
<deni>
indeed.. which means that me putting it in my configuration.nix of the machine I'm deploying to has no effect what so ever since my "local" nix on Debian is the one that needs it
<{^_^}>
[nixpkgs] @adisbladis opened pull request #83548 → nixops2Unstable: init at 1.8.0 → https://git.io/JvHxd
<deni>
right?
<{^_^}>
[nixpkgs] @orivej-nixos pushed 3 commits to master: https://git.io/JvHxA