[Music]
So, today we're going to do something a
little bit weird because I don't know
how this video is going to turn out. I'm
going to I'm completely winging this and
for good reason. I want to see how it
turns out with you guys because I'm
interested. So, as you know, I'm using
Nyxos for the next 2 years. At the time
I'm writing this, I'm still only about
10 days in, but by the time you guys see
this, I'm probably much further in. So,
this video won't be released for quite
some time. But overall, what I want to
do today is try to install Nexos. Now,
you're saying, Matt, well, you've
already installed Nexos. That's true.
But what I want to do is first off show
you guys how to install Nexos. Somebody
asked me to do a video on how to install
Nexos. So, this is that video. But I
also want to take my configuration, my
my flake and everything that goes along
with it, get it into the VM I'm about to
create after I install Nixos and see
what it's actually like to 100%
completely transfer my configuration to
another machine. It happens to be a
virtual machine, but still it should
work if I know what I'm doing. Spoiler
alert, I don't know what I'm doing. So,
we'll expect this to fail. We'll just go
in with that mindset. But if it does,
maybe I'll do a little bit of
troubleshooting here on camera. If not,
we'll I'll update it after I do some
editing on this video. But let's see how
it goes. So, let's go ahead and create
our virtual machine. So, we're going to
go ahead and go in here. Now, I'm going
to start this right from the beginning
so you guys can actually kind of see
this. But really, this is just me
creating a virtual machine because I
didn't do it beforehand. So, I'm going
to next. I'm going to hit browse. I'm
going to find my Nyx OS ISO, which is
right there. I'm going to choose that,
and I'm going to go forward. I'm going
to give myself some good memories. So,
8,196 is usually the number that I use.
I don't think that that's actually a
multiple of 1,024
or whatever it is, but I don't really
care. So, I'm going to give myself eight
CPU cores. And I'm going to go forward.
I'm going to give myself a 100 I'm going
to give myself 200 GB of storage.
That'll give me plenty. And then I'm
going to get forward again. I'm going
leave that as Nex OS. I do actually
believe that I'm going to need to make
this a UEFI thing. So I'm going to hit
this button here, hit finish, and then
go here so that I can choose UEFI. I'm
not sure if that's actually necessary,
but sometimes it is. So it's just kind
of safe to do it. So I'm going to hit
apply. And then I'm going to hit begin
installation. So there's there's a
chance that this might fail because I
chose UEFI and maybe it doesn't require
that. So we'll see. Let's do this thing
here and we'll see if we actually have a
boot. We do. So, we're going to use the
We'll just use this one here for Gnome.
That's fine. And we'll get this up into
a full screen. So, here we go. We're
going to install Nex OS. That didn't
take too long. All right. So, we got
some black screens. That's always good.
All right. So, we have Gnome and we have
the Calamari installer. So, one of the
reasons why I was kind of averse to
doing an installation video for Nixos is
because this is a Calamari's installer.
And everyone who's installed Linux at
least a couple times has has seen this
before. So, there's nothing really new
here. So, we're going to just hit next.
And we're going to make sure we're in
the right time zone, which we are. We're
going to make sure that's the right
keyboard model, which it is. And we're
going to enter my full name, Matthew
Weber. And I'm going to use my regular
name for the username. I'm going to
enter my super duper super duper secure
password.
And then I'm going to hit get rid of
that because that is obviously not a
strong password. I lied about it. That's
okay. I'm going to hit use the same
password for administrator account
because I don't care for security all
that much. Whoa. You know, whatever. And
I'm going hit next again. So here is
probably the only deviation from a lot
of calamari installers and even some of
them have this as well. You can choose
what desktop you want to use. So, I'm
going to choose it doesn't really matter
to be honest with you because we're
we're going to get rid of this almost
immediately, but I'm just going to go
ahead and choose XFC for shits and
giggles. So, I'm going to hit I'm going
to hit next. And then we're going to hit
allow unfree software. Hit next again.
And we're going to erase disc. None of
these things really matter to me. They
may matter to you if you're setting this
up from the beginning. I should put this
out there. You'll want to be more
deliberate with some of these choices.
So, you want to choose the desktop you
actually want. And you'll want to make
sure that your swap and everything there
is set up the way that it needs to be.
So, um I'm going to go ahead and hit
swap with Hibernate just for, you know,
that's what I usually choose. So, then
I'm going to hit next. And it's going to
do things. Now, one of the things that I
hate about this installer, their version
of the installer, is that it actually
cuts off everything. So, you got to go
up here and make things smaller. So, you
can see the buttons at the bottom. We're
going to hit install, and it's going to
install. That's what it's going to do.
That's how you install Nexos from the
ground up. If you don't have a
configuration file, it's just going to
launch you after the I mean, you'll see
it's going to launch us into XFC once
this is done. So, and it's not going to
take very long. It will hit 46%. Now,
here's a warning just for everybody. Nix
has a what they told me was a 46% ghost
or something like that. I don't know
what they actually call it, but almost
everybody's going to see their system
stop at 46%. And that's just because
that's where it's doing all of its
magic. Once it's done at 46%, you'll see
it just dump up to basically 100. It
doesn't do a very good job of giving you
a progress bar that actually works. But
it is what it is. I just want to tell
you that so that you don't get to 406%
have it stay there for four or five
minutes and then think that it's broken.
So, we'll let this go and then we'll be
done.
Okay, this thing is done. Now, we're
just going to hit restart
here and then click done. and it's going
to restart our virtual machine.
It will pop us out of full screen and
right back into it. So, we we have
successfully installed Nexos and we'll
see that it's doing its thing here and
we'll show see the scrolling line of
text. We're in light DM. We're going to
go ahead and enter our super duper
secure password and we'll see that we
are in the ugliest desktop environment
by default ever. This is XFCE.
And just a side note to the XFC
developers, could you please, for the
love of all that's holy, make a
different different default layout
because XFC can look so much better than
this. And you guys just Why does it
continue to look like this for 30 years?
Come on, guys. Anyways, we're going to
go ahead and find the the display
settings and see if we can't get this
thing to look a little bit better. So,
we're going to go here. We're going to
find the proper resolution, which is
1920 x 1080. Hit apply. Hit keep and
then there we go. So there we go. All
right. So we now we have Nyx OS
installed. Now after this is where the
tutorial is going to to differ a little
bit. So there may come a time where I do
a complete beginner's guide to NixoS.
This is not that. I'm not at all
prepared to show you guys how to start
from the beginning. I'm still learning
myself. I need to know the things I
don't know before I can show those
things to you. So if that makes any
sense at all. I'm not going to be
showing you anything after this that at
all relates to a a brand new beginner.
So, if you get anything out of this, I
which I hope you do, just take
everything I do here with a grain of
salt from here on out because here's
where we start winging it. So, we need
to go into the to the terminal and I
need to see if I can't zoom in here. I
don't know if my key bindings are going
to work. So, I'm going to just hit the
buttons here like a like a Neanderthal.
Okay, so we're going to go here. We will
also make this full screen. So, we need
to cd into / etsy uh nxos. And if we do
an ls here, we'll see we have two files,
uh, configuration.next and hardware
configuration.next. We're not going to
touch the hardware one. We're going to
go into our configuration.next, which
we're going to need pseudo to do, and
we're going to need nano cuz that's the
only text editor in the terminal that's
actually installed by default, which is
a travesty. Um, hello guys. Vim is right
there. Go use it. It's better than
anything else. So, we're going to go in
here and we're going to type in our
super duper password again. And here is
our configuration file. Now, I don't
actually need to do anything, but if you
were a brand new user, you'd come here
and do your stuff. Um, but you can kind
of learn something from here from me
here. I'm going to go down here and
install an application. I need a couple
applications in order to get my
configuration downloaded. So, I'm going
to go to this line here where it has my
user information, and I'm going to type
in get, wget, and curl. I don't know
that I'll need either of these last two,
but I always do them as a triplet. Every
time I install git, I install the other
two. It's just habit. So, that's really
all I need to do here. I'm going to hit
control X to save and yes to confirm.
Enter to to write it. And now we're
going to do pseudo nixos rebuild switch.
That will install the programs that we
just asked it to install. So
this will only take a minute or so. Not
even that probably. We'll see how this
goes. And there it goes. It's doing its
thing and it's done. That's all it took.
So now if we look, we have get
installed. And whereas before we didn't.
So now I need to download my dot file.
So, I'm going to do get. So, I'm going
to actually I'm going to go into uh get
clone
and I'm going to do https colon
uh colon back slashgitlab.com.
I'm doing this from memory by the way.
So, this is should be fun. Uh the Linux
casty-d.
See if that's right. Oh, look at that.
It is. Turns out I've done that a few
times, but I always worry that I'm gonna
mistype something. So that's going to
take me a minute. So we're going to go
into my dots l CD into nyxos
right here. All right. So now a couple
things that you guys should know. I do
not have home manager set up. So uh
that's going to be one thing. Another
thing that I need to make sure I change
is the hard drives that are available to
me because I don't have those hard
drives attached to this VM obviously.
So, I needed to change that. Another
thing that I I need to remind everybody
that because I don't use Home Manager,
none of my configuration files are going
to come here. So, until I get that set
up, or if I get that set up, I'm going
to be in a little bit of a pickle in
terms of other things, but it should be
fine. So, we're going to go into our my
modules file here. I'm going to make one
change. While I can't spell at all, I'm
going to uh I should have installed Vim.
I'm a dummy. Oh, well, we're going to
have to use Nano again. All right. All
right. So, we're going to go into file
systems.nix. We're going to scroll down
here. Actually, what I'm going to do,
get out of this.
Uh, no, I don't need to save that. So,
actually, what I'm going to do is go
back up a level and I'm going to nano
into my flake.nix
file, and I'm just going to delete a
file. So, I'm just going to I'm going to
delete a line here. So, I'm going to
control K if I if I remember right on
this here, and get rid of that. And I'm
going to delete
some of these spaces. I don't know why
there's spaces there.
All right. That way the file system
one's just completely ignored. Uh
probably if I left it in there, it
wouldn't be a big deal, but it's for
another system, so I'm just going to get
rid of it. So I'm going to hit controlX
out of this. Hit yes again this time.
Hit enter. All right. Now, what I'm
going to do if
my
if I know what I'm doing and and I
remember I don't, what I should need to
do is do pseudo nixos-reu
d-
no switch d-flake and then to a period.
Hold on a second. That's not going to
work because I I need to know what the
host name is, I think.
All right, let me go back into my my my
flake file here. Uh, I need to change
the
host name or or I need to add the host
name to the command. Either one I think
will work. So, you guys got to remember
I'm a complete noob. So, you're coming
along with me for the ride. Let's get
out of this here. All right. So, I need
to echo.
Oh, oops. Host name. It's Nix OS. Okay,
that's great. That should be easy
enough. I go back in here. Go down here.
I'm just going to change this. So,
Nyx OS
again. So, for those of you guys who are
Nyx guys, I'm sure I'm doing 100% of the
stuff wrong, but again, I'm noob. So,
we're going to control X, not ZQ or ZZ
or any of that stuff. I missed my Vim.
All right, we'll have that here. So, so
I need to go back up here. So, pseudo
NixOS rebuild switch d-flake.
Now, it's possible that the flakes won't
actually work because I don't have them
enabled in the configuration that's
active. If that's the case, we'll need
to go enable those things. So, we're
going to do this. No, it's going to
work. We'll see. Okay, so it says that
the my dots is dirty. I'm hoping that in
this situation it doesn't matter.
Sometimes when your git repo rep
repository is dirty you get errors and
that's not great for the because I don't
want to push these to my git repository.
I don't want to put those up there. So
I might be able to commit I might be
able to add I might be able to stash
them or I might be able to add them to
you stage them I guess that is the word
and have that warning go away if I do
turn out an error.
We'll see. It looks like it might be
working now. It's going to take a minute
because it's quite a bit of stuff to
download. So, it's going to download all
the applications and stuff that I have
on my main system if it does this right.
You can say that actually is going
pretty fast though for what it is. I'm a
little worried that it's not going to
work at this point still because there
can still be some errors, but we'll see.
I'm also not exactly sure how it's going
to work because I don't have XFC
installed on my
I don't have XFC installed on my main
PC. So, we're going to have to reboot in
order to get into my generation or or or
my configuration. I think uh and I don't
know if that's normal or not. It
probably is. Anyways, we're almost
there.
It looks like you can see actually see
there along the bottom what it's
actually installing. Uh so, that's cool.
Also, I'm not sure what this warning is.
I'll have to look into that. I've never
actually seen this one before.
I'm assuming that there's some kind of
limit that you need to to to increase.
Hopefully, I do see that it's kind of
switching between Whan and X way and way
bar quite a bit. So, why it's doing
that, I'm not sure. It should Oh, now it
moved along. No, it's not back to way
bar. Back to way bar again.
This is fascinating. Good TV. Uh,
it is throwing in some extra stuff
there, but it keeps going back to Way
Bar for some reason. I don't know why.
Okay, I'm going to go ahead and cut the
video here and then when it's done, I
will be back.
Okay, it's almost done here. It's
restarting the services. I'm pretty sure
at this point we're not going to get an
error. I might be wrong about that, but
we'll see.
This is taking a little bit of time. It
does that sometimes. And um usually it's
when it comes across an error with like
flat packs or something. We'll see. I
don't know. We'll see what the actual if
there's an error. I feel like singing
the Jeopardy theme song, but I'd
probably get copyright strike, so I'll
probably not do that.
Come on, Nixos. This is your premier
feature.
This is your reason for existing. If you
fail at this, what are you good for? One
eternity later.
Sure is taking its sweet time.
All right, it is 4:20 cuz nice. It looks
does look like it's actually making a
little bit of progress here.
We'll we'll see where it goes. It's
starting some more services. One
eternity later. I'm not sure why it's
taking so long. Like I said, the only
experience I've had where it's taking
this long with a service is when flat
the flat pack service that I use
uh was failing
and that's because I had a typo. Now I
shouldn't have a typo because you're
using the same exact configuration file
that I'm using on my main system and
it's working. So, uh something's
probably weird there. I do know that it
disconnected itself from the internet,
but maybe it always does it and I just
didn't notice. I don't think it always
does that. One eternity later.
Hasn't shown any errors yet.
All right.
I got all day. It's all right. You can
just take your time.
What are you waiting for? Huh?
What are you waiting for?
You're in emergency mode. Okay, so
fascinating.
It's always usually pretty good when you
see this. We're going to try to reboot
from here. So, we're going to hit
control D to do that. And we'll see what
comes up after that. Reloading system
manager configuration starting
default.target and then nothing.
All right.
So,
okay. So, because there were so many
differences between the configuration we
started with and the configuration I was
installing, I'm assuming that uninstall
a whole bunch of stuff. It's the
equivalent of running
pseudo rm-rf/norreserve
route. I'm I'm going to guess that
that's what the reason why we're at the
place where we need to go. So, we're
going to
we're going to just go up here. We're
going to do something probably shouldn't
do, but we're going to do it anyways
because I'm ready to be done. So, I'm
going to hit force off and then I'm
going to start it up again. Okay. And
see what we got. All right. So, we have
generation 3. So, we'll see if this
boots. Waiting for device discs there,
which is not going to do, by the way,
because that disc is not there. Why did
it try? I thought I removed all of my
file system stuff.
Oh, you know what I did? I totally
[ __ ] that up.
I totally messed up. Uh I kept the
hardware configuration file from my
system, not the one there. All right.
All right. So, this is why we learn.
Okay. We'll see what comes up. It'll be
interesting to see what if it comes up.
So, the there should be no fails
attached to this. So, it should still
I'm not I'm not going to jinx it. It's
not It'll either boot or it's not going
to boot. Literally, those are the two
options.
An error occurred and it it you know
yeah it's not going to boot. Okay. Uh
we're restarting.
Okay. All right. Uh let's go back to our
initial generation. See this right here
is the reason why Nixo is kind of cool.
But to be fair to my beloved Butter uh
Butterfs, I could still do it over
there. But I totally borked that. But I
don't have to reinstall because I have a
previous generation. So I'm gonna go in
here and I'm gonna go do what I should
have done, you know, in the first place.
So, we're going to go back into our
terminal and and I'm still going to zoom
in like in the Neanderthal.
Zoom in. Zoom in and make this. So,
we're So, I'm going to see what I have
here. Do I have my dots? I do. So, what
I need to do is go into my dots Nixos.
All right. And we're going to need to
remove the hardware configuration file.
So, that that's gone. We're need to do
CP etsy
uh NixxOS
hardware configuration and do that here.
All right. So, if I'm right with what I
did wrong, if that makes any sense,
Matt,
this should work. And this is probably
why all the services had such a hard
time. We're going to find out. And um I
don't know. It's also possible that this
completely fails as well. So, we're
going to go back and we're going to make
sure that the nano flake.nix
and make sure the file system there is
gone as well. So, yep, that's good. So,
we're going to hit control X out of
this. And then we're going to do pseudo
Nixos rebuild switch-fl
TLC for the password. Oh, no, I gave it
away.
All right. So, we're going to do this
thing and see if it will work.
All right. It's It's doing its thing. It
looks a little bit different this time
than it did last time.
Looks a little bit different. I'm
assuming that we're also still going to
get into the emergency mode once this is
all done. It definitely did go faster.
So, I don't know if that what that what
what that means. Like I said, I'm
assuming we're going to go into
emergency mode again.
I have half a half of a of a inkling
just to leave all these vast silences
into the video so you guys can actually
see this because we're at 206
minutes right now full recording like
without any editing. So I'm assuming I
could cut out like 3/4 of that
but maybe I want to make you guys suffer
along with me.
Also, if I cut out most of the silence
silences, do I also cut out all the
awesome and quippy uh witty witicisms
that I've been saying along the way?
Definitely not. We're leaving those in.
Okay.
See where we're going. Come on, man.
It's possible that I'm just not going to
be able to do this. But it's so got to
remember I'm told you I'm winging this.
I haven't looked up the instructions on
how to do it. I'm just a going based on
the knowledge that I do have. I'm trying
to figure out whether or not this is the
way to do it or not. I'm kind of
learning by doing.
Whether or not that's, you know, good or
not, we'll see if it's good enough. This
is the last time I'll try. If if if this
doesn't work, I will go look up how to
do it and then
do it the proper way. The services are
once again taking quite some time.
Although it is the second Oh, there we
go. the new conf. Hey, you know what?
That succeeded. That succeeded. So, we
what we should be able to do here is do
pseudo reboot like so. And
see if it will go here. So, this is
generation 4. And are we going to have a
boot? Are we going to get boot? We're
going to boot. We're We are going to
boot. We're going to boot. We should see
SDM.
All right. So, down here at the bottom,
we should see Hyperland and Neri
installed, which we I'm not going to I'm
not going to go into either one cuz they
won't have configuration files or
they'll just be the default
configuration file. So, we'll go into
Wayland uh plasma and go in here and
we'll see this. And
so, I'm going to go look for some
things. So, like there should be Vivaldi
here somewhere. Vivaldi. Yep. Because
that's one of the flat packs that I
have. There should be Obsidian, which
there is. That's one of the packages
that I installed. There should be Let's
see here. Um, what else have I
installed? Oh, OBS is here. Obviously,
Audacity. Yeah. Okay. And it obviously
will launch. So, okay. So, that's Yeah,
I did it. I did it, guys. I did it. It's
so cool. All right. So, first off,
lessons learned. If you're going to
transfer your configuration file from
one to another, you have to use the
configuration the hardware configuration
from the new machine, not the old one,
which obviously makes a ton of sense.
They're different hardware. Like, this
is a VM VM. and the other one's not a
VM. So, you know, lessons learned there.
Also, it does take a little bit of time,
although that second one did take less
time. I don't know if that's because
we've already done it once or because,
you know, I did it right the second time
around. And I think that this is the
impetus I need to look at home manager.
I I think one of the things I learned
like like I've gotten this far. I've
learned how to do this now and and
without looking at instructions, by the
way. So, go me. But
how much cooler would this be if it also
brought in along all of my dot files?
Now, I'm not going to do that if it
requires me to nixify my dot files. If I
can't get my doc files out of home
manager when this challenge is over, I'm
not doing it. Like, it's just that's
just that's a a deal breaker. But if I
can somehow use home manager and just
kind of link to my dot files and have
them put them in the proper place, then
that could be cool. and in which case
I'll do a whole video on home manager as
well. So maybe even do this whole
process again. So that is it for this
one. I will edit out the silences. So
this is probably going to be a little
bit of a jumpy video with a whole bunch
of cuts in the middle of it. Just know
that the end timing of this was 30
minutes. So that's from installation
completely to making a catastrophic
failure of the process to fixing it and
actually having my system up and running
again. I'm assuming that as I did this
more often, it would be faster. Like I I
would get better at it. Now, I don't
know that I would want need to do it
very often. Like I don't move to
different PCs very often. I don't plan
on re reinstalling very often. So, I
don't know how useful it is for me
personally. But if you do do that or you
come across a catastrophic failure on
your main system, being able to take
your configuration file and know that it
works and then put it through this
process and be running again. I have to
admit, Nixos, that's kind of cool.
So, that's it for this one. If you have
thoughts on this whole process, leave
those in the comment section below. I'd
love to hear from you. You can follow me
on Mastedon. That link will be in the
video description. You can support me on
Patreon at patreon.com/theinxcast.
I do a weekly exclusive podcast for all
of my supporters on Patreon and on
YouTube. So, if you are interested in me
rambling for about 15 minutes about
random topics, both Linux and non Linux
related, uh, support me on both either
of those platforms. You'll get access to
that. You can also head on over to my
store which is available at
shop.thelxcast.org.
There you'll find awesome hats like this
one. Thanks to everybody who does
support me on Patreon and YouTube. You
guys are all absolutely amazing. Without
you, the channel just would not be
anywhere near where it is right now. So,
thank you guys so very much for your
support. If you want to join these fine
people, patreon.com/theinxcast
and you'll get the the podcast and get
your name up on the wall. And we'll see
you guys all later. Thank you for
watching. I hope you have a wonderful
day.