<clever>
aranea: nixpkgs already has a muslc "cross-compile" target
<aranea>
Yeah, I heard, but since that appears to be a recent project with just a small user base, I'm expecting that a lot of packages in the official repos will be lacking neccessary patches for musl compatibility.
<clever>
aranea: if you build attributes like this, you can build software against the static musl
<clever>
$ nix-build -A pkgsCross.musl64.hello '<nixpkgs>'
<clever>
like so
<aranea>
What about dynamic linking with musl?
fragamus has quit [Ping timeout: 276 seconds]
<clever>
aranea: i dont think dynamic musl is an option currently
cosimone has quit [Ping timeout: 245 seconds]
<aranea>
Too bad. But if you can have (dynamically linked?) arm and x86 binaries on the same host, I'm sure that's something I could figure out eventually.
<aranea>
I mean, nix binaries appear to hardcode the path to the appropriate dynamic linker, so I don't see why it shouldn't be possible.
rossabaker has quit [Ping timeout: 245 seconds]
<clever>
aranea: yeah, its just a matter of adding a dynamic musl option in nixpkgs
<clever>
aranea: i once had a system booting on both x86-64 and a raspberry pi, with a single rootfs
<clever>
aranea: the key, is that they have different bootloaders, so the main entry point differs
<infinisil>
Wait why is pkgsCross.musl64 static? Shouldn't only pkgsStatic be static?
<aranea>
Any idea why that wasn't done so far? Just because everyone currently using musl with nix is only interested in static linking for their purposes, or were there any technical hurdles?
<clever>
result/bin/hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/nyhfmdfhidgmla484f42pla5ai7m9hbv-musl-1.1.24-x86_64-unknown-linux-musl/lib/ld-musl-x86_64.so.1, not stripped
<clever>
infinisil: oh, your right
<clever>
aranea: we already have dynamic musl! lol
<aranea>
Haha, great. :)
<aranea>
And you even have a newer version of musl than our distro which is entirely focused on it. :D
<aranea>
(Though to be fair we've been in a package freeze for a while now.)
<witchof0x20>
What's the most reasonable way to get zfs on luks working with nixos config? I have 4 drives, each LUKS encrypted, with keyfiles in /root/.../driveN/keyfile, and then ZFS on top of the decrypted luks devices
<clever>
witchof0x20: put each luks device into boot.initrd.luks.devices
<bdju>
anyone had a problem with mpv where it struggles to play back a part at normal speed so it desyncs from the audio and then eventually plays it all back super fast to catch up?
<clever>
witchof0x20: youll need to make an initrd file that contains the keyfiles, and put it into this option
<witchof0x20>
Oh I guess I can stick the keyfiles for those volumes in there
<witchof0x20>
i'm already doing that actually for /
<witchof0x20>
thanks!
drakonis has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<CMCDragonkai>
so i added some debug make option, and run it again
<CMCDragonkai>
it says that `X509 chain 0xbe66f1e8 found no usable certificates`
<CMCDragonkai>
prior to that it says `0xbe678368 found certificate GTS CA 101`
<CMCDragonkai>
then adds GlobalSign
<CMCDragonkai>
then says `*.google.com` is valid at time..., is not a root certificate, has no issuer... etc etc
<CMCDragonkai>
* Public Key Algorithm: id-ecPublicKey
<clever>
sha256 is likely what you want enabled
<CMCDragonkai>
those are the 2 i found
mbrgm_ is now known as mbrgm
<CMCDragonkai>
so i need to enable sha256 in the make flags?
<clever>
with the rest of the cfg flags
<clever>
enabledFestures
<clever>
src/config/config_crypto.c:#if defined ( CRYPTO_PUBKEY_RSA ) && defined ( CRYPTO_DIGEST_SHA256 )
<clever>
CMCDragonkai: these 2 i think
idk has joined #nixos
idk is now known as Guest46815
Okinan has joined #nixos
<inkbottle>
Is it possible that "libusb-1.0.so.0" wouldn't be fount by some installers, like npm?
<clever>
inkbottle: it will only be found if you tell nix-shell to provide it
<inkbottle>
I can't succeed having "npm install node-hid"
<CMCDragonkai>
clever: does that go into enabledOPtions?
<clever>
CMCDragonkai: i think so
<inkbottle>
clever: I have "nix-shell -p python nodejs-10_x libudev libusb"
<clever>
inkbottle: libusb only has libusb-0.1.so
<inkbottle>
and locate libusb-1.0.so.0 returns 2 files in the /nox/store
<clever>
inkbottle: libusb1 has libusb-1.0.so
<inkbottle>
OK, I try that
<redredred>
inkbottle: also - just because locate find it, doesn't mean that your profile sees it
<clever>
$ nix-build '<nixpkgs>' -A libusb1
<clever>
$ ls result/lib/ -lh
<clever>
inkbottle: this is how i confirm what is inside a package
<clever>
locate will just blindly search /nix/store and can find things nix-shell isnt making available
NoctisLa1 has joined #nixos
<Guest46815>
Hi, I'm trying to use some packages from master, while the rest of my system is built on stable. I've managed to add a long line of code my `environment.systemPackages`, but now I want to use it in more than one place. I tried this: nixpkgsLatest = # ... environment.systemPackages = with pkgs; [ nixpkgsLatest #... ];But I get "The option
<Guest46815>
`nixpkgsLatest' defined in `/etc/nixos/configuration.nix' does not exist."I tried to use `with` and `let`, but never managed to get them to work without syntax errors. Any ideas?
<inkbottle>
The lib really seems to be here, but isn't found by npm install
<inkbottle>
I'm temporarily adding the lib globally
halfbit has quit [Ping timeout: 245 seconds]
<inkbottle>
libusb1
<clever>
,libraries inkbottle
<{^_^}>
inkbottle: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever>
$ nix-build '<nixpkgs>' -A libusb1.dev
<clever>
$ ls result-dev/include/libusb-1.0/libusb.h
<clever>
result-dev/include/libusb-1.0/libusb.h
m0rphism has quit [Ping timeout: 240 seconds]
<clever>
inkbottle: nix added the include dir to the -I path
<clever>
inkbottle: but libusb deviced to break things, and hid the files under include/libusb-1.0
<CMCDragonkai>
clever: those options don't work
<clever>
inkbottle: so you must use pkgconfig to find the path
<CMCDragonkai>
clever: funny enough if i enable ipv6 the ping fails to work, ive since removed it
<clever>
inkbottle: pkgconfig must also be in the nix-shell args, it wont work when globally installed
<CMCDragonkai>
clever: something is broken in the ipxe's TLS
<CMCDragonkai>
clever: the current nixpkgs ipxe hash is set to Feb 15
<CMCDragonkai>
clever: and there's been later ipxe code
<CMCDragonkai>
clever: going to try getting the master commit
<inkbottle>
clever: plenty of things but I might get it: adding pkgconfig after nix-shell
Rusty1 has quit [Remote host closed the connection]
hlolli__ has joined #nixos
jchw has joined #nixos
heatm1s3r has quit [Ping timeout: 252 seconds]
alunduil has quit [Ping timeout: 252 seconds]
hoek has quit [Ping timeout: 250 seconds]
taktoa[c] has joined #nixos
AmandaC has joined #nixos
nkaretnikov has joined #nixos
smatting has quit [Ping timeout: 245 seconds]
thoughtpolice has joined #nixos
lightbulbjim has joined #nixos
heatm1s3r has joined #nixos
nimblepoultry has joined #nixos
alunduil has joined #nixos
gausby_ has joined #nixos
sdier has joined #nixos
ctp has joined #nixos
mankyKitty has joined #nixos
aria has joined #nixos
newhoggy has joined #nixos
hlolli_ has quit [Ping timeout: 276 seconds]
feepo has joined #nixos
jw358 has joined #nixos
elvishjerricco has joined #nixos
nh2 has joined #nixos
dukedave has joined #nixos
parseval has joined #nixos
valwal has joined #nixos
TallerGhostWalt_ has joined #nixos
higherorder has joined #nixos
englishm has joined #nixos
d10n-work has joined #nixos
rizary_ has joined #nixos
hoek has joined #nixos
<inkbottle>
clever: nix-shell -p python nodejs-10_x libudev libusb1 pkgconfig; npm install node-hid; still produces the same errors: libusb-1.0.so.0: cannot open shared object file: No such file or directory
<infinisil>
Guest46815: Use such a structure for your file: `{ pkgs, lib, ... }: let nixpkgsLatest = ...; in { environment.systemPackages = [ nixpkgsLatest.foo ... ]; }`
<inkbottle>
shouldn't I need a file: libusb-1.0.pc?
<inkbottle>
clever: pkg-config --cflags --libs ./result-dev/lib/pkgconfig/libusb-1.0.pc; seems the right thing to do; however, I still get libusb-1.0.so.0: cannot open shared object file: No such file or directory
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @cdepillabout opened pull request #73434 → haskellPackages.llvm-hs: fix build on darwin → https://git.io/JerFL
<clever>
inkbottle: does ` pkg-config --cflags --libs libusb-1.0` work in the nix-shell?
<inkbottle>
clever: yes
<clever>
inkbottle: all i can think of then is to try using yarn2nix instead of plain npm
werner291 has quit [Quit: werner291]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JerF3
drakonis has quit [Ping timeout: 252 seconds]
<inkbottle>
clever: I've been suggested to use debian of even a virtual machine until I can find a solution to the problem...
<bdju>
what can I do about really bad video playback with intel graphics? had better performance on an older machine that also had intel graphics so something is very wrong
<inkbottle>
clever: but I'm very new with nix. things will be easier. like later
<clever>
inkbottle: a docker is likely the simplest way to get a debian like env
<clever>
inkbottle: and its easy enough to enable docker in nixos
<inkbottle>
clever: I've got an old debian next to my nixos
<inkbottle>
like different machine
<clever>
that also works
drakonis has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @davidak to nixpkgs-19.09-darwin « doc/rl-1909: fix language »: https://git.io/Jer5f
<lordcirth__>
We download source, then we copy the exe's.... where's the compile??
cyris212 has joined #nixos
<clever>
lordcirth__: that file is the one that builds it
<clever>
lordcirth__: phases hasnt been set, so it will do the usual configure/build/install stuff, which includes running ./configure and then running `make install`
<clever>
lordcirth__: oh, and `make` in the middle
<lordcirth__>
clever, so configure, make, install is entirely implicit?
<clever>
lordcirth__: yeah
<lordcirth__>
Well that's confusing
<lordcirth__>
Anyway, the project no longer uses "make"
<clever>
did the old version use it?
<lordcirth__>
Yes
<clever>
what does the new version use in its place?
<lordcirth__>
At least, I assume so, if this built
<clever>
lordcirth__: that only works if the program tries to run Nuget directly
<lordcirth__>
anonymous function at /.../default.nix:1:1 called without required argument 'Nuget', at /../nixpkgs/lib/customisation.nix:69:16
<clever>
lordcirth__: also, check the callPackage for eventstore, in all-packages.nix
<lordcirth__>
Nuget = dotnetPackages.Nuget;
<clever>
lordcirth__: Baughn is also on irc
pie_ has quit [Ping timeout: 240 seconds]
shyim has quit [Quit: Ping timeout (120 seconds)]
shyim has joined #nixos
<lordcirth__>
It doesn't seem to be possible to use ${version} in the url without passing it in from the outside? I can't just declare it on the line above?
<{^_^}>
[nixpkgs] @jumper149 opened pull request #73437 → blugon: init at 1.11.4 → https://git.io/JerFX
<clever>
lordcirth__: you probably need a recursive set, or a let block
ddellacosta has quit [Ping timeout: 252 seconds]
<lordcirth__>
Ah, let, yeah
<lordcirth__>
Wait, this is already a let block, can/should they be nested?
<clever>
what is the error and can you pastebin the code?
<exarkun>
Oh cool this .tar.gz isn't from a fixed output derivation at all, it's downloaded by some janky shell script and pre-adding it to my store makes no difference at all.
<clever>
exarkun: ?
<exarkun>
so successfully copying across three hosts with `nix copy` was a waste of time
<clever>
exarkun: where do you see the file being added to the nix store?
<clever>
exarkun: and confirm it has the same output as line 58 of the `show-derivation` gist
magnetophon has quit [Ping timeout: 245 seconds]
<exarkun>
yea it does
<clever>
exarkun: i can confirm the above nix-build generates the same $out
<clever>
which you can now nix copy over
<lordcirth__>
Ok, so I think I'm starting to figure this out. The Cake drv produced by "buildDotnetPackage" has it's built .dll's in the root, but they are not copied into the store
<lordcirth__>
So the question is, do I try adding some option to buildDotnetPackage to keep the dlls, or do I just do a generic fetchurl and get on with it?
<exarkun>
clever: that worked, thanks.
mexisme has quit [Ping timeout: 252 seconds]
Soo_Slow has quit [Quit: Soo_Slow]
felixfoertsch23 has joined #nixos
leungbk has joined #nixos
<{^_^}>
[nixpkgs] @Moredread opened pull request #73441 → prusa-slicer: use wxGTK31 instead of wxGTK30 → https://git.io/Jerb0
<leungbk>
I'm having some trouble with nix-prefetch-git.
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @davidak to nixos-19.09-small « doc/rl-1909: fix language »: https://git.io/Jer5f
<{^_^}>
[nixpkgs] @jonringer pushed commit from @petabyteboy to master « Revert "python37Packages.pyspf: 2.0.12 -> 2.0.13" »: https://git.io/Jerbi
worldofpeace has quit [Quit: worldofpeace]
drakonis_ has joined #nixos
leungbk has quit [Read error: Connection reset by peer]
leungbk has joined #nixos
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
leungbk has quit [Client Quit]
klntsky has joined #nixos
<lordcirth__>
Ugh, it's looking like the new CKAN has tons of little dependencies...
<drakonis_>
ckan?
LysergicDreams has joined #nixos
<lordcirth__>
Drakonis_, the community mod manager for Kerbal Space Program.
<lordcirth__>
It's a mono app, and it seems their new build system involves running a program called "Cake" to go and fetch all the deps. It's going to be hard to package.
<drakonis_>
hm
<lordcirth__>
It's normally a magic "./build".
<lordcirth__>
But it downloads a ton of little .NET packages
drakonis1 has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
pareidolia has quit [Ping timeout: 246 seconds]
mexisme has quit [Ping timeout: 252 seconds]
pareidolia has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 252 seconds]
drakonis_ has quit [Read error: Connection reset by peer]
Emiller88 has quit [Remote host closed the connection]
sb0 has quit [Quit: Leaving]
treffynn1n has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @ryantm opened pull request #73444 → Add configuration for GitHub stale bot → https://git.io/JerAI
<lovesegfault>
ryantm: Hey, regarding the stale issue PR, it seems like the bot won't close the issues?
<lovesegfault>
What to do with the issues marked as stale then?
<ryantm>
lovesegfault: Correct, we decided to only have humans close them after using their judgement.
<lovesegfault>
ryantm: Does GH provide some form of automation for this? I can see it being _very_ painful to do manually
<ryantm>
lovesegfault: automation for what?
<lovesegfault>
ryantm: nvm, it would obviously have to be built; I'd imagine some sort of TUI/CLI tool that shows you a stale issue and then a y/n prompt on whether to close it so it's easier to manage dealing with hundreds of stale issues
<lovesegfault>
(Which I assume we currently have)
<ryantm>
It will be interesting to see which ones remain stale after the bot sends the hopefully helpful message to those involved.
<lovesegfault>
ryantm: I missed in the RFC, do we have a timeframe for an answer to be posted after the bot msg for it to be considered stale?
<ryantm>
I kind of doubt we will see many bot messages for a while, because I think mmahut triaged like every issue and PR a month ago.
<infinisil>
lovesegfault: It's really not about closing them, just marking as stale
<lovesegfault>
Also, is the issue un-staled when someone posts?
<lovesegfault>
infinisil: I meant for the point where they've been marked stale and no one posted showing interest for $days
<infinisil>
Yeah, but that's like orthogonal to the RFC
<ryantm>
It's automatically labeled stale after 180 days of inactivity, then when activity happens the label is automatically removed
[Leary] has joined #nixos
<lovesegfault>
ryantm: Sweet!
<lovesegfault>
infinisil: I'm not sure I'd say it's _orthogonal_; I definitely agree it's weakly linked
Mateon2 has joined #nixos
atriq has joined #nixos
callahad87 has joined #nixos
<lovesegfault>
(the logical next step after marking stale is closure, given time + judgement)
<infinisil>
Hm yeah, weakly linked sounds good
tylerjl has joined #nixos
<ryantm>
Hopefully the logical next step is the appropriate resources being able to resolve it.
<lovesegfault>
ryantm: If the issue needs to be resolved then it's not "semantically" stale; I suspect there is a class of issues alive right now that have already been solved
sigtrm_ has joined #nixos
<lovesegfault>
also mmahut is a hero for triaging stuff :)
sshow_ has joined #nixos
chreekat has joined #nixos
monsieur1 has joined #nixos
<lovesegfault>
We hired some Nix contractors who convinced me to try NixOS after being a long-term Gentoo guy; now I'm getting invested :P
habbah_ has joined #nixos
<ryantm>
Great. Welcome.
page_ has joined #nixos
arianvp_ has joined #nixos
ng0_ has quit [Remote host closed the connection]
zaeph1 has joined #nixos
lux3 has joined #nixos
<lovesegfault>
Anyways, thanks for all the clarifications ryantm :)
ng0_ has joined #nixos
tjgee has joined #nixos
rotaerk_ has joined #nixos
wrl has quit [*.net *.split]
detran has quit [*.net *.split]
leothrix has quit [*.net *.split]
leotaku has quit [*.net *.split]
Mateon1 has quit [*.net *.split]
callahad8 has quit [*.net *.split]
grumble has quit [*.net *.split]
wolke has quit [*.net *.split]
Rovanion has quit [*.net *.split]
kandinski has quit [*.net *.split]
Mateon2 is now known as Mateon1
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @petabyteboy to nixos-unstable-small « Revert "python37Packages.pyspf: 2.0.12 -> 2.0.13" »: https://git.io/Jerbi
<xd1le>
is there a way to have multiple "src" attributes for one package? I found out about "srcs" via searching but can't find anything about how to use it.
<xd1le>
I have a package which needs a c header file from another package during building (I believe).
<srhb>
xd1le: Try grepping for "srcs =" in pkgs :)
<xd1le>
thanks, good point
<xd1le>
srhb: ^
<srhb>
Going by examples is usually the best way to get started. ^_^
myme has joined #nixos
<srhb>
xd1le: This one looks like a good example: pkgs/development/tools/dtools/default.nix
palo1 has joined #nixos
kgz has joined #nixos
chreekat has quit [Ping timeout: 252 seconds]
<xd1le>
srhb: ah sweet, ty!
<srhb>
Welcome. :)
<srhb>
(Alternatively, by your description, maybe you just want to have two distinct packages instead of two sources)
palo has quit [Ping timeout: 245 seconds]
palo1 is now known as palo
detran has joined #nixos
wrl has joined #nixos
andymandias has joined #nixos
lecethimon has joined #nixos
grumble has joined #nixos
wolke has joined #nixos
acertain has joined #nixos
leotaku has joined #nixos
emacsomancer has joined #nixos
puffnfresh has joined #nixos
multun has joined #nixos
Rovanion has joined #nixos
immae has joined #nixos
realrokka has joined #nixos
jfroche has joined #nixos
adisbladis has joined #nixos
jaeckel has joined #nixos
exarkun has joined #nixos
codedmart has joined #nixos
kandinski has joined #nixos
dashkal has joined #nixos
coderobe has joined #nixos
dbe has joined #nixos
Raito_Bezarius has joined #nixos
Serus has joined #nixos
kraem has joined #nixos
plp_ has joined #nixos
bigvalen has joined #nixos
juhoh has joined #nixos
xantoz has joined #nixos
phI||Ip has joined #nixos
cransom has joined #nixos
acowley has joined #nixos
mightybyte has joined #nixos
nurelin has joined #nixos
AstroBadger has joined #nixos
drgbr has joined #nixos
treffynn1n has joined #nixos
<xd1le>
nah I think it's just a weird way the author set it up their project(s), doesn't seem like a conventional c library set up
<buckley310>
can anyone else who is running unstable test the steam client? steam just updated and now doesnt work. not sure if its the package or just me.
<kenran>
In a haskell+nix project, I'm using packageOverrides to jailbreak/dontCheck a couple of haskell dependencies. Now I need to patch the 'ghc' this is compiled with. Are there any good resources on how to do that? For instance, I wonder whether I should try and switch to overlays instead of packageOverrides first.
fusion809 has joined #nixos
<kenran>
If I understand correctly, an overly would nowadays be the idiomatic way to modify my package set. But I also don't yet know how this plays with haskellPackages.
Serus has joined #nixos
<DigitalKiwi>
what's this mean:
<DigitalKiwi>
Could not load host key: /etc/ssh/ssh_host_rsa_key
<DigitalKiwi>
Could not load host key: /etc/ssh/ssh_host_ed25519_key
<DigitalKiwi>
when nixos-rebuild switch
<etu>
DigitalKiwi: Do those files exists?
<DigitalKiwi>
yes
page_ is now known as page
<DigitalKiwi>
(in this case it was right around lines that said on a different builder machine but they exist on both machines and i'm not sure if that's relevant but possibly)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eon` has joined #nixos
<clever>
kenran: packageOverrides just takes a previous version of the package set, and returns the top-level attrs to overwrite
eon_ has quit [Quit: leaving]
<clever>
kenran: overlays are list a list of functions, that take both the previous package set, and the final package set, and return the top-level attrs to overwrite
<clever>
kenran: the only real difference, is that you can have several of them, and you use the 2nd argument to refer to other packages+overrides, rather then rec{
eon` has joined #nixos
<niso>
by chance somebody already wrote a script to generate a hydra-jobset per git-branch?
<clever>
niso: currently, you need to hard-code the list of branches into a nix file, and use declarative jobsets to generate the jobsets
<clever>
niso: this adds an input to the jobset, of type githubpulls, which will fetch a list of all PR's, and pass it to toxvpn/default.nix (line 6) as a json file
<dminuoso>
And that seems to give it a definition.
mexisme has quit [Ping timeout: 250 seconds]
<dminuoso>
Now the closure of a set of files C is the smallest set C′⊇ C satisfying ∀(p,c)∈C′:∀_p_ref ∈references(c): ∃(p′,c′) ∈ C′: p_ref=p′
<dminuoso>
I think I can make sense of this
Jackneill has joined #nixos
<clever>
that makes even less sense to me, lol
Jackneill has quit [Remote host closed the connection]
Jackneill has joined #nixos
<dminuoso>
If I understand it right: when you have a thing containing free variables, a closure is basically that thing plus an environment that maps free variables to some values
<dminuoso>
But that thesis seems very approachable
<dminuoso>
Should give it a thorough read.
<clever>
i still havent read it
<clever>
and ive been using nix for years
zupo has joined #nixos
<{^_^}>
[nixpkgs] @ckauhaus merged pull request #72028 → [r19.09] libpcap, tcpdump: 1.9.1 and 4.9.3 for many security fixes → https://git.io/Jerxb
<{^_^}>
[nixpkgs] @ckauhaus pushed 3 commits to staging-19.09: https://git.io/JerxN
pareidolia has quit [Ping timeout: 250 seconds]
pareidolia has joined #nixos
Jackneill has quit [Read error: Connection reset by peer]
lambda-11235 has quit [Read error: Connection reset by peer]
zupo has quit [Client Quit]
lambda-11235 has joined #nixos
chloekek has joined #nixos
smatting has joined #nixos
LysergicDreams has quit [Ping timeout: 245 seconds]
<kenran>
clever: Thanks (again)! I got this to work quite easily, because as you said, it's not as much of a change as I expected. Now I'll test it a bit and then I'll try and see if/how I can patch the GHC.
CMCDragonkai has quit [Quit: Connection closed for inactivity]
jgt1 has joined #nixos
lambda-11235 has quit [Quit: Bye]
__monty__ has joined #nixos
eon` has joined #nixos
<kenran>
When I simply want to jailbreak a package, I don't need to do "cabal2nix cabal://bla-1.2.3 > bla.nix" and then use that, but (at least with overlays) I could do "super.haskell.lib.doJailbreak hsuper.bla", assuming that bla is on hackage. Is that correct? It seems to work but I'm skeptical.
<clever>
kenran: yes
<kenran>
That would mean I only have to use cabal2nix on packages where I want to manually change something in the resulting nix expression afterwards.
<clever>
kenran: you can also use self.callCabal2nix "name" ./path {}
<clever>
that will call cabal2nix for you, look for name.cabal in ./path, then callPackage the generated file with {}
<kenran>
Oh, good to know, thanks
<kenran>
There's so much utility stuff already :)
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<__monty__>
kenran: callHackage is very useful too.
zupo has joined #nixos
pareidolia has quit [Read error: Connection reset by peer]
<clever>
and callHackageDirect
<__monty__>
Hmm, haven't come across that before.
<clever>
callHackage is a helper around callCabal2nix, using a tarball of cabalfiles and sha256's
<clever>
so its limited to what was in the hackage snapshot, when the tarball was made
<clever>
callHackageDirect will just fetchurl the given version, but needs a sha256
<exfalso>
Just to have a trace of this somewhere: the issue where nix-daemon seemed to consistently kill a user's shell when they invoked nix-env is solved. The issue was that all users were part of the nixbld group, and nix-daemon picked the same user that issued the build as the build user. The last step of build cleanup involves killing *all* processes belonging to the build user, which in this case included the
<exfalso>
user's shell that issued the build command (as it was first in the alphabet). Long story short: do *NOT* add users to nixbld other than the usual nixbldN users.
<clever>
and then it can get things from there after a gc
<clever>
the main problem i ran into, is that builtins.fetchTarball, without a sha256, cant use the binary cache
<clever>
and thats a major bottleneck
_d0t has joined #nixos
<_d0t>
ohai! What is the easiest way to create a nixos container with custom nixpkgs?
<manveru>
yeah, but even with a hash, it can still be removed after the TTL... i think
<_d0t>
nixos-container command doesn't accept a custom nixpkgs path as an argument.
fendor has joined #nixos
zupo has quit [Ping timeout: 265 seconds]
<clever>
manveru: when nix is fetching things at eval time, it manages some symlinks in ~/.cache/nix/tarballs/
<Twey>
_d0t: There's a `--nixos-path`, does that do it?
<_d0t>
Twey: apparently no
kenran has quit [Ping timeout: 246 seconds]
<clever>
manveru: the .info files contain metadata, like when it was last checked (to control how often it rechecsk), and the etags (to help with cache control headers)
<{^_^}>
[nixpkgs] @aanderse pushed 2 commits to release-19.09: https://git.io/JerjD
<clever>
manveru: the file and unpacked links, point into the nix store, but arent GC roots, so nix can GC things, and they just act as a shortcut to save time
<clever>
manveru: if you provide a sha256 ahead of time, it can also search the binary cache for things, and fetch it in a faster manner
<manveru>
aye
<_d0t>
Twey: doesn't work either
<clever>
manveru: when using things like fetchTarball against github, you first have a slow delay at github, generating the tar and streaming it over
<clever>
manveru: then you have a cpu delay to uncompress and untar it to a tmp folder, as your current user
<clever>
manveru: then more cpu churn, as its serialized, hashed, and sent to nix-daemon, and deserialized back into /nix/store/
jgt has quit [Ping timeout: 252 seconds]
<clever>
manveru: but if you use a binary cache, it will stream it thru a decompressor, and deserialized into /nix/store
<manveru>
yeah, i wonder if it would make sense to have separate ttls for fetchTarball with/without hash :)
<clever>
manveru: the ttl mainly controls re-checking http for changes, when you already have the file
<manveru>
so i can set one to infinity and never have to worry about fetching during nixos-rebuild as long as i manage everything via niv
<clever>
manveru: if a sha256 is present, i think it just ignores the ttl entirely, and uses the $out if it exists in /nix/store/
<clever>
no need to check for changes, if you know the content is unchanging
<manveru>
maybe it just gets removed by GC then?
<clever>
yeah
<manveru>
guess i can make a root for that...
<clever>
another thing, switching from fetchTarball to pkgs.fetchzip would help
<clever>
pkgs.fetchzip forces you to supply a sha256, and makes it simpler to cache
<manveru>
aye
o1lo01ol1o has quit [Ping timeout: 252 seconds]
<clever>
manveru: as for making hydra cache things properly, you just need to generate a derivation that depends on the same fetchurl calls, and expose it in release.nix
<clever>
manveru: my prefered way, is to generate symlinks, like ln -sv ${fetchurl ...} reponame
<manveru>
i don't use hydra myself ^^;
<clever>
manveru: then you can follow those to see the code behind the pin
<clever>
and to make a link to your deps's source pin derivations
<{^_^}>
[nixpkgs] @mmahut opened pull request #73453 → prometheus-nginxlog-exporter: init at 1.3.0 → https://git.io/JeoeW
adam| has joined #nixos
pareidolia has quit [Ping timeout: 240 seconds]
pareidolia has joined #nixos
minicom has joined #nixos
<magneticduck>
Hi, I'm having some trouble with a very basic UEFI installation of nixos. I've followed the instructions in the NixOS manual and set up these file systems and partitions: https://i.imgur.com/tCQ9Ox4.png . I have set "boot.loader.systemd-boot.enable = true" in my configuration.nix, and have not fiddled with boot-related things in any other way. `nixos-install` appears to succeed, giving this output: https://hastebin.com/raw/o
<magneticduck>
kawefigih . However, when I reboot the system and ask to boot into the "UEFI OS", nothing happens---it returns back to the UEFI setup utility immediately, without any error.
<magneticduck>
disabling the CSM is something I can do from the setup utility?
<dminuoso>
magneticduck: Boot the iso with efi and repeat the installation procedures. You shouldn't have to modify any boot things - nixos will generate everything automatically. :)
<clever>
magneticduck: yeah
<dminuoso>
magneticduck: (You just need to do the disk partition specially in that case)
<magneticduck>
dminuoso, should I redo everything starting with the partitions, or just this final `nixos-install` step?
<clever>
magneticduck: just mount things to the right places and re-run nixos-install
<dminuoso>
magneticduck: You can reuse the partitions if you have configured them and saved them
<clever>
magneticduck: remember to mount /mnt/boot too
<magneticduck>
Okay, thanks. I'll be back...
magneticduck has quit [Remote host closed the connection]
<asymmetric>
strange that weechat doesn't allow configuration-at-rest
<tilpner>
asymmetric: I migrated to this from an entirely declarative weechat config
<tilpner>
It was not fun
<asymmetric>
what was the problem with the declarative config?
<tilpner>
Turns out weechat was meant to be configured interactively
<tilpner>
Things like changing buffer notification levels
<tilpner>
You don't want a rebuild every time
hlolli__ has joined #nixos
ajtaktolpo has joined #nixos
domogled has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 7 commits to nixos-unstable-small: https://git.io/Jeovh
pareidolia has quit [Ping timeout: 250 seconds]
thc202 has quit [Ping timeout: 250 seconds]
<ajtaktolpo>
please, anyone has a good example of how to use overlays to create a new module (like the one from nixpkgs) but using a different package version?
<FRidh>
ajtaktolpo: you cannot. overlays only extend the package set. Modules are outside of the package set.
<tilpner>
FRidh is right in that overlays can't change options on their own, they can only change values in your package set
reallymemorable has quit [Client Quit]
<tilpner>
So you can put a module as a value in an overlay, and later import that
<tilpner>
But you don't need the overlay to use the module, it would be simpler without
reallymemorable has joined #nixos
alexherbo2 has joined #nixos
mg- has quit [Quit: "upgrading box"]
<pingiun>
why is /etc/nixos/configuration.nix read-only on the AWS AMI?
alexherbo2 is now known as alex```
<ajtaktolpo>
tilpner: I want to keep the same service as it is and just creare a "fork" of it as unstable
<hyper_ch2>
eyJhb: howdy
<tilpner>
ajtaktolpo: Do you want the two modules to coexist, or have your new module replace the old one?
steevveen has joined #nixos
* tilpner
reboot
<ajtaktolpo>
tilpner: coexist, two services
tilpner has quit [Quit: tilpner]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
acarrico has joined #nixos
andreas303 has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
Okinan has joined #nixos
Chiliparrot has joined #nixos
ajtaktolpo has quit [Remote host closed the connection]
emmanuelrosa has quit [Quit: leaving]
kleisli has joined #nixos
<steevveen>
Hi! I have a question about virtualisation. I don't have to install any package, i do it with options avialable from from virtualisation.virtualbox . My problem is that (with version 19.09à, every time I do an update, vritual box cpp files get recompiled,at that takes about one hour on my machine. When I have such a problem with a package I
<steevveen>
usually set my configuration to use the version of the previous nixos channel which tends to remain the same over time. So I would have like to use my n1903 channel pointing on 19.03. However I have no package to indicate in environment.systemPackages since vbox is all configrued through the option vitualisation.virtualbox . Anybody any advice ?
tilpner has joined #nixos
MmeQuignon has joined #nixos
<hyper_ch2>
eyJhb: in case you haven't seen: displaylink got updated
magneticduck has joined #nixos
<tilpner>
Did ajtaktolpo leave?
<magneticduck>
hooray \o/
<magneticduck>
it took me a while to realize I had to disable "secure boot"
<tilpner>
Yes, it took longer than expected: "4min 30.034s systemd-tmpfiles-setup.service". But still?
pareidolia has quit [Ping timeout: 240 seconds]
<hyper_ch2>
magneticduck: doesn't every sane person disable it?
<magneticduck>
perhaps every sane person who pays attention. I was unaware that such a thing existed.
<Twey>
SecureBoot can be nice to protect yourself from Evil Maid attacks, if you can install your own key
<Twey>
It's pretty high up the paranoia scale though
<hyper_ch2>
how would a "maid" know how to tamper with uefi boot?
<Twey>
hyper_ch2: It's the first thing they teach you in Evil School
<hyper_ch2>
they do? oh....
<chloekek>
steevveen: You can set the vbox package with the virtualisation.virtualbox.host.package option
<chloekek>
steevveen: most package-related options in NixOS have such a package option, which you can use to specify which package of the software to use for that service.
<{^_^}>
[nix] @Ma27 opened pull request #3229 → builtins.fetchGit: Fix build when fetching a git worktree → https://git.io/Jeofg
<steevveen>
chloekek now that you say that sounds obvious nixos had a solution for this. Thanks for telling me.
<kenran>
tilpner: the result of overrideAttrs is "ghc" again? That is, I could do `ghc = hsuper.ghc.overrideAttrs (...)`?
alexarice[m] has joined #nixos
<tilpner>
Yes, the result is another ghc
<tilpner>
I don't know that you can overlay it like you mentioned
pareidolia has joined #nixos
avn has quit [Read error: Connection reset by peer]
avn has joined #nixos
<kenran>
tilpner: We'll see :) It's not terribly important for the project, but I'm reasonably sure that this patch will make my emacs behave nicely again in this project.
<kenran>
thanks
<kenran>
tilpner: Indeed it seems to work with the overlay. If it really does go through I don't know yet, as it (ofc) needs to build ghc again first. That might take a while. Thanks again!
<kenran>
Also I should probably make the patch conditional on my operating system, but I've definitely seen examples of that somewhere before. Should be easy.
Thra11_ has joined #nixos
<chloekek>
Is there some cheap (e.g. O(1)) way to see if a store path I have, I downloaded from Nixpkgs cache?
<chloekek>
Then I could write a script that filters those out before pushing to my own cache, and save disk space and outbound traffic.
<tilpner>
You can check the signature
<LnL>
yeah, nix path-info --sigs <path>
<tilpner>
Ahh, path-info
<LnL>
if that has a nixos.org signature it was downloaded
* tilpner
was still reading nix-store(1)
<chloekek>
Thanks!! I will give that a try.
<LnL>
I think the new cli is the only way to get signature information currently
adam- is now known as rprospero
<tilpner>
I really should fix my setup so that the new CLI works
* tilpner
todo add
rardiol has joined #nixos
<chloekek>
The new CLI is marked experimental, but this is luckily not a problem, because if the interface changes I can just change my code to work with the new interface. :)
orivej has joined #nixos
waleee-cl has joined #nixos
genesis has quit [Ping timeout: 265 seconds]
<evanjs>
Hey guys, anything I can do to get this nodePackages PR merged? #73225
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « ntl: 11.3.4 -> 11.4.1 »: https://git.io/JeoUe
knupfer has quit [Ping timeout: 245 seconds]
knupfer1 is now known as knupfer
<kuznero__>
Does anybody use pyvenv/venv in NixOS (with or without conda)?
kuznero__ is now known as kuznero
<sondr3>
I have a JSON file I want to include in my NixOS configuration, do I simply write a nix derivation and do `"file".source = builtin.toJSON (der)`?
iyzsong has quit [Ping timeout: 252 seconds]
<sondr3>
kuznero: yeah, I've done it a few times
<tilpner>
sondr3: Include how?
<kuznero>
sondr3, any particular problems with that?
<tilpner>
sondr3: toJSON transforms a Nix value into JSON
<sondr3>
tilpner: no, was just wondering it it was the right approach, I haven't done it yet but wanted to make sure I was on the right path
<sondr3>
kuznero: you mentioned venv so I thought you meant one or the other
pie_ has joined #nixos
<kuznero>
no, it seems that starting from Python 3.3 they have baked-in virtualenv alternative called venv (or pyvenv, not to be mixed with pyenv)
bvdw has quit [Read error: Connection reset by peer]
<sondr3>
tilpner: home-manager does this with some configuration files, you write it in Nix and it converts it to JSON and saves it to the correct file
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.6]
eri is now known as eri451
sweep has joined #nixos
sweep is now known as genesis
genesis has joined #nixos
genesis has quit [Changing host]
pareidolia has joined #nixos
kuznero has quit [Quit: Leaving]
worldofpeace has joined #nixos
<Ankhers>
I just read about buildGoModule where you do not need to explicitly tell nix about your deps as it will fetch them for you. Is this the preferred way to go about things, or is it preferred to be explicit about your deps? Or is it a bit of a toss up?
pareidolia has quit [Read error: Connection reset by peer]
<gchristensen>
there has been chat about removing buildGoModule because it is a bit of a hack, and isn't inline with the ideals of Nix
<Ankhers>
Is there anywhere I can read about that?
xkapastel has joined #nixos
worldofpeace1 has joined #nixos
ninjatrappeur[m] has joined #nixos
Guest67567 has joined #nixos
tilpner2 has joined #nixos
marius851000[m] has joined #nixos
Ox4A6F has joined #nixos
joelpet1 has joined #nixos
DenisLehmann[m] has joined #nixos
spacekitteh[m] has joined #nixos
ilya-fedin has joined #nixos
Gopal[m] has joined #nixos
manveru[m] has joined #nixos
yangm has joined #nixos
timokau[m] has joined #nixos
segfault[m] has joined #nixos
philipp[m] has joined #nixos
eddyb has joined #nixos
snupples[m] has joined #nixos
null_radix[m] has joined #nixos
rihardsk[m] has joined #nixos
Nyanloutre[m] has joined #nixos
Brio[m] has joined #nixos
aymenstudios[m] has joined #nixos
yoho[m]1 has joined #nixos
momack2[m] has joined #nixos
corpix[m] has joined #nixos
Thinkofname[m] has joined #nixos
DanP[m] has joined #nixos
Smith[m] has joined #nixos
NoblesseOblige24 has joined #nixos
bikki[m] has joined #nixos
chreekat[m] has joined #nixos
zurdo has joined #nixos
domenkozar[m] has joined #nixos
regnat[m] has joined #nixos
coniferous-cube[ has joined #nixos
phyfey[m] has joined #nixos
danielrf[m] has joined #nixos
thefloweringash has joined #nixos
clacke[m] has joined #nixos
nilsirl[m] has joined #nixos
hiroshi[m] has joined #nixos
wildtrees[m] has joined #nixos
siraben has joined #nixos
MilkManzJourDadd has joined #nixos
LiuWeiHua[m] has joined #nixos
Yakulu[m] has joined #nixos
layus[m] has joined #nixos
IslandUsurper has joined #nixos
slabity has joined #nixos
ronny has joined #nixos
VaNilLa[m] has joined #nixos
abbradar[m] has joined #nixos
mirsal has joined #nixos
peel1 has joined #nixos
am3on[m] has joined #nixos
copy` has joined #nixos
musicmatze has joined #nixos
malteof[m] has joined #nixos
lel[m] has joined #nixos
rycee has joined #nixos
blitzclone_ has joined #nixos
florianjacob has joined #nixos
joepie91[m] has joined #nixos
wrunt[m] has joined #nixos
colemickens has joined #nixos
sonercirit[m] has joined #nixos
ejpcmac has joined #nixos
clefru has joined #nixos
marijan[m] has joined #nixos
mica[m] has joined #nixos
frislie[m] has joined #nixos
vaibhavsagar has joined #nixos
zmlww[m] has joined #nixos
tokudan[m] has joined #nixos
Ericson2314 has joined #nixos
zer0xp[m] has joined #nixos
y0x3y[m] has joined #nixos
MerlinGttlinger[ has joined #nixos
Sisyphe[m] has joined #nixos
talvdav[m] has joined #nixos
roberth has joined #nixos
xavierm02 has joined #nixos
offlinehacker has joined #nixos
ndarwincorn has joined #nixos
nh2[m] has joined #nixos
dtz has joined #nixos
Vskilet has joined #nixos
sylvie[m] has joined #nixos
sauyon[m] has joined #nixos
bachp has joined #nixos
jak[m]1 has joined #nixos
codyopel has joined #nixos
gaisseml[m]1 has joined #nixos
harkenedraven has joined #nixos
li_matrix has joined #nixos
zummed[m] has joined #nixos
NickHu has joined #nixos
jonge[m] has joined #nixos
MarkOtaris has joined #nixos
aloysius[m] has joined #nixos
arianvp[m] has joined #nixos
bennofs[m] has joined #nixos
gaisseml[m] has joined #nixos
attero has joined #nixos
alex[m]9 has joined #nixos
ZerataX has joined #nixos
wangoe[m] has joined #nixos
bkl[m] has joined #nixos
divansantana has joined #nixos
isgy[m] has joined #nixos
cornu has joined #nixos
schmittlauch[m] has joined #nixos
atopuzov[m] has joined #nixos
kaychaks[m] has joined #nixos
aanderse has joined #nixos
jtojnar has joined #nixos
JaakkoLuttinen[m has joined #nixos
ma27[m] has joined #nixos
icetan has joined #nixos
escaP[m] has joined #nixos
thequux[m] has joined #nixos
hienergy[m] has joined #nixos
LinuXit has joined #nixos
groggy[m] has joined #nixos
balsoft has joined #nixos
bricewge has joined #nixos
roadt[m] has joined #nixos
haslersn has joined #nixos
gudea[m] has joined #nixos
sevcsik- has joined #nixos
jwaksbaum[m] has joined #nixos
arcnmx has joined #nixos
luftmensch[m] has joined #nixos
deluvi[m] has joined #nixos
otini has joined #nixos
MayeulC_backup has joined #nixos
macerbi[m]1 has joined #nixos
Christian[m]1 has joined #nixos
Moredread[m] has joined #nixos
contrun[m] has joined #nixos
Seb[m] has joined #nixos
sputny[m] has joined #nixos
MichaelEden[m] has joined #nixos
truby has joined #nixos
TravisRt2botio[m has joined #nixos
bohan[m] has joined #nixos
simbergm has joined #nixos
fasd has joined #nixos
BrightOne[m] has joined #nixos
l33[m] has joined #nixos
Brian[m]4 has joined #nixos
shizonic has joined #nixos
MiloIgnis[m] has joined #nixos
rnhmjoj has joined #nixos
Victor[m]1 has joined #nixos
fpletz[m] has joined #nixos
goibhniu has joined #nixos
nbardiuk has joined #nixos
ZD[m] has joined #nixos
fgaz has joined #nixos
alienpirate5 has joined #nixos
wedens[m] has joined #nixos
jschievink has joined #nixos
aterius has joined #nixos
geemili has joined #nixos
HappyEnt[m] has joined #nixos
tyrion1 has joined #nixos
mt[m] has joined #nixos
frederic_chopwn[ has joined #nixos
tails[m] has joined #nixos
pachacuti[m] has joined #nixos
Minijackson[m] has joined #nixos
craige[m] has joined #nixos
leons has joined #nixos
Noughtmare[m] has joined #nixos
cyberwolf[m] has joined #nixos
truh[m] has joined #nixos
setthemfree[m] has joined #nixos
arturo[m] has joined #nixos
blahaj[m] has joined #nixos
flacks has joined #nixos
Notkea[m] has joined #nixos
crabemis[m] has joined #nixos
EuAndreh[m] has joined #nixos
pingveno[m] has joined #nixos
submoo[m] has joined #nixos
Dandellion[m] has joined #nixos
midi[m] has joined #nixos
hackeryarn[m] has joined #nixos
tobim[m] has joined #nixos
GerdFlaig[m] has joined #nixos
abbec has joined #nixos
veleiro has joined #nixos
pinage404[m] has joined #nixos
kirelagin has joined #nixos
das-g[m] has joined #nixos
imj[m] has joined #nixos
quiet_laika[m] has joined #nixos
babariviere[m] has joined #nixos
wak-work has joined #nixos
abbafei[m] has joined #nixos
hpfr[m] has joined #nixos
bendlas has joined #nixos
joelwallis1[m] has joined #nixos
pheoxy has joined #nixos
is0x3F has joined #nixos
olejorgenb[m] has joined #nixos
provessor[m] has joined #nixos
grahamc[m] has joined #nixos
<Ankhers>
gotta love matrix...
pareidolia has joined #nixos
frrrftt has joined #nixos
<Ankhers>
gchristensen: Sorry if you saw the message, but is there anywhere I can read about that?
<frrrftt>
how to convert an arrtibe set to yaml?
calbrecht[mb] has quit [Remote host closed the connection]
<frrrftt>
error: attribute 'toYAML' missing, at /home/mmahut/repo/morph/roles/log/promtail_config.nix:4:53
<__monty__>
But you said top-level value must always be a table. While that seems to say that's not valid?
<Twey>
__monty__: Ah, no. TOML also has two syntaxes for tables, the ‘inline table’ syntax and the ‘multiline table’ (I think that's what it's called?) syntax
<Twey>
__monty__: Inline table syntax (which is what's used in that comment, and looks most like JSON) isn't valid at the top level, only as a value of a key
pareidolia has quit [Ping timeout: 240 seconds]
<Twey>
__monty__: But multiline table syntax (or multiline array-of-table syntax) is valid (and required) at the top level
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/JeoTD
smatting has quit [Ping timeout: 252 seconds]
pareidolia has joined #nixos
blaggacao has quit [Read error: Connection reset by peer]
<noonien>
i'm spawning a shell with nix-shell that requires the compilation of gcc
blaggacao has joined #nixos
<{^_^}>
[nixos-channel-scripts] @grahamc pushed to back-in-time-exit-code « mirror-nixos-branch.pl: exit 0 if the channel would go back in time »: https://git.io/JeoTd
<noonien>
but the compilation seems to only use one core, can i do something for it to use all cores?
<Twey>
Hm, though to be fair — not all Nix expressions are valid JSON, either
inkwell is now known as zebrag
<tilpner>
noonien: Try nix-shell --cores 4
<{^_^}>
[nixos-channel-scripts] @grahamc opened pull request #28 → mirror-nixos-branch.pl: exit 0 if the channel would go back in time → https://git.io/JeoTb
<noonien>
i will, but is there a way of setting it system-wide?
<tilpner>
noonien: Yes, set cores in nix.conf
<tilpner>
noonien: nix.buildCores on NixOS
<noonien>
awesome, thanks!
<noonien>
yeah, i already got buildCores in NixOS
<tilpner>
Huh
<Twey>
If you set it to 0 it will use all the system's cores
<gjabell>
tilpner: hey
<tilpner>
noonien: nix show-config | grep cores
<chloekek>
Twey: almost no Nix expressions are valid JSON. It seems like besides Booleans, numbers, strings, only empty sets and empty/singleton lists can be.
<tilpner>
gjabell: Can I see the expression you use weechat-matrix in?
<Twey>
chloekek: Oh, sorry, I didn't mean literally but semantically
<noonien>
nix.maxJobs = lib.mkDefault 8; nix.buildCores = 0; in my configuration.nix
<tilpner>
gjabell: I had to patch the weechat wrapper to get it working
<noonien>
should cores = 0 not use all cores?
<Twey>
chloekek: There's no JSON equivalent to which to map e.g. functions
<{^_^}>
[nixos-channel-scripts] @edolstra merged pull request #28 → mirror-nixos-branch.pl: exit 0 if the channel would go back in time → https://git.io/JeoTb
<{^_^}>
[nixos-channel-scripts] @edolstra pushed 2 commits to master: https://git.io/JeoTh
<chloekek>
Twey: oh :þ yeah you can't serialize functions, and serializing derivations loses info
<tilpner>
noonien: Use show-config
<{^_^}>
[nixos-channel-scripts] @edolstra pushed 0 commits to back-in-time-exit-code: https://git.io/JeoTj
<gjabell>
tilpner yeah I'll post it when I get back home, on my phone atm
<Twey>
chloekek: ⁵ for the use of the highly-underrated ‘:þ’ emoticon :þ
<noonien>
show-config says `cores = 0`
<tilpner>
noonien: That should work then :/
<Twey>
chloekek: We were discussing why Nix has no builtins.toTOML, and I thought perhaps it was because TOML can't map a lot of Nix expressions. But the same is true of other formats that are supported.
<chloekek>
Twey: thanks :Ð
<noonien>
i see more cores are being used now(the compilation still has not finished), but i'm unsure if the tests are running or something
<Twey>
noonien: If any attribute of your derivation uses IFD, the shell will be pinned to a single core (I discovered the hard way)
<lordcirth>
IFD?
<Twey>
,ifd
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result. It has been described as "such a nice footgun."
<tilpner>
gjabell: Do you also need matrix_decrypt or matrix_sso_helper?
pistache has joined #nixos
<lordcirth>
So basically eval() on nix code you just constructed? Yeah that sounds chaotic
<exarkun>
And du isn't supposed to include filesystem metadata in its measurement. It might overreport size by as much as 1 block minus 1 byte since its resolution is blocks, but that's all.
<__monty__>
That's where the database is kept, that's where the profiles are I believe.
drakonis_ has quit [Ping timeout: 250 seconds]
jgt has joined #nixos
drakonis_ has joined #nixos
<srhb>
turion: Basically I suspect you have a mismatch between containing directory name and cabal project name, and/or you're relying on symlinks outside of the source directory.
<srhb>
Fun Ensues^tm
<turion>
srhb: Yes! I did git clone and not git clone --recursive!
<__monty__>
Wow, then that error message is really confusing.
<phry_>
lordcirth__ just as a follow-up on the server-that-had-no-ipv4-after-a-dist-upgrade from last week: in the old config, the bridge had the MAC of the ethernet interface, in the new config it had some random MAC that was blocked by the provider.
<phry_>
so there's the solution :=)
knupfer has joined #nixos
drakonis has quit [Ping timeout: 265 seconds]
phry_ has quit [Remote host closed the connection]
LysergicDreams has quit [Ping timeout: 252 seconds]
psyanticy has quit [Quit: Connection closed for inactivity]
civodul has joined #nixos
JonReed has joined #nixos
<JonReed>
Is there a way to get the size of packages: A) all currently active packages on the system B) Only packages in `/etc/nixos/configuration.nix` C) all packages installed with `nix-env -i`?
<exarkun>
you might like `nix-store --query --size`
slack1256 has quit [Remote host closed the connection]
<{^_^}>
[cabal2nix] @peti pushed to master « Normalize flags to all-lowercase before handing them to Cabal. »: https://git.io/JeoYc
<fifeefo>
Lurking, but thanks for suggestions, exarkun and lordcirth :-)
<lordcirth>
epage, edit /etc/nixos/configuration.nix , and environment.systemPackages should be defined as a list. It may be commented out on a new install.
<JonReed>
lordcirth: This displays the size of all currently active packages, right? In other words, all packages installed via `configuration.nix` and `nix-env -iA`, but not the ones which were installed through `nix-shell` or `nix-build`?
<lordcirth>
I think it has wget and vim there as examples
drakonis_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeoY8
<lordcirth>
JonReed, nix path-info -S shows the closure size of what you target. So, that thing and all it's dependencies. Anything installed to your user's default environment with nix-env -i is a dependency of $HOME/.nix-profile/manifest.nix, I believe
<JonReed>
exarkun: Hm, how does that work? `nix-store --query --size` that just silently exits for me.
MarvelousWololo has joined #nixos
<exarkun>
JonReed: it needs some args
<epage>
lordcirth yes, I've added things from a stable channel to the list. Are other channels in the avaialble in `pkgs` or is there something else I do to access one?
<exarkun>
JonReed: ie, a store path of which to query the size
mananamenos has quit [Remote host closed the connection]
<JonReed>
exarkun: Ah, okay.
<srhb>
JonReed: Mind, if you sum eg. nix-profile closure size and system size you'll most likely get (many) duplicate counts.
<exarkun>
JonReed: I was thinking of a pipeline that queried all of the requirements of /run/current-system and then summed them up ... but that gives you exactly what the command lordcirth suggested gives, more easily.
<lordcirth>
epage, if you have added home-manager to root's channels, it should work. Not if you added it to your user's channel, though.
<srhb>
JonReed: You would have to actually uniq'ify the closure (nix-store -qR) of both of them and then sum those sizes to get the total..
<exarkun>
but it might be useful if you want the sum of (A) and (B) since it can unique the requirements and then sum their sizes, avoiding double counting anything
<srhb>
Yeah, sure :)
<{^_^}>
[nixpkgs] @peti pushed to master « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeoY8
<JonReed>
lordcirth: exarkun: srhb: Thanks!
<lordcirth>
np
<{^_^}>
[nix] @chkno opened pull request #3230 → Check for and repair bad .links entries → https://git.io/JeoYu
<noonien>
how can i setup a shell.nix to provide a cross compiler with a gcc of a version i choose? i would prefer to have 2 versions if possible
<srhb>
noonien: Take a look at adapters.nix
<magneticduck>
is nixos.org down for everybody else, or is my DNS resolver configuration being funky?
<magneticduck>
`ping: nixos.org: Name or service not known`
<noonien>
`stdenv.override { cc = cross.gcc49 }` for example?
<magneticduck>
lordcirth, that works
<noonien>
cross being a <nixpkgs with crossSystem.config set
<selfsymmetric-pa>
Crazy workflow optimization, I know, but is there a way I can expand the definition of something in a nix-file to hack on it? EXAMPLE: if I have, say, `pkgs.unstable.haskellPackages.hlint`, can I expand it into the full `mkDeriviation` or whatever that I'd find on GitHub, so that I can copy it into my nix file and hack on the specific attributes?
<buckley310>
i have nix installed on a rhel-like system. if i do `nix-shell -p python3` i get 3.7 as expected, but if i do `nix-env -i python3` i get 3.8..... how does nix-env look for packages? apparently not all-packages.nix....
<magneticduck>
(so I guess my DNS server was just ... not reliable?)
justan0theruser has quit [Ping timeout: 250 seconds]
exfalso has joined #nixos
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
<JonReed>
selfsymmetric-pa: Not sure what you mean by that. If you want to go directly to the source of the currently installed package then there's `nix edit nixpkgs.haskellPackages.hlint`. If you want to get a package at specific commit at nixpkgs inside some nix expression, there's fetchTarball: https://pastebin.com/FkfSCKRe
<JonReed>
selfsymmetric-pa: Once you use `fetchTarball` you can, of course, easily just override attributes there as well.
bvdw has joined #nixos
epage has quit [Remote host closed the connection]
<DigitalKiwi>
a nix-review of a pr ... lol [0/67809 built, 8/400/28626 copied (2112.4/206768.1 MiB), 2109.4/96841.0 MiB DL] # been going an hour and a half ;_;
<selfsymmetric-pa>
JonReed: `nix edit` looks like exactly what I want. How do I pass it my `nixpkgs`?
hyper_ch has joined #nixos
<JonReed>
selfsymmetric-pa: Never had to do it. There seems to be `-f` and `-I` arguments. I would look into those ones.
<{^_^}>
[nixos-org-configurations] @grahamc pushed 8 commits to master: https://git.io/JeoY5
<selfsymmetric-pa>
I did `nix edit -f "<nixpkgs>" pkgs.haskellPackages.hlint` and it worked! Thanks JonReed!
<selfsymmetric-pa>
JonReed++
<{^_^}>
JonReed's karma got increased to 2
<JonReed>
selfsymmetric-pa: np
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #73472 → rust: add support for armv6l-linux and armv7l-linux → https://git.io/JeoYF
<noonien>
can i get multiple gcc versions in a nix-shell?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
leotaku has joined #nixos
<noonien>
just adding the versions in nativeBuildInput doesnt seem to work (i add them here because i'm cross-compiling)
<{^_^}>
[nixpkgs] @LnL7 pushed commit from EEva (JPotier) to release-19.09 « vault: fix config when file backend is used »: https://git.io/JeoO0
leotaku has quit [Ping timeout: 276 seconds]
knupfer has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
thesilvus has joined #nixos
leotaku has joined #nixos
<samueldr>
noonien: mkShell allows you to omit a couple attributes, that's the main reason
<samueldr>
well, you also make it obvious that it's a shell
<thesilvus>
I'm running Nixos on my laptop (Thinkpad E495, AMD, no discrete graphics). I'm not able to access any usb devices. They are not listed in lsusb, I'm getting errors in dmesg: https://pastebin.com/bat6X0jW . What can cause this?
Soo_Slow has joined #nixos
<JonReed>
noonien: Well, I don't know about the proper way to do it. But at at the very least, you can hack it like so `mkDerivation = { myGcc = "${gcc}/bin/gcc"; }` and then call `$myGcc` inside nix-shell. `nix-shell` just drops you into an environment where the builder would be run. Because every attribute inside derivation is serialized to varibles
<JonReed>
`mkDerivation { var1 = "test"; .. }` where running `echo $var1` will show as "test". "${pkg}" automatically gets expanded to path inside `/nix/store`, the package itself is in /bin/. So doing `var1 = ${pkg}/bin/pkgName; ` will put "$var" as `/nix/store/.../bin/pkgName` which you can then call.
<an_user>
Most tutorials only show FDE with Grub, which only supports LUKS1
<an_user>
Is there some way to simply have a plain /boot which decrypts the actual root?
<noonien>
http://ix.io/21S2 gives me `armv7l-unknown-linux-gnueabihf-gcc` and `armv7l-unknown-linux-gnueabihf-gcc-8.3.0`
judson_ has joined #nixos
<noonien>
`gcc` is not even available
<noonien>
can i also have another gcc installed? i prefer it prefixed
judson has quit [Ping timeout: 240 seconds]
<JonReed>
an_user: There's `boot.initrd.postDeviceCommands` where you can run whatever command you want. This is what I do to run `cryptsetup --type plain`. I manually modprobe several modules and then manually decrypt everything I need in exactly the way I need through cryptsetup.
<noonien>
ah, replacing `zlib` with `stdenv` does the same thing, it was actually stdenv providing gcc
phreedom has quit [Remote host closed the connection]
<JonReed>
an_user: I have FDE, where the harddrive is fully encrypted and the boot is on a portable usb drive. So, it's definitely possible to do whatever configuration you want if to do it manually.
leotaku has joined #nixos
<an_user>
JonReed Yeah I did exactly that with my Arch laptop, but when I detached the key and ran an yay upgrade, it no longer had a valid kernel on the boot key and I had to fix everything manually with an live USB stick
<JonReed>
an_user: I don't remember last time I had problems with boot on NixOS.
<JonReed>
If ever.
<an_user>
So what happens on NixOS when you upgrade your kernel but your USB stick is not attached?
leotaku has quit [Ping timeout: 240 seconds]
<JonReed>
You just attach it and run it again.
thesilvus has quit [Remote host closed the connection]
<JonReed>
I have an alias for it, where upgrading the system automatically mounts boot before it.
texasmynsted has left #nixos ["WeeChat 2.5"]
<an_user>
Oh that's smart
<an_user>
I hacked my encryption together with a custom initcpio hook, and if it fails that's simply ignored
<an_user>
Which is kinda bad
<{^_^}>
[nixpkgs] @rwanyoike opened pull request #73475 → mtr: patch for "Error decoding localhost address" → https://git.io/Jeo3u
thc202 has quit [Ping timeout: 250 seconds]
acarrico has quit [Ping timeout: 246 seconds]
<JonReed>
What I usually do, is that I have a script inside `/boot/unlock.sh`, which decrypts the device, does whatever other mounting or device mapping magic needs to be done, until the root ends up being mapped to exactly the same place where it needs to be. So, in `configuration.nix` you have `fileSystems."/" = { device = "/dev/mapper/decrypted"; ...}`.
<JonReed>
and `unlock.sh` script deterministicalyy just decrypts the device using cryptsetup and runs whatever other things it needs to do to end up with the right device at `/dev/mapper/decrypted`.
jco has quit [Quit: WeeChat 2.6]
waleee-cl has quit [Quit: Connection closed for inactivity]
MichaelRaskin has quit [Ping timeout: 252 seconds]
kleisli has quit [Ping timeout: 246 seconds]
<JonReed>
an_user: ^ In addition to that I also have `lock.sh`, which unmounts everything. So, while I'm trying to setup the device I'm just running `unlock.sh` and `lock.sh` scripts until I end up with whatever I need. This way you can just very quickly prototype the configuration you need. Additionally, if something breaks, you can just run `unlock.sh`
<JonReed>
from live usb and immediatelly decrypt your device..
orivej has quit [Ping timeout: 240 seconds]
<JonReed>
an_user: then you basically just run `/boot/unlock.sh` inside `boot.initrd.postDeviceCommands`. There are other things that you need to do, but that's that's the basic idea behind my setup.
cosimone has quit [Quit: Terminated!]
__monty__ has quit [Quit: leaving]
selfsymmetric-pa has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<colemickens>
I'm trying to do some work in a pure nix shell. I set some env vars in my shell.nix to make Git work, do I need to do similarly for Nix? https://builds.sr.ht/~colemickens/job/109759
<phyfey[m]>
are meltdown/spectre/zombieland vuln OS patches pushed to mainline?
<JonReed>
an_user: Have you tried just using `ext2` there? I imagine putting the `fsType` will mostly affect what modules will be included in initrd and then modprobed. I would expect ext2 be supported, but if anything you can use anything you want there because you can always just load those modules manually if it comes to that.
Lysergic1reams has quit [Ping timeout: 276 seconds]
LysergicDreams has joined #nixos
silver_ has joined #nixos
silver has quit [Ping timeout: 240 seconds]
fendor has quit [Quit: Leaving]
<JonReed>
colemickens: If you run `git` from `nix` it should see all env variables which are in the shell that you're running it from, unless your git package is wrapped somewhere that either overrides or unsets those variables.
<colemickens>
Sorry, I meant "nix-shell".
<colemickens>
Or rather, "nix-shell --pure".
<colemickens>
Turns out you need to set GIT_SSL_CAINFO, SSL_CERT)FILE and NIX_SSL_CERT_FILE at least in the pure shell's env for nix/git to work wit https.
Ariakenom_ has quit [Read error: Connection reset by peer]
<gchristensen>
I think if you put cacerts in the buildInputs it'll work automatically