<evanjs>
PRs that require many rebuilds get merged into staging. Every once in a while, the current staging gets forked off into staging-next. The purpose of staging-next is to let the current rebuild finish, detect regressions, stabilize. staging-next is then merged into master.
<pbb>
thanks
<pbb>
I notice that staging is quite a bit behind master. Is this usual?
thc202 has quit [Ping timeout: 250 seconds]
<evanjs>
Doesn’t seem to be, based on the RFC? Depends
<pbb>
There is no information in the RFC on how the branches are synced
<pbb>
I saw that sometimes master gets merged into staging(-next), but when does this usually happen?
jluttine_ has joined #nixos
bbarker_home has quit [Remote host closed the connection]
growpotk- has quit [Ping timeout: 258 seconds]
pareidolia has quit [Ping timeout: 245 seconds]
<growpotkin>
Hey I have never tried to plug in an SD card in NixOS and right off the bat it's not being detected anywhere. I'm using a USB card reader and also tried plugging directly into my motherboard's builtin SD card reader.
<growpotkin>
Is there some kernel module or setting I need?
m0rphism1 has quit [Ping timeout: 248 seconds]
<pbb>
usually that's not necessary
<pbb>
growpotkin: where did you look? does it show up in dmesg?
<growpotkin>
I'm getting squat from `fdisk` and `gparted` on two different NixOS machines :(
<pbb>
are you sure the sd card is fine?
<growpotkin>
It's brand new, I just unwrapped it. I need to format it for the first time.
<pbb>
so you don't see a block device at /dev/mmcblk*?
<pbb>
can you see the sd card when you plug it into a computer not running nixos?
<growpotkin>
nah I got nothing. I'm plugged in through a USB card reader now. Let me try on the laptop where the SD Reader is directly on the board
slack1256 has joined #nixos
pareidolia has joined #nixos
<growpotkin>
I haven't tried on a non-nixos box yet.
<rodarmor>
I was added to the `nixpkgs-maintainers` github org, but immediately started receiving notification spam, so I left. Is it possible to make that group un-mentionable/pingable?
domogled has quit [Ping timeout: 245 seconds]
nexgen2 has quit [Ping timeout: 244 seconds]
mac10688 has joined #nixos
MrCCoffee has quit [Quit: leaving]
<infinisil>
rodarmor: What's an example of something you received a notification for?
<rodarmor>
I thought I received more notifications, but I think they were just follow ups to that
slack1256 has quit [Ping timeout: 268 seconds]
thonkpod has quit [Ping timeout: 268 seconds]
thonkpod has joined #nixos
lally has quit [Ping timeout: 272 seconds]
<Orbstheorem>
Hello! Quick question: Is the `nix` command meant to replace all the `nix-*` commands? If so, how can I add derivations to my user environment, the same way `nix-env -i` does?
nexgen2 has quit [Remote host closed the connection]
nexgen2 has joined #nixos
<lambda-11235>
shit, nvm it appears the program modifies it's binary when first ran, so I just reapplied the interpreter and rpath from before it was ran and things work now
<jonge[m]>
i was surprised how `import` works on `niv`-style attrsets. it seems that `import` solely consumes the `outPath` attribute if presented with an attrset argument. is that true or where can i read that in any documentation?
chr15 has joined #nixos
nexgen2 has quit [Ping timeout: 245 seconds]
<jonge[m]>
didn't find it in the `nix` documentation and i think that this would have been the right place
reallymemorable has joined #nixos
Myhlamaeus2 has quit [Ping timeout: 244 seconds]
<clever>
> let set = { outPath = "boo"; } in "${set}"
<{^_^}>
error: syntax error, unexpected IN, expecting ';', at (string):263:32
<clever>
> let set = { outPath = "boo"; }l in "${set}"
<{^_^}>
error: syntax error, unexpected IN, expecting ';', at (string):263:33
<clever>
> let set = { outPath = "boo"; }; in "${set}"
<{^_^}>
"boo"
<clever>
jonge[m]: if you try to treat a set as a string, it will use the .outPath attr on the set
<jonge[m]>
clever: ooooh so it has nothing to do with `import` directly. interesting. thank you for this hint!
<jonge[m]>
unfortunately, that doesn't seem to be documented anywhere either, so you can only know that by reading the nix source, right?
<clever>
hmmm, that just makes a passing reference to it, but doesnt explain it
<clever>
nix-build now defaults to using ./default.nix if no Nix expression is specified.
<clever>
damn thats an old releaaaaaaaaaase note, lol
<jonge[m]>
i have seen that section but it didn't help me much, yes.
orivej has joined #nixos
FRidh has joined #nixos
growpotkin has joined #nixos
sb0 has joined #nixos
bakakuna has quit [Ping timeout: 268 seconds]
<sb0>
hi, I have a python package that needs special (non-Python) commands to build, but when I add the corresponding dependencies to buildInputs, they are simply ignored and not present during the build
<sb0>
this issue only occurs when using pkgs.python3Packages.buildPythonPackage; if I replace it with the stdenv.mkDerivation, the dependencies are present during build as expected
<FRidh>
sb0: your deps most likely are nativeBuildInputs
<FRidh>
buildPythonPackage is stricter in that regard
<DariusTheMede>
Suprisingly the error says it can't find openssl/evp.h
zupo has quit [Ping timeout: 248 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<rnhmjoj>
soo, i have been told to use hydra-eval-jobs to build nixosTests but nothing really seems to work. do you know how it works? https://hastebin.com/raw/timalosumi
<ivan>
but 1) no need for hydra-dev, use the service in nixos 2) postgresql data dir thing is solved 3) store_uri = daemon seems more convenient and garbage-collectable
<{^_^}>
[nixpkgs] @WilliButz pushed commit from @manveru to master « wayback_machine_downloader: init at 2.2.1 (#67533) »: https://git.io/fjxUp
<qubasa>
I am packaging addons for firefox. These do not have a platform on which they run and platforms.all does not work what should I write into that field?
o1lo01ol1o has joined #nixos
<manveru>
WilliButz++
<{^_^}>
WilliButz's karma got increased to 1
<manveru>
qubasa: describe "doesn't work"
<WilliButz>
:)
freeman42x]NixOS has quit [Ping timeout: 248 seconds]
* manveru
idly punches nodejs
alex`` has joined #nixos
ee1943 has quit [Ping timeout: 244 seconds]
ee1943 has joined #nixos
teto has quit [Ping timeout: 248 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
<{^_^}>
[nixpkgs] @alexarice opened pull request #67614 → evtest-qt: use qt mkDerivation → https://git.io/fjxTG
teto has joined #nixos
<qubasa>
manveru: Package ‘«name-missing»’ in /etc/nixos/own-pkgs/https-everywhere/default.nix:23 is not supported on ‘x86_64-unknown-linux-gnu’, refusing to evaluate.
<craige>
If I run a build like: nix-build '<nixpkgs/nixos>' -I nixpkgs=/path/to//nixpkgs -A vm --arg configuration vm-with-my-app.nix so that it can build a single custom app I've added to nixpkpgs, it nix going to pull binaries from cache, build as neede or build everything from my nixpkgs= argument?
<craige>
(this build appears to be building all the things)
sigmundv_ has joined #nixos
<DariusTheMede>
clever: > cinimod: i think you want to fix the pkgs.blas package, to include a blas.pc file
<{^_^}>
[nixpkgs] @teto pushed commit from @lblasc to master « ljsyscall: init at 20180515 »: https://git.io/fjxkZ
<clever>
DariusTheMede: i would probably also fix lines 15-26, to use another <<EOF
<clever>
DariusTheMede: and 31
iyzsong has joined #nixos
Mic92 has quit [Quit: WeeChat 2.3]
Mic92 has joined #nixos
<{^_^}>
[nixpkgs] @teto merged pull request #67559 → qt5ct: fix missing app icon and name when running under Wayland → https://git.io/fjA9m
<{^_^}>
[nixpkgs] @teto pushed commit from @lightbulbjim to master « qt5ct: fix missing app icon and name when running under Wayland »: https://git.io/fjxk4
pie_ has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
Makaveli7 has quit [Quit: WeeChat 2.5]
Makaveli7 has joined #nixos
vyorkin has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
cfricke has quit [Quit: WeeChat 2.5]
ilikeheaps has quit [Quit: Konversation terminated!]
tyx2q[m] has joined #nixos
<{^_^}>
[nixpkgs] @dawidsowa opened pull request #67616 → ariang: init at 1.1.3 → https://git.io/fjxkw
ottidmes_ has quit [Remote host closed the connection]
alanz has quit [Remote host closed the connection]
ottidmes_ has joined #nixos
<__monty__>
clever: Could use some help setting up toxvpn on a mac. Ping me when you have some time?
TheBrodm1nn has joined #nixos
<DigitalKiwi>
__monty__: did i ever tell you i figured out a solution for ddns for me
<__monty__>
Not yet : )
TheBrodmann has quit [Ping timeout: 245 seconds]
<zfnmxt>
Is there any coniguration.nix setting that disables my screen going blank after not moving the mouse for X seconds?
<freeman42x]NixOS>
how does one create a release.nix?
<freeman42x]NixOS>
zfnmxt, does it suffice if you just set it through an application? I can probably tell you where that setting is
<zfnmxt>
Uh, what application? I've tried `xset -dpms; xset s off; xset s noblank` and it didn't help.
<__monty__>
zfnmxt: Yes, `services.logind.extraConfig = "IdleAction=ignore";` (I think.)
<zfnmxt>
Of course there's a systemd setting for that :P
<zfnmxt>
Thanks, I'll try that.
<__monty__>
freeman42x]NixOS: One simply writes a nix expression and saves it to a file named release.nix : ) (It's possible some language specific tools can generate it for you.)
bakakuna has joined #nixos
<__monty__>
zfnmxt: Be sure to read the docs on that option.
<__monty__>
I have it set to lock, without a screen locker installed so it just blanks my display.
<__monty__>
freeman42x]NixOS: Look at a haskell project that has one and rip it off : ) (I don't know of a better way.).
<DigitalKiwi>
__monty__: there's a ddns plugin for openwrt and a python script that updates an IP with DO. i configured the plugin to use the script
<freeman42x]NixOS>
__monty__, :( if only it would be easy to find an example Hakell projec doing that
<__monty__>
zfnmxt: o.O That does sound pretty annoying if you live in emacs. Fwiw the default timeout is fairly annoying to me too. (Read something about EU regulations being the reason but honestly that sounds pretty bogus.)
chiefgoat has joined #nixos
sb0 has quit [Quit: Leaving]
<zfnmxt>
Well, *trying* to live in emacs, but yeah. It is. Thanks for the help, let's see if it fixes it. :)
<__monty__>
It's really quite simple, feel free to ask if you still want to use that. (Note that you don't get to use your own domain unless you accept the caveat.)
bakakuna has quit [Ping timeout: 244 seconds]
<tokudan>
Can't write in #nixos-security for some reason.
<tokudan>
Dovecot will need an update due to an unauthenticated potential RCE (CVE-2019-11500).
<ocharles>
Are there plans to add GHC 8.8 to NixOS 19.03?
<ocharles>
Or would I have to wait for the next stable?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjxIj
wfranzini has joined #nixos
npmccallum has joined #nixos
smakarov has quit [Quit: rcirc on GNU Emacs 26.2]
wfranzini has quit [Read error: Connection reset by peer]
wfranzini has joined #nixos
<DariusTh`>
clever: I get
<DariusTh`>
/nix/store/84hf3lqd27j32cy3c1wgz7xl08kkwman-stdenv-darwin/setup: line 1333: /nix/store/pdy9gsysh3y1x6i8jbd2d5rksr0299wx-blas-3.8.0/lib/pkgconfig/blas.pc: No such file or directory
<{^_^}>
[nixpkgs] @cdepillabout opened pull request #67624 → haskell: get cabal-install 3.0.0.0 building on ghc-8.6.5 and ghc-8.8.1 → https://git.io/fjxLc
lally has joined #nixos
tjg1 has quit [Quit: if i commit suicide, at least a real nigga killed me]
work_ has joined #nixos
tjg1 has joined #nixos
lally has quit [Client Quit]
hyper_ch2 has quit [Remote host closed the connection]
dansho has quit [Quit: Leaving]
<evanjs>
Is there an easy way to launch a nix-shell for NixOps deployments?
vika_nezrimaya has quit [Read error: Connection reset by peer]
vika_nezrimaya has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.5]
DariusTh` has quit [Ping timeout: 244 seconds]
DariusTh` has joined #nixos
spinus has joined #nixos
<spinus>
hello
thc202 has quit [Ping timeout: 264 seconds]
<spinus>
was just looking at the docs (https://nixos.org/nixos/manual/) and was looking for language section, cannot find it. Should that be included here or is it somewhere else?
ThatDocsLady has quit [Remote host closed the connection]
<evanjs>
> If you like to learn more about the Nix package manager and the Nix expression language, then you are kindly referred to the Nix manual.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):263:88
reallymemorable has joined #nixos
<spinus>
FRidh: it's there, thank you very much, didn't use it long time and forgot about the split
waleee-cl has joined #nixos
<{^_^}>
[nixpkgs] @veprbl merged pull request #67579 → aggregateModules: use stdenvNoCC instead of stdenv → https://git.io/fjANR
<evanjs>
Yeah I can never remember which manual has what
<{^_^}>
[nixpkgs] @veprbl pushed commit from @lopsided98 to master « aggregateModules: use stdenvNoCC instead of stdenv (#67579) »: https://git.io/fjxLH
<spinus>
anybody uses android composition to do dev? I'm looking for how to solve license acceptance for react-native dev and no luck so far
orivej has quit [Ping timeout: 244 seconds]
<o1lo01ol1o>
Is there a way to tell nixops to change the expressions associated with a deployment? My filenames and paths have changed . . .
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #67626 → rl-1909: add note about Xfce 4.14 → https://git.io/fjxte
<evanjs>
spinus: Like with Android SDK licenses? I've had issues with that before as well... Have you checked out sandervanderburg's articles relating to Android dev?
<spinus>
evanjs: yeah, the only method so far I guess is to copy sdk out of nix store, I was wondering if we have any better. Thanks for the links anyway
nschoe has quit [Read error: Connection reset by peer]
<ddima>
does anyone know if there is a simple way to get a list of unowned packages and services from nixpkgs? also, how is maintenance/ownership handled for packages automatically built, like haskellPackages?
chiefgoat has quit [Client Quit]
asymptotically has joined #nixos
<__monty__>
ddima: You could always grep nixpkgs for `maintainers = [ *];` : )
<Cale>
How is "grep nixpkgs" the answer to every conceivable question about nix? :D
pie_ has joined #nixos
<ddima>
yeah, was just wondering if there is maybe some dashboard somewhere or sth.
<ddima>
as in, with the current formalization of the ownership I thought maybe s.b. already built sth to track more easily
doveina has joined #nixos
<Cale>
he-can't-keep-getting-away-with-it.gif
<vika_nezrimaya>
My server's working, but how to confiugre services.postfix.aliasFiles? there is no example in the documentation
freeman42x]NixOS has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace closed pull request #40491 → nixos cups: support for socket activation [WIP] → https://git.io/vpHOF
<spinus>
vika_nezrimaya: I guess that's postfix thing
gentauro has quit [Quit: leaving]
<spinus>
so I would look in postfix docs how files should look like
gentauro has joined #nixos
<vika_nezrimaya>
It's an attribute set, should I just write something like { "kisik21" = "vika"; } ?
<__monty__>
Hmm, there's about ~60 maintainerless packages from a quick grep.
<gchristensen>
really?
<vika_nezrimaya>
__monty__: I'm thinking about maybe adopting one, if I can
<aanderse>
vika_nezrimaya: more like { "filename" = /path/to/a/file; "another_file" = /another/path/to/a/file; };
emptyflask has joined #nixos
<vika_nezrimaya>
aanderse: ooooohhhhhhhh
<vika_nezrimaya>
sounds painful
<aanderse>
__monty__: yeah, we should really create an issue that mentions these packages are without a maintainer
<aanderse>
because if vika_nezrimaya doesn't adopt all 60... we might need more people to adopt
<aanderse>
;-)
<vika_nezrimaya>
aanderse: 60 packages may be too much :3
<vika_nezrimaya>
__monty__: can you paste the grep command here? I want to run it on my own checkout and see which packages feel like something I could handle
chiefgoat has joined #nixos
<ddima>
well, that was kinda the background of why I was asking ;)
<__monty__>
gchristensen: Oof, actually, 214.
<ddima>
__monty__: if you create an issue, ideally post it here and maybe I can find a few that I could do.
<ddima>
otherwise I'll grep around a bit later too
<aanderse>
ddima++ vika_nezrimaya++ you're both awesome then :)
<{^_^}>
ddima's karma got increased to 1, vika_nezrimaya's karma got increased to 2
<aanderse>
there will be derivations which could be part of something else
<aanderse>
so derivations like that probably do have someone who maintains them, but never listed themself
<vika_nezrimaya>
monty: you should've included nix run nixpkgs.ripgrep 'cause not everyone has it
<vika_nezrimaya>
:3
chiefgoat has joined #nixos
<__monty__>
vika_nezrimaya: This is part of my campaign to get ripgrep into the posix standard : >
<vika_nezrimaya>
I heard stuff about ripgrep and I think it may be a valuable tool
<vika_nezrimaya>
maybe not for POSIX standard, but for mentioning in my common.nix which installs useful stuff like mkpasswd, htop...
<sphalerite>
absolutely
<ddima>
is it expected that modules, for instance for some service like postfix, are owned by the maintainer of the package (dominant package? what if multiple?) or just possibly different person explicitly listed?
<vika_nezrimaya>
wow, and its small, just 6M unpacked
<sphalerite>
ddima: if there are no module maintainers listed, pinging the package maintainers is _probably_ a safe bet :)
endformationage has joined #nixos
<evanjs>
__monty__: Don't forget fd :P
<__monty__>
vika_nezrimaya: fd is another great UX improvement for a standard tool imo.
<__monty__>
evanjs: Like minds : >
<vika_nezrimaya>
what is fd?
<sphalerite>
^
<evanjs>
:D
<sphalerite>
vika_nezrimaya: find replacement
<vika_nezrimaya>
couldn't you just use... Emacs?
<sphalerite>
as in a replacement for find, not find-and-replace :p
<vika_nezrimaya>
ohhhhh
<{^_^}>
[nix] @edolstra pushed to master « Don't send certain setting overrides to the daemon »: https://git.io/fjxta
<vika_nezrimaya>
lol
<ddima>
sphalerite: alright, so if everything was proper, there should be some listed then. mostly asking to inform future grepping ;)
<sphalerite>
ddima: I think module maintainers are a relatively new addition, so many might not have any listed
<__monty__>
No maintainers for the venerable `ed` o.O : $
<evanjs>
sphalerite: Right, sd seems promising for find and replace but I don't think it has as much usage/popularity as fd and especially rg
<sphalerite>
not heard of sd before
<evanjs>
Basically sed in rust, much like rg and fd :P
<sphalerite>
is it really though? Or just find-and-replace?
<__monty__>
Hmm, I've never had any problems with sed's UX. I'll check it out.
iyzsong has quit [Ping timeout: 250 seconds]
<vika_nezrimaya>
ok I seem to be receiving mail (almost correctly)
<qubasa>
Can someone merge this pull request? I am depending on it and the feature we would get is a fully nix configurable firefox with extension etc. https://github.com/NixOS/nixpkgs/pull/57554
<{^_^}>
#57554 (by xaverdh, 24 weeks ago, open): WIP: firefox/wrapper.nix: make firefox wrapper configurable by the user
noogie has quit [Ping timeout: 246 seconds]
<vika_nezrimaya>
hey, can anyone check that glovebox.fireburn.ru has a hydra server? is it responding quickly enough?
<vika_nezrimaya>
that's my hydra server, just brought it online :3
<evanjs>
Speaking of pinging/PRs, is 30 days enough wait-time to ping a PR I have that's still open? :B
drakonis_ has joined #nixos
<vika_nezrimaya>
More than enough.
<vika_nezrimaya>
evanjs: I'm already distressed about my #67490 even though its two days old
<evanjs>
vika_nezrimaya: Same with me and #67115. Like I rewrote so much (in order to get it actually running, though) and I got so worried I was doing something wrong or "Is all this necessary??". And then there's #64552 where I'm not sure how to approach the remaining issue anyway :D
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #67260 → nixos/x11: provide selected session to custom session → https://git.io/fjNLC
vmandela has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjxqU
wfranzini has quit [Ping timeout: 268 seconds]
wfranzini1 is now known as wfranzini
v0|d has quit [Read error: Connection reset by peer]
retrry[m] has quit [Quit: Idle kick: User has been idle for 30+ days.]
v0|d has joined #nixos
<exarkun>
Can I control morph's ssh behavior at all? It looks like by default it runs `nix copy --to ssh://address ...` which I suppose just uses my ssh client configuration... but I'm not sure I like the idea of editing my ~/.ssh/config to make `morph deploy` work.
<samueldr>
if I want to unit test (or maybe integration test) failures to build nix derivations, what approach do you recommend?
<{^_^}>
[nixpkgs] @dasJ opened pull request #67631 → displaylink: Update to 5.2.14 → https://git.io/fjxqg
<exarkun>
samueldr: Can you give an example of the kind of behavior you might want to test?
Ariakenom has quit [Ping timeout: 245 seconds]
<samueldr>
I'm making a generic thing that will fail when not giving a value to either of two attributes
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fjxqa
<samueldr>
I want to have a test that tests that failure
Tucky has joined #nixos
<samueldr>
if it was possible from inside nix it would be fine
<samueldr>
I have written a small harness to execute the builds that works fine for my needs
<samueldr>
but I would like to see other opinions
<samueldr>
one of the thing it needs to do is also validate that the *right* error message is shown
<exarkun>
Is anything in nixpkgs/lib/tests helpful?
<samueldr>
so builtins.tryEval is not useful
* samueldr
checks
<samueldr>
all evaluation time checks
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-resolv: keep version 0.1.1.2 around for ghc versions prior to 8.8.x »: https://git.io/fjxqw
apx[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle kick: User has been idle for 30+ days."]
<samueldr>
which might be fine for some failures hmmm
<manveru>
samueldr: maybe take a look at the nix test suite?
<samueldr>
yeah
<samueldr>
already did
<exarkun>
I imagine the thing you described as `{ ... }: { a ? null, b ? null }: if (a == null) == (b == null) then / * error case */ else /* good case */`
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjxqK
<exarkun>
it sounds like that's wrong though
domogled has joined #nixos
<manveru>
i don't think i've ever found a usecase for tryEval...
<samueldr>
exarkun: wrong how?
<samueldr>
I'll explain more :)
<__monty__>
Can I nix-shell npm utilities?
<samueldr>
__monty__: some
<yorick>
manveru: I use it to detect if an option is set or not
<exarkun>
samueldr: I mean it sounds like that isn't the shape of what you want to do, since I guess I can imagine evaluation-time testing for all of the cases of that expression
<samueldr>
the attributes would be `size` to set a size, it defaults to `"auto"`, auto will use the contents to set the size
<exarkun>
_or_ my inexperience with nix is making me look silly ;)
<samueldr>
but I just realized I can't know at eval time
<samueldr>
nah, it looked alright
<samueldr>
I need to build anyway to fail
jasonk000[m] has quit [Quit: Idle kick: User has been idle for 30+ days.]
<inkbottle>
then I push it into a usb drive "2.5.1. Booting from a USB Drive"
Zer0xp has quit [Ping timeout: 272 seconds]
<inkbottle>
(just saying what I'm doing...)
drakonis_ has quit [Ping timeout: 264 seconds]
<spinus>
slabity: if passwords are on one VM, I usually have script that generates passwords in files and giving access to processes that can read that file. If I need to setup some 3rd-party keys, for some use cases I have separate file in the repo with creds and using git-crypt
chr15 has quit [Ping timeout: 272 seconds]
<spinus>
so your password file is encrypted and you decrypt it only for deployment time
tokudan has left #nixos ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
tokudan has joined #nixos
<o1lo01ol1o>
Are there any examples or recommended documentation for deploying services (to staging / production) using nixops and hydra? I can think of a couple ways but I would like to follow best practices if possible.
pie_ has joined #nixos
<{^_^}>
[nix] @matthewbauer opened pull request #3069 → Set maximum name length in Nix → https://git.io/fjxmX
drewr has quit [Quit: ERC (IRC client for Emacs 26.2)]
drewr has joined #nixos
drewr has quit [Remote host closed the connection]
<cransom>
Huh. I have a machine running lots of builds and the 2T disk was filling (it shouldn't). if i look at the some of the outputs in the store, `nix-store -q --roots /path` was returning lists of `{temp:10329:9843}`. temproots kept accumulating. restarted nix-daemon, no change. after a reboot, a very satisfying nix-collect-garbage.
pie_ has quit [Ping timeout: 248 seconds]
wildtrees has joined #nixos
wildtrees has quit [Max SendQ exceeded]
<cransom>
ack. didn't realize that number was probably a pid. i wonder if it was still alive.
<eyJhb>
Do anybody know which config should be changed, to fix the error "the name org.freedesktop.secret was not provided by any .service files", trying to use Mysql Workbench.. :)
drakonis has quit [Ping timeout: 258 seconds]
<vika_nezrimaya>
eyJhb: you may want to enable GNOME Keyring, it's a common provider of the Secret Service that's not found here
<eyJhb>
So Gnome Keyring and relogin I assume?
<eyJhb>
But I am guessing that will not work either because freedesktop stuff. I remember at some point, we had some simlar problem with audio, with freedesktop..
drakonis_ has quit [Ping timeout: 264 seconds]
<vika_nezrimaya>
yeah, enable gnome keyring in configuration.nix (I assume you're on NixOS), rebuild and relogin. Should work.
<vika_nezrimaya>
AFAIK, GNOME Keyring daemon is DBus-activated, so it should fire up as soon as you need it. It may ask you to create a keyring!
<eyJhb>
Damn it
<eyJhb>
Will try...
<eyJhb>
I hate all this stuff, I just want my cli. but OH NO, someone (project partner), does not agree
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vika_nezrimaya>
they want a shiny GUI for them? then why YOU are configuring it?
<vika_nezrimaya>
gchristensen: __monty__: on topic of maintainership, what's the procedure to step up? can I just make a PR marking myself as a maintainer?
<gchristensen>
yep!
<__monty__>
Yepx2 : )
<vika_nezrimaya>
Ok. Now, a question. Does anyone here actually use ed?
<exarkun>
like, on purpose?
<vika_nezrimaya>
like, you don't accidentally enter ed, right?
<vika_nezrimaya>
you can accidentally get stuck in vim
<vika_nezrimaya>
that's how I learned vim
<vika_nezrimaya>
I wasn't able to exit, so by the time I found the :q command I learned how to use it
<vika_nezrimaya>
but ed... no one even sets ed as a default EDITOR, that's just cruel
<tokudan>
vika_nezrimaya, you would be surprised how often I get asked (I'm the sysadmin) by other colleagues what they're doing wrong when they hit crontab -e and they cannot figure out what to do. when I checked I found them stuck in ed.
<vika_nezrimaya>
Seriously?! WOW
<tokudan>
not on linux mind you, that's solaris and some very shitty profile config...
<tokudan>
(that I also didn't setup)
<tokudan>
but people actually end up in that thing
<vika_nezrimaya>
Ok, I think I found my package I'm gonna maintain - it's lr! PR pending
<Smith[m]>
Hello, any reason why i'm getting firefox 67 and not 68 (i'm on 19.03) ?
<gchristensen>
sounds like you need to update your channels :)
<{^_^}>
[nixpkgs] @kisik21 opened pull request #67642 → lr: add myself (@kisik21) as maintainer → https://git.io/fjxYD
<evanjs>
FRidh: thanks!
<evanjs>
FRidh++
<{^_^}>
FRidh's karma got increased to 9
<vika_nezrimaya>
Ok, PR is pushed, everything's done, the only thing remaining is to wait for the merge to happen
<vika_nezrimaya>
Hm, interesting, will OfBorg ping me for review?
<vika_nezrimaya>
gchristensen: 'cause my PR lists me as a maintainer. Or is it smart enough to avoid that?
<gchristensen>
it won't request the author of a PR for a review :)
<vika_nezrimaya>
great!
DariusTh` has quit [Ping timeout: 246 seconds]
vmandela has quit [Quit: Leaving]
ThatDocsLady has quit [Quit: Leaving]
Myhlamaeus2 has joined #nixos
<worldofpeace>
Note that naming coventions and traditions differ in different countries gchristensen (some people only have one name or many depending on who's speaking too them)
<gchristensen>
I'm aware
pie_ has joined #nixos
<gchristensen>
vika_nezrimaya: hmm do you ever sign commits with you gpg key?
<vika_nezrimaya>
gchristensen: I do, according to GitHub. Why do you ask?
<tokudan>
github signs changes you make through their website with their own key
domogled has quit [Ping timeout: 258 seconds]
<vika_nezrimaya>
It seems like it slipped past me when I was configuring Git, but yes, I do intended my commits to be signed
<gchristensen>
okay, cool, mind giving that one another try?
<vika_nezrimaya>
I'll fix it right away
<gchristensen>
thanks!
<tokudan>
git commit --sign --amend should do it :)
<tokudan>
(if it's just a single commit)
<vika_nezrimaya>
I'll configure signing by default
shibboleth has joined #nixos
<vika_nezrimaya>
ok, switching my Home Manager configuration
<vika_nezrimaya>
the signing key was configured, but signByDefault was false explicitly :P
<vika_nezrimaya>
tokudan: I use Magit btw
<tokudan>
ah, ok
<ajs124>
a mkYarnPackage build is throwing "ln: failed to create symbolic link 'node_modules/frappe/frappe': File exists" at me during configuring and failing afterwards. anyone got any ideas?
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjxOt
<gchristensen>
vika_nezrimaya: looks like github isn't sure about the signature yet
<tokudan>
gchristensen, github has issues with my signature as well, as i use different email addresses and they're not smart enough to ignore the email address
shibboleth has quit [Quit: shibboleth]
<gchristensen>
hmm interesting. I've taught github about my different email addresses as necessary. it isn't a blocker, but would be ideal
<tokudan>
gchristensen, my key has two email addresses, one of them is listed in github. there's no way i'm adding the second one as well
<worldofpeace>
jtojnar: cool, gotta catch em' all ✨️
<worldofpeace>
(unintentional pokemon reference)
Jackneill has quit [Remote host closed the connection]
oblivia has joined #nixos
<oblivia>
hey guys, I'm trying to install nixos on an encrypted zfs pool, using the installation image. I've set "boot.zfs.enableUnstable = true;" in the installer's /etc/nixos/configuration.nix, and run nixos-rebuild switch, but when I try to run "zpool create -o ashift=12 -o altroot="/mnt" -O encryption=aes-256-gcm -O keyformat=passphrase ZPOOL $ROOT_PARTITION, I'm prompted for a passphrase, and then get the error
<oblivia>
message "cannot create 'ZPOOL': invalid argument for this pool operation"
<oblivia>
any ideas?
<tokudan>
oblivia, i think you cannot upgrade the running zfs version through a switch, you probably have to build a new installation image
FRidh has quit [Quit: Konversation terminated!]
<oblivia>
ah, ok, i guess that's the issue. i'll try that. thanks.
fendor__ has quit [Remote host closed the connection]
fendor_ has quit [Ping timeout: 245 seconds]
<emptyfl4sk>
I have another bundlerEnv/bundix issue: `collision between '/nix/store/xf2qb32arrsv9vy5vp5axbg6r86mchw1-ruby2.5.5-countries-3.0.0/bin/console' and '/nix/store/bx5d3027b059h0d7jyqk3kli6j6kvhgd-ruby2.5.5-active_record-acts_as-4.0.1/bin/console'`
<emptyfl4sk>
not really sure how to prioritize or ignore those bin files -- I don't care about either of them
fendor has joined #nixos
<emptyfl4sk>
they're just for launching a ruby console for the gem developers
<inkbottle>
"This is not a bootable disk. Please insert a bootable floppy and press any key to try again..."; what did I miss?...
<inkbottle>
I did what described here: 2.5.1. Booting from a USB Drive
<emptyfl4sk>
inkbottle: assuming your USB disk is written correctly, make sure you can boot from it in your bios config
<inkbottle>
emptyfl4sk: I think I did that... And he did try to boot on it since it says it is not bootable...
bakakuna has joined #nixos
phry has joined #nixos
phry has quit [Remote host closed the connection]
unacceptable has quit [Remote host closed the connection]
fendor has quit [Ping timeout: 272 seconds]
<tokudan>
inkbottle, did you copy the iso to the usb drive into a partition or the usb drive itself? meaning did you write of=/dev/whatever or of=/dev/whatever1 (with the number)?
<inkbottle>
tokudan: with the number
<tokudan>
and do you use macos or a linux?
<inkbottle>
linux
<tokudan>
inkbottle, do you remember the full command?
<inkbottle>
yes, hang on
<emptyfl4sk>
I don't think you want to use a partition number (/dev/sdx1)
<EsperLily>
emptyfl4sk: if you use bundlerApp you can specify which binaries to link in
<EsperLily>
(I don't have context though; bundlerApp is specifically for when you're publishing binaries but not libraries, I don't know if that applies)
<gchristensen>
marek: now do a cups based grafana interface
<exarkun>
It would be pretty cool if there were `morph deploy ... build-vm`
<EsperLily>
alternatively you could wrap your bundlerEnv derivations in a buildEnv or something that just skips the console binary
<exarkun>
boot my whole deployment as vms locally for me
DariusTh` has quit [Remote host closed the connection]
DariusTh` has joined #nixos
bakakuna has quit [Ping timeout: 245 seconds]
chr15 has joined #nixos
<inkbottle>
tokudan, emptyfl4sk: didn't work, neither: I'll try to understand what's happening there and be back
<oblivia>
okay, I generated a new installation iso with zfs unstable support, booted into it, created my zfs filesystem and prepared my configuration.nix -- so far, so good -- but when I try to run "nixos-install", I'm getting an error message about a missing "/mnt/etc/nixos/nixpkgs/binbin/binbin.nix"
<oblivia>
am I missing a step, here?
<pie_>
a weird thing is the config expression apparently user NIXOS_CONFIG, not the value in nix path, not sure how taht works - or i made a typo
wfranzini has joined #nixos
<tokudan>
oblivia, that sounds like an issue with your system config that you created for the new install
reallymemorable has joined #nixos
<pie_>
yeah i made a typo
<tokudan>
oblivia, try --show-trace
<freeman42x]NixOS>
is there any Nix package which I could use to install some facebook Messenger GUI client?
<oblivia>
oh wait, okay, never mind. I'm using a modified config that a coworker sent me, and I just realized that it imports dependencies that I don't have.
<oblivia>
so, mystery solved! thanks!
<tokudan>
oblivia, yep, something like that ;)
<averell>
the setup was a setup!
<freeman42x]NixOS>
__monty__, thank you for the help, I will try to set it up now __monty__++
<{^_^}>
__monty__'s karma got increased to 8
<__monty__>
freeman42x]NixOS: np, I really like not having to visit fb or leave my irc client : ) Group chats are a little finicky but I can live with it.
<colemickens>
<joko "Is anyone using waybar from cole"> Did I break it? I use i3status-rs but am thinking of making a switch, it doesn't necessarily work so great.
<EsperLily>
Well that's interesting, I was prepared to say "irssi is on life support, use something else" except it appears to be under active development again
<pie_>
tokudan: it works fine without NIX_PATH set... and there are no errors in my code because the nix-instantiate version works?
<averell>
ivan: but it's not the same derivation right? maybe diff the build deps?
<ivan>
thanks. bumping mesa first to see if it magically gets fixed :-)
<tokudan>
pie_, try using full paths in there
<pie_>
oh btw looks like nixos-option is just a script (that calls nix instantiate)
<EsperLily>
AFAIK weechat is still the "better" client, though I say this having meant to switch for many years now and still not getting around to it
<pie_>
(done nicer though probably)
<spease>
Hi. I'm using nix on OS X, and need to build a Rust package that requires the Security framework (via cargo install). I've determined that I probably need to use nix-shell to provide access to the packages that it needs, but can't figure out how to provide access to nixpkgs.darwin.apple_sdk.frameworks as mentioned in this Stack Overflow post (https
<spease>
://stackoverflow.com/questions/51161225/how-can-i-make-macos-frameworks-available-to-clang-in-a... Can anyone point me in the right direction? Thanks. (asked on #nix-darwin too, but it looks pretty dead compared to here)
chr151 has joined #nixos
<EsperLily>
spease: what have you tried? Making darwin.apple_sdk.frameworks.Security as a buildInput is really common for darwin support on packages
<sphalerite>
although this is more #nixos-chat material than #nixos :p
<EsperLily>
spease: you're using Nix-installed cargo?
chr15 has quit [Ping timeout: 245 seconds]
<spease>
EsperLily: Nix-installed rustup, but then I used rustup to install the toolchains
<EsperLily>
spease: in that case, write a derivation for it and let Nix build it
<pie_>
haha first line is: # FIXME: rewrite this in a more suitable language.
<EsperLily>
that said, I'm not sure why what you just described wouldn't work; cargo via Nix-installed rustup may be patched to use Nix (I don't really know) but surely the stuff it builds would have access to system frameworks
<EsperLily>
but I haven't tried that particular setup; I have a manually-installed rustup for normal hacking
<tokudan>
pie_, hm, well... then i'm basically out of ideas as I cannot test that myself
<freeman42x]NixOS>
is there any Nix only IRC channel? or is #nixos the standard channel for Nix questions?
<EsperLily>
freeman42x]NixOS: there's a #nix-lang but it's very low-traffic
<EsperLily>
and only 25 folks there
<freeman42x]NixOS>
aha
<ivan>
averell: ah, the derivation was different because I bumped libuv for a node bump :(
<EsperLily>
spease: in any case if you were using nixpkgs.cargo directly then I assume a nix-shell with buildInputs set up to include the frameworks would work fine. But I don't know if Nix-installed rustup even does anything with the installed rust/cargo
<EsperLily>
I'm tempted to say no, because that would mean patching rustup to download rust/cargo from cache.nixos.org instead
<EsperLily>
unless this is from the Mozilla overlay? In which case I have no idea what they're doing
<EsperLily>
though at a quick glance I don't see rustup in that overlay
jgeerds has joined #nixos
Zer0xp has joined #nixos
<spease>
EsperLily No, I avoided using the mozilla overlay since I figured it was probably more complex to deal with. In this case I figured nix would be responsible for managing rustup, but rustup would be responsible for the toolchains/cargo, and then cargo would be responsible for anything I installed with 'cargo install'
<EsperLily>
I guess it's worth checking what the nixpkgs rustup package does
<EsperLily>
spease: personally, I'd just install rustup manually. It supports self-updating
<spease>
EsperLily I'm somewhat interested in learning how to write nix packages myself, but this is all a side thing so I can get cargo-tree working to get back to work
<EsperLily>
for cargo-tree I just run `nix-env -iA nixpkgs.cargo-tree` :P
<spease>
:facepalm:
<EsperLily>
spease: I have to idle now, but if you post on https://discourse.nixos.org with details of your issue you can get asynchronous support, and if I have the time I'll experiment with how nixpkgs-installed rustup works
<pie_>
tokudan: well the script seems to reset nix?path
<averell>
mozilla overlay is very simple, and also quite fast now because of binaries
<pie_>
tokudan: gitta pass /I
<tokudan>
pie_, which scrip? nixos-option?
<pie_>
* -I
<pie_>
tokudan: yeah
<spease>
EsperLily I didn't think there would be a cargo-tree package in nix so I didn't even think to look for it. I'm installing it now, assuming that works it will get me unblocked. However I'm guessing that might introduce some 'impurity' with my cargo setup since then cargo-tree will be unlike other cargo utils. I'll also look into Discourse. Thanks.
<tokudan>
pie_, hmm... ok, well then you can just check what nixos-option is doing and do the same without resetting NIX_PATH?
<pie_>
tokudan: -I . now im getting a different error xD will report bacj
<pie_>
brb
Zer0xp has quit [Ping timeout: 245 seconds]
chr151 has quit [Ping timeout: 268 seconds]
reallymemorable has quit [Ping timeout: 245 seconds]
<vika_nezrimaya>
Updated my local checkout to master. Seems like Hydra channels lag a bit, because I'm building a lot of stuff from source :3
abathur has joined #nixos
<mdash>
vika_nezrimaya: yes, they wait until the test suite passes
<mdash>
Has anyone used a password manager like pass/bitwarden/vault for managing secrets in nixos configurations?
<vika_nezrimaya>
mdash: wait, I think I saw a blog post about that
<mdash>
I like being able to make my configs public but obviously there are bits that need to be left out
<vika_nezrimaya>
I use a file called secrets.nix! You make an attribute set there, paste all your secret stuff into its attributes. Then at the start of the configuration.nix, right after { config, pkgs, ... }: you write:
<vika_nezrimaya>
let secrets = import ./secrets.nix; in { <your NixOS configuration> }
pie_ has joined #nixos
<vika_nezrimaya>
assuming you have a userPassword entry in secrets.nix, you can now write: users.users.mdash.hashedPassword = secrets.userPassword;
<mdash>
that's precisely what I've been doing
<vika_nezrimaya>
ok :3
<mdash>
it works OK, but I'd like more centralized control
<vika_nezrimaya>
Use something similar to git-crypt to stuff this file in the encrypted form into your VCS
<mdash>
meh, i guess. i've already got one secrets manager, not excited about having two
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
abathur has quit [Ping timeout: 246 seconds]
<colemickens>
It seems like it will end up in the store either way.
<{^_^}>
[nixpkgs] @zimbatm merged pull request #67450 → nixos/gitlab-runner: add missing HOME to environment → https://git.io/fjAm2
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @bachp to master « nixos/gitlab-runner: add missing HOME to environment (#67450) »: https://git.io/fjxsu
<vika_nezrimaya>
Not if you use NixOps!
<colemickens>
It would be cool to see a NixOS supported way of mounting runtime secrets under /run/ and having system units look there
<sphalerite>
nixops :p
<vika_nezrimaya>
colemickens: NixOps already has something similar, we could try to integrate that...
<mdash>
I see morph has a "write this file but don't put it in the store" option.
<vika_nezrimaya>
btw people use NixOps to deploy configurations on localhost :wink:
<mdash>
sure. I'm gonna give morph a try first though
<infinisil>
I can't say I'm a big fan of nixops tbh
<infinisil>
I've been using it for my machines for a while
<vika_nezrimaya>
How to handle SSL certificates with Nixops using /run/keys? Is it reliably possible (I use Let's Encrypt to get certificates) to do that, or am I better off using security.acme.certs as usual?
<vika_nezrimaya>
can I even consider these certs secrets? one can revoke them, as far as I know, and perfect forward secrecy is a thing in HTTP IIRC
<colemickens>
Does NixOS do some special magic for GTK/themes/cursors/icons? I see weird behavior when trying to configure GTK apperance, and I wonder if it's because I'm not actually using GNOME-Shell and thus not activating all of the magic?
freeman42x]NixOS has joined #nixos
xkapastel has joined #nixos
<tokudan>
vika_nezrimaya, use security.acme to generate certs. if you use nginx, you can just set that option in the virtualhost and you'll automatically get a working cert
<pie_>
tokudan: i found the problem
<tokudan>
vika_nezrimaya, and not every client uses PFS, so that cert must be kept private
<vika_nezrimaya>
tokudan: I use keys group to share certs between nginx, postfix, dovecot and prosody. It doesn't seem that keys group is unprivileged...
<pie_>
tokudan: sigh :P
<vika_nezrimaya>
and yes, I do use acme currently
hoijui has quit [Ping timeout: 264 seconds]
<clever>
vika_nezrimaya: i would just continue to use normal acme
<pie_>
tokudan: this should probably be a bug report somewheer but im not in the mood to write it up......
<tokudan>
vika_nezrimaya, /run/keys is fine, if you've already got it setup, but acme is a lot faster and easier to setup and use... and you don't have to worry about your certs expiring
<vika_nezrimaya>
tokudan: I use acme, but I've configured a shared keys group (which gid seems to be internally used in Nixops sometimes but is privileged anyway) :3
wfranzini has quit [Remote host closed the connection]
<pie_>
tokudan: ...not actually sure how that trace line ends up in there though...
freeman42x]NixOS has quit [Ping timeout: 258 seconds]
<jtojnar>
colemickens: nothing special, ~/.config/gtk-3.0/settings.ini should work
sondr3 has joined #nixos
<sondr3>
I was just invited to join the NixOS organization on Github, is this correct? I haven't seen any mentions about this so just wanted to make sure it wasn't a mistake or anything...
<colemickens>
I can't really get it to use any cursor theme but breeze. No matter what I do, gtk3 apps fallback to breeze, even though Sway and all config say to use capitaine-cursors-white
<colemickens>
cat ~/.config/gtk-3.0/settings.ini | rg cursor-theme-name = "capitaine-cursors-white", and yet
wfranzini has joined #nixos
<sondr3>
gchristensen: thanks, I felt like I remembered reading something about this. Super cool, thanks
<gchristensen>
yep!
<vika_nezrimaya>
Ok. Using nixpkgs master for a PRODUCTION server was a bad idea. nginx doesn't start, saying: Consumed 58ms CPU time, no IP traffic.
reallymemorable has joined #nixos
<clever>
vika_nezrimaya: strace the pid?
<vika_nezrimaya>
There is no PID. It crashes :3
<clever>
vika_nezrimaya: logs?
<vika_nezrimaya>
This is literally the whole log, it seems. I'll try journalctl -xe
<averell>
also try the builtin syntax check maybe
<clever>
vika_nezrimaya: read the .service file, and then run nginx under strace
<vika_nezrimaya>
oh wait I found it, it's really the config
<vika_nezrimaya>
lol
Cale has quit [Ping timeout: 276 seconds]
<pie_>
tokudan: the evalNix function deliberately redirects stderr to stdout
<pie_>
tokudan: so the header= is getting some garbage via generateAccessors
o1lo01ol1o has joined #nixos
<pie_>
i cant think of an easy fix to this offhand...
<pie_>
and i dont want to remove the trace
ng0 has quit [Ping timeout: 260 seconds]
is_null has joined #nixos
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
<{^_^}>
[nixpkgs] @primeos opened pull request #67652 → cage: init at 0.1.1 → https://git.io/fjxGf
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<jtojnar>
colemickens: could you try changing it wih `nix run -f channel:nixos-unstable gnome3.gnome-tweaks -c gnome-tweaks`
stites has joined #nixos
ryantrinkle has joined #nixos
fendor has joined #nixos
<stites>
I've got a python package (built with `python setup.py install`) which is happily installying, but I want to pull out the extracted `lib/` and `include/` (generated because setup.py runs CMake under the hood). Would anyone help with how to go about doing this?
waleee-cl has quit [Quit: Connection closed for inactivity]
<stites>
installing*
<stites>
I was planning on adding a `postInstall` hook and copy the files from under `site-packages`, but I realized that I wouldn't know how to extract the correct python-version
<stites>
(the desired files are located under `/nix/store/<hash>-<python3.6>-<name>-<version>/lib/<python3.6>/site-packages/torch`)
<stites>
this is going into `pytorch/default.nix` -- would I pass sitePackages directly into the derivation? With `python.callPackage ./. {}` I am getting "called without required argument sitePackages"
<worldofpeace>
colemickens: do you switch from using Plasma5? I believe that install would leave around some dotfiles causing this.
<clever>
stites: you want to add python to the arguments, and then use that
ottidmes_ is now known as ottidmes
drakonis_ has joined #nixos
<stites>
it's building (an improvement)! thanks clever!
freeman42x]NixOS has joined #nixos
<stites>
clever: would you happen to know how to only partly run a `buildPythonPackage`? The correct way to configure and build this package is with a `python setup.py --cmake-only && ccmake <plus nix-configured cmake arguments>` but buildPythonPackage is too daunting to pick apart
<clever>
stites: nope, i dont do much python stuff in nixpkgs
<stites>
meerp. okay, thanks!
<gchristensen>
anyone seen this before? /nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh: line 1: source: /nix/store/0623dk7hhb392f7c17kxq4kww3lrwm4s-stdenv-darwin/setup: cannot execute binary file builder for '/nix/store/7nz6z7f1j5vigd97qh0qvziwdry7b99x-aws-sdk-cpp-1.7.53.drv' failed with exit code 126
<freeman42x]NixOS>
I'm running NixOS under Windows VMWare and I am facing the following issue. When running OBS no matter what I do I can not capture the desktop audio. I tried switching between the 4 possible audio modes and none make it work:
<oblivia>
this seems weird: using a basic but homebrewed installation image, I'm noticing that the /mnt/etc/fstab generated by nixos-install is just a copy of the installation image's own /etc/fstab (and this is unbootable, of course). i don't see anything in /mnt/etc/{configuration,hardware-configuration}.nix that would cause this.
<freeman42x]NixOS>
the weird part is that it was not working, then it worked once, and now it is no longer working again
<clever>
freeman42x]NixOS: which end is obs running on? where is the audio source?
<gchristensen>
freeman42x]NixOS: pacmd load-module module-loopback; pactl load-module module-null-sink sink_name=recsink and then open up pavucontrol and play with sinks and sources
<freeman42x]NixOS>
clever, what do you mean? OBS is running inside the NixOS VM
<clever>
gchristensen: obs automatically captures from the loopback of a device
<clever>
freeman42x]NixOS: are you trying to capture audio playing from nixos, or windows?
<gchristensen>
yeah, but I had to do the same thing...
<freeman42x]NixOS>
gchristensen, I do not understand how to do the steps you mentioned
<freeman42x]NixOS>
clever, "are you trying to capture audio playing from nixos" yes, OBS runs inside the NixOS VM
<clever>
freeman42x]NixOS: but what about the source of the audio, is it also in nixos?
<ryantrinkle>
i'm running into an issue with nixos containers where it brings up the network interface *after* the machine starts
<ryantrinkle>
but i've got a wireguard service, which doesn't come up until it has network access
<ryantrinkle>
so the postStartScript never runs
<ryantrinkle>
would it be possible to move the network startup code earlier?
<ryantrinkle>
and/or is there a reason that would be a bad idea?
Myhlamaeus2 has quit [Remote host closed the connection]
Myhlamaeus2 has joined #nixos
<gchristensen>
clever: I think I found a problem
Jackneill has quit [Remote host closed the connection]
<freeman42x]NixOS>
clever, the source of the audio is actually from Windows
<clever>
freeman42x]NixOS: then you first need to figure out how to force windows to route its loopback into the virtualbox capture device
<freeman42x]NixOS>
oh, I see. So stuff played inside the VM does get picked up by OBS
<clever>
freeman42x]NixOS: yes
<freeman42x]NixOS>
clever, not sure how to do that but I will look into it
<clever>
freeman42x]NixOS: the simpler option is to just run obs on windows
<freeman42x]NixOS>
clever, I do not want to do that because I am using a speech to text thingie which I want to be able to easily check on
<gchristensen>
clever: ooh you know what happened
<clever>
at the cost of more latency, you could have obs on windows, capture audio, stream it somewhere, then have obs on nixos play that stream, and re-stream it
<gchristensen>
clever: the host ZFS filesystem ran out of space during an install :)
<clever>
gchristensen: oh, lol
<gchristensen>
testing that theory now...
<clever>
gchristensen: at least with virtualbox, it will suspend the vm if writes fail due to out of space
<{^_^}>
[nix] @zimbatm closed pull request #3070 → WIP: libstore: default to daemon even as root → https://git.io/fjxGV
<clever>
and you can resume the vm once the issue is resolved
<clever>
and the guest wont notice a thing (other then the fact that it was hung for an hour)
o1lo01ol1o has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #nixos
evanjs has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<gchristensen>
clever: since the disk is ephemeral I set qemu to ignore all of the problems and just assume every write was fine
<gchristensen>
maybe not a good idea
<clever>
yeah
<clever>
write failures should probably result in termination
RobinKroonen[m] has joined #nixos
<clever>
which would then reboot, and destroy the clone, and fix the issue
<gchristensen>
definitely should
<pie_>
i dont suppose there's an easy way to get the system nixpkgs version
evanjs has joined #nixos
<clever>
when you find the option, you could share it so i can update the iohk qemu stuff too
<zimbatm>
or `nix run nixpkgs.nix-info -c nix-info` if it's not installed
<pie_>
im not using channels though. ah well actually i guess that means i should just check the nix repo i generated from...derp
<freeman42x]NixOS>
clever, I just realised that it makes no sense for OBS inside the VM to be able to capture the sound from outside of the VM, it's non-sensical
<freeman42x]NixOS>
I don't get it why I thought that might work lol
<freeman42x]NixOS>
there obviously can be solutions to it though
<clever>
freeman42x]NixOS: you would need some pulseaudio style features on the host to force it into working
<clever>
freeman42x]NixOS: but windows doesnt make that easy
<freeman42x]NixOS>
#BlameItOnWindows hehe
asymptotically has quit [Quit: Leaving]
<zimbatm>
pie_: nix-info looks at the NIX_PATH
<zimbatm>
which might point to a channel.. or not
<pie_>
ok my things are a bit messy, im not sure nix info is saying what im really using, but that muight be my faut
<pie_>
fault
<pie_>
ill keep it in mind
<pie_>
this could go either way
emptyfl4sk has quit [Ping timeout: 244 seconds]
<EsperLily>
spease: cargo-tree from Nix will be built with nixpkgs's bundled rustc/cargo, but it pulls in cargo as a library dependency anyway which means it doesn't really matter what you compile it with as long as you compile it with something that meets its minimum rustc version (whatever it is)
<EsperLily>
because what it pulls in as a dependency is wholly separate from the cargo binary you compile it with
spease has quit [Remote host closed the connection]
m0rphism1 has quit [Ping timeout: 245 seconds]
wildtrees has quit [Remote host closed the connection]
drakonis_ has joined #nixos
knupfer has joined #nixos
m0rphism1 has joined #nixos
<freeman42x]NixOS>
what would be a good MP3 player that works on NixOS and can easily do search for songs and queueing them?
<ivan>
I use foobar2000 in wine
<spinus>
o dear
<spinus>
freeman42x]NixOS: clementine
<hyperfekt>
pie_: If you just want the release nix-build -E 'builtins.readFile (<nixpkgs> + "/.version")' would work, otherwise I guess you'd have to run git in the directory to get a ref, since nixpkgs doesn't really know its own version - the channels come packaged with a file that indicates the revision.
<sondr3>
I used ncmpcpp and then cmus but in the end I caved in and moved to Spotify *shrugs*
<jlv>
I would like to do the configuration locally, and push the configuration.nix when I know it works
<spinus>
jlv: how you deploy nixops?
o1lo01ol1o has quit [Remote host closed the connection]
<jlv>
Just learning nix, so nothing that fancy :) I initially set it up with good ol ssh
<spinus>
ok, I think first you may have little trouble as the setups locally and on AWS can be incompatible
<spinus>
but
<spinus>
you can use local vm to test
slyfox has left #nixos ["bye"]
jgeerds has quit [Ping timeout: 272 seconds]
<spinus>
nixos-build-vms is your friend
<spinus>
you can prepare config of vms, import your configuration.nix and build local qemu vm to test
mikky has joined #nixos
<spinus>
also, I when you are preparing configuration for EC2, I would import <nixos/modules/virtualisation/amazon-image.nix>, it would automate few things on ec2
<jlv>
spinus: Thanks. That looks like what I'm looking for. Is there a command to build just one vm? I don't need a network right now. Of course, I can just make a network of 1.
<spinus>
jlv: for sake of it, if you are on cloud, I would deploy the server in blue-green or sth like that
<jlv>
spinus: Do you know if the official EC2 images already import `amazon-image`? They have their own hardware configuration pre-imported. I haven't looked too closely at it yet.
<clever>
jlv: you want to look at the nixops source code
<ivan>
freeman42x]NixOS: if you need an autoplaylist that has everything in your media library, it's %path% PRESENT SORT ASCENDING BY %path%
<ivan>
freeman42x]NixOS: #foobar2000
<ivan>
freeman42x]NixOS: environment.systemPackages = with pkgs; [ wineUnstable winetricks ]; and `winetricks vcrun2015 gdiplus`
fendor has quit [Quit: Leaving]
<spinus>
iqubic: sorry, I'm rambling a little. Each time I had issues with something like that it was of leaking dependencies because I didn't use cmd to create environmentWithPackages pattern, either it was python or haskell or sth else
<spinus>
I didn't use that shellFor before
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<spinus>
ivan: you must really love that player
<freeman42x]NixOS>
ivan, are these packages: `winetricks vcrun2015 gdiplus`? why is winetricks mentioned again?
<freeman42x]NixOS>
also, what is difference between wine and wine-staging? do I need both or only 1?
stites has quit [Remote host closed the connection]
<clever>
freeman42x]NixOS: the version of wine it gives you
ottidmes has quit [Ping timeout: 244 seconds]
ryantrinkle has quit [Ping timeout: 248 seconds]
emptyfl4sk has joined #nixos
pie_ has quit [Ping timeout: 245 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
<ivan>
freeman42x]NixOS: winetricks is the package, later you can run the winetricks command which installs vcrun2015 gdiplus to your default wine prefix
<ivan>
you only need one wine
<freeman42x]NixOS>
ivan, do you happen to have full setup instructions for foobar2000 + plugins using wine on NixOS? if not I am going to write something about it when I finish figuring it out
<freeman42x]NixOS>
sorry, I am still confused, didn't quite catch all
<ivan>
I do not have full instructions but it's basically 1) install wine | wineUnstable and winetricks 2) run winetricks command for foobar2000 dependencies 3) wine foobar2000_installer.exe
jtojnar has quit [Read error: Connection reset by peer]
<ivan>
if it crashes let me know and I'll think of whatever winetricks package I forgot
jtojnar has joined #nixos
<spinus>
nix-env -iA nixos.amarok :]
emptyfl4sk has quit [Ping timeout: 245 seconds]
<iqubic>
so getting my shell environment working is proving difficult.
szicari_ has quit [Remote host closed the connection]
szicari has joined #nixos
liberiga has joined #nixos
<evanjs>
For the few things I’ve used wine for (winbox, etc) all I have to do is install wineStaging or whatever and run the program with wine. YMMV depending on the app though. Games tend to work better with steam-run, for example
Myhlamaeus2 has quit [Ping timeout: 245 seconds]
<freeman42x]NixOS>
ivan, what does this mean? "run winetricks command for foobar2000 dependencies"
<ivan>
that was: winetricks vcrun2015 gdiplus
<ivan>
winetricks takes a list of things to install
<freeman42x]NixOS>
ivan, I see. Thank you
<spinus>
iqubic: why not just run nix-shell for regular package? (I think I uses that for haskell dev and worked for me quite OK)
<spinus>
or building regular mkDerivation shell with haskell dependencies?
<spinus>
did you try that by any chance?
judson_ has quit [Ping timeout: 245 seconds]
judson__ has quit [Ping timeout: 245 seconds]
slack1256 has joined #nixos
ryantrinkle has joined #nixos
selfsymmetric-mu has joined #nixos
<freeman42x]NixOS>
how difficult would it be to set up NixOS for dualboot on a computer that already has Windows 10 installed? the system should boot by default on NixOS
<clever>
freeman42x]NixOS: trivial
ryantrinkle has quit [Remote host closed the connection]
<clever>
freeman42x]NixOS: mostly, just install nixos as normal, without deleting windows, and then use grub.extraConfig to add a menu option for windows
<freeman42x]NixOS>
clever, "without deleting windows" <- you have no idea how hard this is
<clever>
freeman42x]NixOS: either use a 2nd hard-drive, or use gparted to shrink the windows partition
<freeman42x]NixOS>
clever, I had quite big issues installing NixOS last time in a VM, took me a while to figure it out
<freeman42x]NixOS>
clever, yeah, I would definitely shring the Windows partition
<ivan>
if you're using UEFI on NixOS you're not using grub
<clever>
i prefer using grub at all times, even on efi
mbrgm_ has joined #nixos
<ivan>
if you put a second GPU into your computer and perform some rather arcane qemu setup you can game while your NixOS is running
<clever>
ivan: ive found that without the right motherboard, your forced to reboot the host any time windows reboots
<evanjs>
infinisil: thanks for the review! Still getting used to waiting and pinging. I usually just make changes and wait... like until something happens lol
wfranzini has quit [Remote host closed the connection]
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
<evanjs>
infinisil++
<{^_^}>
infinisil's karma got increased to 129
<ivan>
clever: weird, no problems on my ASUS Z97-A
<clever>
ivan: you need per-slot reset, and it may be specific to the gpu drivers
<ivan>
I have 2x NVIDIA and the only USB things I give it are my mouse and keyboard using qemu's usb passthrough