Skip to playerSkip to main content
  • 9 months ago
Transcript
00:00what's up friends uh i received a comment complaining about uh failing to install xfce
00:08on nixos i don't have nixos on the machine that i'm gonna use here so i'm gonna install it i have
00:14taken the newest one which is i took it from their website download i guess it's 25.05 as
00:35the website tells i don't think that there is any difference so far and
00:44any difference in the syntax i have taken this i click at it now it was about to download it was
00:52a mistake i have downloaded already so i'm gonna go with the installation which i'm gonna speed up
01:00just to make sure that the use case is the same please make sure your use case is the same
01:07the installation of xfce that you have seen is not for a text based installation where you prepare
01:17your nix file nix configuration file and then from it you generate your system this one is for a newly
01:27installed system which i'm gonna do now maybe the difference is in the basically installed
01:37desktop environment at the time it was matty this time i'm gonna probably go with gnome so follow along
01:45okay so here i prepare my virtual machine
02:06i have a command total here which is this one later you can change it in your configuration file
02:27and we will see that it's a variable that should be definitely be that should definitely be something
02:35between true or false if it's true it means it allows unfree software if it's false it doesn't
02:43so you can read the description here where it tells how it affects the system and what are the pieces of
02:52software that will be installed and allow it to be installed or not we click next here we have almost everything ready
03:22the installation here is done i'm gonna reboot the newly created the fresh installation of
03:41xos simply by clicking restart now and then done here it's something to take that
04:11so our installation is over
04:24so our installation is over and we are about to boot the thing that you need to know is
04:44we have two options which is gnome and that's definitely wayland and the second one is gnome on xorg which means
04:52xorg itself
04:55so password and enter i have chosen username as a username because you should choose yours
05:04we open the console
05:22so uh
05:26sudo nano or whichever text editor you would like to use here etc nix os
05:34configuration dot nix
05:38password
05:40okay so uh we should make sure here here that we add the word that i missed it and caused me to fail before
05:52here we type call package make sure that p is uppercase call all of it and package is lowercase except for p
06:04it should be uppercase it should be uppercase and then we scroll down to look for our desktop environment
06:14data inside of this code
06:21should be services
06:22we copy this we copy this whole thing since it's the same we just want to have a desktop environment
06:29with the desktop manager that's install it if you have gnome it should be gdm the desktop manager
06:38if it is matte or xfce it should be light dm
06:42so here i simply change it with xfce
06:50we can simply change this with light dm if i'm not mistaken
06:58save this
06:59save this y and exit xos rebuild switch enter
07:17here i would like to tell you something which is sometimes these pieces of code are a little tricky
07:23and sometimes small mistakes and errors or big errors
07:28since they appear for us like that
07:32big errors are caused by small
07:35things like a little comma in your code so here i miss a little comma
07:40make sure that everything is correct the syntax is correct sometimes you need to close like
07:46this bracket if we can say i don't i forgot its name semicolon you make sure there is the semicolon in
07:53place like for example this thing there is this boot dot loader dot grab dot enable this property which
08:00is probably a variable or in the form of a variable when it comes to similar programming languages
08:06it may have a different thing for this one it should have at the end
08:10uh semicolon unlike this one which doesn't the semicolon is at the end make sure also you remove it no curly braces
08:23this one also look at the end make sure everything is fine make sure you don't uncomment any of the
08:28comments because they aren't similar to the syntax in case you are building your own xos
08:33from a configuration file you aren't installing it the way i did make sure you don't uncomment
08:43these comments because they aren't matching with the syntax of this this programming language
08:51uh for example uh in case you need wireless you need to enable this property by uncomment in it since
09:00it's uh says here like that and it matches with the syntax there are things that you need to enable by
09:07simply uncommenting the things and there are things that you need to add yourself uh there is something
09:15that i need to tell which is one of the properties that you may need to have here for example i don't
09:20want to have printing i can simply comment or delete this thing there or this thing here
09:32let's see what we
09:33yes so this thing allows you to have and free packages proprietary ones like nvidia proprietary drivers
09:53like some of the codecs you may face errors and problems when you don't enable this one in case you
10:01wanted to install nvidia drivers for instance errors include the restriction from installing it like the
10:13system doesn't allow you since this thing doesn't isn't enabled on your system
10:18uh yeah so please make sure such thing is correct the syntax we save and exit and then we run this command
10:32again this time it should run correctly when you see the error when you see the error there is something that
10:45you need to know which is it tells sometimes some indications on the place of the error and sometimes it tells
10:53what exactly the error is what exactly the error is just like when it comes to something like uh rust compilers
11:01it's very accurate sometimes that it tells what exactly the error is like this thing is missing this thing
11:07should be for example uh integer or stuff so you need to be aware of such thing
11:13you can uh for instance uh install in a virtual machine nixos with xfce or without it then compare
11:30the configuration files the one that was made automatically during the graphical installation of nixos
11:38and the one that you would like to use in order to generate an installation of nixos make sure that
11:45there is no mistake in your syntax make sure that everything is put correctly check the error messages
11:56about the place of the error and then try to generate your nixos installation from the text-based
12:04installation the way it's meant to be so i mean without errors and stuff here i'm gonna select xfce session it
12:16this thing simply restarted the service there was a service of gdm that one i replaced it purposely with
12:25lightdm in case you don't have gdm i'm gonna go with xfce and type my password
12:41and you can see that it's working
12:49you need to be aware of what's going on sometimes you may need to
12:55match the configurations uh examples that are given to you with your use case for example
13:04all you have to do if you want if you have a desktop manager and the graphical user interface or an auto
13:12generated configuration file for nixos is to add this line like i did and then give it the property true
13:20and the semicolon at the end you may need to read the wiki very well in case you are generating
13:26an xos installation from the text-based
13:31method you need to read very well which one matches with your configuration
13:36configuration or your desire and add it to your configuration file
13:51i guess that's it for this video if you still face any errors or problems with this please tell me
14:03maybe there there was a misunderstanding about the configuration and the use case that's done
14:12all i have done all i have done was adding this call package i forgot at the in the beginning this comma
14:22and added a line
14:25to my configuration file which is for this one services dot x server dot desktop manager dot xfce dot
14:36enable equals to true
14:38i didn't need to add any of this probably most of it is added or something similar
14:44i change it also gdm the desktop manager to light dm since it since usually xfce comes with it xfce or matte
14:59in case you have chosen any of them as the default desktop environment when you are installing nixos
15:07nixos please subscribe hit the thumbs up share with your friends and peace
Comments

Recommended