<{^_^}>
drakonis: Provide as much info as possible on problems. What specifically doesn't work? What command did you run? What's the error? This makes debugging easier and helps getting faster responses
<drakonis>
uh
<drakonis>
this is related to git itself
<drakonis>
trying to get my fork up to date so i can push a PR
acarrico has joined #nixos
Fare has joined #nixos
<drakonis>
okay cool its done now
forbi has left #nixos [#nixos]
vld has quit [Ping timeout: 260 seconds]
<Fare>
Using the latest 19.09, I can't build linphone because mbedtls-1.3.22 fails to build.
<Fare>
I don't see an issue on the nixpkgs github. Shall I report?
bt` has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<Fare>
mysterious error without an obvious message while or after "Executing pipInstallPhase" for "/build/alabaster-0.7.12/dist /build/alabaster-0.7.12" and passing 3 test suites. make[1]: *** [Makefile:435: check] Error 1
<Ankhers>
Is there a way to retrieve all attributes of a given derivation? For example, if I wanted to see all attributes that the Postgres service accepts without looking at the actual .nix file?
<drakonis>
its really not mysterious
<drakonis>
go at the makefile at line 435
<Fare>
Oh wait, further up there, there's an error. Maybe because I'm building with some parallelism? I see a FAILED (401 / 426 tests (2 skipped)) somewhere while building alabaster.
<Fare>
the first FAILED message is: X509 Certificate verification #5 (Revoked Cert) ................... FAILED
<Fare>
so the culprit seems to be python3.6-alabaster-0.7.12
<Fare>
or maybe not. The thing that fails to build is mbedtls-1.3.22.
<infinisil>
Ankhers: You mean options?
<infinisil>
Ankhers: Got an example?
<drakonis>
fetch the makefile it is using and check why it dies
<Fare>
Maybe a victim of the python 2.7 to 3.6 migration?
<infinisil>
(this uses your configuration.nix as well fyi)
<infinisil>
builtins.attrNames that to get the list of options as strings
<infinisil>
(or option sets)
<drakonis>
Fare: it probably failed the test suite
<drakonis>
what exactly are you doing here that's compiling mbedtls?
dbmikus has joined #nixos
<Ankhers>
infinisil: What you do mean by that uses my configuration.nix?
<infinisil>
Ankhers: It also evaluates your configuration.nix to see if there's any options you declare there
<infinisil>
You can do `import <nixpkgs> { configuration = {}; }` to avoid that
<Ankhers>
Oh okay.
<drakonis>
,dnw Fare
<{^_^}>
Fare: Provide as much info as possible on problems. What specifically doesn't work? What command did you run? What's the error? This makes debugging easier and helps getting faster responses
<drakonis>
i dropped into a shell with mbedtls and it didnt fail
<drakonis>
or compile
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
yobj has quit [Remote host closed the connection]
day|flip has joined #nixos
<Fare>
{^_^}, I tried to run nixos-rebuild switch with linphone on 19.09 on linux-x64, and it that failed due to a build failure in mbedtls.
yobj has joined #nixos
<drakonis>
its a bot my guy
<drakonis>
upgraded your channels?
<drakonis>
because i didnt get any build here
<drakonis>
it got into a shell with linphone without any issues
<drakonis>
are you on nixpkgs or nixos?
<Fare>
I upgrade my channels to 19.09 today
<drakonis>
and are your channels up to date?
<Fare>
that's the only channel, and yes it's up to date
<dansho>
ah i figured out what i was doing wrong with the regexp, this is probably better no need to split `builtins.elemAt (builtins.match ".*FOO_VERSION=\"([0-9]\\.[0-9]\\.[0-9])\".*" (builtins.readFile ./foo.sh)) 0`
<samueldr>
lovesegfault: might not be done yet
<samueldr>
hm no
<lovesegfault>
samueldr: But it tagged edolstra and nbp
<thomashoneyman>
which is essentially "${backend}/bin/backend --port X" and "${http-server}/bin/http-server ${frontend}/dist --port X"
vld has joined #nixos
<tbenst[m]>
thomashoneyman: `nix-shell --run` might be worth considering if just for demo purposes
Rusty1 has quit [Quit: Konversation terminated!]
vld has quit [Ping timeout: 258 seconds]
<thomashoneyman>
tbenst: ha! i wanted nodePackages.http-server all along
<tbenst[m]>
cool glad to hear it!
<thomashoneyman>
i hadn't heard of --run before, looking into it right now
zarel has quit [Ping timeout: 250 seconds]
<thomashoneyman>
the way things are set up these are all different fields in a release.nix at the top level
<thomashoneyman>
build the frontend, the backend, run them locally together, or deploy them together to an EC2
kleisli has quit [Ping timeout: 260 seconds]
<tbenst[m]>
nice! I'm contemplating replacing a docker-compose with node/redis/nginx with nix, so would be curious in your solution when finished/if you can share
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
<elvishjerricco>
How can I force an emergency or rescue shell if my root user doesn't have a password? `sudo systemctl rescue --no-block` just gives me an error from sulogin that the root account is locked and restarts the default systemd unit.
<elvishjerricco>
tbenst[m]: Well I want the service manager to kill everything and put me in a context where I can start messing with e.g. mountpoints without worrying about all the system services.
<thomashoneyman>
but it will take a bit before i'd be able to share a minimal setup of the whole thing
<{^_^}>
systemd/systemd#11596 (by imthenachoman, 46 weeks ago, open): use non root account for rescue.service and emergency.service
reallymemorable has joined #nixos
juxiemaotu has joined #nixos
<juxiemaotu>
anyone know about how to use google bbr congestion control algorithm on nixos?
eri has quit [Ping timeout: 268 seconds]
leotaku has quit [Ping timeout: 260 seconds]
palo1 has joined #nixos
jirido has quit [Read error: Connection reset by peer]
<juxiemaotu>
Is there anyone can give me some advice?
<{^_^}>
[nixpkgs] @jonringer pushed 13 commits to python-unstable: https://git.io/Jed0C
palo has quit [Ping timeout: 268 seconds]
palo1 is now known as palo
janneke has quit [Ping timeout: 246 seconds]
zarel has quit [Ping timeout: 260 seconds]
zarel has joined #nixos
leotaku has joined #nixos
<zimbatm>
azazel: it's called rambox
mexisme has quit [Ping timeout: 260 seconds]
mexisme has joined #nixos
<pie_>
I thought I could make this work https://bpaste.net/show/VXCEQ but I get "«error: The option `virtualisation.cores' defined in `.../configuration.nix' does not exist.»" when i run nixos-option in the VM
<pie_>
it seems to build fine though under slightly different circumstances, (not usr of the exact details) so its not breaking completely
<pie_>
the question is whether I can use mkIf like this at all or does it just coincidentally happen to work/break
<clever>
fuzen: what does file say about the binary?
<fuzen>
How would I check?
<clever>
fuzen: run the file command on the binary
<fuzen>
`/nix/store/bfx5az1y8lyxwiwls0fcs3l3fihb3b1a-steam/bin/steam: a /nix/store/rm1hz1lybxangc8sdl7xvzs5dcvigvf7-bash-4.4-p23/bin/bash script, ASCII text executable`
<clever>
fuzen: what are you running to get the error?
<fuzen>
steam / lutris that was just updated in master
<fuzen>
same problem on stable & unstable, so im not sure whats going on
<{^_^}>
[hydra] @kquick opened pull request #698 → Allow error message from remote builder with error type indicator. → https://git.io/Jed0A
<fuzen>
clever: running now, will probs take a while
<fuzen>
clever: it didnt return anything
reallymemorable has quit [Quit: reallymemorable]
<clever>
fuzen: then its not missing binaries
<clever>
fuzen: can you pastebin `strace -f steam` ?
<elvishjerricco>
Trying to pxe boot a machine into nixos. No idea how this works :P "No boot filename received" on the machine.
<elvishjerricco>
also, fuzen, bear in mind that steam isn't pinned by nixpkgs, so it's free to update itself which can always break stuff. Nixpkgs just pins the pre-launcher, which downloads the actual steam client to your home dir
<clever>
elvishjerricco: the dhcp server should report a boot filename
is_null has joined #nixos
<fuzen>
elvishjerricco: i have a similar problem with lutris, thanks for letting me know though
<elvishjerricco>
clever: I tried just running this in a terminal on my other machine. `sudo dnsmasq --enable-tftp --tftp-root=./ipxe-link --dhcp-boot=./ipxe-link/netboot.ipxe`, where `ipxe-link` is the `netboot` derivation in `nixpkgs/nixos/release.nix`
<elvishjerricco>
No earthly idea if that's even close to right :P
<clever>
elvishjerricco: start by opening up wireshark, and filter to dhcp and tftp packets, what is happening when it boots?
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon3 has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 opened pull request #76127 → cloud-print-connector: fix build against cups → https://git.io/JedEk
<clever>
[pid 20090] execve("/nix/store/1vsf7dahgpwacy1ab3h0hx1w2ng9dqwx-lutris-init", ["/nix/store/1vsf7dahgpwacy1ab3h0h"..., "/home/aizuzu"], 0x7fff3186a578 /* 71 vars */) = -1 ENOENT (No such file or directory)
<clever>
fuzen: does that file exist?
Mateon3 is now known as Mateon1
<fuzen>
clever: yes
<clever>
fuzen: it might be a but with the chroot env stuff, not mounting /nix into the chroot
<fuzen>
clever: i tried the generations I have and none of them worked
opthomasprime has joined #nixos
<clever>
not sure what else to check then
<fuzen>
I had autoUpgrade enabled, so maybe that updated something that I didnt know of in the background?
kleisli has quit [Ping timeout: 265 seconds]
<clever>
fuzen: it would have still made a generation for each upgrade
<fuzen>
Other than that, i've put a custom kernel on my system at one point, and I reverted that to see if this would fix and saw nothing.
<fuzen>
I think that is the only significant change i've made in configuration other than switching to GDM / wayland from i3/xfce + gdm
<fuzen>
i changed back to see if that would fix it, which didn't
<fuzen>
clever: is there a way to get nix to just reinstall everything as if it was a new installation?
<elvishjerricco>
clever: So I have no idea how dhcp works, but I'm guessing you don't want to have two dhcp servers on the same LAN? I.E. in a typical home network, the pxe server needs to be your router?
<clever>
elvishjerricco: yeah, its usually best to only have one dhcp server
<clever>
fuzen: that wouldnt help, the --verify already confirmed that all files nix can reinstall are already perfect
<elvishjerricco>
clever: Then that's what I'm doing wrong :P Any way to use not-the-router as the pxe server? I'm guessing the client needs to be manually configured for that or something?
<clever>
elvishjerricco: or plug the client into a seperate network
<clever>
elvishjerricco: which is why netboot_server.nix uses 2 cards, the ethernet port is isolated from the router and in full control
<fuzen>
clever: going to go back to arch then, thanks for all the help
<clever>
elvishjerricco: you point wan towards the real router and internet, and lan towards a private ethernet card, that only has the client(s)
<clever>
fuzen: only other thng that could play a factor is your home folder
<clever>
fuzen: try creating a new user?
<fuzen>
i can
<pie_>
clever: ifthen + options.virt still causes infrec
<pie_>
clever: hold on, might be pebkac
<pie_>
i think i broke something meanwhile]
<pie_>
no yeah if then is causing infrec >_>
<pie_>
that doesnt seem completely unreasonable given that options is also defined in the fixpoint or whatever
<clever>
pie_: can you pastebin your example?
<juxiemaotu>
i have problem in using python pip,anyone can help?
<juxiemaotu>
when i run :pip3 install --user genpac
<pie_>
it feels like a not fully distributive mkIf should be able to exist though...mkIf makes the values lazier so why shouldnt it be possible to make the attrs lazier
<pie_>
clever: yeah hold on
nehh^ has quit []
<clever>
pie_: `if condition then {} else {}` may cause problems
<fuzen>
Clever: same problem on test user
<pie_>
clever: thats what i did
<clever>
pie_: `{ config = if condition then {} else {}; }` would fix it
<juxiemaotu>
it prompt:ModuleNotFoundError: No module named 'setuptools'
<clever>
pie_: the problem, is that it must know if your set contains a .options, before it can compute the options
<elvishjerricco>
clever: That file configures it to auto-install NixOS on the client, right?
<juxiemaotu>
how can i fix it?
<clever>
elvishjerricco: only if you run justdoit, you can also just ignore that script and run anything else
vld has joined #nixos
<clever>
pie_: try wrapping it as { config = if ... ; }
<pie_>
clever: probably
<pie_>
clever: on that note,
<pie_>
<pie_> im pretty sure im mixing something up here
<pie_>
<pie_> I'm kind of confused suddenly...sometimes modules use imports, options, config, but sometimes you can just put all your attrs at the top level?
<clever>
pie_: and extra itself may cause the same problem, try making isVM a let block
<clever>
pie_: all modules contain options, imports, and config
<clever>
pie_: if options and config are both missing, nixos will wrap it in a { config = ...; } for you, to fix things
<pie_>
extra is just a function argument...refereential transparency should make that a nonproblem
<clever>
pie_: and imports gets moved up a level when it wraps
<pie_>
oh this may not be clear, im calling this via an import name {args}
<clever>
pie_: but to read extra, you must read config._module.args.extra
<clever>
pie_: which requires knowing every key of config.
<clever>
pie_: which requires the if statement to be eval'd
<clever>
that problem, is why we used options instead
<fuzen>
clever: thanks for all the help, I’ll try NixOS again when it’s more mature for desktop usage and just stick with nix for now
<pie_>
ok this is what i assumed, thanks <clever> pie_: if options and config are both missing, nixos will wrap it in a { config = ...; } for you, to fix things
<clever>
pie_: and that will ruin all error messages
<pie_>
yep :D
<pie_>
i think i read somewhere that module._args is a global thing
<pie_>
that doesnt sound appealing
<clever>
pie_: thats why modules have { ... }:, to ignore any extra things you add
<pie_>
i could make a different subattr for every module file but thats crap :(
vld has quit [Ping timeout: 265 seconds]
<pie_>
clever: moving it inside config = worked ._.
<pie_>
(i think)
dansho has quit [Ping timeout: 258 seconds]
xkapastel has joined #nixos
<elvishjerricco>
clever: no boot filename received again :/
<{^_^}>
[nixpkgs] @jonringer pushed 8 commits to python-unstable: https://git.io/JedEK
dansho has joined #nixos
<clever>
elvishjerricco: what does wireshark show in the dhcp packets?
vonfry has joined #nixos
<elvishjerricco>
clever: Never used wireshark before... Guessing I just start it up, click the lan interface, and reboot the client?
ixxie has joined #nixos
<clever>
yeah
<elvishjerricco>
clever: Not really sure what I'm looking for, but there are three packets whose source is the server (192.168.3.1), the first of which had a different destination than the other two. No packets with a different source.
<clever>
elvishjerricco: grub shouldnt be coming up if its network booting
<elvishjerricco>
clever: I think all those packets might be from the samba and netatalk servers I have on this server as well
<clever>
elvishjerricco: and i dont see any trace of dhcp in that wireshark
<clever>
elvishjerricco: yeah, thats just general idle traffic
wagnerf has joined #nixos
<myme>
I'm on 19.09, but having some kernel driver issues. 19.03 was working better. Is there a way I can set boot.kernelPackages to e.g. linuxPackages_5_1 from 19.03? 19.09 only has 4.x and 5.4+ alternatives.
<elvishjerricco>
clever: So this thing just isn't even trying to boot on this nic, I guess?
<clever>
myme: boot.kernelPackages = pkgs.nixos-unstable.linuxPackages_5_3; for example, plus
<clever>
elvishjerricco: yeah, youll have to check the bios options to try and convince it to netboot
<elvishjerricco>
Ugh. Thing takes 3 minutes just to get past the DELL splash screen
<myme>
clever: I did try the naive approach of tracking 19.03 as koi and pulling in linuxPackages alternatives from there in nixos config. But that led to some assertion error in prl-tools.
<pie_>
clever: im an idiot, i just realized theres a slight mismatch that i knew about and should have fixed but didnt, between the config that gets copied to my vm and the config i build the vm with
<pie_>
depending on stuff gets git committed
<pie_>
so some of the stuff from ealier may be invalid, the stuff that prevents the entire build is still valid though
noudle has joined #nixos
<clever>
myme: what config did you try last, and how did it fail exactly?
<dansho>
so if i try to use match or splitString on a 1900 line file string i get a stack overflow =(
dingenskirchen has joined #nixos
<pie_>
.override can also take the argument as a function, so you can do .override (old: { buildInputs = old.buildInputs })
<pie_>
.override can also take the argument as a function, so you can do .override (old: { buildInputs = old.buildInputs })
<pie_>
argh
<pie_>
.override can also take the argument as a function, so you can do .override (old: { buildInputs = old.buildInputs ++ [ someotherstuff ] })
<pie_>
oh sorry wrong thing, you want .overrideAttrs here
<pie_>
so something you could do for a repro is import nixpkgs in a let expression, do the override of the dependency, pass the overridden dependency to the package in the callpackage arguments
<pie_>
but something thats probably better is to add an overlay to nixpkgs when you do the import, which makes it apply to everything
<wagnerf>
ok, I kind of get it.
oleks has quit [Remote host closed the connection]
<pie_>
oh and this is the python infrastructure so that might be a little complicated...
<pie_>
entirely doable just adds like another level of wrapping
<wagnerf>
anyway this is just to avoid changing SDL_mixer so it's not going to solve my linking pb
<pie_>
wagnerf: just checking, you tried adding libmikmod to the propagatedBuildInputs of the sdl library?
<wagnerf>
there is no propagatedBuildInputs in SDL_mixer
<wagnerf>
but yes I tried anyway
sphalerite has joined #nixos
<pie_>
propagatedBuildInputs is a parameter of mkDerivation
<wagnerf>
the difference between propagated and not propagated is not clear for me though
<wagnerf>
anything dynamically linked should always be propagated for me
<sphalerite>
wagnerf: if b has a as a propagated buildinput, then c will have a pulled into its buildInputs if it has b in its buildInputs
<pie_>
yeah i dont remember the details, i mean the bottom line is probably that you need your library to be added to LD_PRELOAD or whatever
<wagnerf>
sphalerite: makes no sense for me
<pie_>
man i cant remember how this python stuff workd
<wagnerf>
sphalerite: everything should be propagated then
<wagnerf>
at least for .so
<pie_>
sphalerite: the problem is python is failing to acquire a transitive .so with dlopen
<sphalerite>
wagnerf: no
<sphalerite>
oh, python is a bit of a different story
<sphalerite>
wagnerf: but for example, an application can depend on gtk, and gtk depends on libx11, but the application's build doesn't need to _know_ about libx11.
<wagnerf>
it needs to link with libx11
<wagnerf>
what's the meaning of _know_
<sphalerite>
wagnerf: it's still included in the sandbox because libx11 depends on it, but the include path and library search path for building the application won't include libx11
<wagnerf>
?
<sphalerite>
know = search paths include it
<wagnerf>
ha ok
<wagnerf>
does it include LD_LIBRARY_PATH ?
<sphalerite>
in the end, the application will still depend on libx11 because it references it transitively (via gtk). But that doesn't need to be made explicit in the build if the application doesn't use any libx11 functionality directly.
* sphalerite
looks at logs to find out what the actual problem is
<lirzhv>
hi. i want to change my distro from fedora. i am in between nixos and arch at the moment. i think i would like nixos better, but i`m worried if this distro is cutting edge (like arch) or if it aims to be stable (like debian). anyone can enlighten me on the philosophy here?
<pie_>
so search for tarball ttl in the soure
<pie_>
lirzhv: its both :D
<sphalerite>
wagnerf: hm, this should normally work but I think it's failing because SDL_mixer tries to dlopen mikmod, which is odd since libogg and libvorbis for example are linked with it directly.
<pie_>
lirzhv: i think at the end of the day you just need to try it, it can be high effort in some ways
<ptrcmd_>
pie_: ah thx
<pie_>
lirzhv: though i hear arch can also be high effort
<pie_>
lirzhv: its cutting edge with less shoot footing
<wagnerf>
that's part of what's puzzling me, I don't get why libmikmod should be handled differently from libogg
<pie_>
(usually)
<lirzhv>
pie_: thanks, and what about non-free software ?
<pie_>
lirzhv: well...we have it?
<sphalerite>
wagnerf: I'll take a peek into SDL_mixer's source
<lirzhv>
ah good good
* pie_
rubs hands together i think we got another one boys
<lirzhv>
i already have an instance with nixos running where i did some tests. i will move over there and give it a more serious try 👍
<sphalerite>
wagnerf: aah, it's because of the --disable-music-ogg-shared configure option
<wagnerf>
ha yes
<wagnerf>
sphalerite: thanks a lot
<sphalerite>
wagnerf: if you add --disable-music-mod-shared as well it should hopefully work
<pie_>
ptrcmd_: hm i dont actually see anything about cleaning up the files after the ttl is up though :/ maybe it just always gets cleared?
<wagnerf>
sphalerite: you are saving me, i would not have seen it
<pie_>
sphalerite: why does that fix the problem
is_null has quit [Ping timeout: 260 seconds]
<pie_>
ptrcmd_: are they getting deleted or is it just trying to download new ones
<wagnerf>
pie_: it will avoid the dlopen
<wagnerf>
ok, time to go.
<{^_^}>
[nixpkgs] @peti pushed to master « python-osc: update from 0.164.4 to 0.167.1 »: https://git.io/Jedzc
<wagnerf>
thank you all very much
<pie_>
yeah sure but dont we make the dlopen work
<pie_>
also how does it avoid using dlopen
wagnerf has quit [Quit: WeeChat 2.6]
<sphalerite>
pie_: SDL_mixer, by default, will use dlopen to load mikmod on demand. This allows it to work regardless of whether mikmod is installed (on classical distributions).
is_null has joined #nixos
<pie_>
how does it find it without dlopen though
<sphalerite>
pie_: given the --disable-music-mod-shared configure option, it will link against the library at build time, i.e. the dynamic table of the SDL_mixer shared library will have a NEEDED entry for mikmod and mikmod will be loaded immediately together with SDL_mixer.
<sphalerite>
wait for it…
<sphalerite>
;)_
<pie_>
oh i was still thinking in python
<pie_>
i thought this was a python library
<sphalerite>
oh
<sphalerite>
no
<pie_>
for normal stuff its just RPATH right?
<sphalerite>
well, RUNPATH, but yes
<pie_>
i forgot what i was working on
<pie_>
oh or maybe i just finished
tsrt^ has joined #nixos
<ptrcmd_>
pie_: they are deleted, because if I don't run nix-collect-garbage, the tarballs won't be donwloaded again
lovesegfault has quit [Quit: WeeChat 2.7]
<ptrcmd_>
pie_: umm, will try out the ttl options later and see if they make any difference
is_null has quit [Ping timeout: 268 seconds]
<dansho>
is it normal that writeScriptBin doesn't patch shebangs?
turbo_MaCk has joined #nixos
dirkx_ has joined #nixos
<wedens[m]>
why would it? it assumes that script is written with nixos in mind, I'd say
<pie_>
dansho: its just a simple "write a script file" function
vld has joined #nixos
<jwaksbaum[m]>
Is there a way to stop nixos from waiting for the network to come when booting?
<pie_>
nowhere near as massive as mkderivation
<pie_>
jwaksbaum[m]: it doesnt normally do that
<jwaksbaum[m]>
pie_: okay maybe I'm misunderstanding. When I boot it waits 1:30 on a systems job for a network interface and I'm not sure why
<pie_>
ok im not sure either, but did you enable some kind of service that might cause that?
<jwaksbaum[m]>
I don't think so. I've enabled network manager but that's all
<pie_>
i dont know then :(
<jwaksbaum[m]>
It says started network manager wait online
<DigitalKiwi>
nfs comes to mind
<jwaksbaum[m]>
DigitalKiwi: like trying to mount something over the network?
<ptrcmd_>
pie_: it seems that every time the tarballs are downloaded some stale links are added to gcroots
<ptrcmd_>
pie_: not sure if this is the problem
day|flip has quit [Remote host closed the connection]
vonfry has joined #nixos
<pie_>
that sounds reasonable
<pie_>
you mean its adding roots for the tarballs so it knows they exist?
vonfry is now known as Guest24544
<pie_>
thats actually pretty clever i guess
<pie_>
in the sense that they dont need to have a separate cache timeout mechanism and whatever
<pie_>
why make anoter one when the nix store already does allt he fancy stuff
<ptrcmd_>
pie_: I don't know if it's doing that because the links are stale
<ptrcmd_>
pie_: I *guess* it's doing that
<pie_>
wheres that code again?
<pie_>
define stale
<ptrcmd_>
so when I run `ls -alr` in /nix/var/nix/gcroots/auto, I can see multiple symbolic links pointing to non-existent directories
<ptrcmd_>
and when I run nix-collect-garbage, they are deleted
<pie_>
oh, you said nonexistent directories though
<pie_>
not the tarballs
<pie_>
that sounds totally unrelated?
m0rphism has joined #nixos
<ptrcmd_>
possibly idk
mexisme has quit [Ping timeout: 245 seconds]
werner291 has joined #nixos
<pie_>
hm but this uses addTemp
<pie_>
*addTempRoot
<pie_>
which just seems to e a runtime thing
brnzz has quit [Quit: Ping timeout (120 seconds)]
brnzz has joined #nixos
Guest24544 has quit [Remote host closed the connection]
<pie_>
ptrcmd_: sidenote, i guess since fetchtarball actually unpacks tarballsit would be helpful to keep the store paths around, not the original tarballs
<pie_>
but i still dont know who is deleting the tarballs
leex has joined #nixos
fayesafe has quit [Ping timeout: 240 seconds]
<ptrcmd_>
yeah, that would be helpful
__monty__ has joined #nixos
<benedikt93>
Hi all! I'm trying to append a few lines to the default value of a module option (of type types.lines). Doing `services.foo.bar = lib.mkOptionDefault (lib.mkAfter 'moar lines')` works, but the use of mkOptionDefault seems kinda hacky to me (I'm new to nix(os), though). Is there a more 'canonical' way to achieve the same?
<benedikt93>
srhb: Its only the default plus one addition in this case and the order doesn't matter, so no issues with many sources. The 'feeling hacky' impression is because it took me quite some time (+ a stackexchange answer) to figure out how to do this in the first place, so I might have missed a more common approach to this issue than fiddling with priorities.
<benedikt93>
symphorien: thanks, I hadn't realized that the defaults can be accessed explicitly like this!
<pie_>
ok its still pretty amazing that i just did a rebuild switch after my VM of a weeks worth of stuff got in a usable state, and everything just works on the host machine
<clever>
jakobrs: my latest project involves 3 different cross-compilers, and mixing things up like that is trivial
<Raito_Bezarius>
Is there a way to restart service at the end of a nixops deploy?
<jakobrs>
clever: I'm trying to build a project that is intrinsically multi-arch, and Ubuntu 19.10 has made building it much harder
<jakobrs>
So I was hoping that Nix maybe would make it easier to build?
<clever>
jakobrs: what part of the project needs multiple arches at once?
siiky has joined #nixos
<jakobrs>
It needs to build both a 32-bit and a 64-bit version of its own library
<jakobrs>
because it needs to work with both 32-bit and 64-bit applications
<clever>
jakobrs: with nix, you just describe how to build it for any arch, and then nix can build a 32bit or 64bit version, as needed
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jakobrs>
clever: Where should I look for more information? I didn't find anything in either the Nix or nixpkgs wikis
pie_ has quit [Ping timeout: 258 seconds]
vidbina has joined #nixos
zarel has quit [Ping timeout: 260 seconds]
leex has quit [Ping timeout: 260 seconds]
luc65r[m] has joined #nixos
<clever>
jakobrs: when you run nix-build, you can just add `--argstr system x86_64-linux` or `--argstr system i686-linux` to force 64 or 32bit mode when building
Rusty1 has joined #nixos
<jakobrs>
clever: That seems to work, thanks
zarel has joined #nixos
<jakobrs>
Hang on
<jakobrs>
would it be better to use system or crossSystem?
<clever>
jakobrs: crossSystem is more for when you cant run the binaries your building
<clever>
betaboon: i believe you can only change it when creating the fs
<clever>
and once created, the ratio is fixed
<sphalerite>
clever: tune2fs -I lets you set the inode size
<betaboon>
clever: yeah that is correct i think. must have misread your statement :)
<clever>
sphalerite: but what about inode count?
<sphalerite>
clever: hm, resize2fs? :p
<sphalerite>
I have no idea tbh
<clever>
sphalerite: yeah, thats what i said earlier, the ratio of inodes to bytes of disk is set when you format
Chiliparrot has joined #nixos
pie__ has joined #nixos
<Thra11>
I'm trying to follow this: https://nixos.org/nixos/manual/index.html#module-services-nextcloud-basic-usage. I've added a local network address to extraTrustedDomains. nextcloud-setup.service mentions the extra address, but if I try to access the server from a web browser on said IP, the nextcloud page says "Access through untrusted domain...". The extra address doesn't appear in
<Thra11>
/var/lib/nextcloud/config/config.php
pie_ has quit [Ping timeout: 260 seconds]
vld has joined #nixos
fenedor has quit [Ping timeout: 265 seconds]
cnidario has quit [Remote host closed the connection]
civodul has joined #nixos
<Thra11>
Has anyone successfully set up nextcloud by following the NixOS manual?
<bdju>
My fonts are broken all over the place after a somewhat recent update. I noticed as I restarted more programs and eventually the whole machine that more stuff was just displaying boxes instead of characters. Using Sway. Font is Terminus in every spot affected. xterm looks fine, but termite doesn't. Seems like tewi doesn't work either, but fira code does.
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @Ma27 opened pull request #76139 → nixos/systemd-nspawn: use `config.systemd.package` → https://git.io/Jedr1
<sphalerite>
Thra11: can't remember if I used the nixos manual, but I have successfully set up nextcloud using the nixos module
<sphalerite>
bdju: yep, I've seen that too
Fare has quit [Ping timeout: 265 seconds]
<sphalerite>
bdju: I think something probably broke bitmap fonts
fenedor has joined #nixos
<bdju>
sphalerite: thanks, that's good to know
mexisme has quit [Ping timeout: 246 seconds]
<sphalerite>
bdju: fixed also doesn't work, I'll have a look if I can find where it broke
<Thra11>
sphalerite: Do you remember if you did the initial config via a browser running on the server or over the network as I'm trying to do?
<gchristensen>
bdju: are you on unstable?
<bdju>
yes
reallymemorable has quit [Quit: reallymemorable]
<gchristensen>
bdju, sphalerite: worldofpeace tells me it is after a pango update which broken all bitmapped fonts for security purposes. https://github.com/NixOS/nixpkgs/issues/75160
<{^_^}>
#75160 (by rnhmjoj, 1 week ago, open): fonts: provide opentype files for X11 bitmap fonts
<bdju>
opening that link just crashed firefox for me (another recent issue)
<gchristensen>
are you on sway?
<bdju>
seems to happen when opening links from termite or emacs
<bdju>
okay, read that more closely now... only affects ff 71
<bdju>
when will I see 72 out?
<gchristensen>
sometime in January I think
<gchristensen>
hopefully it doesn't have the resize bug anymore by the time it releases
<bdju>
jeez. alright. thanks for all the info
<gchristensen>
in order to use ff on different caled monitors, I have to disable all monitor sbut the one I want to run it on and start firefox. if I want to change, I have to kill firefox and repeat
<gchristensen>
differently scaled monitors*
<bdju>
that sounds horrible
knupfer has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 268 seconds]
Thra11 has quit [Ping timeout: 260 seconds]
sheenobu has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<BugeyeD>
hi all. how do i go about obtaining an older version of a package (older version of FF - v71 will not work with lastpass) or a newer patched version? currently using home-manager.
<BugeyeD>
i assume un unstable ff package might do the trick, but not even sure whether that will pick up the patches i'm seeing mentioned on the web
<{^_^}>
#75818 (by pbogdan, 4 days ago, open): LastPass extension not working with FF 71.
IRC-Source_64 has joined #nixos
<IRC-Source_64>
Weird question. I just found out about Nativefier (https://github.com/jiahaog/Nativefier) which seems like it would be an interesting way to get something like whatsapp working as an app instead of a webpage in my browser. But nativifier isn't packaged for Nixos, nor does it really follow the Nixos philosophy. Is there any way to wrap arbitrary
<IRC-Source_64>
websites with electron using nix? Like some wrapper function?
<Baughn>
BugeyeD: You should be able to point it at an older nixpkgs checkout, but it's going to be complicated if you've never done that before.
<Baughn>
BugeyeD: For my part, I actually switched from Lastpass to Bitwarden a while ago. The UI is *much* better, and I honestly trust an OSS project better. It otherwise does the same thing. You can find conversion instructions on their website too, so...
<Baughn>
Maybe try that?
kahiru has quit [Remote host closed the connection]
<thomashoneyman>
that issue describes how to apply an overlay to the machine config as it isn't picked up by default
<thomashoneyman>
but i believe the nixpkgs that nixops is using is still whatever is on the system, and not this project's pinned nixpkgs
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
ixxie has joined #nixos
<srhb>
thomashoneyman: Nixops doesn't respect the usual pinning mechanisms very well. The best way I've found it to rely solely on NIX_PATH for nixops and just feed it the properly configured nixpkgs set
<srhb>
thomashoneyman: eg. by writing a thing nixpkgs wrapper to use as its NIX_PATH
<srhb>
thin*
mexisme has quit [Ping timeout: 248 seconds]
<thomashoneyman>
i have a `deploy-tools.nix` file i use to get nixops and do deployment related things in a nix shell
jarlg has quit [Ping timeout: 248 seconds]
<srhb>
thomashoneyman: You can set the NIX_PATH within that, yeah.
eraserhd has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
<thomashoneyman>
srhb: i know this is a bit much to take in, but the main point is that deploy-tools.nix does not end up being possible to deploy machine.nix because of the missing yarn2nix dependency, whereas building the project via release.nix works (there is no missing yarn2nix dependency)
<thomashoneyman>
so my goal is to get deploy-tools.nix to use the same pkgs as is being used in release.nix
<srhb>
thomashoneyman: I think maybe I get it, you're ending up with just ./nix/nixpkgs.nix in the store due to the path you're grabbing
<srhb>
thomashoneyman: It doesn't resolve the paths it also imports
<srhb>
thomashoneyman: To test that, make sure you have all your bits needed for the import in just one file
<srhb>
thomashoneyman: That is overlays, fetchTarball, etc.
phreedom_ has joined #nixos
<srhb>
thomashoneyman: Alternatively, work with strings (yuck) -- you don't need it imported to the store anyway because you just want the stringly path for eval to succeed within the nixops shell
<thomashoneyman>
by 'make sure you have all your bits needed' do you mean to define the overlay, do fetchTarball, and then produce the overlaid result in the same file?
<thomashoneyman>
no overlay.nix + pinned-nixpkgs.nix + nixpkgs.nix?
<thomashoneyman>
those all condense to one?
<srhb>
thomashoneyman: Yes, as a first move.
knupfer has joined #nixos
<keithy[m]>
hi guys can anyone tell me why dnsmasq reports that it is using nameserver of my router
vld has joined #nixos
<keithy[m]>
its using the ip address of my router as a nameserver for some reason.
<srhb>
thomashoneyman: Yes, that should be fine. The goal is to either make sure the entire directory of nix expressions you need is imported into the store _or_ that none of it is, and the env var just contains the string representing the non-nix-store location
<keithy[m]>
No where have ai suggested that my router is a dns server
<srhb>
thomashoneyman: Either way should work
<srhb>
keithy[m]: It may have suggested this via dhcp?
<arcnmx>
I think what's happening is disabledModules doesn't actually disable a module's imports?
<keithy[m]>
so to prevent that I took over dhcp as well!
<srhb>
keithy[m]: Not sure I understood that. If you're saying you shouldn't be getting that DNS server via dhcp, try disabling dnsmasq and checking your original resolv.conf
<thomashoneyman>
srhb: hmm. with the same deploy-tools and same machine.nix i'm getting the 'attempted to call something which is not a function but a set' from some internal Nix machine builder
<thomashoneyman>
i'll keep digging for a sec
<srhb>
keithy[m]: I would expect this has nothing to do with dnsmasq
<keithy[m]>
ok, the original problem...
<thomashoneyman>
the build of release.nix with this works fine, though
<srhb>
thomashoneyman: Oh yeah, nixpkgs should be a function..
<srhb>
thomashoneyman: So when it's fully applied you want to mimic its shape. args@{...}: import pinned (args // { overlays = [overlay]; }) -- or something to that extent.
<thomashoneyman>
looks like deploy-tools is copying the nix file into the store and setting that as the NIX_PATH
<srhb>
thomashoneyman: That's fine now that it's all in one file
<srhb>
As long as there are no unresolved dependencies. If so, you need to import the whole dir.
<thomashoneyman>
well, it's still importing files in the overlay
<thomashoneyman>
is that what you mean by unresolved dependencies? or are you talking about arguments to the function?
<keithy[m]>
Yes I get that its nothing to do with dnsmasq, dnsmasq is picking up this silly setting form somewhere
<srhb>
keithy[m]: That would be /etc/resolv.conf, normally
<srhb>
keithy[m]: Which normally is set by the dhcp client. Or your static configuration
<srhb>
thomashoneyman: Yeah, if it needs access to more nix files you'll need to ensure the whole directory tree is in the store
<keithy[m]>
so I disabled the dhcp client
<srhb>
thomashoneyman: (In which case you can undo the split)
<srhb>
keithy[m]: And set DNS servers how?
<thomashoneyman>
srhb: i think that's better than shoving all these in one file, as there will be more later
<keithy[m]>
in dnsmasq
<thomashoneyman>
how do i ensure the entire directory tree is in the store?
<keithy[m]>
ok thats not very clear... sorry
<thomashoneyman>
i'm starting to get a bit lost; ultimately i'm still attempting to set a NIX_PATH in deploy-tools which points to the set of nix expressions being used by the rest of the project, ie. ./nix/nixpkgs.nix
<thomashoneyman>
and you are saying that this file can't be copied to the store because it's got these imports etc. so it won't work
morr has quit [Quit: WeeChat 2.6]
<srhb>
thomashoneyman: You can do something like.. mySource = builtins.path { path = ./nix; }; then use mySource + "/some-specific-file";
<keithy[m]>
I wanted the routers dhcp to nominate my internal dns server, but it wouldnt. Instead it insisted on being the nominated dns server, proxying to the internal dns server.
<thomashoneyman>
and what needs to happen is the actual resulting attribute set of derivations needs to be what arrives in the store?
ddellacosta has joined #nixos
<srhb>
thomashoneyman: Right, understanding the root of the problme will help
<clever>
srhb: i think `mySource = '${./nix}/some-specific-file.nix"; is much much simpler
<clever>
srhb: that will copy the entire ./nix dir, then tack a file on the end
<srhb>
Agreed, though it might be confusing if one tries it in a repl
<keithy[m]>
So I got my dns server to take over the dhcp as well, so it could nominate itself as the actual internal dns server.
<srhb>
(wheras builtins.path will always give the whole nix store path)
<clever>
srhb: the quotes on the outside have the same effect
<keithy[m]>
but that setting is still there, pointing to the router as if it is a dns server.
<srhb>
clever: Oh yeah, you're right!
morr has joined #nixos
<srhb>
thomashoneyman: ^ what clever said. Make sure your entire source tree is imported to the store, by referring to the directory as given, and individual files by concatenating strings onto that path
<Guest13048>
clever: any idea on how to turn a graphical installer into a derivation?
<thomashoneyman>
srhb: clever: one sec, i'm reverting back to the not-all-in-one-file version
<clever>
Guest13048: check to see if it has a --extract flag, or if you can extract the files without running it?
<Guest13048>
I don't think so. :s
<clever>
Guest13048: try running binwalk on the installer, what does it find?
<thomashoneyman>
but this results in an error (attempted to call something which is not a function but a set)
<thomashoneyman>
oh, christ, i reverted too much
<{^_^}>
[nixpkgs] @jonringer pushed 263 commits to python-unstable: https://git.io/JedXg
<keithy[m]>
ok, I manually deleted /etc/dnsmasq-resolve.conf and that fixed it, so looks like a bug in the whole declarative thing
philr has joined #nixos
tokudan has joined #nixos
<keithy[m]>
* ok, I manually deleted /etc/dnsmasq-resolve.conf and that fixed it, so looks like a bug in the whole declarative configuration plan. A left over artifact of a previous configuration.
<thomashoneyman>
uh oh: error: file 'nixpkgs/nixos/lib/eval-config.nix' was not found in the Nix search path
<thomashoneyman>
i might need to step away from this and figure out how these pieces even fit together
<thomashoneyman>
i'm just plugging things in at this point
<Guest13048>
clever: found a bunch of stuff
<thomashoneyman>
srhb: clever: any suggestions for bits of the manual or other reading that would help me understand what y'all are describing?
<Guest13048>
uninteligible to me
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
Guest13048: can you pastebin it?
<srhb>
thomashoneyman: Repaste?
<Guest13048>
yep.
<srhb>
thomashoneyman: The short of it really is "all the nix files need to be available at eval time" -- I'm not sure what to point you at except maybe understanding string contexts..
<srhb>
thomashoneyman: The implicit store path creation can be a bit unintuitive.
lourkeur has quit [Quit: Lost terminal]
<srhb>
thomashoneyman: I bet it's just a small mistake now though.
<srhb>
thomashoneyman: Well, you're still referencing ./pkgs, so you need to go one level up in the path you want imported (so mySource = ./.; instead of ./nix) but that's not the cause..
<keithy[m]>
ok, its not an artefact, resolveconf is convinced that my router is a nameserver
<srhb>
thomashoneyman: Oops, sorry, those are relative to ./nix, nevermind :)
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<clever>
Guest13048: what happens if you just run unzip on the executable?
<thomashoneyman>
srhb: this is in a private github repository that i can share with you also
<srhb>
thomashoneyman: Sure. I'm thinking maybe my approach is all wrong if nixops goes directly for eval-config like that.
<srhb>
thomashoneyman: It also does have an option to just set nix path for the deployment iirc
<srhb>
thomashoneyman: Which is way simpler but _feels_ less declarative
jarlg has quit [Ping timeout: 248 seconds]
<thomashoneyman>
srhb: you're /srhb on gh?
<srhb>
thomashoneyman: I am.
<thomashoneyman>
invited. also -- no worries at all if you dont't have time to look at this
<thomashoneyman>
i just felt like it may be easier to see these in context vs. the pastes
fenedor has joined #nixos
<{^_^}>
[nixpkgs] @Drakonis opened pull request #76154 → gzdoom: include missing soundfont files → https://git.io/JedXj
<srhb>
thomashoneyman: Agreed :P
<drakonis>
fast.
jarlg has joined #nixos
<thomashoneyman>
srhb: need to step away for 15 minutes and then i'll be back
<Guest13048>
clever: just a second
<Guest13048>
unzip didn't work
<clever>
Guest13048: what about file-roller?
<srhb>
thomashoneyman: Yeah, this approach is fundamentally flawed. nixops tries to get <nixpkgs/nixos/lib/eval-config.nix> directly, which won't work since <nixpkgs> itself is no longer a source tree. sigh :)
<srhb>
thomashoneyman: So I guess you're better off with your initial approach after all.
<thomashoneyman>
srhb: it seems like this would be a common scenario -- using the same pinned nixpkgs for the project and deployment
<srhb>
thomashoneyman: Yes.
<thomashoneyman>
i can't even remember my initial approach haha
<thomashoneyman>
i'll have to scroll back
<thomashoneyman>
whatever it was, it wasn't working
<srhb>
thomashoneyman: It was to feed the pkgs.path as NIX_PATH. But you'll have to separately pass in overlays too
<keithy[m]>
how can I turn resolconf off?
<srhb>
thomashoneyman: You can add nixpkgs-overlays to your NIX_PATH to get that working in both cases.
<Guest13048>
let me try it.
<keithy[m]>
I still dont understand why resolveconf thinks that the router is the nameserver
<keithy[m]>
I got an idea
<keithy[m]>
ls
<thomashoneyman>
srhb: i haven't yet experimented with adding the overlays to the path
<thomashoneyman>
but it seems to work with a) adding {pkgs.path} to NIX_PATH in the shell hook and b) adding nixpkgs.overlays = [ import (./overlay.nix) ] to the machine.nix config
<thomashoneyman>
i'm not pleased that they're in separate locations
<srhb>
thomashoneyman: The shell thing is a hack no matter what
<thomashoneyman>
but i'm happy that at least it appears to be working
ambro718 has quit [Ping timeout: 258 seconds]
<srhb>
thomashoneyman: It really should all be a function :)
<srhb>
thomashoneyman: But that's really not supported by nixops
<srhb>
And barely even by nixos.
<srhb>
But good that you got it working
<{^_^}>
[nixpkgs] @jonringer pushed 2 commits to python-unstable: https://git.io/Jed1i
cosimone has quit [Remote host closed the connection]