<{^_^}>
#18279 (by Ptival, 2 years ago, closed): How can I fix a corrupt manifest.nix?
<bsima>
also i don't have any previous generations
<bsima>
is there a way to fix this manifest.nix?
npmccallum has joined #nixos
<gchristensen>
ouch, I'm heading out shortly, but a few questions: is this a new install, or an older install? is this nixos, or otherwise? can you gist the result from `nix-info -m` ?
<hodapp>
was gonna ask if anyone needed help since I already fixed the derivation for 2.80rc3 just days prior
<bsima>
it didn't immediately fix it but i'm doing 'sudo nix-store --verify --repair --check-contents' and it seems to be doing a lot of stuff
<bsima>
apparently we have a lot of broken hashes... on more than one machine... and some of our infra machines also have the broken /root/.nix-profile thing..
<gchristensen>
bsima: oh wow interesting
<gchristensen>
bsima: perhaps something we could look at tomorrow :)
<bsima>
yeah... i'll ping you on the groq slack, i think you guys will want to have a look at our deploy method more closely :) thanks graham
<selfsymmetric-mu>
"error: The option value `environment.systemPackages.[definition 6-entry 1]' in `/home/matt/log/nixos/environment/systemPackages/languages.nix' is not of type `package'."
das_j has quit [Remote host closed the connection]
mumuluxi has joined #nixos
das_j has joined #nixos
wucke13 has joined #nixos
DariusTh` has quit [Ping timeout: 248 seconds]
andi- has quit [Remote host closed the connection]
iqubic has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
andi- has joined #nixos
<iqubic>
How can I figure out what architecture I'm running? Basically I want to know if this is ARM or AMD.
<ToxicFrog>
iqubic: /proc/cpuinfo? file /bin/sh?
<samueldr>
iqubic: uname -m
drakonis has quit [Quit: WeeChat 2.4]
<ToxicFrog>
Oh right.
<samueldr>
x86_64 is intel/amd, armv7/aarch64 is ARM (too many to list)
<ToxicFrog>
I have a best-practices question: I'm writing a build for a server. The build emits lots of stuff in $PREFIX/share and $PREFIX/bin, as usual, but it also emits $PREFIX/var. The server expects this to be present and writeable when it starts up.
<samueldr>
what does it emit in var, expecting it to be usable?
<ToxicFrog>
I can't just give it an empty directory because the build process creates various starting-state files in var that the server needs to run, and directory layouts that it won't create on its own.
<iqubic>
`uname -m' gives x86_64 which is a little too non-specific for me.
<ToxicFrog>
iqubic: that's amd64, so it's an AMD or Intel 64-bit processor. If you need to know the specific manufacturer or microcode revision or whatever, /proc/cpuinfo has that information.
<samueldr>
cat /proc/cpuinfo | grep '^model name' will be specific on x86* platforms, iqubic
<samueldr>
it will be repeated as many times as cores (+hyperthreading) you hav
<samueldr>
e.g. for my computer it's model name : Intel(R) Core(TM) i5-4570R CPU @ 2.70GHz
<samueldr>
on ARM platforms, it's a crapshoot whether it'll be useful or not :)
<ToxicFrog>
samueldr: it mostly creates a bunch of empty directories, but also some files containing empty high score lists, some sort of timestamp file, etc
<ToxicFrog>
I'm not sure exactly what is in there except that (a) it needs to be writeable and (b) the server assumes it was created by `make install` and won't create it for you
<samueldr>
ToxicFrog: high level ideas, but `cp` from there in an preexecstart (or is it execstartpre?) when the /var/ hierarchy isn't present
<samueldr>
that's AFAIK the usual way
<samueldr>
(let's muddy up the waters a bit) since AMD cpus have a trustzone implementation, they also have an ARM CPU to run it
<ToxicFrog>
In the nixos settings, you mean? And if someone is just using it straight out of nixpkgs it's on them to copy the files into place and pass the appropriate command line args?
<samueldr>
ToxicFrog: yeah
<samueldr>
at least, I don't know of anything non-nixos for that
<samueldr>
(in nixpkgs)
<ToxicFrog>
(it's ExecStartPre, btw)
<ToxicFrog>
Alright
<ToxicFrog>
That was my original plan, but I wanted to check if there was something better/easier/more idiomatic I was missing.
<samueldr>
I think it's a known evil, not to care too much about services and daemons outside nixos
<ToxicFrog>
Thanks!
* ToxicFrog
nodnod
<ToxicFrog>
I figure once I've hammered on this a bit I'll submit it to nixpkgs
<samueldr>
amazing :)
<ToxicFrog>
For the like two other people in the world who still play this game~
liberiga has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
monotux has quit [Quit: WeeChat 2.4]
monotux has joined #nixos
meteo has joined #nixos
lambda-11235 has quit [Ping timeout: 258 seconds]
<angerman>
So `sudo HOME=/var/root /nix/store/87i4fp46jfw9yl8c7i9gx75m5yph7irl-nix-2.2.2/bin/nix-env -i /nix/store/87i4fp46jfw9yl8c7i9gx75m5yph7irl-nix-2.2.2` fails with `Assertion failed: (S_ISLNK(st.st_mode)), function canonicalisePathMetaData, file src/libstore/local-store.cc, line 527.` Any ideas what could be wrong?
xkapastel has quit [Quit: Connection closed for inactivity]
selfsymmetric-mu has quit [Remote host closed the connection]
Supersonic has quit [Ping timeout: 264 seconds]
Supersonic has joined #nixos
domogled has joined #nixos
<iqubic>
how does one install all of the various latex and latex derivatives like pdflatex and biblatex all at once.
ilikeheaps has joined #nixos
sushi_ has quit [Ping timeout: 272 seconds]
<iqubic>
I know there was some package name like texLive and you could give it the attribute latexFull or something like that.
<iqubic>
So does anyone have the answer to my LaTeX issue?
abathur has quit [Ping timeout: 245 seconds]
<iqubic>
I added `texlive.scheme-full' to `environment.systemPackages' and tried to rebuild.
<iqubic>
I got: "error: The option value `environment.systemPackages.[definition 46-entry 50]' in `/etc/nixos/configuration.nix' is not of type `package'." returned in the terminal.
<danderson>
hmm. Unfortunately, ledmon seems like it wants to interact with the running systemd/udev, which is not upgraded when I install only ledmon from unstable.
<danderson>
Since this is still a throwaway system... Let's see what happens if I just upgrade the entire system to unstable and then rollback :P
<Ashy>
should be fine
<Ashy>
I've done that before
<sb0>
urgh, the latest 19.03 changes now also broke pypy3 in the release branch :((
<danderson>
yup, it should. I'm actually only wanting to use ledmon to locate the drives in my enclosure, so I build a ZFS pool that kinda mirrors the physical layout
<Ashy>
Only potential issue might be your nix store drive filling up if it's low on space
<danderson>
so, rough plan: switch to unstable, use `ledctl` to locate the various drives, then rollback and build out the filer
<danderson>
seems fine. Just switched to unstable, rootfs is at 4.3G/117G
<sb0>
the breakage occured between aeeb30a and b978a94
<danderson>
argh, but ledctl still doesn't work right. Hmm, maybe I'm missing a kernel module of some description, this worked on debian...
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<sb0>
the first bad commit is 40aedac60243134cc288c8f40dd78bf7aad811e0
<sb0>
(inexplicably...)
DariusTh` has joined #nixos
___laika has quit [Ping timeout: 245 seconds]
<iqubic>
This LaTeX issue is being a pain in the butt.
Rusty1 has quit [Quit: Konversation terminated!]
<sb0>
okay the problem is definitely around there
<sb0>
running "git diff 0e9548e14973e16d219fedd9a1eb679bff85f338...40aedac60243134cc288c8f40dd78bf7aad811e0|patch -p1 -R" on top of release-19.03 fixes pypy3
DariusTh` has quit [Ping timeout: 245 seconds]
mexisme has quit [Ping timeout: 246 seconds]
<DigitalKiwi>
https://gist.github.com/Kiwi/ef7f3a166d05652e69a164d5cbfa7055 trying to add bitwarden desktop to nixpkgs it's being weird but i think this works...weird in that it always opens devtools when it launches :/ worldofpeace maybe you can look it's based on one you maintain
<iqubic>
I added `texlive.scheme-full' to `environment.systemPackages' and tried to rebuild.
<iqubic>
I got: "error: The option value `environment.systemPackages.[definition 46-entry 50]' in `/etc/nixos/configuration.nix' is not of type `package'." returned in the terminal.
<danderson>
success! ledmon requires the `sg` kernel module to talk to the enclosure controller to blink the blinkenlights
<iqubic>
Anyone around here know how to fix this TeX issue.
<danderson>
silly question: would it make sense to have the ledmon derivation cause the `sg` kernel module to be loaded? Or is that a violation of layering, or against style, or somesuch?
wfranzini has quit [Remote host closed the connection]
<danderson>
so I need to add the `sg` module to boot.kernelModules. But, boot.kernelModules is also defined in hardware-configuration.nix. How do I specify an extension to hardware-configuration's list?
<danderson>
I'm assuming just saying boot.kernelModules = ["sg"]; in configuration.nix will just replace the list that hardware-configuration.nix came up with.
vmandela has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
<iqubic>
I'm so fed up with this LaTeX issue.
domogled has quit [Quit: domogled]
palo1 has joined #nixos
palo has quit [Ping timeout: 248 seconds]
palo1 is now known as palo
day|flip has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Miyu-chan>
arianvp: From what I understand, your Gitlab runner script does not share state between pipelines, so I don't have to run any cleanup, right?
<Miyu-chan>
s/script/module/
<Ashy>
iqubic: can you load it in a nix-shell?
dansho has quit [Ping timeout: 246 seconds]
<Ashy>
iqubic: looks like you might want texlive.combined.scheme-full instead
<Miyu-chan>
I'm not really into the theoretics of libraries, but from how I understand it. symbols are things like some_function or some_variable which gets replaced in runtime for dynamic loading or link-time for static linking.
<Miyu-chan>
which gets replaced with addresses
__monty__ has joined #nixos
<rawtaz>
i fail to understand what you mean by *compilers* having fragmented files but static symbols :o
zupo_ has joined #nixos
<Miyu-chan>
I'll explain it more when I get home, I guess. :P
<iqubic>
Ashy: Thanks for helping me with my TeX issues.
zupo has quit [Ping timeout: 258 seconds]
Zer0xp has quit [Read error: Connection reset by peer]
<Miyu-chan>
So I'm back. And I think it actually requires an overhaul in the whole ELF system.
asheshambasta has joined #nixos
DariusTheMede has joined #nixos
<Miyu-chan>
I don't understand how ELF nor dynamic loading works, FWIW. But the symbols are determined in runtime, right?
<__monty__>
I can install pass-otp on both a linux and a darwin machine. But on another darwin machine the tests fail: http://ix.io/1Q4b How do I troubleshoot this?
<__monty__>
Afaik linktime is separate from runtime.
<__monty__>
And I'm not clear on what you mean by determined.
<rawtaz>
Miyu-chan: if you dont know the technicalities, how can you have been involved in a discussion about these things?
<DariusTheMede>
I am trying to debug a derivation which uses cmake to generate some test files which then get run to check whether a certain libary is available (lapack as it happens)
<DariusTheMede>
I have managed to run cmakeConfigurePhase inside a nix shell
<DariusTheMede>
I tried cmakeBuildPhase but "command not found"
<__monty__>
Wouldn't you use the output in the regular buildPhase?
<{^_^}>
[nixpkgs] @FRidh pushed 297 commits to staging-next: https://git.io/fj9sV
<Miyu-chan>
rawtaz: Fair enough. In a way, I was just hoping someone would say "that's already how it works."
<rawtaz>
__monty__: < Miyu-chan> Some idea got brought up in a convo. What if compilers have fragmented files, but static symbols? In a way, it's static binaries, but with multiple files. It feels like Nix would excel on that.
<tilpner>
gchristensen: Not sure if you can or want to do anything about it, but the OpenCollective mail looks weird by ending with "The The NixOS Foundation open collective"
zupo has joined #nixos
<Miyu-chan>
Hm. What I'm trying to say is resolve relocations in link-time, while still keeping files split up.
<__monty__>
tilpner: We need to artificially increase word frequency of information-poor words. So as to prevent AIs from becoming smarter than us.
<__monty__>
Miyu-chan: What sort of relocations?
<Miyu-chan>
The basic idea is that the dynamic linker no longer has to tell the binary "oh, the function is located in this location." Instead, its only job is to load the file when needed.
<srhb>
DariusTheMede: try echo $phases
zupo_ has quit [Ping timeout: 245 seconds]
<Miyu-chan>
Based on what I understand, that should just be reading the ELF table, checking which files are needed, and mmaping them to where they should be.
<srhb>
DariusTheMede: I think cmakeConfigurePhase is hooked into one of the existing ones (configurePhase, probably) but there's no such thing as cmakeBuildPhase usually.
<DariusTheMede>
echo $phases is empty
LysergicDreams has quit [Remote host closed the connection]
<srhb>
DariusTheMede: How did you enter the shell?
<DariusTheMede>
I have a shell.nix
<DariusTheMede>
nix-shell --pure shell.nix
<srhb>
DariusTheMede: It sounds like it's not a regular mkDerivation then?
<DariusTheMede>
BTW running cmakeConfigurePhase crapped all over my top level directory :(
<srhb>
DariusTheMede: Yes, the standard phases assume you're in the build directory.
<DariusTheMede>
srhb: I don't understand the question - sorry
FRidh has joined #nixos
<srhb>
DariusTheMede: Which is normally somewhere in /tmp
<srhb>
DariusTheMede: I'm basically wondering what your shell.nix looks like. It sounds like it's not a stdenv.mkDerivation
<DariusTheMede>
The cmake part of the install creates an executable which it runs to check whether lapack support is available
<DariusTheMede>
Outside of nix, I build and run this executable
johanot has joined #nixos
<rawtaz>
Miyu-chan: what problem or need does it solve?
<DariusTheMede>
To debug inside nix, I need to be able to do this
<rawtaz>
or use case*
<srhb>
DariusTheMede: So, since phases isn't set, it gets set by genericBuild
<Miyu-chan>
Indirect jumps, I guess.
<rawtaz>
Miyu-chan: and what problem or use case does in turn that solve?
<DariusTheMede>
I can see that nix creates a directory called LapackTest
<rawtaz>
Miyu-chan: in other words; what's the point of what we're discussing?
drakonis_ has quit [Ping timeout: 245 seconds]
<DariusTheMede>
Hmmm $sourceRoot is empty - this probably explains why nix crapped all over my top level directory
<srhb>
DariusTheMede: sourceRoot gets set by unpackPhase
<srhb>
DariusTheMede: (relative to pwd)
<DariusTheMede>
So I should have done that first?
<srhb>
DariusTheMede: You should probably nix-shell yourthing.nix and then immediately cd $(mktemp -d), then run genericBuild
<srhb>
Or whichever manual order of phases you want
* rawtaz
&
drakonis_ has joined #nixos
<srhb>
DariusTheMede: You may also want to set $out to some tmp directory as it won't be able to write to the nix store
<DariusTheMede>
srhb: this is very helpful - thanks
Shoubit has joined #nixos
veske has joined #nixos
<DariusTheMede>
Ok I can now see that the cmakeConfigurePhase has created a directory in which there is a C program which it then compiles and runs to check for the prescence of LAPACK
<srhb>
sb0: Neat. :-P But looks like we might have to disable them or some of them at least.
rauno has quit [Ping timeout: 250 seconds]
ThatDocsLady has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
yurb_afk is now known as yurb
ajs124 has joined #nixos
rauno has joined #nixos
ottidmes has joined #nixos
<{^_^}>
[nixpkgs] @zimbatm merged pull request #65697 → bundlerApp: meta.platforms defaults to platforms of ruby dependency → https://git.io/fj9L7
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @nicknovitski to master « bundlerApp: meta.platforms defaults to platforms of ruby dependency (#65697) »: https://git.io/fj9GW
cransom has quit [Quit: WeeChat 2.4]
aswanson has quit [Quit: WeeChat 2.4]
<Miyu-chan>
Back. Indirect jumps might result in 2 cache misses, methinks.
o1lo01ol1o has quit [Remote host closed the connection]
<Miyu-chan>
Which... might be slow. Idk.
<Miyu-chan>
I guess this is where I don't know at all anymore TBH, because CPU prefetches are kinda amazing, and all those other stuff.
Makaveli7 has quit [Quit: WeeChat 2.5]
mexisme has joined #nixos
o1lo01ol1o has joined #nixos
<Miyu-chan>
I guess TL;DR is that there are some people who are adamant about using static compiling. This mostly has the benefits of static compiling, except for non-contiguous memory.
<Miyu-chan>
s/static compiling/static linking/
<Ashy>
iqubic: no worries, i don't actually use (la)tex but always wanted to
<arianvp>
Miyu-chan: what do you mean by state?
<arianvp>
I think Gitlab keeps some state lingering around in docker images even between runs . andi- knows more about this
<arianvp>
but at least the CWD is cleaned up yes
<Miyu-chan>
Ah. Hm. I'm thinking of using nixops.
<Miyu-chan>
I guess I can just go with `nixops --state ./foo
<{^_^}>
[nixpkgs] @mgttlinger opened pull request #65715 → OCaml build support: add oasis build system → https://git.io/fj9G0
<andi->
arianvp: yeah, it keeps random garbage in $CI_PROJECT_DIR/.. for "caching" reasons and they keep on arguing that they are unable to track random modifications and so they can not reverse them.. They don't see the point to not track and just discard..
<Miyu-chan>
But is otherwise safe?
<clever>
andi-: ive also seen nix/stack problems on travis before
<Taneb>
I'm trying to do evil and run something as "sudo" from an unsandboxed nix build, I'm getting the error "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?". Anyone know what that's about?
<clever>
some projects do an impure stack build under nix-shell, and cache ~/.stack-work
<clever>
but stack links to libraries in /nix/store/
<clever>
and when nixpkgs changes, nix wont download the same libraries, and now your cache fails hard
o1lo01ol1o has quit [Remote host closed the connection]
<andi->
Miyu-chan: otherwise it was sane. You can also disable "caches" (which just means docker container caches…)
<clever>
in one case, ld.so didnt exist, so files that clearly exist, claim to not exist
<__monty__>
I wonder why nix search never works for me?
<Miyu-chan>
Hm, why can't filterSource compose?
alan1 has quit [Ping timeout: 245 seconds]
<clever>
Miyu-chan: you want the newer cleanSourceWith i believe
<Miyu-chan>
Yeah. That's what I'm reading right now.
<Miyu-chan>
# lib.cleanSourceWith f (lib.cleanSourceWith g ./.) # Succeeds!
<Miyu-chan>
# builtins.filterSource f (builtins.filterSource g ./.) # Fails!
freddie-freeload has joined #nixos
<clever>
Miyu-chan: for complicated reasons, filterSource cant act on filterSource
<Miyu-chan>
(in the documentation)
<Miyu-chan>
Oh. I was thinking that it's more of "filterSource doesn't work on /nix/store"
<clever>
thats probably it
<clever>
Miyu-chan: but cleanSourceWith will return a special attrset, that remembers the original path, filter function, and has a string of the result of filtering
<clever>
if you pass that set back to cleanSource with, it can extract the original un-filtered path, and compose the 2 filters together, and remake the special set
<Miyu-chan>
Ah. I see now.
ngirard has joined #nixos
<Miyu-chan>
Hm, is there something wrong with the documentation?
<clever>
the lines you pasted look correct
<Miyu-chan>
cleanSourceWith = { filter, src }:
<Miyu-chan>
The inner set doesn't seem to be a functor either.
<clever>
NickHu: by default the ,locate searches for *hcidump*
<NickHu>
ah
<clever>
NickHu: so it found hcidump.h in wireshark
<NickHu>
but I wonder why the binary is gone from bluez
<__monty__>
,locate bin hcidump
orivej has quit [Ping timeout: 245 seconds]
<{^_^}>
Couldn't find in any packages
<clever>
__monty__: my older nix-index DB claims its in blues 5.43
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
but NickHu's nixpkgs is up to 5.50
<__monty__>
Time to look for the regression for the bluez package?
jtojnar__ has left #nixos [#nixos]
Makaveli7 has quit [Quit: WeeChat 2.5]
mexisme has quit [Ping timeout: 264 seconds]
judson_ has quit [Remote host closed the connection]
judson_ has joined #nixos
<srhb>
Looks like it's barred behind --enable-deprecated
<srhb>
I think I vaguely remember this...
o1lo01ol1o has joined #nixos
mexisme has joined #nixos
<srhb>
Supposedly bluetoothctl should cover it, but iirc it doesn't completely.
<craige>
Is there a documentation team for NixOS? I've had a documentation PR out for 6 months that could do with a review so I'd like to prod them, if they exist :-)
<Miyu-chan>
clever: Bigger weird. Does cleanSourceWith even compose?
<Miyu-chan>
It composes once, I believe, but not more.
<Miyu-chan>
Interestingly though, seems like there's nothing wrong with making it API-compatible with filterSource.
<Miyu-chan>
clever: Err, I'm stupid. I get why filterSource doesn't chain now. The idea of filterSource is to not load the files /nix/store from the start. So it just makes sense to not have it work on /nix/store.
<Miyu-chan>
Ofc. you could always make filterSource chaining Do The Right Thing TM, but it's implementable in Nix anyway,.
<Miyu-chan>
IMO, this is both dogmatically and pragmatically the correct way, as not everyone is really comfortable with reading C++.
dansho has quit [Quit: Leaving]
DariusTheMede has quit [Ping timeout: 246 seconds]
<infinisil>
craige: Not really, but I recommend linking to the PR here
<{^_^}>
nixos-homepage#269 (by craigem, 18 weeks ago, open): Added how to update Planet NixOS
DariusTheMede has joined #nixos
<__monty__>
craige: Other than a missing </p> that LGTM.
<craige>
/o\ better go fix it :-) Thanks __monty__
<__monty__>
craige: Oh, and I'd definitely prefer you'd stick to the linewidth in the rest of that file.
<craige>
+1
<craige>
I also need to add hot to update Planet NixOS, as I updated the PLanet Nixos source at that time too but it;s never been updated in prod (probably a manual process?)
* craige
has vim set to wrap at 80, no idea how that line got so long.
<craige>
ah, the .tt extension is not covered by my configs /o\
<nixbitcoin>
Hey. I'm trying to package [joinmarket](https://github.com/JoinMarket-Org/joinmarket-clientserver) for [nix-bitcoin](https://github.com/fort-nix/nix-bitcoin) and planning to upstream the package and module. I'm having some trouble since the joinmarket repo contains 4 different packages in subdirectories with separate setup.py's. These setup.py's also mostly rely on dependencies not available through nix. What is the best way to fetch
<nixbitcoin>
source from different subdirectories within a git repo? What is the best way to use pip & virtualenv to pull in dependencies?
ubert has joined #nixos
<craige>
That's been updated __monty__ - thanks for the review.
<adisbladis>
nixbitcoin: You can use sourceRoot on the derivation to use different subdirectories
<Izorkin>
Mic92: you can check PR mariadb?
<__monty__>
craige: Np. Note that I'm not a nixpkgs maintainer so you'll have to keep pestering people to get it merged ; )
<Mic92>
Izorkin: could you just rebase your branch + force push?
psy3497 has quit [Ping timeout: 272 seconds]
<nixbitcoin>
adisbladis: thank you. is it normal to package the different packages contained in the subdirectories in separate default.nix's or all in the same default.nix?
<adisbladis>
nixbitcoin: That's not a normal case to begin with... Do what you think is best. There is no one size fits all here.
<craige>
Still grateful for a review, especially one that resulted in a better PR __monty__
freddie-freeload has quit [Ping timeout: 268 seconds]
ixxie has joined #nixos
<infinisil>
Huh, I was fairly certain I hibernated with zfs before, with a non-zfs swap
<ixxie>
hello folks; does anybody know about the NixOS Azure integration? Specifically, where it is documented?
<gchristensen>
my understanding is it is playing with fire
<gchristensen>
it can work here and there, but can also very badly not work
<gchristensen>
but I have no direct experience or sources ... so maybe #zfsonlinux should be consulted :P
Makaveli7 has quit [Quit: WeeChat 2.5]
cyphase has joined #nixos
jtojnar has quit [Ping timeout: 245 seconds]
jtojnar has joined #nixos
<gchristensen>
DHE on #zfsonlinux says it is likely to "mulch the pool" to suspend to disk with ZFS if your swap is on a zvol, and still unsafe if your swap is not on a zvol
<exarkun>
can I bootstram a nixos arm vm from a nixos x86_64 machine and sources or do I just have to download one of the arm images, eg from the nixos wiki?
<infinisil>
I see, yeah I think I did have some problems when I used it
<infinisil>
(though that might have been due to me having less swap than ram..)
<infinisil>
I didn't know better at the time xD
<gchristensen>
I really like the phrase "mulch the pool"
cransom has joined #nixos
jgt has joined #nixos
vmandela has left #nixos ["Leaving"]
<sphalerite>
exarkun: 32-bit or 64-bit ARM?
<jgt>
I'm trying to setup a Hydra machine that builds GitHub PRs. I recall someone here linked me to a script on GitHub (which may have been written by peti) which demonstrated this kind of integration.
<jgt>
I now can't find it. Anyone know where it is?
pie_ has joined #nixos
<sphalerite>
exarkun: in any case, ARM VMs are far from trivial to get working well
<sphalerite>
what do you want it for?
ngirard has quit [Ping timeout: 252 seconds]
DariusTheMede has joined #nixos
jmeredith has joined #nixos
gm_ has joined #nixos
srid has joined #nixos
<exarkun>
spacefrogg: armv6l
<exarkun>
err sphalerite sorry
<exarkun>
sphalerite: yea. I have some experience with it. :/ I thought bootstrapping might simplify things a bit (remove a big, somewhat opaque dependency) but it looks like not.
<sphalerite>
exarkun: it'the "easiest" way to bootstrap is probably to cross-build nix (not sure if that works), then build your image or your nixos directly using that cross-built nix on another distro
<{^_^}>
[nixpkgs] @Infinisil merged pull request #59451 → treemacs-magit: needs git at build time → https://git.io/fjmgk
<exarkun>
so you're saying start with, eg, a debian arm image, cross build nix for arm, install the cross-built nix onto the debian arm vm, then proceed to do more nix-based building w/ that environment
<sphalerite>
yep like that, I'm just testing if it cross-builds myself
<sphalerite>
yes exactly
<exarkun>
instead of trying to get a "pure" arm nixos system
fendor_ has quit [Remote host closed the connection]
DariusTheMede has quit [Ping timeout: 245 seconds]
<exarkun>
okay, plausible
<sphalerite>
well no, you can build a "pure" nixos from the debian system
<sphalerite>
if you want.
<sphalerite>
but you don't need to :)
<gchristensen>
if you're on arm, you don't need to cross-build to arm
<abbec>
hi, I have a problem with nix-channel --update. It says that it is updating and the symlink shows the correct git hash but file contents is still wrong
<abbec>
l ~/.nix-defexpr/channels/nixpkgs shows that it is a symlink to /nix/store/xfk5alpin7vq5d5ip4fnxq2knfkjdivr-nixpkgs-19.09pre186574.88d9f776091/nixpkgs which is correct
<pie_>
is nix-prefetch-github broken?
<pie_>
ameError: name 'output' is not defined
<pie_>
* NameError
<abbec>
ah, no pebcak
<abbec>
sorry, it was a false alarm
amir has quit [Read error: Connection reset by peer]
chessai has joined #nixos
ixxie has quit [Remote host closed the connection]
<hyperfekt>
grahamc: I found an "infinite recursion encountered, at undefined position" that you might be interested in
o1lo01ol1o has joined #nixos
<tilpner>
hyperfekt: While doing what?
pie_ has quit [Ping timeout: 252 seconds]
<tilpner>
With your own expressions, or just plain nixpkgs?
gm_ has quit [Quit: Connection closed for inactivity]
pie_ has joined #nixos
<bbigras>
Is it possible to "import shell.nix" into a default.nix. Right now I'm using nix-shell to build a binary and I build a docker container with default.nix. It causes problems when my cached nix-shell use older libraries. I know I should probably rebuild everything with the default.nix but right now it saves me time to be able to use the same build I'm developing with.
<pie_>
bbigras: im not 100% certain what you mean but most of the time i do {pkgs ? import <nixpkgs> {}}: callPackage ./whatever.nix {}
<pie_>
if i want to be fancier instead of defaulting to <nixpkgs> i have a pinned version in a file
<pie_>
im trying to package gnome-pie, does anyone know how to deal with stuff like " Failed to get application for xid 65012268: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.ayatana.bamf was not provided by any .service files "? google is pretty useless
<pie_>
ok looks like i might have just needed a more heavy handed dbus restart
<pie_>
not sure yet
<pie_>
yeah ok
<pie_>
man i have no idea how this dbus stuff works...not sure I want to
fusion809 has quit [Ping timeout: 250 seconds]
<bbigras>
pie_: thanks
<hyperfekt>
tilpner: My own expression, trying to create an overlay. But I think Graham was collecting them. Also I have not solved the problem. https://pastebin.com/4C55pETb
wfranzini has quit [Remote host closed the connection]
bakakuna has quit [Quit: bakakuna]
drakonis has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
jtojnar_ has joined #nixos
jtojnar_ is now known as jtojnar
<{^_^}>
[nixpkgs] @globin pushed 10 commits to openssl-1.1: https://git.io/fj94Z
mexisme has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
wildtrees has quit [Remote host closed the connection]
mexisme has joined #nixos
wildtrees has joined #nixos
<tilpner>
hyperfekt: fetchsvn is called with openssh, which is called with pam, which is an alias for linux-pam, which is the thing you're overriding. Boom, inf-rec
<tilpner>
You can try to .override { openssh = null; } fetchsvn
<hyperfekt>
i figured something like that, but i must've misunderstood overlays, because i thought using super should've prevented that and used the nonoverridden pam :o
<furrycatherder>
Where would I even start with this? It tries to install a bunch of rpms
<ryantm>
We're trying to use NixOS on Raspberry Pi 3 Model B+s at work and it is taking us a long time to build what we need to build on the Raspberry Pi, or the build is running out of RAM. We've ran into some issues with regular cross compiling when we try that too. What are other people doing? Can someone suggest a ARM device we could buy to be a builder machine?
<exarkun>
blech can't even remember how to boot a qemu vm
<exarkun>
which of these 17 options are the important ones :o
<andi->
-disk :P
<ryantm>
andi-: Is there any more detailed documentation on that?
<ryantm>
andi-: Just use Clever's module and overlay?
<andi->
ryantm: probably yes
<andi->
hexa-: ^
<ajs124>
One problem we ran into with this whole cross-compiling with qemu business is test.
orivej has quit [Ping timeout: 245 seconds]
drakonis has quit [Quit: WeeChat 2.4]
<andi->
that one wouldn't really be cross compilatin
<hyperfekt>
gchristensen: I mentioned you above but used the wrong nick, I've got an infinite recursion at undefined position and iirc you collect those: https://pastebin.com/4C55pETb
<ajs124>
Because it tries to run the tests in a vm. So you got qemu running in qemu, which doesn't work.
<ajs124>
Because it tries to run the tests in a vm. So you got qemu running in qemu, which doesn't work.
<andi->
ahh
<andi->
yeah that might not be ideal
knupfer has joined #nixos
<ryantm>
packet.com is sponsoring some of the Hydra builders, right?
<gchristensen>
yeah
<ryantm>
`c1.large.arm` ?
<cransom>
i assume that nested virtualization on the arm aws instances is disabled like the x86 instances, right?
<tilpner>
hyperfekt: I now believe this is because openldap depends on cyrus_sasl, and cyrus_sasl depends on openldap. I can't yet explain how overriding linux-pam influences that
<samueldr>
that would be the better location for the current state for portals I think
<arcnmx>
yup portals have been ruining things the past little while
npmccallum has quit [Quit: npmccallum]
<samueldr>
and as far as the particular commit, the reason was that it was initially wholesale enabled to true; adding weight to the X-less installer images
ubert has quit [Quit: Leaving]
<tilpner>
hyperfekt: Might also be pam<->cyrus_sasl
<gchristensen>
ryantm: if you have question about Packet, we can PM -- or even better, there is a #nixos channel on their slack
thc202 has quit [Ping timeout: 250 seconds]
<hyperfekt>
tilpner: I still fail to understand why the overwritten linux-pam is used at all when I use super.fetchsvn :/
<NickHu>
Ah, I see
noudle has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @adisbladis merged pull request #65617 → Allow GnuPG1 to build on all platforms. → https://git.io/fjSH2
<ryantm>
gchristensen: Thanks! We are probably going to try the QEMU approach first, because we expect it to require less setup.
chiefgoat has joined #nixos
bdesham has joined #nixos
<gchristensen>
yep cool
<gchristensen>
(though that repo is not needed, as nixos can be directly deployed via Packet's UI)
<worldofpeace>
arcnmx: the issue that caused the most problems was that GTK_USE_PORTAL was set to 1. situation as of that PR has resolved any issue a default system should have with it.
thc202 has quit [Excess Flood]
thc202 has joined #nixos
<tilpner>
hyperfekt: Your user-provided overlays don't run last/on top. If later overlays were to use something that indirectly depends on linux-pam, that might explain the inf-rec
<hexa->
ryantm: andi-: yes, just use clevers approach, it works too well :)
<hexa->
fwiw: I wrote that crosscompiling section on the wiki
<samueldr>
it's redcarpet, linguist is used to detect
<erictapen>
hello everyone, my configure script doesn't like the --build=x86_64-unknown-linux-gnu Nixpkgs automatically supplies for cross compiling. Any hint on how to override that behaviour?
<infinisil>
tazjin: Some suggestions: Don't use `map` as a variable name, because it would override the builtin `map` function; missing is that inherit's can also be used in `let in` expressions; the <channel> syntax explanation is a bit misleading, because it actually looks it up in NIX_PATH, which just includes the channels by default
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fj90S
mexisme has quit [Ping timeout: 246 seconds]
<tazjin>
I don't see people use `let inherit ...;` much in actual code. That raises a question about whether such a document should explain *all* features of Nix, or the *most common* ones. I'm gravitating towards all for the simple reason that it might be useful for actual reference use
<infinisil>
tazjin: A bit more: The nix manual actually doesn't list *all* builtins, just most of them; And one thing that's missing is derivations, which are part of the nix language too
capisce has quit [Quit: Reconnecting]
<tazjin>
I started adding a section on types, which also covers derivations
<tazjin>
though I'm not entirely sure they fit in there
capisce has joined #nixos
CodeWarrior has quit [Ping timeout: 245 seconds]
<tazjin>
but I don't really want to cover outside-of-language aspects of derivations in this doc (e.g. drv files, what's in them and so on)
<tazjin>
hence types
<infinisil>
How does that relate to types?
<samueldr>
tazjin: I haven't read it all, sorry if it's in there, but it doesn't look like it; it might be important to touch on the fact that in a nix file, only one expression can be present. for users not coming from FP backgrounds it might be kind of an eureka moment. it was for me when I internalized that fact
<tazjin>
do we have a canonical builtins list that isn't pressing TAB after typing `builtins.` in a REPL? :)
<infinisil>
tazjin: Unfortunately I think the source code is the only one..
<{^_^}>
[nixpkgs] @FRidh closed pull request #21209 → Separate truely top-level code from per-bootstrapping-stage code → https://git.io/v1QIG
<clever>
tazjin: luke, use the source?
<tazjin>
clever: preferably something you could point Nix newbies at, though
<{^_^}>
[nixpkgs] @FRidh pushed commit from @danieldk to master « pythonPackages.spacy: 2.1.6 -> 2.1.7 »: https://git.io/fj907
<DigitalKiwi>
worldofpeace: do you know a better way to package that anyway? i couldn't even figure out how to get the npm install to work even with node2nix and override and such
<tazjin>
clever: a part of me is thinking that stuff like typeOf, functor etc. should probably just not be includedd here
<{^_^}>
[nixpkgs] @FRidh pushed commit from @nicknovitski to master « riemann-tools: 0.2.13 -> 0.2.14 »: https://git.io/fj90N
<infinisil>
Cool, nice work :)
thc202 has quit [Ping timeout: 250 seconds]
ericsagnes has joined #nixos
CodeWarrior has joined #nixos
<worldofpeace>
DigitalKiwi: perhaps see riot-desktop? it may be that using the electron in nixpkgs is impossible and you just have to patch it like many other expressions. but I'm not very informed in electron things so I'm not sure my perspective will be very helpful.
<worldofpeace>
It may be a good idea to open an issue with the expression that kinda works to see if others are interested and could work on it.
<dtz>
worldofpeace: rocking fractal 4.2.0 with your upstream'd fixes right now! \o/ Thanks!
<DigitalKiwi>
worldofpeace: ok should i tag it WIP or?
<dtz>
will comment on the PR after double-checking I don't have something unusual local lol
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* DigitalKiwi
should do the same for ocrmypdf probably too i did spend months working on it...
thc202 has joined #nixos
<DigitalKiwi>
maybe the testing is better now...
<infinisil>
dtz: You're also running one of dem secret service things?
<worldofpeace>
dtz: great ✨ upstream fixes are the only real fixes
<{^_^}>
[nixpkgs] @veprbl opened pull request #65743 → zathura: drop broken synctexSupport option → https://git.io/fj9Ef
<dtz>
infinisil: yeah I don't remember what spawns it or why but something was really hard to use until I got libsecret avail to things somehow.
<dtz>
actually think originally trying to get fractal building/working is what led me to install libsecret and presumably whatever daemon it may or may not need (maybe just avail via dbus? dunno lol)
bennofs has quit [Ping timeout: 264 seconds]
<worldofpeace>
I think what dtz mean's by "some daemon" would have been gnome-keyring or kwallet that implements the secret service API
<infinisil>
worldofpeace: Guess I'll try services.gnome3.gnome-keyring.enable to get it working
waleee-cl has quit [Quit: Connection closed for inactivity]
alex`` has joined #nixos
<dtz>
gchristensen: always! but thanks for asking :)
srid has quit [Ping timeout: 258 seconds]
Edes has joined #nixos
<dtz>
worldofpeace: ah, yeah I forgot what bits were responsible for what. Does kwallet indeed (and possibly others) implement the secret storage spec? If so, very neat! Clicking through links now, sorry if answers are there...
gxt has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #65744 → pythonPackages.textacy: mark as broken → https://git.io/fj9ER
<jd823592>
hi, i always used nixos with grub but now i would like to try rEFInd but nixos-install complains if I leave grub settings out from my /etc/nixos/configuration.nix. How should I setup rEFInd on nixos?
vmandela has left #nixos ["Leaving"]
<Baughn>
jd823592: The grub integration isn't really optional; you *really* don't want to do that manually. However, I think rEFInd got renamed to systemd-boot, and that's supported...
<pie_>
jtojnar: or do you know anyone else I could ask?
drakonis has quit [Ping timeout: 272 seconds]
hmpffff has quit [Quit: nchrrrr…]
hoijui has quit [Ping timeout: 264 seconds]
knupfer has quit [Remote host closed the connection]
drakonis has joined #nixos
liberiga has joined #nixos
ddellacosta has joined #nixos
fendor has joined #nixos
justanotheruser has joined #nixos
webster23_ has quit [Read error: Connection reset by peer]
jtojnar has quit [Ping timeout: 245 seconds]
justanotheruser has quit [Client Quit]
chris__ has joined #nixos
DariusTheMede has joined #nixos
DariusTheMede has quit [Ping timeout: 245 seconds]
<chris__>
Has anyone here used Niv? I'm going through the readme. But I'm not sure what all the 'overlay' refers to? I'm expecting just a single 'nixpkgs' variable(?) to use.
kaokao has quit [Remote host closed the connection]
<kandinski>
I've configured a local binaryCache (by setting nix.binaryCaches = [ "http://mycache.local/" "https://cache.nixos.org" ]), which works great when I'm in the same network as the cache, but dones't fall through to the default cache when I'm away. What am I doing wrong?
<ajs124>
kandinski: nothing. That's just how this works. At least that's been my experience. Give me a second to find some "documentation".