<{^_^}>
[nixpkgs] @fpletz pushed commit from @petabyteboy to release-19.09 « dovecot_pigeonhole: 0.5.8 -> 0.5.9 »: https://git.io/Je7bE
jjakob has quit [Ping timeout: 248 seconds]
jgt2 has joined #nixos
dbmikus_ has joined #nixos
mbrgm_ has joined #nixos
drakonis has joined #nixos
mbrgm_ is now known as mbrgm
mbrgm has quit [Ping timeout: 248 seconds]
dbmikus has quit [Read error: Connection reset by peer]
jgt2 has quit [Ping timeout: 248 seconds]
dbmikus__ has joined #nixos
<duairc>
This probably isn't NixOS specific, but there's a route that keeps getting added to my routing table which is causing problems. I definitely don't have it in any config files anywhere. What could be adding it?
jjakob has joined #nixos
dbmikus_ has quit [Ping timeout: 245 seconds]
<duairc>
It looks like this: acbd:efab:cdef:abcd::/56 dev eth0 proto kernel metric 256 expires 2582235sec pref medium
pbb has joined #nixos
<duairc>
The "expires" is particularly suspect
<clever>
duairc: that happens when you get route advertisement packets from the "router"
<duairc>
Ah, I thought I had disabled RA
<clever>
duairc: that is also why ive still not gotten onto N band wifi, lol
<clever>
one of the routers i purchased, and repurposed into an access point, refused to stop sending RA packets
<evanjs>
If I'm modifying a weird custom make system to work with nixos (in this case, with the OpenFOAM project), is it best to substituteInPlace all the weird variables they use, or export them before they're used in my expression?
<pie_>
i need to sleep so bad x) ill go to sleep after this]
drakonis has quit [Ping timeout: 245 seconds]
dongcarl has joined #nixos
<pie_>
clever: is the dep string the attr name
<clever>
pie_: i believe so
<pie_>
would make sense well see in a sec
Intensity has joined #nixos
ninegrid has joined #nixos
shibboleth has quit [Quit: shibboleth]
vld has quit [Ping timeout: 268 seconds]
<duairc>
clever: I still haven't gotten to the bottom of this, but for what it's worth, systemd.network's man page says that it disables the kernel's RA implementation and uses its own userspace one, so those kernel settings don't matter
<duairc>
If it's is RA that's causing this, I wonder is there some log file somewhere that would log such things?
dongcarl has joined #nixos
<clever>
duairc: id start with tcpdump to confirm that
<jtojnar>
lovesegfault I meant for the line to be applied in the file linked in the commit
simplify has left #nixos [#nixos]
mexisme_ has joined #nixos
<jtojnar>
s/commit/comment/
<jtojnar>
s/applied/changed/
mexisme has quit [Ping timeout: 248 seconds]
<duairc>
clever: I don't see any RA packets... is there something I can do to trigger one?
jgt2 has joined #nixos
<clever>
duairc: they are sent out at a regular interval, so it may take a while to see one
day|flip has joined #nixos
<duairc>
Okay, I'll wait so
Heirlung has quit [Ping timeout: 265 seconds]
fragamus has joined #nixos
<day|flip>
i'm having a weird issue. yes im using a window manager and not a desktop. but I can't seem to change any icon theme. in lxappearance. I can change normal gtk theme. but icon theme all stay the same. so far. I have adwaita, elementary, and numix square install using environment.systemPackages = with pkgs; [ foo ] in /etc/nixos/configuration.nix. im running out of idea on why they cant change
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Je7AL
<duairc>
clever: I think I might've figured it out. systemd-networkd does indeed disable the kernel's RA, and it is respecting my IPv6AccceptRA=no setting. However, I load the ipv6 kernel module in the initrd, because I need networking to decrypt my hard drive on boot. It must be then that the route gets added.
mexisme_ has joined #nixos
<clever>
ahh
<clever>
and then it has to expire naturally, based on the expire listed in `ip route`
<clever>
and nothing will renew it
gustavderdrache has quit [Quit: Leaving.]
Rusty1 has quit [Quit: Konversation terminated!]
werner291 has quit [Remote host closed the connection]
<duairc>
I took out ipv6 from the boot.initrd.kernelModules to test this hypothesis, and now I don't have any initrd networking, not even IPv4! Oops. Though this does sort of solve one of the mysteries I was having yesterday
<duairc>
I guess I'll just in a startup script a command that removes that particular route
<duairc>
Because if we're right, then it's not going to come back
EdLin has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<clever>
duairc: it might be that ipv6 was pulling in other stuff via its deps, that you needed
<clever>
duairc: check `modinfo ipv6`, and try adding just its deps to boot.initrd.kernelModules?
shibboleth has quit [Quit: shibboleth]
<{^_^}>
[nixpkgs] @mmilata opened pull request #75850 → libreoffice: merge -still and -fresh into common derivation → https://git.io/Je7A0
<duairc>
Yeah, it seems like it. Yesterday/this morning it was udhcpc, the networking wouldn't come up without that, even though I was doing everything statically. Then at some point it started working, I guess that was when I added ipv6, which must have done some other magic
<duairc>
I'm actually quite happy to have ipv6 in the initrd, this was just to test a hypothesis, but I'm quite sure it's correct.
<duairc>
I think I'll add the command to remove said route at boot time. If my routing stops working in 30 days I'll know my hypothesis was incorrect.
fendor_ has joined #nixos
dbmikus__ has quit [Ping timeout: 248 seconds]
fendor has quit [Ping timeout: 268 seconds]
tjgee has quit [Quit: THIS CONFERENCE IS PROMOTING CIVIL DISOBEDIENCE]
<bt`>
Hello, I've run into a issue with my install http://0x0.st/z0Mc.log It seems rather odd that xf86-video-intel would not compile considering how rarely it updates, but I'm really struggling to find any configuration error that might lead to this. I'm running on a 32bit system which might in some way be relevant.
day|flip has quit [Remote host closed the connection]
<monokrome>
It does an flock followed by an fwrite to the tarball, but the fwrite fails saying it's waiting on a lock
<infinisil>
bt`: Can confirm that the 32 bit version indeed doesn't compile
<clever>
monokrome: can you paste those 2 lines?
<monokrome>
it seems like I have a hanging process from 11 hours ago running nixos-rebuild for some reason actually
<monokrome>
I think that'd explain it?
<monokrome>
ya it worked after I killed that proces
* monokrome
facepalm
<clever>
monokrome: as i expected, the lock wasnt on-disk but was in-kernel
<bt`>
infinisil: thank you, I'll try to track down the issue and make a patch, although I'm rather new to Nix; hopefully it's not a upstream issue, although it seems like it could be.
<duairc>
/etc/nix/nix.conf is statically generated from my configuration.nix, but there doesn't seem to be a NixOS option for setting the secret-key-files setting in nix.conf
gyroninja__ has quit [Read error: Connection reset by peer]
<bt`>
infinisil: Sorry that took a moment, I don't have easy access to a web-browser currently, I'm using Emacs on TTY. Thanks for finding that patch. I have to learn a little bit more about nix to apply it, but after I do I'll try to learn how to suggest it gets merged.
<DigitalKiwi>
soon there will be glitter on everything i own ;_;
gyroninja__ has joined #nixos
<infinisil>
bt`: Well you do need a browser to make a github PR
<infinisil>
bt`: I can make a PR if you want
<monokrome>
I think you can make them w/ the `hub` CLI?
<bt`>
infinisil: That would be really helpful, I'm not as competent at CI these things as I would like to be, I just sftp put my stuff to my server. :p
Henson has joined #nixos
<bt`>
That sentence doesn't make sense, but the point was I'm not competent and that's a little too clear.
<infinisil>
Got it :)
<infinisil>
I'll tell you in a bit how you can use the patch in your system
<bt`>
Thanks again, I really love NixOS so far and I'm really looking forward to using it more.
<infinisil>
:D
<bt`>
:)
<Henson>
any tips on using a nfs client with NixOS? Do I install nfs-utils, or do I need other things for the rpc-statd, mountd, and others? I looked in NixOS options and found stuff for the NFS server, but not the client. The NixOS manual also wasn't any help.
vld has joined #nixos
<clever>
Henson: boot.supportedFilesystems = [ "nfs" ]; and nixos will setup all nfs client stuff for you
<Henson>
clever: thank you. Is that written down somewhere? I looked in the NixOS Wiki under NFS and in the NixOS manual and didn't find it?
<clever>
Henson: if you set fileSystems."/something" = { fsType = "nfs"; device = "server:/something"; };, then nfs will be added to boot.supportedFilesystems automatically
<Henson>
clever: right. But I feel like there are a bunch of things that could be added to the NixOS user guide or Wiki. There are so many things I've wanted to do that I need to come on here and ask about because I can't find them anywhere else. Should I sign up for the NixOS Wiki and add stuff whenever I learn something new?
<clever>
Henson: yeah, that sounds like a good idea
<duairc>
I've tried etc.environment."nix/nix.conf".source, but it seems to be ignored
<infinisil>
bt`: Okay add this to your configuration.nix: `nixpkgs.overlays = [(import ./fix-intel-overlay.nix)]` and download https://paste.infinisil.com/Qd8cadDY1g.nix to ./fix-intel-overlay.nix
<infinisil>
This is the patch in overlay form from my PR #75852
<Henson>
clever: ok. The front page says unofficial. After reading the history of the NixOS Wikis on there, would it be better to contribute to the official documentation instead of a Wiki?
tbenst_ has joined #nixos
<clever>
Henson: cant hurt to contribute to both at once
<bt`>
infinisil: Okay, rebuilding now, I'll report back in a moment.
das_j has quit [Remote host closed the connection]
das_j has joined #nixos
cryptomonad has joined #nixos
bt`` has joined #nixos
<bt``>
infinisil: That worked perfectly! Thanks so much!
<infinisil>
:D
<bt``>
I should be able to get my system completely sorted by the end of the day, also I wouldn't be surprised if this helps out some of the other people computing on dinosaurs still. :)
<infinisil>
Hehe, I think you're the first person I see still using a 32bit machine
<clever>
bt``: the last dinosaur i retired was 64bit capable, but lacked some (now common) sse extensions
<clever>
bt``: that resulted in software i was working on, crashing due to illegal instructions
<bt``>
Yah, with the exception of some 32bit arm systems, which don't really exist anymore either, I don't know of anyone else who runs one.
<bt``>
I'll probably upgrade in a few years :p
<clever>
bt``: i'm currently working on rpi firmware stuff, and using 32bit mode on an rpi3, despite it being 64bit capable
<samueldr>
there's way more 32 bit arm platforms than you may expect
<samueldr>
android devices with 64 bit capable CPUs shipped with 32 bit systems until recently
<clever>
samueldr: got my msg in #nixos-aarch64 ?
<clever>
rasbian still uses armv6 userland, so they can ship a single distro for every model of rpi
<infinisil>
samueldr: I expected 0, any devices at all is infinite percent more than I expected :)
<bt``>
clever: samueldr: That's interesting, I wasn't aware how much they were holding on in software. I just know some people with RPI 2's and some A20 devices that they like.
<samueldr>
that's not even because of android, reasons are actually unknown
<bt``>
weird
<samueldr>
I would bet on those OEMs keeping the same toolchain for their different lineups
<gustavderdrache>
i was also gonna guess SoC drivers
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
<samueldr>
not even!
<gustavderdrache>
weird
aw has joined #nixos
<samueldr>
yes!
<clever>
i can at least see why with rasbian, more noob friendly if you can just download any image, and it work on any pi
spacefrogg has joined #nixos
<samueldr>
I had a 2015 android phone that ran a 64 bit OS, then "upgraded" (forced by battery expanding issues) to a 2016 model from another OEM, and was surprised by the 32 bit userland
<clever>
tpham: -p can take multiple arguments at once
<tpham>
just cmake .. && make -j9
<tpham>
Oh, thanks. I didn't know that
<tpham>
I thing I should add boost to another list, not buildInputs
<clever>
pretty sure boost belongs in buildInputs
<clever>
and all -p does, is put those strings into the buildInputs
<tpham>
:(
felixfoertsch23 has joined #nixos
<tpham>
This is the result of find_package(boost) with nix-shell:
<tpham>
-- Found Boost: /nix/store/3dzmwvwwmg9l2qhz797fwpvzq5qy8n98-boost-1.69.0-dev/include (found version "1.69.0") found components: log system filesystem program_options date_time log_setup thread regex chrono atomic
felixfoertsch has quit [Ping timeout: 250 seconds]
<dansho>
what is the .drv path hash computed from?
drakonis has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
<clever>
dansho: the set of every key/value pair passed to builtins.derivation
bvdw has joined #nixos
<dansho>
clever: is builtins.derivation the same function as derviation?
<clever>
dansho: yeah, its and its the real primop behind things like stdenv.mkDerivation
<dansho>
clever: i know of the required args (name, builder, system), is there a way to see what the other args are?
<dansho>
or is it just whatevers in `drvAttrs` in the resulting set?
<clever>
dansho: all args (including the required ones) just become env vars during the build, you can also run `nix show-derivation /nix/store/foo.drv` to see the whole set
<clever>
since they just become env vars, its a bit hard to list every single one, you have to read all of the shell scripts to see what they look for
<dansho>
so it's just those attrs in "env" that get hashed?
tsrt^ has joined #nixos
<clever>
yeah
tsrt^ has quit [Read error: Connection reset by peer]
<clever>
dansho: env, args, builder, and system
<clever>
not sure why args is absent from env
<dansho>
i see "out" in "env"
<clever>
out isnt part of the hash
<clever>
but is rather, based on that hash
<clever>
hmmm, wait, other way around
<clever>
one min
<dansho>
well that was going to be my next question, is the outPath just the hash of the .drv file with the output path set to ""?
<clever>
i believe the way it works, is that outpath, is a hash of the attrs to builtins.derivation (and some other constants)
<clever>
and then the hash-name.drv, is based on the hash of its own contents
<clever>
dansho: which then uses addTextToStore, from store-api.cc
<clever>
so the type from earlier, will be "text:<r1>:<r2>", with a list of references
<clever>
i think references, is everything under inputSrcs and inputDrvs
day|flip has joined #nixos
<dansho>
clever: ${hash2} then is the hash of the .drv file, i think? (in the case of a derivation)
Rusty1 has quit [Quit: Konversation terminated!]
<clever>
dansho: yeah
<clever>
dansho: makeOutputPath generates a similar string, based on the contents of the drv and the output name (.out .dev .lib), to create the hash in $out
<day|flip>
i kind of figure out how to change my icon theme. but needed to edit dconf-editor to do so. /org/gnome/desktop/interface/icon-theme then change custom value to icon theme name. But why can't lxappearance it? the only icon theme i found. that i can change. with lxappearance. arc-icon-theme
<day|flip>
weird part. I don't have gnome installed anymore
bahamas has joined #nixos
EdLin has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<dansho>
clever: wait, the .drv file contains the outPath, so maybe its a hash of the deriviation with "out" set to "" (i guess)
lovesegfault has joined #nixos
<ivan>
does anyone use konsole on nixos master? do the tab activity colors work for you?
<tilpner>
day|flip: lxappearance should be able to. Which application are you verifying successful iconset changes with?
<tilpner>
day|flip: Do .gtkrc-2.0 and .config/gtk-3.0/settings.ini reflect your choices?
<tpham>
clever are you there
<clever>
tpham: yep
<tpham>
Just found that the boost dir when running nix-shell and nix-build are different
<clever>
tpham: thats also an option, it uses namespacing to automatically chroot and run within that
hmpffff has joined #nixos
day|flip has quit [Quit: Using Circe, the loveliest of all IRC clients]
<tpham>
One more question: what's different between nativeBuildInputs and buildInputs
tilpner has joined #nixos
<clever>
tpham: nativeBuildInputs are compiled for the host, buildInputs are compiled for the target
<tpham>
if I need to compiled by clang on amd64 machine to arm64 binary, then clang should be on nativeBuildInputs and libc++ should be on buildInputs?
cransom has quit [Ping timeout: 265 seconds]
vld has joined #nixos
cransom has joined #nixos
Maxdaman1us is now known as Maxdamantus
hmpffff has quit [Quit: nchrrrr…]
<lovesegfault>
clever: I need an x86 remote builder :/
<lovesegfault>
it's impossible to work on NixOS without
vld has quit [Ping timeout: 248 seconds]
<clever>
lovesegfault: docker, virtualbox, qemu
<lovesegfault>
clever: I mean from a compute PoV :P
<tpham>
If my project dir contains dir with name `build`, then nix-build will fail
<clever>
tpham: either use lib.cleanSourceWith to exclude it (the proper method), or just `preConfigure = "rm -rf build";` to get rid of it within nix-build (the sloppy but simple method)
<tpham>
How can I have the same env in `default.nix` using nix-shell
zupo has joined #nixos
Tucky has joined #nixos
<CMCDragonkai>
I was wondering that for code signing. Knowing the time/date of when the digital artifact was signed is a good idea. However in Nix, our expressions become unreproducible. What if the input of the Nix expression can take in the current date/time then?
<clever>
tpham: just run nix-shell with no args, it will try to load shell.nix first, and if not found, it loads default.nix
<clever>
CMCDragonkai: but then you need to know when it was signed, to compute $out
<clever>
CMCDragonkai: you also need the hash of the private keys (or add an impurity that lets every build see the keys)
<CMCDragonkai>
yea that's the issue as well... it seems like for now it's best to do the signing outside the nix system
<CMCDragonkai>
but it would be nice if nix had a better story for code signing
<clever>
CMCDragonkai: i currently handle code signing using builtins.exec
<clever>
CMCDragonkai: its an eval-time backdoor to just run something as whatever user is doing the eval
<clever>
CMCDragonkai: it shows up in `nix show-config` so id say yes
<clever>
but thats a rather dangerous one to leave enabled
<clever>
since somebody could just `rm -rf /` by slipping something into code your eval'ing
<CMCDragonkai>
clever: makes sense, this would be useful for using nix-build to distribute things with signatures that require IO
<clever>
CMCDragonkai: also, if the arguments to builtins.exec refer to derivations, thats IFD
<CMCDragonkai>
IFD?
<clever>
so at eval time, it would have to build the unsigned binary, then exec the signer, which has to put things into the store and return a path
<clever>
,ifd
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result. It has been described as "such a nice footgun."
day|flip has quit [Quit: ERC (IRC client for Emacs 26.3)]
day|flip has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has joined #nixos
fragamus_ has quit [Ping timeout: 248 seconds]
zupo has joined #nixos
<tpham>
I've try nix for 1 day. Falling in love with Nix XD
oleh has quit [Quit: Konversation terminated!]
day|flip has quit [Quit: ERC (IRC client for Emacs 26.3)]
<tpham>
` A both positive and negative of the Nix model is that a change in the build dependencies (e.g. being built with a newer gcc), requires a cascading rebuild of everything. It's good because it makes it easy to do massive system-wide changes such as gcc upgrades, and allows installing multiple versions of packages at once. However, a security update
<tpham>
to e.g. glibc forces a rebuild of everything from scratch, and so Nix is not practical at scale.`
joepie91 has quit [Remote host closed the connection]
<keithy[m]>
tpham - that may be, but in this present day and age people are not doing things at scale any more. They do things in small disposable containers and scale the containers. Ok its a bigger job than having a shared library, but nix has the ability in theory to do things only once for everyone... the problem is really one of caching infrastructure.
joepie91 has joined #nixos
<keithy[m]>
* tpham - that may be, but in this present day and age people are not doing things at scale any more. They do things in small disposable containers and scale the containers. Ok its a bigger job than having a shared library, but nix has the ability in theory to do things only once for everyone... the problem is really one of caching infrastructure, things will get better.
<keithy[m]>
tpham - i'm on day two btw.
<fuzen>
Is there a way to force Nix to use the latest cache? Just trying to get lutris installed
<fuzen>
Lutris wont build due to pango changes
magneticduck has joined #nixos
EdLin has joined #nixos
<EdLin>
how do I use a more recent non-4.19 kernel with nixos?
EdLin is now known as EdLin
<EdLin>
I think there's other kernels, but I don't know how to activate them in configuration.nix
<magnetophon>
since a few upgrades, the upgrade doesn't change te default grub entry, so iow if I (re)boot without actively choosing an entry, I get an old nixos. is this a known problem? any fixes?
<magnetophon>
__monty__: I guess so. Lemme try that. Thanks
<sphalerite>
hm ok, and are the timestamps on the kernels/initramfses/boot config consistent with your last few backups?
<sphalerite>
s/backups/builds/
<duairc>
Also check that /boot isn't out of space?
<__monty__>
magnetophon: That's not as a solution to the problem btw. Just that switch means boot + make it the default boot entry afaik?
ng0 has quit [Quit: Alexa, when is the end of world?]
<magnetophon>
duairc: I use 23%
ng0 has joined #nixos
<magnetophon>
sphalerite: I'm searching in boot, haven't found that yet...
<magnetophon>
sphalerite: hmm, I don't think that info is in /boot, is it? where do I find that?
<sphalerite>
magnetophon: ls -l /boot/kernels , the exact path may be different depending on which bootloader you're using
<magnetophon>
No such file or directory
<magnetophon>
sphalerite: I have boot.loader.systemd-boot.enabled = true
<sphalerite>
and is systemd-bot actually running?
<sphalerite>
boot*
<magnetophon>
idk, how do I check
<magnetophon>
?
<__monty__>
magnetophon: Then why did you mention "grub entry"?
<magnetophon>
__monty__: I was under te impression I was still using grub, sorry.
<sphalerite>
hm you can probably check the firmware boot order using `efibootmgr -v`
<{^_^}>
[nixpkgs] @davidtwco opened pull request #75859 → franz: fix `Exec` substitution in `franz.desktop` → https://git.io/Je5U1
<magnetophon>
sphalerite: lot's of lines of output. not sure what I'm looking for there
<__monty__>
magnetophon: Did this happen when you switched away from grub by any chance?
<sphalerite>
magnetophon: what's important is the BootCurrent line and the corresponding Boot entry
<magnetophon>
__monty__: I think I did that much earlier, but I'm not 100% sure tbh. I can check my git history if needed
veske has quit [Quit: This computer has gone to sleep]
vld has joined #nixos
<magnetophon>
sphalerite: that would be: "Boot000A* ATA HDD0VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)" not sure what to do with that
<magnetophon>
__monty__: I was recommended to use EFI by someone knowledgeable. don't remember his arguments... would you say grub is better?
<sphalerite>
magnetophon: grub supports efi.
<sphalerite>
whatever works for you :)
<__monty__>
I'm not sure you can avoid EFI on an EFI motherboard?
<magnetophon>
sphalerite: sorry, I'm using words that I don't fully know the meaning of...
<sphalerite>
magnetophon: I can't really tell what your boot setup is actually like so far, I guess the easiest way to tell at this point would be to reboot and see what the boot menu looks like
<magnetophon>
__monty__: I'm sure my motherboard doesn't need EFI, as I wasn't using it earlier, while on the same HW, a T520i
<sphalerite>
if it has a border, it's probably grub, if it doesn't it's probably systemd-boot
vld has quit [Ping timeout: 248 seconds]
<sphalerite>
magnetophon: technically you were using EFI then, but many EFIs have a so-called Compatibility Support Module which supports "classic" BIOS boot (i.e. "run the code from the first sector of the HDD")
<magnetophon>
sphalerite: pretty sure no border. and I'm 100% sure I have " boot.loader.systemd-boot.enable = true; " in my conf. should I reboot anyway to make sure?
<{^_^}>
nix#3276 (by thongpv3, 1 minute ago, open): nix-shell environment does not work well with clangd
<magnetophon>
sphalerite: I'll reboot to make sure. brb
magnetophon has quit [Remote host closed the connection]
<juxiemaotu>
i wanno install nixos on a cloud server by minimal img.but the cloud platform required virtio module.how can i config it on a machine just install minimal nixos system?
bahamas has quit [Quit: leaving]
magnetophon has joined #nixos
<magnetophon>
sphalerite: indeed, no border.
<magnetophon>
sphalerite: so now what?
<sphalerite>
juxiemaotu: have you already tried and failed, or just not sure how to do it yet?
<sphalerite>
juxiemaotu: nixos-generate-config should detect that virtio is necessary and generate the corresponding config correctly.
phreedom has quit [Ping timeout: 260 seconds]
phreedom has joined #nixos
<juxiemaotu>
i tried and not work, on my hand , nixos option manual can not open,so i can here to get some help
<sphalerite>
tpham: try adding CPATH = lib.makeSearchPathOutput "dev" "include" buildInputs; to your shell.nix
<sphalerite>
magnetophon: check if entries for your more recent generations exist in /boot/loader/entries
<sphalerite>
juxiemaotu: does your generated hardware-configuration.nix mention virtio in boot.initrd.availableKernelModules?
<juxiemaotu>
when i install minimal nixos, the command nixos-generate-config had ben run,but when i check the initrd by zcat, there is no virtio there
<sphalerite>
juxiemaotu: in fact, how is it not working?
<magnetophon>
sphalerite: yes, all there. I'm also booted into the lates upgrade
<sphalerite>
magnetophon: huh, so it's working now?
<magnetophon>
sphalerite: I can boot into them, but only when I manually select them.
<magnetophon>
sphalerite: the poroblem is that the newest updates are not made the default
<magnetophon>
__monty__: If you're willing to pick this one up again, since sphalerite is afk: So I have the correct default entry in "/boot/loader/loader.conf", but my startup-menu points at an older one. what now?
<juxiemaotu>
sphalerite: i run nixos-generate-config again,and see the option boot.initrd.availableKernelModules.there is no virt* something there. are you sure this command will be work?
<__monty__>
magnetophon: I know nothing about systemd-boot. Does that read that file? Maybe nixos is confused about what bootloader to generate entries for?
Dandellion has joined #nixos
<Dandellion>
I want to run postres,but I need to connect to it from a few docker containers (which assume they get a username and password) I don't see anywhere obvious in the postgres module allowing simple authentication like this
<Dandellion>
Am I just missing something?
<magnetophon>
__monty__: I'm pretty sure the first few months of me using systemd-boot went OK, so it doesn't seem related to the switch from grub, if that's what you mean?
Yaniel has quit [Ping timeout: 246 seconds]
bvdw has quit [Read error: Connection reset by peer]
veske has joined #nixos
<magnetophon>
__monty__: anyway. thanks so far!
<juxiemaotu>
sphalerite: i make a imag by minimal nixos imag, and try to install it on a cloud platform ,but fail on booting from hard dist.
<__monty__>
magnetophon: Well, if the config file has the proper boot entry then the next step to figure out is why systemd-boot isn't reading *that* config file?
bvdw has joined #nixos
<__monty__>
magnetophon: Maybe systemd-boot can't deal with too many entries? Try deleting some old generations maybe?
<juxiemaotu>
i wanno install nixos on a cloud server by minimal img.but the cloud platform required virtio module.how can i config it on a machine just install minimal nixos system?
<juxiemaotu>
how can i config virito module in kernal when i install nixos?
<{^_^}>
#28445 (by kageurufu, 2 years ago, open): systemd-boot sets efivar LoaderEntryDefault, which overrides default in /boot/loader/loader.conf
fendor_ has quit [Remote host closed the connection]
coco has joined #nixos
magnetophon has quit [Remote host closed the connection]
magnetophon has joined #nixos
<__monty__>
Dandellion: services.postgresql.ensureUsers.*.ensurePermissions sounds like what you want.
<magnetophon>
__monty__: yup, that was my issue. all good now! Thanks a lot for the help, same to sphalerite and the others who's nicks have been lost in the reboot! :)
<Dandellion>
__monty__: I don't think that gives me a password, it just lets me set database permissisons with some system user. The auth is still done via just checking if the unix user exists afaik
<__monty__>
juxiemaotu: Maybe boot.initrd.availableKernelModules or boot.initrd.kernelModules or boot.kernelModules?
<__monty__>
magnetophon: 👍
<__monty__>
Dandellion: Doesn't it give you user+password access using the configured user's password on the system?
<juxiemaotu>
__monty__: i am find these options ,and i wanno which key can work with these condition? just "virtio"
<Dandellion>
__monty__: I'll try that thanks
<juxiemaotu>
__monty__: i mean is there a list of kernalMoudles?
<Twey>
I have an application that runs tests using `qemu` and a bridge device (TAP). How can I set up a TAP device in the Nix sandbox for my check phase?
<coco>
how do i enable gnome shell extensions? i tried "services.gnome3.core-shell.enable = true;" in /etc/configuration.nix and installing, for example, gnome-shell-dash-to-dock, on user-level, but it doesn't show up
<__monty__>
Dandellion: It looks like the "authentication" option is included verbatim in postgresql.conf? Worth a try and otherwise extraConfig I guess.
<__monty__>
juxiemaotu: Not afaik but the strings should be the same as on other platforms. For virtio that seems to imply you need to be specific virtio-network, virtio-scsi, etc.
gxt has joined #nixos
<magnetophon>
I use 2 fonts for my i3bar: Terminus, for crispness on my low resolution display, and FontAwesome, for icons. Now with the pango update it seems I have to choose either pango or bitmap, can't have both. The web mentions converting bitmap fonts to otb format. how do I do that in nixos?
cosimone_ has joined #nixos
cosimone has quit [Ping timeout: 248 seconds]
<juxiemaotu>
__monty__: thanks , and i had fix this issue. add "virtio" in to boot.availableKernelModules in hardware_configuration.nix
<juxiemaotu>
__monty__: it appeared when i check initrd after nixos-rebuild
<__monty__>
juxiemaotu: Hmm, that's regenerated from time to time I think. Can't you specify it in configuration.nix? The options should be merged iirc.
<juxiemaotu>
i am tring to install the new image on cloud platform again
cosimone has joined #nixos
cosimone_ has quit [Read error: Connection reset by peer]
werner291 has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cosimone has quit [Ping timeout: 248 seconds]
cosimone_ has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #75864 → sqitchPg: fix build on darwin → https://git.io/Je5Th
<genesis>
i wonder if we could parse desktop entry with that :)
cfricke has joined #nixos
jco has quit [Quit: WeeChat 2.6]
<pie_>
clever: is the default route adequate for reverse route?
<pie_>
i mean, default route allows pinging the internet
Raito_Bezarius has quit [Changing host]
Raito_Bezarius has joined #nixos
<clever>
pie_: the source ip matters
<clever>
pie_: so if your pings appear to come from 192.168.2.100, the remote machine will either send a responce out onto the lan (for nobody to hear) or out the main router (onto the general internet, for nobody to hear)
<pie_>
im getting stuff like From 10.250.0.1 icmp_seq=10 Destination Host Unreachable
<pie_>
and neither interface on the host isnt seeing anything
<clever>
pie_: what are the IP's on the host and container side?
<pie_>
s/isnt/is/
<clever>
pie_: and does the container see the ping on its internal IF?
<pie_>
clever: shouldnt it show up on the external interfaec if its gonna show up on the internal one?
<pie_>
(please hold for other answer)
<clever>
pie_: there should be a virtual if between the host and container, and tcpdump should see it on both ends of that if
<pie_>
yes if exists no i see nothing
<magnetophon>
Is anyone using terminus-font-ttf in i3bar? I tried that as a workaround for the pango issue, but it looks bad...
<clever>
pie_: check the main interface of the host, do you see the ping there?
<pie_>
clever: no
<clever>
pie_: what IP are you trying to ping?
<pie_>
clever: err correction: i havent checked on the container yet because i havent installed tcpdump there yet
<pie_>
clever: im trying to ping ping ping 10.243.77.2 , it works inside the contianer
<pie_>
everything works inside the container
<clever>
pie_: what does `ip route` on the host say?
<pie_>
clever: its in the paste
<pie_>
line 6
<clever>
checking the numbers...
<clever>
240 0xf0
Rusty1 has joined #nixos
juxiemaotu has quit [Ping timeout: 248 seconds]
<clever>
243 0xf3
<clever>
/12 is 8 + 4
<pie_>
i just copied the route out of the container
<pie_>
and "fixed" (is it correct?) the via field
<pie_>
clever: see line 59
<clever>
yep, that looks fine
Chiliparrot has joined #nixos
<pie_>
migh tbe missing src on the host idk
<clever>
oh wait, theres the problem
<clever>
via points to 10.250.0.1, the host
<clever>
it must point to the guest ip
<pie_>
oh
juxiemaotu has joined #nixos
<pie_>
i swear i will figure this shit out properly one day
<clever>
then it will route it to the guest, via whatever device the guest ip shows up on (routing tables again)
<pie_>
networking...
<pie_>
clever: .0.1 is the ip on the host side of the veth device
<pie_>
so *magic handwaving* shouldnt it just shove it at that and the device will magically pipe it to the other side
<clever>
pie_: nope, linux will notice that that is its own ip, and not even shove it out the interface
<clever>
pie_: its the same as sending to 127.0.0.1
<pie_>
well that would explain why its not showing up on the dev
<clever>
its likely showing up on lo
<pie_>
clever: the one device i didnt check lol
<pie_>
i want a proper textbook of this stuff but i imagine its all massively OS implementation specific :(
<clever>
on typical ethernet based networks (wifi and ethernet), you can only ever send packets to a mac, never an ip
<clever>
you must use ARP to lookup the mac behind an ip
<pie_>
clever: lol yes its on the lo device
zupo has joined #nixos
<clever>
when your default route says `via 10.0.2.2`, then you lookup the mac of 10.0.2.2, then send things to the public ip (say 8.8.8.8) but the mac of 10.0.2.2
<pie_>
not that i didnt believe you, but it might be educational to do it anyway
<pie_>
clever: aha. so ip addresses are a lie.
<pie_>
a convenient lie.
<clever>
the dest mac is what triggers the remote NIC (in the router, in this case) to respond to the packet
<clever>
the OS within the router, then notices the dest ip is "wrong"
<clever>
and because forwarding is enabled, the router looks that dest up, in its own routing tables
<clever>
and forwards it in the right direction
<clever>
the router also had NAT setup, so it will mutate the src ip along the way
<pie_>
so basically its point to point mac address based forwarding and then they check where the rest of the network is via ip lookups?
<clever>
yeah
<pie_>
that seems to make sense
<clever>
each hop notices that the dest ip is "wrong", looks it up in its own routing tables, and relays it via the next gateway in the chain
<clever>
for the responce to make it back to you, the source ip you claim must also be in the routing tables
<clever>
and in the case of 10.0.2.2 going to the web, you cant claim ownership of 10.0.0.0/8
<clever>
so the router will fudge the source ip
<clever>
but, when the reply comes back, it will have the "wrong" destination
<pie_>
and the source mutation is necesary because nated ips are globally not unique
<clever>
so the router has to un-fudge it
<clever>
if your not doing NAT, then the reply could come down a different path
<pie_>
so you have to take a specific sender sometimes, and the sender also keeps track and can then unproxy
<clever>
the conntrack table handles that
zupo has quit [Ping timeout: 248 seconds]
jgeerds_ has quit [Ping timeout: 258 seconds]
<pie_>
well, i guess this is symmetric so i shouldnt be phrasing it like this
<pie_>
the routing happens the same way in both directions
<clever>
[root@router:~]# cat /proc/net/nf_conntrack | head
<pie_>
ok you didnt mean "alternative method" but "if you dont do nat things will be wrong"
<clever>
more, that if you dont do nat, your able to have different paths
<clever>
if you do nat, your forced to keep the reply coming down the same path
<gchristensen>
when I close my laptop lid while docked, logind correctly ignores the signal and doesn't suspend. however, I would like to turn off the screen on the lid. any suggestions on where in the stack this would live? I'm using sway.
<gchristensen>
I guess my question is more, where in the stack would this hook be called, and does anyone know of an existing hook which does this sort of thing :P
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* pie_
attempts googling out of mild curiosity with not much immediate success
<gchristensen>
tbh I was a bit surprised this wasn't handled in the hw
<{^_^}>
[nixpkgs] @turion opened pull request #75869 → WIP: Fix hie-bios test suite → https://git.io/Je5Iz
<pie_>
gchristensen: yeah i was about to make a guess at that but the realized sometimes the monitor is still kind of on if the machine is still in progress of oing to sleep (i think?) so...
<pie_>
maybe sometimes it is hardware though
<pie_>
dpms seems to be a usable keyword
<pie_>
but im not sure if thats x11 specific
<noonien>
hello folks!
<noonien>
anyone using vs code on nixos by any chane?
<noonien>
chance*. i'm trying to give it a try and i'm having some problems with extensions
<noonien>
for example, the python language server seems to not find `libstdc++.so.6` or, at least, that's what `ldd` reports
<pie_>
apparently dpms is handled by the DRM thingies kernel side (?)
rnhmjoj has quit [Ping timeout: 248 seconds]
pingiun[m] has quit [Ping timeout: 246 seconds]
amanjeev[m] has quit [Ping timeout: 245 seconds]
DenisLehmann[m] has quit [Ping timeout: 245 seconds]
macerbi[m]1 has quit [Ping timeout: 245 seconds]
roberth has quit [Ping timeout: 245 seconds]
MilkManzJourDadd has quit [Ping timeout: 245 seconds]
attero has quit [Ping timeout: 246 seconds]
corpix[m] has quit [Ping timeout: 246 seconds]
leons has quit [Ping timeout: 246 seconds]
jwaksbaum[m] has quit [Ping timeout: 240 seconds]
xelaushi[m] has quit [Ping timeout: 240 seconds]
satdev[m] has quit [Ping timeout: 240 seconds]
fpletz[m] has quit [Ping timeout: 240 seconds]
bohan[m] has quit [Ping timeout: 240 seconds]
arianvp[m] has quit [Ping timeout: 240 seconds]
zer0xp[m] has quit [Ping timeout: 240 seconds]
laas has quit [Ping timeout: 240 seconds]
keithy[m] has quit [Ping timeout: 240 seconds]
wangoe[m] has quit [Ping timeout: 240 seconds]
malteof[m] has quit [Ping timeout: 240 seconds]
IslandUsurper has quit [Ping timeout: 240 seconds]
simbergm has quit [Ping timeout: 240 seconds]
TravisRt2botio[m has quit [Ping timeout: 240 seconds]
sylvie[m] has quit [Ping timeout: 240 seconds]
domenkozar[m] has quit [Ping timeout: 240 seconds]
JaakkoLuttinen[m has quit [Ping timeout: 250 seconds]
aterius has quit [Ping timeout: 250 seconds]
octowan[m] has quit [Ping timeout: 250 seconds]
copy` has quit [Ping timeout: 250 seconds]
flacks has quit [Ping timeout: 250 seconds]
momack2[m] has quit [Ping timeout: 250 seconds]
freerangechicken has quit [Ping timeout: 250 seconds]
quiet_laika[m] has quit [Ping timeout: 252 seconds]
pinage404[m] has quit [Ping timeout: 252 seconds]
otini has quit [Ping timeout: 252 seconds]
dmitryolyenyov[m has quit [Ping timeout: 246 seconds]
GerdFlaig[m] has quit [Ping timeout: 246 seconds]
kirelagin has quit [Ping timeout: 246 seconds]
phittacus has quit [Ping timeout: 246 seconds]
craige[m] has quit [Ping timeout: 246 seconds]
tails[m] has quit [Ping timeout: 246 seconds]
pingveno[m] has quit [Ping timeout: 246 seconds]
ejpcmac has quit [Ping timeout: 246 seconds]
gsals[m] has quit [Ping timeout: 250 seconds]
MiloIgnis[m] has quit [Ping timeout: 250 seconds]
lel[m] has quit [Ping timeout: 250 seconds]
truby has quit [Ping timeout: 250 seconds]
gaisseml[m]1 has quit [Ping timeout: 250 seconds]
luftmensch[m] has quit [Ping timeout: 250 seconds]
Noughtmare[m] has quit [Ping timeout: 250 seconds]
manu12[m] has quit [Ping timeout: 250 seconds]
is0x3F has quit [Ping timeout: 250 seconds]
eddyb has quit [Ping timeout: 250 seconds]
<pie_>
or kernel modesetting rather
chatmaster5000[m has quit [Ping timeout: 246 seconds]
wildtrees[m] has quit [Ping timeout: 246 seconds]
isgy[m] has quit [Ping timeout: 246 seconds]
Nyanloutre[m] has quit [Ping timeout: 246 seconds]
kaychaks[m] has quit [Ping timeout: 246 seconds]
DanP[m] has quit [Ping timeout: 246 seconds]
zurdo has quit [Ping timeout: 246 seconds]
phyfey[m] has quit [Ping timeout: 246 seconds]
offlinehacker has quit [Ping timeout: 246 seconds]
VaNilLa[m] has quit [Ping timeout: 246 seconds]
mirsal has quit [Ping timeout: 246 seconds]
frederic_chopwn[ has quit [Ping timeout: 246 seconds]
manveru[m] has quit [Ping timeout: 246 seconds]
the_pumpkin_man[ has quit [Ping timeout: 245 seconds]
alex[m]11 has quit [Ping timeout: 245 seconds]
atopuzov[m] has quit [Ping timeout: 245 seconds]
yoho[m]1 has quit [Ping timeout: 245 seconds]
wnklmnn[m] has quit [Ping timeout: 245 seconds]
Thinkofname[m] has quit [Ping timeout: 245 seconds]
<pie_>
lol matrix pls
layus[m] has quit [Ping timeout: 248 seconds]
lisprez[m] has quit [Ping timeout: 248 seconds]
nh2[m] has quit [Ping timeout: 248 seconds]
rihardsk[m] has quit [Ping timeout: 248 seconds]
hiroshi[m] has quit [Ping timeout: 248 seconds]
ilya-fedin has quit [Ping timeout: 248 seconds]
tobim[m] has quit [Ping timeout: 250 seconds]
LinuXit has quit [Ping timeout: 250 seconds]
eeyun[m] has quit [Ping timeout: 250 seconds]
Vskilet has quit [Ping timeout: 250 seconds]
icetan has quit [Ping timeout: 250 seconds]
sauyon[m] has quit [Ping timeout: 250 seconds]
xavierm02 has quit [Ping timeout: 250 seconds]
sevcsik- has quit [Ping timeout: 250 seconds]
kecia[m] has quit [Ping timeout: 250 seconds]
Seb[m] has quit [Ping timeout: 250 seconds]
das-g[m] has quit [Ping timeout: 250 seconds]
provessor[m] has quit [Ping timeout: 250 seconds]
siraben has quit [Ping timeout: 250 seconds]
hpfr[m] has quit [Ping timeout: 250 seconds]
coniferous-cube[ has quit [Ping timeout: 250 seconds]
hagelslag[m] has quit [Ping timeout: 250 seconds]
mt[m] has quit [Ping timeout: 250 seconds]
olejorgenb[m] has quit [Ping timeout: 250 seconds]
bikki[m] has quit [Ping timeout: 250 seconds]
abbafei[m] has quit [Ping timeout: 240 seconds]
bricewge has quit [Ping timeout: 252 seconds]
balsoft has quit [Ping timeout: 252 seconds]
abbradar[m] has quit [Ping timeout: 252 seconds]
mica[m] has quit [Ping timeout: 252 seconds]
david-sawatzke[m has quit [Ping timeout: 252 seconds]
spacekitteh[m] has quit [Ping timeout: 252 seconds]
musicmatze has quit [Ping timeout: 252 seconds]
alexarice[m] has quit [Ping timeout: 252 seconds]
MarkOtaris has quit [Ping timeout: 252 seconds]
joepie91[m] has quit [Ping timeout: 252 seconds]
tokudan[m] has quit [Ping timeout: 240 seconds]
ZerataX has quit [Ping timeout: 240 seconds]
fgaz has quit [Ping timeout: 240 seconds]
pheoxy has quit [Ping timeout: 240 seconds]
Fuzen[m] has quit [Ping timeout: 264 seconds]
spear2 has quit [Ping timeout: 264 seconds]
submoo[m] has quit [Ping timeout: 264 seconds]
pachacuti[m] has quit [Ping timeout: 264 seconds]
setthemfree[m] has quit [Ping timeout: 264 seconds]
joelpet1 has quit [Ping timeout: 264 seconds]
haslersn has quit [Ping timeout: 264 seconds]
gaisseml[m] has quit [Ping timeout: 264 seconds]
nbardiuk has quit [Ping timeout: 264 seconds]
segfault[m] has quit [Ping timeout: 264 seconds]
ninjatrappeur[m] has quit [Ping timeout: 264 seconds]
zmlww[m] has quit [Ping timeout: 264 seconds]
thequux[m] has quit [Ping timeout: 264 seconds]
Dandellion has quit [Ping timeout: 246 seconds]
imj[m] has quit [Ping timeout: 246 seconds]
l33[m] has quit [Ping timeout: 246 seconds]
rycee has quit [Ping timeout: 246 seconds]
worldofpeace has quit [Ping timeout: 246 seconds]
shizonic has quit [Ping timeout: 246 seconds]
seb314[m] has quit [Ping timeout: 264 seconds]
geemili has quit [Ping timeout: 264 seconds]
EuAndreh[m] has quit [Ping timeout: 264 seconds]
escaP[m] has quit [Ping timeout: 250 seconds]
marijan[m] has quit [Ping timeout: 250 seconds]
blahaj[m] has quit [Ping timeout: 250 seconds]
<sphalerite>
pie_: yes, and sway does it via wlroots
<clever>
pie_: for extra confusion, the kernel has both drm (digital rights management) and drm (direct rendering manager)
wedens[m] has quit [Ping timeout: 245 seconds]
wrunt[m] has quit [Ping timeout: 245 seconds]
padok[m] has quit [Ping timeout: 245 seconds]
Jarva[m] has quit [Ping timeout: 245 seconds]
ndarwincorn has quit [Ping timeout: 245 seconds]
danielrf[m] has quit [Ping timeout: 245 seconds]
NoblesseOblige24 has quit [Ping timeout: 245 seconds]
vaibhavsagar has quit [Ping timeout: 245 seconds]
bennofs[m] has quit [Ping timeout: 245 seconds]
jschievink has quit [Ping timeout: 245 seconds]
cornu has quit [Ping timeout: 245 seconds]
arcnmx has quit [Ping timeout: 245 seconds]
dtz has quit [Ping timeout: 245 seconds]
Christian[m]3 has quit [Ping timeout: 246 seconds]
ma27[m] has quit [Ping timeout: 246 seconds]
aanderse has quit [Ping timeout: 246 seconds]
am3on[m] has quit [Ping timeout: 246 seconds]
Minijackson[m] has quit [Ping timeout: 246 seconds]
goibhniu has quit [Ping timeout: 246 seconds]
wander[m] has quit [Ping timeout: 252 seconds]
dpc has quit [Ping timeout: 252 seconds]
snupples[m] has quit [Ping timeout: 252 seconds]
jtojnar has quit [Ping timeout: 252 seconds]
nilsirl[m] has quit [Ping timeout: 252 seconds]
null_radix[m] has quit [Ping timeout: 252 seconds]
contrun[m] has quit [Ping timeout: 252 seconds]
bbigras has quit [Ping timeout: 252 seconds]
veleiro has quit [Ping timeout: 252 seconds]
bendlas has quit [Ping timeout: 252 seconds]
yangm has quit [Ping timeout: 252 seconds]
abbec has quit [Ping timeout: 252 seconds]
marius851000[m] has quit [Ping timeout: 250 seconds]
mkg20001 has quit [Ping timeout: 250 seconds]
Victor[m]1 has quit [Ping timeout: 250 seconds]
cyberwolf[m] has quit [Ping timeout: 250 seconds]
timokau[m] has quit [Ping timeout: 250 seconds]
Ox4A6F has quit [Ping timeout: 250 seconds]
blitzclone_ has quit [Ping timeout: 250 seconds]
frislie[m] has quit [Ping timeout: 250 seconds]
Smith[m] has quit [Ping timeout: 250 seconds]
li_matrix has quit [Ping timeout: 250 seconds]
jonreeve[m] has quit [Ping timeout: 248 seconds]
deadvader[m] has quit [Ping timeout: 248 seconds]
webdavis has quit [Ping timeout: 248 seconds]
mudrii[m] has quit [Ping timeout: 248 seconds]
harkenedraven has quit [Ping timeout: 248 seconds]
Sisyphe[m] has quit [Ping timeout: 248 seconds]
colemickens has quit [Ping timeout: 248 seconds]
bachp has quit [Ping timeout: 248 seconds]
ronny has quit [Ping timeout: 248 seconds]
zebrapenguin[m] has quit [Ping timeout: 246 seconds]
Notkea[m] has quit [Ping timeout: 246 seconds]
NickHu has quit [Ping timeout: 246 seconds]
thefloweringash has quit [Ping timeout: 246 seconds]
Ericson2314 has quit [Ping timeout: 246 seconds]
MerlinGttlinger[ has quit [Ping timeout: 240 seconds]
philipp[m]2 has quit [Ping timeout: 240 seconds]
nixooosaaaa has joined #nixos
<pie_>
clever: yeah that acronym collision is a PITA :P
stammon has quit [Ping timeout: 250 seconds]
Yakulu[m] has quit [Ping timeout: 250 seconds]
pentadyne[m] has quit [Ping timeout: 264 seconds]
Brian[m]5 has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
regnat[m] has quit [Ping timeout: 264 seconds]
rendeko[m] has quit [Ping timeout: 264 seconds]
MayeulC_backup has quit [Ping timeout: 264 seconds]
wak-work has quit [Ping timeout: 264 seconds]
florianjacob has quit [Ping timeout: 264 seconds]
clacke[m] has quit [Ping timeout: 264 seconds]
schmittlauch[m] has quit [Ping timeout: 264 seconds]
* pie_
watches as freenode DDOSes itself
<gchristensen>
in this case, matrix DDOS Freenode
<pie_>
nah matrix just disconnected :P
<pie_>
passive ddos? :P
<nixooosaaaa>
Is there an easy way to modify a binary with a sed call or something after it's installed? Maybe use an overlay to append to the end of install phase? Is there a better way?
<clever>
gchristensen: id call that a DoS, not a DDoS
<gchristensen>
fair
<clever>
its a single central node
<clever>
which is also why its so bad :P
<pie_>
sphalerite: oh id that where anything actually happens? i was searching the sway code for dpms stuff and its like, theres some interfaces here but nothng else
dsg has quit [Ping timeout: 248 seconds]
<clever>
nixooosaaaa: its usually not safe to edit binaries with sed, since it uses relative offsets within itself a lot
<genesis>
i mean a binary , perharps not an executable one ;)
<genesis>
s/i/he
* genesis
needs a rest.
<pie_>
clever: memeing: disappointed that patchelf doesnt expose code caves
<clever>
patchelf is operating mainly on the structured part of the file, and leaving the .data untouched
o1lo01ol1o has joined #nixos
<pie_>
looks like an update:
<pie_>
<tokudan[m]> A new version of Matrix Synapse is out with security fixes affecting all older versions: https://github.com/matrix-org/synapse/releases/tag/v1.7.1 ("This release includes several security fixes as well as a fix to a bug exposed by the security fixes. All previous releases of Synapse are affected. Administrators are encouraged to upgrade as soon as possible.")
<pie_>
(i think?)
<clever>
pie_: sounds like it, and they decided to upgrade a node 100's of people where in the middle of using
<sphalerite>
pie_: grep it for wlr_output_enable
<sphalerite>
pie_: that's what sway calls to actually turn the monitors on/off, and I'll bet that wlroots implements that by talking DRM ioctls to the kernel :)
dsg has joined #nixos
<{^_^}>
[nixpkgs] @mudrii opened pull request #75870 → update pulumi new version from 1.40 to 1.7.1 and update associated plugins → https://git.io/Je5Ih
<gchristensen>
maybe a logind inhibitor taking the handle-lid-switch lock and something processing udev events
<cvlad->
Is there a "getting started" guide to nix for a Haskell stack project? I pretty much want to be able to get a shell with ghcid, ghcide and cabal or something. I am trying to follow the docs on https://input-output-hk.github.io/haskell.nix/user-guide/, but right now I'm stuck figuring out how to use cachix so I don't build ghc.
<nixooosaaaa>
clever: Thanks for the warning. Perhaps I should ask the more general question of running a shell command post install ;)
<pie_>
clever: eh, te thing with the xy problem is its counter to the expectation that you put in some effort no?
o1lo01ol1o has quit [Remote host closed the connection]
<pie_>
though maybe a solution is "i want to x and i tried y and im stuck on y"
<nixooosaaaa>
clever: I'm aware of the XY problem, but it's necessary theres a privacy issue. The most specific I can be is I legitimately need to modify a known string value in a binary after the installphase is done.
<nixooosaaaa>
sorry
<pie_>
though not in this case, its also a problem when your x is hard to explain or you think people will tihnk your x is dumb
jgeerds_ has joined #nixos
<clever>
nixooosaaaa: and your not able to modify the source before it got compiled?
<gchristensen>
qyliss: so back to my thing about dmenu and authority to run scripts: I was thihnking about thaht in the context of applications which have undeclared dependencies (like Slack on xdg_utils, a bug I fixed yesterday.) if they didn't inherit such a large environment (systemPackages) by default, we might have a good time of good bug fixes :)
* pie_
just thinking out loud
<gchristensen>
nixooosaaaa: one thing to make sure we both understand -- the installPhase runs as part of the build, and not when the user actually selects it for their system
<gchristensen>
htere is no hook which runs when the user adds it to their system
<DigitalKiwi>
gchristensen: i think worldofpeace and i have had a few hours wasted between us because of different environments
<pie_>
clever: wait, so re mac addresses, if IPs are a lie anyway, when doing stuff on one machine why dont we just directly use interface names instead
<DigitalKiwi>
first one i think of is i think bitwarden wants gnome-keyring and throws warnings (i think they're harmless, but kind of annoying, as it spews them) but doesn't depend on it but since i didn't have it and they did...they thought it was working and it failed completely for me (the thing it *actually* depended on in this case is libsecret)
<nixooosaaaa>
clever: I can modify the source, but it's much more convenient to add to my already existing overlay. I know how to modify the source and use that in my overlay, but wanted a forkless solution.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<clever>
nixooosaaaa: you dont have to fork the repo, thats what the patchPhase is for, to modify the source at build time
<clever>
pie_: the kernel still keeps up with the lie and uses the ip to know if something is for itself or another machine
<nixooosaaaa>
gchristensen: I think we are on the same page there. I want the modification I make to the binary replacing some text before it's selected.
vld has joined #nixos
<pie_>
clever: so basically i have no easy way out
<nixooosaaaa>
Let me see if patchPhase works for me clever. Thanks for the help gchristensen and others. For now I'll try patch phase and try to come back with a better question if not.
<clever>
nixooosaaaa: if you keep the replacement string the exact same length as the original, sed could work on a compiled binary
<nixooosaaaa>
clever that is indeed what I'm doing
<pie_>
clever: the packets dont error now but its still blackholing and im trying to reason my way through this to make sure i get it
<clever>
pie_: check tcpdump in the container, is it receiving the packets from the host? is it sending them out the vpn?
<andi->
I had very bad experience with sed on binaries.. it just doesn't treat that stuff very well. I had to resort to perl to do it :/
justanotheruser has quit [Ping timeout: 248 seconds]
<pie_>
clever: thats cheating (im too lazy to reconfigure the container with tcpdump but i will probably have to)
<clever>
pie_: nix-env and nix-shell still work in the container
<clever>
pie_: also, the container has access to the entire /nix/store of the host
<pie_>
wait what they do
<clever>
pie_: so if you know the path to tcpdump, you can just run it by absolute path
<pie_>
idk about you but i always get broken path stuff
<pie_>
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
<pie_>
does it just work for you out of the box
<clever>
pie_: you may need to setup channels first, simpler to just run tcpdump by absolute path
<pie_>
yeah
<clever>
pie_: realpath $(which tcpdump)
<pie_>
clever: i know that much :3
veske has quit [Quit: This computer has gone to sleep]
<pie_>
clever: i think the problem is im not rewriting the source, i dont get a ping reply from the vpn node, probably because it doesnt know the ping source
<pie_>
hm
<pie_>
but shouldnt 10.240.0.0/12 dev tinc.retiolum proto kernel scope link src 10.243.3.14 be dealing with that?
mjrosenb has quit [Remote host closed the connection]
<clever>
pie_: the remote node, at the other end of the vpn tunnel
<exarkun>
I have a python project that uses ifconfig on PATH. It has a test suite, too. if I put nettools in propagatedBuildInputs the test suite fails. if It put nettools in checkInputs, it passes. aren't propagatedBuildInputs supplied to checkPhase?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<pie_>
clever: hm this is a bit annoying. the nat internal ips are dynamic
<pie_>
clever: which is to say, i need to put the host subnet in there no?
<pie_>
does that mean i need to make another more static device on the host somehow
<clever>
pie_: the "internal" ip is the one from the virtual link between host&guest
<pie_>
oh
<pie_>
weird
<clever>
think of the container as its own machine
<pie_>
yeah
<pie_>
but theres no rewriting yet when i get a packet from the host right?
<pie_>
im just forwarding stuff to the vpn subnet
<clever>
when packets come back over the vpn, they will enter the network stack for the container
<clever>
which will un-nat things, as it forwards it back to the host
o1lo01ol1o has quit [Remote host closed the connection]
veske has joined #nixos
<pie_>
so dont i need to nat the host subnet ips? <pie_> im just forwarding stuff to the vpn subnet
<clever>
correct
<{^_^}>
[nixpkgs] @robertodr opened pull request #75873 → Updates pyrsistent, cachy, and clikit → https://git.io/Je5tO
<pie_>
and not the virtual device
juxiemaotu has quit [Ping timeout: 268 seconds]
lukash_|away is now known as lukash_
<pie_>
to get packets to come back, i need them to reach me in the first place. and for that i need the forwards-nat; which was the dynamic subnet
<pie_>
(i need the forwards nat otherwise the vpn node gets the wrong ip)
<duairc>
clever: By the way, for what it's worth, I fixed my IPv6 RA troubles once and for all, no hacky deleting routes needed. Adding "sysctl -w net.ipv6.conf.eth0.accept_ra=0" to the start of my initrd networking script was needed, because the NixOS boot.kernel.sysctl settings don't get applied until after systemd has started
<duairc>
Thanks for helping me out with it last night!
magnetophon has quit [Remote host closed the connection]
<duairc>
clever++
<{^_^}>
clever's karma got increased to 284
<clever>
duairc: that works
juxiemaotu has joined #nixos
realrokka_ has joined #nixos
realrokka has quit [Ping timeout: 268 seconds]
Kritnich8 has joined #nixos
mlen has quit [Ping timeout: 268 seconds]
<pie_>
clever: wait. do i even need to set this? what if i jsut nat everything going over the interface?
<pie_>
by which i mean the vpn interface
helpusobi has quit [Ping timeout: 268 seconds]
klntsky has quit [Ping timeout: 260 seconds]
<clever>
pie_: that could be done
Kritnich has quit [Read error: Connection reset by peer]
Kritnich8 is now known as Kritnich
cfricke has quit [Quit: WeeChat 2.6]
klntsky has joined #nixos
helpusobi has joined #nixos
mlen has joined #nixos
<pie_>
clever: im going to have so much nat all over my machine
<pie_>
apparently im already natting to the virtual interface, probably for internet
o1lo01ol1o has joined #nixos
<pie_>
networking.nat.externalInterface = if (isVM) then "eth0" else "wlp3s0";
<pie_>
people are crazy for trying this stuff with nondeclarative configs
<clever>
do i even want to know what your network is doing? lol
<pie_>
this was for the host
<pie_>
im not doing anything crazy...i think?
Ariakenom has quit [Quit: WeeChat 2.6]
<rizary_>
when I build derivation, is it possible to symlink file from the $out file? like `ln -s $out/machine/machine1 $out/machine1`. I tried from installPhase to buildPhase but either got `permission denied`, or `no directory found` error
EdLin has quit [Quit: bbl real-life calls]
juxiemaotu has quit [Quit: WeeChat 1.9.1]
<siers>
I want a derivation of my collection of ruby scripts (two :D). I know I can do it with mkDerivation { buildInputs = [bundlerApp...]; script = ./script.rb; } but what's the straightforward way to do that with a directory (another script + json data)?
<siers>
./script.rb if there's only a single file
<pie_>
rizary_: not sure what youre trying to do but, did you mkdir $out? if not thats probably the not found error
nuncanada has joined #nixos
<pie_>
siers: you can do ./ with a directory
<pie_>
unless i misunderstand
<siers>
well I can't plug it into script, because it expects that to be a flie
justanotheruser has joined #nixos
<infinisil>
siers: Huh, I don't think stdenv.mkDerivation takes a script parameter
<pie_>
siers: do you need to run that bundler thingy (im guessing it has some setup hooks) or do you just want to use the files in nix
<clever>
siers: if you do `src = ./.;` then the default unpackPhase will copy the entire directory, and cd into it
<pie_>
infinisil: hooks?
<siers>
infinisil, ah! it becomes an env that's used in the buildCommand
<siers>
I'm stupid
<siers>
clever, nice
<clever>
siers: you can also just do cp ${./foo.txt} foo.txt in the buildComma
<clever>
nd
<pie_>
siers: oh duh :D
cmacrae has joined #nixos
dm9 has joined #nixos
<siers>
clever, where will the src be stored? in /nix? so I can do src = ./.; and cd $(dirname $0) in the script?
<clever>
siers: `src = ./.;` will copy ./. to /nix/store/hash-name, and set $src to that at build time
domogled has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
siers: the unpackPhase will copy it to $NIX_BUILD_TOP/name, and cd into it
<clever>
siers: and id recomend you then copy the files you want to keep to somewhere under $out, along with the scripts themselves
<exarkun>
You don't have to take extra care to mark things in $out as read-only
<clever>
siers: nix-daemon will flag it all as read-only, after your builder exits
<rizary_>
pie_: i have `build.nix` contains `{ host }: ... pkgs.stdenv.mkDerivation {}` I have `unpackPhase = " cp -r $src $out` and I want to symlink some directory after the unpackPhase that based on `host` arg passed. like `ln -s $out/machines/${host} $out/${host}`
zupo has joined #nixos
<rizary_>
after creating directory, I got permission denied.
<clever>
rizary_: the $src you copied is read-only, and cp preserves that
<clever>
rizary_: the default unpackPhase fixes the permissions for you
<pie_>
doh.
<siers>
packaging is so intricate...
<clever>
you need to chmod +w -R, to make it writable
<pie_>
clever: can probably use postunpack or something right
<pie_>
or does that not exist
<clever>
pie_: it exists, but it would be simpler to just use buildPhase or installPhase
<pie_>
right
<clever>
generally, installPhase should be what writes to $out
<clever>
buildPhase should build things
<pie_>
bottom line is here you can just use the default unpaclphase
<clever>
pie_: tcpdump on the far end, is it receiving the packets?
<pie_>
clever: i dont have access to the far end
jco has joined #nixos
<clever>
pie_: then tcpdump the container, is it sending pings out the vpn? are they coming back?
<pie_>
clever: i mean this idoes seem to be going fully through the host-container stack
<pie_>
yes they are coming back
<pie_>
hold on
sigmundv has joined #nixos
<clever>
and then tcpdump the container side of the host<->container link, does that also show the replies
<pie_>
clever: containet:
<pie_>
IP 10.243.3.14 > 10.243.77.2: ICMP echo request, id 5, seq 13, length 64
<pie_>
IP 10.243.77.2 > 10.243.3.14: ICMP net 10.243.77.2 unreachable - unknown, length 92
<clever>
thats not a valid reply
<pie_>
uh
<clever>
thats an error saying you cant reach 10.243.77.2
<pie_>
oh
<pie_>
maybe i oopsed something
<siers>
can $out be a symlink to the store path $src?
<clever>
siers: yes, but at that point, your derivation is pointless
<clever>
siers: you can just use ./. instead
<pie_>
well tinc isnt happy either Cannot route packet from 10.243.3.14 (MYSELF port 655): unknown IPv4 destination address 10.243.77.2
<siers>
clever, but it needs buildInputs
<clever>
siers: if $out is a symlink to $src, there is no way to persist those buildInputs at runtime
jgeerds_ has joined #nixos
<clever>
since $src is still read-only, you cant add things under $out/foo
<pie_>
i guess i broke something with the nat setup
<clever>
and the buildInputs will only be available at build time
<rizary_>
clever: ah so because I use unpackPhase, the `$out` is not writeable. However, the case is if I use default `unpackPhase`, is it automatically cp the $src into $out? because in my result, i only see my symlink result.
gustavderdrache has joined #nixos
<siers>
what does having a bundlerEnv in inputs give? what does my script use from it? ahhhh such a mind bender
<rizary_>
s/in my result/in my result folder/
<clever>
rizary_: if you use `cp $src $out`, then cp will preserve the fact that the contents of $src where read-only
<pie_>
siers: read the source for bundlerenv probably
<clever>
rizary_: you need to `chmod +w -R $out` to fix those permissions, and let you modify $out further
<deni>
what would be the proper way to list the exact versions of haskell dependencies in my project?
<DigitalKiwi>
anyone know an existing nixpkgs that wraps a haskell program from haskellPackages.
<rizary_>
i see
<rizary_>
is it the safe way to do that?
<DigitalKiwi>
I need to do additional things to one to and make it top level instead of haskellPackages
civodul has joined #nixos
<pie_>
DigitalKiwi: not off hand but you could try grepping nixpkgs?
<clever>
rizary_: yeah, the sandbox stops you from doing anything thats completely unsafe
<rizary_>
I see.. :)
<pie_>
DigitalKiwi: maybe pandoc?
veske has quit [Quit: This computer has gone to sleep]
<DigitalKiwi>
pie_: I could, not sure what to grep for...callCabal or something I think (can't remember off hand it's probably in the manual...)
<clever>
DigitalKiwi: callCabal2nix is IFD, which isnt allowed within nixpkgs
<pie_>
DigitalKiwi: in that case id start by searchin for related keyword in top level like haskell cabal etc
<cmacrae>
Might be a bit of a weird one, but does anyone know of any Nix training courses? I need to spend my training budget at work by the end of the year, and figured if there's anything out there, I might as well check it out ¯\_(ツ)_/¯
* pie_
looks at calendar
<pie_>
> december 18
<{^_^}>
undefined variable 'december' at (string):271:1
<pie_>
xD
<cmacrae>
Hahaha
<rizary_>
clever: so the docs said this: `The default implementation of unpackPhase unpacks the source files listed in the src environment variable to the current directory`, which `current directory` that it refers to?
<DigitalKiwi>
clever: oh ok
o1lo01ol1o has quit [Remote host closed the connection]
<rizary_>
it isn't `$src` nor `$out` right?
<DigitalKiwi>
alright thanks i'll start grepping
<clever>
rizary_: its $NIX_BUILD_TOP, which would be something like /tmp/nix-build-name-0/
<rizary_>
i see.
<clever>
rizary_: the stdenv will also cd into the copy after unpackPhase has run
<siers>
pie_, it fixes the shebang to nix store ruby, which knows where to find gems
o1lo01ol1o has joined #nixos
<clever>
rizary_: so for configurePhase and onwards, the current directory is the writable copy of the src
justanotheruser has quit [Read error: Connection reset by peer]
<DigitalKiwi>
what's the difference between pure-packages and top-level
philr has quit [Ping timeout: 265 seconds]
<DigitalKiwi>
all-packages rather, in top-level
cosimone has joined #nixos
alexherbo2 has joined #nixos
* DigitalKiwi
looks at pandoc and also thinks taffybar and xmonad might be ones to look at too
<pie_>
siers: so now you know :p
<rizary_>
I see.. got it. So iirc, after I `chmod +w -R $out` and the build finished, the permission will set to `read-only`?
<siers>
pie_, you and me both, buddy
<pie_>
(i dont use ruby)
<clever>
rizary_: correct
<rizary_>
ah finally.. thanks clever
jco has quit [Quit: WeeChat 2.6]
mexisme_ has joined #nixos
ng0_ has joined #nixos
<DigitalKiwi>
if i do the thing where checkout the commit that is currently the nixos-channel i'm on for caching, how do i rebase later ? never figured that one out :| always end up rebasing onto master before i'm done and losing the caching...
<pie_>
clever: i forgot to fix some vpn config when i rebuilt the vm, orthogonal problem probably.
growpotkin has joined #nixos
ng0 has quit [Disconnected by services]
ng0_ is now known as ng0
mexisme_ has quit [Ping timeout: 245 seconds]
juxiemaotu has joined #nixos
sigmundv has quit [Ping timeout: 258 seconds]
<siers>
should nix-env -iE '...callPackage () {}' work?
tpanum- has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
domogled has quit [Quit: domogled]
<juxiemaotu>
anyone know about nixos ipxe install? the config step?
<juxiemaotu>
there was a platform support ipxe, i wanna install nixos by ipex.what should i do?
drewr has quit [Quit: ERC (IRC client for Emacs 26.3)]
MightyJoe has joined #nixos
sigmundv has joined #nixos
<{^_^}>
[nixpkgs] @primeos opened pull request #75877 → scons: Switch to Python 3 → https://git.io/Je5mR
nilsirl[m] has joined #nixos
<nilsirl[m]>
When I run nix-shell and then enter tmux, the environment is changed a little making it often impossible to compile whatever I'm trying to compile. Is there a solution to this?
<tpham73>
I thing you should run tmux before enter the nix-shell
cyraxjoe has quit [Ping timeout: 258 seconds]
zupo has joined #nixos
<tpham73>
bc tmux would source the rc file, it change your env
o1lo01ol1o has quit [Remote host closed the connection]
nhey_ has joined #nixos
orivej has joined #nixos
zupo has quit [Client Quit]
zupo has joined #nixos
dejanr has joined #nixos
<nhey_>
Hi. Anyone that can help troubleshoot firefox audio problem? Even though I did not have pulseaudio enabled, firefox sound worked fine until a few days ago, where I had to enable pulseaudio in order to get sound. Then, a system upgrade broke the audio completely and now I'm back to ALSA only but no sound from firefox. Is there any special audio configuration I should use for firefox?
<pie_>
well this is going to be a problem Dec 18 16:35:01 nixos zd2f8vwl6wvr4qchpl586vbafrq8gl34-unit-script-network-addresses-eth0-start[693]: adding route 10.240.0.0/12... 'ip route add 10.240.0.0/12 via 10.250.0.4 dev eth0' failed: RTNETLINK answers: Network is unreachable
halfbit has joined #nixos
<pie_>
clever: i dont suppose theres anything for deferred routing setup?
<clever>
pie_: not that i know of
<pie_>
hm.
<pie_>
bottom line is i need to wait for the vpn to be up to add the route
fre has joined #nixos
fergus_x has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nilsirl[m] has quit [Read error: Connection reset by peer]
<azazel>
how can I force a runtime dependency on a package? There's this package named "squeezelite" that requires libmad.so to be available at runtime but it doesn't appear on an ldd
<{^_^}>
[nixpkgs] @NeQuissimus pushed 4 commits to release-19.09: https://git.io/Je53a
reallymemorable has joined #nixos
blaggacao has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<evanjs>
I could just override the src, but it looks like generic is in place to make that less painful, though I'm not sure how to use it within e.g. another expression's let block
cosimone has quit [Quit: Terminated!]
blaggacao has quit [Remote host closed the connection]
<evanjs>
Heck, essentially the entire expression is the generic block
blaggacao has joined #nixos
<evanjs>
Ohhhhhhhhhhhhhhhhhhh
<evanjs>
Okay so it just takes in version and sha256, so I literally only need to override those two things
<pie_>
it doesnt error out but if im not building a vm it complains about:
<pie_>
the option `virtualisation.cores' not existing
pikajude_ has quit [Remote host closed the connection]
zupo has joined #nixos
zupo has quit [Client Quit]
<{^_^}>
[nixpkgs] @filalex77 opened pull request #75883 → neo-cowsay: init at 1.0.0 → https://git.io/Je53F
ddellacosta has joined #nixos
ddellaco1 has quit [Ping timeout: 258 seconds]
rnhmjoj has joined #nixos
<rnhmjoj>
do you know if there's a link to the latest hydra build of a package (successful or not)?
<evanjs>
mrm... doesn't look like I can pass version or sha256 in from the top level, though
<juxiemaotu>
i have a problem, when i use command:
<juxiemaotu>
nix-env -p /nix/var/nix/profiles/system -f '<nixpkgs/nixos>' -I nixos-config=/etc/nixos/configuration.nix -iA system
<juxiemaotu>
it cant work ,prompt:
<juxiemaotu>
building '/nix/store/wifma5sybbf3bfv61p31izsfzzlp80v5-users-groups.json.drv'...
<juxiemaotu>
/nix/store/wpi89y86krq9rbvwcbx0hc36ibp5d0v7-stdenv-linux/setup: line 795: /build/env-vars: No such file or directory
<juxiemaotu>
building '/nix/store/xljqzg8nmzjli8ink7ysacql1q5ppjhb-crontabs.drv'...
<juxiemaotu>
/nix/store/wpi89y86krq9rbvwcbx0hc36ibp5d0v7-stdenv-linux/setup: line 795: /build/env-vars: No such file or directory
<juxiemaotu>
unpacking sources
<juxiemaotu>
/nix/store/wpi89y86krq9rbvwcbx0hc36ibp5d0v7-stdenv-linux/setup: line 795: /build/env-vars: No such file or directory
<juxiemaotu>
variable $src or $srcs should point to the source
<juxiemaotu>
builder for '/nix/store/xljqzg8nmzjli8ink7ysacql1q5ppjhb-crontabs.drv' failed with exit code 1
<juxiemaotu>
cannot build derivation '/nix/store/mzmmpf0nbx8kqrr34sxi7skfkv0091m7-etc.drv': 1 dependencies couldn't be built
<juxiemaotu>
building '/nix/store/vqiyhi2n4a8zjjy6lfqqm52gn8g0g2j9-grub-config.xml.drv'...
<juxiemaotu>
cannot build derivation '/nix/store/97fybrzinkmr4xqlkf534sdcgpqaaii2-nixos-system-nixos_server-20.03pre204216.cc6cf0a96a6.drv': 1 dependencies couldn't be built
<juxiemaotu>
error: build of '/nix/store/97fybrzinkmr4xqlkf534sdcgpqaaii2-nixos-system-nixos_server-20.03pre204216.cc6cf0a96a6.drv' failed
<juxiemaotu>
is there any mistake?
drakonis has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
equivrel has quit [Read error: Connection reset by peer]
equivrel has joined #nixos
<pie_>
is it just me or is logging for networkmanager broken on nixos? theres nothing on journalctl
thefloweringash has joined #nixos
<thefloweringash>
juxiemaotu: I think that's nix#3142, you can work around it by disabling the sandbox with `--option sandbox false`
tpham73 has quit [Remote host closed the connection]
<stites>
Hey all, I noticed something funny that is happening -- I just rolled back my nix directory via zfs snapshot. This saved me from a corrupted sqlite.db (which I'm very thankful for), but running nix-store --optimize, I'm noticing that my zfs filesystem is slowly growing in size.
bvdw has quit [Read error: Connection reset by peer]
<stites>
Pretty counterintuitive. Is this normal behaviour? Is there something I can do to debug this, if not?
bvdw has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pie_>
stites: i think whats happening is you are diverging from the snapshot
gxt has quit [Ping timeout: 260 seconds]
justanotheruser has quit [Ping timeout: 246 seconds]
<stites>
you'll only have to move it the second time you have a problem : )
<evanjs>
Sooo any thoughts on how I can override attrs on something like libwebsockets? not sure how to override/use e.g. `let generic = { version, sha256 }: stdenv.mkDerivation rec {`
justanotheruser has joined #nixos
justanotheruser has quit [Client Quit]
<dooms>
the libwebsockets exports are derived from calling that internal generic function?
fre has quit [Quit: fre: znc bye]
<jco>
stites: humm... how is this option supposed to be used?
dm9 has quit [Quit: WeeChat 2.7]
fre has joined #nixos
earldouglas has left #nixos [#nixos]
<stites>
it looks like it goes right under `useUserPackages` and you give it a string (like `bk`) which it move offending files to
zupo has joined #nixos
<jco>
oh right, it works this way!
<stites>
if a `file.ext.bk` file already exists, though, you'll end up with a similar error as before
<stites>
(as a heads-up)
<stites>
I would warn you that if you are getting a conflict with mimetypes.list, you'll probably see this error frequently
<duairc>
I'm trying to set up remote building with nix
<duairc>
I think everything on the remote side is fine
alexherbo26 has joined #nixos
alexherbo2 has quit [Ping timeout: 252 seconds]
<duairc>
On the local side, I have a nix.buildMachine with an sshUser and an sshKey
<duairc>
The problem is that builds fail with "Warning: Identity file /var/keys/ssh not accessible: Permission denied."
<duairc>
The SSH key is only readable by root and members of the keys group
<duairc>
I can make it world readable because the server isn't used by anyone else
<duairc>
But I'm wondering, could I also just add all the nixbld users to the keys group?
<duairc>
Is that who is trying (and failing) to read that file?
<fuzen>
How do unwrapped applications work? I am trying to use lutris-unwrapped, but it seems to be unable to read my home directory
<tilpner>
fuzen: That's a buildFHSUserEnv thing, not a -unwrapped thing
<tilpner>
fuzen: Does /host/home exist?
jgt2 has quit [Ping timeout: 252 seconds]
<fuzen>
I use /home/<User>
<chrisaw>
Was going to say - you can probably work around that with: profile = 'export HOME=/host/home' :)
<fuzen>
Does this need to be in /host/home?
<chrisaw>
I'm stuck trying to package up VMware for NixOS right now and wondering if any of you fine folks have any suggestions? Basically my two blockers are: 1.) If I try to patchelf the binaries they become too large (actual error message from patchelf) so that can't work. 2.) If I avoid patchelf and instead create a FHS env I can't set the suid bit on binaries. Does anyone have any ideas? I'm completely stuck on this which is
<chrisaw>
frustrating because I'm so close to finishing it and pushing it to nixpkgs.
<evanjs>
gustavderdrache: yeah I tried override attrs but I'm unsure how I can use it with a function like that
<evanjs>
overriding version and sha256 seems to have no effect
<gustavderdrache>
you want to override the 'src' attribute instead
<evanjs>
gustavderdrache: yeah that's what I ended up doing. I guess the way the expression is set up now is just enough to prevent me from using the generic attribute/simply passing in version+sha256
<gustavderdrache>
yeah, i think it's just a helper to reduce boilerplate
<gustavderdrache>
you have a normal derivation afterwards so you can use the usual tricks on it
chloekek has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<bt`>
I've just written my first package declaration mostly copied from gohufont's nix expression: http://0x0.st/z0j1.nix It's just a one off for personal use, so I'm wondering if modifying 'pkgs/top-level/all-packages.nix' and creating a 'pkgs/applications/...' is actually the best way to go about installing it? Also I've only seen the relative paths for these so I don't actually know where 'pkgs/' is.
mexisme_ has joined #nixos
dbmikus has joined #nixos
<vika_nezrimaya>
quick question: where does Nix store partial downloads from binary caches before unpacking them?
<vika_nezrimaya>
Memory? Folder in /tmp?
<vika_nezrimaya>
oh, looks like it reserves space and unpacks files in place
<vika_nezrimaya>
the problem is - nix-store --realise doesn't show download progress
ashesham` has joined #nixos
<worldofpeace>
bt`: are you trying to contribute it or use it right away in your configuration.nix?
orivej has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @voanhduy1512 opened pull request #75885 → asus-wmi-sensors: init at 0.0.1 → https://git.io/Je5Z3
<worldofpeace>
from reading "My personal bitmap font." I think you don't want to contribute this
<bt`>
worldofpeace: It's not really ready to distribute yet, so I'd just like to use it in my configuration.nix yes.
bt` has left #nixos ["ERC (IRC client for Emacs 26.3)"]
apeyroux_ has quit [Client Quit]
kleisli has joined #nixos
apeyroux has quit [Quit: leaving]
apeyroux has joined #nixos
apeyroux has quit [Client Quit]
apeyroux has joined #nixos
apeyroux has quit [Client Quit]
apeyroux has joined #nixos
apeyroux is now known as tmux
tmux has quit [Client Quit]
blaggacao has quit [Ping timeout: 258 seconds]
blahaj[m] has quit [Quit: User has been idle for 30+ days.]
atopuzov[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
blaggacao has joined #nixos
apeyroux has joined #nixos
apeyroux has quit [Client Quit]
segfault[m] has quit [Quit: User has been idle for 30+ days.]
orivej has joined #nixos
lordcirth has joined #nixos
joelpet1 has left #nixos ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
reanimus has quit [Ping timeout: 245 seconds]
kleisli has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @vcunat pushed to master « Revert "release: remove metrics from unstable channel (temporarily)" »: https://git.io/Je5n1
juxiemaotu has quit [Quit: WeeChat 2.4]
ninegrid has joined #nixos
kleisli has joined #nixos
<mog>
my machine no longer wants to suspend / hibernate. i think its related to the new nvidia release. what is the right way to overlay to try an older version of their drivers
<stites>
more weird stuff happening for me (post zfs snapshot rollback) -- I'm noticing that my computer wont boot to "phase 1" every other boot
<{^_^}>
[nixpkgs] @rycee opened pull request #75892 → emacsPackages.sv-kalender: init at 1.9 → https://git.io/Je5cG
<evanjs>
infinisil: I couldn't think of anything else :D
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
apeyroux has quit [Client Quit]
<stites>
it's very reliably working every other boot (and making to the uefi systemctl boot menu in all cases). would anyone have any suggestions for fixing this?
apeyroux has joined #nixos
apeyroux has quit [Client Quit]
vika_nezrimaya has joined #nixos
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
drakonis has quit [Ping timeout: 258 seconds]
<Ankhers>
Does anyone have experience using android studio on nixos that can point me to a guide or something detailing what I am supposed to be doing to develop applications?
TravisRt2botio[m has left #nixos ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
timokau[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
acarrico has quit [Ping timeout: 248 seconds]
truby has left #nixos ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
VaNilLa[m] has quit [Quit: User has been idle for 30+ days.]
<vika_nezrimaya>
Ankhers: Android Studio works fine for me on NixOS. I use it mainly to sift through logs on my phone, but I was able to compile apps with it. https://developer.android.com may help you learn some Android programming
<Ankhers>
vika_nezrimaya: Thanks. I don't remember the issues I was having the last time I tried, but when searching for "nixos android studio", I found a bunch of, admittedly old, tickets talking about it not working. I just wasn't sure if it was working properly yet.
<vika_nezrimaya>
There were some problems, and I've stumbled into bunch of them, but now it's working just fine!
<Ankhers>
Good to know. I will give it a go with this project and see what happens.
<{^_^}>
[nixpkgs] @abstracted opened pull request #75896 → pythonPackages.colorgram: init at 1.2.0 → https://git.io/Je5cN
coniferous-cube[ has quit [Quit: User has been idle for 30+ days.]
drakonis has joined #nixos
frislie[m] has quit [Quit: User has been idle for 30+ days.]
am3on[m] has quit [Remote host closed the connection]
sjkelly1 has joined #nixos
laas has left #nixos ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
corpix[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days."]
apeyroux has joined #nixos
mexisme_ has quit [Ping timeout: 248 seconds]
<Ankhers>
Are there any rust developers using nixos that can tell me the tradeoffs between using rustup, which I am used to using, and whatever nix gives for building/compiling rust programs?
<vika_nezrimaya>
Ankhers: I'm no rustacean but I've played around with rust on the level of hello world and I tried to use rustup. Both approaches work. Rustup gives you bleeding-edge stuff, Nix works well when you want to actually use your software :3 Kinda like with Python's virtualenvs in NixOS
<vika_nezrimaya>
You'll definitely need rustup if you use nightly features; it looks like Nixpkgs doesn't have a nightly rustc
<rihardsk[m]>
hi, what would happen if i migrated my synapse homeserver from one host to another without migrating the DB? would the new instance be in a broken state or would the Matrix protocol sort stuff out? (i don't care much for my messages and joined rooms because it was kindof just for experimenting with a private homeserver)
<rihardsk[m]>
i might still end up migrating the DB but i'm still interested in what would happen then
<rihardsk[m]>
* i might still end up migrating the DB but i'm still interested in what would happen if i wouldn't
<vika_nezrimaya>
@rihardsk I think you'll be better off asking that in one of the Matrix channels
<rihardsk[m]>
oh, sorry, my bad
gnidorah has quit [Quit: Connection closed for inactivity]
gkmngrgn has joined #nixos
<vika_nezrimaya>
it's ok :3
switchy has quit [Remote host closed the connection]
switchy has joined #nixos
<{^_^}>
[nixpkgs] @kjuvi opened pull request #75897 → [WIP] monitor: init at 0.6.1 → https://git.io/Je5CY
<Ankhers>
vika_nezrimaya: To get rustup, is there a nix derivation for it, or should I be able to install it using the "regular" way listed on the website?
<{^_^}>
[nixpkgs] @rycee opened pull request #75899 → Fix Python packages nevow and magic-wormhole-mailbox-server → https://git.io/Je5Cd
<vika_nezrimaya>
There's a nix derivation for it
zupo has joined #nixos
<vika_nezrimaya>
Ankhers: nix run nixpkgs.rustup
<Ankhers>
Thanks.
Ariakenom has quit [Read error: Connection reset by peer]
<dongcarl>
Is the nixops mailing list private? Can't seem to see/load it
<erictapen>
Ankhers: There is also the mozilla overlay for nixpkgs, which I use to build Rust programs with an unstable rustc.
<{^_^}>
[nixpkgs] @jbedo opened pull request #75900 → Tebreak, minia, last, bx-python, python-lzo → https://git.io/Je5Cp
<Ankhers>
erictapen: How do things like rls work with that?
dirkx_ has joined #nixos
<zeta_0>
i finally got the nix pkg protonvpn up and running, but now it does not let emacs rcirc connect to irc freenode, is there a nix setting that i need to change to get this to work or is this more specificg to protonvpn?
<erictapen>
Ankhers: mh never used the RLS. You could install the rustc through the moz_overlay and then maybe let use the RLS that unstable rustc instead of the stable one of nixpkgs?
<zeta_0>
my guess is that the port 6697 is being blocked and i need to open it?
dirkx_ has quit [Ping timeout: 268 seconds]
<pie_>
this sounds hella sketchy but i dont see a way to do it other than to copy or patch code, do I use mkOverride to overwrite a subattribute of a systemd service definition, instead of merging it?
leotaku has joined #nixos
<zeta_0>
clever: ^
<jared-w>
Ankhers: rls works pretty nice with the overlay. The default "install everything" example that they have comes with the correct RLS for the version of rust you get from the overlay
erictapen has quit [Quit: leaving]
<jared-w>
Ankhers: I personally use rust_analyzer. I install it the normal way with the git repo and then use coc-rust_analyzer in neovim to setup the rest of it. The only gotcha is needing the RUST_SRC_PATH env variable to be set. Probably a quirk of my particular setup
<jared-w>
RUST_SRC_PATH = "${(pkgs.latest.rustChannels.nightly.rust.override { extensions = [ "rust-src" ]; })}/lib/rustlib/src/rust/src"; (because for some reason getting /lib/rustlib/src/rust/src without setting the override wasn't working correctly the last time I set this up)
<zeta_0>
i have seen people on this channel using protonvpn, how were they able to connect to irc freenode?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
magneticduck has quit [Remote host closed the connection]
<chloekek>
Is there a nice mnemonic for the order of the words in the name “concatMapStringsSep”? I need this function often and I have to look it up every time.
<chris__>
Is there any documentation about the `nix` attribute in the nixos configuration? The option that generates the `/etc/nix/nix.conf`. Bit difficult to google for!
<infinisil>
chris__: Also relevant: `man nix.conf`
<chris__>
Haha, dam well.. I'm sure I'll find it super helpful in future.
knupfer has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #75902 → gobuster: init at 3.0.1 → https://git.io/Je5lv
<chris__>
Whoops.. So I tried adding my private key to the sandbox.. And now if I do another nixos-rebuild I get an error of `error: while setting up the build environment: getting attributes of path...`... Do I have to reboot to an old generation or is this fixable perhaps?
philr has quit [Ping timeout: 240 seconds]
kleisli has quit [Ping timeout: 258 seconds]
ericsagnes has quit [Ping timeout: 245 seconds]
<pie_>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<pie_>
,
<{^_^}>
Special commands: find tell locate expand guys - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries unstable escape'' library declarative howoldis unfree ping paste escape" callpackage pinning -a profiling ask overlay pr which-channel stateversion nixlang++ wololo channels xml botsnack ifd xy imperative cache exec fancy-uninstall pills tofu invite haskell loot home-manager matrixbridge pointers stuck tias cloak
<pie_>
,locate ping
<{^_^}>
Found in packages: axis2, cheat, cjdns, irssi, toybox, busybox, iputils, charybdis, inetutils, ircdHybrid, factor-lang, silc_client, home-assistant, unixtools.ping, bash-completion, nodePackages.gtop