<shapr>
nixos is the biggest pile of yaks I've found in the past fifteen years
<shapr>
it's great fun!
mexisme has quit [Ping timeout: 248 seconds]
<shapr>
As I get my personal installation setup, I'm slowly twisting my brain around to wonder why I have so many things in scope
<shapr>
I've put a big pile of things in environment.systemPackages and now I'm wondering if there's a separate config for packages available when I'm logged in?
<shapr>
Is there environment.userPackages or something?
<lovesegfault>
Could i just call that straight from the cli with nix-build?
<infinisil>
Yup: nix-build '<nixpkgs/nixos>' -A vm --arg configuration ./configuration.nix
<lovesegfault>
Oh wow
<lovesegfault>
This rocks
<infinisil>
Well or with nixos-rebuild build-vm -I ...
werner291 has quit [Remote host closed the connection]
dansho has quit [Ping timeout: 268 seconds]
logzet has quit [Ping timeout: 248 seconds]
logzet has joined #nixos
Mark_ has joined #nixos
<jackdk>
,locate pci.ids
<{^_^}>
Found in packages: lshw, pciutils
vld has joined #nixos
<Mark_>
Hi all, Is there any way to get the graphical installer image to point to linuxLatest or is there an image available somewhere that does this? I get a firmware error when I boot to the installer image that says wifi and graphics are having issues. this is on a system76 galago pro and its what their support told me would happen unless the kernel pointed to 5.30 or later
<Mark_>
once booted and when I run start display-manager the screen kind of clickers twice quickly and then nothing happens, the terminal prompt returns and there is no output
<Mark_>
not yet, I could install nix on this new pop_os install on this machine or I could get it running in vmware on my mac.
<Mark_>
oh it actually looks relatively straightforward
alexherbo2 has joined #nixos
<Mark_>
from that link
<Mark_>
so correct me if I am wrong, I could get nixos running in vmware from the gui installer image, make the config change that will point it to linux latest, rebuild, reboot and then follow the instructions in that link to export the system as an ISO
selfsymmetric-mu has joined #nixos
Mateon3 has joined #nixos
<selfsymmetric-mu>
Anyone manage to get Halo: Master Chief Collection working on Steam? When using ProtonDB I keep bouncing off the Xbox Live signin error.
<buckley310>
if you can install nix on a system, then you can use the way documented at that URL, but change `installation-cd-minimal.nix` to `installation-cd-graphical-kde-new-kernel.nix`
<buckley310>
mark_ and yes, you can build it in a VM
<Mark_>
alright thanks buckley310 will give it a go
<buckley310>
mark_, you dont need to upgrade the VM and then export it, just boot the VM using whatever kernel, and then build the ISO with the new kernel
alex`` has joined #nixos
<buckley310>
if you use `installation-cd-graphical-kde-new-kernel.nix`, the ISO will have the latest kernel, no matter what kernel the VM is using to run
<{^_^}>
[nixpkgs] @Infinisil opened pull request #77416 → Fix store imports from NixOS modules → https://git.io/JvvVd
<evanjs>
meh. if anybody has an idea on how to install shell completions for broot (`broot install` is the method in the README) lemme know lol
<evanjs>
just bumped the version for now
<infinisil>
evanjs: Hehe I was looking into it too earlier today after the HN post :)
<infinisil>
evanjs: For "standard" shells it's supposed to add it to your .bashrc or whatever automatically, but since we probably have immutable paths, you need to do that in your nix config instead. All you need is a `source ~/.config/broot/launcher/bash/br` in your bash/zsh config
<infinisil>
Unfortunately there's no nice way to install this file in the derivation output directly..
justanotheruser has quit [Ping timeout: 248 seconds]
dustinm` has quit [Quit: Leaving]
ivan has quit [Quit: lp0 on fire]
Scriptkiddi has quit [Remote host closed the connection]
das_j has quit [Remote host closed the connection]
das_j has joined #nixos
Scriptkiddi has joined #nixos
pxc has quit [Ping timeout: 258 seconds]
dustinm has joined #nixos
<{^_^}>
[nixpkgs] @petabyteboy opened pull request #77417 → remove old gradle versions → https://git.io/Jvvwm
felixfoertsch23 has joined #nixos
justanotheruser has joined #nixos
felixfoertsch has quit [Ping timeout: 260 seconds]
<zeta_0>
clever: are you there, i have a quick question?
<{^_^}>
[nixpkgs] @marsam opened pull request #77418 → gitAndTools.git-filter-repo: init at 2.24.0 → https://git.io/JvvwC
Mark_ has quit [Remote host closed the connection]
UndefinedIsNotAF has quit [Ping timeout: 264 seconds]
UndefinedIsNotAF has joined #nixos
ivan` has joined #nixos
vld has joined #nixos
justanotheruser has joined #nixos
fragamus has joined #nixos
justanotheruser has quit [Read error: Connection reset by peer]
vld has quit [Ping timeout: 268 seconds]
<thomashoneyman>
hydra...has not been pleasant to work with, tbh
andi- has joined #nixos
<gchristensen>
it is a bit of a bear
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<thomashoneyman>
it may be just fine in practice (though at work we have some trouble with slow evaluations)
<thomashoneyman>
but it's quite difficult figuring out what to even do to get it set up and working
<thomashoneyman>
for example, i would like to now set up Hydra to use webhooks instead of polling
<thomashoneyman>
which i feel vaguely must be possible
<gchristensen>
hmm not sure, it may be
<thomashoneyman>
but my only real option is to grep around GitHub (unless there's some Hydra documentation foo i'm unaware of)
<thomashoneyman>
i'm using it specifically in a teaching project to help others set up Hydra and understand what they're doing along the way
<thomashoneyman>
but i'll admit i'm a bit uneasy about recommending it
<thomashoneyman>
then again i haven't used any other CI for nix-based projects
<thomashoneyman>
and it's fantastic it exists and for free in the first place
<thomashoneyman>
so i'm not 100% complaints
<thomashoneyman>
but it feels like it shouldn't be so difficult to put together a working setup
<gchristensen>
yeah, it is really built and maintained for building Nixpkgs, which is a massive massive project and doesn't really work like a lot of projects would want CI to work
<gchristensen>
it *can* work, and people have made it work
<thomashoneyman>
ghcristensen: what's the alternative?
<thomashoneyman>
Hercules CI exists
<gchristensen>
I don't have a great recommendation
<gchristensen>
unfortunately :/
<gchristensen>
Github Actions has a Nix thing
justanotheruser has joined #nixos
<thomashoneyman>
The Cachix one?
<gchristensen>
I believe so
chenhq2005 has joined #nixos
<zeta_0>
infinisil: for some reason haskell-ide-engine(all-hies) does not work correctly when i enter into a nix-shell with an initialized cabal project, why is this and how do i fix it?
<zeta_0>
infinisil: i forgot to mention that i am using emacs as well
<zeta_0>
well i have all-hies installed in home.nix so does that mean i will need to install it in default.nix for it to work in a nix-shell correctly?
mexisme_ has quit [Ping timeout: 246 seconds]
<zeta_0>
i am stuck
<gchristensen>
zeta_0: that is a pretty complicated question! you're going to need to include a *ton* of context including what you've tried and what exactly you're seeing, etc. Maybe ,smart-questions would help
<zeta_0>
gchristensen: well my home.nix emacs packages work fine inside of a nix-shell, but all-hies(installed in home.nix) loads inside of the nix-shell but none of hie's features are activated, so it's like having nothing there at all?
<zeta_0>
gchristensen: i don't think i need to install all-hies in default.nix
<zeta_0>
gchristensen: and sorry sometimes i am not to good at asking questions, i will try to be as clear as a i can
<gchristensen>
sorry, I can't help -- I don't know anything about hie, cabal, or home.nix :) now is a good time to start practicing -- showing really strong effort in helping us help you will have other people more eager to help :)
<thomashoneyman>
ghcristensen: just for clarification, is there the sense that Hydra would like to become a solution for companies using Nix? Or should it be understood more as a solution for Nixpkgs that may also be used by companies (if they want) but which isn't really intended for that purpose?
<zeta_0>
hie is throwing this weird parse error: "parsing Config failed, expected Object, but encountered String"
<gchristensen>
zeta_0: did you read that full link?
<thomashoneyman>
ie. should there be an expectation that things will improve for non-Nixpkgs use cases in the future? Or more "that would be nice" but no active interest in that direction
<gchristensen>
thomashoneyman: it is definitely, squarely "would be nice!". maybe we could PM a bit?
<zeta_0>
gchristensen: sorry, i guess i am going to have to ask at the #haskell-ide-engine channel tomorrow, hopefully they can help
<gchristensen>
zeta_0: okay, I recommend reading that whole page before doing that, though, it is worth your time and effort, and will serve you well
<zeta_0>
gchristensen: ok, i'll read the link, i know i am horrible at asking questions
<zeta_0>
gchristensen: i got a really efficient haskell work flow going with nix-shell, i can now setup a cabal project really quickly, now i just need to figure out how to get my development tools like all-hies working correctly with this setup, then i should be good to go with the workflow
<gchristensen>
nice
<gchristensen>
sounds great!
<{^_^}>
[nixpkgs] @Shados closed pull request #60485 → Add support for booting as Xen dom0 on EFI systems → https://git.io/fjZvI
<{^_^}>
[nixpkgs] @Shados opened pull request #77421 → Xen: build EFI binaries and drop unsupported versions → https://git.io/Jvvov
chenhq2005 has quit [Ping timeout: 240 seconds]
chenhq2005 has joined #nixos
<thomashoneyman>
gchristensen: ah, i recognize this, but I hadn't spent much time with it
<thomashoneyman>
i should watch the video
selfsymmetric-mu has quit [Remote host closed the connection]
<risson>
Hey! What would be the process to change the name of an option? I think `programs.tmux.extraTmuxConf` could become `programs.tmux.extraConfig`
fragamus has quit [Read error: Connection reset by peer]
thomashoneyman has quit [Ping timeout: 265 seconds]
<zeta_0>
gchristensen: buried deep in hie's documentation i found a section on how to enable hie in a cabal projects configuration, i'll try to get it up and running tomorrow
<{^_^}>
[mobile-nixos] @samueldr opened pull request #68 → Fix shutdown/reboot in stage-1 → https://git.io/JvvK4
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
Rusty1 has quit [Quit: Konversation terminated!]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
vld has joined #nixos
zeta_0 has joined #nixos
zeta_0 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @rissson opened pull request #77423 → nixos/tmux: rename extraTmuxConf to extraConfig → https://git.io/JvvKw
chenhq2005 has joined #nixos
vld has quit [Ping timeout: 258 seconds]
palo1 has joined #nixos
lor|d has joined #nixos
lord| is now known as Guest26745
Guest26745 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
<Ashy>
hmm, has the latest firefox not been pushed to 19.03 yet?
<jackdk>
I am running nixos, but used nix-channel --add to add a channel for my user only. It fails to import if I `import <my-channel>`, because NIX_PATH doesn't list my user channels. This seems surprising to me - is it intended?
<Ashy>
to handle that CVE
<clever>
jackdk: you need to relog the first time you add a channel to non-root
<adisbladis>
Ashy: 19.03 is not supported
<clever>
jackdk: the .bashrc stuff checks if you have any channels, when deciding if your channels should be in NIX_PATH
<jackdk>
thanks clever.
<Ashy>
adisbladis: Oh. :O - so upgrade to 19.09 then?
<adisbladis>
Ashy: Indeed.
o1lo01ol1o has quit [Remote host closed the connection]
<adisbladis>
Ashy: Once a new release has been cut we're only officially supporting the previous release for about a month
fusion809 has quit [Remote host closed the connection]
<adisbladis>
Ashy: It got away frome everyone by now ;)
<grw>
hi all- i have a problem using boot.extraModulePackages
<grw>
my machine has two different dvb tuner, one is supported by mainline and one needs kernelPackages.tbs
<Ashy>
adisbladis: haha
<grw>
the out-of-tree one works using module from tbs, but when i try to modprobe the driver for mainline one i get [ 13.570367] v4l2_common: exports duplicate symbol v4l2_ctrl_query_fill (owned by videodev)
smatting has joined #nixos
<grw>
i think this is because v4l2_common is already loaded from the tbs modules..
<grw>
any ideas how i can fix?
<clever>
grw: can you paste your extraModulePackages line?
nakkle has joined #nixos
<grw>
is just: boot.extraModulePackages = [ pkgs.linuxPackages_4_19.tbs ]
<clever>
grw: thats your problem
<grw>
maybe i need config.boot.kernelPackages.tbs ?
<clever>
grw: you must use config.boot.kernelPackages.tbs
<clever>
grw: your mixing the 4.19 modules, with a not 4.19 kernel
<grw>
i have boot.kernelPackages = linuxPackages_4_19
<clever>
grw: and what does `uname -a` report?
<grw>
4.19.93
<clever>
grw: ls -l /run/{current,booted}-system/kernel
<grw>
i did try to use the config.boot.kernelPackages first, but i have to override some attributes of the tbs package and it did not seem to apply them this way
<clever>
grw: you must use the proper override function
<clever>
grw: .extend takes an overlay
o1lo01ol1o has joined #nixos
<grw>
clever: ah, thx. do you have an example?
<clever>
grw: for example, linuxPackages_4_19 = super.linuxPackages_4_19.extend (kself: ksuper: { ... });
o1lo01ol1o has quit [Read error: Connection reset by peer]
<clever>
grw: the problem, is that nixos itself, is using .extend to adjust the .kernel attribute some, which undoes whatever // did
Chiliparrot has joined #nixos
o1lo01ol1o has joined #nixos
<grw>
great, thx. will report back in some hours after build :)
<grw>
clever++
<{^_^}>
clever's karma got increased to 303
<clever>
grw: next, you want to check the source for both v4l2_common and videodev, do they actually both export v4l2_ctrl_query_fill? perhaps the module isnt compatible with that kernel version?
<grw>
clever: i have videodev loaded and the out-of-tree tuner works, so i guess it is compatible?
Naptra has joined #nixos
<clever>
grw: videodev and v4l2_common may not be compatible with eachother, youll want to compare their sources and see if they disagree on v4l2_ctrl_query_fill
Guanin has joined #nixos
<grw>
hm, i see.. will try to check
veske has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed 208 commits to staging-next: https://git.io/JvvPp
<{^_^}>
[nixos-weekly] @domenkozar pushed 6 commits to production: https://git.io/JvvMX
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « Call for Content: 2020/02 »: https://git.io/JvvM1
<{^_^}>
[nixos-weekly] @domenkozar opened pull request #110 → Call for Content: 2020/02 → https://git.io/JvvMD
Naptra has quit [Quit: Leaving]
<juhe>
Hi, I'm lookin for a solution of how to override systemd-networkd-wait-online target, so that I can configure my own parameters to it in order to match the "online" requirement of my machine. Having 'systemd.services.systemd-networkd-wait-online.serviceConfig.ExecStart = "${config.systemd.package}/lib/systemd/systemd-networkd-wait-online -i enp2s0:routable"; ' in my config doesn't seem to work, systemd calls original version which is with
<juhe>
out parameters. Any idea what am I doing wrong?
ThatDocsLady_ has joined #nixos
<LinuxHackerman>
juhe: it's a very odd/non-intuitive thing, iirc you need to set it to a _list_ containing first the empty string then the value that you actually want
<LinuxHackerman>
juhe: that results in two ExecStart lines in the unit override file, one being ExecStart= (to "clear" the ExecStart of the service) and the next setting the value you actually want
<juhe>
LinuxHackerman: sort of makes sense, will try now
<LinuxHackerman>
juhe: the best of NixOS's UX meets the best of systemd's UX xD
<juhe>
:-D
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<juhe>
LinuxHackerman++
<{^_^}>
LinuxHackerman's karma got increased to 1
<juhe>
LinuxHackerman: Indeed, it works! Thank you!
<LinuxHackerman>
oh no, my karma's split!
<LinuxHackerman>
:D
<sphalerite>
My first karma on LinuxHackerman
* juhe
is confused...
<juhe>
multiple irc accounts would explain it though :)
<brano543>
Hi guys. I am on non-nixos system (RHEL) and I am trying to propagate CA certificate file inside builGoModule. I have tried defining GIT_SSL_CAINFO, OPENSSL_X509_CERT_FILE and SSL_CERT_FILE pointing to /etc/ssl/certs/ca-bundle.crt with no success. It is still not being able to correctly fetch the Golang modules. Can anybody help me out please?
<brano543>
I am 100% positive it is Nix-related as I am getting x509: certificate signed by unknown authority only inside Nix derivation. Normally I can do the steps just fine outside of nix sandbox.
mexisme_ has quit [Ping timeout: 248 seconds]
Chiliparrot has joined #nixos
<hax404>
if i create pull request for an update (v1 -> 2). and in the meantime, there is a newer version (v3) of the software, should i withdraw the first pullrequest (v1->2) and build a new pull request (v1 -> 3) or it is better to only make the pull request v2 -> 3?
<hax404>
i could also append the commit (v2 -> 3) to the pull request (v1 -> 2) and rename it
<{^_^}>
[cabal2nix] @peti pushed to master « update-stackage.sh: don't match the "LTS Haskell" comment in the docs »: https://git.io/Jvv9z
erictapen has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jvv9X
chenhq2005 has joined #nixos
apeyroux has joined #nixos
rogue_koder has joined #nixos
<brano543>
Hi guys, is there anyone who would help me set up CA bundle correctly inside derivation on non-nixos system? I am trying to use buildGoModule, however I get error x509: certificate signed by unknown authority
<LnL>
nativeBuildInputs = [ cacert ]; should do the trick
<LnL>
alltho that probably won't help much since it's probably trying to do a network request which isn't allowed
<brano543>
LnL: Hey there. I have tried adding this option, but the result is the same. I don't know how to force Nix to know the location of CA files. Normally when I try this outside Nix it picks up correctly the certificates defined in /etc/ssl/certs/ca-bundle.crt
<LnL>
there's no /etc inside the build
<brano543>
LnL: I am new to Nix. Is there some way I can create it inside the derivation and set the environment correctly to pick it up?
<LnL>
no
<LnL>
adding cacert will set SSL_CERT_FILE to something like /nix/store/p8v4wl2xx9bzr7jj25m8g8dlyqy1h0qj-nss-cacert-3.48/etc/ssl/certs/ca-bundle.crt
<{^_^}>
[nixpkgs] @peti opened pull request #77442 → Revert patch: add "doc" to ghc wrapper → https://git.io/JvvHy
kenjis has joined #nixos
ericsagnes has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<brano543>
LnL: that did the trick :D although I don't understand how come this is the only supported scenario on how to add custom certificate to trusted store. I thought that Nix copies the one in system, but it seems he generates a default one.
mexisme_ has joined #nixos
ddellacosta has joined #nixos
<LnL>
what does nix show-config | grep 'sandbox =' return?
<brano543>
LnL: sandbox = false
<LnL>
yeah so your build probably won't work otherwise
<LnL>
which means it's not reproducable
<brano543>
LnL: btw does this security.pki.certificateFiles inside config actually do something on non-nix OS?
<LnL>
that's nixos specific and won't have impact on builds
<LnL>
builds don't have network at all so they don't need or have custom certificates
<brano543>
LnL: I had to set the sandbox to false, otherwise I was getting errors during the auto-install script.
<LnL>
if you disable the sandbox you loose many of the guarantees nix tries to provide for you
mexisme_ has quit [Ping timeout: 260 seconds]
<brano543>
LnL: What is the difference exactly? I checked with ldd where are all of the linked libraries of everything that is build and it always resides inside /store.
<LnL>
your build depends on the network, if anything on the servers change your build result changes making it not reproducable
<LnL>
this is why for everything that's downloaded nix requires you to specify an hash
<zimbatm>
Nix Friday in 20min! adisbladis will be interviewed and talk about poetry2nix (python packaging). https://www.twitch.tv/zimbatm/
<brano543>
LnL: I am using the Niv project to pin the Nixpkgs to specific commit. I can't imagine how would it not depend on network. For packages which I need custom version I am using overlay.
<etu>
zimbatm: oh, better leave work now so I can catch it on my way home :)
mac10688 has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 opened pull request #77443 → samba: move build tools to nativeBuildInputs → https://git.io/JvvQz
<zimbatm>
:)
boogiewoogie has quit [Remote host closed the connection]
boogiewoogie has joined #nixos
kenjis has quit [Remote host closed the connection]
<boogiewoogie>
has something changed in the way nix-shell works? I've been using this https://gist.github.com/boogewooge/460e29302e988b9908ed53a735164841 to get into an environment to install something off a script. now the nix-shell run on this expression doesn't know any of the inputs.
kenjis has joined #nixos
tigran has joined #nixos
aexoxea has quit [Quit: Goodbye!]
chagra has quit [Ping timeout: 265 seconds]
ddellacosta has quit [Ping timeout: 268 seconds]
chagra has joined #nixos
<{^_^}>
[nixpkgs] @alyssais opened pull request #77444 → nixos/mailman: lots of big improvements → https://git.io/Jvv7f
aexoxea has joined #nixos
cosimone has quit [Quit: Terminated!]
ddellacosta has joined #nixos
<wedens[m]>
how do I specify build directory for autotools project? (latest libvirt version) I get "Build directory must be different from source directory"
<infinisil>
boogiewoogie: You want to use stdenv.mkDerivation instead of the raw derivation primitive
<infinisil>
Well, at least all the buildInputs and such won't have any effect unless you do
<evanjs>
Is there a place in the manual re cross-compiling/overriding libc with e.g. uclibc-ng?
tyrion-mx has joined #nixos
fendor has quit [Ping timeout: 265 seconds]
<tyrion-mx>
Hola, I just copied the latest graphical installer into a usb stick with dd, but it drops me into a grub shell when I try to boot it. Any possible explanation?
<evanjs>
I see "Building statically linked packages" on the cheatsheet but I can't find any good/official examples of overriding stdenv or etc
<brano543>
LnL: Thank you for giving me good advice. I have tried to reinstall nix without sandbox false, now all packages are retrieved from Nix cache. Before something needed to be recompiled. Now it was orders of magnitude faster to build it :)
<Shoubit>
tyrion-mx, does the minimal/non-graphical image do the same thing? Also, try using Etcher to flash the image to your USB disk, or otherwise verify that the image isn't corrupted on disk somehow.
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @meatcar to release-19.09 « nixos/powertop: wait for hardware to initialize »: https://git.io/Jvv77
<tyrion-mx>
Shoubit: thank you for the suggestion. I think I may have written the image to /dev/sdb1 instead of /dev/sdb ... I will try again :)
<{^_^}>
[nixpkgs] @kalbasit merged pull request #76944 → go_1_12, go_1_13: skip TestExtraFiles on 32-bit arm → https://git.io/JepwU
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @thefloweringash to master « go_1_12, go_1_13: skip TestExtraFiles on 32-bit arm (#76944) »: https://git.io/Jvv75
<tigran>
Hi. Trying to package VMware player - they have an installation script which itself generates and runs other shell scripts with /usr/bin/env shebang. patchShebangs doesn't help, since the scripts are generated during build. Any easy way to solve this?
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
drakonis has joined #nixos
fendor has quit [Read error: Connection reset by peer]
<catern>
hmmmm, I have my ZNC configured with NixOS, but I noticed that I have my ZNC users/networks/passwords configured in two places: my IRC client, and the ZNC configuration. I think I should have my IRC client (Emacs) get that configuration from the same source as ZNC
<catern>
I see a few options: generate some Elisp to configure Emacs from Nix, have Emacs read the Nix config at runtime, or have Emacs read the ZNC config at runtime (which I could do by just building the NixOS system locally :))
<catern>
which one should I do, do you think, #nixos?
<infinisil>
There is also a way to check whether no value at all is set, but that's often not preferable
<davidtwco>
infinisil: thanks, I've just found `types.nullOr` so I'll do that and default to `null`.
<laikq>
How do I run nix-locate here?
<infinisil>
davidtwco: Sounds good :)
<infinisil>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<infinisil>
laikq: ^
smatting has joined #nixos
<infinisil>
Or `,locate bin foo` to find binaries named foo
opthomasprime has joined #nixos
<laikq>
,locate netlink.h
<{^_^}>
Found in packages: zig, ell.dev, lkl.dev, libnl.dev, linux.dev, emscripten, tshark.dev, linuxHeaders, wireshark.dev, linux-libre.dev, linux_mptcp.dev, linux_latest.dev, linuxPackages.bcc, linux_mptcp_94.dev, linuxPackages_4_4.bcc, linuxPackages_4_9.bcc, linuxPackages_4_14.bcc, linuxPackages-libre.bcc, linuxPackages_hardened.bcc, linuxPackages_xen_dom0.bcc, linuxPackages_4_4.kernel.dev, linuxPackages_4_9.kernel.dev, and 11 more
chloekek has quit [Quit: WeeChat 2.6]
<laikq>
infinisil: Thx :)
opthomasprime has left #nixos [#nixos]
rogue_koder has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @tobim opened pull request #77451 → glog: fix on darwin; provide gflags → https://git.io/JvvFa
jgeerds has joined #nixos
nexgen has joined #nixos
jluttine has quit [Quit: WeeChat 2.5]
<laikq>
,locate netlink/netlink.h
<{^_^}>
Found in packages: libnl.dev
<infinisil>
laikq: Btw it also works in the bots PMs, which is probably better for many lookups
drakonis has quit [Quit: WeeChat 2.6]
opthomasprime has joined #nixos
jluttine has joined #nixos
<Valodim[m]>
is there a good way to do that that doesn't involve a bot? :)
kenjis has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
ddellacosta has joined #nixos
<jtojnar>
,escape''
<{^_^}>
'' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<catern>
ooh, if I'm configuring both my IRC client and my IRC server with Nix, I could generate a random password *at build time* and configure both of them with it
<catern>
then I wouldn't need to store secrets in my configuration
<Taneb>
They would however be stored in the nix store
<notgne2>
catern: that sounds impure, unless you already know what the random password is going to be
<catern>
yeah, that's going to happen anyway
<catern>
notgne2: oh good point, it is impure
<Taneb>
And it's not going to be reproducible
erasmas has joined #nixos
<jtojnar>
bah, how would I escape '${foo}' for ''?
<jtojnar>
other than ugliness like '${"$"}{foo}'
<kalbasit>
The `Priority` returned by a binary cache. If a substitution was found in 2 binary caches which one will be used? Higher or lower priority?
<catern>
hmm, maybe I don't care about being impure?
<gustavderdrache>
> ''''\'''${foo}''
<{^_^}>
"'${foo}"
<catern>
is there some way I could do this that wouldn't be impure... or wouldn't be a problem... hmm....
<gustavderdrache>
''$ escapes the dollar sign
<clever>
kalbasit: lower numbers are prefered, the official cache is 40, and a hydra is 100
<notgne2>
catern: you could just have the secrets in a regular old file, most modules will allow you to point to this file instead of a string
<{^_^}>
[nixpkgs] @FRidh pushed 71 commits to staging-next: https://git.io/Jvvbu
<catern>
notgne2: sure that's standard Nix secret management
<catern>
but I think most people don't have the option of generating their secrets
<gchristensen>
flokli++ for this incredible clean-up effort
<{^_^}>
flokli's karma got increased to 6
<notgne2>
you could then configure a oneshot service in systemd that ensures the file exists and has random contents
<catern>
so I wonder if having that option allows some other nicer way to do it?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @mschuwalow to master « stups-fullstop: init at 1.1.31 »: https://git.io/Jvvbb
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
justanotheruser has quit [Ping timeout: 258 seconds]
<catern>
oh, I've got it
<catern>
I'll just generate the key in Nix code (using some scary builtin), or in a shell script wrapping Nix code
growpotkin has joined #nixos
justanotheruser has joined #nixos
Rusty1 has joined #nixos
<catern>
then the build from .drv to store path will be deterministic, it will only be .nix to .drv that is nondet
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jared-w>
notgne2: Doesn't pointing to a file in a module copy that file to the store?
opthomasprime has left #nixos [#nixos]
<notgne2>
jared-w: that'd be if you used something like `builtins.readFile`, lots of modules take an actual path, which doesn't get used until runtime
Jackneill has quit [Remote host closed the connection]
<catern>
is there a (scary, secret) builtin for running an arbitrary shell command at Nix code evaluation time? could I achieve this secret generation with IFD?
<notgne2>
catern: you can use pkgs.runCommand but it will try its best to stop you from doing what you're trying to do
<catern>
yeah, that will be fine, to have to enable it with a command line switch
laikq has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 265 seconds]
laikq has joined #nixos
<laikq>
hey, I'm trying to package owlink and run into errors at runtime: "pcap: Unable to open savefile (MY-WIFI-INTERFACE: no such file or directory); netlink: Operation not supported"
<{^_^}>
[nixpkgs] @flokli opened pull request #77456 → firefoxPackages.tor-browser*: mark as vulnerable → https://git.io/JvvN5
drakonis has quit [Ping timeout: 268 seconds]
phreedom has quit [Ping timeout: 240 seconds]
lukash_ is now known as lukash_|away
laikq has quit [Quit: Leaving]
<jared-w>
eagerly awaiting the recent haskell updates and addition of glirc to nixos-unstable :) I think it's going to get merged in pretty soon today, but idk when it'll build and trickle over to unstable
<emily>
because '' syntax hates you and wants you to die
<gchristensen>
no thath is bash syntax
<gchristensen>
it is making sure to replace "/bin/foo" with "/nix/store/hash-coreutils/bin/foo"
<emily>
ohh
<evanjs>
Oh okay cool. Noticed it after the fact and just wanted to ensure I wasn't doing anything wrong :P
<emily>
I commented before clicking, never mind >_>
dm9 has quit [Quit: WeeChat 2.7]
<emily>
...it is true that '' escape syntax hates you though
<evanjs>
Didn't see anything in the manual(s) so :P
<gchristensen>
hehe
<evanjs>
emily: yeah I don't like it either :P
<evanjs>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 194
sigmundv_ has quit [Ping timeout: 260 seconds]
<jared-w>
damned if you do, damned if you don't. Absolute path linking to binaries is super error prone but just execing random strings from a global path is also insanity
<jared-w>
and most exec language implementations require an absolute path anyway so...
shibboleth has joined #nixos
<gchristensen>
yeah we need an `ld` for exec()
<jared-w>
can you even _do_ that with exec?
<gchristensen>
nah :P
<jared-w>
lol
<gchristensen>
but you should be able to! :)
<jared-w>
it'd be wild. Imagine if you could try several different directories so that a single system call could accidentally turn into 35,000 if you hit a pathological case
* jared-w
realizes why exec doesn't have an ld
<gchristensen>
okay not exactly the same thing, just the concept
<gchristensen>
like bash script -> (ld-but-for-exec) -> bash script with every executable identified by absolute path
<gchristensen>
jared-w: sure but it isn't very thorough.
<evanjs>
Not as much as other libc stuff AFAIK. Since musl has a helper set that gchristensen just linked
<evanjs>
Was talking to a coworker earlier about doing the same for uclibc but no clue where to start with that
<jared-w>
broot does look kinda cool tho. tree+fuzzy-finder+cd+ls+ncdu
<{^_^}>
[nixpkgs] @iv-nn opened pull request #77461 → vimPlugins.increment-activator: init at 2019-05-09 → https://git.io/JvvAE
<jared-w>
might as well through a small sysvinit implementation in there while they're at it
<lordcirth>
gchristensen, for any package, I can just try pkgs.pkgsMusl.foo ?
<{^_^}>
[nixpkgs] @iv-nn opened pull request #77462 → vimPlugins.vim-cool: init at 2018-01-11 → https://git.io/JvvAz
<jared-w>
they already technically have a pager
<gchristensen>
give it a go
<evanjs>
jared-w: yeah that was my thought. Heard about it the other day but we’re out of date on nixpkgs so why not bump it 😝 now if only there was a different way to install the shell completions
<evanjs>
Think I’m going to open an issue. Nobody replied on their chat, so 🤷♂️
<jared-w>
evanjs: Issue about the /bin/X in broot?
<{^_^}>
[nixpkgs] @flokli opened pull request #77463 → firefoxPackages.icecat: mark as insecure → https://git.io/JvvAw
<{^_^}>
[nixpkgs] @andir merged pull request #77463 → firefoxPackages.icecat: mark as insecure → https://git.io/JvvAw
<andi->
Should cores and max-jobs behave the same in respect to having a nix.conf in a XDG directory overlaying the system wide nix.conf or is there some difference?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @iv-nn to master « vimPlugins.vim-cool: init at 2018-01-11 »: https://git.io/JvvAA
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « git-annex: update sha256 hash for version 7.20191230 »: https://git.io/JvvAx
<infinisil>
evanjs: I did try to run `broot --install` in the nix build with the hopes of this being able to extract the scripts to $HOME/.config/broot/...
<infinisil>
evanjs: The only reason it didn't work was because their thing to print logs requires a terminal..
<{^_^}>
[nixpkgs] @flokli pushed 2 commits to release-19.09: https://git.io/Jvvxx
alex`` has joined #nixos
be7a has joined #nixos
<be7a>
Hi, im trying to get DNS-over-TLS working with resolved, however nixos systemd currently builds without gnutls or openssl support, so the feature is currently disabled by default. So i tried to use a overlay to override the build inputs to include gnutls and while this seems to work, this results in nix rebuilding nearly all of my packages from
<be7a>
source. 1) Is this to be exspected or did i made a mistake here. 2) Is having gnutls as a depdendency upstream a proper solution or not prefered?
<rjpcasalino>
hey all, qq -- what's the best way to ref a program in the store (e.g., cal) in a shell script so that I can invoke it in a shell script like /usr/bin/cal $m -- thank you in advance and please let me know if there's a better place to ask this in the future
<rjpcasalino>
right now I am doing this: /nix/store/d3gvywdrs808804ilpar39pir0j9g5v4-system-path/bin/cal $m $y
<rjpcasalino>
which is ugly
<rjpcasalino>
and probably wrong, I assume
<jared-w>
"${pkgs.cal}/bin/cal"
<jared-w>
pkgs.cal when interpolated turns into /nix/store/HASH so then you can just do /bin/cal to add onto the string
<evils>
jared-w: how do you use that in a shell script?
civodul has joined #nixos
<jared-w>
Depends on where the shell script comes from. If you're writing it inline in a nix expression you should have string interpolation and pkgs in scope already so it should just work. If you're wanting to write a "real" shell script, you can use nix-shell as a shebang and then cal will just be "in the path" and you can write `cal $m` without worrying about it
<lovesegfault>
worldofpeace: I thought I needed to register it's providedSessions
<lovesegfault>
i.e. that PR
<worldofpeace>
lovesegfault: to use sessionPackages, perhaps I should actually try using it now to see.
o1lo01ol1o has quit [Remote host closed the connection]
knupfer1 has joined #nixos
wpcarro has quit [Ping timeout: 268 seconds]
<shapr>
I've installed mpd, and it's working, but updating spins for hours and new music files are not found. The default install does not create a log file in /var/lib/mpd so I can't understand the problem. Any idea how I could fix this?
knupfer has quit [Ping timeout: 245 seconds]
knupfer1 is now known as knupfer
rjpcasalino has quit [Ping timeout: 268 seconds]
dansho has joined #nixos
<infinisil>
shapr: journalctl -u mpd -e
o1lo01ol1o has joined #nixos
alexherbo20 has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo20 is now known as alexherbo2
alex`` has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @leenaars opened pull request #77471 → csv2odf: init at 2.09 → https://git.io/Jvvh5
alex`` has joined #nixos
vidbina has joined #nixos
erasmas has quit [Quit: leaving]
ambro718 has joined #nixos
<dminuoso_>
Installing two things concurrently is safe, right?
<shapr>
infinisil: thanks, that pointed me to the problem
<{^_^}>
[nixpkgs] @elseym opened pull request #77473 → lib.commitIdFromGitRepo: support git-worktree → https://git.io/Jvvjv
<ambro718>
Does anyone have the problem with KDE where shutting down the system hangs for two minutes because some processes don't terminate? Log files reveal that the processes in question are KDE's thumbnail.so.
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
drakonis has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @andir pushed 5 commits to release-19.09: https://git.io/JvvjF
jonge has quit [Remote host closed the connection]
SOO7 has quit [Quit: Quit]
jonge has joined #nixos
nexgen has quit [Remote host closed the connection]
lsix has quit [Quit: WeeChat 2.6]
SOO7 has joined #nixos
philr has joined #nixos
nexgen has joined #nixos
shibboleth has quit [Quit: shibboleth]
<manveru>
i'm having quite strange issues with `keyctl`, where i can set a password, but not read it afterwards...
v0|d has joined #nixos
<dminuoso_>
Mmm, what's the reason ghc 8.8.1 is not in nixos/nixos-unstable yet?
<v0|d>
hello, nixos-option services|grep -E '(zeek|bro|suricata|snort)' <- rets empty. any advices on an ids service on nixos?
<dminuoso_>
v0|d: Honestly most IDS is nothing but snake oil and heating software.
<v0|d>
dminuoso_: :))
<v0|d>
dminuoso_: so what do you suggest?
<nilsirl[m]>
What is the equivalent of `nix-shell '<nixpkgs>' -A ccextractor` but selecting a nixpkgs at `~/nixpkgs`?
drakonis has quit [Ping timeout: 248 seconds]
<v0|d>
should I reflow my firewall with pfSense?
<jared-w>
nilsirl[m]: the thing in the quotes is just the nix path according to the man page, so "nixpkgs=~/nixpkgs" should work I think?
<symphorien>
nilsirl[m]: nix-shell ~/nixpkgs -A ccextractor
<vaibhavsagar>
nilsirl: `nix-shell -I nixpkgs=~/nixpkgs '<nixpkgs>' -A ccextractor` would also work I think
<vaibhavsagar>
lots of options
<nilsirl[m]>
Thank you, it now works
alexherbo29 has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo29 is now known as alexherbo2
mexisme_ has joined #nixos
stolyaroleh has joined #nixos
Thra11 has joined #nixos
<martyet-o>
i just really dont know whats going on..
<martyet-o>
nixos udevadm[7420]: Failed to scan subsystems: Permission denied
<martyet-o>
when starting udev Coldplug all Devices
alexherbo2 has quit [Ping timeout: 240 seconds]
mexisme_ has quit [Ping timeout: 252 seconds]
tek[m] has joined #nixos
schorsch has joined #nixos
alex`` has quit [Ping timeout: 268 seconds]
boxscape has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.7]
<schorsch>
anyone got a simple example nix config of apache with ssl and acme?
<tek[m]>
nix is not using a prebuilt ghc, why is that?
<infinisil>
,dnw tek[m]
<{^_^}>
tek[m]: Provide as much info as possible on problems. What specifically doesn't work? What command did you run? What's the error? This makes debugging easier and helps getting faster responses
<infinisil>
,nix-info tek[m]
<{^_^}>
tek[m]: Run and share the output from: nix-shell -p nix-info --run nix-info
<Thra11>
Why does it use /run/user/1000 instead of /tmp as tmp when I'm in a nix-shell? And can I make it use tmp instead, as /run/user/1000 is relatively small?
alexherbo2 has joined #nixos
<tek[m]>
I have hasktags and HTF in the system packages, and upon doing a rebuild, ghc is compiled. command output is `system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.1, channels(root): "tek, nixos-19.09.1784.fd4ccdbe3a6, nixpkgs-20.03pre207249.7e8454fb856", nixpkgs: /root/.nix-defexpr/channels/nixpkgs`
<tek[m]>
hasn't happened before
<Thra11>
tek[m]: Are the haskell packages from the 19.09 channel or 20.03pre* (unstable?)?
<tek[m]>
@thra1
<tek[m]>
* @thra11 unstable
Chiliparrot has joined #nixos
<tek[m]>
* Thra11: unstable
alexherbo29 has joined #nixos
<Thra11>
tek[m]: Has hydra.nixos.org failed to build ghc or not yet finished building ghc for that commit?
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo29 is now known as alexherbo2
alex`` has joined #nixos
<o1lo01ol1o>
nix copy --to s3:foo --all seems to run in something a fair bit more than constant space. What's the best way to copy a large store to an s3 cache?
<tek[m]>
Thra11: I see. I'll give that a look, thanks. I haven't done (manual) nix-channel --update, shouldn't that ensure that the prebuilt ghc it installed before is used again?
gustavderdrache has quit [Quit: Leaving.]
<infinisil>
tek[m]: What is at the start of the build log? Where it says "These derivations will be built:", what files does it list there?
<infinisil>
You could pin it though for reproducibility
<tek[m]>
so is it likely the source of the problem?
<tek[m]>
I'll look into that
<infinisil>
Ah no
<infinisil>
It's just something you could change in your config, it's not necessary
<tek[m]>
ok
Thra11 has quit [Quit: WeeChat 2.7]
Thra11 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<infinisil>
Trying to replicate that..
<tek[m]>
in any case, removing the ghcide derivation causes ghc not to be built
<infinisil>
But man, evaluating ghcid-ghc865 takes a long time
atlas_ has quit [Ping timeout: 246 seconds]
<tek[m]>
evaluating the expression only?
<infinisil>
Well I'm calling nix-build, but it's not even done evaluating
<infinisil>
Downloads many things and imports things into the store
<tek[m]>
why is that?
<infinisil>
Should be faster the second time
<tek[m]>
I see
<infinisil>
You did configure the cachix it mentions?
<tek[m]>
ahhh right I commented that out because there was a build error at some point
<tek[m]>
thanks :)
knupfer has quit [Ping timeout: 268 seconds]
<infinisil>
Ah yeah cachix recently failed to build
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
__monty__ has quit [Quit: leaving]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<tek[m]>
hm, cachix still fails with missing deps for `servant-auth-server-0.4.4.0...`
<tek[m]>
I'm installing it from nixpkgs-unstable, maybe that's not up to date?
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
halfbit has quit [Ping timeout: 248 seconds]
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
<infinisil>
It might be broken on that channel right now indeed
<tek[m]>
ok
<infinisil>
You can install it from an older one too though
chagra has joined #nixos
alexherbo2 has joined #nixos
be7a has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @DieGoldeneEnte opened pull request #77476 → clang: fix compilation of HIP-code → https://git.io/Jvfv2
chagra_ has quit [Ping timeout: 260 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
noogie has quit [Ping timeout: 265 seconds]
noogie has joined #nixos
<{^_^}>
[nixpkgs] @rycee opened pull request #77477 → jwt-cli: init at 2.5.1 → https://git.io/JvfvM
<zeta_0>
infinisil: quick question, have you had any issues getting all-hies(haskell-ide-engine) to work in a cabal project inside of a nix-shell? it tries to build cabal and throws a weird error: cabal: The program 'ar' is required but it could not be found.
<pie_[bnc]>
mkaito: didnt mean to link a specific post
<mkaito>
I'll send it along
<mkaito>
thanks for your work :)
<pie_[bnc]>
\o/ I hope something that doesnt suck can come of it
<pie_[bnc]>
not that tmux-resurrect sucks, its just got some issues
<pie_[bnc]>
i mostly meant at my own thing :P
<{^_^}>
[nixpkgs] @artemist opened pull request #77478 → nixos/factorio: add extraSettings and package options → https://git.io/Jvfvp
<siraben>
I'm trying to build a program using SDL2 and SDL_ttf, and normally the header files are in /usr/include/SDL2, but now in Nix it looks like they are in their own directories and they can't see each other.
<martyet-o>
mmm, can anyone help me? i ended up with not starting systemd-udev-trigger which is trying to coldplug all devices - and afaik fails on not sufficient permissions.. anyone faced this problem?
<ldlework>
sorry thought this was a different channel
smatting has joined #nixos
<evanjs>
Strange... nixos-rebuild stalling around building '/nix/store/9xkcgs09hz02dlb4xbqpzgcwvysy4v2s-login.pam.drv'... Oh crap not again.
<evanjs>
I think PAM is acting up again...
<zeta_0>
zeta_0: no, i thought the all-hies nix pkg comes with everything selp contained? i think i am going to change the way i install it home.nix, maybe that will fix the problem, it seems like a couple of things are outdated, that's probably why cabal is breaking
<zeta_0>
tek[m]: ^
<tek[m]>
zeta_0: yeah maybe it's a missing dep, I ran into the same problem iirc
<zeta_0>
whoops, i accidentally entered my own nick name
<tek[m]>
🙂
kleisli has quit [Ping timeout: 258 seconds]
<evanjs>
phew false alarm. nix-top messed up my shell :P running rebuild with --verbose to see if I can determine what's going on
<evanjs>
nope. stalls at pam again. Guess I'll just leave it alone for a bit..
fendor has joined #nixos
<infinisil>
zeta_0: If you have a github issue created, feel free to ping me
<infinisil>
(in the issue)
<evanjs>
Okay... strace results look a little odd, but still unsure if abnormal full of read(3, "TLSR\0\0\0\08\0\0\0\1\24\0\0j\0\0\0\0\0\0\0"..., 32768) = xxx just over and over... nixos-rebuild, what are you doing x_x
drakonis has quit [Ping timeout: 246 seconds]
<tek[m]>
@evan
<tek[m]>
* evanjs: what's the openat() before the reads?
leotaku has quit [Ping timeout: 265 seconds]
drakonis has joined #nixos
<tek[m]>
or connect()
<zeta_0>
infinisil: ok, i am going to try a couple more things to try and fix it, if that doesn't work then i'll post the issue on github, thanks
bvdw has quit [Read error: Connection reset by peer]
<evanjs>
tek[m]: lol you asked that right as I tried again and it got to "copying path for firefox". Invoked it with strace this time for good measure