<terribleArtist>
howdy, ive got a shell.nix that is importing the yesod package for haskell. it compiles yesod applications fine, but i dont seem to have access to the yesod application in the shell, do i need to do something else for this to work?
<clever>
terribleArtist: how did you add it to shell.nix?
maier has joined #nixos
aaronjanse has quit [Ping timeout: 256 seconds]
M0-[m] has joined #nixos
Ox4A6F has joined #nixos
DamienCassou has joined #nixos
frim[m] has joined #nixos
Ericson2314 has joined #nixos
Geezus42[m] has joined #nixos
l-as has joined #nixos
Minijackson[m] has joined #nixos
MilkManzJourDadd has joined #nixos
NobbZ[m] has joined #nixos
TheSirC[m] has joined #nixos
Strubbl[m] has joined #nixos
alexarice[m] has joined #nixos
alienpirate5 has joined #nixos
alexfmpe has joined #nixos
alexherbo2[m] has joined #nixos
aloiscochard[m] has joined #nixos
wlan42[m] has joined #nixos
aterius has joined #nixos
bachp has joined #nixos
azazel has joined #nixos
bbigras has joined #nixos
bendlas has joined #nixos
bennofs[m] has joined #nixos
basilbunting[m] has joined #nixos
bohan[m] has joined #nixos
catharsis_[m] has joined #nixos
chrismatheson has joined #nixos
cmcaine[m] has joined #nixos
chreekat[m] has joined #nixos
colemickens has joined #nixos
cryptix has joined #nixos
danielrf[m] has joined #nixos
davidak[m] has joined #nixos
das-g[m] has joined #nixos
david-sawatzke[m has joined #nixos
domenkozar[m] has joined #nixos
drozdziak1 has joined #nixos
eddyb has joined #nixos
eadwu[m] has joined #nixos
dxu[m] has joined #nixos
edrex has joined #nixos
emily has joined #nixos
epitron[m] has joined #nixos
felixfoertsch has joined #nixos
fgaz has joined #nixos
freeman42x[m] has joined #nixos
gcoakes[m] has joined #nixos
ChrisOboe[m] has joined #nixos
Criena[m] has joined #nixos
gnxlxnxx[m] has joined #nixos
gs93 has joined #nixos
gsals[m] has joined #nixos
M|[m]1 has joined #nixos
Aljosha[m] has joined #nixos
MawKKe[m] has joined #nixos
acidpointer[m] has joined #nixos
hienergy[m] has joined #nixos
hiroshi[m] has joined #nixos
hpfr[m] has joined #nixos
hsiktas[m] has joined #nixos
aleph9[m] has joined #nixos
antpic01[m] has joined #nixos
acys[m] has joined #nixos
ilya-fedin has joined #nixos
blahaj[m] has joined #nixos
aquarial has joined #nixos
iwvt[m] has joined #nixos
jaewest304[m] has joined #nixos
yoctocell[m] has joined #nixos
cab404[m] has joined #nixos
jameshjacksonjr4 has joined #nixos
codyopel has joined #nixos
apple_at_cha[m] has joined #nixos
atemu12[m] has joined #nixos
atgo[m] has joined #nixos
cjbassi[m] has joined #nixos
chmod222[m] has joined #nixos
jschievink has joined #nixos
jtojnar has joined #nixos
kaychaks_riot has joined #nixos
koschitzky[m] has joined #nixos
daraul[m] has joined #nixos
dbirks[m] has joined #nixos
alj[m] has joined #nixos
davegallant[m] has joined #nixos
l_inus[m] has joined #nixos
cutuchiqueno[m] has joined #nixos
d3c[m] has joined #nixos
lihram has joined #nixos
bricewge has joined #nixos
rigola[m] has joined #nixos
Luigi[m]1 has joined #nixos
lpetoroot[m] has joined #nixos
marius851000[m] has joined #nixos
mathyouguy has joined #nixos
dammndot[m] has joined #nixos
deraffe[m] has joined #nixos
matthewbauer has joined #nixos
etrigan63[m] has joined #nixos
efra[m] has joined #nixos
mattock[m] has joined #nixos
easamuilov[m] has joined #nixos
emmanuelrosa[m] has joined #nixos
mindtree[m] has joined #nixos
dpc has joined #nixos
exel[m] has joined #nixos
porphyrogenetos has joined #nixos
Eli[m]2 has joined #nixos
nikola[m] has joined #nixos
nh2[m] has joined #nixos
evanjs[m] has joined #nixos
Fuzen has joined #nixos
nilsirl[m] has joined #nixos
ongy[m] has joined #nixos
felschr[m] has joined #nixos
finnwww[m] has joined #nixos
flip[m] has joined #nixos
grahamc[m] has joined #nixos
mica[m] has joined #nixos
focalluna[m] has joined #nixos
frobenius[m] has joined #nixos
gh0st[m] has joined #nixos
faewenys[m] has joined #nixos
petersjt014[m] has joined #nixos
pinion[m] has joined #nixos
pjhenning[m] has joined #nixos
guiber[m] has joined #nixos
gildedlink[m] has joined #nixos
guelosk[m] has joined #nixos
hanckmann[m] has joined #nixos
ibinzari[m] has joined #nixos
rednaZ[m] has joined #nixos
GerdFlaig[m] has joined #nixos
hleb[m] has joined #nixos
haaksmash[m] has joined #nixos
hsngrmpf[m] has joined #nixos
regnat has joined #nixos
hydridity[m] has joined #nixos
rgamma[m] has joined #nixos
sab7iryudpgf6[m] has joined #nixos
ryantm has joined #nixos
Hayden[m] has joined #nixos
Nacho[m]2 has joined #nixos
sabry97[m] has joined #nixos
idontgetoutmuch[ has joined #nixos
j0hax[m] has joined #nixos
infinisil-m has joined #nixos
j4ng5y[m] has joined #nixos
yurb has joined #nixos
sebass[m] has joined #nixos
inquisitiv3 has joined #nixos
icetan has joined #nixos
init_6 has joined #nixos
siraben has joined #nixos
Caleb[m]1 has joined #nixos
jgart[m] has joined #nixos
jjwatt[m] has joined #nixos
jlv[m] has joined #nixos
joschi has joined #nixos
JameySharp[m] has joined #nixos
joey_tribbiianii has joined #nixos
sonerhalis[m] has joined #nixos
srid has joined #nixos
stites[m] has joined #nixos
jangsentry10032[ has joined #nixos
jonreeve[m] has joined #nixos
Addison[m] has joined #nixos
Superleaf1995 has joined #nixos
sasyctu[m] has joined #nixos
theduke has joined #nixos
kai_w has joined #nixos
kraem[m] has joined #nixos
logan12358[m] has joined #nixos
thefloweringash has joined #nixos
koozz[m] has joined #nixos
theotherjimmy[m] has joined #nixos
timokau[m] has joined #nixos
khassanov[m] has joined #nixos
Jake[m] has joined #nixos
tskc[m]1 has joined #nixos
unclechu has joined #nixos
kuznero[m] has joined #nixos
lalala56756[m] has joined #nixos
likivik[m] has joined #nixos
utdemir[m] has joined #nixos
keving has joined #nixos
vaibhavsagar has joined #nixos
kuramashinobi13[ has joined #nixos
joghuru[m] has joined #nixos
leonardp has joined #nixos
wak-work has joined #nixos
mdlayher1 has joined #nixos
lwbcdt[m] has joined #nixos
michael[m]3 has joined #nixos
mcds[m] has joined #nixos
AlesHuzik[m]1 has joined #nixos
watzon has joined #nixos
wedens[m] has joined #nixos
worldofpeace has joined #nixos
xavierm02 has joined #nixos
movsxd[m] has joined #nixos
Yakulu[m] has joined #nixos
yutyo[m] has joined #nixos
zannzen[m] has joined #nixos
mullein[m] has joined #nixos
mkfart[m] has joined #nixos
zrsk[m] has joined #nixos
p_m[m] has joined #nixos
notmatthew[m] has joined #nixos
mbick[m] has joined #nixos
pauricthelodger[ has joined #nixos
michaelpj has joined #nixos
nlgila[m] has joined #nixos
mlatus[m] has joined #nixos
mlvzk[m] has joined #nixos
rycee has joined #nixos
Dandellion has joined #nixos
qbit[m] has joined #nixos
ptotter[m] has joined #nixos
omasanori[m] has joined #nixos
pablo1107[m] has joined #nixos
sparogy has joined #nixos
neonfuz2 has joined #nixos
onny[m] has joined #nixos
Smith[m]1 has joined #nixos
pucilpet[m] has joined #nixos
qryptic[m] has joined #nixos
padok[m] has joined #nixos
ptol3my[m] has joined #nixos
slavfox has joined #nixos
noneucat has joined #nixos
printfn[m] has joined #nixos
pitchzer0 has joined #nixos
tokudan[m] has joined #nixos
jneplokh has joined #nixos
d4rkshad0w has joined #nixos
dtz has joined #nixos
quidome[m] has joined #nixos
philipp[m]1 has joined #nixos
axx has joined #nixos
piotrszegda[m] has joined #nixos
rascencio[m] has joined #nixos
peterlau[m] has joined #nixos
rawas[m] has joined #nixos
quiet_laika[m] has joined #nixos
aanderse has joined #nixos
syds[m] has joined #nixos
martha[m] has joined #nixos
sreybastien[m] has joined #nixos
rk04[m] has joined #nixos
scatteredray[m] has joined #nixos
ma27[m] has joined #nixos
redcedar[m] has joined #nixos
phirsch has joined #nixos
scratch171[m] has joined #nixos
yangm has joined #nixos
arcnmx has joined #nixos
puzzlewolf has joined #nixos
haslersn has joined #nixos
kriteus119[m] has joined #nixos
sghir_med[m] has joined #nixos
JJJollyjim has joined #nixos
gretax[m] has joined #nixos
regivanx[m] has joined #nixos
sayanarijit[m] has joined #nixos
billsun has joined #nixos
slabity has joined #nixos
Stphan[m] has joined #nixos
Notkea[m] has joined #nixos
manu12[m] has joined #nixos
shider[m] has joined #nixos
sputny[m] has joined #nixos
slby[m] has joined #nixos
shu9[m] has joined #nixos
Ke has joined #nixos
sirreal[m] has joined #nixos
sneknek[m] has joined #nixos
timclassic has joined #nixos
spazzpp2[m] has joined #nixos
sty86[m] has joined #nixos
test300[m] has joined #nixos
rnhmjoj has joined #nixos
srxl has joined #nixos
sshow[m] has joined #nixos
themihas[m] has joined #nixos
musicmatze has joined #nixos
tinamus[m] has joined #nixos
trewqasad1[m] has joined #nixos
terrymunro[m] has joined #nixos
tbenst[m] has joined #nixos
adit[m] has joined #nixos
tyrion-mx has joined #nixos
rschulman has joined #nixos
ngerstle[m] has joined #nixos
solomon[m] has joined #nixos
thequux[m] has joined #nixos
tlater[m] has joined #nixos
truh[m] has joined #nixos
vtest[m] has joined #nixos
balsoft has joined #nixos
wangoe[m] has joined #nixos
ice7[m] has joined #nixos
dxb[m] has joined #nixos
bqy has joined #nixos
raju[m] has joined #nixos
philipp[m] has joined #nixos
mcaju has joined #nixos
chvp has joined #nixos
ZerataX has joined #nixos
blindidiotgod has joined #nixos
Houtworm[m] has joined #nixos
mt[m] has joined #nixos
therivercass[m] has joined #nixos
yochai[m] has joined #nixos
Vykook[m] has joined #nixos
dngray has joined #nixos
kueckieben[m] has joined #nixos
Xamino[m] has joined #nixos
ndarilek has joined #nixos
maralorn has joined #nixos
zoickx[m] has joined #nixos
yusdacra[m] has joined #nixos
Soarin[m] has joined #nixos
leons has joined #nixos
Valodim[m] has joined #nixos
hazel[m] has joined #nixos
cyberwolf[m] has joined #nixos
hmpffff[m] has joined #nixos
grin[m] has joined #nixos
delroth[m] has joined #nixos
AberDerBart[m] has joined #nixos
comrandroxaos[m] has joined #nixos
Markus[m]3 has joined #nixos
tristan[m] has joined #nixos
Philipp[m]2 has joined #nixos
l33[m] has joined #nixos
kekw736[m] has joined #nixos
nanashi0x74[m]1 has joined #nixos
jlv has joined #nixos
pachumicchu[m] has joined #nixos
CRTified[m] has joined #nixos
nicolas[m]1 has joined #nixos
un-cons-cionable has joined #nixos
AmitLevy[m] has joined #nixos
Leira[m] has joined #nixos
Jan-HenrikBruhn[ has joined #nixos
syntaxtree[m] has joined #nixos
nrdxp[m] has joined #nixos
HackerFoo[m] has joined #nixos
vojta001[m] has joined #nixos
Lars[m]3 has joined #nixos
sauyon[m] has joined #nixos
nocturnalbeast[m has joined #nixos
bpye has joined #nixos
user51[m] has joined #nixos
jojosch|Johannes has joined #nixos
aflatter[m] has joined #nixos
vegai1 has joined #nixos
boogiewoogie[m] has joined #nixos
adray has joined #nixos
feffe[m] has joined #nixos
MaJoe[m] has joined #nixos
greghab[m] has joined #nixos
lily[m] has joined #nixos
chris[m]6 has joined #nixos
vpfeiffer[m] has joined #nixos
oopisthedevil[m] has joined #nixos
faya01[m] has joined #nixos
Rian[m] has joined #nixos
ggpeti[m] has joined #nixos
Wouter[m]2 has joined #nixos
Nanowolf4[m] has joined #nixos
id[m] has joined #nixos
j0hax[m]1 has joined #nixos
TimePath has joined #nixos
LinusSexTips[m] has joined #nixos
truby has joined #nixos
<terribleArtist>
clever: ghc = haskellPackages.ghcWithPackages haskellDeps; and then in haskellDeps I have ps: with ps; [ base yesod ];
<clever>
terribleArtist: and if you `echo $ghc` in the shell?
<terribleArtist>
i get nothing
<clever>
terribleArtist: can you pastebin the shell.nix?
<terribleArtist>
do you know about getting access to the yesod application?
<clever>
put yesod into the buildInputs
<clever>
pkgs.haskellPackages.yesod
<Graypup_>
chiiba, you were asking for a definition search thing for nix? I uh have a thing: https://github.com/lf-/nix-doc
<Graypup_>
my typical usage of it is nix-doc REGEX then ctrl-w shift-F in my vim to jump to the definition. It's definitely WIP but the heuristic to find the original definition rather than some reexport is *generally* very good
<terribleArtist>
wooo chur clevel
<terribleArtist>
clever
mrosenbe_ has joined #nixos
<terribleArtist>
needed yesod-bin but that did the trick
<Ashy>
Graypup_: nice! can it generate a ctags file for the whole nixpkgs repo?
<Graypup_>
the slightly smart part about it is that it looks for function definitions with comments on them
<Graypup_>
I will say, my thing is probably going to be obsolescent the instant nix adds a shortcut for unsafeGetAttrPos in the repl
markus1189 has joined #nixos
<Church->
Alright, think I have a module for pihole almost. Yippy.
<abathur>
is there an idiomatically-correct way/place/process for saving meta-artifacts (like html results collected by a coverage tool) generated in the build sandbox and making them available outside afterwards??
orivej has joined #nixos
terribleArtist has quit [Ping timeout: 244 seconds]
sb0 has joined #nixos
MarcWebe1 has joined #nixos
griff_ has joined #nixos
aaronjanse has joined #nixos
<Graypup_>
abathur, probably the same way as docs are handled? somehow there's a .doc field on the main derivation that has a second derivation where the docs go
<Graypup_>
not sure how the builders for that work
<abathur>
hmm, good point
<abathur>
I have considered just putting it in the output for expedience; at this point I'm not sure if it's part of the tool or a dead end or not, but I haven't had to seriously answered the question since all of the builds fail atm and I can just use --keep-failed and get them there :P
<abathur>
but making a separate output seems like a good way to go if I keep it
<zeta_0>
hey there, i'm trying to get this shell.nix working with lorri, so what part of the nix code do i need to wrap with the `mkShell` function? https://dpaste.org/d4VG
cosimone_ has quit [Quit: Quit.]
<{^_^}>
[nixpkgs] @dtzWill opened pull request #94145 → ripcord: set RIPCORD_ALLOW_UPDATES=0 to disable attempts to auto-update → https://git.io/JJuw3
terribleArtist has quit [Ping timeout: 246 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<colemickens>
cool so now I try to revert nix, but I can't because this flake url syntax doesn't take the rev here
<colemickens>
even though this tweag article implies this ought to work
<ishan24>
Hi I am trying to setup an nix-shell using lorri for C++ ( I am a beginner in nix ). I am using emacs with lsp-mode which is setup to work with clangd but clangd cannot find the header files. But I am able to compile the program just fine. What am I missing?
<ishan24>
The packges I am using are in the nix-shell are:-
zeta_0 has joined #nixos
<clever>
ishan24: is the clangd running within the nix-shell? it may be in a different shell and lack those packages
proofofkeags has quit [Remote host closed the connection]
<zeta_0>
clever: quick question, what part of the code do i need to wrap with the `mkShell` function? i'm trying to get it working with lorri: https://dpaste.org/NaDE
<clever>
zeta_0: that looks like it should work fine
moet has joined #nixos
<ishan24>
clever: clangd is running because I am getting completions but only header files are missing.
<clever>
ishan24: but is clangd being started from a nix-shell that has those packages?
<zeta_0>
clever: it works fine when going into a nix-shell, but it does not seem to be working with lorri, that's why i figured that i need to add `mkShell` in there somewhere
<zeta_0>
i think i'm close to getting this working correctly
<clever>
zeta_0: have you checked the lorri logs?
<zeta_0>
clever: no i haven't, what are those?
iqubic` has joined #nixos
iqubic` has quit [Remote host closed the connection]
<clever>
zeta_0: what happens if you run `lorri log` ?
<ishan24>
How do I check if clangd has started or not? Sorry for the noob question.
<clever>
ishan24: `ps aux | grep clangd`
iqubic has quit [Ping timeout: 260 seconds]
<zeta_0>
clever: running `lorri log`, terminal returned: `error: Found argument 'log' which wasn't expected, or isn't valid in this context`
<clever>
zeta_0: does `lorri help` show anything log related?
nature has joined #nixos
<ishan24>
clever: Yes it is running.
<clever>
ishan24: but was it started from the right nix-shell? try killing it and starting another in the nix-shell
<zeta_0>
clever: no it just shows lorri's sub-commands/flags, i looked at the nixos wiki, but i couldn't find a description of the `mkShell` function anywhere
zupo has joined #nixos
alp has joined #nixos
<clever>
zeta_0: i dont think you need mkShell here, i think you need to look at the logs to see what is happening
zupo has quit [Client Quit]
<ishan24>
clever: yes I have a clangd process running when I enter the directory.
<zeta_0>
clever: ok, i'll exit and go back to the project root directory to see if lorri is working correctly, if not then i'll need to find the correct command to look at lorri's logs, as you mentioned
<{^_^}>
[nixpkgs] @mjlbach opened pull request #94154 → Emacs: Fix library_path substituted to not be a nested list → https://git.io/JJuiq
petersjt014[m] is now known as pjt_014[m]
o1lo01ol1o has joined #nixos
nixbitcoin_ has joined #nixos
nixbitcoin has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
curiousmrperson has joined #nixos
<zeta_0>
clever: when i touch'd a new haskell file where lorri is initialized, ghcide works fine, but when i opened up one of ghc's haskell files up a couple of directories, lorri returned red on the export and ghcide stopped working(the error thrown is: no such file or directory)
<curiousmrperson>
does nix have user packages similar to AUR?
<srhb>
colemickens: Did you change something, or is that the same paste?
<colemickens>
No, unfortunately it's the same paste.
<srhb>
Ah, ok. I was looking in vain for the new information.
<colemickens>
No unfortunately it's the same situation reported in 2013, 2016, 2017 and 2018. Except this time I've checked everything from each of those issues.
<colemickens>
I'm desperate. I should post my Discourse text, go take a bath and leave it alone.
<srhb>
Yes, that sounds like a plan. :)
mounty has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
karantan has joined #nixos
domogled has joined #nixos
* colemickens
thinks he found it
cfricke has joined #nixos
<zeta_0>
well i give up, for now i'll try to fix my issue later.
<sdisavona>
Which is the global location for configurations.nix?
<colemickens>
sdisavona: by default /etc/nixos/configuration.nxi
<nature>
what is the concrete difference between the stable channel and the small channel ? Does it means it comes with less package installed by default ?
urkk has joined #nixos
<colemickens>
s/nxi/nix/g, but you get it :)
<sdisavona>
I'm using nix as secondary package manager on a distro, not nixOS. Is it the same?
sentinal8473 has joined #nixos
<colemickens>
nature: the channels contain whatever is in the nixpkgs git repo. Channels are pointers to tested git revisions. nature the channels vary based on what sets of tests must pass for the channel to advance
<clever>
sdisavona: configuration.nix only has an effect on nixos
zeta_0 has joined #nixos
<sdisavona>
So if I'm using plain nix on a distro, I'm left with only per user configuration.nix ?
<clever>
sdisavona: you only have config.nix which is a different file
<nature>
ok, so this means that the installation doesn't change between the two, only the package available to install ? m I right ?
<nature>
It's just a different source for the package manager ?
<zeta_0>
before i go, could someone explain to me `mkShell`? i can't seem to find it in the nixos wiki
<sdisavona>
I'm trying to set "allowUnfree = true" globally, how can I do it? I'm reading manual and wiki but can't find it (globally)
<clever>
sdisavona: you can do that in config.nix, the error msg tells you how to do it with config.nix
itshaydendev has joined #nixos
<clever>
sdisavona: $NIXPKGS_CONFIG can supply an override for the config.nix path, and you could then set NIXPKGS_CONFIG globally
est31 has quit [Remote host closed the connection]
<srhb>
nature: The installation of nix itself? No, that rarely changes.
<srhb>
nature: Though the version of nix itself can change between them (because they update at different intervals, depending on test successes, eg.)
est31 has joined #nixos
<sdisavona>
I don't fully understand the error message. It gives me this choice for specific users: { allowUnfree = true; } to ~/.config/nixpkgs/config.nix
drakonis has quit [Quit: WeeChat 2.8]
<nature>
srhb: yes I meant the default package installed after installation, nixos-small is not a minimal version, it's just a source with fewer package ?
<sdisavona>
And this for rebuild: { nixpkgs.config.allowUnfree = true; } in configuration.nix to override this.
<srhb>
nature: No, it's the same source with fewer tested packages
<clever>
sdisavona: if $NIXPKGS_CONFIG points to a file, it has priority over ~/.config/nixpkgs/config.nix and has the same syntax as config.nix
<nature>
srhb: okay, thanks :)
<srhb>
nature: Meaning it may advance faster tha nixos-unstable (say) because fewer tests are required to pass. In which case, more things may be broken.
<nature>
ooooh okok, makes much more sense now!
<srhb>
nature: It may be even clearer if you take a look at the tests required to advance.
<nature>
Also another question, I am starting to use nixos in a VM (VirtualBox) but I can't seem to get X working properly, here is my xserver related config: https://pastebin.com/KFUjBdvi
<sdisavona>
Where should I put config.nix?
<clever>
sdisavona: if you want to affect one user, ~/.config/nixpkgs/config.nix
<nature>
Anybodny knows how I can troubleshoot this ?
<sdisavona>
Is $NIXPKGS CONFIG an environment variable? I can't find it, that whitespace seems weird.
<clever>
sdisavona: that isnt whitespace, its an underscore
<sdisavona>
I suspected that. The variable is empty, does this mean I haven't it set globally?
<sdisavona>
I want it global, not for one user only.
<clever>
sdisavona: then you want to set that somewhere like /etc/profile, and point it to a config.nix file every user can read
<sdisavona>
nature which exact issue are you having with X?
<sdisavona>
clever Ok thank you.
buckley310 has quit [Quit: Connection closed for inactivity]
<nature>
sdisavona: The issue I am having is that I apparently are in the scenario as if I don't have any window manager enabled, as described in the installation guide I end up in an unstyled white xterm after doing `startx`
<clever>
sdisavona: if you enable unfree packages, you can just `nix edit nixpkgs.teamspeak_client`
<sdisavona>
Isn't that the normal behaviour? It always has been like that for my distros (I've been using minimals/netinstalls for 10 years)
<sdisavona>
So I cheat using edit just to read, then dropping out of edit without actually having edited anything?
<clever>
sdisavona: yeah, i just use `nix edit` to learn how things work, but still install it with normal tools like nix-env -i
<nature>
I don't know if you said it to me but no it's not the normal behaviour since I enabled bspwm, I should at least get inside the wm when I do a startx
<sdisavona>
nature Sorry, I misread, I thought you were complaining about having plain X with xterm while not specifying a wm.
terribleArtist has joined #nixos
norbert[m]1 has joined #nixos
gthm has joined #nixos
phreedom has joined #nixos
<sdisavona>
nature can you give me a paste.rs for your .xinitrc?
smatting_ has joined #nixos
robin has joined #nixos
<robin>
hey everybody, im planning to install nixos on my laptop but get stuck in the full disk encryption stage, i feel its not so clear how to proceed with that. could someoneplease help? :)
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nature>
sdisavona: no worries, but yeah quite the opposite I specified a wm, here you go: https://paste.rs/c0H
<nature>
sdisavona: so this is xinitr inside X11 of my nix/store
graf_blutwurst has joined #nixos
<ivan>
robin: did you cryptsetup luksFormat?
<nature>
sdisavona: but I don't know how nixos interacts with xinitr since the wm is enabled in the configuration.nix :/
<nature>
ok, I can't edit xinitrc that way, I don't think you're supposed to edit config files in the nix store like that
<robin>
@ivan no i have tried to read the manual, but not quite sure what i really should start with and so on
<sdisavona>
I don't know nixos, but do you have a /home/user ?
<sdisavona>
Can you put per-user config files inside their homes, or would this go against the reasons you're using nixos?
<sdisavona>
Can you put a custom .xinitrc in user's home?
<lovesegfault>
robin: Are you still trying?
<ivan>
robin: partition the disk based on whether you want MBR or GPT, make an unencrypted /boot, cryptsetup luksFormat the big partition, cryptsetup luksOpen, mount it from /dev/mapper/whatever
<terribleArtist>
howdy, im having trouble installing a haskell package through nix, im not sure if this is the right place to ask about that but colud someone help?
<nature>
sdisavona: Thank you, but I really want to manage to do this within the configuration.nix file
<srhb>
terribleArtist: This is a good place.
dermetfan has joined #nixos
ap29600 has quit [Read error: Connection reset by peer]
<srhb>
terribleArtist: It's helpful if you provide your version of nixpkgs for reproducibility as well.
<terribleArtist>
oh uh
<terribleArtist>
how can I find that out?
<srhb>
terribleArtist: But at a guess, pontarius-xml is marked broken because it depends on a version of lens-family that's older than the one we have in nixpkgs
<srhb>
er, xmpp*
ap29600 has joined #nixos
<terribleArtist>
damn :(
<terribleArtist>
is there anyway to manually get that version of it?
<{^_^}>
nix#2664 (by obadz, 1 year ago, open): nixos-rebuild silently crashes out of memory without updating
<karantan>
I usually stop several services (mysql, phpfpm, ...) before doing rebuild but sometimes it still runs OOM and then I ended up with stopped services
<karantan>
any ideas how to handle this?
<clever>
karantan: it can sometimes happen if you have infinite recursion in your nix file, which proess is consuming all of the ram?
<karantan>
well I don't have a lot of ram available. total 2gb but I have a lot of things running
<clever>
karantan: which process is using it all when it fails?
<karantan>
so it makes sense to get OOM when rebuilding. but if this happens I want to handle it somehow. The best way would it be to say to nixos to "put the system in the previous state"
<karantan>
I guess I could reboot the system. hmm but that sounds very intrusive
<sdisavona>
clever before installing I want to learn a bit on nix. I've read the first 12 chapters of the Nix manual: https://nixos.org/nix/manual
<clever>
sdisavona: `nix-env -qa` will often hide any errors it encounters, so you dont get 3000's errors about every unfree package when unfree is blocked
<sdisavona>
I can't find any explanation to 'A' in 'nix-env -iA' and the manual isn't very clear, it just invites to use 'nix-env --install' for some example.
<clever>
sdisavona: its often faster to just assume the package name is obvious
<chrismatheson>
quick question, ive done a little reading myself but can't find the answer .... in a nix expression im writing for my own lil dev env, id like to startup zsh instead of bash. Is there a version of the `--command` options to nix-shell which I can declare in the expression itself?
<chrismatheson>
NVM ive found what I need `One of the limitations of nix-shell is that you can't use a shell other than bash. Thankfully, there is Direnv [[2]] with the support `
<nature>
sdisavona: ok so after reading some more you were right, I didn't find any other way that creating .Xinitrc manually...
<obadz>
karantan: if you have disk space you can add a swap file and then toss it after the rebuild
<karantan>
can I add swap after nixos installation?
<nature>
Does anybody know how to handle a xinitrc config file through nix configuration ? I just want to use the startx display manager but I was hoping to not start to have configuration files all over the place
<sdisavona>
'nix-env -qa nixpkgs.wireshark' finds nothing, but 'nix search wireshark' find various results.
<clever>
sdisavona: wireshark is just an alias, for people that dont know about wireshark-qt and wireshark-gtk
<clever>
> pkgs.wireshark == pkgs.wireshark-qt
<{^_^}>
true
<{^_^}>
[nixpkgs] @mroi opened pull request #94160 → swift: fix cflags for finding C++ headers → https://git.io/JJu77
* clever
heads off to bed
<sdisavona>
Ok, so are there 2 different packages providing the same thing? nixpkgs.wireshark and nixpkgs.wireshark-qt boht providing wireshark-qt?
<clever>
sdisavona: yeah, they are the same package, just different names
thc202 has joined #nixos
<sdisavona>
How should I have understood this? From a documentation point of view. I couldn't find any reference to this in the first 12 chapters of Nix package manager manual
<clever>
sdisavona: if i then open that file, and read it, i can see its the other way around, wireshark-qt is the alias
<clever>
19725 # The GTK UI is deprecated by upstream. You probably want the QT version.
<clever>
19726 wireshark-gtk = throw "wireshark-gtk is not supported anymore. Use wireshark-qt or wireshark-cli instead.";
<clever>
and it also has a comment saying dont use wireshark-gtk
<clever>
(which i hadnt seen before, thats new)
<clever>
sdisavona: i also find tab-completing under `nix repl '<nixpkgs>'` to be a far faster way of searching, and you can also read other info on the package, like wireshark.meta.description or wireshark.meta.homepage
* clever
heads off to bed
zupo has joined #nixos
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
Neo--- has joined #nixos
<sdisavona>
Good night
o1lo01ol1o has joined #nixos
sigmundv has joined #nixos
<nature>
dminuoso: I tried sessionCommands, it seemed like what I needed but I can't figure out how to start my wm from there
lordcirth__ has joined #nixos
terribleArtist has quit [Ping timeout: 240 seconds]
lordcirth_ has quit [Ping timeout: 260 seconds]
<dminuoso>
nature: You set `services.xserver.displayManager.defaultSession` accordingly
<dminuoso>
oh wait
<dminuoso>
nature: no, you configure services.xserver.windowManager of course :)
edrex has quit [Quit: Idle for 30+ days]
marius851000[m] has quit [Quit: Idle for 30+ days]
tokudan[m] has quit [Quit: Idle for 30+ days]
Mateon1 has joined #nixos
<karantan>
so I've added `swapDevices = [ { device = "/var/swap"; size = 2048; priority = 0; } ];` to hardware-configuration.nix and "nixos-rebuild swithc"
<karantan>
but the build returned error: `Failed to activate swap /var/swap.`
<fendor>
lassulus, `nix-shell --argstr compiler ghc8101` has the same error as when I am doing `nix-shell --arg compiler \"ghc8101\"`
<lassulus>
interesting, let me check
<nature>
dminuoso: Here is my configuration.nix if you don't mind looking into it: https://paste.rs/TwQ
<nature>
I did set windowManager accordingly but not defaultSession
<lassulus>
fendor: `else haskell.packages.${compiler}.ghcWithPackages [];` should be `else haskell.packages.${compiler}.ghcWithPackages (hs: []);`
<lassulus>
since it expects a function, not a list
<nature>
should I use displayManager.session ? or set displayManager.defaultSession ? I am sorry I am a bit lost here ^^'
<fendor>
lassulus, the if-then-else is part of a lambda, and for this case it hard-codes the parameter
pjt_014 has quit [Ping timeout: 256 seconds]
<felschr[m]>
Does anyone know why I can't seem to see any online statuses on Element? It's supposedly supported.
<nature>
I understand that I probably could do it without too much trouble by having a .xinitrc in my home folder but I really want to have my configuration declared in nix
<lassulus>
fendor: not sure I understand it, maybe the [] should be p instead then?
<dminuoso>
nature: Don't hae the time currently, redirect your question to the channel.
<fendor>
lassulus, no that is fine, imo. it basically is `p: if someCondition then packages p else packages []`
<lassulus>
ok but p is a function? so [] should also become a function?
<lassulus>
like (hs: []) ?
<lassulus>
at least thats what ghcWithPackages expects
<nature>
dminuoso: Don't worry, thanks anyway
<nature>
Can someone help me configure bspwm to start withou a displayManager (just simply starting via startx) ? I am having a hard time figuring it out...
<{^_^}>
[nixos-homepage] @garbas pushed 5 commits to integrate-new-search: https://git.io/JJuxz
asymptotically has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
mokulus has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mokulus>
Hello, are there any recommended learing resources? I've tired NixOS like a year ago and it was hard for me to learn it. Is the documentation better/easier now?
<sdisavona>
How do I show dependencies for an uninstalled package?
<fps>
mokulus: the nix documentation is a mess :) i would suggest working through the nix pills.
<{^_^}>
[nixos-homepage] @garbas pushed to integrate-new-search « Searching for options from learn page now uses correct link »: https://git.io/JJuhX
incognito9999 has quit [Read error: Connection reset by peer]
incognito9999 has joined #nixos
<sdisavona>
I'm using Nix cheat sheet, but it's confusing because it contains things different from nix pills
<sdisavona>
Also, if I didn't understand properly, nix pills suggest to initiate a package and then search for its dependencies.
<fps>
nix/nixos is practically unusable without some understanding of the system. it's almost like the prototype of leaky abstractions :)
<sdisavona>
So far I've read chapters 1-12 from nix package manager manual, but while it's well written, I find it confusing because it seems scattered in different manuals.
<sdisavona>
I also miss a "fisheye" view of the whole product, so I can point to the right source of info.
<fps>
yep
<fps>
it's the ultimate nerd experience :)
<sdisavona>
TL;DR: I'm having issues understanding *where* to find info on nix, sometimes I've to use google-fu to find the correct man/chapter in the official documentation.
<fps>
sdisavona: but less generally speaking. do you have a concrete question?
<sdisavona>
And I find "nix" the worst name they could choose: it easily messes up google-fu queries.
<sdisavona>
fps I'm using nix on archlinux, I'm "moving" (installing/removing) several packages from pacman to nix.
<sdisavona>
I'm having issues with: finding packages on nix, listing/checking dependencies, listing installed files.
<sdisavona>
Now, this seems very broad an non-concrete, but I assure they all stem from specific issues I've encountered.
gv has joined #nixos
<fps>
for finding packages you probably came across "nix search", right?
shibboleth has joined #nixos
<sdisavona>
Yes obviously, but I'd huge issues finding "vscode".
<fps>
you didn't get any results?
<sdisavona>
Too many results because I didn't know its exact name.
<sdisavona>
Couldn't find it searching for visual studio, etc.
<sdisavona>
I can't find a resource explaining how "nix search" works, only some reference on nix pills.
<sdisavona>
Man, infopage, HTML manual, whatever.
<sdisavona>
Please note: I'm not complaining, I just want the resources so I can find instructions on my own.
<fps>
yeah, nix itself doesn't seem to have a manpage. you can do nix search --help though
<sdisavona>
I don't like asking others.
incognito9999 has quit [Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in]
<fps>
the state of the documentation you will just have to take as given unless you want to work on improving it :) asking questions is the right thing to do
incognito9999 has joined #nixos
* fps
is just a nixos user and a pretty noob one himself
<siraben>
srk: Where do I add myself as a maintainer?
<srk>
siraben: maintainers/maintainer-list.nix
alp has quit [Ping timeout: 246 seconds]
<siraben>
srk: Thanks.
<inquisitiv3>
If I haven't misunderstood the documentation the expression `<nixpkgs>` should return the paths to all Nix-expressions located in my `$NIX_PATH`?
gxt has joined #nixos
<srk>
sort of, if nixpkgs=some_path is part of NIX_PATH it will use some_path, if not it will try to look up nixpkgs subdir of NIX_PATH
<{^_^}>
[nixpkgs] @1000101 opened pull request #94167 → nixos/blockbook-frontend: adjust tests to bitcoind → https://git.io/JJzeQ
<srk>
you can test to what it resolves to with nix-instantiate --find-file nixpkgs
<nature>
lassulus: Are you still around ?
<srk>
quotes for nix-build '<nixpkgs>' are required since < > are shell operators for redirecting I/O
<inquisitiv3>
@srk
sangoma has quit [Ping timeout: 256 seconds]
<lassulus>
nature: yes
<inquisitiv3>
srk: `nix-instantiate --find-file nixpkgs` returns `/home/alo/.nix-defexpr/channels/nixpkgs`, which is a symlink to `/nix/store/hbqgc3aq9shnpw036mvpskwn656j86cc-nixpkgs-20.09pre236138.970b2b853d4/nixpkgs/`.
<inquisitiv3>
Which seems to be all of Nixpkgs? Or what?
<srk>
yes, just a snapshot of the repo
<nature>
lassulus: ok so I tried your idea and now I think I just miss some understanding on how nix work
<nature>
ideally what I want to achieve is to be presented with the startx login prompt (the simple tty one) and once I log in bspwm starts
<nature>
That's what I currently have on my arch setup
<lassulus>
ah, youve renamed it to startWm, what does running it result in?
sdisavona has quit [Remote host closed the connection]
<nature>
oh I should name it startbspwm, it's a special name ?
fionn_ has joined #nixos
<nature>
lassulus: still nothing
knupfer has quit [Read error: Connection reset by peer]
<lassulus>
no, the name shouldn't matter. does X start?
<nature>
so what does the pkgs.writeScriptBin in systemPackage do ?
alp has joined #nixos
<nature>
no it doesn't start X
<lassulus>
pkgsWriteScriptBin takes the second string, puts it inside a shellscript and returns a folder where this shellscript is under bin/$name
<lassulus>
and by putting this into environment.systemPackages you can just run the script, since its in $PATH
<fionn_>
hey all! I'm just getting started with nixos and nix and have a question about package management. I've seen some nix configs using a `programs` identifier to install and enable some packages, i.e. `programs.firefox = { enable = true; }` etc. How do I find documentation on what programs I can configure in this manner, and what config options are possible with each?
sangoma has joined #nixos
<lassulus>
nature: does anything happen at all? maybe some errors?
<fionn_>
I've pulled nixpkgs on my local machine but I'm struggling to make head or tails of where it's all defined
<nature>
my understanding of nix is not yet on point ^^'
<fionn_>
symphorien: thank you, didn't realise there was a man page :)
<siraben>
If any more changes need to be made let me know
<nature>
lassulus: So I have startx no such file or directory error
<lassulus>
ah, there is a /bin/ missing
<lassulus>
should be ${pkgs.xorg.xinit}/bin/startx ${xinitrc}
<nature>
lassulus: It worked! :D
<lassulus>
wuhuu
<nature>
ok so if I understood we created a package named startWm which just runs startx ?
<lassulus>
yes, basically a wrapper around startx
<nature>
okok
<nature>
now
<nature>
last step, how do I launch startWm after loging in ?
<nature>
with displayManager.sessionCommands ?
<lassulus>
any displayManager.* option won't take effect, since you don't have a displaymanager :D
<lassulus>
so there needs to be another way
<nature>
oh okok even with the fact that I have displayManager.startx.enable ?
drdee has joined #nixos
<lassulus>
yes, startx is not really a displaymanager. it shouldn't really be in that category but yeah :D
<lassulus>
it acts as one I guess
<nature>
okok haha, so should I look for how to start a program at boot in Nixos ?
<lassulus>
so you could do it via your bashrc which is run when your shell loads. you could add a systemd user service which would start when your user session begins
<lassulus>
well the problem is, it's not really at boot. its more like after login. for boot you could use a normal systemd service
<nature>
oh right
<nature>
let me check when I run startx in my arch config
shibboleth has quit [Remote host closed the connection]
<nature>
ok yes it was in my .zprofile
<nature>
so now how do I manage dotfiles from nix ? ^^'
<nature>
I've read somewhere about home-manager
gthm has quit [Quit: leaving]
<lassulus>
ah, right. totally forgot about home-manager
<lassulus>
it can also handle your .xinitrc so you wouldn't need the wrapper :D
<nature>
should I go with that or is there a more vanilla way of doing this ?
<lassulus>
hmm, the vanilla way would be to extend the global shell config. Its a bit hacky
<mokulus>
you want startx with nix?
<nature>
okok, I'll go read up on home manager then
romanofski_ has quit [Ping timeout: 240 seconds]
<nature>
huh I guess I'll startx from my .bash_profile / .zprofile no ?
<eeva>
What's the best place to discuss (potential) nix bugs?
<mokulus>
have you tried: services.xserver.displayManager.startx.enable = true;
gthm__ is now known as gthm
o1lo01ol1o has quit [Remote host closed the connection]
<nature>
mokulus: yes that's what I tried first and it didn't work
<nature>
but I don't have a xinitrc in my home folder tho
<gthm>
nature: I'd suggest not managing dotfiles with home-manager. I tried it and while it does what you expect, it's frustrating to use it on files you edit as $HOME/.bashrc (or whatever) will be read-only so you have to edit the "source" file and run home-manager switch between edits
drdee has quit [Quit: Leaving]
<eeva>
gthm: otoh, you'll prevent random commands to make changes to your dotfiles without you noticing.
<simonpe^^>
I think I need an impure function, or how would I grab $PWD in a nix-shell to pass as an argument to a nix-function?
<mokulus>
I recommend using stow, I even wrote my own simple stow clone
andi- has joined #nixos
<gthm>
eeva: yes. I haven't found that to be a big problem, but maybe I'm just lucky with the software I run
<eeva>
What I like with solutions like home-manager is that it makes it easy to replicate (and update) config to several hosts
<eeva>
I used to git + stow, but frankly, I prefer home-manager nowadays.
<nature>
I quite like the HN solution gthm mentionned
hiciu has joined #nixos
<nature>
lassulus: anyway thanks, you've been really helpful :)
<lassulus>
np, btw I manage all my dotfiles via wrappers like the one we wrote. but maybe thats a little bit weird :D
<nature>
I understand the wrapper idea, really allows you to have the full config in nix right ?
<lassulus>
yes, I have some config in $HOME buts it more of an accident. and you can't stop some programs just putting their config there
fionn_ has quit [Ping timeout: 260 seconds]
<lassulus>
but most of it is in my configuration.nix
<nature>
and now more of a practical question, since I am happy with this config, when you do a brand new install you just copy over your configuration.nix, nixos-rebuild switch ?
<lassulus>
more or less, yes. I usually do a minimal install, reboot, then copy the config over and run nixos-rebuild switch
<gthm>
more or less. I also setup the config files with the method above
<siraben>
Where's a good place to look at currently failing builds in nixpkgs?
<gthm>
I git clone my nix files to some location, then symlink /etc/nixos/configuration.nix to the file that describes that machine's config, then nixos-rebuild switch
<nature>
okok perfect then, thanks gthm and lassulus, I'll be installing nixos on my laptop later tonight or tomorrow evening :D
<gthm>
good luck!
Aesth has joined #nixos
<srk>
fun thing you can do is something like NIXOS_CONFIG=laptop.nix nixos-rebuild switch --target-host ssh://laptop to "install" from another computer
<nature>
okok cause I was asking compared to your one-liner :p
<nature>
But yeas I understand that it's for an array of machines, and cleaner as well
karolus has joined #nixos
<srk>
pretty much, at the cost of additional complexity
<srk>
also morph, nixus
<nature>
yes, so if you just have let's say another rpi at home running nixos you're probably better off with your one-liner
Rusty1 has joined #nixos
sangoma has quit [Ping timeout: 240 seconds]
<typetetris>
Looks like `(haskellPackages.override {...}) .override {...}` doesn't work, it only gets one bunch of overrides? Thats correct, or am I doing something wrong?
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJzUo
<nij>
Q: I like the appearance of the default terminal nixos provides before running `startx`. I hope to also use that settings after `startx`. What should I do?
alp has joined #nixos
malook has quit [Quit: malook]
<siraben>
Will maintainers be notified when an issue with their package arises?
ap29600 has quit [Ping timeout: 240 seconds]
fszdg[m] has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
ap29600 has joined #nixos
<siraben>
srk: Can I run GC on a weekly basis?
<srk>
sure, why not :)
<srk>
I prefer to run manually when I'm not working on anything so I don't mind loosing caches
<siraben>
srk: How would I be able to run it weekly automatically?
<siraben>
Doesn't seem to have a nixos option
<hexa->
siraben: nixos-option nix.gc.dates
<{^_^}>
[nixpkgs] @Infinisil merged pull request #94145 → ripcord: set RIPCORD_ALLOW_UPDATES=0 to disable attempts to auto-update → https://git.io/JJuw3
<{^_^}>
[nixpkgs] @koozz opened pull request #94173 → mgit: Init at 0.1.10 → https://git.io/JJzqp
gustavderdrache has joined #nixos
o1lo01ol1o has joined #nixos
<dminuoso>
If I want a package to be unbroken, a merge request into haskell-updates is sufficient? Do I have to manually remove the broken attribute or is that taken care of automatically?
camsbury has joined #nixos
toraritte19 has joined #nixos
toraritte19 has left #nixos [#nixos]
proofofkeags has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @NeQuissimus pushed 4 commits to release-20.03: https://git.io/JJzYp
<Reiser>
I'm a little stuck. Inside a `nix-shell` with node/npm, pkgconfig, and all required libs, but `npm install` for a project is failing to find the required libraries
<{^_^}>
[nixpkgs] @dminuoso opened pull request #94174 → ip,bytebuild: disable test suites. → https://git.io/JJzOa
<Reiser>
I can find them by hand with `pkg-config`, and it installs on a non-nix machine just fine.
<dminuoso>
Can someone merge this small change, allowing nixos to be cleanly installed on Synology or VirtualBox with SCSI devices? https://github.com/NixOS/nixpkgs/pull/91316
<{^_^}>
#91316 (by dminuoso, 5 weeks ago, open): Support virtio_scsi devices on nixos-generate-config
<siraben>
How can I get the src that my derivation downloaded? It's in the store somewhere, right?
<gustavderdrache>
^ it's available as the .src attribute of a derivation
<siraben>
I see
gnidorah has joined #nixos
<siraben>
When I'm building on Mac, it seems that clang is used instead of GCC which leads to C code compiling differently, is it possible to change the compiler to GCC?
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Reiser>
Is it possible to generate a shell.nix on the fly? Perhaps from a shell you are already inside of?
<siraben>
Using gccStdenv.mkDerivation instead of stdenv.mkDerivation doesn't seem to work.
cosimone has joined #nixos
<maralorn>
dminuoso: You can just remove the package from the broken list in the hackage2nix.yaml in your PR against haskell-updates. The package will then be marked unbroken in the nix expression in the night after the merge.
<jared-w>
would be real cool if `:info` could print out all the inline comment documentation of a function. Be even cooler if it printed out the actual documentation too. Be evener cooliest if it printed the tl;dr summary of the docs and linked to the source code docs + the full docs
<jared-w>
(in a nix repl, that is)
<eyJhb>
Can I force nix-build --builders to fetch from the NixOS cache (as much as it can), instead of copying from my system to the host?
<jared-w>
eyJhb: something about enabling substitutes would do it, I think? I recall having to help setup our hydra to do something like that at one point
<eyJhb>
Maaybe, I would just have hoped it would be a `--` something, or envvar
<eyJhb>
NIX_GET_STUFF_FROM_CACHE=true :p
<yorick>
clever: I'm trying to debug no serial output after "Starting kernel ..."
<yorick>
clever: do you happen to know the correct earlycon?
kir0ul31 has quit [Quit: Connection closed]
cosimone has quit [Quit: Terminated!]
<veleiro>
So do flakes work with multiarch as expected?
jumper149 has joined #nixos
itshaydendev has quit [Quit: itshaydendev]
<evanjs>
So livepreview_engine suddenly doesn't work for me...
<evanjs>
I am currently getting "vim-latex-live-preview: Neither the explicitly set livepreview_engine NOR the defaults are executable."
<evanjs>
but the program it is set to (okular) is, erm, executable
<evanjs>
I wonder if I'm not supposed to be using an absolute path?
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
sangoma has quit [Read error: Connection reset by peer]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
OmnipotentEntity has joined #nixos
afreak has quit [Ping timeout: 265 seconds]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
bob_ has quit [Remote host closed the connection]
<ryantm>
Is there a command to see if a .drv can be realized from the nixos.org cache directly?
bob_ has joined #nixos
<gchristensen>
you could construct one with curl without too much ceremony
drakonis has joined #nixos
<{^_^}>
[nixpkgs] @evanjs opened pull request #94179 → pythonPackages.cot: init at 2.2.1 → https://git.io/JJz8j
<evanjs>
lassulus: added as a reviewer only because it's VM-ish stuffs that I might try to integrate with things laterrrr
<evanjs>
Has to be better than the hacky things I'm doing to get ESXi working now...
<lassulus>
?
<lassulus>
ah
camsbury has quit [Remote host closed the connection]
<evanjs>
yeah, right now I'm extracting the ova, modifying the ovf, updating the hashes in the mf and repackaging the ova 🙃
<bob_>
I hope this is the right place to ask about that: I think that there might be a problem with the wasmer package on nixpkgs-unstable. On nixos-20.03 the wasmer package runs wasm modules like expected but on nixpkgs-unstable it cannot run wasm modules as there appear to be no backends available. I think the issue might be that with the default cargo features in wasmer no backends are included in the compiled binary.
proofofkeags has joined #nixos
noudle has joined #nixos
mokulus has quit [Ping timeout: 246 seconds]
domogled has joined #nixos
justache has joined #nixos
nixuser has quit [Remote host closed the connection]
<eyJhb>
Getting this error - https://termbin.com/lotg , after I have ran gradle2nix on Signal Android app. Unsure what to do
ubert has quit [Remote host closed the connection]
waleee-cl has quit [Quit: Connection closed for inactivity]
ap29600 has quit [Read error: Connection reset by peer]
ap29600 has joined #nixos
nature has quit [Quit: WeeChat 2.9]
kw has joined #nixos
kw is now known as Guest79686
sangoma has joined #nixos
domogled has quit [Ping timeout: 240 seconds]
<Guest79686>
When I'm using haskellPackages in my configuration.nix, how do I override the default configureFlags for a package?
<Guest79686>
In this specific case, I want to compile xmobar with nl80211 support instead of iwlib, since iwlib is deprecated (and I'm using network-manager).
<srk>
haskell.lib.enableCabalFlag possibly?
<evanjs>
tried doing gdbserver/gdb with nvim on NixOS... wow.... wrappers make this fun :D
<Guest79686>
Because iwlib and nl80211 are mutually exclusive, had to use (haskell.lib.appendConfigureFlag (haskell.lib.removeConfigureFlag haskellPackages.xmobar "-fwith_iwlib")"-fwith_nl80211")
<clever>
but you can replace it with a chroot, if you know what $PATH should be
<bqv>
oh, right, i can just mount /nix here too
<eyJhb>
bqv: get over here, when you have time.
<eyJhb>
Ohh, when you fixed your MB :D
<bqv>
yeah yeah, let me just get actually booting first
<Guest79686>
Hmm, so xmobar libraryHaskellDepends change when the flags are changed. I can't tell which function in haskell.lib will fix that.
orivej has joined #nixos
<bqv>
nice, it works
<{^_^}>
[nixpkgs] @fgaz opened pull request #94183 → pt2-clone: 1.20 -> 1.22, add nixos test → https://git.io/JJzuv
<bqv>
i'll be back, if it worked
bqv has quit [Remote host closed the connection]
<Guest79686>
Need to add cereal and netlink, but "haskell.lib.addLibraryHaskellDepends" is not a thing.
<clever>
Guest79686: you can use overrideCabal to append to it, like you do with overrideAttrs
jbgi has joined #nixos
bqv has joined #nixos
<eyJhb>
bqv: worked?
<bqv>
yes
orivej has quit [Quit: No Ping reply in 180 seconds.]
<bqv>
after some network interface jiggery
<eyJhb>
So now you are up for gradle2nix bqv ! :D
<eyJhb>
Ahh, does not sound nice
<bqv>
i actually need to amend my config to get all this to match up again
orivej has joined #nixos
<eyJhb>
What did you actually do bqv ?
mrosenbe_ has quit [Read error: Connection reset by peer]
<bqv>
i just imperatively used ip and dhcpcd to get online
<eyJhb>
No no, generally
<eyJhb>
Just MB switch?
<bqv>
MB, cpu+cooler
<bqv>
ram
<bqv>
yeah i think that's it
<eyJhb>
Uhh niiice, all the big upgrades coming in bqv :D
drakonis_ has joined #nixos
<bqv>
yee
<bqv>
at the very least, maybe now it won't randomly reboot constantly :)
drakonis2 has joined #nixos
drakonis1 has quit [Read error: Connection reset by peer]
Mateon2 has joined #nixos
knupfer has quit [Ping timeout: 244 seconds]
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon2 is now known as Mateon1
drakonis2 has quit [Read error: Connection reset by peer]
mrosenbe has joined #nixos
drakonis2 has joined #nixos
<{^_^}>
[nixpkgs] @vcunat opened pull request #94184 → nss: switch the default to 3.44 → https://git.io/JJzuw
knupfer has joined #nixos
<moet>
how can i enable doJailbreak and dontCheck for all packages? is it possible to set these as defaults somewhere, like `{ dontCheck = true; jailbreak = true; }`?
drakonis_ has quit [Ping timeout: 272 seconds]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<moet>
(this is a question about the nix haskell infra)
<clever>
moet: you can use a haskell overlay to mutate the mkDerivation function that everything goes thru
<buffet>
or any way to generate something similra to `man configuration.nix` for them?
<NobbZ[m]>
"nixos-option" or nixOS.org/nixos/options.html
maier has joined #nixos
<ajs124>
buffet: you mean their value or newly introduced options?
<buffet>
coredumps on error
<buffet>
any way to create some sort of manpage or pdf from it?
maier has quit [Ping timeout: 256 seconds]
cole-h has quit [Quit: Goodbye]
orivej has quit [Quit: No Ping reply in 180 seconds.]
urkk has quit [Ping timeout: 264 seconds]
lordcirth_ has joined #nixos
orivej has joined #nixos
<{^_^}>
[nixpkgs] @fgaz opened pull request #94187 → ft2-clone: 1.26 -> 1.27, add a test → https://git.io/JJzzr
jbgi has quit [Ping timeout: 256 seconds]
bob_ has quit [Remote host closed the connection]
<zeta_0>
i setup lorri to work with ghc.nix. when i create a haskell file and open it ghcide works fine, but whenever i open one of ghc's haskell files, ghcide breaks and throws the `directory not found error`
lordcirth__ has quit [Ping timeout: 260 seconds]
<zeta_0>
hmm
<zeta_0>
i showed this issue in the #ghc channel, i figured i'd show the issue here in #nixos as well, since this issue is also nix related
moet has quit [Ping timeout: 246 seconds]
Guest79686 has quit [Ping timeout: 245 seconds]
proofofkeags has quit [Remote host closed the connection]
<Mic92>
zeta_0: strace -f -o /tmp/trace ghcide
<Mic92>
to figure out which directory is not found
kim0 has joined #nixos
moet has joined #nixos
noudle has joined #nixos
leotaku has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #94181 → treewide: use nix-update updateScript for packages I maintain → https://git.io/JJz00
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JJzgr
<Guest64603>
I just installed NixOS. I have the graphical KDE environment up and running and have managed to turn on bluetooth. When I go to the Devices list, it finds a bunch of bluetooth devices nearby, but not my mouse. The mouse pairs correctly with my other computer though. How do I troubleshoot?
<zeta_0>
gchristensen: i have a quick question, i could not find any online documentation on `pkgs.mkShell` that's used with lorri in the nixos wiki, so could you explain to me what `mkShell` does? and do i need to implement `mkShell` in this shell.nix file of the ghc.nix repo( https://github.com/alpmestan/ghc.nix/blob/master/default.nix )? https://dpaste.org/vysR
meh` has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 256 seconds]
cosimone has quit [Quit: Quit.]
gxt has quit [Remote host closed the connection]
aleph- has joined #nixos
gxt has joined #nixos
urkk has joined #nixos
<buffet>
infinisil, oh thats hot, thanks
dermetfan has joined #nixos
Guest64603 has quit [Remote host closed the connection]
<CRTified[m]>
Hi, I want to package lottieconverter (a tool needed to convert animated telegram stickers, e.g. needed for mautrix-telegram), which in turn requires the rlottie library. Should I add them in separate PRs, or should I add them in one PR (but two commits)?
<{^_^}>
[nixpkgs] @marsam pushed commit from @doronbehar to master « sile: 0.10.4 -> 0.10.9 (#94168) »: https://git.io/JJzoz
cosimone has quit [Ping timeout: 260 seconds]
maier has quit [Ping timeout: 256 seconds]
<CRTified[m]>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
gthm has joined #nixos
orivej_ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
Neo--- has quit [Ping timeout: 256 seconds]
<KarlJoad>
,locate pavucontrol
<{^_^}>
Found in packages: cdesktopenv, pavucontrol
tolja[m] has joined #nixos
<buffet>
hey, im trying to manage simple-nixos-mailserver via niv, however, when i add it to `imports` i get outPath not defined
<buffet>
outPath is somewhere in their niv stuff
<buffet>
any idea what causes that or how i could fix that?
<pamplemousse>
I have an ARM binary that I am trying to run from my host (x86_64)
<pamplemousse>
I tried to use `qemu`, but keep hitting a `/lib/ld-linux.so.3: No such file or directory`
fendor has quit [Read error: Connection reset by peer]
<pamplemousse>
After some research, I found the `boot.binfmt.emulatedSystem` option, but I still get the same error
<pamplemousse>
I guess I am missing the target libraries, but I dunno where to find them...
titano has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
alp has joined #nixos
KarlJoad has joined #nixos
phreedom has quit [Ping timeout: 240 seconds]
mattlevan has joined #nixos
<mattlevan>
Hi guys, how do I get the SHA256 hash for a particular vscode extension?
<mattlevan>
nix-prefetch-url?
<ryantm>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<mattlevan>
I'll give that a try, one moment...
<{^_^}>
[nixpkgs] @CRTified opened pull request #94197 → LottieConverter: init at r0.1.1 & rlottie: init at v0.1 → https://git.io/JJziZ
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJzin
<KarlJoad>
mattlevan: `nix-prefetch-<thing> <URL>` is what does it, as far as I know.
<DigitalKiwi>
i never had good luck with the prefetch ones
ap29600 has quit [Ping timeout: 246 seconds]
erasmas has quit [Quit: leaving]
KarlJoad has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<mattlevan>
Thanks @KarlJoad.
lsix has quit [Quit: WeeChat 2.9]
<{^_^}>
[nixpkgs] @lilyball opened pull request #94198 → stdenv.mkDerivation: Support argument being a fixed-point function (self: { … }) instead of rec { … } → https://git.io/JJzip
<{^_^}>
[nixpkgs] @rycee pushed commit from @LouisDK1 to master « hunspell-dicts: add support for Danish dictionary »: https://git.io/JJzPF
<{^_^}>
[nixpkgs] @rycee closed pull request #93651 → hunspell-dicts: add support for Danish dictionary → https://git.io/JJlGc
o1lo01ol1o has quit [Ping timeout: 246 seconds]
ezemtsov has quit [Ping timeout: 240 seconds]
asymptotically has quit [Quit: Leaving]
<mattlevan>
@DigitalKiwi I actually tried building vscode with nss 3.44 but it was an invalid attribute/param.
<DigitalKiwi>
hmm idk then
<DigitalKiwi>
have you considered the emacs operating system
<mattlevan>
Very funny... heh heh heh.
* DigitalKiwi
is a fan of doom-emacs
<mattlevan>
I don't know, there's just too much upfront time I'd have to invest.
<mattlevan>
It's the same reason why I'm using GNOME with pop-shell for tiling instead of something like i3, bspwm, etc.
noudle has quit [Ping timeout: 264 seconds]
* DigitalKiwi
uses xmonad+plasma5 :D
<DigitalKiwi>
if anyone does want to use doom-emacs it starts with a pretty good base all you do is uncomment the things you want in the example config
<ajs124>
master 👀 is unstable-small not bleeding edge enough for you?
<DigitalKiwi>
living life on the hemorrhaging edge
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
<ajs124>
I hope you didn't try to rebuild when someone (cough) recently broke that lvm thing
<DigitalKiwi>
would it affect me if i don't use lvm
<ajs124>
half of unstable-small was broken
<DigitalKiwi>
fun
<ajs124>
ye. I'll try harder next time to break all of it :P
<mattlevan>
Haha I'm just on nixos-unstable...
<ajs124>
anyway, I'll head out. mattlevan it shouldn't take too long. Why are you not on a release channel, in the first place? This is only broken on unstable.
<mattlevan>
Mostly because I'm retarded, but also because I wanted an easy way to run GNOME 3.36.. :(
<mattlevan>
I'd be really happy to learn how to use nss_3_44 in atomEnv in the callPackage ./generic.nix in vscode.nix.
<DigitalKiwi>
you could do like my previous gist but reversed
<DigitalKiwi>
where you use nixos-20.03 channel but nixos-unstable for gnome
<mattlevan>
I thought it was a little tricky because GNOME is not just included in the environment.systemPackages list.
develCuy has quit [Quit: No Ping reply in 180 seconds.]
<mattlevan>
It's a part of the services "object" (?).
<DigitalKiwi>
oh, maybe, might have to use overlay for that
<mattlevan>
Is that what you call it? An object? Apologies for lack of Nix fluency.