Nixos and Hyprland - Best Match Ever
Вставка
- Опубліковано 22 сер 2024
- Some errors from video (not too bad):
At 2:38 alternative to "dunst" is "mako"!!!
pkgs.wl-clipboard, not pkgs.wl-copy
Enabling hyprlnd on NixOS
programs.hyprland = {
enable = true;
nvidiaPatches = true;
xwayland.enable = true;
};
environment.sessionVariables = {
If your cursor becomes invisible
WLR_NO_HARDWARE_CURSORS = "1";
Hint electron apps to use wayland
NIXOS_OZONE_WL = "1";
};
hardware = {
Opengl
opengl.enable = true;
Most wayland compositors need this
nvidia.modesetting.enable = true;
};
waybar
(pkgs.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
})
)
XDG portal
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
Enable sound with pipewire.
sound.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
rofi keybind
bind = $mainMod, S, exec, rofi -show drun -show-icons
Cool video and cool project! Btw, is the info correct on 2:38? Both packages are dunst
NOOOOOO! I'm sorry, I'll try to fix that with youtube's editor, thanks!
@@vimjoyer Don't worry, thank you!
@@gbember3470 Nevermind, there is no option to add text or image, so I'll just pin your comment
@@vimjoyeryou can add a fixed version in the desc
@@TheSast oh yes, right, thanks!
When it comes to NixOS, you are my "numero uno" source. The details and the order in which you present them is why a value your content. Please, any more advance video with Hyprland are welcome, specially around configuring the waybar (or any other bar). Another hyprland video could be using EWW instead of the bar. That is one that I have not seen in UA-cam. The content of this video, it took me approximately 10 days (and 5-7 sources) to learn everything that you put together in this comprehendible video. Please keep making NixOs and Hyprland videos.
❤ your format: informative, succinct, and example driven. As a long time Arch user bleeding edge excites me and as a father, time is hard to come by. Deeply appreciate your work here paraphrasing dispersed docs and making this approachable. Keep it up
Planning to make Discord server when we hit 1000 subscribers. What else do you want to see on the channel (more Nix videos are coming anyway)?.
I would love to see a video about nix's command line tools
@@gbember3470 great! I was thinking about it yesterday.
What about Matrix instead of Discord?
@@unknown-otter I think discord is more accessible, but maybe I'll make matrix and setup a bridge
Maybe how to set up a dev env in NixOS for all the following languages:
C
C++
Rust
Go
Please create an advanced tutorial
My god, you're a life saver! I would _love_ to see a video on how to get started configuring hyprland with home manager specifically, or how you have that setup yourself. What immaculate timing!
Congratulations on this video and all others on this channel, all straight to the point and well explained. Each time I see a new video here I hurry to see it. Amazing work dude!
On God, you are definetly using clairvoyance to read my mind and posto videks about stuff before I can even suggest it.
this is great content. I've been interested in Nix OS for a while now but just couldn't bring myself to take the plunge. After watching this I might actually finally make an attempt.
A hyprland video not in 60fps doesn't do the experience justice
And even a 60fps video is nothing compared to how great these animations look on a 165hz screen.
These videos are really good stuff. When it comes to NixOS and Hyprland, I rely on them very much. Everything is explained in details. Any more videos are most welcome.
this is a great video format. i would love to see this with other tools and programs. I love how you cover the possibilities each user can experience, which is really hard on a written format, because most sites tell you how to do it, and if you have an issue, you need to find a specific page or site for that issue, which takes a lot of time. keep up the good work!
Excellent video! An advanced one would be very nice too (not only for hyprland, but also for waybar)! Subscribed!
I meant "but also for waybar", and wrote "hyprland" twice. Hahaha
This is the most comprehensive video I've seen yet of a good set of packages for Nix. Great job, man.
Thank you for these NixOS videos. They have been very helpful as I experiment and learn with NixOS and Hyprland.
Waybar configuration video would definitely be awesome.
6:09 I would love to see your take on an advanced Waybar configuration video!
You are killing it man, another great video, thanks a lot
A few things were outdated by now, but self-explanatory to fix - great video! Thanks!
But jeeeeeeez, I hope someone makes a Hyprland bundle. To me this feels like one step away from linux-from-scratch 😅
Dang, you're my main for search things about nixOS or nix, you explain so nice lmaoooo owo
wow you just keep reading my mind
One thing to add, you can add font-awesome in packages for waybar to show icons instead of squares
@@justaguyalive6762 this ^
@@justaguyalive6762thank you 😊
I think there are quite a few good advanced videos on how to configure hyprland, please focus on NixOS, there are little to none good deep tutorials and you are exceptionally good in this. I just wondered why you didn't mention the home manager for the hyprland configuration, maybe you wanted to keep things simple. I have to admit, the whole legacy to flake migration puts me off a little, so it would be outstanding to me if you could explain transitions from configuration.nix to flake, especially since there are quite a few guides on the internet that show the old legacy way of doing things.
Thank you for the amazing videos, greatly appreciated!
Really nice video, was a huge help when setting up hyprland!
Nice video.
I would personally love to have a more detailed config video. After following this video I got to the same spot, where Hyprland is working and Waybar is running. But the workspace indicators do not work at all. It's just blank. I have been trying to patch it in my nix config, messing around with settings and it never shows up. So knowing how to get the workspace indicators, maybe lock screen, power management (sleep and screen blank), basically a series of tutorials on getting a Hyperland config to work like a DE would be great.
+1
yoo i just finally installed nix today as a dualboot and followed this, everything worked perfect and i had to do little to no troubleshooting so thanks !
The way you explain is amazing
I love your videos. Awesome videos. I would like to see an advance Hyprland configuration video and an advance waybar video too. Thank you in advance!
I have been following your videos. Awesome!! video no exception! Please, make more videos about setting up Hyprland. Like How to set up GTK themes. And so on! Thank you in advance!
Awesome video and channel! Hope to see more videos!
This is the best guide to run Hyprland on NixOS. It's been immensely helpful. Thank you so much for doing this! Are you up for doing an intense #unixporn Hyprland ricing video?
we'll see
Advanced waybar configuration would be awesome!!
Love your video series of NIXOS. Love the way you instruct. Can you make a detail video about Hyprland, flake and home-manager. And share your configurations files. Thank you in advance!
There are already videos about those on the channel, just combine the config from the ones you like. I plan on making a giant video covering all of this in the future, but not any time soon.
great content, keep it up!
I think there is an error at 2:29, there should be something else than `dunst` in the second option
Yes, sorry "mako" should be there
@@vimjoyer you also don't have to add libnotify, nix can figure this out
@@JohnSmith-ky2qn I've tested this out on a bare virtual machine, and it didn't want to work until I added libnotify. If I'm wrong, that's even better!
This video would have been very useful for me yesterday 😆Struggled for a while to find the fix for waybar to show the workspaces.
Would be nice to see a more advanced video for Hyprland and Waybar config!
How did you end up getting workspaces working? I followed this video and I never did get the indicators to show in Waybar.
@@CodeMonkeX He didn't show it in the video. But you're gonna have to copy or add the waybar config to your .config folder, then in the config you're gonna want to replace "sway/workspaces" with "wlr/workspaces".
Then it should work, as long as you added that override he showed.
With your neovim video as well as this one, you're using the .config files to manage your configuration. Is this the best way to do this or is there a more NixOS native way of handling these things? I had trouble getting Mason working with neovim in nixos for example because the package management conflicts with nix somehow. Awesome videos btw! Thank you so much.
I highly recommend you to use devshells rather than Mason on NixOS. Just put JavaScript LSP into JavaScript devshell and python LSP into python devshell. Everything separated, clean and efficient.
Some LSPs from Mason work, but they usually require you to have npm, gcc and some other dependencies installed
Приятный и какой-то родной акцент...
Hi, great video!, Can you make tutorial how to install and run flutter ? I'm kinda confused about the documentation 😅
For anyone else searching for what "slupr" is at 6:15, its supposed to be "slurp" lol
albert is the goat launcher sorry rofi
it is
Really enjoying your videos and clear style. Please do make those advanced videos, if you can add in things like volume and brightness controls that would be awesome. I actually got volume buttons working and was about to start on the brightness buttons, which incidentally I can change with the mouse over waybar, but I have no idea what executable waybar is using to control brightness. Unfortunately my XPS looks like it's bit the bullet...
its there somewhere in the waybar config file.
Great timing, was just looking into switching from Gnome to Hyprland or Sway on NixOS. I would love to a followup video on advanced Hyprland config.
Great video, could you make a video on how to config Hyprland via home manager? I tried to do that but it is kinda confusing and the documentation is pretty bad regarding it.
Nice visuals. I'll give this a shot soon.
A year later but I'm finally using Hyprland + NixOS
Btw, you should check or edit the enabling hyprland part in your description, there's two times enable = true on hyprland configuration.
Thanks, edited
im glad i turned off an addBlocker as i would never have seen this otherwise.. excellent.
Both a waybar and eww video seem great to me 🎉🎉
Amazing video. I would love to see all configurations videos on hyprland and eww and waybar
hyprland is great, what i like abt it even more is community
at 4:39 you point at the monitor config, but you should be erasing the autogenerated = 1 line
I really hope this will be the last time ill do heavy configuration. Only maintenance afterwards.
No X, way PURE
Other than the cool animations, does Hyprland have anything else worth noting compared to other window managers?
It's based on wayland, has a very nice hyprctl & UNIX socket to extend it. And it can also expose global keybindings to applications, because they usually can't just grab them themselves on other wayland compositors.
@@vimjoyer Thank you for the information! Sounds interesting! I may check it out in the future. Have a nice day my friend!
4:37 That arrow points to the wrong line. It's line 6 above the cursor, not 3.
Thanks for the video. Looks cool. I have been using NixOS for about a week now and so far it is a living hell. I normally use i3, but cant get the i3bar working, bspwm won't even start and now trying to use hyprland is following the same fate, just doesn't start. Documentation is sparse and kind of lacking. Really thinking of throwing down the towel. I am missing something ArchWiki or better organized HowTo's for NixOs.
Hard to tell, it could just be your hardware
@@vimjoyer I guess so. I am testing on a 5 year old ACER laptop and a Virtual Box Virtual Machine from my main PC. At least i3 did work correctly on the laptop when I had Manjaro innstalled. I will keep on trying, I really like the concept.
Thanks for this very useful video to learn Nixos and Hyprland.
I am trying to configure my Waybar but can't find the 'config' and 'style.css' files. Do you know where they are located in Nixos?
Thank you.
You can create them yourself in the same place as on any other distro. Hyprland generates it's config automatically, but waybar doesn't iirc.
@@vimjoyer It works, thanks!!
thank you for your video. just starting with NixOS and this is a great guide for me to setup hyprland and waybar. maybe you can guide me how to customize the waybar in nixos? :)
Customizing waybar with home-manager is very easy, so that guide would probably be a 30 seconds video. I might combine both waybar's and hyprland's home-manager configs in one video.
Your font is pretty cool, which one did you install ?
JetBrainsMono
I would make a Discord server now! I made one at 500 subs, and it blew up! Also, great video! I would love if you made a video about the envfs option that makes /bin/bash work on NixOS. Also, if you know how to fix FHS compliancy, that would let me switch back to NixOS!
Not being compliant with FHS is one of it's features, because you can make a FHS environment in a derivation for a specific package, and it is actually how most proprietary packages in nixpkgs work. You can even make a super simple nix-shell that would put you in one if you want, so it's not an issue at all. I will probably make a video about cool features like envfs option. And I've made a discord server already, you can find it here: discord.gg/AqHbaeK43b.
@@vimjoyer Awesome! Thank you! Hey, I have more subs than you, so I will add you to my UA-camr shoutout list!
@@oglothenerd are you sure?
@@vimjoyer Yeah.
@@vimjoyer Yeah.
Well, Im more emacs than vim, but I like your videos! suscribed!
wow!
Where do i add the xdg.portal line in the config file... does it come under any of the other functions ?
Really nice video btw ❤
In your nixOS configuration file. See mynixos.com/nixpkgs/option/xdg.portal.enable
Bro can you do a favor and keep the good job. ur going well with contents, don't stop!
I'm not going to stop 😎
Great video!
i use barrier to run multiple pc (share keyboard, mouse) and weyland isn’t supported by barrier😢
any solution - workaround ideas? weyland is the future
I haven't seen any
indeed barrier is pretty much the only thing on wayland that I have found zero replacement for. Let's keep an eye open, I'd be very interested too.
Please make hyprland and waybar customization guide too
I made it already, but the audio was corrupted so I took it down
Which font are you using for your on-screen code snippets?
JetBrains Mono
Please a video on advanced hyprland config and I can't wait for the discord server !
Why not use the hyprland xdg portal? Also, some other useful packages are grimblast, wl-clipboard, and wf-recorder :)
I tried hyprland xdg portal, it didn't work for me. All of those packages are pretty useful indeed!
@@vimjoyer In the hyprland repo there's a flake which appears to do some dependency stuff that's probably not covered by the nixos programs.hyprland module. Two of those are waybar and the desktop portal, but the dep for wlroots may also be different. Depending on the status of current nixpkgs using the standard nixos module may lead to lack of features and/or compatibility issues. I'm using upstream as a flake input, which is more cutting edge and better integrated with its specific dependencies, at the cost of a bit more complexity. It is generally smooth, though YMMV.
Do you still need the Xserver if you use wayland? I thought it replaces it? Do you not need to switch it off?
Popular display managers like sddm or gdm unfortunately still rely on xorg. You can disable xorg, but you will have to start hyprland from tty.
Edit: display managers not servers
This comment saved my install. Thanks @vimjoyer
FYI, `sound.enable` is explicitly for enabling ALSA sound so using it with pipewire as you do at 3:03 is at best redundant and at worst could break something. Great video otherwise
That's how default generated configuration.nix does it. I'm not inventing anything.
Isn’t it bad practice to edit your desktop configs directly. You should be doing it in your NixOS configuration file
NixOS configuration doesn't provide those options for hyprland yet, so it's absolutely fine to do it this way, don't worry. If you really want, you can make your own home-manager module for it, or just put it as a string in home-manager, and symlink it from nix strore.
i would be on hyprland if i didn't have a nvidia card , i experienced crashes on wayland
hey my friend, do you by any chance have a remote repo of your configuration.nix I can study?
Yes, I have a repo called nixconf on my github page
Hello, can you tell me why, when I open a window through rofi, it doesn't open fullscreen like when I open the terminal through the hyprland bind? And I can't find where I can tweak the rofi.config Thx
Very strange, I've never had this issue. You can tweak rofi's config the same way you do on any other distro, or using home-manager.
I've got AMD Vega64 videocard. What should I do in config? Strings with text "nvidia" - i should delete? Thanks!
Yes
WoW! Many Thanks!
You sir get a subscribe from me. Video has been extremely helpful. I was very hesistant to switch to a WM for a very long time. Now I'm not.
can u mnake an advanced custom video ?
Where can I find your wallpaper?
Here: github.com/vimjoyer/nixconf/blob/main/homeManagerModules/features/prism/wallpapers/gruvbox-mountain-village.png
2:32 you can choose between dunst or dunst 😂😂
Dunst for the win 💪
What about using a AMD graphics card, which I'm using ?
Works out of the box (Nvidia option is also not needed anymore)
is there a standard environment variable or nix conf option that people are using to configure scripts that make use of dmenu to use an alternative like rofi, depending on how you set it?
You can implement it yourself. Crete a module with such option of type string, and then just interpolate it into your scripts.
I'd love to see an EWW video since I'm wanting to get into that
How did you change the icon of the nm-applet?
I have a different icon theme, and it affects it. You can check how I installed it in the latest video.
Can you show how you add kde plasma 6 and wayland and hyperland?
Just enable both plasma and hyprland, you will be able to switch between them in sddm.
2 Questions;
Apparently you can't run any binaries not from the nix repos on nixos? (or just not installed through nix in general) is there any way to run stuff like compiled but not installed apps / appimages?
is there an easy way to install dev packages e.g. sudo apt install build-essential or do i have to add each individaully to the nix file
unix.stackexchange.com/questions/522822/different-methods-to-run-a-non-nixos-executable-on-nixos - here is a huge list of methods to run a non-nixos executable on Nixos. I might make a video version of this later.
Yes, you can use other package managers on nixos.
edit: added some more text.
@@vimjoyer wut about dev packages too, is there just a list i chuck into the nix file to get everything build essentail or base-devel would normally give or is there groups of packages or something else entirely? also when you say other package manages do you mean actual managers like apt / pacman / dnf (seems against reproducability? unless it's distrobox i guess) or is it adding other nix repos
@@aeases- usually, you can find all of the essential packages for specific language on NixOS wiki. nixos.wiki/wiki/Node.js - JavaScript. If you can't find some node packages in nixpkgs, you will, unfortunately, have to package them yourself of install with npm.
Edit: you shouldn't install other package managers packages as root.
Hello! Again. Quick question. Can you make a video showing how to set up a gtk theme in Nixos using Hyprland? Thank You in advance!
I'll probably make a general theming video later. Gtk, qt, sddm theme and all
Edit: on nixos, of course
What theme are you using?
gruvbox
Thanks for the video. Could be much better if you will share the configuration.nix file. Im new in NixOS and it's not that easy to prepare working configuration. I would like to compare what is wrong and what is correct in my configuration.nix file.
Everybody is asking for it, but it's not clean enough yet. When I am happy with it, I'll make a separate video about it. Until then, check Misterio77's config. It's what I have learned from)
Please create an advanced tutorial 🤧
I still plan to do it
Hello, how do you add the waybar override to your configuration.nix? When I add that section to environment.systemPackages I get a build error "error: syntax error, unexpected '('".
It should work if you just put that into packages, are you sure you don't have any extra "("?
Full ricing video when ?
Can you configure it with home-manager?
Yeah, hyprland options were added recently, and I've already made a video about it
You wouldn't mind sharing a full configuration.nix (and other relevant files, e.g on your git) file for this so one can compare ones own with a "working" one?
I don't want to share my configuration just yet, but if you want a good working example, I recommend checking out Misterio77's configs.
Hey I love the video but I cant figure out how to configure waybar. I just cant find the configuration file for it
Follow waybars documentation, or check someone elses config from reddit.
@@vimjoyer ty vm
How do you get Hyprland to start without typing the command in the terminal? Is this done in bashrc or configuration.nix?
Enable any display manager, sddm for example.
Hi, what font are used in terminal?
JetBrainsMono
can you make a top about the best hyperland configs?
I don't think that's in the spirit of a channel. I mostly do tutorials
oh i see thanks for answering@@vimjoyer
How do you fix the fonts (font-awesome icons) in waybar? ;-;