<nilsirl[m]>
thoughtpolice: How can I fully reset postgresql. It seems to be stuff newly declared inside of configuration.nix isn't applied and stuff that has been removed is still applied. (I do not mind loosing data inside of databases)
pbb has joined #nixos
<samueldr>
infinisil: oh wow
<nilsirl[m]>
thoughtpolice: which is why I'd like to reset it
<gchristensen>
wowowowowowowow infinisil
ryanartecona has quit [Quit: ryanartecona]
Maxdamantus has quit [Ping timeout: 260 seconds]
Maxdaman2us has joined #nixos
<qyliss>
that's awesome infinisil
linkrage has quit [Quit: Leaving]
<samueldr>
infinisil++
<{^_^}>
infinisil's karma got increased to 212
<infinisil>
:D
<qyliss>
infinisil++
<{^_^}>
infinisil's karma got increased to 213
erictapen has quit [Ping timeout: 240 seconds]
erictapen has joined #nixos
judson has quit [Ping timeout: 240 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
infinisil: I *love* the idea you have here.
<samueldr>
I'm wondering what other things can be done with nix, and nixpkgs, if we allow a "go fast" mode that would be able to turn off things that are meant to help the end-user
rogue_koder has quit [Remote host closed the connection]
rogue_koder has joined #nixos
F-Zer0 has quit [Ping timeout: 260 seconds]
F-Zer0 has joined #nixos
sbetrium has joined #nixos
sbetrium has quit [Client Quit]
kvda has joined #nixos
boxscape has quit [Remote host closed the connection]
sbetrium has joined #nixos
sbetrium has quit [Client Quit]
h0m1 has quit [Ping timeout: 246 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
Supersonic has quit [Ping timeout: 272 seconds]
<cole-h>
If I wanted to specify env vars for a specific binary package to start with, how would I do that, inside of `home.packages`? Or would it just be better to let-bind it?
felixfoertsch has quit [Ping timeout: 246 seconds]
doublex__ has quit [Remote host closed the connection]
doublex__ has joined #nixos
<cole-h>
Just needed parentheses :^) `(pkg.overrideAttrs (_: { VAR1="lol"; }))` does the job
<cole-h>
Or rather, is building
<{^_^}>
[nixpkgs] @brcha opened pull request #79886 → Fix/vscode dbusmenu support → https://git.io/JvC9R
<{^_^}>
[nixpkgs] @ldelelis opened pull request #79888 → tdesktop: creates desktop item post install → https://git.io/JvC9N
<infinisil>
cole-h: I'd recommend the symlinkJoin with makeWrapper method there
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo2 has quit [Ping timeout: 265 seconds]
mexisme_ has quit [Ping timeout: 268 seconds]
KeiraT has quit [Quit: KeiraT]
KeiraT has joined #nixos
mexisme_ has joined #nixos
<cole-h>
That did the trick. Thanks! The actual issue (when using makeWrapper) was that I had misspelled the operative env var :D
<cole-h>
infinisil++
<{^_^}>
infinisil's karma got increased to 214
ben_ has joined #nixos
ben_ has quit [Read error: Connection reset by peer]
xkapastel has quit [Quit: Connection closed for inactivity]
philr has quit [Ping timeout: 265 seconds]
philr has joined #nixos
<infinisil>
:D
<{^_^}>
[nixpkgs] @brcha opened pull request #79889 → vscode: Added libdbusmenu support → https://git.io/JvCHJ
mexisme_ has quit [Ping timeout: 260 seconds]
cap_sensitive has quit [Remote host closed the connection]
kvda has joined #nixos
<samueldr>
infinisil (sorry to bother you specifically, but you're the one most likely to help) there's a default in the options system that needs to be set conditionally depending on the system's platform (e.g. pkgs.stdenv.isx86_64)
<samueldr>
this leads to infinite recursion
<samueldr>
any tip or trick?
<samueldr>
(searching is I can see something relevant meanwhile)
<gchristensen>
I have a strange problem. I'm installing on to a new system with grub. I run mkfs --type vfat -F 32 -n EFI /dev/disk/by-id/ata-SuperMicro_SSD_SMC0515D93017DIA6060-part1; mount -t vfat /dev/disk/by-id/ata-SuperMicro_SSD_SMC0515D93017DIA6060-part1 /mnt/boot and nixos-install outputs: installing the GRUB 2 boot loader on /dev/disk/by-id/ata-SuperMicro_SSD_SMC0515D93017DIA6060... and then I kexec the
<gchristensen>
installed system. right before I do, the kernel prints [ 225.591894] FAT-fs (sdc1): Invalid FSINFO signature: 0x00821cea, 0x8a001002 (sector = 1) to dmesg. then at boot I get [ 12.287246] FAT-fs (sdk1): invalid media value (0xe2), -- anyone seen this?
philr has quit [Ping timeout: 268 seconds]
ris has quit [Ping timeout: 240 seconds]
<infinisil>
samueldr: What's the --show-trace?
<samueldr>
just a sec, I might have been unobservant and failed at testing properly something
<samueldr>
those long stack traces, sometimes my eyes glaze and I assume it's the same issue when the error does change :/
<samueldr>
I was getting another error when testing against unstable, so this confused me, one of the package I'm using is apparently removed
<samueldr>
but yeah, that's what I was getting
<infinisil>
samueldr: Oh i think I've seen this before
<samueldr>
why didn't you fix it :^)
<infinisil>
samueldr: this is probably a case of a strict system.build attrset
<infinisil>
Hehe
<samueldr>
this uh, doesn't help me, not sure what is a strict system.build
<infinisil>
Hmm..
v88m has quit [Ping timeout: 272 seconds]
<samueldr>
and to answer the XY, the goal is to not have `vmware` as a videoDrivers on platforms where it's not available, in the default value
<samueldr>
if a user adds a videoDriver that is not available on their platform it should error out
<infinisil>
So it's something with: Some system.build.* attr is evaluated -> because of this all other system.build.* attrs are evaluated, one of which is system.build.toplevel -> this evaluates all assertions -> the assertions do some file system checks -> file systems are declared with system.build.fileSystems
<samueldr>
so the easy out of "just filtering out invalid packages" is not good
dansho has quit [Ping timeout: 240 seconds]
<samueldr>
oh
<samueldr>
I think I get the main idea
<samueldr>
obviously cannot use currentSystem since... well cross-compilation
<infinisil>
Hope that helps, I'm gonna go sleep now though, good luck :P
<samueldr>
could the default be null, and lib.mkDefault'd in the config?
mexisme_ has joined #nixos
<infinisil>
samueldr I'd try to understand how the recursion happens exactly, then I often find that the problem becomes clear
<samueldr>
go sleep now, and thanks :)
mac10688 has joined #nixos
HailSagan[m] has joined #nixos
<cole-h>
What's the function that checks if the user is in a NixOS environment or not?
lovesegfault has joined #nixos
<mdash>
is there one?
<cole-h>
Ah, it seems most people just roll their own by checking is `/etc/nixos` exists
<samueldr>
it's really one of these moments the ability to step / pause, and look at stuff would tremendously help
<{^_^}>
[nixpkgs] @jonringer opened pull request #79890 → readme: add discord link → https://git.io/JvCHS
nathanlkoch has joined #nixos
phreedom has quit [Remote host closed the connection]
nathanlkoch has quit [Quit: No Gods, No Masters.]
phreedom has joined #nixos
nathanlkoch has joined #nixos
cap_sensitive has quit [Remote host closed the connection]
* emily
personally disapproves of checking the existence of /etc/nixos
<raghavsood>
logstash plugins need to be installed into a directory, which the main logstash config file can then refer to. For ruby gems, existing derivations simply copy the lib/* dir and use the output path. This doesn't work in this case, since the pubsub plugin relies on a number of jar files, which evidently must be pulled by bundler. Howerver, `bundix`
<raghavsood>
also chokes on trying to create a derivation for the gem (which is, according to the README, not intended to be installed as a package directly anyways)
bhipple has quit [Remote host closed the connection]
<EdsNix>
hi, how do I add a bootloader parameter to my nixos config while installing nixos? My hardware won't boot nixos, or any Linux, without pci=noats
<EdsNix>
I did this by pressing "e" during the ISO boot, but want to make it permenant in the new install
<EdsNix>
hmm, anyone awake here?
<EdsNix>
I'm also installing with a ZFS root if I can, if that matters
<cole-h>
For some reason, the 3.1b1 beta release of fish-shell has a problem with some unicode like family: IBM Plex Mono
<cole-h>
Oops
<cole-h>
I meant, like '❯'
<cole-h>
Weirdest part is that 3.0.2 from the cache doesn't exhibit this problem
<EdsNix>
very fishy
<cole-h>
:D
<EdsNix>
how do I modify the bootloader kernel parameters the nixos way?
<EdsNix>
I need to get this done just to boot without intervening during boot
<cole-h>
EdsNix: Have you tried `boot.kernelParams = [ /* args */ ];`?
<buckley310>
can anyone spot the bug in this config snippet? http://ix.io/2bt6 when I run it i get: error: attribute 'xlibsWrapper' missing, at /nix/store/.../gstreamer/legacy/gst-plugins-base/default.nix:43:9
<EdsNix>
I haven't tried anything yet, other than pressing ""e" during boot, in fact, I haven't finished installing yet.
<emily>
yeah, boot.kernelParams is it
<EdsNix>
so that'ss what to do?
<emily>
I think the config generator might include ones you specified explicitly to the installer by default, but don't rely on that without checking my hunch
cap_sensitive has quit [Remote host closed the connection]
cap_sensitive has joined #nixos
EdsNix has quit [Remote host closed the connection]
natek has joined #nixos
<cole-h>
Any NixOS users feel up to testing a fish 3.1b1 overlay to see if the issue is because I have a mixed system and not NixOS?
lord| has quit [Read error: Connection reset by peer]
<cole-h>
If you're feeling adventurous, I have a gist with the overlay. Basically, just set your fish prompt to something with a unicode character (like '❯' or 'λ') and see if fish complains.
<aterius>
Running latest nixpkgs, wondering if it's a driver incompatibility error
<wifi-problems>
i have some wifi problems and i'd like some help to diagnose the cause. I often lose wifi connectivity and it's pretty annoying. It will disconnect and reconnect often and idk how to troubleshoot
drakonis_ has quit [Read error: Connection reset by peer]
wifi-problems has quit [Remote host closed the connection]
graf_blutwurst has quit [Remote host closed the connection]
<hyper_ch2>
hmmmm, what is a recommended setup for a installation on which I only want to run Virt-Viewer or Virt-Manager. I don't need to run anything else
MinceR has quit [Ping timeout: 245 seconds]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zceejkr has joined #nixos
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<LinuxHackerman>
hyper_ch2: I recently did a "thin client" sort of thing using the `auto` display manager and i3 with a minimal config
o1lo01ol1o has joined #nixos
cryptowest has joined #nixos
<zceejkr>
Hello everyone. I hope this question belongs here: how does one go an install the nix package manager on macOS catalina? Are there any good resources about this online?
<LinuxHackerman>
hyper_ch2: but I think starting the X server and its clients in a dedicated systemd service rather than using any display manager at all might be better
<hyper_ch2>
LinuxHackerman: share2care your configuration.nix for that thin client?
<hyper_ch2>
s/share2care/care2/share/
v88m has quit [Ping timeout: 260 seconds]
<hyper_ch2>
s/share2care/care2share/
karantan has joined #nixos
F-Zer0 has quit [Read error: Connection reset by peer]
<LinuxHackerman>
hyper_ch2: I particularly don't like how it assumes that the X server is running on :0
<LinuxHackerman>
hyper_ch2: hence the suggestion to start the X server in a unit along with its clients
Hunterkll has quit [Ping timeout: 240 seconds]
karantan has quit [Client Quit]
<{^_^}>
[nix] @edolstra pushed to flakes « Test narHash mismatch »: https://git.io/JvCN2
<LinuxHackerman>
hyper_ch2: I'll be working a bit more on this in the near future and probably publish a blog post about it, I'll let you know when I've finished that if you want :)
v88m has quit [Read error: Connection reset by peer]
<zceejkr>
I tried reading the thread but I am just starting out with nix so most of it makes little sense to me.
<hyper_ch2>
LinuxHackerman: that would be great. I need a "lightweight" way to access a windows VM but not with the windows "remote desktop" tool but virt-viewer.
martinb_ has quit [Ping timeout: 268 seconds]
<hyper_ch2>
and installing a full-blown DE just seems overpowered
<clever>
hyper_ch2: heard of ratpoison?
martinb has joined #nixos
<sphalerite>
hyper_ch2: yeah, just i3 with virt-viewer (or rdesktop works nicely too) should work well
martinb is now known as timor
<{^_^}>
[nixpkgs] @xwvvvvwx opened pull request #79911 → vimPlugins.jellybeans-vim: init at 2019-06-22 → https://git.io/JvCN1
hyper_ch288 has joined #nixos
<hyper_ch288>
sphalerite: rdesktop?
karantan has joined #nixos
<sphalerite>
hyper_ch288: I guess it's not relevant if you don't want to use windows's built-in remote desktop, but I use it all the time for RDP
Hunterkll has joined #nixos
<hyper_ch288>
sphalerite: the problem is I have a smartcard reader and smartcard attached to the server so that the windows vm can access it
MinceR has joined #nixos
MinceR has joined #nixos
MinceR has quit [Changing host]
zceejkr has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
<hyper_ch288>
sphalerite: however if you use window's built-in remote desktop, you can't access that smartcard read. it's blocked. hence using virt-viewer / virt-manager from a linux will/should work
<eoli3n>
hyper_ch288: why not using a simple WM, like i3 or sway ?
<hyper_ch288>
eoli3n: that's what I asked: what is a recommended setup for a installation on which I only want to run Virt-Viewer or Virt-Manager. I don't need to run anything else
<eoli3n>
so just run those with X
<eoli3n>
but without a WM, you can have some pb to fullscreen
<vidbina>
Hey folks, I'm kind of losing it trying to add a new package and as a last resort I'm humbly coming to you with my head bowed and my tail between my legs with the request if anyone can try to build this package on their setup and help me debug this commit https://github.com/vidbina/nixpkgs/commit/5695ec00ead79c61d7e0cae6f2be68a7acd4bd67 and if you're typing rather go to
<vidbina>
Running another nix-build with openssl added to buildInputs since I just figured that urllib.urlopen Errno -2 issues could have something to do with OpenSSL. ¯\_(ツ)_/¯
<eoli3n>
"mkDerivation from autotools. Recall that mkDerivation has an implicit dependency on the toolchain."
<eoli3n>
i don't get this
waleee-cl has joined #nixos
gxt has quit [Remote host closed the connection]
<immae>
eoli3n: In the tutorial you’re following (nix pills?) you’re reimplementing a simplified version of the mkDerivation (that is normally available as standard in the nixpkgs), so that’s why you’re passing it as argument to make use of this one rather than the "standard implemented" one
<eoli3n>
in default.nix "let" we set mkDerivation = import ./autotools.nix pkgs; then in "in" with "with pkgs + inherit" we set mkDerivation = pkgs.mkDerivation
<eoli3n>
or maybe when "hello = import ./hello.nix { inherit mkDerivation; };" in default.nix, it is resolved as "hello = import ./hello.nix { mkDerivation = mkDerivation; };" from upper line and not pkg.mkDerivation
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<vidbina>
@eol13n: more or less, I would argue... The inherit bit just binds an attribute to its namesake within the scope. So the { inherit blah; } evals to { blah = blah; } more or less as you already mentioned before.
<vidbina>
From my struggles, you can tell that I'm not a Nix pro throuhg
<{^_^}>
[nixpkgs] @FRidh pushed commit from @dhl to master « wasm-pack: 0.8.1 -> 0.9.1 »: https://git.io/JvCx2
veske has quit [Quit: This computer has gone to sleep]
<eoli3n>
ok but a line in pill says : The "inherit x" syntax is equivalent to "x = x". So "inherit gd" here, combined to the above "with pkgs;" is equivalent to "gd = pkgs.gd".
<eoli3n>
its true for other dependencies but not for mkderivation
<eoli3n>
i think i get it now, thx
<{^_^}>
[nixpkgs] @jethrokuan opened pull request #79913 → mkdocs: default to Python 3 → https://git.io/JvCxw
<fusion809>
When doing a rebuild I needed to free up some disk space, so I deleted some dot files in my home folder, including in .config and .cache, and now thumbnails for video files aren't being generated in my file manager, Dolphin. ffmpegthumbnailer is installed. In Dolphin's preferences window under the "Previews" tab I've got the Video files box ticked.
martinb__ has quit [Client Quit]
timor has quit [Ping timeout: 260 seconds]
karantan has joined #nixos
<fusion809>
Other file managers aren't generating video thumbnails either.
<infinisil>
fusion809: You shouldn't delete .config!
<infinisil>
That's where all the config files live, I'm not surprised this breaks stuff
<fusion809>
I didn't it all, just files I thought weren't essential. Besides, I couldn't find any other fat to trim, so that's what I was left with.
<fusion809>
I regularly do nix-collect-garbage -d and nix-store --optimise, but still I find it hard to fit my OS in a 80 GB petition.
<fusion809>
That's even though I use a separate petition to store most data files.
<infinisil>
fusion809: Are you using an auto optimized store too?
<fusion809>
Didn't know that was an option.
<infinisil>
nix.autoOptimiseStore
<infinisil>
And probably run it once with "nix-store --optimise" to get it started
<infinisil>
This deduplicates all files :)
<fusion809>
Where do I put that option? I must admit, I'm not particularly fluent in the Nix language, I know how to edit /etc/nixos/configuration.nix to get what I need done, and not much more.
<infinisil>
fusion809: Oh also look at the nix.gc option, which lets you run the gc automatically at regular intervals
<infinisil>
fusion809: Yup that's where you put those
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karantan has joined #nixos
<fusion809>
Already rebooted a few times since then. I don't back up dotfiles. So, I suppose I'll just have to wait for it to either rectify itself, or another suggestion from this channel.
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
sbetrium has quit [Client Quit]
zupo has joined #nixos
<infinisil>
fusion809: You could try to figure out the underlying problem, looking how thumbnails are generated, where they're stored, etc.
o1lo01ol1o has joined #nixos
<fusion809>
Tried something in that vein already, actually. I ran ffmpegthumbnailer manually and tried storing it in ~/.cache/thumbnails, in case it was an issue with ffmpegthumbnailer or the permissions of the directory itself, and it worked.
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
CMCDragonkai1 has joined #nixos
sbetrium has joined #nixos
zupo_ has joined #nixos
o1lo01ol_ has joined #nixos
<wedens[m]>
try starting file manager from terminal. it may print some errors to the terminal
mexisme_ has joined #nixos
zupo has quit [Ping timeout: 260 seconds]
<fusion809>
Not a bad idea, thanks, I'll give it a go
alexherbo2 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
veske has joined #nixos
mexisme_ has quit [Ping timeout: 272 seconds]
<fusion809>
Not very verbose output, I'm afraid. Just some theme parsing error warnings
alexherbo27 has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo27 is now known as alexherbo2
<fusion809>
Oops, wrong file manager, I have a few installed I tried some of the others. Dolphin actually gives good output, "KServiceTypeTrader: serviceType "ThumbCreator""
<fusion809>
is one error.
<fusion809>
Not sure what I'm meant to do with it.
<wedens[m]>
btw, do you have thumbnails activated? (not in settings. in the main window)
tilcreator has joined #nixos
<fusion809>
Yep, if by activated you mean have I clicked the "Preview" option that is between to "Search" and "Split"
<fusion809>
Aha! I fixed it. I added kio-extras to systemPackages in /etc/nixos/configuration.nix, then pressed "Preview" (turning off preview) and clicked it again (turning it back on) and the thumbnails are back.
<fusion809>
Thanks for your help, wedens[m] and infinisil.
claudiii has quit [Quit: Connection closed for inactivity]
hyper_ch2 has quit [Remote host closed the connection]
meck has joined #nixos
sbetrium has joined #nixos
<wedens[m]>
it's supposed to be in `nixpkgs.config` in configuration.nix (on nixos) or ~/.config/nixpkgs/config.nix on non-nixos or per-user configuration
<fusion809>
I'm not familiar enough with the lingo to know that, lol. That's why, but I'll put it in there.
chiefgoat has joined #nixos
<fusion809>
Or is it possible to put it in /etc/nixos/configuration.nix instead?
<wedens[m]>
add `nixpkgs.config.firefox.enableAdobeFlash = false` to /etc/nixos/configuration.nix
sbetrium has quit [Client Quit]
<wedens[m]>
sorry, true
sbetrium has joined #nixos
Guest2599 has joined #nixos
<fusion809>
Fixed one issue only to expose another. I tried a rebuild and I got the error: https://paste2.org/WMUkYeDC
Guest2599 has left #nixos [#nixos]
erictapen has joined #nixos
<fusion809>
Tried opening the link my browser, the tar archive link shown in the output that is, and I got 404'd
<meck>
Hi I'm having an issue with nix on macos, I run a single user install on this machine, but every time I reboot the ~/.nix-profile link gets deleted (Everything works fine if I add it back or rerun the install script). The issue has been present in both 10.14 and 10.15. Couldn't find any relevant issues on gh or elsewhere. Anyone here seen anything similar?
<LnL>
meck: sounds very bizarre, ~/.nix-profile itself or the thing it points to?
<meck>
LnL Just the link, if i do "ln -s /nix/var/nix/profiles/per-user/meck/profile ~/.nix-profile" it all is fine again,
rihardsk[m] has joined #nixos
<rihardsk[m]>
hi, i'm using Nix on Ubuntu and i'm currently getting "error: opening lock file '/nix/var/nix/profiles/per-user/.../profile.lock': No such file or directory", when trying to install something like `nix-env -i nix-prefetch-git`. it's likely because the /nix/var/nix/profiles/per-user/ directory doesn't contain a subdirectory for my user. what's responsible for creating per-user subdirectories there? why isn't it happening? m
<rihardsk[m]>
a bit unconventional in that the $HOME is mounted on an NFS drive (shared with other hosts), but i can't figure out what's causing issues here
<LnL>
meck: I highly doubt it's related to the nix installation itself in that case
<LnL>
perhaps some dotfiles tool that's creating links and removing unknown ones?
<meck>
LnL I don't think so either, most likely seems like I mac issue. But I'm guessing there might be a few people running nix on mac here...
<LnL>
yeah, never heard this before
<LnL>
if it was the profile itself it could be the garbage collector, but nothing really touches the ~/.nix-profile link other than nix-env -i
CRTified has quit [Quit: Gateway shutdown]
philipp[m] has joined #nixos
<philipp[m]>
I'm trying to build a shell with some perl modules installed in a one-liner in nix run, but I'm not sure how --arg works for nix run and how to apply it.
<philipp[m]>
Do I even need arg?
<philipp[m]>
I'd like to do sth like `nix run "nixpkgs.per.withPackages (pkgs: with perlPackages; [ YAML JSON])"
vidbina has quit [Ping timeout: 272 seconds]
<philipp[m]>
*perl
sbetrium has quit [Quit: sbetrium]
<philipp[m]>
`nix run nixpkgs.perl.withPackages --arg pkgs "with import <nixpkgs>.perlPackages; [ YAML JSON]"` was another idea of mine.
<wedens[m]>
fusion809: well, that's pretty common problem with flashplayer. they delete previous versions. you can try updating the channel as it may have updated version
m15k has joined #nixos
<rihardsk[m]>
<rihardsk[m] "hi, i'm using Nix on Ubuntu and "> could the issue be that nix creates the user profile directories when it's installed and it might be a timing issue - on that machine Nix was installed first and only then the NFS home directory (with existing user home dirs) was mounted to it?
<fusion809>
Before every rebuild I update the channel, I've tried updating the nix file in nixpkgs to the latest and updating checksums then adapting ~/.config/nixpkgs/overlays.nix to use it and then do a rebuild and even with flash player installed I keep getting the same error saying that flashplayer isn't found
<fusion809>
The precise error message I get in my browser is, "
<fusion809>
higher to view the videos on this site"
<fusion809>
You need Adobe Flash plugin version 8 or
<LinuxHackerman>
m15k: nix-shell -A gives you the build environment for a derivation
<LinuxHackerman>
m15k: my guess would be that in this case, java 8u222 is built using adoptopenjdk 8u242
<meck>
LnL Seem like setting a "user immutable flag" on (ie lock) the file sorted it for now, I found some vaguely related issues with icloud deleting symlinks in the home directory. Anyhow it works for now, although I'm not sure why. But thanks anyway!
<m15k>
LinuxHackerman: Ah. That would make sense. And also explains why the build does not fail when I change the versions.
<LinuxHackerman>
m15k: also, the NIX_PATH you're setting there won't have any effect
linkrage has left #nixos [#nixos]
<LinuxHackerman>
m15k: since you're using nix-shell without a filename, it will use the shell.nix or default.nix in your cwd — if you run that command elsewhere, it won't work :)
pkolloch[m] has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<m15k>
LinuxHackerman: Mhhhh I see. I wonder if the idea is basically legit to spawn into a "package shell".
<infinisil>
LinuxHackerman: If they were using the -p flag (which I think is the intension) then that NIX_PATH will be relevant
<LinuxHackerman>
m15k: absolutely is! `nix-shell -p jre` will give you jre in the PATH
<evanjs>
Trying to add some realtek drivers, specifically, as those that are included by (AFAIK) default are staging drivers, and I think my coworker mentioned he couldn't get them working with hostAPD? Something like that
<evanjs>
Was able to compile an example module (https://github.com/lwfinger/rtl8188eu) per samueldr 's recommendation to look at some other stuff in tree, but now I need to add it to the barebones initrd I'm making
<colemickens>
opinion: we should build from git tags instead of tarballs for projects that use autotools and dont commit the generated goop
<colemickens>
I hate switching the source for a package and having it fail to build because the tarball doesn't match a github archive tar, for example.
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hyper_ch2 has quit [Remote host closed the connection]
<clever>
evanjs: try running makeModulesClosure in your default.nix, and nix-build that first
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iyzsong has quit [Ping timeout: 240 seconds]
F-Zer0 has joined #nixos
karantan has joined #nixos
domogled has quit [Quit: domogled]
domogled has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
karantan has quit [Client Quit]
<evanjs>
clever: I had inherit modulesClosure in nixos { } before. I'll try making that first, though. I realized that making nixos before the scripts did change things for some reason...
zupo has joined #nixos
hyper_ch2 has joined #nixos
vandenoever has quit [Read error: Connection reset by peer]
<clever>
evanjs: 2 main reasons for that, 1st: i'm impurely building a kernel in nix-shell for speed, and getting those modules back into the pure nixos is difficult
<clever>
evanjs: 2nd, the kernel nix builds doesnt actually boot, so i must use the impure kernel, havent narrowed down which .config is to blame
<userr22>
It's for a mullvad service. There's already a 2nd PR opened by accident as mullvad is a bit of a pain to use without the service. It'd be nice not to manually start the daemon
<pie_[bnc]>
infinisil: so the script generator uses toString which turns my outside path into a string, but i want it to be imported into the store
<pie_[bnc]>
im trying to get the file in a container
<clever>
pie_[bnc]: if you want it copied to the store, dont use toString
<pie_[bnc]>
I guess I can do "${./path}" ?
<clever>
pie_[bnc]: it will be copied automatically, yep
<pie_[bnc]>
clever yeah but its a module
<evanjs>
clever: ah gotcha. Yeah I was initially just linking to specific modules and firmware folders, unsure if that's why various symbols and etc weren't found
<pie_[bnc]>
i mean id have to patch the module
<evanjs>
replaced those with the modulesClosure though
<clever>
evanjs: modulesClosure should be given the same kernelPackages the kernel came from, to ensure the symbols line up
<evanjs>
clever: yup, I'm just using the same kernel I defined in the let block
mexisme_ has quit [Ping timeout: 245 seconds]
<clever>
pie_[bnc]: if you do "${./foo}", and then the module runs toString on the value, the "${ already copied to the store
<evanjs>
and yeah, what I was linking in before was not the same kernel version, so it might've been relevant :D
<AluisioASG>
So, I'm working on a package update that depends on updating a second package as well as adding a third package to nixpkgs (three commits in total). Can I send those as a single PR or do I break them up?
ericsagnes has joined #nixos
<wjjunyor[m]>
<wjjunyor[m] "image.png"> Somebody has a hint.
<infinisil>
wjjunyor[m]: You need to actually explain the problem yet
<hyper_ch2>
AluisioASG: IIRC single PR but individual commits
<AluisioASG>
Alright, thanks
<hyper_ch2>
actually /me eyes infinisil
<wjjunyor[m]>
<infinisil "wjjunyor: You need to actually e"> The system is working - But there are a lot of errors This is the fist one and I don't know how to fix it
<AluisioASG>
Btw, is there any current reason for having two ordered package lists in pkgs/top-level/python-packages.nix?
<infinisil>
wjjunyor[m]: Nothing at all to worry about
<infinisil>
wjjunyor[m]: It's normal to have some warnings/errors in random logs. Unless it affects you then all is fine
<AluisioASG>
wjjunyor[m]: I don't claim to understand kernel babble, but there doesn't seem to be any problem in that screenshot
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<__monty__>
AluisioASG: Two lists? Those contents don't look all that alphabetized to me.
<wjjunyor[m]>
OK - I undestand it - but they annoy me I can live with this one.
<wjjunyor[m]>
I'll have to.
<wjjunyor[m]>
Just one more:
<wjjunyor[m]>
fev 12 09:31:25 T101 systemd-udevd[132]: /nix/store/7pjc3s5nak83105p433cmcn6ic4agjqz-udev-rules/11-dm-lvm.rules:40 The line takes no effect, ignoring.
<wjjunyor[m]>
fev 12 09:31:25 T101 systemd-udevd[132]: /nix/store/7pjc3s5nak83105p433cmcn6ic4agjqz-udev-rules/11-dm-lvm.rules:40 Invalid value for OPTIONS key, ignoring: 'event_timeout=180'
<pie_[bnc]>
i dont suppose either of you know how to enable the tomcat manager with the tomcat module
<{^_^}>
[nixpkgs] @mrkkrp opened pull request #79925 → Add nix-store-gcs-proxy service → https://git.io/JvWUm
<immae>
Nope that’s out of my competences there
<nahamu>
gchristensen:is there a way to understand why I got tagged as a reviewer for https://github.com/NixOS/nixpkgs/pull/79237 even if I'm not marked as a maintainer in the changed files?
<nahamu>
does it tag recently active maintainers/approvers?
* pie_[bnc]
fiddles more and checks the manager docs
smatting has joined #nixos
<gchristensen>
nahamu: hmm
<nahamu>
To be clear, I'm confused/curious, not upset.
<gchristensen>
nahamu: oh it was because of the switch to staging -- there was a period where you were a listed maintainer in the diff, and the list of maintainers was sufficiently small that it tagged reviewers
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nikola_i has quit [Ping timeout: 240 seconds]
KeiraT has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<immae>
Freneticks: ~/.nix-profile/ is filled via symlinks of elements the store by nix-env. If the element contains a bin subfolder then you’ll get its content in ~/.nix-profile/bin. Does that answer your question?
ixxie has joined #nixos
<Freneticks>
immae: yes, thanks !
sb0 has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
gustavderdrache has joined #nixos
<evanjs>
srk: finally got it haha. `console=ttyS0` in kernel args :D wow I feel dumb. "Keyboard support" is working in virt-manager w/direct kernel+initrd boot, now!
erictapen has quit [Ping timeout: 265 seconds]
mexisme_ has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<userr22>
If you're using home-manager this looks like it'll work to view all home-manager packages: `nix-store --query --requisites ~/.nix-profile | cut -d- -f2- | sort | uniq`
<userr22>
although that one has quite a lot of useless stuff too ^
cole-h has joined #nixos
ryanartecona has joined #nixos
ddellacosta has joined #nixos
domogled has quit [Read error: Connection reset by peer]
domogled has joined #nixos
<butterthebuddha>
So apparently I don't update nix through nixpkgs?
tmplt has joined #nixos
fusion809 has quit [Remote host closed the connection]
<gchristensen>
can I ask systemd to send my service's log output to /dev/console?
<wjjunyor[m]>
<userr22 "wjjunyor User profile: `nix-env "> Thanks
<userr22>
wjjunyor[m] np :)
<tmplt>
Is it possible to use `nixos-rebuild build` and similar subcommands if my system is declared nixops-style? `deployment.targetHost = "localhost"`.
KeiraT has quit [Quit: KeiraT]
<userr22>
functor.tokyo is a great resource for nix & nixos stuff
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
butterthebuddha: that means that you added the same channels to both root and your user, so its ignoring root's copies
<LnL>
your user channels also point to root, so you have them twice in the lookup path
<mudri>
Is there any way to set trackpad tapping sensitivity on NixOS? Before, I've used Synaptics, but now that's deprecated and falling apart.
<{^_^}>
[nixpkgs] @andir opened pull request #79930 → cargo: use bundled libgit2 → https://git.io/JvWLp
<ornxka>
how do i use a local dir as a nixos channel
<clever>
ornxka: does it need to be a channel or just something you build from?
<ornxka>
ive got the whole nixpkgs repo checked out in various worktrees for unstable, release, etc, and id like to upgrade my packages i installed via nix-env against that checked out copy of nixpkgs
<clever>
ornxka: nix-env -f ~/nixpkgs -iA hello
<butterthebuddha>
LnL I thought that it might be a good idea to remove all the channels from root, but now I'm getting this error: https://pastebin.com/raw/NkF3QNDQ
<ornxka>
ahh
KeiraT has joined #nixos
<butterthebuddha>
I guess I would appreciate an explanation of how channels are supposed to work
<clever>
butterthebuddha: each user has their own channel list, and nix-env will look in the current users channels, plus root
mac10688 has quit [Ping timeout: 246 seconds]
<clever>
butterthebuddha: if you are the only user of the machine, its simplest to only put channels on root, and nowhere else
<butterthebuddha>
clever If I'm the only user, is there any reason to use a multi-user installation instead of a single-user installation?
<LnL>
lookup is a bit confusing and not consistent between all tools
<clever>
butterthebuddha: also, darwin is "broken" and `sudo nix-channel` wont act on roots channels
<clever>
butterthebuddha: you want `sudo -i` then use `nix-channel`
<mudri>
ornxka: You can also give them convenient names by putting a symlink to the nixpkgs directory in `~/.nix-defexpr/`.
<clever>
butterthebuddha: the darwin copy of which is old and doesnt support --all
<LnL>
nix doctor should also list duplicate nix installatjons
<clever>
butterthebuddha: manually check each entry in $PATH for a nix-env, are there duplicates?
<LnL>
clever: ^
<lc>
Hi, I'm gtting this in stack on nixos `error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory`
<butterthebuddha>
Just installed a new version of which
<clever>
butterthebuddha: then root never had channels, and sudo has been lying to you the entire time
<Ilya_G>
```locking path '/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv'lock acquired on '/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv.lock'lock released on '/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv.lock'instantiated 'log_adapter_engine-0.2.0' ->
<Ilya_G>
'/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv'querying info about missing paths...starting pool of 3 threadschecking substituter 'https://cache.nixos.org' for path '/nix/store/fr2vsw0ziizhb99m348rsygvzd7b5glq-log_adapter_engine-0.2.0'querying info about
<Ilya_G>
locking path '/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv'lock acquired on '/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv.lock'lock released on '/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv.lock'instantiated 'log_adapter_engine-0.2.0' ->
<Ilya_G>
'/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv'querying info about missing paths...starting pool of 3 threadschecking substituter 'https://cache.nixos.org' for path '/nix/store/fr2vsw0ziizhb99m348rsygvzd7b5glq-log_adapter_engine-0.2.0'querying info about
<clever>
butterthebuddha: `sudo nix-channel --list` shows the channels for your user, not root
<Ilya_G>
`locking path '/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv'lock acquired on '/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv.lock'lock released on '/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv.lock'instantiated 'log_adapter_engine-0.2.0' ->
<Ilya_G>
'/nix/store/3lzklka8qm0v8gra9bn0v8dvijw2x6i5-log_adapter_engine-0.2.0.drv'querying info about missing paths...starting pool of 3 threadschecking substituter 'https://cache.nixos.org' for path '/nix/store/fr2vsw0ziizhb99m348rsygvzd7b5glq-log_adapter_engine-0.2.0'querying info about
<eso>
Hello guys, I'm stating using nix and i face a little problem using `nix-shell --pure`; I do need ssh commands but i havent acces to it, so i wanted to add the package that contains ssh but i didnt found it. Is this the way i should do it or i missunderstand something
domogled has joined #nixos
<gchristensen>
eso: you might have many troubles with --pure, like if you use an SSH agent. but: openssh
<clever>
butterthebuddha: on darwin, you should always use `sudo -i` then `cmd`, not `sudo cmd`
<eso>
ah thx i'll try to add openssh thx !
<Ilya_G>
So for gist I included there I have an issue when NixOS is trying to pull my package from cache.nixos instead of installing it from GitLab like I asked it to.
<romildo>
Atril (from the mate desktop) depends on the synctex lib. atril-1.24.0 removed the internal build of the ‘synctex’ library to use only the external version. On my system there is /nix/store/i7a3ggf993ziiz5r788fw770yb36k5nx-texlive-bin-2019/lib/pkgconfig/synctex.pc How should it be included as a dependency for atril?
<clever>
butterthebuddha: darwin sets the wrong $HOME with the 2nd form, and the commands act on the wrong user
<butterthebuddha>
clever is that fixable?
<butterthebuddha>
that sounds like an error with the sudo impl that ships with darwin?
<Ilya_G>
I had to create a custom module that pulls from private GitLab folder and it works well in the same docker image on my machine, but when tested outside I get this madness :https://gist.github.com/ilyaGotfryd/b3d206f830627e65dcc398d0f166c621
<LnL>
grep HOME /etc/sudoers
alexherbo21 has joined #nixos
<clever>
butterthebuddha: its a config option, in /etc/sudoers i think, `man sudoers`
<LnL>
Defaults env_keep += "HOME MAIL"
<clever>
yeah, thats the one
<LnL>
butterthebuddha: ^ it's added explicitly by apple for some weird reason
<clever>
butterthebuddha: also, you will want to use `visudo` to edit it
<Ilya_G>
not sure what causes it to go to `checking substituter 'https://cache.nixos.org' for path '/nix/store/fr2vsw0ziizhb99m348rsygvzd7b5glq-log_adapter_engine-0.2.0'`
<butterthebuddha>
LnL: Can I arrange for nix-darwin to edit that for me :P
<Ilya_G>
It should just fetch and install application from GitLab
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo21 is now known as alexherbo2
<LnL>
butterthebuddha: not really in a safe way currently
kloenk has joined #nixos
<userr22>
Yeah, most people will be upset at anything touching the sudoers file for you :P
<LnL>
ilya_g: is $NIX_SSL_CERT_FILE or $SSL_CERT_FILE set?
<LnL>
userr22: yeah, I'm a bit scared to add support for it :p
<butterthebuddha>
fair enough
<eso>
gchristensen: it worked fine thx for help
<butterthebuddha>
I'll try to fix the nix-channel issue by manually readding the channels
<gchristensen>
great!
sbetrium has quit [Quit: sbetrium]
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<m15k>
when I do `nix-shell -p pkg` am I able to adjust the derivation from command line?
domogled has quit [Read error: Connection reset by peer]
domogled has joined #nixos
romildo has quit [Quit: Leaving]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chloekek has quit [Quit: WeeChat 2.6]
mexisme_ has quit [Ping timeout: 272 seconds]
opthomasprime has joined #nixos
drakonis has joined #nixos
<Ilya_G>
@LnL it is set. It is set to include internal cert for our GitLab as well. I think I am covered there. I feel the problem stems from the fact that nix-build is trying to fetch this package from cache.nixos. This packge is our in-house application that I built. It should be retrieved from internal GitLab
<Ilya_G>
repository
<Ilya_G>
Which it does no my machine no problem
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #79890 → readme: add link to community chat options → https://git.io/JvCHS
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvWYZ
<Ilya_G>
That URL in cache.nixos.org does not exist
<cole-h>
Is it a binary cache or just a repo?
domogled has quit [Ping timeout: 260 seconds]
m15k has quit [Ping timeout: 260 seconds]
Neo-- has quit [Ping timeout: 245 seconds]
chagra has joined #nixos
<LnL>
ilya_g: a full cert bundle or only the curstom thing?
<Ilya_G>
@LnL full cert bundle plus custom cert appended
<LnL>
nix still uses the cache to (check) and fetch all dependencies available upstream
<Ilya_G>
That would make sense but again this particular dependency is a python app installed as a service from our gitlab repository so it should not have any of this
<LnL>
can you verify with curl, It think something might be wrong with it
<Ilya_G>
@LnL could you be a bit more specific, sorry. I am not sure how to verify this particular thing with curl
<timor>
Hi. In a package for GHDL, the resulting binary `ghdl` requires a working compiler and linker at runtime, i.e. `gcc` should be a binary which works as expected. How can I do that? Do I use `wrap_program` around `ghdl`? If yes, what do I wrap it with?
o1lo01ol1o has quit [Ping timeout: 260 seconds]
chagra has quit [Ping timeout: 272 seconds]
chloekek has joined #nixos
chloekek has quit [Client Quit]
chloekek has joined #nixos
rune3055 has joined #nixos
<rune3055>
hey y'all! I'm trying to investigate wifi problems and i'm really not sure how tbh... My connection often drops and then I have to reboot because it won't connect back to the wifi
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kloenk has joined #nixos
<pie_[bnc]>
did i make some dumb mistake here; fetchFromGitHub { owner = "sismics"; repo = "docs"; rev = "a7423caeb1464254e2e42d599ee6e1fddfefe978"; sha256 = "87428fc522803d31065e7bce3cf03fe475096631e5e07bbd7a0fde60c4cf25c8"; }
stzsch has joined #nixos
<pie_[bnc]>
or is fetchfromgithub broken right now or something
butterthebuddha has joined #nixos
<pie_[bnc]>
that sha is fake btw
<clever>
pie_[bnc]: what error does it fail with?
<pie_[bnc]>
im not sure :I seems to hang in nix repl with :b
<cole-h>
If it doesn't fail to build, maybe the sha256 is the same as another package, and so fetches whatever has the specified hash?
<cole-h>
tbh I usually just replace the hash with all 0s
rune3055 has quit [Remote host closed the connection]
<pie_[bnc]>
tbh i wish this was less of a pain, i need something that copies the correct amount of zeros in
<clever>
pie_[bnc]: how big is the repo? how slow is your network?
<emily>
timor: you'd override PATH with wrapProgram
<clever>
pie_[bnc]: 52i0<escape> in vim
<pie_[bnc]>
shouldnt be a big repo
<emily>
timor: however, I think it's probably fine to just leave the runtime dependency implicit in this case... in the same way that gcc requires a linker in the PATH
fenedor has joined #nixos
<pie_[bnc]>
oh wait maybe its not a fake hash, but anyway
<emily>
the other FPGA tools mostly implicitly require the other toolchain glue and wrapping them seemed like it wouldn't be worth it
<emily>
but I'm not sure what the exact way ghdl uses gcc is
<gchristensen>
lol: /nix/store/cvcvljr48j40kijxjgyrdsr7sn1clny8-nixos-enter/bin/nixos-enter: line 72: /dev/stderr: No such device or address
<clever>
pie_[bnc]: i always switch to insert mode, and zero out a few digits, so its obviously wrong
<timor>
emily: what would I set PATH to, then?
<{^_^}>
[nixpkgs] @jonringer merged pull request #79790 → dnnl: run tests, fix install tree → https://git.io/JvCqt
<{^_^}>
[nixpkgs] @jonringer pushed commit from @bhipple to master « dnnl: run tests, fix install tree »: https://git.io/JvW31
<emily>
timor: you'd want to use the options to add ${gcc}/bin to PATH, I guess, but I'm not sure ${gcc} specifically is right there, because all the compiler stuff is tangled up in stdenv in ways I don't fully understand
<emily>
timor: every nix-shell environment / package build gets stdenv by default, so for uses of ghdl in packages there's no need to wrap it at least
<emily>
and the convention with other compiler tools doesn't seem to be to bake stdenv paths in
boxscape has joined #nixos
<emily>
so I'm not sure it's the correct thing to do
<pie_[bnc]>
ok looks like the clone is just hella slow for some reason
<pie_[bnc]>
(repo is not big)
<clever>
pie_[bnc]: github randomly does that
<timor>
emily: So I guess I'd have to do some ghdl_wrapper semantics for interactive use...
fendor has quit [Ping timeout: 265 seconds]
domogled has quit [Quit: domogled]
<emily>
timor: how does it invoke gcc in interactive scenarios? it might be best to bake it after all in if it's designed as an overall build tool
<emily>
I haven't used ghdl personally so I'm not familiar
<timor>
emily: I am currently trying to find out.
<emily>
(I was considering packaging it and ghdlsynth for yosys earlier though, so I'm happy to see progress on that!)
<timor>
emily: Don't get your hopes up too high. Getting a working ada compiler in that whole process is not pretty...
ryanartecona has quit [Quit: ryanartecona]
<emily>
oh, is GNAT not in nixpkgs already? that's sad :(
<{^_^}>
[nixpkgs] @jonringer pushed commit from @Taneb to master « metamath: 0.178 -> 0.180 »: https://git.io/JvW3A
butterthebuddha has quit [Read error: Connection reset by peer]
<gchristensen>
clever: did systemd do something recently to change /dev/stderr inside a unit? my just-do-it like thing is failing, with nixos-enter: line 72: /dev/stderr: No such device or address which seems ... strange
<cole-h>
Yeah, systemd gives interactive sessions the ability to reboot without prompting, it apperas...
<cole-h>
s/apperas/appears
<clever>
cole-h: i think its polkit actually
<cole-h>
You're right
NoctisLa1 has joined #nixos
<timor>
emily: Well, I did get two of the GHDL backends to work already. It's just that I think the way the derivation uses GNAT is not really fit for nixpkgs...
<qasaur>
Hello, I have a quick question which I can't seem to find the solution for, am quite new to Nix and NixOS. Does pkgs.nixosTest exist anywhere in the nixpkgs source tree and if so how is it documented anywhere how VM tests declared in a package can be executed by the NixOS test suite? I read this
<clever>
that creates a pid namespace (and others), and mounts a new /proc for you
<clever>
Just before running the program, mount the proc filesystem at mountpoint (default is /proc). This is useful when creating a new PID namespace. It also implies creating a new mount namespace since the /proc mount would otherwise mess up existing programs on
<clever>
so that new /proc will respect the new pid namespace
<gchristensen>
this is very strange
<clever>
actually, now that i think of it, `ps aux` reads /proc, so only if /proc is mounted, will it respect the sandbox
akapaka[m] has joined #nixos
<clever>
if you didnt `--mount-proc`, you would be in a pid namespace, but `ps aux` wouldnt agree with the actual pid's
<gchristensen>
interestingl, running sudo NIXOS_INSTALL_BOOTLOADER=1 nixos-enter --root "/mnt" -- /run/current-system/bin/switch-to-configuration boot again has worked -- maybe there is a race condition I'm not accounting for?
<clever>
and is that error, caused by bash turning 2>&1 into /dev/stderr? heh
<clever>
i think systemd generates a ...
<gchristensen>
like do I need to add in an additional udevadm settle or something, maybe
<clever>
unix socket (via socketpair()?), and ties it to stdout/stderr of the service
<clever>
and if the main pid for the service exits, it might close the sockets
<clever>
but then, how are you even seeing the logs?
<clever>
and its the exact same socket for both handles
<worldofpeace>
qasaur: nixosTest is a function in all-packages.nix. and what do you mean by the NixOS test suite? Are you trying to add a test in nixpkgs for a PR and want it to be ran for a package too?
<gchristensen>
clever: I think I will update nixpkgs (it is a bit out of date at this point) and also add a `udevadm settle` before I run nixos-install ...... juuuust in case.
<rnhmjoj>
qasaur: i'm not familiar with pkgs.nixosTest but it looks like an alias to the `import ./make-test.nix`, it's defined in pkgs/top-level/all-packages.nix. the documentation on how to write tests is here https://nixos.org/nixos/manual/index.html#sec-writing-nixos-tests
<clever>
gchristensen: this is the info that lsof reads, but lsof doesnt understand namespaces, so it can be tricky to read the sockets inside a container
<tilpner>
alienpirate5: I don't do much with php, but I have nginx setup. Do you have any specific problems? Here's a collection of modules that use phpfpm, which you probably want for nginx: https://search.tx0.co/?q=phpfpm&i=nope&files=&repos=
claudiii has joined #nixos
<rnhmjoj>
qasaur: also a note: the current test driver (writter in perl) has recently been replaced with a new one in python. so if you intend to write new tests you better start using the python one. the interface is mostly unchaged though.
wildtrees has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
wildtrees has joined #nixos
kloenk has joined #nixos
Carp has quit [Quit: WeeChat 2.7]
orivej has quit [Ping timeout: 265 seconds]
NoctisLa1 has quit [Read error: Connection reset by peer]
<joepie91>
pie_[bnc]: honestly I have no idea, but any time "JS tools invoked by Java tools" comes up in #Node.js it ends up being a lovecraftian horror
<pie_[bnc]>
joepie91: :P yeah but that doesnt help
<pie_[bnc]>
heh
<joepie91>
so maybe you'll get lucky, but I'd prepare for headaches :)
<pie_[bnc]>
well, im going to give up pretty soon since i dont ahve alot of time
erictapen has quit [Ping timeout: 268 seconds]
sbetrium has joined #nixos
<pie_[bnc]>
but i basically wasted all day figuring out something about tomcat, which ive never used, and the fact that figuring that out was unnecessary :p
<pie_[bnc]>
joepie91: so, id node_modules exists npm will be happy?
<pie_[bnc]>
s/id/if
<joepie91>
pie_[bnc]: well, you wouldn't run npm at all, so whether it's happy is irrelevant
<joepie91>
the only thing that matters is whether Node is happy, and Node is fine with node_modules existing by any means
<joepie91>
what exactly put it there, it doesn't care about :P
replikvlt has joined #nixos
<replikvlt>
hello, who is an icecat maintainer?
<pie_[bnc]>
joepie91: id run it because i dont want to figure out how to build this thing myself :P
<pie_[bnc]>
joepie91: or is it simpler than i dont know?
<gchristensen>
replikvlt: not me, but what's up?
<replikvlt>
there was new version 68 availiable but on 19.09 v60 is availiable
qasaur has joined #nixos
<joepie91>
pie_[bnc]: well npm needs network access and dynamically fetching packages is a no-no in nixpkgs :P
<joepie91>
the various *2nix tools just take the package.json/package-lock.json/yarn.lock, then precompute Nix expressions with hardcoded tarball URLs
<joepie91>
and the plumbing to put everything in the right place
<pie_[bnc]>
yeah, you havent lost me yet
<qasaur>
worldofpeace sorry for the delay, was AFK, yes I'm trying to write tests for a package but it is not for distribution in nixpkgs
<joepie91>
yarn2nix has been easiest in my experience, but does require a yarn.lock I think
<qasaur>
rnhmjoj thanks, that answered my question I think, seems like github search didn't pick up nixosTest in all-packages.nix
<joepie91>
(yarn2nix can be relatively trivially used as part of an expression)
<pie_[bnc]>
joepie91: but this maven script calls npm install. so can i not tell npm "no. bad. dont use the internet, node_modules is right <here>"?
<joepie91>
(that is, it will generate the Nix-y plumbing from a yarn.lock at runtime)
<joepie91>
pie_[bnc]: I mean, probably, but why not just rip out the npm invocation entirely
<joepie91>
and put the stuff where npm would have otherwise put it
<joepie91>
but with Nix
<rnhmjoj>
qasaur: all-packages is really huge, probably github turns off the indexing for files that large
<gchristensen>
qasaur: search.nix.gsc.io or a local grep / rg is typically needed
<joepie91>
npm literally doesn't do anything other than "take package.json and optionally lockfile, resolve stuff in there, build a node_modules with it"
<joepie91>
if you already have the node_modules, npm serves no purpose
<qasaur>
rnhmjoj: yeah, I figured
<pie_[bnc]>
joepie91: sorry, i keep talking past you; i dnt know how to build something without npm
<qasaur>
gchristensen didn't know about search.nix.gsc.io! thanks
<gchristensen>
yep!
<pie_[bnc]>
and using yarn2nix or whatever means i have to redo the maven thingy somewhat
<pie_[bnc]>
not that i wont, thats just how im understanding it so far
<pie_[bnc]>
OH OK. <joepie91> npm literally doesn't do anything other than "take package.json and optionally lockfile, resolve stuff in there, build a node_modules with it" <joepie91> if you already have the node_modules, npm serves no purpose
timor has quit [Ping timeout: 272 seconds]
<pie_[bnc]>
joepie91: but like how does node_modules get used after that
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<qasaur>
also another question... what are the requirements for submitting a package and module to nixpkgs? It seems like submitting a package is pretty straight-forward, but are there any guiding principles for modules as well or does anything go_
<qasaur>
?*
jonten has quit [Ping timeout: 240 seconds]
<replikvlt>
So yeah, i umm am not sure if you didn't lose my message in all this activity. Basically there is a newer version of icecat 68 while nixos 19.09 has only older icecat 60
<cole-h>
20.03 branchoff was the other day, right?
ryanartecona has joined #nixos
<cole-h>
Or does branchoff only happen once it is fully released
linarcx has quit [Ping timeout: 268 seconds]
<gchristensen>
it was branched off
<gchristensen>
but not yet released
<pie_[bnc]>
joepie91: so im rereading what we just discussed (my attention is very iffy the last two days..), node_modules is what node needs and if i got it thats fine, ok.
<joepie91>
pie_[bnc]: yeah
<joepie91>
pie_[bnc]: and node_modules gets used because Node.js is hardcoded to search the path (recursively ascending) for a node_modules
replikvlt has quit [Remote host closed the connection]
<joepie91>
and module folders therein
<joepie91>
it's totally disconnected from npm, they just operate on the same 'spec'
<pie_[bnc]>
joepie91: so does npm install call some kind of `node build` or somethng or what
<pie_[bnc]>
because i think this is supposed to use grunt, whatever that is, to build some stuff
<pie_[bnc]>
and not actually run node
<joepie91>
pie_[bnc]: there is no concept of 'building' in Node
<joepie91>
it just runs Node, Grunt is an application written in JS that runs in Node
<pie_[bnc]>
uhuh.
<pie_[bnc]>
ok
<joepie91>
so it's basically doing like `node node_modules/.bin/grunt .` or something like that
<pie_[bnc]>
ok theres a gruntfile. i guess i should look at that to get a clue
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<joepie91>
Node is just the JS runtime
<pie_[bnc]>
right
<joepie91>
the Gruntfile defines project-specific build tasks for Grunt to carry out
<joepie91>
(caution: Gruntfiles may cause headaches, desperation, and loss of sleep)
<cole-h>
No problem. It's just a comment saying "remove after 20.03 branchoff"
NoctisLabs has quit [Read error: Connection reset by peer]
NoctisLa1 has joined #nixos
<evanjs>
are kernel .config files not necessarily usable with configfile for nixos kernels? I tried removing the =s and etc but there are still plenty of options that aren't recognized IIUC
<evanjs>
clever: didn't think about it but `readFile ./config` might work in that case. now to massage the config a bit...
NoctisLa1 has joined #nixos
zeta_0 has joined #nixos
infty has quit [Quit: leaving]
<evanjs>
.... okay yeah derp. I think it's related to my initial issue... which was just having configfile in the wrong place :D structuredExtraConfig + configfile seem to both let me compile now... hopefully that's all I will need
<clever>
i still need to figure out whats wrong with my config, the one i linked hangs on boot
infty has joined #nixos
<evanjs>
luckily I'm just referencing whatever we've been using for other stuff so far :P
<clever>
i do have a .config that works, but i want to keep the overrides minimal
<clever>
i can diff the config nix generates, and the known-good one
qasaur has quit [Remote host closed the connection]
NoctisLabs has joined #nixos
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<cap_sensitive>
How to I configure firewall to accept igmp protocol from everywhere?
ixxie has quit [Ping timeout: 268 seconds]
<gchristensen>
clever: I *think* my problem started when I set systemd.journald.forward_to_console on the kernel commandline, which looking at systemd.exec might change the default StandardOutput / StandardError values?
<clever>
gchristensen: that sounds like it might break things
NoctisLa1 has quit [Ping timeout: 272 seconds]
<gchristensen>
very weird, I would have assumed setting that would have not changed run-time behavior of programs, beyond perhaps additional buffering of writing to the console
<lovesegfault>
I see, so only the way I had in mind :P
magnetophon has quit [Ping timeout: 265 seconds]
<lovesegfault>
I wish `mkService` (or w/e these actually use to be declared) exposed a `autoStart` for everything; but maybe that'd be too many new options
jco has quit [Quit: WeeChat 2.7]
<clever>
lovesegfault: by default, it doesnt auto-start, its up to each module to set wantedBy = [ "multi-user.target" ]; to make it auto-start
dongcarl has quit [Read error: Connection reset by peer]
<lovesegfault>
Oh, I see
magnetophon has joined #nixos
leotaku has quit [Ping timeout: 240 seconds]
<gchristensen>
clever: so the service has StandardOutput=journal; StandardError = inherit; and that inherit means stderr is duped to stdout. I wonder if /dev/stderr reflects that ...
<clever>
gchristensen: check the /proc/pid/fd/ for the service, once its running
u0_a121 has quit [Read error: Connection reset by peer]
<pie_[bnc]>
joepie91: i guess its kind of ok that i can put node_modules next to package.js, i was expecting there be no way to do anyhting except have some globla folder or something
<cransom>
i'd be ok with bulitins.exec when i get to do it. less ok if nixpkgs had to do it.
<gchristensen>
it is a complete and total misfeature
<pie_[bnc]>
meanwhile: gchristensen running around, is arms full of builtins, dropping them all over the place, trying to hide impure builtins everybody
<pie_[bnc]>
*from everybody
<pie_[bnc]>
*his arms
<pie_[bnc]>
you saw nothing!! nothing!!
<gchristensen>
I mean I can't stop you from putting beans up your nose but that is a bean you really don't want up your nose
<pie_[bnc]>
:D
<andi->
gchristensen: why aren't we removing it then and let those that need it add it via a plugin? ;)
<clever>
remember how homer accidently left one crayon up his nose? :P
<pie_[bnc]>
(also, builtins.memoise?)
<pie_[bnc]>
clever: wait, did he fit more than two?
<gchristensen>
andi-: please yes
* andi-
works on a PR
<clever>
pie_[bnc]: he had 4 or 5 up his nose, then sneezed and most went flying, including out his ears
<pie_[bnc]>
joepie91: holy crap the build didnt fail!
<pie_[bnc]>
now if only i could figure out why prebuild doesnt work so i could patch upstream in my nix code...
<xavierzwirtz[m]>
is there a way to fake the existance of a path in /var/?
<gustavderdrache>
npm doesn't run scripts if it thinks you're running as root, and i think the nix builder has a root UID when it runs
jojojojojo has quit [Ping timeout: 240 seconds]
<xavierzwirtz[m]>
mssql-server wants to store some data in /var/opt/mssql/system/, but nixos wont let it do that
<gchristensen>
clever: could I get some more ... hands-on ... help from you? like, could I give you access to this box for you to play with?
<clever>
xavierzwirtz[m]: config files, cmdline args, or libredirect
<xavierzwirtz[m]>
clever: thx
jojojojojo has joined #nixos
jojojojojo has quit [Remote host closed the connection]
<clever>
gchristensen: can you do `strace -ff -o logfiles -s 3000 nixos-install ...` and then tar up the logfiles?
<gchristensen>
sure
jonten has quit [Ping timeout: 260 seconds]
jojojojojo has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to release-20.03 « quilter: 2.1.0 -> 2.1.1 »: https://git.io/JvWCN
<gchristensen>
clever: not sure you saw it in the other channel, but I've developed this beauty: mount | grep /mnt | cut -d' ' -f3 | tac | xargs -n1 umount; zpool list -Ho name | xargs -n1 zpool destroy; find /dev/disk/by-path -mindepth 1 -not -name '*-part*' | xargs -n1 wipefs -af
<clever>
lol
<gchristensen>
"scariest command to be shared in #nixos" for $500
chloekek has quit [Ping timeout: 268 seconds]
<gchristensen>
it is a lot of files, haha
<pie_[bnc]>
> zpool destroy
<{^_^}>
undefined variable 'zpool' at (string):277:1
<pie_[bnc]>
nopeeee
<gchristensen>
I need to travel in a few minutes. I'll tar them up and upload, and then back in like 30 minutes
<xavierzwirtz[m]>
clever: does libredirect work if elf is linked against stdenv.cc.cc instead of stdenv.glibc?
konobi has joined #nixos
<clever>
xavierzwirtz[m]: libredirect should work on any dynamic library, its using LD_PRELOAD to overwrite the open() function
gustavderdrache has quit [Quit: Leaving.]
<xavierzwirtz[m]>
I must be doing something wrong then
<gchristensen>
clever: nixos@139.178.88.61 -- you have passwordless sudo. the strace output is in /wtf. doinstall.service runs nixos-install. an override at /run/systemd/system/doinstall.service.d/10-overrides.conf tells it to run /doinstall-start intsead of the /nix/store version so that I can make edits and try again and again quickly
<gchristensen>
clever: confirm you can log in?
<clever>
gchristensen: i have the powah!
<gchristensen>
clever: also: don't hesitate to run that scary "blow away all the disks" command in the bash history and re-run doinstall
<gchristensen>
great! I'll be back in like 30 min, thank you <3
plutes has quit [Remote host closed the connection]
sbetrium has quit [Quit: sbetrium]
lovesegfault has quit [Quit: WeeChat 2.7]
mexisme_ has quit [Ping timeout: 260 seconds]
<benley>
it's been a long time since I used these tools, but I bet you could make pbuilder work on nixos with a bit of hacking
<benley>
iirc debootstrap is available and that covers the majority of it, right?
sbetrium has joined #nixos
<benley>
inside a fhsUserEnv would be easier in some ways but I suspect cowbuilder might not work there
<dashkal>
This is more general *nix than nixos, but does anybody know where to finx urxvt docs for keybinding to eval: commands? The man page makes no mention of it, but I'm using it.
<dashkal>
Searching just keeps me finding nuggets of wisdom to use it, but it's like a piece of information with no source.
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
plutes has joined #nixos
<Orbstheorem>
benley: I don't think fhs would be the way to go since I'm packaging _for_ debian. sbuild may require an fhs to work though
<Profpatsch>
don’t use env, and especially don’t use tmp files
<pie_[bnc]>
Profpatsch: wat, no passwords over ioctl?
<pie_[bnc]>
yeah i saw a list and my first thought was "hm socket."
<Profpatsch>
you can probably also hand a “secondary” stdin to a process if you want a separate channel. I’d have to experiment with that
<clever>
Profpatsch: when something like sudo or ssh asks for a pw, it opens /dev/tty, which bypasses any redirections, and goes to the tty that spawned it
<Profpatsch>
clever: talking non-interactive here
<clever>
ah
plutes has quit [Remote host closed the connection]
Ridout has joined #nixos
kvda has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/JvWlE
<AmandaC_>
So uh. I just did my weekly unstable rebuild, and It seems NixOS jumped to 5.4 -- which has somepretty severe issues with i915 (which I need)
<AmandaC_>
How can I roll back to 4.13.x or whatever I'm on in the previous generation
<Orbstheorem>
pie_[bnc]: I got super curious about your comment on IOCTL, and discovered that luks uses Netlink AF_ALG to send the password :D
NoctisLabs has quit [Read error: Connection reset by peer]
<AmandaC_>
So I'd do `boot.kernelPackages = pkgs.linuxPackages_4_19;` ? I'm kinda overwhelmed by the number of packages found in `nix search linuxPackages`
<tokudan>
AmandaC_, yeah, that should do it
<pie_[bnc]>
Orbstheorem I was joking, I dont even know how an ioctl works or what it is exactly, but awesome
<pie_[bnc]>
so thanks for the link
<pie_[bnc]>
which is funny because i was just wondering earlier today what netlink is
<pie_[bnc]>
clever: whats the easiest way to modify the results of a ferchFromGithub and get a derivation i can pass to src = ? runCommand?
<Orbstheorem>
fun fact: I've used ioctl in the past and considered it to be safe, I wouldn't have ever rolled crypto without reading the doc, but yet another instance of I didn't know how much I didn't know
<clever>
pie_[bnc]: probably
<pie_[bnc]>
clever: actually, i kinda want to do mkderivation so i can use patches=
<pie_[bnc]>
but i guess i can just do it with runcommand
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fenedor has quit [Read error: Connection reset by peer]
sbetrium has joined #nixos
kvda has joined #nixos
jbbr[m] has joined #nixos
sbetrium has quit [Quit: sbetrium]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
sbetrium has joined #nixos
jojojojojo_ is now known as jojojojojo
plutes has joined #nixos
m15k has quit [Remote host closed the connection]
sbetrium has quit [Quit: sbetrium]
<aminechikhaoui>
Hi in https://nixos.org/nix/manual/#chap-distributed-builds it says if there is an issue such as "bash: nix-store: command not found" then you need to ensure that the PATH of non-interactive login shells contains Nix.
<aminechikhaoui>
what magic should that be on osx, which exact file should I update ?
ng0_ has quit [Quit: leaving]
<clever>
aminechikhaoui: ~/.bashrc
<aminechikhaoui>
nix ping-store to the builder seems to succeed btw
<aminechikhaoui>
but when trying to run with --builders it complains about nix-store not found