<alex[m]18>
hi all, i'm trying to set up a simple environment to learn common lisp, but i don't quite know where to start. i'd like to use doom-emacs, but i'm not sure how to make doom's lisp packages play well with nix. what's the best practice here?
alp has quit [Ping timeout: 272 seconds]
sbetrium has quit [Quit: sbetrium]
LnL has quit [Quit: exit 1]
pjt_tmp has quit [Ping timeout: 264 seconds]
pjt_tmp has joined #nixos
<iqubic>
So, how the hell do I set up ZFS on the new system?
<{^_^}>
[nixpkgs] @evanjs opened pull request #97058 → buildSupport.rust: fix typo in verifyCargoDeps message → https://git.io/JU3nA
<cole-h>
iqubic: Please watch your language in here :^)
<{^_^}>
[nixpkgs] @sikmir opened pull request #97063 → cudatext: init at 1.110.0 → https://git.io/JU3l9
<iqubic>
Why do you have local, system, and user as three separate subsections of rpool?
dbmikus has quit [Ping timeout: 256 seconds]
maier has joined #nixos
gv has quit [Remote host closed the connection]
gv has joined #nixos
LnL has joined #nixos
LnL has quit [Changing host]
LnL has joined #nixos
rajivr has joined #nixos
aleph- has quit [Quit: WeeChat info:version]
aleph- has joined #nixos
maier has quit [Ping timeout: 265 seconds]
<iqubic>
cole-h: Did you see my question?
fendor_ has joined #nixos
<cole-h>
No, because I'm not glued to IRC :^) If you scroll up just a little bit, you'll see I note that system and user should be backed up, while local shouldn't be backed up.
<cole-h>
(Scroll up in the README, that is)
<cole-h>
system -> system configuration/state; local -> basically just the nix store, because that doesn't need to be backed up since Nix is so declarative; user -> user homes
fendor has quit [Ping timeout: 246 seconds]
<iqubic>
cole-h: I think I can subscribe to that philosophy.
<cole-h>
Where else should it go? The system has yet to be installed, so it's basically what you'd do for any other NixOS installation. Mount root to /mnt, and any other descendents as necessary.
tobiasBora0 has quit [Quit: WeeChat 2.7.1]
<iqubic>
When do I tell the system that rpool/local/nix should be mounted to /nix on the installed system?
waleee-cl has quit [Quit: Connection closed for inactivity]
<cole-h>
nixos-generate
<cole-h>
nixos-generate-config*
<cole-h>
will handle that for you
<cole-h>
And place it in the generated hardware-configuration.nix
<iqubic>
Oh. Cool. That sounds great.
<cole-h>
So, once you have it mounted to /mnt/nix, nixos-generate-config will do some magic and detect that you want rpool/local/nix to be mounted at /nix on the system
<iqubic>
I know this because I can see my SSD in lsblk now. It turns out that the BIOS of this Dell Latitude 3400 has an option for SATA mode or RAID mode. Once I changed the setting from the RAID default to the SATA mode, everything worked.
<worldofpeace>
cole-h: I think you mean like nix build --expr?
<energizer>
is there `nix build --expr`?
<energizer>
i dont see it on 20.03
<cole-h>
Indeed, thanks wop! worldofpeace++
<{^_^}>
worldofpeace's karma got increased to 0b10110011
<cole-h>
Kinda annoying how I have to make it --impure, though...
<worldofpeace>
so I guess that's my coined initials of my first (and only) name. heh, could've been wap
sbetrium has quit [Quit: sbetrium]
<worldofpeace>
yeah, but <nixpkgs> is a bit evil
<cole-h>
I'm actually not using nixpkgs at all, it was just for example's sake.
<cole-h>
`nix build --expr '(import ./compat).callPackage ./pkg.nix {}'`, where ./compat uses flake-compat to expose my overlayed packages from my flake
<energizer>
what nix version introduces `nix build --expr`?
<cole-h>
Pretty sure it's been there since nix(1) was available
<worldofpeace>
cole-h: flake-compat is a cool thingy
<cole-h>
worldofpeace: And also, embarassingly, I forgot I asked you about flakes materials and so didn't refer to the stuff you linked me a while back at all 😬
<worldofpeace>
energizer: I believe cole means that even nix-build had a long version of -E --expr also.
<worldofpeace>
I don't see any tags to reference on github tho
<cole-h>
Well
<cole-h>
Huh :P
<cole-h>
Well, it's existed in `nixUnstable` since I started using flakes a few weeks ago lol
sbetrium has joined #nixos
<cole-h>
So it's probably always existed in nixFlakes (and nixUnstable after flakes merged)
Wharncliffe has quit [Quit: Lost terminal]
<cole-h>
worldofpeace: I'm curious: have you reinstalled your system since switching to flakes?
<cole-h>
I'm wondering how it would work, because `nixos-install` doesn't support flakes yet...
<worldofpeace>
cole-h: lol, nixos users never reinstall. the computer dies first or gets replaced. I haven't, and I'm pretty sure you wouldn't be able to do so because nixos-install doesn't support it :(
<samueldr>
cole-h: I believe the differences is *when* it expands, no?
<julm>
cole-h: AFAIK with trap 'echo $foo' EXIT; the expansion is when the trap runs instead of when it is defined
<cole-h>
julm: Also, minor suggestion: I don't like seeing @nixUnstable@, where `nixUnstable = pkgs.nixUnstable + "/bin/nix";` -- I'd much rather see `@nixUnstable@/bin/nix`, but that's just me
<cole-h>
Yeah, I was thinking it would be like `echo '$foo'`
<cole-h>
Where it doesn't expand at all
<julm>
cole-h: yes I've hesitated, I'll change
<cole-h>
I'm curious why that doesn't require a `--experimental-features 'nix-command flakes'`, though (seeing as nobody complained about that, and it supposedly working)
o1lo01ol1o has quit [Ping timeout: 258 seconds]
nixbitcoin has quit [Ping timeout: 240 seconds]
nixbitcoin has joined #nixos
LnL has quit [Quit: exit 1]
<julm>
hm, it may actually
<cole-h>
But `nixos-rebuild` doesn't appear to need it
LnL has joined #nixos
LnL has joined #nixos
LnL has quit [Changing host]
<julm>
because I've only used it on a system where: $ grep experimental-features /etc/nix/nix.conf
<julm>
experimental-features = nix-command flakes
<cole-h>
Right, would be a good idea to test without... But I'm still confused why nixos-rebuild doesn't need it either
<cole-h>
julm: Another suggestion would be to just put nixUnstable on PATH, instead of needing to substitute it in (thereby not growing the closure of nixos-install by the size of `nixUnstable`'s closure)
troydm has joined #nixos
<julm>
--> experimental Nix feature 'nix-command' is disabled; use '--experimental-features nix-command' to override
troydm has quit [Client Quit]
<cole-h>
Huh... maybe nixos-rebuild suffers from this problem as well?
<cole-h>
Since it appears you've already modified your nix.conf, mind testing that one too? Might also need a patch.
<julm>
cole-h: but, there is already a nix binary on PATH
<simpson>
fzakaria: There is a long tradition of using root as the single user in those situations. Don't do it. It's a horribly bad habit. You will likely injure yourself.
<iqubic>
I'm looking at the NixOS wiki and seeing this: "# Always use the by-id aliases for devices, otherwise ZFS can choke on imports."
<cole-h>
I had to override not one, not two, but THREE different packages
<cole-h>
To get this to build
<iqubic>
I'm planning on running `export DISK=...` but I don't know what value to give.
tsrt^ has quit [Ping timeout: 256 seconds]
<iqubic>
This is my second time trying this. The first time ZFS did in fact fail on imports.
tsrt^ has joined #nixos
<iqubic>
So, what value should I set DISK to?
jb55 has quit [Ping timeout: 240 seconds]
jb551 has joined #nixos
<cole-h>
iqubic: You could `ls -l /dev/disk/by-id` and see.
<iqubic>
Hmm, this is confusing as heck.
<cole-h>
DISK=/dev/disk/by-id/entire-disk
<iqubic>
I'm getting this: termbin.com/36uu
<cole-h>
And then you use $DISK-part1, $DISK-part2, and $DISK-part3
<iqubic>
Why do both nvme-eui... and nvme-PC both link to the same drive?
sbetrium has joined #nixos
<iqubic>
sda in this case is the live environment.
<cole-h>
I'd just go for nvme-PC
<iqubic>
Why use that over nvme-eui?
<Rusty1>
does blkid report same?
<cole-h>
Why do anything?
<cole-h>
I don't know. I just chose by instinct.
<cole-h>
Feel free to try nvme-eui -- there was no rationale behind my choice.
<iqubic>
blkid is also confusing me.
domogled has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
<cole-h>
Just make a choice and experiment :)
<iqubic>
I used dd to set the entire drive to zeros. There shouldn't be any trace of zfs yet. And even if there was, the first partition should be my boot partition.
<iqubic>
termbin.com/x1ac
<cole-h>
iqubic: Might need to wipefs it.
<iqubic>
How does wipefs work?
<iqubic>
Just `wipefs $DISK`?
<cole-h>
`man wipefs` :)
<bbigras>
or `tldr wipefs`
<iqubic>
Why is wipefs telling me that probing failed and my device is busy?
KarlJoad has left #nixos ["ERC (IRC client for Emacs 26.3)"]
LnL- has joined #nixos
LnL- has quit [Changing host]
LnL- has joined #nixos
LnL has quit [Ping timeout: 260 seconds]
KarlJoad has joined #nixos
<KarlJoad>
What is the preferred way of writing a shell.nix file? with mkShell or mkDerivation?
sbetrium has quit [Quit: sbetrium]
<iqubic>
So, I'm just about to run nixos-install on my new system. I want to use the same configuration.nix that my old laptop is using. Should I copy that over before or after running `nixos-install`?
<samueldr>
I don't think that there is a preferred way, KarlJoad, but mkShell basically wraps mkDerivation
<samueldr>
so, KarlJoad, I guess that if it fits your need, go with mkShell
<iqubic>
So, I've copied over my config. I now need to change the system.stateVersion variable. What shall I change it too?
sthiele[m]1 has left #nixos ["User left"]
<samueldr>
first, why do you "need" to change the system.stateVersion?
<samueldr>
or, why do you think that you need to?
<iqubic>
I just got a new laptop. My old laptop was using Nixos. I've just copied my configuration.nix from my old laptop to my new laptop. This is a configuration.nix I've customized a lot over the past years.
sbetrium has quit [Quit: sbetrium]
<iqubic>
However that particular configuration.nix that I copied from my old laptop has has the stateVersion set to 17.03.
<iqubic>
I'm using the 20.03 installer to install NixOS here. I think I should update the variable because it's not correct any more.
<samueldr>
the stateVersion variable is used to tell some parts of the nixos configuration that the state saved comes from an older setup
<samueldr>
since you're making a new configuration up, there is no state yet
<samueldr>
so you should be fine setting it to 20.03 or 20.09, depending on what you are installing
<samueldr>
but if you're sharing the config, like through a common git config, make sure that your new computer and your older computer have distinct ways to define their own stateVersion values
<samueldr>
and note that it will _not_ make it so you install unstable or stable
<samueldr>
it's only a reference for nixos moduels
<samueldr>
modules
<iqubic>
I'm not sharing the config. My only laptop is really really slow, overheats constantly and has numerous hardware issues. I'm getting rid of it.
<iqubic>
Basically, the display on my old laptop no longer works.
<iqubic>
Now, is there a way to tell nixos-install that I want it to pull all the dependencies from unstable?
sbetrium has joined #nixos
<cole-h>
Change your channels.
<iqubic>
Change my channels on the live system?
<iqubic>
I can't run nixos-enter, as there's no nixos system to enter into.
<{^_^}>
[nixpkgs] @vbgl pushed commit from @SCOTT-HAMILTON to master « vokosscreen-ng: init at 3.0.5 »: https://git.io/JU3aC
<dminuoso>
Then run `nix-channel --update nixos && nixos-rebuild switch`
sbetrium has quit [Quit: sbetrium]
<iqubic>
dminuoso: Do you think that would work on a live system?
<dminuoso>
Yes
<iqubic>
I'm doing an install on a new computer, using a custom config. I want to have all the programs and things listed in the config pulled from unstable, instead of 20.03.
n1tsu has joined #nixos
<iqubic>
By custom config, I mean "same config I've been using for the last 3 years."
<dminuoso>
Well if the config is specified via nix/home-manager it will work out.
<dminuoso>
If not, there could be some friction obviously
sascha has joined #nixos
<dminuoso>
Say if your program XYZ has changed its configuration format or location
<iqubic>
dminuoso: I understand.
sascha is now known as Guest1369
<dminuoso>
Also, if you change the entire nixos to unstable, keep in mind that it can be truly unstable.
<dminuoso>
If you just care about getting some packages out of unstable, then overlays might be more suitable
<iqubic>
dminuoso: I've been running on only unstable for the past year now.
<dminuoso>
If it works, great.
<iqubic>
Basically, my old laptop is dying. I have a new laptop that I want to use.
<dminuoso>
iqubic: re "do you think that would work", consider for a moment how a usual update works:
<iqubic>
I want to copy my current configuration.nix from the old laptop to the new one and use that.
<dminuoso>
A channel is just an URL pointing at some large attribute set. If you did a regular `nix-channel --update`, you change that attribute set. We're changing it too, it's no different.
<dminuoso>
There's no inherent version inside nixpkgs, apart from the few things relying on stateVersion
<dminuoso>
(Which you can keep as is)
<iqubic>
But I think that running `nixos-install` on the new machine will try to pull all the packages listed in system.enviromentPackages from 20.03, instead of from unstable.
mallox has joined #nixos
<dminuoso>
iqubic: It pulls them from the primary channel.
<dminuoso>
Whatever that is
dguibert has joined #nixos
sbetrium has joined #nixos
<iqubic>
Also, I had a little scp mishap where I overwrote the default configuration.nix that comes on the install iso. That wasn't very smart.
<srk>
:) that's pretty much empty anyway
<iqubic>
I know.
<iqubic>
So is it fine that I deleted it?
<iqubic>
Like will things still work?
<iqubic>
s/deleted/overwrote
<srk>
yes, unless you try to rebuild the iso
<iqubic>
Good. Good.
<srk>
nixos-rebuild the live installer I mean
<{^_^}>
[nixpkgs] @vbgl opened pull request #97087 → coqPackages.{paco,InfSeqExt,Cheerios,Verdi}: enable for Coq 8.12 → https://git.io/JU3aD
<iqubic>
Oh. Well, I'm going to want to run nixos-rebuild in the live environment to update the primary channel.
<iqubic>
That was my concern.
<iqubic>
Also, what's the URL for the unstable channel?
<srk>
that should be just nix-channel --update, no need to rebuild
<iqubic>
Oh. I see what's happening here. All of programs specified in system.enviromentPackages are being built right now. And since the primary channel is unstable, I think they are all being built from source. This could take a while.
civodul has joined #nixos
stew has left #nixos [#nixos]
alexherbo2 has joined #nixos
<iqubic>
nixos-install failed. I have no idea what went wrong. Can someone help me out? Here's the relevent log: https://dpaste.org/fYFa
<iqubic>
s/log/nixos-install output/
<immae>
iqubic: systemd-boot didn’t manage to get installed on your system
<immae>
> File system "/dev/block/259:1" has wrong type for an EFI System Partition (ESP).
<{^_^}>
error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):322:1
dguibert has quit [Remote host closed the connection]
growpotkin has joined #nixos
<BJTH>
Mic92 is it possible I can also find the avr-gcc binary in "buildPackages.gcc"?
mmohammadi98127 has joined #nixos
<Mic92>
BJTH: yes, `pkgsCross.avr.buildPackages.gcc` to be precise
<BJTH>
Yes, indeed. Now, I am not sure if what I am doing is considered correct. But I have a default.nix that I access via nix-shell. And in the mkShell part I have buildInputs = pkgsCross.avr.buildPackages.gcc
mmohammadi9812 has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @veprbl pushed commit from @r-ryantm to master « codeql: 2.2.4 -> 2.2.5 (#97097) »: https://git.io/JU3QB
M0-[m] has joined #nixos
elorm[m] has joined #nixos
DamienCassou has joined #nixos
Ox4A6F has joined #nixos
Ericson2314 has joined #nixos
Geezus42[m] has joined #nixos
Gleaken[m] has joined #nixos
HumanJohn[m] has joined #nixos
TheSirC[m] has joined #nixos
NobbZ[m] has joined #nixos
MilkManzJourDadd has joined #nixos
Minijackson[m] has joined #nixos
alaskacanyon[m] has joined #nixos
alexarice[m] has joined #nixos
aloiscochard[m] has joined #nixos
alj[m] has joined #nixos
alienpirate5 has joined #nixos
alexherbo2[m] has joined #nixos
alexfmpe has joined #nixos
aquarial has joined #nixos
aterius has joined #nixos
azazel has joined #nixos
bbigras has joined #nixos
betrion[m] has joined #nixos
bohan[m] has joined #nixos
bennofs[m] has joined #nixos
mcaju has joined #nixos
chrismatheson has joined #nixos
chreekat[m] has joined #nixos
colemickens has joined #nixos
danielrf[m] has joined #nixos
crazazy[m] has joined #nixos
domenkozar[m] has joined #nixos
davidak[m] has joined #nixos
dominicusin[m] has joined #nixos
dywedir[m] has joined #nixos
dxu[m] has joined #nixos
dtz has joined #nixos
eadwu[m] has joined #nixos
emily has joined #nixos
eddyb has joined #nixos
fgaz has joined #nixos
gnxlxnxx[m] has joined #nixos
GuillaumeChrel[m has joined #nixos
gsals[m] has joined #nixos
hpfr has joined #nixos
hsiktas[m] has joined #nixos
hiroshi[m] has joined #nixos
ilya-fedin has joined #nixos
codyopel has joined #nixos
jgart[m] has joined #nixos
jschievink has joined #nixos
kaychaks_riot has joined #nixos
jt35[m] has joined #nixos
jtojnar has joined #nixos
khassanov[m] has joined #nixos
Jake[m] has joined #nixos
kriteus119[m] has joined #nixos
lblasc[m] has joined #nixos
l_inus[m] has joined #nixos
manu12[m] has joined #nixos
marcus[m] has joined #nixos
mindtree[m] has joined #nixos
matthewbauer has joined #nixos
mukayu[m] has joined #nixos
Akshay[m]1 has joined #nixos
nilsirl[m] has joined #nixos
nikola[m] has joined #nixos
nh2[m] has joined #nixos
ongy[m] has joined #nixos
octowan[m] has joined #nixos
Niobium[m] has joined #nixos
pjt_014[m] has joined #nixos
mica[m] has joined #nixos
Poscat[m] has joined #nixos
rednaZ[m] has joined #nixos
l-as has joined #nixos
ryantm has joined #nixos
regnat has joined #nixos
yurb has joined #nixos
siraben has joined #nixos
sjn[m] has joined #nixos
aflatter[m] has joined #nixos
yoctocell[m] has joined #nixos
slavfox has joined #nixos
slby[m] has joined #nixos
snackoverflow[m] has joined #nixos
adray has joined #nixos
benmkw[m] has joined #nixos
srid has joined #nixos
anonymouserobot[ has joined #nixos
the_rajsun[m] has joined #nixos
srasu[m] has joined #nixos
stites[m] has joined #nixos
bpye has joined #nixos
theduke has joined #nixos
timokau[m] has joined #nixos
thefloweringash has joined #nixos
uzr[m] has joined #nixos
ArtemVorotnikov[ has joined #nixos
unclechu has joined #nixos
wak-work has joined #nixos
vaibhavsagar has joined #nixos
Yakulu[m] has joined #nixos
worldofpeace has joined #nixos
ZeroCostAbstrac4 has joined #nixos
cab404[m] has joined #nixos
derrecklowe[m] has joined #nixos
yutyo[m] has joined #nixos
fatjedi[m] has joined #nixos
aanderse has joined #nixos
ramses[m] has joined #nixos
puzzlewolf has joined #nixos
arcnmx has joined #nixos
jneplokh has joined #nixos
cdknight[m] has joined #nixos
flip[m] has joined #nixos
GerdFlaig[m] has joined #nixos
etokarev[m] has joined #nixos
felschr[m] has joined #nixos
hienergy[m] has joined #nixos
Dandellion has joined #nixos
yangm has joined #nixos
init_6 has joined #nixos
iudicael[m] has joined #nixos
raju[m] has joined #nixos
SpaghettiCthulhu has joined #nixos
feffe[m] has joined #nixos
hydridity[m] has joined #nixos
inquisitiv3 has joined #nixos
Guest23234 has joined #nixos
Hayden[m] has joined #nixos
grahamc[m] has joined #nixos
norbert[m]2 has joined #nixos
chvp has joined #nixos
jehova[m] has joined #nixos
ndarilek has joined #nixos
mkg20001 has joined #nixos
lina[m] has joined #nixos
johnazoidberg[m] has joined #nixos
jabarszcz[m] has joined #nixos
hsngrmpf[m] has joined #nixos
yusdacra[m] has joined #nixos
ma27[m] has joined #nixos
iamjackpreacher[ has joined #nixos
ks2048[m] has joined #nixos
Leira[m] has joined #nixos
li_matrix has joined #nixos
hazel[m] has joined #nixos
mt[m] has joined #nixos
gretax[m] has joined #nixos
cyberwolf[m] has joined #nixos
jolix[m] has joined #nixos
kekw736[m] has joined #nixos
mathyouguy has joined #nixos
martha[m] has joined #nixos
pinage404[m] has joined #nixos
Guest31244 has joined #nixos
lycium[m] has joined #nixos
Bino has joined #nixos
pheoxy has joined #nixos
michaelpj has joined #nixos
ptotter[m] has joined #nixos
neonfuz2 has joined #nixos
noderunner_[m] has joined #nixos
Hirmes[m] has joined #nixos
jlv has joined #nixos
hacker01[m] has joined #nixos
fjodor[m] has joined #nixos
printfn[m] has joined #nixos
ZerataX has joined #nixos
rschulman has joined #nixos
sebass[m] has joined #nixos
schlumpp[m] has joined #nixos
leonardp has joined #nixos
quidome[m] has joined #nixos
onewayonelife[m] has joined #nixos
Shyim[m] has joined #nixos
barn0 has joined #nixos
georg[m] has joined #nixos
omasanori[m] has joined #nixos
cjbassi[m] has joined #nixos
pitchzer0 has joined #nixos
srgancap[m] has joined #nixos
noneucat has joined #nixos
fzakaria1 has joined #nixos
not7cd[h][m] has joined #nixos
sparogy has joined #nixos
balsoft has joined #nixos
travelion[m] has joined #nixos
SourOatMilk[m] has joined #nixos
sshow[m] has joined #nixos
albert[m] has joined #nixos
Notkea[m] has joined #nixos
das-g[m] has joined #nixos
maralorn has joined #nixos
philipp[m] has joined #nixos
Ke has joined #nixos
hamishdehmer[m] has joined #nixos
JJJollyjim has joined #nixos
slabity has joined #nixos
trepetti[m] has joined #nixos
wedens[m] has joined #nixos
tskc[m]1 has joined #nixos
twelvecorporatet has joined #nixos
boomer[m] has joined #nixos
srxl has joined #nixos
unrooted[m] has joined #nixos
toto[m] has joined #nixos
callahad[m] has joined #nixos
rnhmjoj has joined #nixos
betty[m] has joined #nixos
qbit[m] has joined #nixos
shu9 has joined #nixos
dxb[m] has joined #nixos
rycee has joined #nixos
Valodim[m] has joined #nixos
leons has joined #nixos
johnburnham[m] has joined #nixos
grin[m] has joined #nixos
lurpahi has joined #nixos
axx has joined #nixos
symphorien[m] has joined #nixos
ftzm[m] has joined #nixos
nocent has joined #nixos
vgamma[m] has joined #nixos
kraem has joined #nixos
steakfan[m] has joined #nixos
ydlr[m] has joined #nixos
q3k[m] has joined #nixos
daddy_james[m] has joined #nixos
jojosch|Johannes has joined #nixos
kaitanie[m] has joined #nixos
moben has joined #nixos
musicmatze has joined #nixos
arturo[m] has joined #nixos
sonercirit[m] has joined #nixos
drozdziak1 has joined #nixos
ntnkwmkmnw[m] has joined #nixos
jankloogi[m] has joined #nixos
IslandUsurper[m] has joined #nixos
Viev[m] has joined #nixos
insidious[m] has joined #nixos
phirsch has joined #nixos
j4m3s[m] has joined #nixos
AutonomouseAndro has joined #nixos
infinisil-m has joined #nixos
waschtl[m] has joined #nixos
yvesf[m] has joined #nixos
tristan[m] has joined #nixos
boogiewoogie[m] has joined #nixos
noderunner[m] has joined #nixos
truby has joined #nixos
faya01[m] has joined #nixos
alex[m]6 has joined #nixos
joslain[m] has joined #nixos
nealean[m] has joined #nixos
kazzimazzi[m] has joined #nixos
tolja[m] has joined #nixos
JohannesArnold[m has joined #nixos
pachumicchu has joined #nixos
woobilicious[m] has joined #nixos
d8d910[m] has joined #nixos
billiozzi[m] has joined #nixos
Null_A[m] has joined #nixos
ngerstle[m] has joined #nixos
timclassic has joined #nixos
nicolas[m]1 has joined #nixos
tbenst[m] has joined #nixos
sreybastien[m] has joined #nixos
tobim[m] has joined #nixos
thequux[m] has joined #nixos
bloodyfish[m] has joined #nixos
CRTified[m] has joined #nixos
{Adam}[m] has joined #nixos
kyren has joined #nixos
spinlock[m] has joined #nixos
sernop[m] has joined #nixos
Julien[m] has joined #nixos
sbetrium has quit [Quit: sbetrium]
SuaveDandy has joined #nixos
sbetrium has joined #nixos
gustavderdrache has joined #nixos
<SuaveDandy>
Hallo, everynyan.
mmohammadi9812 has quit [Ping timeout: 246 seconds]
mmohammadi9812 has joined #nixos
<SuaveDandy>
Is there any point in installing NixOS on a laptop if the package manager is fail-safe and the laptop can use internal battery in the case of power outage?
<SuaveDandy>
*ZFS
<SuaveDandy>
NixOS on ZFS root.
<SuaveDandy>
I can't see any real gain and a big overhead. Sure, I have an SSD to not notice a performance hit but ZFS eats quite a bit of RAM.
<q3k[m]>
i mean, there's some features in ZFS you might want to use anyway
<SuaveDandy>
Like?
q_ink has joined #nixos
<q3k[m]>
compression, deduplication, integrity, pool quotas, zvols, zfs send/recv, ...
<SuaveDandy>
I was thinking of using F2FS because I heard it's fast.
<q3k[m]>
or snapshots
<SuaveDandy>
Deduplication needs a lot of RAM.
<SuaveDandy>
Nix manages snapshots.
Rusty1 has joined #nixos
<q3k[m]>
just of your configuration
<q3k[m]>
not your data
Jackneill has quit [Ping timeout: 260 seconds]
omneh has joined #nixos
omneh has joined #nixos
omneh has quit [Changing host]
<SuaveDandy>
But it preserves old versions of your packages.
<q3k[m]>
anyway, i'm not here to argue for ZFS, just saying that ZFS does have features that some people want, even on NixOS laptops
omnipotententity has quit [Read error: Connection reset by peer]
mmohammadi98120 has joined #nixos
<SuaveDandy>
Compression doesn't work with encrypted data.
<q3k[m]>
but it won't snapshot your homedir.
<SuaveDandy>
RAID isn't needed on a single-drive system.
mmohammadi9812 has quit [Ping timeout: 240 seconds]
<SuaveDandy>
You can still sync your homedir with the cloud or something.
<q3k[m]>
if you don't want it, don't use it
<SuaveDandy>
I'm just trying to understand if I really need it.
<SuaveDandy>
Ater all, it is catered to specific needs.
<clever>
SuaveDandy: you can make /nix a seperate dataset without zfs snapshots
<SuaveDandy>
How different do ZFS's and Nix's snapshot creation work anyway?
omneh has quit [Ping timeout: 240 seconds]
<clever>
SuaveDandy: nix doesnt make snapshots, it just has a list of packages that act as versions for a given thing, and you can delete anything thats not used
<adisbladis>
SuaveDandy: ZFS has a bunch of nice features regardless of what properties the package manager has. Full data checksumming for one.
<SuaveDandy>
Will it be useful on a laptop?
<clever>
i use zfs on my laptop
<adisbladis>
I used to run NixOS on XFS for some time on my laptop and a couple of times I ended up with a corrupted store (a bunch of 0b files) that I had to repair
<SuaveDandy>
Also, I'm worried about SSD's longevity and RAM usage.
homeLess2` has quit [Ping timeout: 264 seconds]
<adisbladis>
The only two file systems I would even consider are ZFS and btrfs
<adisbladis>
With a preference for the former
<adisbladis>
No other file systems deal with power loss very nicely
<SuaveDandy>
What if there's no power loss or extra drives?
<nahamu>
The benefits of ZFS generally outweigh the costs, even for laptop use cases.
<adisbladis>
This ^
<Taneb>
My work's Hydra server is definitely leaks database connection slots :(
<adisbladis>
Also ZFS RAM usage is a bit of a false meme.. You can tune the ARC to get very low memory usage.
<nahamu>
There's a reason that there's an overlap between NixOS users and ZFS users.
<SuaveDandy>
No power loss, no broken packages and no extra drives, to be precise.
<adisbladis>
SuaveDandy: Your laptop never runs out of battery? ;)
<SuaveDandy>
If it's still useful with these conditions then I'm in.
<SuaveDandy>
Well, duh.
orivej has quit [Ping timeout: 240 seconds]
<SuaveDandy>
It's more of a desktop PC, really.
<SuaveDandy>
I'm a homestar.
<nahamu>
What do you use it for?
<SuaveDandy>
EVERYTHING.
<q3k[m]>
as a counterpoint in this, i actually got my new nixos laptop install on ext4, instead of the previous ZFS
<nahamu>
If you don't want to use ZFS no one is going to make you. :)
<q3k[m]>
mostly because of me not liking how ARC behaved and not being able to tune it to my liking
<q3k[m]>
but it's really a personal preference
<q3k[m]>
you shouldn't trust people on IRC
<adisbladis>
Personally I only trust CoW file systems
corpix has joined #nixos
<adisbladis>
With full data checksumming
<nahamu>
But the random selection in #nixos who happen to be online right now are generally suggesting that it's a good idea.
<q3k[m]>
filesystems are a complex topic, but discussions about them tend to be very surface-level and quickly devolve into flamewars
<q3k[m]>
anyway ZFS is nice use it if you want to
<SuaveDandy>
Although maybe one day my laptop will run out of battery due to being outside for a longer time period.
<nahamu>
The more you care about your data, the more you should lean towards ZFS.
<adisbladis>
Just speaking from experience ext* and xfs corruption is a real thing that happens more often than you'd think
<q3k[m]>
it's not going to change much in the long term though
Jackneill has joined #nixos
<nahamu>
If you care more about raw performance than data integrity, use something else.
<nahamu>
That said, in SOME use cases, ZFS is a performance win too.
<adisbladis>
ZFS is not very "benchmarkable" ;)
<adisbladis>
I would love to see some longer running benchmarks that can really leverage the ARC
<q3k[m]>
filesystem benchmarks are generally difficult
omnipotententity has joined #nixos
<adisbladis>
Yeah
Julien[m] is now known as Julien[m]
<q3k[m]>
and in the end, even the most resilient filesystem is no replacement for backups
<q3k[m]>
(resiliency/redundancy and backups are generally two different things)
<SuaveDandy>
To summarize: I have no extra drives, I have a 250 GB SSD for a storage and 8 megs of RAM that I'd like to use for other stuff such as gaems, my laptop is unlikely to run out of battery.
mmohammadi9812 has quit [Ping timeout: 240 seconds]
q_ink has quit [Read error: Connection reset by peer]
<SuaveDandy>
Tho it's not guaranteed that it won't.
q_ink has joined #nixos
aexoxea has joined #nixos
<adisbladis>
SuaveDandy: At the end of the day it's a matter of trade-offs.
<adisbladis>
I've been running ZFS very successfuly on as little as 512M RAM
<SuaveDandy>
Really?
<clever>
zfs automatically limits itself to using a max of 50% of your ram
<adisbladis>
That required some tuning, but it's possible
<SuaveDandy>
You were talking about snapshots and checksumming. Where would it be useful if the power supply is expected to be consistent and if Nix saves old versions of packages?
<philipp[m]>
leonardp: Yes, need to for full -a functionality.
<philipp[m]>
Also the error is "Operation not supported", not denied.
<nahamu>
Denommus: you might be running an older version of node2nix That feature/documentation is from the latest commit in the repo.
<joesventek>
<joesventek>
There are a few libraries libX11 loads conditionally using dlopen(3). Shouldn't the nix store paths of the corresponding packages be put in libX11's RPATH? An example being libXcursor.
<Denommus>
nahamu: I see. Yeah, I'm running whatever is available @ nixos unstable
emacsomancer has joined #nixos
orivej has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JU3dQ
<{^_^}>
[nixpkgs] @peti pushed 923 commits to haskell-updates: https://git.io/JU3d5
sbetrium has quit [Quit: sbetrium]
<Denommus>
oh, the documentation is completely different on the 1.8.0 tag. Thanks, nahamu
<nahamu>
Denommus: Good luck!
<leonardp>
philipp: have you set acltype=posixacl on your zfs?
<philipp[m]>
No, it's off
<philipp[m]>
I should probably set it.
<leonardp>
try it, otherwise i have no cloue why it wouldnt work
orivej has quit [Ping timeout: 240 seconds]
sbetrium has joined #nixos
troydm has joined #nixos
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #97121 → kde applications: 20.08.0 -> 20.08.1 → https://git.io/JU3FL
<sephii>
I know it's easy to use a package from a specific source, eg. by adding a channel and then `import`ing its pkgs, but is there a way to do this with nixos modules?
justache has quit [Read error: Connection reset by peer]
justache has joined #nixos
<sephii>
manveru: thanks, I've never used imports so it's a bit new to me. How does nixos handle multiple imports that would expose the same module? Is there some kind of precedence?
<manveru>
it will probably conflict
<manveru>
you can exclude modules though, to avoid the conflict
SuaveDandy has joined #nixos
fendor has quit [Remote host closed the connection]
ericmoritz has joined #nixos
<SuaveDandy>
Guys. I would like to know.
<manveru>
like `disabledModules = [ "services/networking/consul.nix" ];`
<SuaveDandy>
When upgrading.
<SuaveDandy>
Does the amount of data double?
<SuaveDandy>
Because you keep the old packages as well.
<manveru>
SuaveDandy: potentially, yes
<simpson>
SuaveDandy: It depends on how old your current generations are, but in general, because generations have overlap, you'll only have a logarithmic amount of new packages.
<SuaveDandy>
But how is it better than ZFS's snaps?
<simpson>
It's a bit more intelligent than just a filesystem snapshot. There's integration with system services and other configuration.
<simpson>
Not exactly. Rather, each version's built from symlinks into a shared store.
<cransom>
there are hard link optimizations if the files are identical you can enable
<ericmoritz>
manveru: thanks!
<{^_^}>
[nixpkgs] @vdot0x23 opened pull request #97128 → vimPlugins.asyncomplete-vim: init at 2020-08-09 → https://git.io/JU3xG
<simpson>
Suppose that you have two generations which basically only have different versions of the Linux kernel, but otherwise have the same userland. Almost all of the userland is going to be shared between those generations.
<simpson>
SuaveDandy: auto-optimise-store in nix.conf
<SuaveDandy>
simpson: A bit more intelligent?
<simpson>
SuaveDandy: "If set to true, Nix automatically detects files in the store that have identical contents, and replaces them with hard links to a single copy. This saves disk space. If set to false (the default), you can still run nix-store --optimise to get rid of duplicate files." Quoting the manual's entire information about this flag.
<SuaveDandy>
Oh, and overall, less writes would be healthy for SSDs.
<simpson>
What about the Nix method implies extra writing to the drive, though? Unlinking old packages during GC doesn't require zeroing out the space.
<simpson>
I'll freely admit that we might have a constant few extra writes, but we don't have like 2x the writes of a binary distro just by having rollback.
<SuaveDandy>
NixOS is a source distro?
julm has quit [Ping timeout: 258 seconds]
<SuaveDandy>
Like Gentoo?
<qyliss>
It doesn't really make sense to describe NixOS as a source or binary distro. It's like a hybrid.
Gohla has joined #nixos
<SuaveDandy>
What's the compile speed. Is it slow?
<qyliss>
Most things are available in a binary cache, but you still have package options like USE in gentoo, and if you use those it'll automatically build from source instead
<SuaveDandy>
Hybrid?
<qyliss>
So how much you end up having to compile locally depends on how many packages you want to change options on and stuff
<sephii>
manveru: I'll try that, thanks!
<SuaveDandy>
What about Nix being more intelligent than ZFS? In which way?
<simpson>
qyliss' approach is valid. I'd go a different route: It normally doesn't make sense to talk about compile speed, because compile speed is the same on all distros. (Seriously, they all use GCC, after all!) But it's possible to look at NixOS as a source-only distro which has "fast" compilation; sometimes network bandwidth can be used to replace compile time, especially for popular packages in common
<simpson>
configurations.
<SuaveDandy>
Void and Alpine use musl.
<simpson>
ZFS is a filesystem. Nix is a package manager. It follows that they have totally different views of data.
<qyliss>
they still use gcc though
julm has joined #nixos
<SuaveDandy>
Ah. gcc, not glibc.
<SuaveDandy>
Well…
<SuaveDandy>
Yeah.
<simpson>
I'll take your point that GCC's not the *most* monocultural compiler artifact. How about GHC? Or Perl?
<SuaveDandy>
Oh, right, GHC.
<SuaveDandy>
I've heard about it somewhere.
<simpson>
Anyway (and I say this as somebody who does *not* like ZFS) there are times when ZFS is appropriate, but they're usually per-block-device problems that aren't relevant to the entire system. What Nix (and NixOS) offer is more neutral and generic, and doesn't require anything other than bland ext4.
<SuaveDandy>
I'm actually interested how much GNU is left in Alpine after they got rid of musl, coreutils and glibc.
<SuaveDandy>
I mean, not musl.
<SuaveDandy>
Inserted that for no reason.
davidv7_ has joined #nixos
<SuaveDandy>
coreutils and glibc. That's pretty much everything they got rid of. Oh, and they replaced Bash with Ash.
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
wak-work has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
<simpson>
Your browser's search function can hopefully highlight "debian testing", in that cluster in the center. nixpkgs stable is comparable to Debian testing but has many more packages; nixpkgs unstable has both more packages *and* more fresh packages.
Denommus has quit [Remote host closed the connection]
<simpson>
Nix is the package manager. NixOS is Nix managing a Linux kernel and some systemd configuration.
<SuaveDandy>
I heard that you can install Nix on any GNU distro. Is the integration not full?
<simpson>
The integration is complete WRT the POSIX API. But that's not everything that people expect. The way that GL works makes X11 integration sometimes unaccelerated.
<simpson>
Also, I don't know if we support GNU Hurd or other GNU-only setups (maybe Guix does?) but we generally require Linux as the kernel. I know that there's active work in #freebsd-nix to get FreeBSD working, and there's a community on Darwin using hybrid userlands.
<SuaveDandy>
I was referring to GNU/Linux, sorry.
<SuaveDandy>
I kno Hurd is unfinished as heck.
<simpson>
No worries, you're good.
sbetrium has quit [Quit: sbetrium]
<SuaveDandy>
It's interesting how GNU lack a functioning kernel so it has to rely on Linux or FreeBSDk.
<SuaveDandy>
Tho FreeBSDk was abandoned by Debian, unfortunately.
<SuaveDandy>
But hay, maybe they'll try OpenBSDk, who knows.
<kiitos>
what's the difference between 'nixpkgs-unstable', and 'nixos-unstable' branches in channels repository ?
<bbigras>
hello
<sephii>
Is there a way to unset `-I` in nixops? I've set it accidentally and I want to just use the default
<bbigras>
I wonder if nixpkgs-unstable doesn't include the os stuff
<etu>
kiitos: nixos-* channels are tested for OS-related things, like bootloaders
<cole-h>
kiitos: nixos-unstable -> must pass NixOS-specific tests to ensure e.g. grub doesn't make systems unbootable
<kiitos>
oh, okay!
<etu>
bbigras: All channels contains the entire nixpkgs, but requires different tests to pass
<cole-h>
And nixpkgs-unstable is just the latest successful evaluation of the master branch at a single point in time, that must succeed some reduced test set (IIRC)
<bbigras>
etu: ah gotcha. thanks
<kiitos>
is it okay to use 'nixpkgs-unstable' on nixos, or not recommended ? context: i would like couple of commits that are in nixpkgs-unstable, but not on nixos-unstable.
<cole-h>
For your system, I would say unrecommended. However, you can use nixpkgs-unstable to grab certain packages as necessary.
<sephii>
cole-h: I mean I set the nix search path with `nixops modify -d foobar -I baz`, and now I'd like to remove `baz` from the nix path. I ended up modifying the sqlite database directly, that worked ^^
bennofs_ has quit [Ping timeout: 240 seconds]
<cole-h>
sephii: Maybe file an issue against NixOps to see what the preferred route for that is
<sephii>
I've followed the guide to disable a module and replace it with one from nixos-unstable (https://nixos.org/manual/nixos/stable/#sec-replace-modules), but the module is referencing `pkgs.foobar`, which seems to be the package from the default nix path, not from unstable. How can I override this? I'm trying to override this one specifically:
<fzakaria>
Anyone try guix ? I was just reading a little about it yesterday. I'm happy with NixOS but happy to hear about it from a first hand account.
maier has joined #nixos
maier has quit [Ping timeout: 260 seconds]
<cole-h>
bqv uses guix (but on NixOS)
cole-h has quit [Quit: Goodbye]
sascha has joined #nixos
alp has quit [Ping timeout: 272 seconds]
sascha is now known as Guest98958
Guest98958 has quit [Client Quit]
mikeplus64 has quit [Ping timeout: 260 seconds]
mikeplus64 has joined #nixos
bqv has quit [Ping timeout: 240 seconds]
bqv has joined #nixos
zupo has joined #nixos
nickfornick has quit [Remote host closed the connection]
<{^_^}>
[cabal2nix] @peti pushed to master « giGstLibOverrides: hackage2nix discovers these packages as a null binding now »: https://git.io/JUsTW
ris has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JUsTz
<danderson>
hm. Is there an easy way for me to set up a passthrough nixpkgs package proxy?
<fzakaria>
wut guix on nixos?
<fzakaria>
lol
<danderson>
I'm using a couple derivations that hydra doesn't build (one for license reasons, I think; and one because I think hydra's just configured wrong but haven't had time to figure it out)
<danderson>
so my ideal thing would be something that I can configure as a channel, which passes through most requests to an upstream, but also keeps a couple derivations freshly built locally and can serve those when upstream misses
karthik has joined #nixos
karthik is now known as Guest83015
alexherbo2 has quit [Ping timeout: 260 seconds]
o1lo01ol1o has quit [Read error: Connection reset by peer]
<Guest83015>
Hi guys, I was trying to figure out what was the best way to get a startup script to run after my WM loads. It looks like .xsessionrc doesn't get picked up and I couldn't find anything in web searches except for some home-manager related things. Could you please point me in the right direction?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-neat-interpolation: update the override for the latest version »: https://git.io/JUsTQ
<tobiasBora0>
Hello, I've a few questions concerning nix flakes. In my flake.nix, I use "devShell = import ./shell.nix { inherit pkgs; };", which itself uses inputsFrom = [ XXX ], where XXX is exactly what I already wrote in my "packages" set in flake.nix. So my question is: is there a cleaner way to refer, from the shell.nix to the packages whose derivation is already present in the flake.nix?
inkbottle has quit [Ping timeout: 240 seconds]
inkbottle has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable failing builds to avoid evaluation errors on Hydra »: https://git.io/JUskZ
<iqubic>
immae: Sorry for not respondiing last night. I wasn't sure how long the nixos-install was going to take, so I set it running and just went to sleep. Turns out the partition type being wrong was the only issue that I had with systemd-boot not getting installed.
Denommus has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo26 has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JUsIc
cosimone has joined #nixos
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo26 is now known as alexherbo2
mariatsji has quit [Remote host closed the connection]
<bbigras>
I'm using `use nix -p postgresql_12\nlayout postgres` in a .envrc but my shell.nix doesn't seem to be used anymore (like it was only with `use nix`). Do I need to specify the shell.nix file?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @saschagrunert to master « ginkgo: 1.14.0 -> 1.14.1 »: https://git.io/JUsq7
xcmw has joined #nixos
somniac[m] has joined #nixos
<bbigras>
ah it seems `-p` and path is exclusive with nix-shell
<{^_^}>
[nixos-homepage] @garbas pushed 51 commits to integrate-nix-dev: https://git.io/JUsqb
<bbigras>
and I'm dumb, I just needed to add postgresql_12 to my shell.nix's buildInputs. it's not needed for the layout part.
<catern>
so is there a tool which takes a package from pip and generates the corresponding Nix packages and directories *in Nixpkgs* in a way that's suitable for upstreaming (with some manual edits)?
<catern>
it would be convenient for me as a starting point for packaging...
<iqubic>
Nearly done with switching to my new computer. I just have to wait for the emacs overlay I have to install EXWM, and all the emacs packages I have listed in my .emacs file.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
remo has quit [Remote host closed the connection]
buckley310 has quit [Quit: Connection closed for inactivity]
trevoke has joined #nixos
<trevoke>
Hi folks! I just installed NixOS on a 2011 iMac. Almost everything is great, the install has been smoother than most I remember. I have one strange issue - some tooltips are garbled, the text does not render correctly. This does not happen to all tooltips. I'm not completely sure how to search for this online...
<trevoke>
So - have you come across this / what's the fix / what should I research? (I should mention I'm using KDE5)
<iqubic>
*hello
<iqubic>
Hell
<iqubic>
Alright... So, I'm in a bit of a pickle here. lightdm is refusing to start my session.
<q3k[m]>
trevoke: did you run any other linux distribution on this hardware before? first instinct is that this might be a driver/gpu bug
<q3k[m]>
trevoke: if it's nvidia, maybe nouveau is acting up?
<trevoke>
q3k[m]: this isn't Nvidia, no. I.. Uh .... I don't remember. I've had this computer ten years, I believe I installed Gentoo on it at some point but I don't recall.
<trevoke>
iqubic: any error messages?
<q3k[m]>
trevoke: no other idea then, sorry.
<iqubic>
trevoke: lightdm just tells me: "failed to start session"
<trevoke>
q3k[m]: do you think this could be related to the "nomodeset" thing that the installation manual refers to? I didn't use this when I booted the NixOS livecd and things worked fine (or at least, so I thought -- as I said, it doesn't happen to every tooltip)
<trevoke>
iqubic: what's the last thing you touched around X / window managers / desktop launchers ?
<trevoke>
iqubic: so I'm *super-new* to NixOS, but uh dumb question, you ran nixos-rebuild switch?
<q3k[m]>
trevoke: i can't say either way. i wouldn't be surprised if it would, so it might be worth a shot. i'm unfortunately not very well versed in the current linux graphics stack.
<iqubic>
trevoke: I have.
salumu has joined #nixos
<trevoke>
Hrrrrrrm. and you're not trying to launch X as root, right?
Extends has quit [Quit: leaving]
<iqubic>
Nope.
<{^_^}>
[nixpkgs] @catern opened pull request #97155 → pythonPackages.pdoc3: init at 0.9.1 → https://git.io/JUsmQ
<trevoke>
or rather, not trying to launch the _client_ as root, but everything should be launched for you
<trevoke>
aaaaaand if you reboot? (in theory shouldn't be needed, I think the service should be started for you). Oh hey, additional question, when and how do you see that message?
<iqubic>
I type in my username and password into lightdm, and then it quickly displays some text on screen, below the password entry box saying: "failed to start session"
<salumu>
anyone can help point to the steps to submit a pull request (updating the version of packages in nixpkgs)? I've submitted this for avro-cpp, https://github.com/NixOS/nixpkgs/pull/97154
<iqubic>
I'm trying to run "home-manager switch" and I'm getting this "error: file 'home-manager/home-manager/home-manager.nix was not found in the Nix search path (add it using $NIX_PATH or -I)"
<iqubic>
So, that's worrying.
<trevoke>
If lightdm boots up properly then X is started properly and lightdm is started properly, so it's a matter of making sure that it knows what to do once you logged in
<iqubic>
Yeah.
<iqubic>
I want to run "home-manager switch" once more to make sure that everything's fine, but I can't.
<trevoke>
iqubic: if you hit ctrl-alt-F1 you'll get to a terminal
<iqubic>
I know.
<iqubic>
I just did that.
<trevoke>
and that doesn't work?
<iqubic>
No, I can get to a tty.
<trevoke>
(or rather, why can't you run it in there?)
<iqubic>
Did you see the message I posted above?
<iqubic>
I'm trying to run "home-manager switch" and I'm getting this...
<trevoke>
I did; I found the github page for home-manager and I'm reading the readme as fast as I can
<trevoke>
But you said "you can't run it again" -- ah! maybe I misunderstand. In my words, you CAN run it again, but it errors out
<trevoke>
Fair description?
<iqubic>
Yes.
<xcmw>
What does this error mean? I am trying to install nix without root on Ubuntu 20.04.1 LTS with nix-user-chroot https://pastebin.pl/view/raw/3722bcfa
<iqubic>
I managed to run "home-manager switch" once on this new machine, but then I rebooted, and now I get errors.
<iqubic>
I recall that I had these same errors on the last machine I installed Home-Manager on, but I don't recall the solution.
kreyren has joined #nixos
<trevoke>
So, according to the home-manager readme, you also have "services.xserver.enable = true" in your system config? (I'd guess so, since you have X running)
<iqubic>
Yes.
<iqubic>
I have no idea what the issue is here.
<trevoke>
iqubic: I think I've reached the end of the help I can provide - if you have rebooted already then everything should be as indicated in the home manager readme .. Have you added the hm-session-vars.sh file to your bash-profile / shell profile?
<iqubic>
No. But I don't think I need to, as I'm having home-manager manage my shell configuration.
<trevoke>
xcmw: I'm not sure -- the key is "cross-device link", so that might be the thing to research online / in the installation manual / in the troubleshooting page ?
<judson>
IIRC, home-manager gives me headaches much like the error you're reporting if nixpkgs= is included in the NIX_PATH
<judson>
See what happens if you change it so that the 2nd entry is removed?
<iqubic>
I don't want to break a working setup
<tobiasBora0>
Hello, I'm trying to use https://www.mankier.com/8/nixos-build-vms to create some test VM, and I'd like to do two things. The first thing I'd like to do is to configure temporarily *multiples* hostname to the VM, so that I can try them. I saw deployment.targetHost = "test1.example.net";, but it does not accept a list. Is there something like deployment.targetHosts = ["www.ex.net" "git.ex.net"];?
<trevoke>
iqubic: it's easy enough to re-add that entry in the NIX_PATH later, isn't it?
<judson>
Or even change it for the one invocation
<iqubic>
I'm not going to mess with it, even if it easy to fix.
<judson>
Can you still not run home-manager though?
<Guest48>
Hi there, I was trying to build my first Nix package, and I'm running into some weirdness with `buildRustPackage`. The project doesn't have a Cargo.lock upstream, so I manually generated a patchfile and added it to `cargoPatches`. At this point, I'm able to build the project with a clean `nix-shell --pure`, however I can't get it to build for
<Guest48>
nixpkgs.
<trevoke>
iqubic: yeah, I'm sorry, that's as far as I can provide help, unfortunately.
<iqubic>
Totally fine.
<Guest48>
Hi there, I was trying to build my first Nix package, and I'm running into some weirdness with `buildRustPackage`. The project doesn't have a Cargo.lock upstream, so I manually generated a patchfile and added it to `cargoPatches`. At this point, I'm able to build the project with a clean `nix-shell --pure`, however I can't get it to build for
<Guest48>
nixpkgs. Error follows:
<Guest48>
Hi there, I was trying to build my first Nix package, and I'm running into some weirdness with `buildRustPackage`. The project doesn't have a Cargo.lock upstream, so I manually generated a patchfile and added it to `cargoPatches`. At this point, I'm able to build the project with a clean `nix-shell --pure`, however I can't get it to build for
<Guest48>
nixpkgs. Error follows: ```Caused by: failed to load pkg lockfileCaused by: failed to select a version for `resvg`. ... required by package `rumno v0.1.0 (/build/source)`versions that meet the requirements `*` are: 0.11.0the package `rumno` depends on `resvg`, with features: `cairo-backend` but `resvg` does not have these features.```
<Guest48>
Hi there, I was trying to build my first Nix package, and I'm running into some weirdness with `buildRustPackage`. The project doesn't have a Cargo.lock upstream, so I manually generated a patchfile and added it to `cargoPatches`. At this point, I'm able to build the project with a clean `nix-shell --pure`, however I can't get it to build for
<Guest48>
nixpkgs.
<Guest48>
Oops, sorry for the spam, IRC hotkeys aren't really my strong suit :-(
<iqubic>
Please don't send the same long message multiple time.
<Guest48>
iqubic - It was accidental, didn't mean to.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<colemickens>
If I'm trying to package something that is a big collection of NPM packages (Theia IDE) and I want to do it out-of-nixpkgs, is node2nix still to tool I should use?
<{^_^}>
[nixpkgs] @jtojnar pushed 49 commits to staging-next: https://git.io/JUsGz
<fzakaria>
What are people's thoughts on using home-manager `files` option to symlink files to ~ vs. creating a wrapper to run the binary with the desired config.
<fzakaria>
I find myself being lazy and just using `files`; but i much rather do the latter
<{^_^}>
[nixpkgs] @jtojnar pushed 5 commits to staging-next: https://git.io/JUsGa
euandreh has quit [Remote host closed the connection]
<energizer>
which is to just install programs so they're accessible, not to alter path manually
<infinisil>
I have the tendency to answer too loose questions with intentionally unfit answers :P
o1lo01ol1o has quit [Ping timeout: 260 seconds]
cosimone has quit [Quit: Quit.]
quinn has joined #nixos
<energizer>
it might help newbies to mention "this is the wrong answer but" :)
<sierraDelta>
Yes, I know how to export a variable in the shell. I was looking on how to add a path in my ~ to the bashrc that gets configured by configuration.nix
<yurb>
um, but maybe not - PATH is probably a special case
<energizer>
sierraDelta: nixos is designed for the programs available on PATH to be immutable. are you trying to use nixos but use a mutable PATH instead? what is the motivation for that?
<fresheyeball>
why? Do I need to make the file or something?
<fresheyeball>
I don't get it, never seen this before
<iqubic>
I'm trying to do this, but when I attempt to log into lightdm, with my username and password, lightdm tells me that it has failed to start the session.
<energizer>
iqubic: it doesn't matter in most cases, configuration.nix can handle it. also there are some github issues with suggestions i haven't tried
<energizer>
i just use the nixos lightdm config instead of the hm one and that works fine
<iqubic>
I see. I'm running a little bit of a more complex set-up.
ardumont has quit [Ping timeout: 260 seconds]
<energizer>
make sure to check the system journal for errors
<energizer>
or your wm log if that's elsewhere
<iqubic>
My WM doesn't really have a log. I'm trying to run EXWM
<iqubic>
Perhaps adisbladis knows how to do this.
<energizer>
adis's config is publci
<energizer>
public
<iqubic>
I know. I've looked at the config, but I'm still not sure how he manages to get Emacs started.