<aleph->
samueldr: Ah I wasn't certain if I could ask there, good to know.
<samueldr>
aleph-: the basic idea is to get a mainline u-boot going, and from there, either boot the vendor's kernel (ugh...) or boot mainline if it supports the board
<vika_nezrimaya>
it's literally in the name of the package
<samueldr>
if you can't get mainline u-boot, it's going to be harder
<bqv>
dammit, now i've been replaced by cheap european labour
<aleph->
Yep there's mainline u-boot thankfully.
<aleph->
Err mainline u-boot support*
<vika_nezrimaya>
bqv: who said I'm cheap
<vika_nezrimaya>
I'm charging karma for my service
<colemickens>
hm, if I pass an inputs legacyPackages to some other nix file and then access it as "${pkgs.path}/..." why am I being told I can't access those in restricted mode? It's a path coming from inputs?
<bqv>
don't use inputs.??.legacyPackages.??.path, use inputs.?? directly
zuserm has quit [Ping timeout: 265 seconds]
<bqv>
the former breaks pure mode, latter does not
dongcarl has quit [Read error: Connection reset by peer]
<bqv>
colemickens: though i've yet to fully comprehend why
dongcarl has joined #nixos
inkbottle has quit [Quit: Konversation terminated!]
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
<cole-h>
How does one un-cache a failure with flakes?
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<cole-h>
And also, how does one use `nix shell` and unfree packages?
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
stephaneyfx has joined #nixos
<bqv>
cole-h: 1: typically i first try just rerunning with --impure, otherwise amend your commit with no changes, otherwise gotta add a random space somewhere
spacefrogg has joined #nixos
<bqv>
cole-h: 2: you can create a flake attrpath that has allowUnfree set true
<cole-h>
(Said cached failure is related to the second question -- `nix shell nixpkgs#dwarf-fortress` fails because it's unfreeRedistributable)
<bqv>
e.g. my 'self#discord' would work because it's imported with my config
<bqv>
yeah, i don't think there's a nice way to do it via 'nixpkgs#'
<bqv>
legacyPackages is imported with a specific config ({}), you have to do it yourself to get around that
<cole-h>
I see. Then I'll just use `nix-shell` until I have time to set up my flakes.nix properly :P
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @cdepillabout pushed 3 commits to haskell-updates: https://git.io/JJb8G
orbekk has quit [Ping timeout: 256 seconds]
dongcarl has quit [Ping timeout: 264 seconds]
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
metreo has quit [Quit: Leaving.]
CcxWrk has quit [Ping timeout: 256 seconds]
CcxWrk has joined #nixos
<clever>
CMCDragonkai: maybe somebody fixed it by accident, so they didnt unmark it
justanotheruser has joined #nixos
orbekk has joined #nixos
bahamas has joined #nixos
bahamas has joined #nixos
bahamas has quit [Changing host]
<bqv>
,locate bin keyctl
<{^_^}>
Found in packages: keyutils
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lordcirth has quit [Remote host closed the connection]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
dongcarl has joined #nixos
nixuser has joined #nixos
stephaneyfx has joined #nixos
<energizer>
it would be nice if dependent packages got re-run automatically and the downstream effects of changes were recorded in an obvious way
<clever>
energizer: the whole point of marking a package as broken, is so hydra (and end-users) dont waste time building a package that is known to fail at building
<clever>
the difference between nix-build failing instantly, vs nix-build spending an hour compiling, then failing
<energizer>
clever: maybe it wants a new tag broken-but-dependency-could-fix-it = true
<clever>
probably just needs a maintainer to look into the problems more, and fix them instead of just flagging it as broken
<clever>
or to set a reminder to check up on it latere
dongcarl has quit [Read error: Connection reset by peer]
cole-h has quit [Ping timeout: 265 seconds]
alexherbo2 has joined #nixos
dongcarl has joined #nixos
__monty__ has joined #nixos
davidak[m] has quit [Quit: killed]
yutyo[m] has quit [Quit: killed]
bbigras has quit [Quit: killed]
domenkozar[m] has quit [Quit: killed]
eadwu[m] has quit [Quit: killed]
colemickens has quit [Quit: killed]
JJJollyjim has quit [Quit: killed]
siraben has quit [Quit: killed]
wak-work has quit [Quit: killed]
dominicusin[m] has quit [Quit: killed]
Yakulu[m] has quit [Quit: killed]
codyopel has quit [Quit: killed]
hsiktas[m] has quit [Quit: killed]
unclechu has quit [Quit: killed]
bqy has quit [Quit: killed]
fgaz has quit [Quit: killed]
Ericson2314 has quit [Quit: killed]
Valodim[m] has quit [Quit: killed]
jtojnar has quit [Quit: killed]
srasu[m] has quit [Quit: killed]
vaibhavsagar has quit [Quit: killed]
jt35[m] has quit [Quit: killed]
Superleaf1995 has quit [Quit: killed]
MilkManzJourDadd has quit [Quit: killed]
hiroshi[m] has quit [Quit: killed]
ptotter[m] has quit [Quit: killed]
cyberwolf[m] has quit [Quit: killed]
yangm has quit [Quit: killed]
Ox4A6F has quit [Quit: killed]
elorm[m] has quit [Quit: killed]
david-sawatzke[m has quit [Quit: killed]
chvp has quit [Quit: killed]
crazazy[m] has quit [Quit: killed]
martha[m] has quit [Quit: killed]
raju[m] has quit [Quit: killed]
aanderse has quit [Quit: killed]
jgart[m] has quit [Quit: killed]
leons has quit [Quit: killed]
Geezus42[m] has quit [Quit: killed]
ryantm has quit [Quit: killed]
jehova[m] has quit [Quit: killed]
dxu[m] has quit [Quit: killed]
puzzlewolf has quit [Quit: killed]
danielrf[m] has quit [Quit: killed]
yurb has quit [Quit: killed]
Strubbl[m] has quit [Quit: killed]
lihram has quit [Quit: killed]
jschievink has quit [Quit: killed]
sebass[m] has quit [Quit: killed]
slavfox has quit [Quit: killed]
worldofpeace has quit [Quit: killed]
Ke has quit [Quit: killed]
srgancap[m] has quit [Quit: killed]
cmcaine[m] has quit [Quit: killed]
qbit[m] has quit [Quit: killed]
rschulman has quit [Quit: killed]
the_rajsun[m] has quit [Quit: killed]
drozdziak1 has quit [Quit: killed]
TimePath has quit [Quit: killed]
alienpirate5 has quit [Quit: killed]
sparogy has quit [Quit: killed]
GuillaumeChrel[m has quit [Quit: killed]
kaychaks_riot has quit [Quit: killed]
bachp has quit [Quit: killed]
test300[m] has quit [Quit: killed]
pjt_014[m] has quit [Quit: killed]
alexarice[m] has quit [Quit: killed]
philipp[m] has quit [Quit: killed]
kekw736[m] has quit [Quit: killed]
Gleaken[m] has quit [Quit: killed]
georgyo[m]1 has quit [Quit: killed]
srid has quit [Quit: killed]
M0-[m] has quit [Quit: killed]
anonymouserobot[ has quit [Quit: killed]
leonardp has quit [Quit: killed]
guelosk[m] has quit [Quit: killed]
BjrnForsman[m] has quit [Quit: killed]
felschr[m] has quit [Quit: killed]
sshow[m] has quit [Quit: killed]
kyren has quit [Quit: killed]
sneknek[m] has quit [Quit: killed]
etokarev[m] has quit [Quit: killed]
noderunner_[m] has quit [Quit: killed]
nicolas[m]1 has quit [Quit: killed]
hans[m]5 has quit [Quit: killed]
Eli[m]1 has quit [Quit: killed]
jabarszcz[m] has quit [Quit: killed]
onny[m] has quit [Quit: killed]
__[m] has quit [Quit: killed]
peterlau[m] has quit [Quit: killed]
boomer[m] has quit [Quit: killed]
phirsch has quit [Quit: killed]
schlumpp[m] has quit [Quit: killed]
acidpointer[m] has quit [Quit: killed]
tristan[m] has quit [Quit: killed]
sghir_med[m] has quit [Quit: killed]
fatjedi[m] has quit [Quit: killed]
hr[m] has quit [Quit: killed]
pitchzer0 has quit [Quit: killed]
mindtree[m] has quit [Quit: killed]
enderdays[m] has quit [Quit: killed]
arcnmx has quit [Quit: killed]
theduke has quit [Quit: killed]
gnxlxnxx[m] has quit [Quit: killed]
tolja[m] has quit [Quit: killed]
ArtemVorotnikov[ has quit [Quit: killed]
uzr[m] has quit [Quit: killed]
fjodor[m] has quit [Quit: killed]
DamienCassou has quit [Quit: killed]
dtz has quit [Quit: killed]
rednaZ[m] has quit [Quit: killed]
Minijackson[m] has quit [Quit: killed]
mica[m] has quit [Quit: killed]
chefkoch[m] has quit [Quit: killed]
srxl has quit [Quit: killed]
mcaju has quit [Quit: killed]
zerocostabstrac4 has quit [Quit: killed]
gretax[m] has quit [Quit: killed]
jneplokh has quit [Quit: killed]
philipp[m]1 has quit [Quit: killed]
betrion[m] has quit [Quit: killed]
toto[m] has quit [Quit: killed]
antpic01[m] has quit [Quit: killed]
aterius has quit [Quit: killed]
thefloweringash has quit [Quit: killed]
azazel has quit [Quit: killed]
chrismatheson has quit [Quit: killed]
mt[m] has quit [Quit: killed]
noneucat has quit [Quit: killed]
aloiscochard[m] has quit [Quit: killed]
ndarilek has quit [Quit: killed]
l_inus[m] has quit [Quit: killed]
kriteus119[m] has quit [Quit: killed]
musicmatze has quit [Quit: killed]
fszdg[m] has quit [Quit: killed]
wedens[m] has quit [Quit: killed]
travelion[m] has quit [Quit: killed]
iudicael[m] has quit [Quit: killed]
yochai[m] has quit [Quit: killed]
cdknight[m] has quit [Quit: killed]
SpaghettiCthulhu has quit [Quit: killed]
clandest[m] has quit [Quit: killed]
Philipp[m]2 has quit [Quit: killed]
davegallant[m] has quit [Quit: killed]
lwbcdt[m] has quit [Quit: killed]
yusdacra[m] has quit [Quit: killed]
albert[m]1 has quit [Quit: killed]
idontgetoutmuch[ has quit [Quit: killed]
hydridity[m] has quit [Quit: killed]
stu_[m] has quit [Quit: killed]
nocturnalbeast[m has quit [Quit: killed]
cab404[m] has quit [Quit: killed]
inquisitiv3 has quit [Quit: killed]
ilya-fedin has quit [Quit: killed]
axx has quit [Quit: killed]
NobbZ[m] has quit [Quit: killed]
emily has quit [Quit: killed]
blindidiotgod has quit [Quit: killed]
chreekat[m] has quit [Quit: killed]
timclassic has quit [Quit: killed]
greghab[m] has quit [Quit: killed]
regivanx[m] has quit [Quit: killed]
GerdFlaig[m] has quit [Quit: killed]
truby has quit [Quit: killed]
lycium[m] has quit [Quit: killed]
hsngrmpf[m] has quit [Quit: killed]
Shyim[m] has quit [Quit: killed]
chr0ma[m] has quit [Quit: killed]
johnazoidberg[m] has quit [Quit: killed]
flip[m] has quit [Quit: killed]
grahamc[m] has quit [Quit: killed]
atemu12[m] has quit [Quit: killed]
j0hax[m]1 has quit [Quit: killed]
mattock[m] has quit [Quit: killed]
rigola[m] has quit [Quit: killed]
yoctocell[m] has quit [Quit: killed]
boogiewoogie[m] has quit [Quit: killed]
focalluna[m] has quit [Quit: killed]
das-g[m] has quit [Quit: killed]
CRTified[m] has quit [Quit: killed]
j0hax[m] has quit [Quit: killed]
init_6 has quit [Quit: killed]
jojosch|Johannes has quit [Quit: killed]
sreybastien[m] has quit [Quit: killed]
printfn[m] has quit [Quit: killed]
hmpffff[m] has quit [Quit: killed]
SourOatMilk[m] has quit [Quit: killed]
hazel[m] has quit [Quit: killed]
lorencio[m] has quit [Quit: killed]
regnat has quit [Quit: killed]
Niobium[m] has quit [Quit: killed]
gsals[m] has quit [Quit: killed]
timokau[m] has quit [Quit: killed]
octowan[m] has quit [Quit: killed]
TheSirC[m] has quit [Quit: killed]
lina[m] has quit [Quit: killed]
wlan42[m] has quit [Quit: killed]
omasanori[m] has quit [Quit: killed]
betty[m] has quit [Quit: killed]
tskc[m]1 has quit [Quit: killed]
alj[m] has quit [Quit: killed]
AutonomouseAndro has quit [Quit: killed]
trepetti[m] has quit [Quit: killed]
oopisthedevil[m] has quit [Quit: killed]
twelvecorporatet has quit [Quit: killed]
ks2048[m] has quit [Quit: killed]
Aljosha[m] has quit [Quit: killed]
keving has quit [Quit: killed]
id[m] has quit [Quit: killed]
mathyouguy has quit [Quit: killed]
slby[m] has quit [Quit: killed]
adray has quit [Quit: killed]
faya01[m] has quit [Quit: killed]
quidome[m] has quit [Quit: killed]
Jake[m] has quit [Quit: killed]
slabity has quit [Quit: killed]
spazzpp2[m] has quit [Quit: killed]
marcus[m]2 has quit [Quit: killed]
derrecklowe[m] has quit [Quit: killed]
ehmry[m]1 has quit [Quit: killed]
ice7[m] has quit [Quit: killed]
shu9[m] has quit [Quit: killed]
lily[m] has quit [Quit: killed]
Notkea[m] has quit [Quit: killed]
symphorien[m] has quit [Quit: killed]
alaskacanyon[m] has quit [Quit: killed]
nikola[m] has quit [Quit: killed]
aquarial has quit [Quit: killed]
matthewbauer has quit [Quit: killed]
georg[m] has quit [Quit: killed]
eddyb has quit [Quit: killed]
mukayu[m] has quit [Quit: killed]
alexfmpe has quit [Quit: killed]
zoickx[m] has quit [Quit: killed]
tinamus[m] has quit [Quit: killed]
Leira[m] has quit [Quit: killed]
Hayden[m] has quit [Quit: killed]
brianh[m] has quit [Quit: killed]
j4m3s[m] has quit [Quit: killed]
badmutex[m] has quit [Quit: killed]
Jan-HenrikBruhn[ has quit [Quit: killed]
dbg[m] has quit [Quit: killed]
AberDerBart[m] has quit [Quit: killed]
syntaxtree[m] has quit [Quit: killed]
pjhenning[m] has quit [Quit: killed]
zrsk[m] has quit [Quit: killed]
bpye has quit [Quit: killed]
scratch171[m] has quit [Quit: killed]
Addison[m] has quit [Quit: killed]
snackoverflow[m] has quit [Quit: killed]
benmkw[m] has quit [Quit: killed]
kaiha[m] has quit [Quit: killed]
sirreal[m] has quit [Quit: killed]
kuramashinobi13[ has quit [Quit: killed]
MaJoe[m] has quit [Quit: killed]
d8d910[m] has quit [Quit: killed]
cutuchiqueno[m] has quit [Quit: killed]
ongy[m] has quit [Quit: killed]
bennofs[m] has quit [Quit: killed]
Poscat[m] has quit [Quit: killed]
grin[m] has quit [Quit: killed]
manu12[m] has quit [Quit: killed]
rycee has quit [Quit: killed]
norbert[m] has quit [Quit: killed]
koschitzky[m] has quit [Quit: killed]
Akshay[m]1 has quit [Quit: killed]
michaelpj has quit [Quit: killed]
ma27[m] has quit [Quit: killed]
rnhmjoj has quit [Quit: killed]
hpfr has quit [Quit: killed]
balsoft has quit [Quit: killed]
stites[m] has quit [Quit: killed]
utdemir[m] has quit [Quit: killed]
porphyrogenetos has quit [Quit: killed]
daddy_james[m] has quit [Quit: killed]
Dandellion has quit [Quit: killed]
joey_tribbiianii has quit [Quit: killed]
hanckmann[m] has quit [Quit: killed]
khassanov[m] has quit [Quit: killed]
bohan[m] has quit [Quit: killed]
nh2[m] has quit [Quit: killed]
ngerstle[m] has quit [Quit: killed]
noderunner[m] has quit [Quit: killed]
neonfuz2 has quit [Quit: killed]
feffe[m] has quit [Quit: killed]
dihydrogenmonoxi has quit [Quit: killed]
joschi has quit [Quit: killed]
Julien[m] has quit [Quit: killed]
alexherbo2[m] has quit [Quit: killed]
felixfoertsch has quit [Quit: killed]
allsyed[m] has quit [Quit: killed]
epitron[m] has quit [Quit: killed]
haslersn has quit [Quit: killed]
HumanJohn[m] has quit [Quit: killed]
lblasc[m] has quit [Quit: killed]
jlv has quit [Quit: killed]
l-as has quit [Quit: killed]
sjn[m] has quit [Quit: killed]
AmitLevy[m] has quit [Quit: killed]
maralorn has quit [Quit: killed]
Soarin[m] has quit [Quit: killed]
jolix[m] has quit [Quit: killed]
Rian[m] has quit [Quit: killed]
Louis[m]2 has quit [Quit: killed]
pachumicchu has quit [Quit: killed]
shider[m] has quit [Quit: killed]
pinion[m] has quit [Quit: killed]
hienergy[m] has quit [Quit: killed]
tyrion-mx has quit [Quit: killed]
ggpeti[m] has quit [Quit: killed]
dxb[m] has quit [Quit: killed]
aniketd[m] has quit [Quit: killed]
aflatter[m] has quit [Quit: killed]
ZerataX has quit [Quit: killed]
nilsirl[m] has quit [Quit: killed]
greymalkin has quit [Ping timeout: 264 seconds]
greymalkin has joined #nixos
fendor has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
<benschza>
Does anyone have an example of overriding `buildPythonPackage` to disable all Python package tests? Here's a WIP, but it's failing with "value is a function while a set was expected": https://gist.github.com/BenSchZA/67f2431fa8eb6f5fa01ac2022a33dead
<adisbladis>
benschza: buildPythonPackage is a function, not a derivation
<adisbladis>
So you cannot override it like that
<adisbladis>
You could wrap the function
malook has joined #nixos
malook has quit [Client Quit]
<benschza>
Thanks adisbladis. So there is a way to wrap the function and have it applied to all Python packages that use it? I'll see if I can find an example.
<{^_^}>
[nixpkgs] @zowoq pushed commit from @danieldk to master « gocode-gomod: add vendorSha256 »: https://git.io/JJb78
aborsu_ has joined #nixos
mariatsji has quit [Ping timeout: 264 seconds]
aborsu has quit [Ping timeout: 246 seconds]
aborsu_ is now known as aborsu
<benschza>
zarkone - you can have different channels, for example nixpkgs-unstable, and selectively install from different channels e.g. `nix-env -iA nixpkgs-unstable.firefox` after having added the relevant channel.
waleee-cl has joined #nixos
smatting_ has quit [Ping timeout: 260 seconds]
<zarkone>
benschza: oh, got it -- this sounds like an easiest way, thanks!
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
turion has quit [Quit: Leaving.]
<energizer>
zarkone: you probably want an overlay
<{^_^}>
[nixpkgs] @FRidh merged pull request #95553 → maintainers: prefix number with underscore → https://git.io/JJdC0
malik has quit [Remote host closed the connection]
bahamas has quit [Ping timeout: 246 seconds]
la-jesystani has quit [Ping timeout: 256 seconds]
ScottHDev has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
<blub>
@ScottHDev sorry I left yesterday. I saw in the logs, that you asked for me.
<ScottHDev>
Yep
dongcarl has joined #nixos
mounty has joined #nixos
<ScottHDev>
Let me connect on my PC and I'll give you the expression
ScottHDev has quit [Quit: Quit]
<nerdypepper>
i read about nix-shell --pure sourcing ~/.bashrc, how does PS1 get overwritten?
ScottHDev has joined #nixos
mariatsji has joined #nixos
<ScottHDev>
@blub I had to patch the wscript to give it the right mkspecs paths and had to manually configure some libraries in conf.env variable.
<blub>
@ScottHDev I'm happy if I can just build It. Thank you very much!
<ScottHDev>
If you just want to build and don't really care of the expression then I suggest that I had the package to my nur repo and you'll be able to get it from there. (Easier to maintain for me)
<ScottHDev>
*I add
mariatsji has quit [Ping timeout: 246 seconds]
<blub>
@ScottHDev sounds good
<ScottHDev>
Ok, let's do that.
<asbachb>
Mic92: Worked that way. But the binary is not on path.
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has quit [Read error: Connection reset by peer]
bahamas has quit [Quit: Lost terminal]
<elvishjerricco>
I set my screen locker to stop picom before starting xsecurelock because xsecurelock is incompatible with it (technically so is every screenlocker but xsecurelock is the only one that acknowledges it).
dongcarl has joined #nixos
<elvishjerricco>
But sometimes I come back to my desktop and find xsecurelock displaying its warning message that it's not compatible with the compositor
<elvishjerricco>
And checking journalctl, picom started hours ago seemingly on its own
mariatsji has quit [Ping timeout: 246 seconds]
genevino has quit [Quit: Great minds discuss ideas. Average minds discuss events. Small minds discuss people.]
<maralorn>
elvishjerricco: Possible reasons: 1. dbus/socket trigger, 2. a timer, 3. an automatic update that enabled installed services, 4. some weird script you forgot about.
<{^_^}>
[nixpkgs] @mweinelt merged pull request #95708 → Bump a few packages related to the Matrix ecosystem → https://git.io/JJbfW
<maralorn>
I give them a probability distribution of 50,10,20,5 missing probability accounts for the fact that it could be something else.
<elvishjerricco>
maralorn: `systemd-analyze --user dot picom.service` only shows `graphical-session.target` and `shutdown.target` depending on `picom.service`, which I think means it's not a systemd socket or timer
<elvishjerricco>
I don't have automatic updates enabled
<elvishjerricco>
And grepping my dotfiles repo, there's no scripts mentioning picom except the aforementioned screen locker logic
fnlaai has joined #nixos
<fnlaai>
@atemu
dongcarl has quit [Read error: Connection reset by peer]
<infinisil>
nij: You can verify that it's running with `pgrep xcape`
<nij>
I didn't put ${pkgs... but only xcape
<nij>
should I change `xcape` to `{pkg... /xcape` too?
<siraben>
Hi all, I'm trying to build https://github.com/NilsIrl/MozWire with cargo2nix but I get the following error when I try to run nix-build
<infinisil>
Won't hurt
<siraben>
error: anonymous function at /nix/store/a0jvrcclgc1mv3b40qn23l2sfzk13aas-source/overlay/mkcrate.nix:11:1 called with unexpected argument 'hostPlatformCpu', at /nix/store/jg2zdx4sbfvq0i8bb99j85rw2r6pkcvp-nixos-20.09pre237606.b50ef9afa11/nixos/lib/customisation.nix:69:16
<siraben>
(use '--show-trace' to show detailed location information)
<nij>
infinisil: thanks! lemme try it but i'll have to log out
<siraben>
I followed the tutorial and have a Cargo.nix and a default.nix (which looks like http://ix.io/2ux1)
<nij>
thank you
nij has quit [Quit: leaving]
<siraben>
the cargo.nix file generated is 1800+ lines long
<Henson>
hi everyone. Can I use overlays to override a NixOS module configuration, or should I use disabledModules and import to bring in the replacement module configuration?
<srhb>
Henson: The latter.
<Henson>
srhb: ok, thanks!
<bqv>
niso: if you don't care about the rest, try --recreate-lock-file, which will update all inputs not locked by some other lock file
<niso>
bqv: thanks, but i do, i don't want to rebuild the cache each time i update a module
mariatsji has joined #nixos
<niso>
bqv: good idea though
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mariatsji has quit [Ping timeout: 264 seconds]
<srhb>
It is a bit of a pain that there's no way (that I can see) to express sweeping changes across inputs. I'd like to be corrected. :)
azure1 has quit [Read error: Connection reset by peer]
<srhb>
Maybe through indirection through some other flake..
azure1 has joined #nixos
<niso>
agree, another thing which is somewhat pain is that there is only one flake allowed per repo (as of right now)
karetsu has quit [Quit: WeeChat 2.9]
sangoma has quit [Ping timeout: 256 seconds]
<srhb>
Strangely that doesn't bother me as much, maybe I just don't have the imagination to see why I'd want more than one.
dongcarl has quit [Read error: Connection reset by peer]
<niso>
srhb: i just stumbled uppon a usecase: i have a module for monitoring, i'm provisioning grafana with it. Now, i'd also like to add an executable, which opens the provisioned grafana dashboard for me, which requires A) a module B) a package which can be added in the module
azure1 has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
azure1 has joined #nixos
Dr8128 has joined #nixos
<srhb>
niso: And you don't want to have your flake output be an attrset of { package = ...; module = ...; } ?
<niso>
srhb: i'm not sure if i understand you correctly, lemme show you an example to make sure we are on the same page
<CRTified[m]>
Hi, does anyone know whether there is a project to build a rpi zero image on an x86 host? I'm basically looking for this, but with newer nixpkgs https://github.com/illegalprime/nixos-on-arm
<niso>
bqv: alright, by chance the exact challenges which prevent it as-of-now are somewhere documented?
<bqv>
not that i know of
<bqv>
perhaps make an issue on nixos/nix if you want eelco's direct opinion
<Mic92>
hexa-: sometimes I feel stalked :) That was less than 20s
dongcarl has quit [Read error: Connection reset by peer]
brianh[m] has left #nixos ["User left"]
<niso>
bqv: guess i'll play a little bit longer with it first, maybe i'm just missing something
dongcarl has joined #nixos
<redmp>
alternative to my last question above, should i attempt to regenerate a local haskell package set in my local nixpkgs?
<hsngrmpf[m]>
how to fetch a tarball containing a single binary file? I cannot figure it out. If i do an `ls -l` inside `postFetch` of fetchurl, I cannot see the file.
<selfsymmetric-mu>
If so, could you take a look at my findings and see if it warrants a re-open? Thank you!
<selfsymmetric-mu>
TLDR: I found a performance regression between `pkgs.emacs` and `pkgs.emacsUnstable` that is not apparent on non-Nix builds of Emacs 27.1.
mariatsji has quit [Remote host closed the connection]
<vika_nezrimaya>
What the heck is with Nixpkgs? error: value is a string while a set was expected, at /nix/store/lp7yhxfnljkm5qhmb9cv93aivrfpfpwm-source/lib/modules.nix:312:25
ManiacOfMadness` has joined #nixos
smatting_ has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
<vika_nezrimaya>
It's revision 1e3f09feaa5667be4ed6eca96a984b4642420b83, seemingly the latest unstable channel?!
<vika_nezrimaya>
why doesn't it evaluate properly?...
dongcarl has joined #nixos
ManiacOfMadness has quit [Ping timeout: 265 seconds]
<judson>
I was looking to activate buildkit systemwide in Docker which leads me to wonder: why does virtualisation.docker not manage docker/daemon.json?
<vika_nezrimaya>
Maybe because all of these options it has are passed through CLI arguments to Docker daemon?
jb55 has joined #nixos
slack1256 has joined #nixos
<judson>
buildkit enable AFAICT has to be done either in the `docker build` environment or in the daemon.json
endformationage has joined #nixos
noudle has quit []
<chkno>
Moving to flakes: Are "nix-env -riA nixos.userPackages" and "nix build --profile /nix/var/nix/profiles/per-user/$USER/profile .#userPackages" equivalent? Specifically, is there any other magic nix-env does that I'll be sad to loose if I switch to "nix build --profile" ?
<vika_nezrimaya>
chkno: I don't think you'll lose anything, they're exactly the same as far as I'm concerned.
<vika_nezrimaya>
Your ~/.nix-profile links to your profile in /nix/var/nix/profiles/per-user/chkno/profile so when you change it, your ~/.nix-profile will reflect the change
noogie has quit [Read error: Connection reset by peer]
<vika_nezrimaya>
I don't think there's a lot of magic inside nix-env
noogie has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
<bqv>
vika_nezrimaya: its probably one of your modules, not nixpkgs
<vika_nezrimaya>
Hm, I did add a module into my flake
mallox has quit [Quit: WeeChat 2.9]
<vika_nezrimaya>
But it's weird that it does this
<bqv>
Module errors are weird
<vika_nezrimaya>
I'd expect Nix to throw an error tracing back to my module
<vika_nezrimaya>
Not a random error in Nixpkgs source
<bqv>
Nah, cause evalModules
dongcarl has quit [Read error: Connection reset by peer]
<bqv>
Its ..messy
<vika_nezrimaya>
Maybe we need more facilities for reflection in Nix language? so it could print sensible tracebacks
dongcarl has joined #nixos
<bqv>
I don't think it's a language restriction, more just the crazy way modules are implemented
<niso>
uhm, which kind of flake output would i use with nixops? nixosConfigurations?
<vika_nezrimaya>
Wait. I stashed all the changes and now my flake doesn't evaluate?! I think it was evaluating before
user_0x58 has quit [Remote host closed the connection]
<vika_nezrimaya>
niso: nixopsConfigurations.default is the output you should use
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
user_0x58 has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
cjpbirkbeck has joined #nixos
<niso>
vika_nezrimaya: thanks!
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<chkno>
vika_nezrimaya: thanks!
<vika_nezrimaya>
<3
<bqv>
vika_nezrimaya: thanks!
<vika_nezrimaya>
bqv: ?
* bqv
just wanted to fit in :(
* vika_nezrimaya
hugs bqv
<bqv>
:p
<vika_nezrimaya>
don't worry, you're ok, we're all helping each other constantly
user_0x58 has quit [Remote host closed the connection]
user_0x58 has joined #nixos
<bqv>
vika_nezrimaya: btw stashing might revert the files in slightly the wrong order, and the flake lock might get updated again, I think
<vika_nezrimaya>
wtf
<vika_nezrimaya>
I mean, my flake was evaluating when I commited it last time
<vika_nezrimaya>
at least I remember it evaluating?...
<bqv>
Just check your index is still clean
<niso>
with flakes enabled, does tab complete work on your systems? (on bash)
<niso>
as in: nix build<TAB>
xlei has joined #nixos
<bqv>
I don't use bash/fish/zsh
<bqv>
So no :p
<niso>
bqv: what do you use?
<bqv>
Emacs, unless I'm feeling sinful, then I go xonsh
<niso>
i see
redmp has quit [Ping timeout: 265 seconds]
aborsu has joined #nixos
ManiacOfMadness` has quit [Read error: No route to host]
dongcarl has quit [Read error: Connection reset by peer]
<vika_nezrimaya>
Maybe it's time to finally refactor my whole system, yay!!!
<nature>
Hi, I am having some trouble creating my own derivation and I think it's due to the fact that the makefile assume a standard linux directory structure, unfortunately I am still not familiar enough with nixos to figure it out on my own, so if anybody would be kind enough to give me a hand here, I would highly appreciate it
<adam_>
I am trying to migrate a Python project from a requirements.txt to a shell.nix and am having some issues
<adam_>
Has anybody gone through this before?
<bqv>
adam_: try poetry
<bqv>
It helps
<vika_nezrimaya>
requirements.txt is fine, and you can use virtualenvs with NixOS
<vika_nezrimaya>
except you have to rebuild them if your Python closure updates...
<bqv>
Not with poetry :)
<vika_nezrimaya>
what is poetry anyway? fancy words and I don't get the meaning behind them :3
<vika_nezrimaya>
I've heard it's a build tool or something
<vika_nezrimaya>
something something PEP 518 pyproject.toml something something
<bqv>
It's a form of short story characterized by short lines /s
<vika_nezrimaya>
:D
<bqv>
Its just a build tool yeah
<bqv>
I haven't used it much
<adam_>
so you all use virtualenvs?
<vika_nezrimaya>
I do
<bqv>
But its definitely an improvement
<adam_>
I was hoping I could just specify a nix.shell
<adam_>
I used python38Packages as my buildInputs
<bqv>
I use virtualenvs unless its something I can control
<adam_>
but some packages were missing
<bqv>
Then I'd use poetry
<vika_nezrimaya>
I find nix-shell... a bit lacking in terms of python packages I need
<adam_>
I tried creating a buildPythonPackage
<vika_nezrimaya>
but I use it to set up build dependencies for my virtualenvs
<sadmin>
When you use virtualenv with nix, are you having pip install packages in that env and nix just supplies the base interpreter?
<adam_>
I want to make sure I'm doing things the "nix" way
<vika_nezrimaya>
since SOME of them require C libraries
<adam_>
but so it sounds like you all just use the existing python package managers?
<bqv>
I wouldn't bother trying to limit yourself to packages already in nixpkgs
<vika_nezrimaya>
what's a python package manager
<simpson>
adam_: Python makes doing things our way kind of tricky. Imagine a hard line between the packages that Nix provides and the packages that you'll install in a virtualenv.
<adam_>
okay, i'll try that, thanks!
<simpson>
That said, I've converted a package from a requirements.txt to a default.nix, so it's definitely possible.
<adam_>
so you use virtualenv in your nix-shell, and then use dir-env to switch into the environment when you enter the directory
<bqv>
Now node, on the other hand…
<{^_^}>
[nixpkgs] @vcunat pushed to master « Revert "Merge #94880: thunderbird: enable branding by default" »: https://git.io/JJNcB
<vika_nezrimaya>
I use setup.py, requriements.txt and just do python -m venv && . venv/bin/activate && nix-shell -p stdenv <some other libraries> --run pip install -r requirements.txt
<adam_>
simpson: can you talk more about that? I kindof want to learn how to do that. Since i'm assuming once I learn how to package things it will transfer to other languages
<bqv>
Podman I can just about live with, but I don't need another commercialised daemon
<adam_>
but the challange is when i'm building stackify, it seems to require protobuf. I specified protobuf in the propagated build inputs, but I think stacify put a protobuf==3.9.1 and that doens't match the version in the nixpkgs
<adam_>
nixpkgs has 3.12.1
<adam_>
but I can't modify that packages requirements.txt to use >=3.9.1
<vika_nezrimaya>
adam_: and that's why I don't generally rely on Nixpkgs for my python modules
<simpson>
adam_: I assure you that you *can* modify it; use sed in patchPhase to fix up naughty/wrong requirements.
<adam_>
so I was thinking I have to package my own version of protobuf as well, which is pinned to that version
Spiney has joined #nixos
<adam_>
but I'm not sure how to pin package versions with buildPythonPackages
<adam_>
I guess I can specify the sha256? but how does fetchPypi know which version to grab
<vika_nezrimaya>
version?
<joesventek>
So how unstable is "unstable" actually? Is it akin to something like Arch Lunix and usable as a daily driver or are regular issues expected?
<simpson>
nixpkgs versions are hardcoded. We don't allow the flexibility of trying to constraint-solve for suitable versions.
<adam_>
fair enough haha
<adam_>
i'll try modifying the version and see if that works
<vika_nezrimaya>
joesventek: Usable as a daily driver. Unstable is fairly stable
<adam_>
if all else fails i'll fall back to virtualenv
<vika_nezrimaya>
And running out of git checkout is THE REAL unstable
<bqv>
Arch looni@
<adam_>
but I want to learn the nix way first before giving up
<vika_nezrimaya>
because no tests and you might be ahead of hydra which means that binary cache is a bit lacking in derivations to be substituted frmo
<bqv>
adam_: python is probably the worst thing to learn nix with
<vika_nezrimaya>
I personally use unstable for more than a year and I'm fine
<vika_nezrimaya>
For some of that time I was even running out of a Git checkout
<joesventek>
I guess I just have to try for myself.
<vika_nezrimaya>
Definitely try it! It's fun!
<adam_>
simpson: thats pretty sneaky, I might try that!
dongcarl has quit [Read error: Connection reset by peer]
<vika_nezrimaya>
I kind of like ES6 modules in JavaScript. You can import 46 version by URL concurrently and they won't conflict (if they're well written and don't pollute the global environment, which they shouldn't do)
sangoma has quit [Ping timeout: 256 seconds]
dongcarl has joined #nixos
<vika_nezrimaya>
It's kinda the same in NixOS, you can have 46 versions of a single program and they'll never conflict
<vika_nezrimaya>
Except Nixpkgs doesn't have 46 versions of a single package
<vika_nezrimaya>
(nobody said you can't import 46 Nixpkgs revisions though)
Dr8128 has joined #nixos
<bqv>
I abuse that in my flake currently. I import two older versions of my flake to get working versions of programs, lol
<vika_nezrimaya>
I wonder why
<vika_nezrimaya>
Why don't you make the current versions of the flake to do that
<bqv>
Do what?
<vika_nezrimaya>
Run those working versions of programs
<vika_nezrimaya>
It's kinda weird that your flake is referencing a version of itself
<bqv>
My "pkgs" is so overlayed its just easier to have the one extra input, than to dig out a nixpkgs and whatever other inputs I need
<vika_nezrimaya>
Even though Nix can handle this just fine, my brain just goes red alert :3
<bqv>
Lmao
<bqv>
I found it amusing, at least
<niso>
uhm if i attempt to deploy a flake via nixops it tries to connect to root@inputs and root@outputs
<daddy_james[m]>
I keep experiencing random crashes and I don't even know where to start. Can anyone provide some insight to which log files might be most likely to contain useful info?
<vika_nezrimaya>
Ok this is weird. I traced this weird error to one of my custom modules being incorrect...
<bqv>
Called it
<niso>
vika_nezrimaya: which nixops version do you use for deploying flakes? current master? or flake-support branch?
<vika_nezrimaya>
My own fork of it
<daddy_james[m]>
how would I find the old files? My computer crashes and it looks like they get overwritten by the new logs at boot
<vika_nezrimaya>
based on the flake-support branch
<daddy_james[m]>
<daddy_james[m] "how would I find the old files? "> I'm going to search them anyway, I don't actually think it cleared them probably just appended a bunch of stuff to them
<niso>
vika_nezrimaya: own fork because flake-support isn't stable? or due to other reasons?
<vika_nezrimaya>
Personal reasons
<vika_nezrimaya>
I've added some features on top of flakes there
<bqv>
I just think of it as a collection of { _module, imports, options, config } with some syntax sugar, where options is a tree of options, and config is a (function returning a) tree of things using options
jared-w has quit [Ping timeout: 260 seconds]
lally has quit [Ping timeout: 260 seconds]
philipcristiano has quit [Read error: Connection reset by peer]
noonien has joined #nixos
vdemeester has quit [Read error: Connection reset by peer]
ctp has quit [Read error: Connection reset by peer]
joshmeredith has quit [Read error: Connection reset by peer]
s1341 has quit [Read error: Connection reset by peer]
nz_ has quit [Read error: Connection reset by peer]
<bqv>
Imports is obvious and _module is weird
mitsuhiko has quit [Read error: Connection reset by peer]
alanz_ has quit [Read error: Connection reset by peer]
sorear has quit [Read error: Connection reset by peer]
davetapley has quit [Read error: Connection reset by peer]
cvlad- has quit [Read error: Connection reset by peer]
ryjm has quit [Read error: Connection reset by peer]
SrPx has quit [Read error: Connection reset by peer]
<joesventek>
OK. Upgrading to unstable was kinda painless. Let's see how it goes.
<vika_nezrimaya>
Last time I switched versions I had to modify my fontconfig config, because the fonts were a bit funky
waleee-cl has joined #nixos
bradparker has quit [Ping timeout: 244 seconds]
<vika_nezrimaya>
I wonder how and why VSCode extensions always download first with home-manager...
<joesventek>
I don't notice any changes in font rendering.
mitsuhiko has joined #nixos
<vika_nezrimaya>
That was more than a year ago
<vika_nezrimaya>
Right now it's of course merged in stable
etrepum has joined #nixos
SrPx has joined #nixos
<joesventek>
I see
sorear has joined #nixos
aristid has quit [Ping timeout: 246 seconds]
<bqv>
Pizza on it's way…
lally has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has quit [Read error: Connection reset by peer]
<dminuoso>
You dont need that
<matthuszagh>
is there any documentation on what the flake outputs are supposed to be? I saw this: https://zimbatm.com/NixFlakes/, which was very helpful, but while it seems to list everything, doesn't describe it all
<bogdb>
ok it looks like after some upgrade i switched to systemd-boot and forgot
growpotkin has joined #nixos
bogdb has quit [Remote host closed the connection]
sputny has quit [Ping timeout: 244 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iwq>
is there a way to accept input in nix (the language) at runtime? something like a scanf in C
bogdb has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
eoli3n_ has quit [Ping timeout: 240 seconds]
dongcarl has joined #nixos
bogdb has quit [Quit: Leaving]
<zimbatm>
matthuszagh: just replied in discourse
<zimbatm>
there is no official documentation yet
<zimbatm>
all of this is highly experimental so it might also change in the future
iqubic has quit [Ping timeout: 264 seconds]
Darkmatter66_ has joined #nixos
bennofs has joined #nixos
Darkmatter66 has quit [Ping timeout: 260 seconds]
bennofs has quit [Client Quit]
<matthuszagh>
zimbatm: thanks for that reply!
troydm has quit [Ping timeout: 256 seconds]
nDuff has joined #nixos
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
mariatsji has quit [Remote host closed the connection]
cmk_zzz has joined #nixos
bennofs has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
<pbogdan>
somewhat related question: if I were to use flakes' overlay(s) to expose some packages how does that compare to just using / importing overlays directly?
dongcarl has joined #nixos
CodeSpelunker has quit [Quit: CodeSpelunker]
<pbogdan>
I don't understand it all very well but they would be evaluated in the caller's context so the benefits of being self-contained and hermetic don't exactly apply anymore
<pbogdan>
or am I thinking about this in the wrong way?
<matthuszagh>
pbogdan: i'm no expert but i don't think that's correct. i believe they should be the same unless you explicitly override the flake input
thc202 has quit [Ping timeout: 244 seconds]
<pbogdan>
if the overlay uses self / super those will not come from its own inputs, no?
<bqv>
super will contain the end result
<matthuszagh>
oh yeah well shows how much i know. i though self contained the end result...
<matthuszagh>
thought**
<matthuszagh>
isn't that the rational for the alternative names `final: prev`?
<bqv>
yeah
<bqv>
i've started using those more often (kinda have to, because flakes)
<dxb[m]>
i have a package installed that comes with some files that need to be passed to the main executable at runtime. i was able to find the file in the nix store and can pass it with the full path, but is there an easier way to reference that path so i don't have to worry about its real full path?
<nij>
slabity: Yes actually I was using home-manager for the text-based rc file.
<nij>
slabity: But I want to include other files as well.. can home-manager help me on that?
bennofs has joined #nixos
JWK has joined #nixos
<nij>
so instead of ..."ranger".text = readFile "/home/me/config/ranger.rc" I'd like
<nij>
I found this example somewhere on github! Seems what I want!
<nij>
in this case if I change the content of wallpaper.png and run `nixos-rebuild switch` would it sense the difference?
<magnetophon>
It seems current nixos-unstable has a broken gst-plugins-base. How come that is not part of the success conditions?
<JWK>
Is there a way to have stdenv.mkDerivation ignore a reference upon building runtime dependencies? For some reason rust binaries pull in rust compiler although it's not really necessary.
dsg has joined #nixos
ScottHDev4 has quit [Quit: Ping timeout (120 seconds)]
ScottHDev4 has joined #nixos
ninjin_ has quit [Remote host closed the connection]
meh` has quit [Remote host closed the connection]
ninjin_ has joined #nixos
fendor has joined #nixos
<redmp>
how can i tell what dependency is pulling in a package that fails to buildL
<redmp>
*?
<redmp>
is it something like `nix-store -q --references <store-path>`?
<iwq>
why does `nix eval --raw 'nixpkgs.hello'` work but `nix eval --raw '(nixpkgs.hello)'` says nixpkgs is an undefined variable?
<iwq>
is there a way I can use it as a variable?
adam_ has joined #nixos
<adam_>
I am using python38.pkgs.buildPythonPackage and am having an issue packaging up jaxlib
<adam_>
I specified the version and the sha256, and it looks like things are going okay
<adam_>
however, then when it tries to build it says error: cannot download jaxlib-0.1.52.tar.gz from any mirror
<adam_>
The requested URL returned error: 404
<adam_>
however, when I actually go to pypi and search for jaxlib, I look at the downloads, and wget it manually, and it works just fine
<adam_>
Any thoughts?
__monty__ has quit [Quit: leaving]
<adam_>
Is there a way to specify the url/mirror it will try and use?
<{^_^}>
[mobile-nixos] @samueldr opened pull request #194 → nixos-disintegration: Remove the disabled `showManual` option → https://git.io/JJNzR
<{^_^}>
[mobile-nixos] @samueldr pushed 3 commits to master: https://git.io/JJNzP
bennofs has quit [Client Quit]
<jared-w>
Has anyone setup a project with iohk's haskell.nix and then managed to create a minimal docker image with the dockerTools that actually allows you to build said project? I keep getting ld linker errors with `-lnuma`, no matter what weird incantations I try to put in there
shah^ has joined #nixos
mariatsji has quit [Ping timeout: 240 seconds]
ericsagnes has quit [Ping timeout: 264 seconds]
magnetophon has quit [Read error: Connection reset by peer]
<_habnabit>
so, if i want to use only a small set of packages from nixpkgs-unstable and everything else from nixos-20.03, is an overlay the right way to do that? e.g. self: super: { with (import /path/to/unstable-checkout); whateverpkg = pkgs.whateverpkg; } ?
<{^_^}>
[nixpkgs] @maralorn opened pull request #95771 → [haskell-updates] haskellPackages.cuda: Mark as unfree because of deps → https://git.io/JJNrs
philr has joined #nixos
<samueldr>
it is one way to do so, but using it this way with a dependency to another software may produce unexpected rebuilds
<samueldr>
e.g. if you were to pick libpng that way
<samueldr>
so prefer "leafy" attributes if you can
JWK has quit [Remote host closed the connection]
<_habnabit>
samueldr, right; the packages in question don't have any runtime deps
JWK has joined #nixos
<samueldr>
or the other way around? no packages depends on those? :)
<_habnabit>
samueldr, yeah they're entirely standalone. the one benefit of golang, i guess
<energizer>
btw { inherit (foo) bar baz; } is sugar for { bar = foo.bar; baz = foo.baz; }
ericsagnes has joined #nixos
<_habnabit>
samueldr, though, i thought that by using an overlay, anything that did depend on whateverpkg would pull in the new version
<samueldr>
A depending on B depending on C, if you replace C, and need A, A needs B(with new C), so this makes (A(with new B(with new C)))
orivej has quit [Ping timeout: 256 seconds]
noonien has quit [Quit: Connection closed for inactivity]
<samueldr>
and it's unlikely to match what was already built as A and B here come from (I presume) your stable channel, but C from unstable
<_habnabit>
samueldr, ok yes that's what i suspected/hoped
<_habnabit>
samueldr, it _shouldn't_ cause any rebuilds, but if it does, the state of the system that it uses at least won't have the old C in it ever
<samueldr>
unlikely, yeah
<_habnabit>
samueldr, but are overlays the right way to do that? that's my question, i suppose
<grfn>
is there some way out there to install nix in an uninteractive, unattended way?
<samueldr>
if you just want to use them e.g. in systemPackages, you don't need to go through overlays
<grfn>
ideally as root?
<samueldr>
but if you want them to be available from e.g. nix-shell -p, then it's one way
<samueldr>
grfn: nixos-install with --no-root-passwd
stephaneyfx_ has joined #nixos
<samueldr>
though that's not totally unattended
<grfn>
samueldr: nix, not nixos
<_habnabit>
samueldr, yeah, ideally, i don't want the system to ever consider the old packages in any context except through extreme chicanery
stephaneyfx has quit [Read error: Connection reset by peer]
adam_ has quit [Quit: Lost terminal]
<samueldr>
grfn: oops
<grfn>
:)
<Mic92>
grfn: the github action does this more or less?
<grfn>
Mic92: sick, nice. that's exactly the kind of thing I was looking for
<redmp>
hi clever, i set up a host using nixops following https://github.com/NixOS/nixops/issues/1189 but it seems that doing things that way breaks system.autoUpgrade.enable
<{^_^}>
nixops#1189 (by cleverca22, 1 year ago, open): plan for supporting custom partition layouts and custom FS's on any backend
la-jesystani has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<bqv>
#93659 could do with some love, if anyone fancies being awesome
<matthuszagh10>
i shut myself out of nixos by setting mutableUsers = false and setting password from a file, but i accidentally left a newline at the end of the file
<matthuszagh10>
so i can't log in
<matthuszagh10>
anyone know if it's possible to enter a newline character at the password prompt?
<colemickens>
matthuszagh10: can you boot an old generation?
<bqv>
boot with init=/bin/bash
<bqv>
or, an older gen, yeah
<matthuszagh10>
colemickens: that's what i tried first, but strangely it wouldn't let me login
<qyliss>
you probably mean /bin/sh :)
<bqv>
is bash not linked too?
<iwq>
is enableParallelBuilding false or true by default?
<bqv>
my bad, yeah /bin/sh
<qyliss>
bqv: no, only /bin/sh and /usr/bin/env
<matthuszagh10>
iwq: i think so
<bqv>
apparently i'd manually linked bash on a previous generation
<matthuszagh10>
does that affect it?
<iwq>
matthuszagh10: do you mean you think it's false by default or true by default?
<matthuszagh10>
iwq: sorry i think i responded to the wrong thing
<matthuszagh10>
bqv: how do i do that? edit the kernel parameters for the menu entry?
<matthuszagh10>
also why would i be locked out of an older gen
<matthuszagh10>
?
<bqv>
press e
<matthuszagh10>
yep ok got it
<matthuszagh10>
thanks
<matthuszagh10>
i had mutableusers = true before. is that causing the older gens to not work? seems strange
<bqv>
well your users no longer exist... that shouldn't be surprising
<bqv>
they weren't declarative in your older generation
justanotheruser has quit [Ping timeout: 272 seconds]
<_habnabit>
ok i think i'm a few levels deep into confused here. so my goal is to use the stock nixos-20.03 channel with a few overrides. i figured i didn't need to fork the git repo for that because it'll stagnate without constant maintenance. ok, so, the options are add e.g. nixos-unstable=... to NIX_PATH or make an overlay. the former is more difficult to manage with configuration.nix, it seems, so i went for the
<_habnabit>
latter. but the set returned from the overlay needs to be the built packages, not the derivations? this overlay fails during nixos-rebuild.. i can post that error, but i think my confusion probably starts earlier than that https://bpa.st/GJZA
sethetter_ has quit [Ping timeout: 240 seconds]
<simpson>
matthuszagh10: You probably will need to boot from rescue media, because of what bqv's pointed out: Your /etc got clobbered.
thoughtpolice has quit [Ping timeout: 244 seconds]
zot has quit [Ping timeout: 244 seconds]
eddyb[legacy] has quit [Ping timeout: 260 seconds]
midchildan has quit [Ping timeout: 244 seconds]
<bqv>
i dunno, it's probably salvageable from an emergency shell. create a new user with the same uid, etc
<matthuszagh10>
bqv: ok gotcha, thanks
nick_h has quit [Read error: Connection reset by peer]
terrorjack has quit [Ping timeout: 244 seconds]
nand0p has quit [Read error: Connection reset by peer]
pittma has quit [Read error: Connection reset by peer]
hamishmack has quit [Read error: Connection reset by peer]
Tritlo has quit [Read error: Connection reset by peer]
zimbatm has quit [Read error: Connection reset by peer]
dmj` has quit [Read error: Connection reset by peer]
sgraf has quit [Read error: Connection reset by peer]
scoates has quit [Read error: Connection reset by peer]
raboof has quit [Read error: Connection reset by peer]
chrisaw has quit [Read error: Connection reset by peer]
<matthuszagh10>
i seem to have no ls in this emergency shell...
visl has quit [Write error: Connection reset by peer]
steveeJ has quit [Ping timeout: 244 seconds]
<_habnabit>
bye irccloud
sam_w has quit [Ping timeout: 244 seconds]
gluegadget has quit [Ping timeout: 260 seconds]
<bqv>
oh, right yeah, stage2 hasn't run :p
<matthuszagh10>
so rescue media?
lvrp16 has quit [Read error: Connection reset by peer]
<bqv>
maybe just set a root password that you know so you can log in from an actual system?
<bqv>
or that. whichever's easier
mpickering has quit [Ping timeout: 240 seconds]
Tritlo has joined #nixos
<matthuszagh10>
hm yeah i don't have `passwd` or `useradd`
BlessJah has quit [Ping timeout: 265 seconds]
<simpson>
_habnabit: I'm not sure what you're building, but have you looked into overriding nix.nixPath in your configuration.nix? Or is that not enough?
sadmin has joined #nixos
<bqv>
matthuszagh: rather than "passwd", try /nix/store/*shadow*/bin/passwd
<bqv>
presumably there's only one result
<_habnabit>
simpson, i saw people arguing for and against nix.nixPath because it means having to do multiple stages of nixos-rebuild?? it sounded like a minefield i wanted to avoid
<bqv>
if not, pick one
<Cadey>
how do i build a VM image rootfs without wrapping it with a disklabel?
<simpson>
_habnabit: I guess. Easier IMO is to maintain a fork of nixpkgs! Because the typical fork consists of PRs not yet merged upstream, it's usually possible to keep a fork as a mere patchset and not a completely distinct entity.
<_habnabit>
simpson, i very much dislike the idea of having to do manual work to incorporate security updates from upstream
<simpson>
Cadey: IIRC blank disklabels act like no label at all? So you could just blank it. But I'm not sure.
sethetter_ has joined #nixos
chrisaw has joined #nixos
mpickering has joined #nixos
<matthuszagh10>
bqv: you were right about finding useradd, but for some reason `useradd -m nixos` just prints options
<matthuszagh10>
doesn't do anything
lvrp16 has joined #nixos
<Cadey>
actually, can you harvest partitions out of qcow images?
BlessJah has joined #nixos
<simpson>
_habnabit: This is entirely fair. But then the problem gets a little fuzzy. Like, what's the overlay even for, then? Just extra packages? Extra packages can be declared with a separate expression which doesn't live within nixpkgs but within configuration.nix.
terrorjack has joined #nixos
sam_w has joined #nixos
dmj` has joined #nixos
gluegadget has joined #nixos
<simpson>
(If the underlying problem is that you're compositing multiple overlays, then yeah, there's no alternative. Overlays are what they are.)
<_habnabit>
simpson, yes, extra packages, which i'm bringing in by hand from a newer nixpkgs
noudle has joined #nixos
<bqv>
matthuszagh: i'm not sure how useradd works, i rarely use it. maybe you could create the user in /etc/passwd directly
<_habnabit>
simpson, if i am going down this path, whether the derivations come from a newer nixpkgs or i define them by hand, i don't know how to turn the distributions into something that i can put into environment.systemPackages
<Raito_Bezarius>
Hi there, does anyone know if NixOS listen to ACPI requests in early boot, especially at LUKS unlocking phase?
<Raito_Bezarius>
Is there a way to make it listen?
sgraf has joined #nixos
visl has joined #nixos
zimbatm has joined #nixos
zot has joined #nixos
hamishmack has joined #nixos
thoughtpolice has joined #nixos
scoates has joined #nixos
<simpson>
_habnabit: You can stuff just about anything into environment.systemPackages. I don't want to just tell you to run unstable for a couple months until the next release, but the constraints here are tough.
greizgh has quit [Remote host closed the connection]
<iwq>
is there a pkgs.stdenv.mkDerivation that doesn't delete the cache when build fails? It's annoying for long builds
nick_h has joined #nixos
<Cadey>
simpson: how do i shuck off the disklabel from a .raw disk file?
<simpson>
iwq: nix-shell might be preferable for debugging builds, since you can manually invoke the buildPhase repeatedly.
<_habnabit>
simpson, i mean, unstable isn't even enough; i need to fork it to make changes anyway
mpiechotka has joined #nixos
<simpson>
Cadey: Good question; I don't know.
<Cadey>
i need the actual disk partition out of a file that has a disklabel and one partition in it
<simpson>
_habnabit: Sure. For me, this means a fork of nixpkgs, and branches for various machines and scenarios, with a constant focus on upstreaming as much stuff as possible. There's basically no other good way to get updates to critical packages like youtube-dl on an hour-by-hour basis.
vika_nezrimaya has joined #nixos
<vika_nezrimaya>
I JINXED IT!!!
<vika_nezrimaya>
I jinxed my computer!
<Cadey>
hmm
<vika_nezrimaya>
Now the fonts are messy
<Cadey>
simpson: how do i remove the first 512 bytes of a file?
<vika_nezrimaya>
The fonts are all messy but the WiFi is fixed
<vika_nezrimaya>
so I'm able to go on the internet
<vika_nezrimaya>
dd?
<simpson>
Cadey: I can't figure out how it's done exactly, but supposedly parted can operate on files. If not, you could loop-mount the disk-file.
<vika_nezrimaya>
parted? that's overkill
<vika_nezrimaya>
I think dd has a skip option
<vika_nezrimaya>
it should have
<Cadey>
vika_nezrimaya: tl;dr i'm trying to liberate a disk image from its disklabel
<vika_nezrimaya>
Oh, then parted isn't that much overkill
Rusty1 has joined #nixos
greizgh has joined #nixos
<simpson>
Cadey: I'd use my favorite general-purpose programming language to cut apart the disk file, at that point. But try parted first.
<vika_nezrimaya>
maybe your NixOS installation is corrupted?
mbrgm_ has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<matthuszagh10>
vika_nezrimaya: as in files are gone from nix store?
<matthuszagh10>
shouldn't be... i never touch it
<matthuszagh10>
but i guess it's possible
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm_ is now known as mbrgm
<vika_nezrimaya>
matthuszagh10: as in files are gone or damaged
<vika_nezrimaya>
If you have your configuration.nix and all of that stuff intact, you may reinstall the system without repartitioning
<vika_nezrimaya>
Installing NixOS is an idempotent operation and will not damage your files as long as you don't repartition your hard drive
<matthuszagh10>
vika_nezrimaya: so i don't have configuration.nix in /etc/nixos. i've got a flake in my home dir
<vika_nezrimaya>
same thing
jumper149 has joined #nixos
<vika_nezrimaya>
just deploy from a flake or something
<bqv>
vika_nezrimaya: his users were mutable, and they're gone now :p
<vika_nezrimaya>
why
<bqv>
cause me unmutabled them
<matthuszagh10>
i accidentally added a newline to password file
<vika_nezrimaya>
unmutabled - nice verbization
<matthuszagh10>
haha
<bqv>
:D
<vika_nezrimaya>
bqv++
<{^_^}>
bqv's karma got increased to 17
<ScottHDev4>
Just wanted to tell blub that the semantik package is successfully building on nixos-unstable, nixpkgs-unstable and nixos-20.3 channels. To install it just use my nur repo http://nur.nix-community.org/repos/shamilton/, you can even use my cachix repo which currently stores the build: https://app.cachix.org/cache/scott-hamilton. If you have any
<ScottHDev4>
issues using it or question on how the patch works, please contact me.
<vika_nezrimaya>
mutableUsers--
<vika_nezrimaya>
matthuszagh10: then delete the newline?
<jumper149>
I'm having trouble with gpg and pinentry on nixos-2003 and nixpkgs-unstable. I am trying to generate a gpg key from the tty and get: gpg: agent_genkey failed: No Pinentry
<vika_nezrimaya>
like, I'm not sure what's the problem
<matthuszagh10>
vika_nezrimaya: yeah i did but i don't know how to reinstall
<vika_nezrimaya>
how did you install the system
mpiechotka has quit [Quit: mpiechotka]
<vika_nezrimaya>
was it before you used the flake?
<matthuszagh10>
so i have a git branch that is not flakes
<vika_nezrimaya>
I mean even if it does there might be no guide
<matthuszagh10>
can switch to that
<matthuszagh10>
and install that
<jumper149>
I already tried with a clean ~/.gnupg directory, but that didn't help either
<matthuszagh10>
but i'm not sure how to chroot
<matthuszagh10>
on top of that having trouble getting internet for whatever reason
<vika_nezrimaya>
let me guess, WiFi?
<matthuszagh10>
no strangely ethernet
<matthuszagh10>
connection should be up
<vika_nezrimaya>
wow
<matthuszagh10>
i know..
<vika_nezrimaya>
that's kinda surprising
<bqv>
i had to recover my system a few days ago
<bqv>
from the stock installer
<vika_nezrimaya>
but considering my fonts stopped displaying numbers right now I'm not THAT surprised
<bqv>
the way i did it, i installed a blank basic system
<bqv>
then changed the generated config to nixUnstable
<vika_nezrimaya>
I'm currently using Emacs from tty to write this
<bqv>
then i could just deploy my flake
<Graypup_>
can I get the "remaining" arguments from a function using {arg1, arg2, ...} as a set?
<Graypup_>
i.e. no arg1 and arg2
<bqv>
vika_nezrimaya: emacs buddies!
<vika_nezrimaya>
bqv: I'm planning on writing an installer for NixOS
<bqv>
oh lord
<vika_nezrimaya>
bqv: Emacs is the best IRC client ever, change my mind
<Cadey>
bqv: emacs for lyfe
<vika_nezrimaya>
bqv: like nixos-install but for flakes
<_habnabit>
simpson, apparently that works.. the thing that was failing was accessing .bin on the derivation, which existed at one point and then didn't?
<matthuszagh10>
bqv: ok yeah i was thinking of something like that. guess i just need internet then nixos-generate-config
<vika_nezrimaya>
Cadey: yay
<bqv>
hmm, fair
<Graypup_>
i don't want to depend on nixpkgs for this because it's used as part of a shell.nix which won't have it imported yet welp
<Graypup_>
lib.filterAttrs is indeed the obvious answer
<_habnabit>
simpson, but ${pkgs.whatever}/bin/whatever was fine too
<Graypup_>
and i am considering stealing the code for that but it seems overcomplicated for what I want??
<simpson>
_habnabit: Sounds like a multiple-outputs problem. ${pkgs.whatever} will default to the first output, which could be ${pkgs.whatever.bin} or ${pkgs.whatever.out}. Either way, glad that you found a solution.
<Graypup_>
also I kinda wish nixpkgs reexported it though?
nDuff has quit [Quit: zzz]
<Graypup_>
so i only have to look in one spot lol
<jlv>
I'm having trouble with the Haskell 'random' package version 1.2. If I try `pkgs.haskellPackages.ghcWithPackages (hpkgs: with hpkgs; [ random_1_2_0 ])`, it fails to build with error "Setup: Encountered missing or private dependencies: smallcheck ==1.2.*, splitmix ==0.1.*". I figured Nix would handle the dependencies properly, but apparently not? This is on the latest unstable btw.
<infinisil>
Graypup_: It appears to be available in the global scope :)
<infinisil>
So no builtins. needed
<clever>
jlv: nix just manages giving it a version, not always the right version
<clever>
jlv: you may need to use doJailBreak to force it to ignore the versions of its deps
<redmp>
hi clever, i set up a host using nixops following https://github.com/NixOS/nixops/issues/1189 but it seems that doing things that way breaks system.autoUpgrade.enable ..
<{^_^}>
nixops#1189 (by cleverca22, 1 year ago, open): plan for supporting custom partition layouts and custom FS's on any backend
<redmp>
can i bug you about that?
nate48423 has quit [Ping timeout: 264 seconds]
<clever>
redmp: system.autoUpgrade.enable will never work with nixops, that will un-deploy everything
nate48423 has joined #nixos
<bqv>
infinisil: is there anything stopping me from having a `dagOf submodule`
<bqv>
cause i'm trying to make/use one
<bqv>
and it's giving me the weirdest error
<infinisil>
dagOf (submodule ...)
<redmp>
clever: awesome, that's good to know!
<redmp>
thank you
<bqv>
infinisil: yep
quinn has joined #nixos
<jumper149>
Ok I have made progress fixing pinentry. It's working when going into a `nix-shell -p pinentry-curses`. It didn't work after I used `nix-eng -iA nixpkgs.pinentry-curses` though.
<infinisil>
bqv: What is this weirdest error
<bqv>
infinisil: the option <attrpath>.<dagelement>.data.value defined in <module> does not exist
<bqv>
where the submodule is currently just { value }
<jumper149>
I noticed that the nix shell provides the binary `pinentry-curses` while nix-env provides `pinentry`
<cole-h_>
vika_nezrimaya: How broken? Got any screenshots?
cole-h_ is now known as cole-h
<jlv>
clever: hmm. I'm pretty sure it at least needs splitmix >= 0.1. Hackage thinks that NixOS has splitmix 0.1 https://hackage.haskell.org/package/splitmix , but `splitmix_0_1` isn't found. So is there no way to use random 1.2 right now?
<bqv>
infinisil: yeah, that would have picked it up
<bqv>
heh
<vika_nezrimaya>
cole-h_: Some characters, like numbers, are VERY small, so small I thought they were gone
<vika_nezrimaya>
I'm not sure how to upload a screenshot to an IRC chat but I'll try to
<maralorn>
jlv: not sure about splitmix but smallcheck looks like a testdep. So you could use haskell.lib.dontCheck. Regarding splitmix you can call override in the random package and give it splitmix_0_1_0
<vika_nezrimaya>
I have a web server I could send screenshots to
<maralorn>
Sorry nix does not figure out build plans for you
<cole-h>
vika_nezrimaya: Usually just by uploading to e.g. imgur and then posting the link here
* bqv
whispers sweet things about ipfs
<clever>
> haskellPackages.splitmix
<jumper149>
clever: pinentry-curses as a binary and pinentry as a symlink to pinentry-curses
nij has quit [Quit: leaving]
<clever>
jumper149: nix-env -iA should give you both binaries then
<cole-h>
vika_nezrimaya: My first test would be to completely remove all `fonts.fontconfig` configuration and see if things are bearable at that point.
<maralorn>
> haskellpackages.splitmix_0_1_0
<{^_^}>
undefined variable 'haskellpackages' at (string):320:1
<vika_nezrimaya>
As you can see, the numbers are small
<maralorn>
> haskellPackages.splitmix_0_1_0
<clever>
maralorn: nix rarely gives you multiple versions of haskell packages, there is just one main version
<{^_^}>
attribute 'splitmix_0_1_0' missing, at (string):320:1
<bqv>
i love how the dot is bigger than the numbers
<vika_nezrimaya>
Also I don't seem to have anything related to fontconfig in my Nix profile
<vika_nezrimaya>
should I remove system-wide configuration as well?
<maralorn>
clever: Nope, it mostly has two. The latest from stackage and the latest from hackage. Only one when they coincide or it is not on stackage.
<infinisil>
clever: maralorn: jlv: I need to point out that this is only how nixpkgs handles haskell packages, this isn't inherent to nix. E.g. the haskell.nix infra supports arbitrary versions and works much more like a typical cabal/stack build
<maralorn>
The latest from stackage will be the one without version numbers.
<jlv>
Looks like it's 'splitmix_0_1_0_1' weird. I didn't think there was a splitmix 0.1.0.1
<maralorn>
<infinisil "clever: maralorn: jlv: I need to"> Well it also does not really figure out a build plan for you. It just forces you to give it one.
<cole-h>
search.nixos.org is the new (and better) search page, but it's still under development IIRC
<jlv>
`random_1_2_0.override { splitmix = splitmix_0_1_0_1; smallcheck = smallcheck_1_2_0; }` got me closer, but build failed because "serious configure-time warning from Cabal". I assume I can ignore that somehow? It looks like the warning was about multiple 'smallcheck' versions, which shouldn't be a real issue.
<lunik1>
yeah, I usually use !nixpkg or !nixopt on duckduckgo, which still uses the older page it seems
<vika_nezrimaya>
cole-h: so it's basically a known issue
<clever>
jlv: you want an overlay that does splitmix = self.splitmix_0_1_0_1; and the same for smallcheck
<vika_nezrimaya>
and I unknowingly got caught in it
<vika_nezrimaya>
Those are the same symptoms I've been observing
<clever>
jlv: if you just .override, then you wind up with 2 versions of the package in the closure, and things get ugly
iyzsong has joined #nixos
<cole-h>
vika_nezrimaya: Yeah, the recent fontconfig bump to 2.13 screwed the pooch for me too.
<matthuszagh10>
anyone experienced a no carrier error when running dhcpcd for ethernet?
<colemickens>
I have `users.users."root".hashedPassword` set and I expected to not be prompted during nixos-install for a root password. Am I remembering wrong?
<colemickens>
cole-h: did you see the most recent thread with a reference to some "fix" on master?
<clever>
colemickens: you also have to set mutableUsers = false;
<nf>
what does the ca-references experimental option do? i can't find documentation anywhere and the source isn't really clear
<vika_nezrimaya>
cole-h: seems very confusing on how to get color emojis back, what's your recommended recipe?
<clever>
jumper149: pinentry-curses is just an alias to pinentry.curses
<colemickens>
yeah, right next to where I set the root password. huh
<colemickens>
maybe I'll file an issue
<cole-h>
colemickens: The recent thread being the last few replies to that issue? No, I mostly ignored it since the above snippet fixed my issue :P
<jlv>
clever: I see. I thought about that, but I wasn't sure how to do it for `ghcWithPackages`, or within a 'default.nix' for that matter. I'm using a pinned nixpkgs, not my system nixpkgs.
<colemickens>
see, knowing that I had to put it in the "wrong" place iwll bug me too much. emojis have been semibusted for years for me, Imma hold out
<{^_^}>
[nixpkgs] @jonringer pushed commit from @tobim to master « pythonPackages.coloredlogs: remove obsolete patch »: https://git.io/JJN6j
dramforever has joined #nixos
<vika_nezrimaya>
so it's not that
<vika_nezrimaya>
what else might cause it?...
<vika_nezrimaya>
I'll push the new flake rev real quick so we'd be on the same page
<Cadey>
how do i make the smallest possible NixOS image for a VM?
<jlv>
clever: I'm getting an infinite recursion `pkgs.haskellPackages.override { overrides = hsuper: hself: { random = hsuper.random_1_2_0; smallcheck = hsuper.smallcheck_1_2_0; splitmix = hsuper.splitmix_0_1_0_1; }; };`. I also tried `hself`, but it has the same result.
<cole-h>
vika_nezrimaya: I would comment out the `defaultFonts` stuff and try that.
<dramforever>
Has anyone been getting no sound on 5.7 kernel? 5.4 seems fine. My sound thing looks like this is lspci: Multimedia audio controller: Intel Corporation Cannon Lake PCH cAVS (rev 10)
<clever>
jlv: you need to look at the --show-trace and figure out where the cycle is
<clever>
jlv: it might be that smallcheck depends on smallcheck, and needs a haskell.lib.dontCheck applied to it
<clever>
jlv: and smallcheck_1_2_0 got away with testing, by using the "wrong" version to test itself