NixOS with Hyprland - My setup and some thoughts
Вставка
- Опубліковано 22 сер 2024
- In this video, I will be covering my NixOS setup with Hyprland and discussing a few thoughts I have on the system as a whole.
Gitlab
gitlab.com/jped
Github
github.com/jdp...
Email Me At
jake@jpedmedia.com
My Website
jpedmedia.com
Follow Me On Odysee
odysee.com/$/i...
$100 to test a server through Vultr
www.vultr.com/...
Support
Brave users can support me with BAT on my website or on my youtube channel
hyprland, being a wayland compositor, "GTK" things don't work the same way. take a look at nwg-look as a replacement for lxappearance. For consistency with dotfiles being respected, take a look into home manager, which is specifically designed to handle user settings. Ive been on nixos for over 2 months now, and have made my way through regular config files to home manager to Flakes. It would be hard to go back to Arch / Void now that i have everything declared, pretty much perfectly. my experience with Hyprland was in Arch, but many things translate between the OS's. i think the issues are more with Wayland than Nixos.
Thanks for the tip, I thought about checking out home manager.
Came for Hyperland, fixed my printing issue. Thanks :D
Glad you found an unintended bonus. Thanks for watching!
Wayland is still young, but incredibly better than it was a year ago from my own experience. It has gotten to the point that it's almost a valid replacement for X now and users are frustrated (like me). But trying to get everything Nix settled in on top of wrestling with Wayland and some stubborn applications like OBS and Nemo (apparently) definitely creates an excellent environment for cultivated stomach ulcers.
It has been challenging to say the least, but fun, I enjoy problem solving and troubleshooting issues so this is a good time.
@@JakeLinux No doubt. Glad you overcame the issues with your config study. Honestly, thought you would. Good vid - keep up the good work.
I use Wayland for about 5 years, I didn't encounter any problems but maybe I'm lucky
@@MeraMadness I've been using Wayland compositirs like Sway, Wayfire and mostly Hyprland with great results, but those results are on a scale/curve. Some apps like OBS and Steam have gotten really inspired but can still misbehave at times. If multimedia intensive flows aren't on the table then Wayland based environments are inarguably sufficient for daily tasks. Right now I totally adore Wayland and family and don't believe your general experience to be luck. Here's to the future of Wayland! You take care.
@@MeraMadness to be clear, the problems I am having are of my own doing for the most part. Wayland seems pretty polished, I am just unfamiliar with the ins and outs of it
I started using NIxOS a couple of months ago, coming from Arch. I use it on both a laptop and a desktop, and reproducibility is a huge thing for me. It's not just about deploying to multiple machines, it's that every tweak I do to my config I don't ever have to do again.
I don't have to document every workaround (e.g. extra kernel parameters, hardware specific drivers etc) because it is automatically applied for me. There's just something very comforting to me that every improvement I make to my linux environment is going to be with me across any hardware upgrades or new hardware that I buy in the future by just cloning a git repo.
With NixOS you are essentially making your own personal distro :)
That is what I keep hearing, maybe once I have been on it a little longer I will understand better. It is a cool distro, just don't know if it is for me.
A feture that should a must across all the Linuxverse, IMO.
@@nosotrosloslobosestamosreg4115 imma wait for Zorin gid and try that first
It may help to look at the documentation of the newm compositor. In particular their env_wayland file details what's needed to set up in terms of environment variables and more.
Additionally, Hyprland scratchpads can be named and you can have more than one.
Good to know, thank you, I was sure that was going to be the case, as it is the same way on herbstluftwm, but I just had not read I to them much yet. Thanks for the info.
NixOS actually has a software store (the install is simple). Handy for people who like to install packages the way they're used to in other distros. It will write to your config file and rebuild the system. I don't really need reproducibility myself either, but they amount of packages available and the easy way to revert back to previous configs (and occasionally install crap to test that I can then remove again entirely) were the selling points for me. I just completely trust this OS on my machine.
It is interesting, but I'm just not sure about it yet. I still love void and have not been convinced that there is any reason for me personally to switch to nixOS. I will try it out again at some point I'm sure.
Makes sense. You need a valid reason (other than distro hopping). Mine was avoiding ongoing instability in Arch. I actually want to try Void. People who use it tend to remain dedicated to it@@JakeLinux
I really enjoyed the video , nice pacing, clear explanation on what worked and what didn't. Would love to see a follow-up video.
I am currently preparing to migrate to Nixos/Wayland from Arch/Xorg and I'm just getting ready, i will of course get e config ready in a VM and then nuke my system 😅
Thanks, glad you enjoyed it. There will be at least one more video on this when my challenge is over.
With the gtk things, I had the same issues, I was used to nwg-look on arch/fedora. You need to look into setting up home-manager (granted you said it was a challenge so you might not want to dive that deep but that's a fix) it has gtk specific config options that replace both lxappearance and nwg-look
I will check it out, if it is not too much work I will probably go that route.
Jake, hi. Hows it been? Glad to see you got your system somewhat functional. About the waybar height thing, I bet it has to do with padding and your font height in your CSS file. If I guess right , it is dynamically adjusted through your css. That is how it is in EWW. Give it a try , I bet it works. Great video. BTW have you ever looked at bedrock linux?
Hey Scott, thanks for the tips, I did mess with the font size and settings in the css file with no success. I'm not sure what the issue is. I have briefly looked at bedrock and am extremely interested in trying it out, but it is a ways down the list of projects at the moment, have you used it?
I was considering NixOS but I'm not that good.
It's a whole.different experience than any of the other distros I have used.
@@JakeLinux After watching a number of videos about it, I have to agree, and I'm to used to Debian ways.
I can't for the life of me remember all the commands I used over the lifetime of my Pc to set it up how it is. Sure, I could make the effort to document it, which I do with Obsidian, but NixOS is self-documenting. Thats its biggest selling point for me
You need to have Hyprland send the keys to OBS. Wayland doesn’t allow global key logging … for obvious reasons. Well, without a portal and permission.
Yup, finally tracked that down, thank you.
@@JakeLinux Do you have a video on how you fixed it?
just for the normal reference ^^
you are a herbstluftwm user within the voidlinux users of the linux users
that's a niche in a niche in a niche and we are probably the only two people on the planet in that particular niche
that's kinda the opposite of normal ^^
This is very true.
In case you're still having problems with the brightness keys, you can override the kernel using the 'boot.kernelPackages' option.
Yeah, I keep telling myself to take care of that but in the back of my mind I know I'm going to move on to my next challenge and distro, so then I think what's the point. But thanks for the reminder. And thanks for watching.
Jake, you currently have the most detailed video for nixos / Hyprland; just what I was looking for. I have Hyprland working, but I need to invoke from the tty. I see that you are using SDDS for display manager. How or where do you enter the Hyprland command to invoke it? Thanks in advance. Keep up with the videos. You are very detailed oriented
Thanks I appreciate the kind words, my configuration.nix is in my repos on GitHub, you can check it out and see how I enabled sddm and hyprland.
The way i setup themes was to use xfce4-appearance-settings and lxappearance, for me this resolved this issue.
Thanks for the tip.
I tried Sway, Everything I hear is it's supposed to work, not on my Intel video laptop. So I am still loving Herbstluftwm
What's not to love about Herbst, I am looking forward to getting back to it
Thank you for this tutorial, which I followed. I am struggling to find the two waybar configuration files on Nixos (config and style.css). Do you know where they are located...? Thanks
Unfortunately my configs for that specific bar are no longer available, I do however have 2 current waybar configs in my git repos. If you would like I can rebuild that bar later today if you would prefer that specific one.
hotkeys not working is a wayland thing, it's for security something, like protect against key loggers and such
Yeah, I found a work around...finally.
Jake you must be a newbe on UA-cam LOL, long time no see GVJ.
Just fell off the turnip truck yesterday. TY!
Hyprland and Ragnarwm seem a bit gimicky to me. The flashy animations remind me of the old compiz trend that was around for a while but died out.
I was going to check out Ragnar soon, is it similar to hyprland?
Hyprland with disabled animations is a great window manager on its own. The animations aren't my thing, I'm with you there, but I've had issues with sway that just don't exist using hyprland.
I gave up on NixOs and gone back to Arch. With your statement on Wayland I'm the opposite as I prefer it over Xorg, I switched to it this year with Qtile but I am currently driving Hyprland.
What is the preference if you don't mind me asking, I personally have not seen the benefit, but I am new to Wayland so that may change.
Since I'm not a youtuber or livestreamer but the big advantage I have found is in gaming. I'm loving Hyprland at the moment, but qtile is my backup.
@@jackelofnar Did you figure out a way to reduce input latency since wayland has forced vsync? It's the one thing that gives me pause in Hyprland atm
@@clocked0 that is a problem that is worked on, but the fix for me now is i3 + autotile script if i need to play games that benefit from bad frames
@@clocked0 A bit late but VRR solves the input latency issues for me. It's not as good as tearing, but close enough and feels better to me. If your display doesn't support vrr, your out of luck though.
There was a bit of a glich in the matrix in regards to the audio - nice walkthrough though
Thank you. yeah audio seems to be my nemesis, there is always somethin wrong, I just can seem to get it right.
Please keep making nixos videos
I will have a few more for now, moving on to my next challenge before too long, debian 12. May come back to nixos, not sure, at the moment I am missing my void setup.
Global hotkeys do not work in wayland (yet).
8:20 So how do the fonts play out. Nix packages come with their dependencies, so after you have installed a terminal or two, firefox, open office, etc. while you only designate 3 fonts. presumably the system will have access to like 100 fonts? So I can still go into kitty and set my font to "comic sans" if I wanted (becuase that is likely a dependency of openOffice)?
Add the fonts section to your configuration.nix just like in my video, then that will install the fonts you add to the list. Once that is done, I created the directory ~/.local/share/fonts/ and copied all the installed fonts from /nix/store/ to that directory.
@@JakeLinux Makes me wonder... Would home manager be able to manage your fonts?
@@clocked0 probably would but I don't know that I am going to get that involved, this is just a temporary challenge at the moment. I will be switching again soon.
please provide a link in the description with the configuration.nix
github.com/jdpedersen1/nixos
The hotkey issue is Hyprland-related.. but you probably knew that already 😁
Took me a bit, but thanks for the info.
great content Jake. I am very new to NixOS and would like to explore it as well. are you using home-manager to customize your waybar?
Thank you, no I did not use home manager or flakes.
can you probably guide me on how did you do it without home-manager or flakes? did you do it in your configuration.nix?@@JakeLinux
nixos wiki article for sway has a way to set gtk themes
Thanks for the tip, I will check it out
Are you using systemd or you configure all the services/demons by yourself in that file
I just used the configuration.nix file
@@JakeLinux sorry what is the absolute path for this file
@@mohammadyounishama5611 /etc/nixos/configuration.nix
hey guys do i use gitlab or the e other one? where do i place the bin folder ?and where do i place the script folder and what setting for the profile so it picks up these files .not familiar with window managers but putting it on slackware currrent. thanks in advance
What repo are you looking to use?
At the end when you are describing your experiance with NixOS, the words you were looking for were "worth the effort". As you are the only user and don't need your system to be reproducable, to you NixOS is not worth the effort.
Exactly
Come on you US guys, use °C already (or Kelvin). Nobody understands you regarding temperatures and nobody wants to.
Sorry, I use what I know
Your indentations being all over the place makes me so uncomfortable 😩
I know, I am sloppy at times.
Wayland and OBS is still garbage. It's why when people ask me to do Hyperland, I say no.
It records perfectly fine, my issue is with hotkeys, whether that is a Wayland issue or not is unknown to me as of yet. Not sure I see the point of Wayland yet, it would be a hard sell for to get me to switch from X, at least at this point.
@@JakeLinux there is a way to pass global hotkeys through the hyprland config file. That's the way Brodie does it. I think he has a video on it.
@@JakeLinux @TheLinuxCast maybe sxhkd might help, wouldn't that be global?
@@torsten.breswald sxhkd is x only.
Calling them Garbage seems pretty harsh.
Lol fuck allat im using GNOME
I just can't bring myself to use gnome, I prefer cinnamon for full DE
NixOS: Nobody asked for it.
Nobody asked for what?
@@JakeLinux The OS itself.
@@oldpain7625 from what I read, it has been around since 2003, it just has had a surge lately and I'm still figuring out why, what got everyone talking about it now.
96 degrees :/ americans and there terrible systems
Yeah, we're a bunch of weirdos.