<rmcgibbo[m]>
Jan Tojnar: thanks -- that looks like it'll help me get started if i need to write the channel info. i'm looking at https://lucperkins.dev/blog/nix-channel/ right now... trying to figure out the best way for my r-rmcgibbo workers to pull the latest built version of their client software every time a new builder VM comes online.
<g-w1>
I am getting this with trying to use jaylib https://github.com/janet-lang/jaylib : janet: raylib/src/external/glfw/src/input.c:501: glfwSetInputMode: Assertion `window != NULL' failed. I have been told that sometimes graphics stuff fails on nixos because the files aren't in the right place, what should I do to fix this?
<g-w1>
hmm it also says this WARNING: GLFW: Error: 65542 Description: GLX: Failed to load GLX
SomeoneSerge has joined #nixos
kum0 has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to master « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JtX5N
<tpw_rules>
infinisil: is the documentation wrong then? quoth the stable manual: "The fetched tarball is cached for a certain amount of time (1 hour by default) in ~/.cache/nix/tarballs/."
n-osborne has quit [Ping timeout: 272 seconds]
BaughnLogBot has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
<zceejkr>
Hello, I hava a firewall question. So I enabled the mongo service on my nixOS machine, and opened the TCP port 27017 in the firewell. I can connect to the database fine using the mongo shell on the nixOS machine. However if I try connecting from another machine in LAN, I get a connection refused error. Any ideas what the reason could be?
eXadeci has quit [Quit: Connection closed for inactivity]
<AlpineLlama>
Hey guys! I'm having issues with OpenSSH Daemon only starting after login with sddm and plasma enabled. How can I guarantee that ssh will start at boot ?
<aforemny>
Hi, I have a console application that is supposed to handle the key combination MOD+1. Assuming MOD is L_ALT, it does work in framebuffer but it does not work in xterm. How could I start debugging what's wrong?
sangoma has quit [Ping timeout: 272 seconds]
nhs has quit [Ping timeout: 240 seconds]
dvicente[m] has joined #nixos
turion has quit [Quit: Leaving.]
<lassulus>
maybe check with xorg.xev if the key is registered by X11?
<lassulus>
hmm, its the same for me, so I guess thats expected
<lassulus>
but midnight-commander recognizes alt+1 etc for me
<aforemny>
Another observation: in framebuffer pressing L_ALT+1 prints nothing and I see in the prompt (arg: 1) (I don't really know what that means). In xterm, pressing L_ALT+1 prints the character '±'.
<lassulus>
hmm, maybe its an xterm "feature"
<lassulus>
have you tried another terminal?
<aforemny>
lassulus: What is the executable name for midnight commander? Is it mc?
<lassulus>
yes
<aforemny>
What is ALT+1 supposed to do there? Running mc, I see a prompt. Pressing ALT+1 it prints ± there as well (and nothing else happends).
<lassulus>
alt+1 should open the help
<lassulus>
does the same as f1 for me
<aforemny>
lassulus: That's interesting! F1 prints help, ALT+1 prints that character ± and does not show help.
<aforemny>
I am trying in rxvt now
<aforemny>
Ah!, in urxvt pressing ALT+1 in midnight commander does show help. Maybe that is enough to google something. Thanks! :)
nhs has joined #nixos
<mpickering>
I have added `systemd-time-wait-sync.service` to `systemd.additionalUpstreamSystemUnits` but it isn't listed in `systemctl list-units` after rebuilding the config
rajivr has quit [Quit: Connection closed for inactivity]
SomeoneSerge has joined #nixos
nhs has joined #nixos
__monty__ has joined #nixos
icyhate has joined #nixos
SomeoneSerge has quit [Client Quit]
nhs has quit [Ping timeout: 264 seconds]
<pisquo[m]>
Hi everyone, I want to try spacevim on nixos but afaiu vim doesn't use the configuration specified in my home so the default installation method doesn't work. Has anyone managed to run it properly?
<icyhate>
hey im wondering if i could get any help i am using home-manager to install firefox using programs.firefox.enable and it throws an error
<icyhate>
error: Your configuration mentions firefox.enableAdobeFlash. All plugin related options have been removed, since Firefox from version 52 onwards no longer supports npapi plugins
lord| has joined #nixos
nhs has joined #nixos
<icyhate>
even though i never explicitly edit firefox.enableAdobeFlash
<AlpineLlama>
__monty__: I guess that might do it. but I don't actually need it on during the boot stages. I just want it on before a local login is completed
<icyhate>
i just use service.openssh.enable and it always starts immediately at boot
<__monty__>
Hmm, I thought it was socket-activated, yeah.
<__monty__>
I don't always log in on a nixos box I ssh to.
<__monty__>
That doesn't work for you, AlpineLlama?
<AlpineLlama>
icyhate: I have service.openssh.enable = true; but the service is only on once I login on the desktop manager
<b42>
it's socket-activated when services.openssh.startWhenNeeded is true
<AlpineLlama>
b42: So I should set it to true? I read in the manual it's off by default
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/Jt13e
<AlpineLlama>
I haven't set that parameter
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jt13f
<Rovanion>
How do I run a specific test defined in the Nix Testing Infrastructure?
<b42>
AlpineLlama: you should be able to log in with ssh before desktop login regardless of what it's set to, though it might be useful to know the value for debugging purposes (e.g. run nixos-option services.openssh.startWhenNeeded)
<icyhate>
strange i dont like that incosistency there :v
<AlpineLlama>
b42: Actually I think I misread the issue. it seems that the computer isn't connected to the network at all before I do desktop login. It doesn't respon to any pings.
_bin has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @peti pushed to master « hackage-packages.nix: revert "automatic Haskell package set update" »: https://git.io/Jt13s
<AlpineLlama>
I'm using the kde network manager to connect to wifi. So my mistake must be there then.
<AlpineLlama>
icyhate: Yeah no sorry it seems to be how the method by which I'm connecting to wifi. I just tried pinging the pc and that doesn't work until after login either. I forgot I was using the kde network manager
<__monty__>
b42: Ah, thanks. I don't have it socket-activated either then, but I can indeed just ssh to the box.
<freerabix2>
there the package python38 was deleted
lsix has joined #nixos
<freerabix2>
only the package python38Full is listed
respawn_ has joined #nixos
dev_mohe has joined #nixos
<dramforever>
That is certainly weird, but what did you mean by it being 'not possible to' install python38?
<freerabix2>
try to do: nix-env -i python38 in 20.09?
<dramforever>
And the what went wrong?
<dramforever>
Oh wait, you need to nix-env -iA nixos.python38
<dramforever>
You know, just like it being listed as 'nix-env -iA nixos.python38Full'
<pisquo[m]>
<freerabix2 "dramforever, yesterday i could i"> I just tried
<dramforever>
The short explanation is to just avoid nix-env -i, the one without 'A', because it probably doesn't do what you expect
<freerabix2>
A = As expected?
<PhantomFutaba>
Actually I have no idea how to debug my Wine problem. It seems pretty random, when I installed Wine for the first time, it worked, but after doing more things, it suddenly doesn't work anymore.
<dramforever>
So um, basically do what that search website is telling you, but generalize a bit :)
<dramforever>
If you know you are looking for python38 you can just 'nix-env -iA nixos.python38'
nhs has joined #nixos
srk has quit [Remote host closed the connection]
srk has joined #nixos
sangoma has joined #nixos
<attila_lendvai>
ofborg sent me an auto update on my package with some hashes in the format "sha256-[...]=". how can i convert between this and the simple hash format that is printed by nix-prefetch-url? and which one is preferred?
<freerabix2>
ok, I'll try... Thanks!
<dramforever>
attila_lendvai: Either will work, sha256-... is the new one, and if you do use it, use it like hash = "sha256-..." (instead of sha256 = "...")
<mtr>
heyo, anyone tried getting DragonRuby running on nixos?
sangoma has quit [Ping timeout: 240 seconds]
ScottHDev5 has joined #nixos
<ScottHDev5>
Hello
nhs has joined #nixos
<ScottHDev5>
I'm trouble shooting my nixos machine. When I rebuild my nixos config, /run/current-system points to /nix/store/...-nixos-system-...-20.09... but when I reboot, it points back to /nix/store/...-nixos-system-...-20.03...
<ScottHDev5>
the only occurence of 20.03 in /boot is in my grub config which I don't use (I use systemd-boot know)
<ScottHDev5>
*is in
<dramforever>
Have you mountded /boot correctly?
<dramforever>
*mounted
<ScottHDev5>
I think so, fsType = "vfat"
<dramforever>
Well can you check if it's, like, *actually* mounted
<dramforever>
mount | grep boot
<ScottHDev5>
I can access it
<dramforever>
Yeah, but is it the *real* boot partition?
<ScottHDev5>
It is
<dramforever>
Probably also check if you're booting from the correct bootloader
<eyJhb>
Can I preserve permissions using fetchGit?
sysfs has joined #nixos
nhs has joined #nixos
<eyJhb>
fetchgit* dunno, anything Git! I just want to preserve the permissions.
<clever>
eyJhb: +x, +w, or +r?
n-osborne has quit [Remote host closed the connection]
<eyJhb>
That seems like quite the work on 1000+ files
<eyJhb>
Atm. I can do `cd gitdir && git reset --hard` to get the original permissions back
<gchristensen>
they all should preserve permissions to a degree anyway
<gchristensen>
what's the issue?
nhs has quit [Ping timeout: 272 seconds]
<eyJhb>
WELLLLL! I am trying to build Spigot (Minecraft) using Nix. BUT! It needs 4+ inputs (repos), so when I run pkgs.fetchgit on those, all the permissions will be readonly
<clever>
eyJhb: nix always makes everything read-only
<clever>
eyJhb: you need to copy the source to . and `chmod +w -R` it
<eyJhb>
Exactly, and that screws over the process :(
<eyJhb>
But, that will set all to +write and that will end up screwing the build script over, seeing as it does checkouts etc.
<clever>
nix simply doesnt allow the +w bit to exist once a build is finished
<clever>
why does the build care about things staying readonly?
<eyJhb>
Because creating branches/checkouts will fail - https://termbin.com/hdex is the code that fails
<eyJhb>
I am basically doing that again I guess :p
<eyJhb>
But fuck it is a horrible build system they have set up! A lot of weird stuff
<clever>
yeah
<eyJhb>
It will also download random stuff to your computer, if you don't already have it. Like credits, it does work quite well if you don't care about anything on your computer, and just want stuff to work..
meh` has joined #nixos
spudly has joined #nixos
spudly has joined #nixos
bn_work has quit [Quit: Connection closed for inactivity]
<gchristensen>
so at some point my buildkite account lost all of its agents, and the "nix channel monitor" job kept queuing more and more checks, winding it up like a rubberband... when the agents came online, they all triggered... but they were triggered on a version of the state file that was stale, so they all had exactly the same diff to report. hundreds of them. looks like there is some work to be done :).
Qwerky has quit [Remote host closed the connection]
<ambroisie>
I am trying to set up a Drone CI/CD runner on my NixOS host
<ambroisie>
I had no problem setting up the Docker runner (the main difficulty was writing the package derivation, given that none exist on the NUR or in nixpkgs)
wnklmnn has joined #nixos
malook has quit [Quit: malook]
<ambroisie>
However I am having trouble using the Exec runner, even thouh I have followed what Mic92 wrote in his dotfiles (as linked from the NixOS wiki)
thibm has quit [Quit: WeeChat 2.9]
<ambroisie>
It seems that the runner cannot resolve any hostname, I assume this is because of some security setting in the systemd service file
<Mic92>
ambroisie: in my nur repository is one
<ambroisie>
Mic92: only the exec runner
<Mic92>
ambroisie: which one do you want?
<ambroisie>
Which I am using, so thanks ;-)
<ambroisie>
I am using the Docker runner for now, I just packaged it inside my dotfiles for now, it's not a problem
<ambroisie>
Mmh it seems that I can't use any program other than `/bin/sh` using `nsenter`... I bet it's because of the service's confinement which scrubbed its PATH
ManiacOfMadness has joined #nixos
<sterni>
adisbladis: yeah, but in a different portion of bind than dig right? thought it might be default installed since i've never actively installed it
waleee-cl has joined #nixos
<ambroisie>
Mmh no that PATH is the same as my shell, not the service's
<adisbladis>
> bind.host
<{^_^}>
value is a function while a set was expected, at (string):475:1
<adisbladis>
Huh
<adisbladis>
> bind.outputs
<{^_^}>
value is a function while a set was expected, at (string):475:1
<AlpineLlama>
__monty__: Nah I just remebered how to use wpa_supplicant and went with that. I'll definitely check out iwd if it's the future :). What are it's advantages ?
nhs has joined #nixos
<__monty__>
More convenient UX I believe. Probably technical reasons too but I'm not privvy to them.
<ambroisie>
Mic92: okay so I managed to run `host google.fr` in the namespace (turns out `nsenter` can't deal with symlinks /shrug)
<ambroisie>
It seems to be resolving without any problems
rtjure has joined #nixos
<Mic92>
ambroisie: I am not aware of any other restriction the systemd snippet would apply to the process
<Mic92>
It's mainly namespaces
<ambroisie>
Mmh I'll try launching a pipeline again to see if the problem was just temporary...
<ambroisie>
It worked! :-)
<ambroisie>
Well thanks for your help, I don't know what went wrong the first time exactly, but at least I'll know how to debug future issues
attila_lendvai has quit [Ping timeout: 256 seconds]
lordcirth has quit [Ping timeout: 240 seconds]
cfricke has quit [Quit: WeeChat 3.0.1]
<ambroisie>
Ah I know, it's because I hadn't manually restarted the service after mounting `resolv.conf` the first time, and tested it assuming it had been
<rembo10>
i'm running a webservice behind an nginx reverse proxy. what's the best way to forward the https protocol to that service for link generation?
<rembo10>
I see the defaultFastcgiParams set HTTPS = "$https if_not_empty";
<superbaloo>
I have a piece of software (swtpm) where a python packages needs to first be processed by an autoconf/autotools/makefile
respawn_ has quit [Quit: Leaving]
<superbaloo>
I'm not too sure how to handle that, any chance someone would know another package like that?
<simpson>
superbaloo: pkgs/development/python-modules/pythonmagick/ suggests that you can simply add `autoreconfHook` to your inputs.
<superbaloo>
trick being, the packages also provides a regular library :D
<superbaloo>
haha
<superbaloo>
(I mean .so and stuff)
<simpson>
Not a problem; Python packages can invoke C compilers.
<superbaloo>
huum
<simpson>
If it's a really gnarly package, you might have to look at Z3. That package has a C core and Python/etc. bindings all in one repository. Trickery is required to make it all work.
Boomerang has quit [Quit: Leaving]
<superbaloo>
yeah clang has some trickery as well
<bgamari_>
is there any way to build a derivation such that the CC wrapper will enable -fsanitize flags?
jmeredith has quit [Quit: Connection closed for inactivity]
nhs has quit [Ping timeout: 265 seconds]
nhs has joined #nixos
jmeredith has joined #nixos
hyper_ch2 has quit [Read error: Connection reset by peer]
hyper_ch2 has joined #nixos
<{^_^}>
[nixpkgs] @vbgl pushed to master « ocamlPackages.ounit2: use Dune 2 »: https://git.io/Jt1wj
<ToxicFrog>
So I'm writing a systemd user unit and it needs access to the systemPackages, in addition to a few extra packages
<ToxicFrog>
systemd.user.services.$name.path sets the PATH to exactly those packages, not those packages + system
<ToxicFrog>
I can give the service a startup script that does `export PATH="$PATH:/run/current-system/sw/bin"` before execing the real service, but is there a better way?
Siyo has quit [Ping timeout: 240 seconds]
jb55 has quit [Remote host closed the connection]
est31 has quit [Remote host closed the connection]
<slabity>
I have my NixOS config set up as a flake now. The problem is I use the `passwordFile`, but cannot include the file in the flake's repo for obvious reasons.
saschagrunert has quit [Remote host closed the connection]
<slabity>
Since flakes evaluate things purely, how can I include something impure like a file that isn't part of the repo?
<lordcirth__>
slabity, you can have a second flake that is just for secrets
<lordcirth__>
And include it as an input
lordcirth__ is now known as lordcirth
rajivr has quit [Quit: Connection closed for inactivity]
n-osborne has quit [Remote host closed the connection]
alexherbo2 has joined #nixos
dckc- has joined #nixos
nhs has joined #nixos
DanC has quit [Ping timeout: 260 seconds]
zebrag has quit [Quit: Konversation terminated!]
dev_mohe has joined #nixos
zebrag has joined #nixos
<bqv>
infinisil: heh
rj has quit [Ping timeout: 268 seconds]
rj has joined #nixos
<zn74>
I'm trying to install nixos from a usb stick. When I boot, I get a kernel panic. Higher up I see "SQUASHFS error: xz decompression failed, data probably corrupt".
<zn74>
Is there an issue tracker that's specific to the nixos installer?
<lordcirth>
zn74, the most obvious cause is that copying to the usb had an error
<lordcirth>
Have you hashed the download iso?
<zn74>
Yes, I downloaded the usb, then checked the sha256 hash.
<zn74>
fyi: I'm trying to install nixos on a new System76.com Meerkat. I'd love to find others with this hardware to provide peer tech support. ;-)
lsix has quit [Ping timeout: 272 seconds]
<zn74>
When I mount the usb /dev/sda1 and run `file /mnt/nix-store.squashfs` the output says things like the number of bytes is a very large negative number and the inode count is also a large negative number.
<ris>
anyone ever managed to extract the rootfs of an image like the ones built by dockerTools.buildImage *without* using docker? skopeo seems to discard any tags it finds in a docker-archive: image if you try converting it to an oci, which means e.g. oci-image-tool or umoci can't find anything to reference
<judson>
Updated to 20.09, and revisited lost Gtk icons :(
<judson>
I wish I knew GTK well enough to fix this reliably, but I also don't want to be a GTK developer
<ris>
viric: could that just be that there are fewer meson packages and it hasn't had the time to accumulate as many tweaks and quirks?
<sterni>
lovesegfault: do you mean extraInstallCommands?
zupo has joined #nixos
<viric>
ris: I have long experience with cmake and quite dislike it, hoping some day something better will come. And meson hits well the points I hate the most from cmake.
<rmcgibbo[m]>
Does anyone know if there's a good reason that `pkgs/os-specific/linux/bcc/default.nix` is written as a buildPythonApplication rather than a `buildPythonPackage`, or if it's possible to write python programs that use the `bcc` library as a library and package them in NixOS?
davidv7 has quit [Read error: Connection reset by peer]
<lovesegfault>
sterni: maybe? I want to use pkgs.foobar.src in extraBuildCommands
<sterni>
lovesegfault: that should be possible I'd think since these extra commands are just put in the runCommand afaik. what issue are you running into?
<lovesegfault>
sterni: When I run the build, with set -x, I see this: ++ tar xz /nix/store/mj9zdj18gkvlnav95482vbv0w4l7x0ix-google-cloud-sdk-325.0.0-linux-x86_64.tar.gz -C ./google-cloud-sdk
<lovesegfault>
which is correct, that exists in my nix store
<lovesegfault>
but it doesn't in the FHS store
n-osborne has quit [Remote host closed the connection]
<lovesegfault>
so the tar fails
<lovesegfault>
I need to make sure that path is visible to the extraBuildCommands
<chisui>
Hey, is there a way to template relative paths?
<sterni>
rmcgibbo[m]: for me linuxPackages.bcc has lib/python3.8/site-packages/bcc/ isn't this what you are looking for?
ManiacOfMadness` has joined #nixos
<rmcgibbo[m]>
yeah, i see it in there, but i didn't think i was supposed to use an "application" like that as a library dependency. but let me just try.
<lovesegfault>
sterni: maybe I need to use extaOutputsToInstall?
<chisui>
I'm stupid, `toPath` exists
<lovesegfault>
nope
<sterni>
lovesegfault: wait I'm confused, the stuff in env.nix doesn't already run in the chroot
<rmcgibbo[m]>
Jan Tojnar: oh really? i didn't knew about toPythonApplication to convert a buildPythonPackage an "application", but i didn't know about the reverse. will look.