<gchristensen>
DigitalKiwi: hmm making supper, will look in a few minutes :)
<tracer41matrix[m>
stay liberal fag
<DigitalKiwi>
they're now sanded! just have to hand finish the corners
tracer41matrix[m was banned on #nixos by gchristensen [*!*@gateway/shell/matrix.org/x-fwacfjhcvayaauyi]
<edef>
that's a paddlin'
tracer41matrix[m has left #nixos [requested by gchristensen (#NixOS is inclusive, supportive, friendly, and respectful.)]
<DigitalKiwi>
happy new year!
<ben>
someone help me with my latin homework
<edef>
goddamnit ben
<DigitalKiwi>
i odn't know latin but i think it says ignorance is no excuse
<ben>
"ignorance is legit no excuse" probably
<samueldr>
'tis legit no excuse, see, being ignorant led to a ban!
<DigitalKiwi>
how am i not banned
jgeerds has quit [Ping timeout: 260 seconds]
<simpson>
That's a pretty funny mistranslation. "Legit". And now I know how far I have to go before I'm bannable.
<samueldr>
wilfully ignorant vs. haven't learned yet?
kleisli has quit [Ping timeout: 265 seconds]
<gchristensen>
dang, samueldr is saying everything I want to say, perfetly
<samueldr>
perfectly
<samueldr>
:3
<gchristensen>
you did it again!!
<edef>
simpson: i mean, i think we'd all appreciate if you don't push it that far either q=
erasmas has quit [Quit: leaving]
<samueldr>
*cracks thesaurus open* DigitalKiwi an uneducated or unknowledgeable person is not an issue; compared to an insensible impolite ill-mannered person!
<simpson>
edef: Oh, of course I don't want to, but simply by being myself, I'm often mistaken (?) for a troll or a troublemaker. Additionally, as of the past few years, I'm usually not very nice, and I've been banned from IRC channels just for not being sufficiently obsequious.
<craige>
Heppy New Year :-) Am I correct in my assumptin that I cannot specify a generation to rollback to for `nixos-rebuild switch --rollback` ?
<DigitalKiwi>
simpson: i suspect the line is somewhere before what they did but they landed on go to jail do not pass go
<gchristensen>
simpson: I usually find you to be earnest, not a troll :)
<clever>
craige: but you can use nix-env -p /path/to/profile --rollback or --set to just go to a certain build
<samueldr>
abrasive sometimes, but you're still genuine at least
<simpson>
craige: It doesn't appear so, no. I know that you ought to be able to reboot into any prior generation that's still configured in the bootloader, at least.
<gchristensen>
samueldr: help I think we've mind-melded
<DigitalKiwi>
i tried to troll once and isntead gchristensen explained how nix does IO
<craige>
Thanks clever simpson :-)
<lovesegfault>
clever simpson, lol
<edef>
craige: you can do nix-env -p /nix/var/nix/profiles/system --set /nix/var/nix/profiles/system-42-link && /nix/var/nix/profiles/system/bin/switch-to-configuration switch
<edef>
craige: (as root)
mbrgm_ has joined #nixos
<edef>
craige: replace with appropriate generation ofc
mbrgm has quit [Ping timeout: 268 seconds]
mbrgm_ is now known as mbrgm
<zeta_0>
just curious, how many people use nixos compared to other linux distros like debian/ubuntu ?'
<samueldr>
in general, or here on this channel?
<zeta_0>
in general
<samueldr>
(I don't have an answer for in general)
<samueldr>
here on this channel there's more nixos users that's for sure :)
<craige>
Thanks edef
<ivan>
probably safe to say 'fewer people use nixos than debian or ubuntu'
o1lo01ol1o has quit [Remote host closed the connection]
<shapr>
yeah, but look at the market share
<shapr>
from what I'm seeing, many ops people are learning nixOS
<shapr>
and devs too, because it saves you compile time
<zeta_0>
cool, i am glad that i discovered nix, it has saved me from a lot of pain and suffering(dependency hell, and so forth), it's automation capabilities are enjoyable to use
o1lo01ol1o has joined #nixos
<Diogenes->
Heya shapr!!
<shapr>
howdy Diogenes-
<Diogenes->
shapr: Enjoying learning nix/nixOS?
<zeta_0>
not having to manually set things like path env vars is nice, in ubuntu i used to make little typos when adding/changing an env var, and it would cause the whole system to crash, then i would have to install ubuntu from a flash drive all over again
<shapr>
Diogenes-: mostly distracted by job interviews
<Diogenes->
heheh
<Diogenes->
Any good ones?
erictapen has quit [Ping timeout: 265 seconds]
* Diogenes-
is fighting bash and jenkins today
<shapr>
yeah, I'm traveling to Brooklyn soon for one
<Diogenes->
Nice!
<shapr>
they gave me coding homework, I wrote some Haskell, they liked what I did
<Diogenes->
Let me know when, we could grab lunch again
<Diogenes->
Or well finally grab lunch haha
AstroBadger has joined #nixos
<shapr>
yeah, sounds like fun to me
erictapen has joined #nixos
o1lo01ol1o has quit [Ping timeout: 265 seconds]
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
<clever>
gchristensen: was just thinking, one case where zfs dedup would be better then nix-store --optimize, is when snapshots get involved
<clever>
gchristensen: if you delete, a file, but a snapshot holds a copy, and then you remake it, nix cant dedup, but zfs could
<clever>
but its better to just not snapshot /nix
takeda has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @Ericson2314 pushed 310 commits to mkderiv-env: https://git.io/JexSC
<gchristensen>
it seems IFD has snuck in to the evaluation
<lovesegfault>
IFD?
<gchristensen>
Import From Derivation
<lovesegfault>
Ah, I think that's an older eval than my change though
<lovesegfault>
the input is commit 74404831384768744c2705bd9d6f4cc31b2620c4
<gchristensen>
look at the evaluation log, you can see "copyin from ..." that means it is about to build, but it should *never* build during evaluation
<clever>
gchristensen: if you set that to false with --option, it will hard fail on all IFD
<gchristensen>
great idea
<gchristensen>
I thought I already had something like that working
<clever>
also, just parsing the nixpkgs release.nix, would generate ~20,000 drv files in /nix/store/
<clever>
that broke my system, back when i ran btrfs, lol
<lovesegfault>
reproducing...
<gchristensen>
hah
<edef>
just 20k? that must've been a while back
<clever>
rough number, cant remember exactly
<gchristensen>
yikes, the PR which did this should have fixed all the tests: trace: warning: The option `boot.extraTTYs' defined in `/home/grahamc/projects/github.com/NixOS/nixpkgs/nixos/modules/services/misc/nixos-manual.nix' has been renamed to `console.extraTTYs'.
<clever>
edef: it also didnt complete, it crashed the system hard, forcing a reboot
<edef>
just realised i can expose implementation details of initEnv
<lovesegfault>
gchristensen: Yeah, I'm about to go fix this
<clever>
evils: lol, who would have thought to make sucha tool!
hpfr has joined #nixos
Rusty1 has joined #nixos
<jared-w>
someone else who regularly tries to run linux with a broken keyboard, apparently /s
<evils>
clever: now i remember why i have a keyworded bookmark for "qwerty"
<evils>
also i suddenly remembered i have a key combo to toggle between qwerty and dvorak...
<jared-w>
evils: does your keyboard do hardware level mapping for layouts?
<evils>
so either that's persisted between reboots, or nixos fucked up
<evils>
jared-w: got a new keyboard, i believe i can set that, i don't believe i have
<jared-w>
evils: I once tried to learn dvorak without using a keyboard that could set it at the hardware level; instant regret. Now the most pain I inflict on myself is mapping esc+ctrl to caps
<jared-w>
I just use too many computers, or there's a surprisingly vast amount of stuff out there that breaks on other keyboard layouts or when you wanna set stuff to a non default, or what not. So I was already suffering with going out of my way to run linux and I gave up on the alternative keyboard layout :p
<evils>
jared-w: everything i touch is set to dvorak, no pain, until i got this poisoned gift, shit got so fucked up with this, i can't even access my bios xD
<jared-w>
lol
<{^_^}>
[nixos-channel-scripts] @samueldr opened pull request #30 → mirror-branch: Bails when failing to run nix-instantiate → https://git.io/Jex9Q
<evils>
uefi doesn't seem to accept usb as an input, while trying to fix that i got to a point where it would accept usb when my ps/2 keyboard was plugged in, and now it accepts neither
<gchristensen>
jared-w: (please try to avoid profanities in here :))
<evils>
nor does grub
<evils>
gchristensen: you mean me?
<gchristensen>
oops, yeah
<jared-w>
Its cool, he pegged me on it like two weeks ago so it was probably force of habit :p
* jared-w
flips table at hydra queue--10 machines and all of them "idle"
<jared-w>
I am moderately proud of my beautiful hack to auto login people into Hydra though (it's a private hydra so there's only really one user and nobody cares)
<evils>
lets see if it's just X remembering my keyboard layout state between reboots, then i just have corsair and asrock to swear at (though the segfaults at shutdown aren't nice)
<jared-w>
evils: segfaults at shutdown? Because of a keyboard layout? o.O
<evils>
no, because of nixos
<evils>
or because latest kernel
<{^_^}>
[nixpkgs] @danielfullmer opened pull request #76855 → zoneminder: Fix installation location for cgi-bin → https://git.io/Jex95
<evils>
i should probably refrain from listing my swear worthy grievances with nixos...
<jared-w>
I just wrote a few lines of ugly JS and crammed it in the hydra "tracker" thing. It checks to see if something in the login button exists and if it does, it programmatically submits the form hardcoded with the admin user/password.
<jared-w>
evils: latest kernel is pretty much always working nicely for me...
<evils>
i've been having intermittened (though reliable per version i think) segfaults/hangs at shutdown since 5.1 i think (and that's just when i started using the latest kernel)
evils has quit [Remote host closed the connection]
evils has joined #nixos
h0m1 has quit [Ping timeout: 248 seconds]
<evils>
yay, its nixos' fault...
h0m1 has joined #nixos
<evils>
neither services.xserver.layout nor .xkbOptions are working it seems
<{^_^}>
[nixos-channel-scripts] @grahamc merged pull request #30 → mirror-branch: Bails when failing to run nix-instantiate → https://git.io/Jex9Q
<{^_^}>
[nixos-channel-scripts] @grahamc pushed 2 commits to master: https://git.io/JexHf
<evils>
so my toggle doesn't work, but started working earlier...
<Diogenes->
Hmm, with the jellyfin service. Anyone suddenly getting forbidden when hitting it?
<evils>
at least 'setxkbmap dvorak' still works
rogue_koder has quit [Ping timeout: 260 seconds]
<Diogenes->
Wonder if the jellyfin package was updated...
<Diogenes->
Hmm
<syd>
can anyone here help me with building an android app?
<hpfr>
on nixos-unstable using the home-manager module, getting "the option home-manager.users.lh.programs.readline does not exist" when I try to rebuild
<evils>
syd: if it's nix related, maybe try #nixos-aarch64, the mobile-nixos people hang out there i believe, otherwise, maybe an android specific channel?
<syd>
okido thanks!
<syd>
this is so much more difficult than it should be
jluttine has joined #nixos
rogue_koder has joined #nixos
<mla>
how might i make firmware available to the initrd? it seems like the hardware.firmware option doesn't get loaded there but i need to pull in an edid firmware file for drm to be loaded properly in early stage
takeda has joined #nixos
<lovesegfault>
clever: Had to go to the bank
<lovesegfault>
clever: error: access to path '/nix/store/7wghnp6s3bgwqj16j98cb68p08lw9qjh-nixpkgs' is forbidden in restricted mode
<lovesegfault>
every time I add a path of an error like this it errors again with a different path
<clever>
lovesegfault: run `diff -ru` on 2 versions of that path, from the errors
<turq>
i can "nix-build" without a problem, but i can't "cabal new-build" within a nix-shell due to the lack of a library. i've tried referencing /nix/store/LONG_STRING_zlib-VERSION/lib with --extra-lib-dirs, but I only see .drv files for the version needed
<{^_^}>
[nixpkgs] @anmonteiro opened pull request #76856 → ocaml rresult: Add the `result` compatibility package as a build input → https://git.io/JexQR
<jerryaldrichiii>
Hey all :D I have a question regarding pinentry/gnupg. TL;DR: Getting "attribute 'flavors' missing at /PATH/modules/service/gpg-agent.nix:134:41" during a rebuild. Any ideas?
<fpletz>
jerryaldrichiii: you need to use the 19.09 branch of home-manager since you're using nixos 19.09
<jerryaldrichiii>
This sounds plausible! Let me check. Thanks fpletz
<gchristensen>
infinisil: I'm afraid your PR merge might need to be reverted
<jerryaldrichiii>
Ah, yeah. Looks like I'm pulling master. I'll fix that and try again.
<infinisil>
gchristensen: What did it break?
<gchristensen>
I think it is causing IFD during the evaluation of nixos
<gchristensen>
still verifying
alexherbo22 has joined #nixos
<gchristensen>
it is slow to bisect evaluating all of nixos :P
<infinisil>
Oh hm that shouldn't be, I'll check it out
<elux>
hi guys. has anyone heard of a situation where the system boots, i can use my keyboard but after a few seconds after logging into the tty, the keyboard is completely unresponsive? i literally have enough time to write `journalctl -f` perhaps its not just the keyboard, its the entire system? but if i hit the power off switch on the box, it shuts down safely with systemd sequence..
<gchristensen>
infinisil: I'm onthe last step of the bisection
<elux>
this configuration.nix has worked just fine on another machine of mine (this one), with some very minor adjustments to it ..
<gchristensen>
and also I'll need to improve ofborg to detect this better
<notgne2>
elux: does the system remain responsive if you were to SSH into it?
<{^_^}>
#75031 (by Infinisil, 4 weeks ago, merged): Module system improvements for NixOS as a submodule
<gchristensen>
yeah, infinisil
alex`` has quit [Ping timeout: 260 seconds]
<elux>
notgne2: i haven't tried that, ssh is off on this box, but thats worth a shot anyways
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo22 is now known as alexherbo2
<notgne2>
I had an issue a bit like that (but probably with less than enough time to login), it turned out to be an issue with the kernel version and graphics drivers
<infinisil>
gchristensen: What command are you using for the bisection?
<elux>
i got it. my desktop had powertop enabled, perhaps this was it..
andi- has quit [Remote host closed the connection]
qubasa has joined #nixos
<jerryaldrichiii>
fpletz: That did it (pinning to release-19.09 branch) thanks a bunch!
felixfoertsch23 has quit [Quit: ZNC 1.7.4 - https://znc.in]
<infinisil>
gchristensen: What specifically is the error?
domogled has joined #nixos
<infinisil>
Is it IFD or is it just importing a ./nixpkgs path into the store?
thomashoneyman has joined #nixos
felixfoertsch has joined #nixos
<gchristensen>
IFD
<infinisil>
Error?
<gchristensen>
one moment, I'll get you more info (currently on 2 problems)
andi- has joined #nixos
<gchristensen>
https://hydra.nixos.org/jobset/nixos/trunk-combined#tabs-errors -> error: a 'aarch64-linux' with features {} is required to build '/nix/store/9y4r9bn97zrac02cj2fhbp6ncv0f20zp-test.json.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
<infinisil>
Yeah just checked that out too, hmm...
<gchristensen>
and my bisect is like 30s away from being complete
<gchristensen>
aaaand the garbage collector started.
<infinisil>
gchristensen: Oh, check out `nix-instantiate nixos/tests/certmgr.nix`
<infinisil>
error: syntax error, unexpected ':', expecting '.' or '=', at /nix/store/7jkffc96jmjyh55b8k99252wsrklhg6q-test.json:1:10
<lovesegfault>
Yep
<gchristensen>
O.o
<lovesegfault>
I ran into that
<infinisil>
Seems like it's trying to read a json file as nix
<gchristensen>
it bisects to eec83d41e3e7d9ad5bc1086198d972d55bab1203
<gchristensen>
no, but something else is going wrong
<infinisil>
gchristensen: I'll revert the commit and make a PR to fix it (by making the default behavior to not allow paths as values)
<gchristensen>
infinisil: sounds great, how about you do a revert, I'll trigger an eval to try and get nixos-unstable updated before merging the updated patch?
<thomashoneyman>
quick qustion: anyone have a link to docs on using a nixpkgs overlay on a nested attribute?
<thomashoneyman>
specifically, i want to write a ~/.config/nixpkgs/overlay.nix file
<thomashoneyman>
which overrides vimPackages.<plugin>
<infinisil>
gchristensen: Want a PR for the revert? I'd just push it directly to master
<gchristensen>
infinisil: I'd say ahead to master, but if it goes wrong it is doubly awkward :P
<judson_>
Hm. I'm having trouble with cache.nixos.org - "SSL peer certificate or SSH remote key was not OK"
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
felixfoertsch has joined #nixos
<judson_>
I tried running gchristensen's script, which ironically tries to install from cache.nixos.org
<judson_>
Curl doesn't like the cert either.
domogled has quit [Quit: domogled]
dansho_ has joined #nixos
<judson_>
no alternative certificate subject name matches target host name 'cache.nixos.org'
<judson_>
s_client verifies the chain, but the subject is e.sni.fastly.net
dansho has quit [Ping timeout: 265 seconds]
<judson_>
Nevermind. Seems to have corrected itself.
<CMCDragonkai>
Why are some haskell packages missing?
Rusty1 has quit [Quit: Konversation terminated!]
<CMCDragonkai>
For example `pkgs.haskellPackages.directory` is null
<CMCDragonkai>
but `pkgs.haskellPackages.directory_1_3_4_0` is not missing
<CMCDragonkai>
why does `directory` not exist, but `directory` with that specific version does?
<CMCDragonkai>
Another example is `binary`
<CMCDragonkai>
it doesn't exist, but `binary_0_7_6_1` exists and `binary_0_8_7_0` exists
captn3m0- has quit [Ping timeout: 268 seconds]
judson_ has quit [Remote host closed the connection]
letletletlet has joined #nixos
<letletletlet>
Does nix support recursive let? I want to do `unstable = ...; haskellPackages = unstable.haskell.packages.ghc881;` within packageOverrides but unstable isn't avaialble let. In emacs you would use `let*` instead of `let` here.
<dansho_>
letletletlet: does let rec { ... } work?
jlv has joined #nixos
<DigitalKiwi>
emacs is a great programming language lacking only a text editor
<letletletlet>
Actually I described my problem wrong. Here is a workaround that seems to work because I inlined everything. It isn't actually within a let, here is a smaller version of my config: https://pastebin.com/pSZHJP3S
<letletletlet>
it's within packageOverrides that I define "unstable" then I'd like to use it immediately after defining
<infinisil>
letletletlet: let's are always recursive in nix
nexgen has joined #nixos
<infinisil>
letletletlet: I'd remove the `with import <nixpkgs> {}` because in NixOS you should always use the `pkgs` you get from the arguments
<infinisil>
Is there an error you get with that config?
<letletletlet>
infinisil: Yes. I get `error: undefined variable 'unstable'`
rogue_koder has quit [Remote host closed the connection]
<infinisil>
letletletlet: Try it with an overlay instead perhaps: `nixpkgs.overlays = [(self: super: { unstable = import unstableTarball { config = config.nixpkgs.config; }; }; )]`
<thomashoneyman>
...after all this it turns out that none of this is an issue with vim instead of neovim. i don't exactly know why, but that's for another day.
<letletletlet>
it still complains about unstable not being defined. Do I need to move haskellPackages to be redefined within the overlay too to be able to use unstable?
<letletletlet>
or are things defined in overlay usable in packageOverrides?
<jlv>
infinisil: I have a project that I'm using Nix to build. I have a checkPhase, but I'm not sure how to run that checkPhase. I would like to run that checkPhase without the rest of the build. On a related note, the checkPhase does not appear to be running when I run `nix-build`.
<letletletlet>
infinisil: Last question, can I then somehow use `unstable.ghc881` in `(all-hies.selection { selector = p: { inherit (p) ghc865; }; })`? I tried: `(all-hies.selection { selector = p: { inherit (p) unstable.ghc881; }; })`
<infinisil>
jlv: You mean in a nix-shell?
<infinisil>
letletletlet: Nah, HIE doesn't support 8.8.1 yet
tpanum| has quit [Read error: Connection reset by peer]
<jlv>
infinisil: I am using a nix-shell, but I am also using Nix to build the project and manage dependencies.
dansho__ has quit [Remote host closed the connection]
dansho__ has joined #nixos
<bennofs[m]>
,locate nixos-install
zupo has joined #nixos
<{^_^}>
Found in packages: nix-bash-completions
<pie_[bnc]>
bennofs[m]: i think thats in nixpkgs
<pie_[bnc]>
bennofs[m]: its kind of weird but theres a directory with some source code, for various nixos tools
<thefloweringash>
shouldn't be)
<thefloweringash>
I'm tracking down a build failure in a 32-bit vm with an overlayfs /nix/store. The bug is that lseek to a position >32 returns only the lower 32 bits (according to strace). I'm assuming it's an overlayfs/O_LARGEFILE interaction, but I don't yet understand why I'm seeing this when writing to files `/tmp`. Is `/tmp` during a sandbox build actually inside /nix/store? (It is according to `df /tmp`, but seems like it
<thefloweringash>
that should be "position > max 32 bit int"
<eoli3n_>
Using NixOS on a ZFS root file system might result in the boot error "external pointer tables not supported" when the number of hardlinks in the nix store gets very high. This can be avoided by adding this option to your configuration.nix file:
<pbb>
> with import <nixpkgs> {}; with stdenv.lib; let sources = { aarch64-linux = {}; }; in filter (p: sources ? platform) platforms.all
<{^_^}>
[ ]
<pbb>
any idea why this doesn't work?
<pbb>
I would expect it to return [ "aarch64-linux" ]
<ldlework>
__monty__: ERROR: Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: '/nix/store/bph71v9qiqznpgyibmpln6bi784pfvgf-python3-3.6.9/lib/python3.6/site-packages/UNKNOWN-0.0.0.dist-info'
<__monty__>
Read-only doesn't sound like "out of space".
MmeQuignon has joined #nixos
<LnL>
pbb: ? doesn't take variables
<LnL>
> { foo = {}; } ? foo
<{^_^}>
true
<LnL>
so you want "${p}"
<pbb>
> with import <nixpkgs> {}; with stdenv.lib; let sources = { aarch64-linux = {}; }; in filter (p: sources ? "${platform}") platforms.all
<{^_^}>
undefined variable 'platform' at (string):272:110
jgeerds has joined #nixos
<pbb>
> with import <nixpkgs> {}; with stdenv.lib; let sources = { aarch64-linux = {}; }; in filter (p: sources ? "${p}") platforms.all
<{^_^}>
[ "aarch64-linux" ]
<pbb>
LnL++
<{^_^}>
LnL's karma got increased to 16
troydm has quit [Ping timeout: 260 seconds]
veske2 has joined #nixos
veske has quit [Ping timeout: 258 seconds]
kenjis has quit [Remote host closed the connection]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
veske2 has quit [Ping timeout: 258 seconds]
syd has joined #nixos
kleisli has quit [Ping timeout: 268 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dingenskirchen1 is now known as dingenskirchen
kenjis has joined #nixos
syd has quit [Remote host closed the connection]
veske has joined #nixos
alexherbo2 has joined #nixos
ng0 has joined #nixos
ng0 has joined #nixos
alex`` has joined #nixos
<siers>
I want to see haskell package's dependencies. I guess the easiest way would be to see the closure of nix shell derivation. How could I do that?
cosimone has joined #nixos
<{^_^}>
[nix] @edolstra merged pull request #3298 → passAsFile: leave out the hash prefix → https://git.io/JexyD
<eoli3n_>
i use an EFI boot, so systemd-boot config. I want to setup zfs encryption, i tried with zfs over LUKS and separated EFI part outside luks
<eoli3n_>
problem is that it can't see generations
<eoli3n_>
should i use full disk encryption on luks + grub config OR zfs unstable and built in encryption ?
<__monty__>
When I run mpv I get a Fontconfig error about not being able to load the default config. This is on macOS. I'm not having any luck googling for the problem.
veske2 has joined #nixos
veske has quit [Ping timeout: 268 seconds]
szicari has quit [Ping timeout: 260 seconds]
Wizek has joined #nixos
szicari has joined #nixos
fendor has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @FRidh pushed 34 commits to staging-next: https://git.io/Jexpt
<{^_^}>
[nixpkgs] @FRidh opened pull request #76875 → Staging next → https://git.io/Jexpq
<adisbladis>
eoli3n_: Built-in encryption is also available in the stable package (even on 19.09)
<eoli3n_>
oh cool lets try that so
Neo-- has joined #nixos
<eoli3n_>
maybe wiki need to be updated
<eoli3n_>
https://nixos.wiki/wiki/NixOS_on_ZFS#Encrypted_ZFS "Native encryption is only available in the zfsUnstable package of NixOS, which was added in PR-29426 in unstable and will be part of 18.03."
<eoli3n_>
i misunderstood that
zupo has joined #nixos
Makaveli7 has joined #nixos
<adisbladis>
eoli3n_: I just updated the wiki
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<Shoubit>
mananamenos, afaik `cachix use all-hies` will only enable you to use cachix as a user, but not on the system-level as required by `nixos-rebuild`
jgeerds has quit [Ping timeout: 258 seconds]
domogled has quit [Remote host closed the connection]
patrl has quit [Quit: WeeChat 2.7]
patrl has joined #nixos
<mananamenos>
Shoubit, i tried doing the use cachix with root, but as yeah, it does not add anything in /etc/nix/nix.conf about all-hies
xkapastel has quit [Quit: Connection closed for inactivity]
silver has joined #nixos
silver_ has joined #nixos
silver_ has quit [Remote host closed the connection]
patrl has joined #nixos
patrl has quit [Changing host]
mananamenos_ has joined #nixos
mananamenos has quit [Ping timeout: 268 seconds]
<domenkozar[m]>
mananamenos: it should tell you how to configure nixos with the caches
<mananamenos_>
this didn't help either :/ weird. At least now i do see the all-hies cachix url in /etc/nix/nix.conf
<{^_^}>
[nixpkgs] @FRidh opened pull request #76880 → gcc: keep using gcc8 to work-around failing rpi build → https://git.io/Jexjt
<nix-newbie>
I'm playing around with the nix language and one (hopefully) very simple thing I am hitting a brick wall against is a way to test whether a list has a member
<nix-newbie>
But is there a more idiomatic or sugary way to do this?
civodul has joined #nixos
<Shoubit>
nix-newbie, you want `lib.elem` which takes the element as the first argument and the list as the second
<nix-newbie>
Thanks!
<nix-newbie>
Is there a way to discover these functions...? The wiki lists the builtins but seemingly nothing else? Unless I'm just looking at the wrong place...
<domenkozar[m]>
mananamenos_: are you on nixos?
Chiliparrot has joined #nixos
<Shoubit>
nix-newbie, I usually just use `nix repl`, type `lib.` and press the tab key
<nahamu>
Shoubit++
<{^_^}>
Shoubit's karma got increased to 1
<nahamu>
I've never used `nix repl` but now I'm excited to try it!
zupo_ has joined #nixos
<nix-newbie>
That brings along a related question
<nix-newbie>
When I am in the repl
<nix-newbie>
I can only access the builtins
<nix-newbie>
I guess I must import lib first?
<Shoubit>
oh, oops. `nix repl '<nixpkgs>'` should do
selfsymmetric-mu has quit [Remote host closed the connection]
cosimone has joined #nixos
__Sander__ has joined #nixos
kenjis has joined #nixos
<o1lo01ol1o>
What precisely does "warning: substituter foo does not have a valid signature for path bar" mean?
<o1lo01ol1o>
for context, we have a number of binary caches with different keys and these messages seem to increase as time goes on.
<{^_^}>
[nixpkgs] @mdorman opened pull request #76883 → gi-gdkx11: Default to 3.X version → https://git.io/JexjF
szicari has quit [Ping timeout: 252 seconds]
ddellacosta has joined #nixos
mananamenos_ has quit [Remote host closed the connection]
mananamenos has joined #nixos
szicari has joined #nixos
jluttine has quit [Ping timeout: 240 seconds]
jco has joined #nixos
elux has joined #nixos
<elux>
does anyone here use multiple machines and sync their ~/.config and other settings between them? for the most part i can get far with a .dotfiles directory and .nix files to reproduce my setup, but there are a few lingering files in my .config i'd like to sync too, such as spotify, vscode, etc. -- wondering how others are tackling this
mananamenos has quit [Remote host closed the connection]
lunik1 has quit [Quit: Ping timeout (120 seconds)]
lunik1 has joined #nixos
Havvy has quit [Ping timeout: 268 seconds]
orivej has joined #nixos
szicari has quit [Ping timeout: 252 seconds]
<kenjis>
Is there a way to use niv for Sourcehut? Or do I need to do the fetchgit?
__Sander__ has quit [Quit: Konversation terminated!]
szicari has joined #nixos
erictapen has quit [Ping timeout: 265 seconds]
cfricke has quit [Ping timeout: 258 seconds]
erictapen has joined #nixos
virus_dave has joined #nixos
<dsx>
fetchgit should work with any git, shouldn't it?
jco has quit [Ping timeout: 248 seconds]
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
MarcWeber has joined #nixos
<kenjis>
Yes it works with Sourehut, sorry I think the Question wasn't clear enough. I was wondering if the tool niv https://github.com/nmattia/niv is able to handle Sourcehut links, so far I haven't gotten it to work yet.
<tbenst[m]>
anyone know a cross-platform way to get hostname in a home.nix file? i.e. something like `${nixos.config.networking.hostName}` that works on both NixOS and Ubuntu
gagbo has quit [Quit: I'm out !]
<tbenst[m]>
I suppose I could `builtins.readFile /etc/hosts` and then parse `127.0.0.1` that != localhost, but that feels pretty inelegant
<mehlon>
etc/hostname ?
<{^_^}>
[nixpkgs] @filalex77 opened pull request #76891 → termius: init at 5.2.3 → https://git.io/Jepk0
<tbenst[m]>
mehlon: that works! thanks
alexherbo2 has quit [Read error: Connection reset by peer]
<fendor>
,locate nix-shell
<{^_^}>
Found in packages: nix1, nixFlakes, nixStable, nixUnstable, nix-bash-completions
alexherbo2 has joined #nixos
floscr has joined #nixos
<floscr>
anyone got an idea why I can't update my nix-channels on a fresh install (So nixos-install also doesnt work)
<floscr>
So nix-channel --update just takes forever
<floscr>
I'm connecting via tethered phone
<floscr>
ping works, so I'm connected
<floscr>
Well at least now I'm getting a timeout
zupo has joined #nixos
erasmas has joined #nixos
brightone has quit [Remote host closed the connection]
<tilpner>
floscr: You don't need to use nix-channel if you don't want to. If (for some reason) you can't update them, you can use any other means (USB drive) to transfer a copy of nixpkgs to the right place and set NIX_PATH appropriately
<tilpner>
floscr: A tar.gz will work, <20MB, you don't need the full checkout
<evanjs>
*looking through the items on the list* > integrate and obsolete https://github.com/musnix/musnix -- yes pleeeeease. If only for RT kernel support in NixOS
<Ankhers>
I recently bought a Lenovo T590. I have installed NixOS on it, but I can't seem to reboot / turn off the machine without it freezing. Does anyone know how I can attempt to debug this?
<nahamu>
Ankhers: Can you boot it from some sort of live media and see if it still has the same problem?
aveltras has joined #nixos
<nahamu>
Otherwise it would make sense to pastebin a redacted version of your configuration somewhere in case you installed something obviously wrong.
nixtacular has joined #nixos
justanotheruser has joined #nixos
[Leary] has joined #nixos
<adisbladis>
Another thing: Very recent laptops often require the latest kernel (not LTS)
Lears has quit [Read error: No route to host]
<Ankhers>
nahamu: Sure. I will do that shortly and see if the issue persists. Would there be a way for me to load my configuration into the live USB so that I could test it against that?
<nixtacular>
hey would someone who has merge permissions in the GitHub repo mind reviewing this 1-line PR really quick? i'm trying to fix a package that has been broken for years and this is a blocker in my dev process. https://github.com/NixOS/nixpkgs/pull/76854
<adisbladis>
The comment at the top of the file is how to build it
szicari has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @flokli pushed 7 commits to release-19.09: https://git.io/JepLs
kleisli_ has joined #nixos
kleisli has quit [Ping timeout: 260 seconds]
<infinisil>
nixtacular: Shouldn't the parallels tools first be updated to some version that's compatible with >4.15?
<infinisil>
Ah I guess there's a redundant check anyways
szicari has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<nixtacular>
infinisil: i'm actively working on an update to the most recent version of parallels tools, but i'm trying to do it as an overlay on my own system first. the assert in derivation prevents the overlay from working because the base derivation won't even load.
jco has quit [Ping timeout: 245 seconds]
<nixtacular>
i've been working with Nix for a couple of months and i still haven't found a good workflow for updating packages on my own system and merging upstream. the process feels frustrating and chaotic :-/
<gchristensen>
the borked network bits ... very nice
<nixtacular>
neat!
wangoe[m] has joined #nixos
<nixtacular>
i might be able to use this. my use case is that i'm trying to create an ideal dev setup for myself: a NixOS virtual machine running on my laptop that's my primary driver, which is kept continually in sync with a nearly identical NixOS build running in the cloud that i can access any time that I don't have my laptop
<infinisil>
This tool is also one of the main reasons why I pushed #75031, because now I can write multi-host abstractions because of it
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #76887 → llvm: use correct version of tablegen when cross compiling _8 and _9 → https://git.io/JepUC
<jared-w>
Is there a nice script or process somewhere that'll completely clean up and remove hydra from a nixos computer entirely? I'd like to clean slate remove the db, users, keys, anything in the store related to it, etc.
<jared-w>
gchristensen: haven't seen that yet. I did manage to get my hydra to where it would queue things and then never evaluate anything
<infinisil>
jared-w: Everything except the state should be taken care of by nixos
<infinisil>
For the database you probably have to use psql manually and DROP some tables
<jared-w>
infinisil: that's what I was thinking
endformationage has joined #nixos
<jared-w>
just wanted to make sure I wasn't missing anything
selfsymmetric-pa has joined #nixos
domogled has quit [Ping timeout: 240 seconds]
domogled1 is now known as domogled
<infinisil>
I personally never remove state unless I notice it taking up too much space
eraserhd2 is now known as eraserhd
<gchristensen>
and the home directory for each hydra-* user
<jared-w>
I'm trying to reverse engineer a setup a coworker has that works perfectly on his computer, the production server, yet despite verbatim copy pasta, I can't get it running, so I've been rebuilding it in a more deterministic way, hence my desire to aggressively and frequently purge every possible form of state whatsoever :p
<gchristensen>
ouch
<jared-w>
It's been wild. We're using hydra, but we're generating jobsets using a python actor model service that takes multiple inputs and essentially creates a matrix of jobsets out of them (essentially "try this package with ghc versions 8.4 8.6 8.8, and also with different versions of your dependencies and also with...")
<jared-w>
The hydra setup seeeems to be mostly working except for the whole "can't get the machines to stop being idle" that happened lately, but there's a few layers of indirection between hydra and the jobset so debugging that has been interesting
kenjis has quit [Ping timeout: 248 seconds]
<jared-w>
particularly since it's not "broken", I just can't reproduce it in a working manner... lol
<__monty__>
Why oh why? Swift's not available on darwin, neither is glibc. Oh the humanitey!
<jared-w>
__monty__: glibc is really weird on macOS iirc
<jared-w>
that's what I thought. Now that I think about it, I do reach for that non existing function enough to remember being frequently annoyed by it not being there :p
<infinisil>
So attrsToList = mapAttrsToList nameValuePair
<infinisil>
Ah gchristensen asked for that ^
<gchristensen>
yeah, that should just be part of the "standard library"
o1lo01ol1o has quit [Remote host closed the connection]
<__monty__>
jared-w: Good idea to use that as reference. I'm not sure how to integrate it with the existing derivation for linux.
<jared-w>
https://github.com/apple/swift/blob/master/utils/build-script looks like they just use this and pass in the right arguments so everything can find the right paths. They're using clang to build and the nixpkgs version is somehow using clang and then applying a million patches to switch it out into glibc somehow? o.O
jumper149 has joined #nixos
CMCDragonkai has quit [Quit: Connection closed for inactivity]
<__monty__>
Yeah, a bunch of linux specific patches. Kinda don't want to create another schizophrenic derivation like the one for wire-desktop though : /
jumper149 has quit [Client Quit]
<jared-w>
wire-desktop doesn't look... *terrible*
<jared-w>
wouldn't wanna write that for swift, though; especially given its complexity vs wire...
<infinisil>
gchristensen: I've been thinking for a while that a nix library of sorts would be nice, outside of nixpkgs
<infinisil>
With all sorts of standard things in them
<__monty__>
Yeah, but updating wire-desktop's versions is kinda annoying. And it's not actually building wire, just getting the right binary for the platform >.<
<thomashoneyman>
i'm trying to use filterSource to restrict the source of a derivation to only two directories ("src" and "test")
<jared-w>
__monty__: might almost be worth it to just download the binary somehow and screw with it until it boots correctly?
<lejonet>
What the hell am I doing wrong if I'm on nixos-unstable channel but nix search refuses to turn up ghidra? I can see that it is in 19.09 stable, but I've tried "nix search ghidra" on 2 systems, which nix-channel --list shows them to be on nixos-unstable, but can't find ghidra...
<thomashoneyman>
but it looks like the 'path' bit is the absolute path
<thomashoneyman>
wait, never mind, let me look at path manipulation functions first
<infinisil>
lejonet: Did you update the nix search cache?
<lejonet>
infinisil: yep, even with -u it says no results found
<__monty__>
jared-w: Don't let gchristensen hear though, he doesn't like derivations providing binaries >.> <.<
<thomashoneyman>
is there a function which retrieves the last segment of a path?
<lejonet>
adisbladis: not impossible, how would I verify that?
<adisbladis>
My only real protip here is don't use channels
<adisbladis>
lejonet: Run `nix-channel --list` as root perhaps?
<__monty__>
DigitalKiwi: It's just annoying. Means you need both platforms to test. (I bumped wire earlier today and wrote the double derivation originally btw.)
<adisbladis>
lejonet: You can also just remove any channels you have as root :)
<lejonet>
indeed, root is on 19.03, I thought user channel would override that, but I guess my assumption is an ass :P
kbZ has joined #nixos
<jared-w>
it does for user packages, but not for everything
<DigitalKiwi>
__monty__: lol i noticed it was out of date i was about to check if it'd been bumped in master and if not update it
<adisbladis>
lejonet: Super sharp UX edge :/
<jared-w>
I bet the weird ass nix-env -i thingy would've worked since that uses your channel (I think?)
<lejonet>
adisbladis: yeah, the whole channel thing is confusing to say the least
selfsymmetric-pa has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
<adisbladis>
lejonet: Don't worry, they'll die eventually :)
* jared-w
waves the flake hype banner
<lejonet>
nix-env -iA nixos.ghidra told me to sit in the corner... (could be because the pkg seems to be called ghidra-bin tho)
<lejonet>
adisbladis: :D
<__monty__>
adisbladis: Unless flakes dies first.
<DigitalKiwi>
__monty__: haha though I had a notification anyway :P
<adisbladis>
__monty__: I hope not
<adisbladis>
lejonet: Imho by far the easiest way to get rid of confusion is to not use channels at all
<jared-w>
adisbladis: if they die, it would probably be to something else that's better, so I'm okay with it as long as what they're replaced with accomplishes all the necessary goals
<adisbladis>
Remove all channels and use a git repo referenced in NIX_PATH
<__monty__>
DigitalKiwi: In wire you mean? The channel has probably not moved on yet.
<adisbladis>
jared-w: Indeed, the current plan is to replace channels with flakes
<jared-w>
what I don't want to see is everyone bike shedding about turning nix into the perfect-est package manager and trying to solve advanced dependency resolution, inheritance, diamonds, whatevs, etc., all before flakes actually get out the door
<__monty__>
jared-w: I saw {^_^} saying Fridh merged my PR a short while ago. So if it's not working for you on linux with a current checkout it may be a bug.
<lejonet>
adisbladis: pointing my NIX_PATH to the right /nix/var thingy makes it work, but I guess I should just take a gander at flakes for real
<__monty__>
jared-w: Sorry, meant DigitalKiwi ^
rauno has quit [Ping timeout: 248 seconds]
<adisbladis>
lejonet: Flakes are not ready for mainstream use yet
<adisbladis>
You'd have to use the nixFlakes derivation to even get support atm
<adisbladis>
Until then I think the least headache is my suggestion above (nuke channels, use NIX_PATH)
<drakonis>
flakes is undocumented right now
<DigitalKiwi>
__monty__: no that's not what i meant...
<drakonis>
its quite clunky to use right now
<lejonet>
adisbladis: well it was through NIX_PATH I was using channels, so you suggest pointing it towards like a git checkout is better?
<DigitalKiwi>
__monty__: while we were talking i checked the github and saw that they had released new versions than were in my git checkout and i was about to go to github to see if anyone else had updated it already so i didn't waste my time updating something someone already did (which i've done many times before...) and i had a notification because i'm in the maintainers list :P
<adisbladis>
lejonet: Yeah, removes all the magic :)
<__monty__>
Ah, : D
<lejonet>
adisbladis: indeed, I've been thinking about doing that for nixops, to keep channels from incremental updating them when I don't want to and such, doing it for my entire user makes sense :P
<jared-w>
speaking of state and nixops; is the whole state file really necessary for nixops?
<adisbladis>
lejonet: Right, my approach for Nixops is exactly that :)
<adisbladis>
jared-w: Yes and no, it depends
<adisbladis>
jared-w: For a simple deployment to a nixos machine, no, it's not required
<jared-w>
adisbladis: I assume it has _some_ benefit somewhere? I just don't know what that is
<adisbladis>
When managing s3 resources for example it is
<jared-w>
it is? Aren't there other things that use s3 that are stateless?
<__monty__>
jared-w: krops and morph are alternatives that avoid state. (Probably at the cost of some features.)
<adisbladis>
jared-w: The state is also used for network-wide rollbacks
<lejonet>
The statefile is for tracking resources too, i.e. if you've had nixops create stuff, that is how it remembers them and can do stuff like adisbladis pointed out
<jared-w>
__monty__: I'm using krops right now. It's pretty decent for what I need it for, and I liked the statelessness + ability to use it on macos (at the time I started this project, I needed that feature)
<jared-w>
lejonet: that makes sense
orivej has joined #nixos
<adisbladis>
jared-w: Well, imagine yourself how inefficient managing s3 buckets without state would be
andymandias has quit [Ping timeout: 265 seconds]
v88m has quit [Ping timeout: 265 seconds]
<adisbladis>
Let's say you have 1000 buckets, you'd have to query each one for metadata to know which ones to remove
<lejonet>
jared-w: for example, all the generated keypairs it uses is stored in that statefile, without it, it'll generate new ones each run :P
<adisbladis>
While in a state file you can diff locally
<demize>
Would be nice if it had support for remote state stores, so that you could easily use it in a team.
<adisbladis>
My dream: Marry nix and terraform, reinvent nixops on top of this
andymandias has joined #nixos
<jared-w>
ah that's a good point. I suppose what I'm really wanting is the remote state store
<jared-w>
nix+terraform sounds legit though
<adisbladis>
I think there were some patches to store state in postgres, dunno what happened to it
<flokli>
adisbladis: not sure if I like nix as a general-purpose programming language
<jared-w>
ah so not nix+terraform as a combined tool, but more like generating stuff for terraform, that makes sense
<adisbladis>
flokli: I don't see how that is a concern here?
<adisbladis>
jared-w: Yeah, piggyback on as much as possible :)
<jared-w>
Well the performance of nix is terrible, for one; I had to give up writing advent of code in nix because it was literally impossible to get nix to not seg fault for certain problems
<jared-w>
(perhaps I was doing something horribly wrong, though, but the continual shoving of the std lib into builtins that we can improve performance smells odd to me)
<adisbladis>
Hm? I've written some fairly complex software in Nix and rarely has it been too slow to cause significant issues
<thomashoneyman>
huh -- using filterSource to filter to only "src" and "test" directories actually only produces an empty src and test directory
<thomashoneyman>
i expected to include the directories themselves
jonten has joined #nixos
<thomashoneyman>
is there...a better function to use?
<jared-w>
https://github.com/jared-w/advent-of-code-2019/blob/master/day3/default.nix this is the one I got stuck on. The file isn't particularly coherent as I ended up writing a few different ways to do it and then random test functions as I tried to fix the seg faulting, gave up and just committed the file as is and moved on
dm9 has quit [Quit: WeeChat 2.7]
orivej has quit [Ping timeout: 265 seconds]
<flokli>
adisbladis: what I meant is, agreed on making use of all the work gone into terraform providers. Being able to be some level above plain .tf files already is much of an improvement
<jared-w>
adisbladis: but yeh, between terranix, nix + k8s, etc., its looking like using nix "mainstream ops" is improving quickly, which is always nice
<flokli>
I'd just be much more happy if errors wouldn't occur during string interpolation or at runtime, but we'd have some simple type system which would do some basic checks when refering thing in other places.
lunik1 has quit [Quit: Ping timeout (120 seconds)]
<magnetophon>
I'm trying to update recoll, and am getting: "Could not find qmake spec 'linux-g++'." Any ideas?
<jared-w>
tbenst[m]: nice, that looks fun. There's a lot of different tools out there and figuring out where each best fits with the other and how to combine them all is a bit... interesting
<flokli>
tbenst[m]: jared-w: that's terraform providers/modules for invoking nix during plan/apply
<{^_^}>
[nixpkgs] @timor opened pull request #76897 → Opensnitch: init at 1.0.0b and provide NixOS module → https://git.io/JepmV
Thra11 has joined #nixos
gyroninja has quit [Ping timeout: 268 seconds]
gyroninja has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
MichaelRaskin has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer pushed 8 commits to staging: https://git.io/JepYS
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #76070 → iOS with xcode 11 cherry pick for 19.09 → https://git.io/Je57F
<{^_^}>
[nixpkgs] @matthewbauer pushed 4 commits to release-19.09: https://git.io/JepY7
lovesegfault has joined #nixos
<symphorien>
is it correct that activations scripts are ran before systemd during boot ?
<clever>
symphorien: yes
<clever>
symphorien: and there was a bug, where any error in the activation scripts, leads to systemd itself not even being in PATH, and then your boot fails :P
<Raito_Bezarius>
Is there any reason why 19.09-small for NixOS fails when I try to switch to it: "error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused"
<Raito_Bezarius>
and I understood that stateVersion was somehow assuming this role
<mehlon>
I'm... not sure
<Raito_Bezarius>
It's okay :)
<symphorien>
Raito_Bezarius │ There is no state atm << note that there is state everywhere. For example, people who had no stateVersion defined have recently had problems with systemd-timesyncd failing after it's state got corrupted. So you might have state after all.
<Raito_Bezarius>
I understand but this is a just-provisioned now machine
ng0 has quit [Remote host closed the connection]
tarnacious has joined #nixos
<Raito_Bezarius>
Could it happen also on them?
mehlon has quit [Ping timeout: 258 seconds]
<Raito_Bezarius>
Thus, the question becomes: how can I provision a machine with the stateVersion (X) of my choice when I am restricted on the version of NixOS (17.03)?
<clever>
Raito_Bezarius: when nixops creates a machine, it will read the current version (whatever it booted with) and remember that as your stateVersion
ng0 has joined #nixos
ng0 has joined #nixos
ng0 has quit [Changing host]
<Raito_Bezarius>
For the Scaleway installation, I cannot use something > 17.03 for the kexec NixOS right?
<symphorien>
you can always change stateVersion, see what fails, find the corresponding github issue and fix the problem by hand
<clever>
Raito_Bezarius: if you use kexec, then just pick the right channel before you run nixos-install and nixos-generate-config, and it will just start from what you picked
<Raito_Bezarius>
Okay I see
<clever>
same as any normal install from the ISO
metastatic has joined #nixos
UndefinedIsNotAF has joined #nixos
cosimone has quit [Quit: Quit.]
<pie_[bnc]>
clever: IIRC you know something about pulseaudio bluetooth stuff?
<Guest99757>
clever: Still no luck with the felgo installer
mexisme has quit [Ping timeout: 246 seconds]
MichaelRaskin has joined #nixos
<Guest99757>
just too much hassle to package the dependencies, patch the installer, extract it, patch/package the result
<Guest99757>
I guess this is where Nix{,OS} fails
<clever>
pie_[bnc]: line 5 should already add bluetooth support, so i dont see 6 being needed
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Guest99757>
just too laborious for binaries/proprietary/complex software
<pie_[bnc]>
clever: hm
__monty__ has quit [Quit: leaving]
<thomashoneyman>
if I have a Nix expression which includes a line like this:
<thomashoneyman>
let dep = callPackage ./expr.nix {}; in stdenv.mkDerivation { ... }
<thomashoneyman>
where dep is used in mkDerivation
<thomashoneyman>
does a change in dep force a rebuild of the derivation?
<thomashoneyman>
or do i have to add the dep to buildInputs to cause that?
<thomashoneyman>
i have a setup like this and a change to the dep doesn't seem to be triggering a rebuild
<clever>
thomashoneyman: only if dep is somehow passed to stdenv.mkDerivation will it impact the build
<MichaelRaskin>
And passthru and meta do not count
MightyJoe has quit [Ping timeout: 258 seconds]
<thomashoneyman>
clever: it's used like `buildPhase = '' ... cp ${dep}/file '';`
dwagenk has joined #nixos
<pie_[bnc]>
clever: well i killed the process manually, still nothing, ill try without the second line
<MichaelRaskin>
thomashoneyman: is dep fixed-output?
<thomashoneyman>
no, it's not
<thomashoneyman>
if by that you mean it's got a pre-specified output hash
<thomashoneyman>
i'm basically using the equivalent of cabal2nix > file.nix and then in another file using callPackage file.nix and using the results of that
<thomashoneyman>
with the idea being if file.nix changes i want a rebuild
<clever>
thomashoneyman: can you gist all of the nix files?
MichaelRaskin has quit [Remote host closed the connection]
cyraxjoe has joined #nixos
dwagenk has quit [Remote host closed the connection]
<thomashoneyman>
oh, lord, i'm not using one of the dependencies i thought i was
<thomashoneyman>
let me fix that and see if it works
<thomashoneyman>
i've used this pattern elsewhere successfully
<thomashoneyman>
sorry about that!
ng0 has quit [Quit: leaving]
jlv has quit [Remote host closed the connection]
<Raito_Bezarius>
Would that be possible to use fdroidserver and Hydra to build reproducible APK from a mobile application repository?
<Raito_Bezarius>
I know that fdroidserver builds can be considered as stateful/impure so I cannot directly use Hydra I guess (?)
<chloekek>
Is it possible to get PHP without systemd integration on Linux? The value the derivation uses is "config.php.systemd or stdenv.isLinux" so I guess not.
<pie_[bnc]>
clever: im a dummy, the config didnt switch because i didnt notice a rebuild error
<chloekek>
Since stdenv.isLinux is always true on Linux.
<clever>
pie_[bnc]: that will do it!
<chloekek>
It feels like the or should be and because systemd only runs on Linux anyway.
<zeta_0>
how would i copy all the files from one directory including the .(dot) files into another directory(just the files not the directory itself), i can't seem to find a command that does this?
<pie_[bnc]>
clever: thanks for your infinite patience
<pie_[bnc]>
clever: i was suspicious about te rebuild not restarting the service but it didnt click
<Raito_Bezarius>
zeta_0: in nix?
<pie_[bnc]>
clever: devil in the details
<chloekek>
Ah, or isn't logical OR, it is default for missing attribute.
szicari has quit [Ping timeout: 245 seconds]
<pie_[bnc]>
clever: still bothers me that pulseaudio wouldnt load the module and gave a completely useless error message
<clever>
pie_[bnc]: its likely that the old pulse just didnt have it in the search path
<pie_[bnc]>
clever: but it tab completed
<clever>
pie_[bnc]: weird
<clever>
pie_[bnc]: id look into how it even tab completes
<clever>
pie_[bnc]: it could be a hard-coded list of modules!
<pie_[bnc]>
clever: crap, still same protocol not found error, still no service restart
<zeta_0>
i want to be able to copy 2 files: default.nix and .envrc into another directory to be used with nix-shell, but i can't seem to find a command that does this, trying out the commands i found online, it either only copies default.nix or it copes the entire directory, which i don't want, i just want to copy all the files including the .(dot) files from one directory to another, is there a simple command to this in bas
<zeta_0>
h?
ng0 has joined #nixos
ng0 has joined #nixos
ng0 has quit [Changing host]
szicari has joined #nixos
<{^_^}>
[nixpkgs] @eraserhd opened pull request #76903 → graalvm8: use custom mercurial → https://git.io/Jepsl
<pie_[bnc]>
clever: f*** it it might be faster to start a mumble server and connect to it with my phone
<clever>
pie_[bnc]: and have better range!
mehlon has joined #nixos
cosimone has joined #nixos
fresheyeball has joined #nixos
<zeta_0>
clever: do you know a command that will do this for me, the commands that i found online don't do this specific thing?
<Raito_Bezarius>
Are Android SDKs packaged in nixpkgs? I don't find them on nixos.org/nixos/packages.html
<pie_[bnc]>
gonna try to record some singing...definitely beats the internal microphone. idk about the dynamic range on this thing but oh boy this is gonna be bad :D
<pie_[bnc]>
aaand this is the point i end up really wanting JACK
demize has quit [Quit: Do Androids Dream of Electric Sheep?]
demize has joined #nixos
<vimkuha>
Is $NIX_CC/nix-support/dynamic-linker supposed to point to a 32 bit linker always?
<clever>
vimkuha: it will depend on which arch the stdenv is for
<pie_[bnc]>
,locate libgcc_s.so.1
<{^_^}>
Found in packages: glibc, graalvm8, glibc_multi, gcc-unwrapped.lib
<pie_[bnc]>
clever: this is a module i already have loaded:
<pie_[bnc]>
$ pactl load-module module-role-cork
<pie_[bnc]>
Failure: Module initialization failed
<pie_[bnc]>
not sure how to get to the pulseaudio logs
<clever>
Jan 03 18:50:14 amd-nixos pulseaudio[6337]: E: [pulseaudio] ltdl-bind-now.c: Failed to open module module-jack-sink.so: module-jack-sink.so: cannot open shared object file: No such file or directory
<clever>
Jan 03 18:50:14 amd-nixos pulseaudio[6337]: E: [pulseaudio] module.c: Failed to open module "module-jack-sink".
<clever>
pie_[bnc]: this shows up in `journalctl -f`
<clever>
pie_[bnc]: adding on `-o json`, shows ALL fields
<pie_[bnc]>
clever: why doesnt journalctl --user -u pulseaudio work
<pie_[bnc]>
why does one have to go digging in journals
<pie_[bnc]>
ideally theyd do both
<pie_[bnc]>
clever: given that im using pulseaudiofull idk what the problem is
<clever>
pie_[bnc]: check the nix store with find, where does module-jack-sink.so exist?
<pie_[bnc]>
im waiting for the find righ tnow
<Athas>
I'm confused. I want to downgrade from from following nixpkgs-stable to nixos-19.09. I have thus used nix-channel to make the 'nixpkgs' channel point at https://nixos.org/channels/nixos-19.09. But when I run 'nixos-rebuild build', it doesn't do anything!
<clever>
Athas: nixos-rebuild always uses the channel named nixos
lovesegfault has quit [Quit: WeeChat 2.7]
dozn__ has quit [Ping timeout: 260 seconds]
<Athas>
clever: odd, I didn't have one by that name in the first place.
mehlon has quit [Quit: Leaving]
<Athas>
So what have I been running?
<Athas>
Ah, wait, ffs.
<Athas>
This is because I didn't run nix-channel as root, isn't it?
<clever>
Athas: each user has their own list of channels
<pie_[bnc]>
clever: oh wth didnt even see you give the strace
<pie_[bnc]>
clever: oh right i forgot strace can attach to processes ;_;
<pie_[bnc]>
clever: im so bad at thi
lsix has quit [Quit: WeeChat 2.6]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
alexherbo2 has joined #nixos
<pie_[bnc]>
clever: the pulse entry doesnt seem to have the dlls i need https://bpaste.net/7I4A , these paths probably come from some config file
<pie_[bnc]>
but anything that seems to refer to pulseaudio is the pulseaudio binary
* pie_[bnc]
checks the systemd unit again
<pie_[bnc]>
maybe its it's $PATH
justanotheruser has quit [Ping timeout: 248 seconds]
<pie_[bnc]>
nope nothing interesting there
<clever>
pie_[bnc]: the fact that its checking glibc, implies that its using dlopen, which may search RPATH and LD_LIBRARY_PATH
<pie_[bnc]>
clever: makes sense
* pie_[bnc]
reaches for patchelf
<pie_[bnc]>
clever: if it was using ld library path is expect there to be something in the unit file or a wrapper, which i havent seen
alex`` has joined #nixos
<pie_[bnc]>
actually
<pie_[bnc]>
not sure whats going on but FragmentPath is set and the file is nonempty
<pie_[bnc]>
and so is DropInPaths
<pie_[bnc]>
hm but maybe systemctl show already contians the evaluated contents of that
zeta_0 has joined #nixos
<clever>
pie_[bnc]: i just: [root@amd-nixos:~]# cat /etc/systemd/user/pulseaudio.service
ayerhart has quit [Ping timeout: 268 seconds]
<pie_[bnc]>
oh lol what i wonder if this is a remnant of me fighting with it months ago...
<pie_[bnc]>
i dont think nixpkgs creates a pulsef***.conf
<clever>
that doesnt sound like a PR that would get merged, lol
<pie_[bnc]>
xD
<pie_[bnc]>
do you know off the top of your head where systemd puts overrides
<pie_[bnc]>
.config/systemd/user?
<clever>
[root@amd-nixos:~]# ls /etc/systemd/user/pulseaudio.service.d/overrides.conf
<jared-w>
zeta_0: services.lorri.enable = true; programs.direnv.enable = true; is all I have in my home-manager config
zeta_0 has quit [Quit: rebuilding]
<jared-w>
(assuming your shell is configured and enabled through home-manager. Otherwise all you need to do is stick the standard `eval ...` stuff somewhere in your shell config.)
zeta_0 has joined #nixos
thc202 has quit [Ping timeout: 248 seconds]
<pie_[bnc]>
clever: seems like im uspposed to do smething with some kind of jackdbus but i dont see anything for enabling it anywhere and apparently its supposed to work... https://bpaste.net/ESHA
<o1lo01ol1o>
clever: rror: NAR info file 'qgv5pfrjsi5vyffk0kwqibg403z3cdiw.narinfo' is corrupt <- the specified nar.xz file length is correct however the sha256 differs; i've downloaded the file twice each time it gives the same value for `openssl dgst -sha256` but neither time is this what is listed in the narinfo
jonten has quit [Ping timeout: 268 seconds]
<clever>
o1lo01ol1o: the narinfo contains 2 hashes, for the .nar and for the .nar.xz
erasmas has quit [Quit: leaving]
<o1lo01ol1o>
clever: yes, the length of the latter is correct; however, the sha256 doesn't match eithher
<clever>
o1lo01ol1o: the narinfo also holds the hash in base32, not base16
<clever>
o1lo01ol1o: `man nix-hash` to see how to convert hash types, and how to just hash a file
<o1lo01ol1o>
clever: ah, ok. thanks
knupfer has quit [Ping timeout: 248 seconds]
<pie_[bnc]>
whelp <x> pie_[bnc]: iirc there once was a ctf challenge where you had to reconstruct the flag from keyboard input recorded via microphone. was with some effort solvable.
<zeta_0>
clever: will the bash options installed in configuration.nix collide with the bash options in home.nix, for example: setting aliases in both?
<pie_[bnc]>
clever: ...o...oh
<pie_[bnc]>
clever: i went over the page again and at the top its services.jack
<afics>
I want to locally modify an existing package in the nixpgs repo, what would be the way to go? For quick testing I would just copy the folder from the nixpkgs repo and overlay it, but I'm hitting "error: cannot coerce a set to a string, at" and similar errors.
<clever>
zeta_0: no clue, i dont use home-manager
<zeta_0>
clever: you don't use home-manager?
<clever>
zeta_0: correct
<{^_^}>
[nixpkgs] @jonringer merged pull request #76641 → pynagsystemd: init at 1.2.0 and dependencies → https://git.io/JeNyB
<makefu>
afics: if you are lucky, then '<packagename>.override' is enough for you :) if you want to override certain stages and parameters then you can user overrideAttrs pkgs.packagename (old: {})
beurs has joined #nixos
<afics>
makefu: I want to override the whole package; I read somewhere that <packagename>.override is deprecated?
<zeta_0>
rycee: will the bash options installed in configuration.nix collide with the bash options in home.nix, for example: setting aliases in both?
<zeta_0>
rycee: and does nix-shell use the bash from configuration.nix or home.nix?
<makefu>
if you want to fiddle around your local clone then you can use 'nix-build -I nixpkgs=/path/to/my/checkout -A package-name'
<afics>
makefu: I am using nixops, so I assume that's quite a bit more involved in my cas
<afics>
*case
<clever>
makefu: the -I wont really have any effect, a file hasnt been specified, so it will try to load default.nix from the current dir
shibboleth has quit [Quit: shibboleth]
<clever>
makefu: `nix-build /path/to/my/checkout -A package-name` would be one fix
liff has quit [Read error: Connection reset by peer]
<makefu>
if the package is a dependency in nixpkgs, then you should use an overlay and callPackage the copy you created ( super.callPackage ./copied-package.nix {} ); how create an overlay is described in the manual and the wiki ( https://nixos.wiki/wiki/Overlays )
erictapen has joined #nixos
<afics>
makefu: I tried that, that's where I get the "cannot coerce a set to a string, at" error